/*! For license information please see vendors.43bd63f4.js.LICENSE.txt */ (self.webpackChunkdjango_vue_lyadmin_pro=self.webpackChunkdjango_vue_lyadmin_pro||[]).push([[96],{241:function(e,t,n){"use strict";var r=n(41917).A.Symbol;t.A=r},539:function(e,t,n){var r=n(28966),o=n(40481),i=n(658),a=n(16626);e.exports=function(e,t){var n=o(r(e,t|=0)).split("."),s=n[0],l=n[1]||"",c=t-l.length;return t?c>0?s+"."+l+i("0",c):s+a(l,Math.abs(c)):s}},655:function(e,t,n){"use strict";var r=n(36955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},658:function(e,t,n){var r=n(63982);e.exports=function(e,t){if(e.repeat)return e.repeat(t);var n=isNaN(t)?[]:new Array(r(t));return n.join(e)+(n.length>0?e:"")}},668:function(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("save_enablewhendirty",!0)},o=function(e,t){e.notificationManager.open({text:t,type:"error"})},i=function(e){return function(t){var n=function(){t.setDisabled(r(e)&&!e.isDirty())};return n(),e.on("NodeChange dirty",n),function(){return e.off("NodeChange dirty",n)}}};e.add("save",(function(e){!function(e){e.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return e.execCommand("mceSave")},onSetup:i(e)}),e.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return e.execCommand("mceCancel")},onSetup:i(e)}),e.addShortcut("Meta+S","","mceSave")}(e),function(e){e.addCommand("mceSave",(function(){!function(e){var n=t.DOM.getParent(e.id,"form");if(!r(e)||e.isDirty()){if(e.save(),function(e){return!!e.getParam("save_onsavecallback")}(e))return e.execCallback("save_onsavecallback",e),void e.nodeChanged();n?(e.setDirty(!1),n.onsubmit&&!n.onsubmit()||("function"==typeof n.submit?n.submit():o(e,"Error: Form submit field collision.")),e.nodeChanged()):o(e,"Error: No form element found.")}}(e)})),e.addCommand("mceCancel",(function(){!function(e){var t=n.trim(e.startContent);!function(e){return!!e.getParam("save_oncancelcallback")}(e)?e.resetContent(t):e.execCallback("save_oncancelcallback",e)}(e)}))}(e)}))}()},798:function(e,t,n){"use strict";var r=n(2237),o=n(96430),i=n(35657),a=n(53848),s=n(24993),l=function(){};function c(e){return s(r,e)}var u="3.7.4";l.VERSION=u,l.version=u,l.mixin=function(){o(arguments,(function(e){i(e,(function(e,t){l[t]=a(e)?function(){var t=e.apply(l.$context,arguments);return l.$context=null,t}:e}))}))},l.setup=c,l.setConfig=c,l.getConfig=function(){return r},e.exports=l},838:function(e,t,n){"use strict";n.d(t,{SN:function(){return s},mU:function(){return a},wC:function(){return l}});var r=n(61431),o=n(50819),i=n(18472);const a=(0,o.Y8)({type:String,values:i.I,required:!1}),s=Symbol("size"),l=()=>{const e=(0,r.inject)(s,{});return(0,r.computed)((()=>(0,r.unref)(e.size)||""))}},1400:function(e,t,n){var r=n(95654),o=n(96430),i=n(24993);function a(e,t,n,r,s,l,c,u,d){var f,h,p,m,g,A=[],v=d.original,y=d.data,O=d.mapChildren||u,b=d.isEvery;return o(n,(function(o,w){f=l.concat([""+w]),h=c.concat([o]),m=e&&!b||r.call(s,o,w,n,f,t,h),g=u&&o[u],m||g?(v?p=o:(p=i({},o),y&&(p[y]=o)),p[O]=a(m,o,o[u],r,s,f,h,u,d),(m||p[O].length)&&A.push(p)):m&&A.push(p)})),A}var s=r((function(e,t,n,r,o,i,s,l){return a(0,e,t,n,r,o,i,s,l)}));e.exports=s},1548:function(e,t,n){"use strict";var r=n(44576),o=n(79039),i=n(39519),a=n(84215),s=r.structuredClone;e.exports=!!s&&!o((function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},1625:function(e,t,n){"use strict";var r=n(79504);e.exports=r({}.isPrototypeOf)},1668:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=function(e,t){return null!=e&&t in Object(e)},o=n(81094),i=n(52274),a=n(92049),s=n(25353),l=n(5254),c=n(30901),u=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,u=(t=(0,o.A)(t,e)).length,d=!1;++rvoid 0===e,a=e=>"boolean"==typeof e,s=e=>"number"==typeof e,l=e=>!e&&0!==e||(0,r.cy)(e)&&0===e.length||(0,r.Gv)(e)&&!Object.keys(e).length,c=e=>"undefined"!=typeof Element&&e instanceof Element,u=e=>(0,o.A)(e),d=e=>!!(0,r.Kg)(e)&&!Number.isNaN(Number(e)),f=e=>e===window},2237:function(e){"use strict";e.exports={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1}},2250:function(e,t,n){"use strict";n.d(t,{D$:function(){return l},Od:function(){return s},ro:function(){return c}});var r=n(48548),o=n(50819),i=n(838),a=n(25343);const s=["default","primary","success","warning","info","danger","text",""],l=(0,o.b_)({size:i.mU,disabled:Boolean,type:{type:String,values:s,default:""},icon:{type:a.Ze},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:a.Ze,default:()=>r.Loading},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:(0,o.jq)([String,Object]),default:"button"}}),c={click:e=>e instanceof MouseEvent}},2360:function(e,t,n){"use strict";var r,o=n(28551),i=n(96801),a=n(88727),s=n(30421),l=n(20397),c=n(4055),u=n(66119),d="prototype",f="script",h=u("IE_PROTO"),p=function(){},m=function(e){return"<"+f+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},A=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;A="undefined"!=typeof document?document.domain&&r?g(r):(t=c("iframe"),n="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var o=a.length;o--;)delete A[d][a[o]];return A()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=o(e),n=new p,p[d]=null,n[h]=e):n=A(),void 0===t?n:i.f(n,t)}},2400:function(e,t,n){"use strict";n.d(t,{P:function(){return s},Z:function(){return a}});var r=n(34253),o=n(83412),i=n(10992);function a(e,t,n){var o=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=(0,r.dV)(o,a,i);(0,r.aP)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,r.m$)(e,o,a,i)}function s(e,t){var n=o.QX(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new i.A({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}},2553:function(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return undefined===e},n=tinymce.util.Tools.resolve("tinymce.util.Delay"),r=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(e,t){var n=e||t,r=/^(\d+)([ms]?)$/.exec(""+n);return(r[2]?{s:1e3,m:6e4}[r[2]]:1)*parseInt(n,10)},a=function(e){var t=document.location;return e.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-").replace(/{path}/g,t.pathname).replace(/{query}/g,t.search).replace(/{hash}/g,t.hash).replace(/{id}/g,e.id)},s=function(e,n){if(t(n))return e.dom.isEmpty(e.getBody());var r=o.trim(n);if(""===r)return!0;var i=(new DOMParser).parseFromString(r,"text/html");return e.dom.isEmpty(i)},l=function(e){var t=parseInt(r.getItem(a(e)+"time"),10)||0;return!((new Date).getTime()-t>function(e){return i(e.getParam("autosave_retention"),"20m")}(e)&&(c(e,!1),1))},c=function(e,t){var n=a(e);r.removeItem(n+"draft"),r.removeItem(n+"time"),!1!==t&&function(e){e.fire("RemoveDraft")}(e)},u=function(e){var t=a(e);!s(e)&&e.isDirty()&&(r.setItem(t+"draft",e.getContent({format:"raw",no_events:!0})),r.setItem(t+"time",(new Date).getTime().toString()),function(e){e.fire("StoreDraft")}(e))},d=function(e){var t=a(e);l(e)&&(e.setContent(r.getItem(t+"draft"),{format:"raw"}),function(e){e.fire("RestoreDraft")}(e))},f=function(e){e.undoManager.transact((function(){d(e),c(e)})),e.focus()},h=tinymce.util.Tools.resolve("tinymce.EditorManager"),p=function(e){return function(t){t.setDisabled(!l(e));var n=function(){return t.setDisabled(!l(e))};return e.on("StoreDraft RestoreDraft RemoveDraft",n),function(){return e.off("StoreDraft RestoreDraft RemoveDraft",n)}}};e.add("autosave",(function(e){return function(e){e.editorManager.on("BeforeUnload",(function(e){var t;o.each(h.get(),(function(e){e.plugins.autosave&&e.plugins.autosave.storeDraft(),!t&&e.isDirty()&&function(e){return e.getParam("autosave_ask_before_unload",!0)}(e)&&(t=e.translate("You have unsaved changes are you sure you want to navigate away?"))})),t&&(e.preventDefault(),e.returnValue=t)}))}(e),function(e){(function(e){var t=function(e){return i(e.getParam("autosave_interval"),"30s")}(e);n.setEditorInterval(e,(function(){u(e)}),t)})(e),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){f(e)},onSetup:p(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){f(e)},onSetup:p(e)})}(e),e.on("init",(function(){(function(e){return e.getParam("autosave_restore_when_empty",!1)})(e)&&e.dom.isEmpty(e.getBody())&&d(e)})),function(e){return{hasDraft:function(){return l(e)},storeDraft:function(){return u(e)},restoreDraft:function(){return d(e)},removeDraft:function(t){return c(e,t)},isEmpty:function(t){return s(e,t)}}}(e)}))}()},2721:function(e,t,n){var r=n(21607)("ceil");e.exports=r},2801:function(e){e.exports=function(e){return null===e}},2950:function(e,t,n){var r=n(61249),o=n(19042),i=n(69821);e.exports=function(e,t){if(e){if(i(e,t))return!0;var n,a,s,l,c,u,d=o(t),f=0,h=d.length;for(c=e;f=0||(d.push(e),(0,l.isFunction)(e)&&(e={install:e}),e.install(f))}},3238:function(e,t,n){"use strict";var r=n(44576),o=n(77811),i=n(67394),a=r.DataView;e.exports=function(e){if(!o||0!==i(e))return!1;try{return new a(e),!1}catch(e){return!0}}},3293:function(e){var t=Object.prototype.toString;e.exports=t},3354:function(e,t,n){var r=n(13908);e.exports=function(e,t,n){if(e){var o,i,a=0,s=n,l=arguments.length>2,c=r(e);if(e.length&&e.reduce)return i=function(){return t.apply(null,arguments)},l?e.reduce(i,s):e.reduce(i);for(l&&(a=1,s=e[c[0]]),o=c.length;a-1){var n=(0,o.parse)(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e-l}function u(e){return a(1e3*e)/1e3}function d(e){return a(1e4*e)/1e4}function f(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+d(e[4])+","+d(e[5])+")"}var h={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function A(e){return e&&!!e.image}function v(e){return A(e)||function(e){return e&&!!e.svgElement}(e)}function y(e){return"linear"===e.type}function O(e){return"radial"===e.type}function b(e){return e&&("linear"===e.type||"radial"===e.type)}function w(e){return"url(#"+e+")"}function _(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function x(e){var t=e.x||0,n=e.y||0,o=(e.rotation||0)*r.RADIAN_TO_DEGREE,i=(0,r.retrieve2)(e.scaleX,1),s=(0,r.retrieve2)(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),o&&u.push("rotate("+o+")"),1===i&&1===s||u.push("scale("+i+","+s+")"),(l||c)&&u.push("skew("+a(l*r.RADIAN_TO_DEGREE)+"deg, "+a(c*r.RADIAN_TO_DEGREE)+"deg)"),u.join(" ")}var S=i.A.hasGlobalWindow&&(0,r.isFunction)(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}},3486:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(24326),o=n(74562),i=n(50626),a=n(67071),s=Math.log;function l(e,t,n){var l=o.A.prototype,c=l.getTicks.call(n),u=l.getTicks.call(n,!0),d=c.length-1,f=l.getInterval.call(n),h=(0,i.Rx)(e,t),p=h.extent,m=h.fixMin,g=h.fixMax;if("log"===e.type){var A=s(e.base);p=[s(p[0])/A,s(p[1])/A]}e.setExtent(p[0],p[1]),e.calcNiceExtent({splitNumber:d,fixMin:m,fixMax:g});var v=l.getExtent.call(e);m&&(p[0]=v[0]),g&&(p[1]=v[1]);var y=l.getInterval.call(e),O=p[0],b=p[1];if(m&&g)y=(b-O)/d;else if(m)for(b=p[0]+y*d;bp[0]&&isFinite(O)&&isFinite(p[0]);)y=(0,a.kH)(y),O=p[1]-y*d;else{e.getTicks().length-1>d&&(y=(0,a.kH)(y));var w=y*d;b=Math.ceil(p[1]/y)*y,(O=(0,r.LI)(b-w))<0&&p[0]>=0?(O=0,b=(0,r.LI)(w)):b>0&&p[1]<=0&&(b=0,O=-(0,r.LI)(w))}var _=(c[0].value-u[0].value)/f,x=(c[d].value-u[d].value)/f;l.setExtent.call(e,O+y*_,b+y*x),l.setInterval.call(e,y),(_||x)&&l.setNiceExtent.call(e,O+y,b-y)}},3686:function(e,t,n){"use strict";n.d(t,{DA:function(){return m},MU:function(){return g},T8:function(){return f},Tc:function(){return p},_F:function(){return h},bY:function(){return d},cU:function(){return A},u7:function(){return v}});var r=n(98026),o=n(43199),i=n(45558),a=n(83412),s=n(45587),l=n(50626),c=n(89598),u=n(89632);function d(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function f(e,t,n,r,o){var s=h(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=a.QX(l.get("padding")||0),d=l.getFont(),f=i.NO(s,d),p=o.position,m=f.width+c[1]+c[3],g=f.height+c[0]+c[2],A=o.align;"right"===A&&(p[0]-=m),"center"===A&&(p[0]-=m/2);var v=o.verticalAlign;"bottom"===v&&(p[1]-=g),"middle"===v&&(p[1]-=g/2),function(e,t,n,r){var o=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(p,m,g,r);var y=l.get("backgroundColor");y&&"auto"!==y||(y=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:(0,u.VB)(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:y}),z2:10}}function h(e,t,n,o,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),s=i.formatter;if(s){var c={value:l.Dt(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};r.each(o,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,o=t&&t.getDataParams(r);o&&c.seriesData.push(o)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(c))}return a}function p(e,t,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),o.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function m(e,t,n,r,o,i){var a=c.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),f(t,r,o,i,{position:p(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function g(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function A(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function v(e,t,n,r,o,i){return{cx:e,cy:t,r0:n,r:r,startAngle:o,endAngle:i,clockwise:!0}}},3753:function(e,t,n){n(22454)},3961:function(e,t,n){"use strict";n.d(t,{CO:function(){return _},Qx:function(){return h},Yu:function(){return y},aw:function(){return w},lb:function(){return x}});var r=n(44265),o=n(83412),i=n(98026),a=n(31825),s=n(24326),l="line-height:1";function c(e){var t=e.lineHeight;return null==t?l:"line-height:"+(0,r.Me)(t+"")+"px"}function u(e,t){var n=e.color||"#6e7079",o=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+(0,r.Me)(o+"")+"px;color:"+(0,r.Me)(n)+";font-weight:"+(0,r.Me)(i+""),valueStyle:"font-size:"+(0,r.Me)(s+"")+"px;color:"+(0,r.Me)(a)+";font-weight:"+(0,r.Me)(l+"")}:{nameStyle:{fontSize:o,fill:n,fontWeight:i},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var d=[0,10,20,30],f=["","\n","\n\n","\n\n\n"];function h(e,t){return t.type=e,t}function p(e){return"section"===e.type}function m(e){return p(e)?A:v}function g(e){if(p(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return(0,i.each)(e.blocks,(function(e){var n=g(e);n>=t&&(t=n+ +(r&&(!n||p(e)&&!e.noHeader)))})),t}return 0}function A(e,t,n,s){var l,h=t.noHeader,p=(l=g(t),{html:d[l],richText:f[l]}),A=[],v=t.blocks||[];(0,i.assert)(!v||(0,i.isArray)(v)),v=v||[];var y=e.orderMode;if(t.sortBlocks&&y){v=v.slice();var w={valueAsc:"asc",valueDesc:"desc"};if((0,i.hasOwn)(w,y)){var _=new a.Fl(w[y],null);v.sort((function(e,t){return _.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===y&&v.reverse()}(0,i.each)(v,(function(n,r){var o=t.valueFormatter,a=m(n)(o?(0,i.extend)((0,i.extend)({},e),{valueFormatter:o}):e,n,r>0?p.html:0,s);null!=a&&A.push(a)}));var x="richText"===e.renderMode?A.join(p.richText):O(s,A.join(""),h?n:p.html);if(h)return x;var S=(0,o.yC)(t.header,"ordinal",e.useUTC),k=u(s,e.renderMode).nameStyle,C=c(s);return"richText"===e.renderMode?b(e,S,k)+p.richText+x:O(s,'
'+(0,r.Me)(S)+"
"+x,n)}function v(e,t,n,a){var s=e.renderMode,l=t.noName,c=t.noValue,d=!t.markerType,f=t.name,h=e.useUTC,p=t.valueFormatter||e.valueFormatter||function(e){return e=(0,i.isArray)(e)?e:[e],(0,i.map)(e,(function(e,t){return(0,o.yC)(e,(0,i.isArray)(A)?A[t]:A,h)}))};if(!l||!c){var m=d?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",s),g=l?"":(0,o.yC)(f,"ordinal",h),A=t.valueType,v=c?[]:p(t.value,t.dataIndex),y=!d||!l,w=!d&&l,_=u(a,s),x=_.nameStyle,S=_.valueStyle;return"richText"===s?(d?"":m)+(l?"":b(e,g,x))+(c?"":function(e,t,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle((0,i.isArray)(t)?t.join(" "):t,a)}(e,v,y,w,S)):O(a,(d?"":m)+(l?"":function(e,t,n){return''+(0,r.Me)(e)+""}(g,!d,x))+(c?"":function(e,t,n,o){var a=t?"float:right;margin-left:"+(n?"10px":"20px"):"";return e=(0,i.isArray)(e)?e:[e],''+(0,i.map)(e,(function(e){return(0,r.Me)(e)})).join("  ")+""}(v,y,w,S)),n)}}function y(e,t,n,r,o,i){if(e)return m(e)({useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,i)}function O(e,t,n){return'
'+t+'
'}function b(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function w(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return(0,o.he)(n)}function _(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var x=function(){function e(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,a=(0,o.qg)({color:t,type:e,renderMode:n,markerId:r});return(0,i.isString)(a)?a:(this.richTextStyles[r]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};(0,i.isArray)(t)?(0,i.each)(t,(function(e){return(0,i.extend)(n,e)})):(0,i.extend)(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},3992:function(e,t,n){var r=n(73971),o=typeof Map!==r;e.exports=function(e){return o&&e instanceof Map}},4055:function(e,t,n){"use strict";var r=n(44576),o=n(20034),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},4094:function(e,t,n){var r=n(41982),o=n(13908);e.exports=function(e,t,n){r(o(e),(function(r){t.call(n,e[r],r,e)}))}},4188:function(){},4213:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=i.URL||i.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):r(l.href)?t(e,n,a):o(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(r(e))t(e,n,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,f=d.createObjectURL(e);o?o.location=f:location.href=f,o=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=o)},4235:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(98026),o=n(3961),i=n(58267),a=n(48170);function s(e){var t,n,s,l,c=e.series,u=e.dataIndex,d=e.multipleSeries,f=c.getData(),h=f.mapDimensionsAll("defaultedTooltip"),p=h.length,m=c.getRawValue(u),g=(0,r.isArray)(m),A=(0,o.aw)(c,u);if(p>1||g&&!p){var v=function(e,t,n,a,s){var l=t.getData(),c=(0,r.reduce)(e,(function(e,t,n){var r=l.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),u=[],d=[],f=[];function h(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(c?f.push((0,o.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(u.push(e),d.push(n.type)))}return a.length?(0,r.each)(a,(function(e){h((0,i.QE)(l,n,e),e)})):(0,r.each)(e,h),{inlineValues:u,inlineValueTypes:d,blocks:f}}(m,c,u,h,A);t=v.inlineValues,n=v.inlineValueTypes,s=v.blocks,l=v.inlineValues[0]}else if(p){var y=f.getDimensionInfo(h[0]);l=t=(0,i.QE)(f,u,h[0]),n=y.type}else l=t=g?m[0]:m;var O=(0,a.O0)(c),b=O&&c.name||"",w=f.getName(u),_=d?b:w;return(0,o.Qx)("section",{header:b,noHeader:d||!O,sortParam:l,blocks:[(0,o.Qx)("nameValue",{markerType:"item",markerColor:A,name:_,noName:!(0,r.trim)(_),value:t,valueType:n,dataIndex:u})].concat(s||[])})}},4495:function(e,t,n){"use strict";var r=n(39519),o=n(79039),i=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4934:function(e,t,n){!function(){"use strict";var e=function(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}},t=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},o=e("string"),i=e("object"),a=e("array"),s=r(null),l=t("boolean"),c=r(void 0),u=function(e){return null==e},d=function(e){return!u(e)},f=t("function"),h=t("number"),p=function(e,t){if(a(e)){for(var n=0,r=e.length;n-1},V=function(e,t){for(var n=0,r=e.length;n=0;n--)t(e[n],n)}(e,(function(e,r){n=t(n,e,r)})),n},Z=function(e,t,n){return W(e,(function(e,r){n=t(n,e,r)})),n},Y=function(e,t){return function(e,t,n){for(var r=0,o=e.length;r=0&&t=t.length&&e.substr(n,n+t.length)===t},Ce=function(e,t){return-1!==e.indexOf(t)},Be=function(e,t){return ke(e,t,e.length-t.length)},Qe=(E=/^\s+|\s+$/g,function(e){return e.replace(E,"")}),Te=function(e){return e.length>0},Ee=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},Pe=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},$e=function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Pe(n.childNodes[0])},Me=function(e,t){var n=(t||document).createElement(e);return Pe(n)},ze=function(e,t){var n=(t||document).createTextNode(e);return Pe(n)},Re=Pe;"undefined"!=typeof window?window:Function("return this;")();var De,Ie=function(e){return e.dom.nodeName.toLowerCase()},Ne=function(e){return function(t){return function(e){return e.dom.nodeType}(t)===e}},Le=Ne(1),Ve=Ne(3),Ue=Ne(9),Fe=Ne(11),He=function(e){var t,n=!1;return function(){for(var r=[],o=0;o0&&t0}))},an=function(e){var t={},n=e.dom;if(Ee(n))for(var r=0;ro?t-o:0}}},dn=un("height",(function(e){var t=e.dom;return Vt(e)?t.getBoundingClientRect().height:t.offsetHeight})),fn=function(e){return dn.get(e)},hn=function(e){return dn.getOuter(e)},pn=function(e,t){return{left:e,top:t,translate:function(n,r){return pn(e+n,t+r)}}},mn=pn,gn=function(e,t){return void 0!==e?e:void 0!==t?t:0},An=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return mn(n.offsetLeft,n.offsetTop);var i=gn(null==r?void 0:r.pageYOffset,o.scrollTop),a=gn(null==r?void 0:r.pageXOffset,o.scrollLeft),s=gn(o.clientTop,n.clientTop),l=gn(o.clientLeft,n.clientLeft);return vn(e).translate(a-l,i-s)},vn=function(e){var t=e.dom,n=t.ownerDocument.body;return n===t?mn(n.offsetLeft,n.offsetTop):Vt(e)?function(e){var t=e.getBoundingClientRect();return mn(t.left,t.top)}(t):mn(0,0)},yn=un("width",(function(e){return e.dom.offsetWidth})),On=function(e){return yn.get(e)},bn=function(e){return yn.getOuter(e)},wn=function(e){var t=Re(function(e){if(Rt()&&d(e.target)){var t=Re(e.target);if(Le(t)&&function(e){return d(e.dom.shadowRoot)}(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return se(n)}}return z.from(e.target)}(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=g(r,n);return function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}}(t,e.clientX,e.clientY,n,r,o,e)},_n=function(e,t,n,r,o){var i=function(e,t){return function(n){e(n)&&t(wn(n))}}(n,r);return e.dom.addEventListener(t,i,o),{unbind:O(xn,e,t,i,o)}},xn=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Sn=function(e,t){Bt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},kn=function(e,t){var n=function(e){return z.from(e.dom.nextSibling).map(Re)}(e);n.fold((function(){Bt(e).each((function(e){Bn(e,t)}))}),(function(e){Sn(e,t)}))},Cn=function(e,t){var n=function(e){return Et(e,0)}(e);n.fold((function(){Bn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Bn=function(e,t){e.dom.appendChild(t.dom)},Qn=function(e,t){W(t,(function(t){Bn(e,t)}))},Tn=function(e){e.dom.textContent="",W(Tt(e),(function(e){En(e)}))},En=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Pn=function(e){var t,n=Tt(e);n.length>0&&(t=e,W(n,(function(e){Sn(t,e)}))),En(e)},$n=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return mn(n,r)},Mn=function(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)},zn=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Rn=function(e){var t=void 0===e?window:e,n=t.document,r=$n(Re(n));return function(e){var t=void 0===e?window:e;return yt().browser.isFirefox()?z.none():z.from(t.visualViewport)}(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return zn(r.left,r.top,n,o)}),(function(e){return zn(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Dn=function(e,t){return e.view(t).fold(A([]),(function(t){var n=e.owner(t),r=Dn(e,n);return[t].concat(r)}))},In=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?z.none():z.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Re)},owner:function(e){return xt(e)}}),Nn=function(e){var t=Re(document),n=$n(t),r=function(e,t){var n=t.owner(e),r=Dn(t,n);return z.some(r)}(e,In);return r.fold(O(An,e),(function(t){var r=vn(e),o=q(t,(function(e,t){var n=vn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return mn(o.left+r.left+n.left,o.top+r.top+n.top)}))},Ln=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Vn=function(e){var t=An(e),n=bn(e),r=hn(e);return Ln(t.left,t.top,n,r)},Un=function(e){var t=Nn(e),n=bn(e),r=hn(e);return Ln(t.left,t.top,n,r)},Fn=function(){return Rn(window)},Hn=function(e){return{isValue:x,isError:_,getOr:A(e),getOrThunk:A(e),getOrDie:A(e),or:function(t){return Hn(e)},orThunk:function(t){return Hn(e)},fold:function(t,n){return n(e)},map:function(t){return Hn(t(e))},mapError:function(t){return Hn(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return z.some(e)}}},Wn=function(e){return{isValue:_,isError:x,getOr:v,getOrThunk:function(e){return e()},getOrDie:function(){return w(String(e))()},or:v,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Wn(e)},mapError:function(t){return Wn(t(e))},each:m,bind:function(t){return Wn(e)},exists:_,forall:x,toOptional:z.none}},Xn={value:Hn,error:Wn,fromOption:function(e,t){return e.fold((function(){return Wn(t)}),Hn)}};!function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"}(De||(De={}));var jn=function(e,t,n){return e.stype===De.Error?t(e.serror):n(e.svalue)},qn=function(e){return{stype:De.Value,svalue:e}},Zn=function(e){return{stype:De.Error,serror:e}},Yn=qn,Gn=Zn,Kn=jn,Jn=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},er=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},tr=function(e){return function(){for(var t=[],n=0;n0?(t=n.errors,g(Gn,K)(t)):Yn(n.values)},lr=function(e){return i(e)&&de(e).length>100?" removed due to size":JSON.stringify(e,null,2)},cr=function(e,t){return Gn([{path:e,getErrorInfo:t}])},ur=function(e){return{extract:function(t,n){return r=e(n),o=function(e){return function(e,t){return cr(e,A(t))}(t,e)},r.stype===De.Error?o(r.serror):r;var r,o},toString:A("val")}},dr=ur(Yn),fr=function(e,t,n,r){return r(ye(e,t).getOrThunk((function(){return n(e)})))},hr=function(e,t,n,r,o){var i=function(e){return o.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return Yn(z.none())}),(function(e){var n,i,a=o.extract(t.concat([r]),e);return n=a,i=z.some,n.stype===De.Value?{stype:De.Value,svalue:i(n.svalue)}:n}))};switch(e.tag){case"required":return function(e,t,n,r){return ye(t,n).fold((function(){return function(e,t,n){return cr(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+lr(n)}))}(e,n,t)}),r)}(t,n,r,i);case"defaultedThunk":return fr(n,r,e.process,i);case"option":return function(e,t,n){return n(ye(e,t))}(n,r,a);case"defaultedOptionThunk":return function(e,t,n,r){return r(ye(e,t).map((function(t){return!0===t?n(e):t})))}(n,r,e.process,a);case"mergeWithThunk":return fr(n,r,A({}),(function(t){var r=nr(e.process(n),t);return i(r)}))}},pr=function(e){return{extract:function(t,n){return e().extract(t,n)},toString:function(){return e().toString()}}},mr=function(e){return de(function(e,t){var n,r={};return function(e,t,n,r){he(e,(function(e,o){(t(e,o)?n:r)(e,o)}))}(e,t,(n=r,function(e,t){n[t]=e}),m),r}(e,d))},gr=function(e){var t=Ar(e),n=q(e,(function(e,t){return er(t,(function(t){var n;return nr(e,((n={})[t]=!0,n))}),A(e))}),{});return{extract:function(e,r){var o=l(r)?[]:mr(r),i=j(o,(function(e){return!be(n,e)}));return 0===i.length?t.extract(e,r):function(e,t){return cr(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))}(e,i)},toString:t.toString}},Ar=function(e){return{extract:function(t,n){return function(e,t,n){for(var r={},o=[],i=0,a=n;i0?Gn(o):Yn(r)}(t,n,e)},toString:function(){var t=H(e,(function(e){return er(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"}}},vr=function(e){return{extract:function(t,n){var r=H(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return sr(r)},toString:function(){return"array("+e.toString()+")"}}},yr=function(e){return{extract:function(t,n){for(var r=[],o=0,i=e;o10?t.slice(0,10).concat([{path:[],getErrorInfo:A("... (only showing first ten failures)")}]):t,H(n,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))).join("\n")+"\n\nInput object: "+lr(e.input);var t,n},Dr=function(e,t){return Tr(e,pe(t,Ar))},Ir=Jn,Nr=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},Lr=function(e){return Er((function(t){return L(e,t)?Xn.value(t):Xn.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Vr=function(e){return Ir(e,e,{tag:"required",process:{}},wr())},Ur=function(e,t){return Ir(e,e,{tag:"required",process:{}},t)},Fr=function(e){return Ur(e,xr)},Hr=function(e){return Ur(e,Sr)},Wr=function(e,t){return Ir(e,e,{tag:"required",process:{}},Lr(t))},Xr=function(e){return Ur(e,Cr)},jr=function(e,t){return Ir(e,e,{tag:"required",process:{}},Ar(t))},qr=function(e,t){return Ir(e,e,{tag:"required",process:{}},br(t))},Zr=function(e,t){return Ir(e,e,{tag:"required",process:{}},vr(t))},Yr=function(e){return Ir(e,e,{tag:"option",process:{}},wr())},Gr=function(e,t){return Ir(e,e,{tag:"option",process:{}},t)},Kr=function(e){return Gr(e,xr)},Jr=function(e){return Gr(e,Sr)},eo=function(e){return Gr(e,Cr)},to=function(e,t){return Gr(e,vr(t))},no=function(e,t){return Gr(e,Ar(t))},ro=function(e,t){return Ir(e,e,ir(t),wr())},oo=function(e,t,n){return Ir(e,e,ir(t),n)},io=function(e,t){return oo(e,t,xr)},ao=function(e,t){return oo(e,t,Sr)},so=function(e,t,n){return oo(e,t,Lr(n))},lo=function(e,t){return oo(e,t,kr)},co=function(e,t){return oo(e,t,Cr)},uo=function(e,t,n){return oo(e,t,vr(n))},fo=function(e,t,n){return oo(e,t,Ar(n))},ho=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},po=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return W(e,(function(r,o){var i=de(r);if(1!==i.length)throw new Error("one and only one name per case");var s=i[0],l=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(l))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r1?j(t[n],(function(t){return V(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return Ao(n,function(e,t){return{handler:e,purpose:t}}(o,i))}))}));return n={},o=function(e){var t=[],n=[];return W(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}}(i),o.errors.length>0?(r=o.errors,Xn.error(K(r))):function(e,t){return 0===e.length?Xn.value(t):Xn.value(nr(t,rr.apply(void 0,e)))}(o.values,n)},Aa="alloy.base.behaviour",va=Ar([Ir("dom","dom",{tag:"required",process:{}},Ar([Vr("tag"),ro("styles",{}),ro("classes",[]),ro("attributes",{}),Yr("value"),Yr("innerHtml")])),Vr("components"),Vr("uid"),ro("events",{}),ro("apis",{}),Ir("eventOrder","eventOrder",(mo={},mo[Ko()]=["disabling",Aa,"toggling","typeaheadevents"],mo[qo()]=[Aa,"focusing","keying"],mo[oi()]=[Aa,"disabling","toggling","representing"],mo[No()]=[Aa,"representing","streaming","invalidating"],mo[ui()]=[Aa,"representing","item-events","tooltipping"],mo[To()]=["focusing",Aa,"item-type-events"],mo[ko()]=["focusing",Aa,"item-type-events"],mo[Mo()]=["item-type-events","tooltipping"],mo[Go()]=["receiving","reflecting","tooltipping"],go=mo,ar(A(go))),wr()),Yr("domModification")]),ya=function(e){return e.events},Oa=function(e,t){var n=jt(e,t);return void 0===n||""===n?[]:n.split(" ")},ba=function(e){return void 0!==e.dom.classList},wa=function(e,t){ba(e)?e.dom.classList.add(t):function(e,t){(function(e,t,n){var r=Oa(e,t).concat([n]);Wt(e,t,r.join(" "))})(e,"class",t)}(e,t)},_a=function(e,t){ba(e)?e.dom.classList.remove(t):function(e,t){(function(e,t,n){var r=j(Oa(e,t),(function(e){return e!==n}));r.length>0?Wt(e,t,r.join(" ")):Yt(e,t)})(e,"class",t)}(e,t),function(e){var t=ba(e)?e.dom.classList:function(e){return Oa(e,"class")}(e);0===t.length&&Yt(e,"class")}(e)},xa=function(e,t){return ba(e)&&e.dom.classList.contains(t)},Sa=function(e,t){W(t,(function(t){wa(e,t)}))},ka=function(e,t){W(t,(function(t){_a(e,t)}))},Ca=function(e){return e.dom.value},Ba=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},Qa=function(e){var t=function(e){var t=ye(e,"behaviours").getOr({});return J(de(t),(function(e){var n=t[e];return d(n)?[n.me]:[]}))}(e);return function(e,t){return function(e,t){var n=H(t,(function(e){return no(e.name(),[Vr("config"),ro("state",ca)])})),r=$r("component.behaviours",Ar(n),e.behaviours).fold((function(t){throw new Error(Rr(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),v);return{list:t,data:pe(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return A(t)}))}}(e,t)}(e,t)},Ta=function(e,t,n){var r={"alloy.base.behaviour":ya(e)};return function(e,t,n,r){var o=function(e,t,n){var r=k(k({},n),function(e,t){var n={};return W(e,(function(e){n[e.name()]=e.handlers(t)})),n}(t,e));return da(r,pa)}(e,n,r);return ga(o,t)}(n,e.eventOrder,t,r).getOrDie()},Ea=function(e){var t=function(){return u},n=ho(ra),r=Mr(function(e){return $r("custom.definition",va,e)}(e)),o=Qa(e),i=function(e){return e.list}(o),a=function(e){return e.data}(o),s=function(e){var t=Me(e.tag);Xt(t,e.attributes),Sa(t,e.classes),en(t,e.styles),e.innerHtml.each((function(e){return Vi(t,e)}));var n=e.domChildren;return Qn(t,n),e.value.each((function(e){Ba(t,e)})),e.uid,Ki(t,e.uid),t}(function(e,t,n){var r,o,i,a=k(k({},(r=e).dom),{uid:r.uid,domChildren:H(r.components,(function(e){return e.element}))}),s=function(e){return e.domModification.fold((function(){return fa({})}),fa)}(e),l={"alloy.base.modification":s},c=t.length>0?function(e,t,n,r){var o=k({},t);W(n,(function(t){o[t.name()]=t.exhibit(e,r)}));var i=da(o,(function(e,t){return{name:e,modification:t}})),a=function(e){return q(e,(function(e,t){return k(k({},t.modification),e)}),{})},s=q(i.classes,(function(e,t){return t.modification.concat(e)}),[]),l=a(i.attributes),c=a(i.styles);return fa({classes:s,attributes:l,styles:c})}(n,l,t,a):s;return i=c,k(k({},o=a),{attributes:k(k({},o.attributes),i.attributes),styles:k(k({},o.styles),i.styles),classes:o.classes.concat(i.classes)})}(r,i,a)),l=Ta(r,i,a),c=ho(r.components),u={uid:e.uid,getSystem:n.get,config:function(t){var n=a;return(f(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))})()},hasConfigured:function(e){return f(a[e.name()])},spec:e,readState:function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},getApis:function(){return r.apis},connect:function(e){n.set(e)},disconnect:function(){n.set(na(t))},element:s,syncComponents:function(){var e=Tt(s),t=J(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),oe)}));c.set(t)},components:c.get,events:l};return u},Pa=function(e){var t=ze(e);return $a({element:t})},$a=function(e){var t=zr("external.component",gr([Vr("element"),Yr("uid")]),e),n=ho(na()),r=t.uid.getOrThunk((function(){return ea("external")}));Ki(t.element,r);var o={uid:r,getSystem:n.get,config:z.none,hasConfigured:_,connect:function(e){n.set(e)},disconnect:function(){n.set(na((function(){return o})))},getApis:function(){return{}},element:t.element,spec:e,readState:A("No state"),syncComponents:m,components:A([]),events:{}};return sa(o)},Ma=ea,za=function(e){return function(e){return ye(e,aa)}(e).getOrThunk((function(){return function(e){var t=ta(e),n=t.events,r=C(t,["events"]),o=function(e){var t=ye(e,"components").getOr([]);return H(t,za)}(r),i=k(k({},r),{events:k(k({},Wi),n),components:o});return Xn.value(Ea(i))}(function(e){return Oe(e,"uid")}(e)?e:k({uid:Ma("")},e)).getOrDie()}))},Ra=sa;function Da(e,t,n,r,o){return e(n,r)?z.some(n):f(o)&&o(n)?z.none():t(n,r,o)}var Ia,Na=function(e,t,n){for(var r=e.dom,o=f(n)?n:_;r.parentNode;){r=r.parentNode;var i=Re(r);if(t(i))return z.some(i);if(o(i))break}return z.none()},La=function(e,t,n){return Da((function(e,t){return t(e)}),Na,e,t,n)},Va=function(e,t,n){return La(e,t,n).isSome()},Ua=function(e,t,n){return Na(e,(function(e){return Ot(e,t)}),n)},Fa=function(e,t){return function(e){return Y(e.dom.childNodes,(function(e){return n=Re(e),Ot(n,t);var n})).map(Re)}(e)},Ha=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return bt(n)?z.none():z.from(n.querySelector(e)).map(Re)}(t,e)},Wa=function(e,t,n){return Da((function(e,t){return Ot(e,t)}),Ua,e,t,n)},Xa=function(){var e=ji("aria-owns");return{id:e,link:function(t){Wt(t,"aria-owns",e)},unlink:function(e){Yt(e,"aria-owns")}}},ja=function(e,t){return Va(t,(function(t){return wt(t,e.element)}),_)||function(e,t){return function(e){var t=La(e,(function(e){if(!Le(e))return!1;var t=jt(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=jt(e,"id"),n=Dt(e);return Ha(n,'[aria-owns="'+t+'"]')}))}(t).exists((function(t){return ja(e,t)}))}(e,t)};!function(e){e[e.STOP=0]="STOP",e[e.NORMAL=1]="NORMAL",e[e.LOGGING=2]="LOGGING"}(Ia||(Ia={}));var qa=ho({}),Za=["alloy/data/Fields","alloy/debugging/Debugging"],Ya=function(e,t,n){return function(e,t,n){switch(ye(qa.get(),e).orThunk((function(){var t=de(qa.get());return ue(t,(function(t){return e.indexOf(t)>-1?z.some(qa.get()[t]):z.none()}))})).getOr(Ia.NORMAL)){case Ia.NORMAL:return n(Ga());case Ia.LOGGING:var r=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var o=(new Date).getTime();L(["mousemove","mouseover","mouseout",oi()],e)||console.log(e,{event:e,time:o-r,target:t.dom,sequence:H(n,(function(e){return L(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Fi(e.target)+")":e.outcome}))})}}}(e,t),o=n(r);return r.write(),o;case Ia.STOP:return!0}}(e,t,n)},Ga=A({logEventCut:m,logEventStopped:m,logNoParent:m,logEventNoHandlers:m,logEventResponse:m,write:m}),Ka=A([Vr("menu"),Vr("selectedMenu")]),Ja=A([Vr("item"),Vr("selectedItem")]);A(Ar(Ja().concat(Ka())));var es=A(Ar(Ja())),ts=jr("initSize",[Vr("numColumns"),Vr("numRows")]),ns=function(){return jr("markers",[Vr("backgroundMenu")].concat(Ka()).concat(Ja()))},rs=function(e){return jr("markers",H(e,Vr))},os=function(e,t,n){return function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");Y(t,(function(e){return e.indexOf("alloy")>0&&!V(Za,(function(t){return e.indexOf(t)>-1}))})).getOr("unknown")}}(),Ir(t,t,n,Er((function(e){return Xn.value((function(){for(var t=[],n=0;nr?n:o=n&&a<=o&&s>=r&&s<=i,sizeInBounds:l<=o&&l>=n&&c<=i&&c>=r,visibleW:Math.min(u,a>=n?o-a:l-n),visibleH:Math.min(d,s>=r?i-s:c-r)}}(c,a),d=u.originInBounds,f=u.sizeInBounds,h=u.visibleW,p=u.visibleH,m=d&&f,g=m?c:function(e,t){var n=t.x,r=t.y,o=t.right,i=t.bottom,a=e.x,s=e.y,l=e.width,c=e.height,u=Math.max(n,o-l),d=Math.max(r,i-c),f=_s(a,n,u),h=_s(s,r,d),p=Math.min(f+l,o)-f,m=Math.min(h+c,i)-h;return Ln(f,h,p,m)}(c,a),v=g.width>0&&g.height>0,y=function(e,t,n){var r=A(t.bottom-n.y),o=A(n.bottom-t.y),i=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)}(e,o,o,r),a=A(t.right-n.x),s=A(n.right-t.x),l=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)}(e,s,s,a);return{maxWidth:l,maxHeight:i}}(e.direction,g,r),O=y.maxWidth,b={rect:g,maxHeight:y.maxHeight,maxWidth:O,direction:e.direction,placement:e.placement,classes:{on:o.classesOn,off:o.classesOff},layout:e.label,testY:l};return m||e.alwaysFit?xl.fit(b):xl.nofit(b,h,p,v)},kl=function(e){var t=ho(z.none()),n=function(){return t.get().each(e)};return{clear:function(){n(),t.set(z.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){n(),t.set(z.some(e))}}},Cl=function(){return kl((function(e){return e.destroy()}))},Bl=function(){return kl((function(e){return e.unbind()}))},Ql=function(){var e=kl(m);return k(k({},e),{on:function(t){return e.get().each(t)}})},Tl=x,El=function(e,t,n){return function(e,t,n,r){return _n(e,t,n,r,!1)}(e,t,Tl,n)},Pl=function(e,t,n){return function(e,t,n,r){return _n(e,t,n,r,!0)}(e,t,Tl,n)},$l=wn,Ml=["top","bottom","right","left"],zl="data-alloy-transition-timer",Rl=function(e,t,n,r,i,a){var s=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))}(r,i,a);if(s||function(e,t){return function(e,t){return ee(t,(function(t){return xa(e,t)}))}(e,t.classes)}(e,r)){Jt(e,"position",n.position);var l=gl(t,e),c=ml(t,k(k({},i),{rect:l})),d=re(Ml,(function(e){return c[e]}));(function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return Ae(t,(function(t,r){var o,i,a,s=e[r].map(n),l=t.map(n);return void 0===a&&(a=y),!xe(o=s,i=l,a).getOr(o.isNone()&&i.isNone())})).isSome()})(n,d)&&(tn(e,d),s&&function(e,t){Sa(e,t.classes),qt(e,zl).each((function(t){clearTimeout(parseInt(t,10)),Yt(e,zl)})),function(e,t){var n,r=Bl(),i=Bl(),a=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return wt(t.target,e)&&!Te(r)&&L(Ml,t.raw.propertyName)},s=function(o){if(u(o)||a(o)){r.clear(),i.clear();var s=null==o?void 0:o.raw.type;(u(s)||s===Fo())&&(clearTimeout(n),Yt(e,zl),ka(e,t.classes))}},l=function(){r.set(El(e,Fo(),s)),i.set(El(e,Uo(),s))};if("ontransitionstart"in e.dom)var c=El(e,Ho(),(function(e){a(e)&&(c.unbind(),l())}));else l();var d=function(e){var t=function(t){var n=nn(e,t),r=o(n)?n.split(/\s*,\s*/):[];return j(r,Te)},n=function(e){if(o(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return Be(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),i=t("transition-duration");return Z(i,(function(e,t,o){var i=n(r[o])+n(t);return Math.max(e,i)}),0)}(e);requestAnimationFrame((function(){n=setTimeout(s,d+17),Wt(e,zl,n)}))}(e,t)}(e,r),cn(e))}else ka(e,r.classes)},Dl=function(e,t){!function(e,t){var n=dn.max(e,t,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"]);Jt(e,"max-height",n+"px")}(e,Math.floor(t))},Il=A((function(e,t){Dl(e,t),en(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Nl=A((function(e,t){Dl(e,t)})),Ll=function(e,t,n){return void 0===e[t]?n:e[t]},Vl=function(e,t,n,r){var o=function(e,t,n,r){ln(t,"max-height"),ln(t,"max-width");var o,i={width:bn(o=t),height:hn(o)};return function(e,t,n,r,o,i){var a=r.width,s=r.height,l=function(t,l,c,u,d){var f=t(n,r,o,e,i),h=Sl(f,a,s,i);return h.fold(A(h),(function(e,t,n,r){return(d===r?n>u||t>c:!d&&r)?h:xl.nofit(l,c,u,d)}))};return Z(t,(function(e,t){var n=O(l,t);return e.fold(A(e),n)}),xl.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:ps(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1)).fold(v,v)}(t,r.preference,e,i,n,r.bounds)}(e,t,n,r);return function(e,t,n){var r=ml(n.origin,t);n.transition.each((function(o){Rl(e,n.origin,r,o,t,n.lastPlacement)})),fl(e,r)}(t,o,r),function(e,t){!function(e,t){Wt(e,wl,t)}(e,t.placement)}(t,o),function(e,t){var n=t.classes;ka(e,n.off),Sa(e,n.on)}(t,o),function(e,t,n){(0,n.maxHeightFunction)(e,t.maxHeight)}(t,o,r),function(e,t,n){(0,n.maxWidthFunction)(e,t.maxWidth)}(t,o,r),{layout:o.layout,placement:o.placement}},Ul=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Fl=function(e,t,n,r){void 0===r&&(r=1);var o=e*r,i=t*r,a=function(e){return ye(n,e).getOr([])},s=function(e,t,n){var r=ne(Ul,n);return{offset:mn(e,t),classesOn:J(n,a),classesOff:J(r,a)}};return{southeast:function(){return s(-e,t,["top","alignLeft"])},southwest:function(){return s(e,t,["top","alignRight"])},south:function(){return s(-e/2,t,["top","alignCentre"])},northeast:function(){return s(-e,-t,["bottom","alignLeft"])},northwest:function(){return s(e,-t,["bottom","alignRight"])},north:function(){return s(-e/2,-t,["bottom","alignCentre"])},east:function(){return s(e,-t/2,["valignCentre","left"])},west:function(){return s(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return s(o,i,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-o,i,["top","alignRight","inset"])},insetNorth:function(){return s(-o/2,i,["top","alignCentre","inset"])},insetSoutheast:function(){return s(o,-i,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-o,-i,["bottom","alignRight","inset"])},insetSouth:function(){return s(-o/2,-i,["bottom","alignCentre","inset"])},insetEast:function(){return s(-o,-i/2,["valignCentre","right","inset"])},insetWest:function(){return s(o,-i/2,["valignCentre","left","inset"])}}},Hl=function(){return Fl(0,0,{})},Wl=v,Xl=function(e,t){return function(n){return"rtl"===jl(n)?t:e}},jl=function(e){return"rtl"===nn(e,"direction")?"rtl":"ltr"};!function(e){e.TopToBottom="toptobottom",e.BottomToTop="bottomtotop"}(yl||(yl={}));var ql="data-alloy-vertical-dir",Zl=function(e){return Va(e,(function(e){return Le(e)&&jt(e,"data-alloy-vertical-dir")===yl.BottomToTop}))},Yl=function(){return no("layouts",[Vr("onLtr"),Vr("onRtl"),Yr("onBottomLtr"),Yr("onBottomRtl")])},Gl=function(e,t,n,r,o,i,a){var s=a.map(Zl).getOr(!1),l=t.layouts.map((function(t){return t.onLtr(e)})),c=t.layouts.map((function(t){return t.onRtl(e)})),u=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(l).getOr(o):l.getOr(n),d=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(c).getOr(i):c.getOr(r);return Xl(u,d)(e)},Kl=[Vr("hotspot"),Yr("bubble"),ro("overrides",{}),Yl(),cs("placement",(function(e,t,n){var r=t.hotspot,o=gl(n,r.element),i=Gl(e.element,t,Hs(),Ws(),Us(),Fs(),z.some(t.hotspot.element));return z.some(Wl({anchorBox:o,bubble:t.bubble.getOr(Hl()),overrides:t.overrides,layouts:i,placer:z.none()}))}))],Jl=[Vr("x"),Vr("y"),ro("height",0),ro("width",0),ro("bubble",Hl()),ro("overrides",{}),Yl(),cs("placement",(function(e,t,n){var r=vl(n,t.x,t.y),o=Ln(r.left,r.top,t.width,t.height),i=Gl(e.element,t,Ls(),Vs(),Ls(),Vs(),z.none());return z.some(Wl({anchorBox:o,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:z.none()}))}))],ec=po([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),tc=function(e){return e.fold(v,(function(e,t,n){return e.translate(-t,-n)}))},nc=function(e){return e.fold(v,v)},rc=function(e){return Z(e,(function(e,t){return e.translate(t.left,t.top)}),mn(0,0))},oc=function(e){var t=H(e,nc);return rc(t)},ic=ec.screen,ac=ec.absolute,sc=function(e,t,n){var r=xt(e.element),o=$n(r),i=function(e,t,n){var r=Ct(n.root).dom;return z.from(r.frameElement).map(Re).filter((function(t){var n=xt(t),r=xt(e.element);return wt(n,r)})).map(An)}(e,0,n).getOr(o);return ac(i,o.left,o.top)},lc=function(e,t,n,r){var o=ic(mn(e,t));return z.some(function(e,t,n){return{point:e,width:t,height:n}}(o,n,r))},cc=function(e,t,n,r,o){return e.map((function(e){var i,a,s,l,c,u,d,f=[t,e.point],h=(i=function(){return oc(f)},a=function(){return oc(f)},s=function(){return function(e){var t=H(e,tc);return rc(t)}(f)},r.fold(i,a,s)),p=(l=h.left,c=h.top,u=e.width,d=e.height,{x:l,y:c,width:u,height:d}),m=n.showAbove?Us():Hs(),g=n.showAbove?Fs():Ws(),A=Gl(o,n,m,g,m,g,z.none());return Wl({anchorBox:p,bubble:n.bubble.getOr(Hl()),overrides:n.overrides,layouts:A,placer:z.none()})}))},uc=[Vr("node"),Vr("root"),Yr("bubble"),Yl(),ro("overrides",{}),ro("showAbove",!1),cs("placement",(function(e,t,n){var r=sc(e,0,t);return t.node.filter(Vt).bind((function(o){var i=o.dom.getBoundingClientRect(),a=lc(i.left,i.top,i.width,i.height),s=t.node.getOr(e.element);return cc(a,r,t,n,s)}))}))],dc=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},fc=po([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),hc=(fc.before,fc.on,fc.after,function(e){return e.fold(v,v,v)}),pc=po([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),mc={domRange:pc.domRange,relative:pc.relative,exact:pc.exact,exactFromRange:function(e){return pc.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){var t=function(e){return e.match({domRange:function(e){return Re(e.startContainer)},relative:function(e,t){return hc(e)},exact:function(e,t,n,r){return e}})}(e);return Ct(t)},range:dc},gc=function(e,t,n){var r,o=e.document.createRange();return r=o,t.fold((function(e){r.setStartBefore(e.dom)}),(function(e,t){r.setStart(e.dom,t)}),(function(e){r.setStartAfter(e.dom)})),function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))}(o,n),o},Ac=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},vc=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},yc=po([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Oc=function(e,t,n){return t(Re(n.startContainer),n.startOffset,Re(n.endContainer),n.endOffset)},bc=function(e,t){return function(e,t){var n=function(e,t){return t.match({domRange:function(e){return{ltr:A(e),rtl:z.none}},relative:function(t,n){return{ltr:He((function(){return gc(e,t,n)})),rtl:He((function(){return z.some(gc(e,n,t))}))}},exact:function(t,n,r,o){return{ltr:He((function(){return Ac(e,t,n,r,o)})),rtl:He((function(){return z.some(Ac(e,r,o,t,n))}))}}})}(e,t);return function(e,t){var n=t.ltr();return n.collapsed?t.rtl().filter((function(e){return!1===e.collapsed})).map((function(e){return yc.rtl(Re(e.endContainer),e.endOffset,Re(e.startContainer),e.startOffset)})).getOrThunk((function(){return Oc(0,yc.ltr,n)})):Oc(0,yc.ltr,n)}(0,n)}(e,t).match({ltr:function(t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},rtl:function(t,n,r,o){var i=e.document.createRange();return i.setStart(r.dom,o),i.setEnd(t.dom,n),i}})};yc.ltr,yc.rtl;var wc,_c=function(e){var t=function(t){return e(t)?z.from(t.dom.nodeValue):z.none()};return{get:function(n){if(!e(n))throw new Error("Can only get text value of a text node");return t(n).getOr("")},getOption:t,set:function(t,n){if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=n}}}(Ve),xc=function(e){return _c.getOption(e)},Sc=["img","br"],kc=function(e){var t=xc(e).filter((function(e){return 0!==e.trim().length||e.indexOf(" ")>-1})).isSome();return t||L(Sc,Ie(e))},Cc=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return bt(n)?[]:H(n.querySelectorAll(e),Re)}(t,e)},Bc=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return z.some(dc(Re(t.startContainer),t.startOffset,Re(n.endContainer),n.endOffset))}return z.none()},Qc=function(e){if(null===e.anchorNode||null===e.focusNode)return Bc(e);var t=Re(e.anchorNode),n=Re(e.focusNode);return function(e,t,n,r){var o=function(e,t,n,r){var o=xt(e).dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o}(e,t,n,r),i=wt(e,n)&&t===r;return o.collapsed&&!i}(t,e.anchorOffset,n,e.focusOffset)?z.some(dc(t,e.anchorOffset,n,e.focusOffset)):Bc(e)},Tc=function(e,t){return n=bc(e,t),r=n.getClientRects(),(o=r.length>0?r[0]:n.getBoundingClientRect()).width>0||o.height>0?z.some(o).map(vc):z.none();var n,r,o},Ec=function(e,t){return{element:e,offset:t}},Pc=function(e,t){return Ve(e)?Ec(e,t):function(e,t){var n=Tt(e);if(0===n.length)return Ec(e,t);if(t0})).bind(Qc)}(e)}}))().map((function(e){var t=Pc(e.start,e.soffset),n=Pc(e.finish,e.foffset);return mc.range(t.element,t.offset,n.element,n.offset)}))},Mc=[Yr("getSelection"),Vr("root"),Yr("bubble"),Yl(),ro("overrides",{}),ro("showAbove",!1),cs("placement",(function(e,t,n){var r=Ct(t.root).dom,o=sc(e,0,t),i=$c(r,t).bind((function(e){var t=function(e,t){return n=bc(e,t),(r=n.getBoundingClientRect()).width>0||r.height>0?z.some(r).map(vc):z.none();var n,r}(r,mc.exactFromRange(e)).orThunk((function(){var t=ze("\ufeff");Sn(e.start,t);var n=Tc(r,mc.exact(t,0,t,1));return En(t),n}));return t.bind((function(e){return lc(e.left,e.top,e.width,e.height)}))})),a=$c(r,t).bind((function(e){return Le(e.start)?z.some(e.start):function(e){return Bt(e)}(e.start)})),s=a.getOr(e.element);return cc(i,o,t,n,s)}))],zc="link-layout",Rc=function(e){return e.x+e.width},Dc=function(e,t){return e.x-t.width},Ic=function(e,t){return e.y-t.height+e.height},Nc=function(e){return e.y},Lc=function(e,t,n){return fs(Rc(e),Nc(e),n.southeast(),ps(),"southeast",xs(e,{left:0,top:2}),zc)},Vc=function(e,t,n){return fs(Dc(e,t),Nc(e),n.southwest(),ms(),"southwest",xs(e,{right:1,top:2}),zc)},Uc=function(e,t,n){return fs(Rc(e),Ic(e,t),n.northeast(),gs(),"northeast",xs(e,{left:0,bottom:3}),zc)},Fc=function(e,t,n){return fs(Dc(e,t),Ic(e,t),n.northwest(),As(),"northwest",xs(e,{right:1,bottom:3}),zc)},Hc=function(){return[Lc,Vc,Uc,Fc]},Wc=function(){return[Vc,Lc,Fc,Uc]},Xc=[Vr("item"),Yl(),ro("overrides",{}),cs("placement",(function(e,t,n){var r=gl(n,t.item.element),o=Gl(e.element,t,Hc(),Wc(),Hc(),Wc(),z.none());return z.some(Wl({anchorBox:r,bubble:Hl(),overrides:t.overrides,layouts:o,placer:z.none()}))}))],jc=Dr("type",{selection:Mc,node:uc,hotspot:Kl,submenu:Xc,makeshift:Jl}),qc=[Zr("classes",Sr),so("mode","all",["all","layout","placement"])],Zc=[ro("useFixed",_),Yr("getBounds")],Yc=[Ur("anchor",jc),no("transition",qc)],Gc=function(e,t,n,r,o,i,a){return function(e,t,n,r,o,i,a,s){var l=Ll(a,"maxHeightFunction",Il()),c=Ll(a,"maxWidthFunction",m),u=e.anchorBox,d=e.origin,f={bounds:Al(d,i),origin:d,preference:r,maxHeightFunction:l,maxWidthFunction:c,lastPlacement:o,transition:s};return Vl(u,t,n,f)}(function(e,t){return function(e,t){return{anchorBox:e,origin:t}}(e,t)}(n.anchorBox,t),o.element,n.bubble,n.layouts,i,r,n.overrides,a)},Kc=function(e,t,n,r,o,i){var a=i.map(Vn);return Jc(e,t,n,r,o,a)},Jc=function(e,t,n,r,o,i){var a=zr("placement.info",Ar(Yc),o),s=a.anchor,l=r.element,c=n.get(r.uid);ul((function(){Jt(l,"position","fixed");var o=on(l,"visibility");Jt(l,"visibility","hidden");var u,d=t.useFixed()?(u=document.documentElement,bl(0,0,u.clientWidth,u.clientHeight)):function(e){var t=An(e.element),n=e.element.dom.getBoundingClientRect();return Ol(t.left,t.top,n.width,n.height)}(e),f=s.placement,h=i.map(A).or(t.getBounds);f(e,s,d).each((function(t){var o=t.placer.getOr(Gc)(e,d,t,h,r,c,a.transition);n.set(r.uid,o)})),o.fold((function(){ln(l,"visibility")}),(function(e){Jt(l,"visibility",e)})),on(l,"left").isNone()&&on(l,"top").isNone()&&on(l,"right").isNone()&&on(l,"bottom").isNone()&&we(on(l,"position"),"fixed")&&ln(l,"position")}),l)},eu=Object.freeze({__proto__:null,position:function(e,t,n,r,o){Kc(e,t,n,r,o,z.none())},positionWithin:Kc,positionWithinBounds:Jc,getMode:function(e,t,n){return t.useFixed()?"fixed":"absolute"},reset:function(e,t,n,r){var o=r.element;W(["position","left","right","top","bottom"],(function(e){return ln(o,e)})),function(e){Yt(e,wl)}(o),n.clear(r.uid)}}),tu=Object.freeze({__proto__:null,init:function(){var e={};return ua({readState:function(){return e},clear:function(t){d(t)?delete e[t]:e={}},set:function(t,n){e[t]=n},get:function(t){return ye(e,t)}})}}),nu=Js({fields:Zc,name:"positioning",active:ol,apis:eu,state:tu}),ru=function(e){yi(e,ui());var t=e.components();W(t,ru)},ou=function(e){var t=e.components();W(t,ou),yi(e,ci())},iu=function(e,t){Bn(e.element,t.element)},au=function(e,t){var n=e.components();!function(e){W(e.components(),(function(e){return En(e.element)})),Tn(e.element),e.syncComponents()}(e);var r=ne(n,t);W(r,(function(t){ru(t),e.getSystem().removeFromWorld(t)})),W(t,(function(t){t.getSystem().isConnected()?iu(e,t):(e.getSystem().addToWorld(t),iu(e,t),Vt(e.element)&&ou(t)),e.syncComponents()}))},su=function(e,t){lu(e,t,Bn)},lu=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Vt(e.element)&&ou(t),e.syncComponents()},cu=function(e){ru(e),En(e.element),e.getSystem().removeFromWorld(e)},uu=function(e){var t=Bt(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));cu(e),t.each((function(e){e.syncComponents()}))},du=function(e){var t=e.components();W(t,cu),Tn(e.element),e.syncComponents()},fu=function(e,t){hu(e,t,Bn)},hu=function(e,t,n){n(e,t.element);var r=Tt(t.element);W(r,(function(e){t.getByDom(e).each(ou)}))},pu=function(e){var t=Tt(e.element);W(t,(function(t){e.getByDom(t).each(ru)})),En(e.element)},mu=function(e,t,n,r){n.get().each((function(t){du(e)}));var o=t.getAttachPoint(e);su(o,e);var i=e.getSystem().build(r);return su(e,i),n.set(i),i},gu=function(e,t,n,r){var o=mu(e,t,n,r);return t.onOpen(e,o),o},Au=function(e,t,n){n.get().each((function(r){du(e),uu(e),t.onClose(e,r),n.clear()}))},vu=function(e,t,n){return n.isOpen()},yu=function(e,t,n){var r=t.getAttachPoint(e);Jt(e.element,"position",nu.getMode(r)),function(e,t,n){on(e.element,t).fold((function(){Yt(e.element,n)}),(function(t){Wt(e.element,n,t)})),Jt(e.element,t,"hidden")}(e,"visibility",t.cloakVisibilityAttr)},Ou=function(e,t,n){(function(e){return V(["top","left","right","bottom"],(function(t){return on(e,t).isSome()}))})(e.element)||ln(e.element,"position"),function(e,t,n){qt(e.element,n).fold((function(){return ln(e.element,t)}),(function(n){return Jt(e.element,t,n)}))}(e,"visibility",t.cloakVisibilityAttr)},bu=Object.freeze({__proto__:null,cloak:yu,decloak:Ou,open:gu,openWhileCloaked:function(e,t,n,r,o){yu(e,t),gu(e,t,n,r),o(),Ou(e,t)},close:Au,isOpen:vu,isPartOf:function(e,t,n,r){return vu(0,0,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},getState:function(e,t,n){return n.get()},setContent:function(e,t,n,r){return n.get().map((function(){return mu(e,t,n,r)}))}}),wu=Object.freeze({__proto__:null,events:function(e,t){return Si([Bi(ni(),(function(n,r){Au(n,e,t)}))])}}),_u=[is("onOpen"),is("onClose"),Vr("isPartOf"),Vr("getAttachPoint"),ro("cloakVisibilityAttr","data-precloak-visibility")],xu=Object.freeze({__proto__:null,init:function(){var e=Ql(),t=A("not-implemented");return ua({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})}}),Su=Js({fields:_u,name:"sandboxing",active:wu,apis:bu,state:xu}),ku=A("dismiss.popups"),Cu=A("reposition.popups"),Bu=A("mouse.released"),Qu=gr([ro("isExtraPart",_),no("fireEventInstead",[ro("event",di())])]),Tu=function(e){var t,n=zr("Dismissal",Qu,e);return(t={})[ku()]={schema:gr([Vr("target")]),onReceive:function(e,t){Su.isOpen(e)&&(Su.isPartOf(e,t.target)||n.isExtraPart(e,t.target)||n.fireEventInstead.fold((function(){return Su.close(e)}),(function(t){return yi(e,t.event)})))}},t},Eu=gr([no("fireEventInstead",[ro("event",fi())]),Xr("doReposition")]),Pu=function(e){var t,n=zr("Reposition",Eu,e);return(t={})[Cu()]={onReceive:function(e){Su.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return yi(e,t.event)}))}},t},$u=function(e,t,n){t.store.manager.onLoad(e,t,n)},Mu=function(e,t,n){t.store.manager.onUnload(e,t,n)},zu=Object.freeze({__proto__:null,onLoad:$u,onUnload:Mu,setValue:function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},getValue:function(e,t,n){return t.store.manager.getValue(e,t,n)},getState:function(e,t,n){return n}}),Ru=Object.freeze({__proto__:null,events:function(e,t){var n=e.resetOnDom?[Ri((function(n,r){$u(n,e,t)})),Di((function(n,r){Mu(n,e,t)}))]:[qs(e,t,$u)];return Si(n)}}),Du=function(){var e=ho(null);return ua({set:e.set,get:e.get,isNotSet:function(){return null===e.get()},clear:function(){e.set(null)},readState:function(){return{mode:"memory",value:e.get()}}})},Iu=function(){var e=ho({}),t=ho({});return ua({readState:function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},lookup:function(n){return ye(e.get(),n).orThunk((function(){return ye(t.get(),n)}))},update:function(n){var r=e.get(),o=t.get(),i={},a={};W(n,(function(e){i[e.value]=e,ye(e,"meta").each((function(t){ye(t,"text").each((function(t){a[t]=e}))}))})),e.set(k(k({},r),i)),t.set(k(k({},o),a))},clear:function(){e.set({}),t.set({})}})},Nu=Object.freeze({__proto__:null,memory:Du,dataset:Iu,manual:function(){return ua({readState:m})},init:function(e){return e.store.manager.state(e)}}),Lu=function(e,t,n,r){var o=t.store;n.update([r]),o.setValue(e,r),t.onSetValue(e,r)},Vu=[Yr("initialValue"),Vr("getFallbackEntry"),Vr("getDataKey"),Vr("setValue"),cs("manager",{setValue:Lu,getValue:function(e,t,n){var r=t.store,o=r.getDataKey(e);return n.lookup(o).getOrThunk((function(){return r.getFallbackEntry(o)}))},onLoad:function(e,t,n){t.store.initialValue.each((function(r){Lu(e,t,n,r)}))},onUnload:function(e,t,n){n.clear()},state:Iu})],Uu=[Vr("getValue"),ro("setValue",m),Yr("initialValue"),cs("manager",{setValue:function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},getValue:function(e,t,n){return t.store.getValue(e)},onLoad:function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},onUnload:m,state:ca.init})],Fu=[Yr("initialValue"),cs("manager",{setValue:function(e,t,n,r){n.set(r),t.onSetValue(e,r)},getValue:function(e,t,n){return n.get()},onLoad:function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},onUnload:function(e,t,n){n.clear()},state:Du})],Hu=[oo("store",{mode:"memory"},Dr("mode",{memory:Fu,manual:Uu,dataset:Vu})),is("onSetValue"),ro("resetOnDom",!1)],Wu=Js({fields:Hu,name:"representing",active:Ru,apis:zu,extra:{setValueFrom:function(e,t){var n=Wu.getValue(t);Wu.setValue(e,n)}},state:Nu}),Xu=function(e,t){return fo(e,{},H(t,(function(t){return n=t.name(),r="Cannot configure "+t.name()+" for "+e,Ir(n,n,{tag:"option",process:{}},ur((function(e){return Gn("The field: "+n+" is forbidden. "+r)})));var n,r})).concat([Nr("dump",v)]))},ju=function(e){return e.dump},qu=function(e,t){return k(k({},Gs(t)),e.dump)},Zu=Xu,Yu=qu,Gu="placeholder",Ku=po([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Ju=function(e){return Oe(e,"uiType")},ed=function(e,t,n,r){return function(e,t,n,r){return Ju(n)&&n.uiType===Gu?function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?Ku.single(!0,A(n)):ye(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+de(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))}(e,0,n,r):Ku.single(!1,A(n))}(e,0,n,r).fold((function(o,i){var a=Ju(n)?i(t,n.config,n.validated):i(t),s=ye(a,"components").getOr([]),l=J(s,(function(n){return ed(e,t,n,r)}));return[k(k({},a),{components:l})]}),(function(e,r){if(Ju(n)){var o=r(t,n.config,n.validated);return n.validated.preprocess.getOr(v)(o)}return r(t)}))},td=Ku.single,nd=Ku.multiple,rd=A(Gu),od=po([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),id=ro("factory",{sketch:v}),ad=ro("schema",[]),sd=Vr("name"),ld=Ir("pname","pname",or((function(e){return""})),wr()),cd=Nr("schema",(function(){return[Yr("preprocess")]})),ud=ro("defaults",A({})),dd=ro("overrides",A({})),fd=Ar([id,ad,sd,ld,ud,dd]),hd=Ar([id,ad,sd,ud,dd]),pd=Ar([id,ad,sd,ld,ud,dd]),md=Ar([id,cd,sd,Vr("unit"),ld,ud,dd]),gd=function(e){return e.fold(z.some,z.none,z.some,z.some)},Ad=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},vd=function(e,t){return function(n){var r=zr("Converting part type",t,n);return e(r)}},yd=vd(od.required,fd),Od=vd(od.external,hd),bd=vd(od.optional,pd),wd=vd(od.group,md),_d=A("entirety"),xd=Object.freeze({__proto__:null,required:yd,external:Od,optional:bd,group:wd,asNamedPart:gd,name:Ad,asCommon:function(e){return e.fold(v,v,v,v)},original:_d}),Sd=function(e,t,n,r){return nr(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},kd=function(e,t){var n={};return W(t,(function(t){gd(t).each((function(t){var r=Cd(e,t.pname);n[t.name]=function(n){var o=zr("Part: "+t.name+" in "+e,Ar(t.schema),n);return k(k({},r),{config:n,validated:o})}}))})),n},Cd=function(e,t){return{uiType:rd(),owner:e,name:t}},Bd=function(e,t,n){return{uiType:rd(),owner:e,name:t,config:n,validated:{}}},Qd=function(e){return J(e,(function(e){return e.fold(z.none,z.some,z.none,z.none).map((function(e){return jr(e.name,e.schema.concat([us(_d())]))})).toArray()}))},Td=function(e){return H(e,Ad)},Ed=function(e,t,n){return function(e,t,n){var r={},o={};return W(n,(function(e){e.fold((function(e){r[e.pname]=td(!0,(function(t,n,r){return e.factory.sketch(Sd(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];o[e.name]=A(e.factory.sketch(Sd(t,e,n[_d()]),n))}),(function(e){r[e.pname]=td(!1,(function(t,n,r){return e.factory.sketch(Sd(t,e,n,r))}))}),(function(e){r[e.pname]=nd(!0,(function(t,n,r){var o=t[e.name];return H(o,(function(n){return e.factory.sketch(nr(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:A(r),externals:A(o)}}(0,t,n)},Pd=function(e,t,n){return function(e,t,n,r){var o=pe(r,(function(e,t){return r=e,o=!1,{name:A(n=t),required:function(){return r.fold((function(e,t){return e}),(function(e,t){return e}))},used:function(){return o},replace:function(){if(o)throw new Error("Trying to use the same placeholder more than once: "+n);return o=!0,r}};var n,r,o})),i=function(e,t,n,r){return J(n,(function(n){return ed(e,t,n,r)}))}(e,t,n,o);return he(o,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),i}(z.some(e),t,t.components,n)},$d=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Md=function(e,t,n){return $d(e,t,n).getOrDie("Could not find part: "+n)},zd=function(e,t,n){var r={},o=t.partUids,i=e.getSystem();return W(n,(function(e){r[e]=A(i.getByUid(o[e]))})),r},Rd=function(e,t){var n=e.getSystem();return pe(t.partUids,(function(e,t){return A(n.getByUid(e))}))},Dd=function(e){return de(e.partUids)},Id=function(e,t,n){var r={},o=t.partUids,i=e.getSystem();return W(n,(function(e){r[e]=A(i.getByUid(o[e]).getOrDie())})),r},Nd=function(e,t){var n=Td(t);return vo(H(n,(function(t){return{key:t,value:e+"-"+t}})))},Ld=function(e){return Ir("partUids","partUids",ar((function(t){return Nd(t.uid,e)})),wr())},Vd=Object.freeze({__proto__:null,generate:kd,generateOne:Bd,schemas:Qd,names:Td,substitutes:Ed,components:Pd,defaultUids:Nd,defaultUidsSchema:Ld,getAllParts:Rd,getAllPartNames:Dd,getPart:$d,getPartOrDie:Md,getParts:zd,getPartsOrDie:Id}),Ud=function(e,t,n,r,o){var i=function(e,t){return(e.length>0?[jr("parts",e)]:[]).concat([Vr("uid"),ro("dom",{}),ro("components",[]),us("originalSpec"),ro("debug.sketcher",{})]).concat(t)}(r,o);return zr(e+" [SpecSchema]",gr(i.concat(t)),n)},Fd=function(e,t,n,r,o){var i=Hd(o),a=Qd(n),s=Ld(n),l=Ud(e,t,i,a,[s]),c=Ed(0,l,n);return r(l,Pd(e,l,c.internals()),i,c.externals())},Hd=function(e){return function(e){return Oe(e,"uid")}(e)?e:k(k({},e),{uid:ea("uid")})},Wd=gr([Vr("name"),Vr("factory"),Vr("configFields"),ro("apis",{}),ro("extraApis",{})]),Xd=gr([Vr("name"),Vr("factory"),Vr("configFields"),Vr("partFields"),ro("apis",{}),ro("extraApis",{})]),jd=function(e){var t=zr("Sketcher for "+e.name,Wd,e),n=pe(t.apis,la),r=pe(t.extraApis,(function(e,t){return ia(e,t)}));return k(k({name:t.name,configFields:t.configFields,sketch:function(e){return function(e,t,n,r){var o=Hd(r);return n(Ud(e,t,o,[],[]),o)}(t.name,t.configFields,t.factory,e)}},n),r)},qd=function(e){var t=zr("Sketcher for "+e.name,Xd,e),n=kd(t.name,t.partFields),r=pe(t.apis,la),o=pe(t.extraApis,(function(e,t){return ia(e,t)}));return k(k({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:function(e){return Fd(t.name,t.configFields,t.partFields,t.factory,e)},parts:n},r),o)},Zd=function(e){return"input"===Ie(e)&&"radio"!==jt(e,"type")||"textarea"===Ie(e)},Yd=Object.freeze({__proto__:null,getCurrent:function(e,t,n){return t.find(e)}}),Gd=[Vr("find")],Kd=Js({fields:Gd,name:"composing",apis:Yd}),Jd=["input","button","textarea","select"],ef=function(e,t,n){(t.disabled()?sf:lf)(e,t)},tf=function(e,t){return!0===t.useNative&&L(Jd,Ie(e.element))},nf=function(e){Wt(e.element,"disabled","disabled")},rf=function(e){Yt(e.element,"disabled")},of=function(e){Wt(e.element,"aria-disabled","true")},af=function(e){Wt(e.element,"aria-disabled","false")},sf=function(e,t,n){t.disableClass.each((function(t){wa(e.element,t)})),(tf(e,t)?nf:of)(e),t.onDisabled(e)},lf=function(e,t,n){t.disableClass.each((function(t){_a(e.element,t)})),(tf(e,t)?rf:af)(e),t.onEnabled(e)},cf=function(e,t){return tf(e,t)?function(e){return Zt(e.element,"disabled")}(e):function(e){return"true"===jt(e.element,"aria-disabled")}(e)},uf=Object.freeze({__proto__:null,enable:lf,disable:sf,isDisabled:cf,onLoad:ef,set:function(e,t,n,r){(r?sf:lf)(e,t)}}),df=Object.freeze({__proto__:null,exhibit:function(e,t){return fa({classes:t.disabled()?t.disableClass.toArray():[]})},events:function(e,t){return Si([ki(Ko(),(function(t,n){return cf(t,e)})),qs(e,t,ef)])}}),ff=[co("disabled",_),ro("useNative",!0),Yr("disableClass"),is("onDisabled"),is("onEnabled")],hf=Js({fields:ff,name:"disabling",active:df,apis:uf}),pf=function(e,t,n,r){var o=Cc(e.element,"."+t.highlightClass);W(o,(function(n){V(r,(function(e){return e.element===n}))||(_a(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),yi(n,vi())})))}))},mf=function(e,t,n,r){pf(e,t,0,[r]),gf(e,t,n,r)||(wa(r.element,t.highlightClass),t.onHighlight(e,r),yi(r,Ai()))},gf=function(e,t,n,r){return xa(r.element,t.highlightClass)},Af=function(e,t,n){return Ha(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},vf=function(e,t,n){var r=Cc(e.element,"."+t.itemClass);return(r.length>0?z.some(r[r.length-1]):z.none()).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},yf=function(e,t,n,r){var o=Cc(e.element,"."+t.itemClass);return G(o,(function(e){return xa(e,t.highlightClass)})).bind((function(t){var n=ws(t,r,0,o.length-1);return e.getSystem().getByDom(o[n]).toOptional()}))},Of=function(e,t,n){var r=Cc(e.element,"."+t.itemClass);return _e(H(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},bf=Object.freeze({__proto__:null,dehighlightAll:function(e,t,n){return pf(e,t,0,[])},dehighlight:function(e,t,n,r){gf(e,t,n,r)&&(_a(r.element,t.highlightClass),t.onDehighlight(e,r),yi(r,vi()))},highlight:mf,highlightFirst:function(e,t,n){Af(e,t).each((function(r){mf(e,t,n,r)}))},highlightLast:function(e,t,n){vf(e,t).each((function(r){mf(e,t,n,r)}))},highlightAt:function(e,t,n,r){(function(e,t,n,r){var o=Cc(e.element,"."+t.itemClass);return z.from(o[r]).fold((function(){return Xn.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)})(e,t,0,r).fold((function(e){throw e}),(function(r){mf(e,t,n,r)}))},highlightBy:function(e,t,n,r){var o=Of(e,t);Y(o,r).each((function(r){mf(e,t,n,r)}))},isHighlighted:gf,getHighlighted:function(e,t,n){return Ha(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},getFirst:Af,getLast:vf,getPrevious:function(e,t,n){return yf(e,t,0,-1)},getNext:function(e,t,n){return yf(e,t,0,1)},getCandidates:Of}),wf=[Vr("highlightClass"),Vr("itemClass"),is("onHighlight"),is("onDehighlight")],_f=Js({fields:wf,name:"highlighting",apis:bf}),xf=[8],Sf=[9],kf=[13],Cf=[27],Bf=[32],Qf=[37],Tf=[38],Ef=[39],Pf=[40],$f=function(e,t,n){var r=te(e.slice(0,t)),o=te(e.slice(t+1));return Y(r.concat(o),n)},Mf=function(e,t,n){var r=te(e.slice(0,t));return Y(r,n)},zf=function(e,t,n){var r=e.slice(0,t),o=e.slice(t+1);return Y(o.concat(r),n)},Rf=function(e,t,n){var r=e.slice(t+1);return Y(r,n)},Df=function(e){return function(t){var n=t.raw;return L(e,n.which)}},If=function(e){return function(t){return ee(e,(function(e){return e(t)}))}},Nf=function(e){return!0===e.raw.shiftKey},Lf=function(e){return!0===e.raw.ctrlKey},Vf=b(Nf),Uf=function(e,t){return{matches:e,classification:t}},Ff=function(e,t,n){t.exists((function(e){return n.exists((function(t){return wt(t,e)}))}))||Oi(e,hi(),{prevFocus:t,newFocus:n})},Hf=function(){var e=function(e){return cl(e.element)};return{get:e,set:function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var o=e(t);Ff(t,r,o)}}},Wf=function(){var e=function(e){return _f.getHighlighted(e).map((function(e){return e.element}))};return{get:e,set:function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(m,(function(e){_f.highlight(t,e)}));var o=e(t);Ff(t,r,o)}}};!function(e){e.OnFocusMode="onFocus",e.OnEnterOrSpaceMode="onEnterOrSpace",e.OnApiMode="onApi"}(wc||(wc={}));var Xf,jf=function(e,t,n,r,o){var i=function(e,t,n,r,o){var i,a,s;return(i=n(e,t,r,o),a=t.event,s=Y(i,(function(e){return e.matches(a)})),s.map((function(e){return e.classification}))).bind((function(n){return n(e,t,r,o)}))},a={schema:function(){return e.concat([ro("focusManager",Hf()),oo("focusInside","onFocus",Er((function(e){return L(["onFocus","onEnterOrSpace","onApi"],e)?Xn.value(e):Xn.error("Invalid value for focusInside")}))),cs("handler",a),cs("state",t),cs("sendFocusIn",o)])},processKey:i,toEvents:function(e,t){var a=e.focusInside!==wc.OnFocusMode?z.none():o(e).map((function(n){return Bi(qo(),(function(r,o){n(r,e,t),o.stop()}))})),s=[Bi(Do(),(function(r,a){i(r,a,n,e,t).fold((function(){!function(n,r){var i=Df(Bf.concat(kf))(r.event);e.focusInside===wc.OnEnterOrSpaceMode&&i&&wo(n,r)&&o(e).each((function(o){o(n,e,t),r.stop()}))}(r,a)}),(function(e){a.stop()}))})),Bi(Io(),(function(n,o){i(n,o,r,e,t).each((function(e){o.stop()}))}))];return Si(a.toArray().concat(s))}};return a},qf=function(e){var t=[Yr("onEscape"),Yr("onEnter"),ro("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),ro("firstTabstop",0),ro("useTabstopAt",x),Yr("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return Wa(t,e)})).getOr(t);return fn(n)>0},r=function(e,t,r){(function(e,t){var r=Cc(e.element,t.selector),o=j(r,(function(e){return n(t,e)}));return z.from(o[t.firstTabstop])})(e,t).each((function(n){t.focusManager.set(e,n)}))},o=function(e,t,r,o){var i=Cc(e.element,r.selector);return function(e,t){return t.focusManager.get(e).bind((function(e){return Wa(e,t.selector)}))}(e,r).bind((function(t){return G(i,O(wt,t)).bind((function(t){return function(e,t,r,o,i){return i(t,r,(function(e){return function(e,t){return n(e,t)&&e.useTabstopAt(t)}(o,e)})).fold((function(){return o.cyclic?z.some(!0):z.none()}),(function(t){return o.focusManager.set(e,t),z.some(!0)}))}(e,i,t,r,o)}))}))},i=A([Uf(If([Nf,Df(Sf)]),(function(e,t,n){var r=n.cyclic?$f:Mf;return o(e,0,n,r)})),Uf(Df(Sf),(function(e,t,n){var r=n.cyclic?zf:Rf;return o(e,0,n,r)})),Uf(Df(Cf),(function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))})),Uf(If([Vf,Df(kf)]),(function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))}))]),a=A([]);return jf(t,ca.init,i,a,(function(){return z.some(r)}))},Zf=qf(Nr("cyclic",_)),Yf=qf(Nr("cyclic",x)),Gf=function(e,t,n){return Zd(n)&&Df(Bf)(t.event)?z.none():function(e,t,n){return wi(e,n,Ko()),z.some(!0)}(e,0,n)},Kf=function(e,t){return z.some(!0)},Jf=[ro("execute",Gf),ro("useSpace",!1),ro("useEnter",!0),ro("useControlEnter",!1),ro("useDown",!1)],eh=function(e,t,n){return n.execute(e,t,e.element)},th=jf(Jf,ca.init,(function(e,t,n,r){var o=n.useSpace&&!Zd(e.element)?Bf:[],i=n.useEnter?kf:[],a=n.useDown?Pf:[],s=o.concat(i).concat(a);return[Uf(Df(s),eh)].concat(n.useControlEnter?[Uf(If([Lf,Df(kf)]),eh)]:[])}),(function(e,t,n,r){return n.useSpace&&!Zd(e.element)?[Uf(Df(Bf),Kf)]:[]}),(function(){return z.none()})),nh=function(){var e=Ql();return ua({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:function(t,n){e.set({numRows:t,numColumns:n})},getNumRows:function(){return e.get().map((function(e){return e.numRows}))},getNumColumns:function(){return e.get().map((function(e){return e.numColumns}))}})},rh=Object.freeze({__proto__:null,flatgrid:nh,init:function(e){return e.state(e)}}),oh=function(e){return function(t,n,r,o){var i=e(t.element);return lh(i,t,n,r,o)}},ih=function(e,t){var n=Xl(e,t);return oh(n)},ah=function(e,t){var n=Xl(t,e);return oh(n)},sh=function(e){return function(t,n,r,o){return lh(e,t,n,r,o)}},lh=function(e,t,n,r,o){return r.focusManager.get(t).bind((function(n){return e(t.element,n,r,o)})).map((function(e){return r.focusManager.set(t,e),!0}))},ch=sh,uh=sh,dh=sh,fh=function(e){return!function(e){return e.offsetWidth<=0&&e.offsetHeight<=0}(e.dom)},hh=function(e,t,n){var r=Cc(e,n);return function(e){return G(e,(function(e){return wt(e,t)})).map((function(t){return{index:t,candidates:e}}))}(j(r,fh))},ph=function(e,t){return G(e,(function(e){return wt(t,e)}))},mh=function(e,t,n,r){return r(Math.floor(t/n),t%n).bind((function(t){var r=t.row*n+t.column;return r>=0&&r1?z.some(e.slice(1)):z.none()}))},lookupMenu:a,lookupItem:s,otherMenus:function(e){var t=o.get();return ne(de(t),e)},getPrimary:function(){return r.get().bind(i)},getMenus:function(){return t.get()},clear:function(){e.set({}),t.set({}),n.set({}),r.clear()},isClear:function(){return r.get().isNone()},getTriggeringPath:function(t,o){var a=j(s(t).toArray(),(function(e){return i(e).isSome()}));return ye(n.get(),t).bind((function(t){var n=te(a.concat(t));return function(e){for(var t=[],n=0;n',e.getDoc());return Bn(n,Re(t.extractContents())),t.insertNode(n.dom),Bt(n).each((function(e){return e.dom.normalize()})),function(e){return t=kc,n=function(e){for(var r=Tt(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return z.some(i);var a=n(i);if(a.isSome())return a}return z.none()},n(e);var t,n}(n).map((function(t){e.selection.setCursorLocation(t.dom,function(e){return"img"===Ie(e)?1:xc(e).fold((function(){return Tt(e).length}),(function(e){return e.length}))}(t))})),n}))},Jm=function(e){return Wa(e,"[data-mce-autocompleter]")},eg=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},tg=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},ng=function(e,t){return e.substring(t.length)},rg=function(e,t,n,r){return void 0===r&&(r=0),Jm(Re(t.startContainer)).fold((function(){return function(e,t,n,r){if(void 0===r&&(r=0),!(o=t).collapsed||3!==o.startContainer.nodeType)return z.none();var o,i=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return Gm(e,t.startContainer,t.startOffset,(function(e,t,r){return function(e,t,n){var r;for(r=t-1;r>=0;r--){var o=e.charAt(r);if(tg(o))return z.none();if(o===n)break}return z.some(r)}(r,t,n).getOr(t)}),i).bind((function(e){var o=t.cloneRange();if(o.setStart(e.container,e.offset),o.setEnd(t.endContainer,t.endOffset),o.collapsed)return z.none();var i=eg(o);return 0!==i.lastIndexOf(n)||ng(i,n).length0?ag(t[t.length-1]):ig(e,t.length)},sg=function(e,t){var n=e.childNodes;return n.length>0&&t0&&function(e){return 1===e.nodeType}(e)&&n.length===t?ag(n[n.length-1]):ig(e,t)},lg=function(e,t,n,r){void 0===r&&(r={});var o=t(),i=e.selection.getRng().startContainer.nodeValue,a=j(o.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return function(e){return function(t){var n=sg(t.startContainer,t.startOffset);return!function(e,t){return Gm(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!tg(t)})).isSome()}(e,n)}}(e.dom)}))(n.range,i,n.text)}));if(0===a.length)return z.none();var s=og.all(H(a,(function(e){return e.fetch(n.text,e.maxResults,r).then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return z.some({lookupData:s,context:n})},cg=Ar([Hr("type"),Jr("text")]),ug=Ar([ro("type","autocompleteitem"),ro("active",!1),ro("disabled",!1),ro("meta",{}),Hr("value"),Jr("text"),Jr("icon")]),dg=Ar([Hr("type"),Hr("ch"),io("minChars",1),ro("columns",1),io("maxResults",10),eo("matches"),Xr("fetch"),Xr("onAction"),uo("highlightOn",[],Sr)]),fg=[lo("disabled",!1),Jr("tooltip"),Jr("icon"),Jr("text"),co("onSetup",(function(){return m}))],hg=Ar([Hr("type"),Xr("onAction")].concat(fg)),pg=function(e){return $r("toolbarbutton",hg,e)},mg=[lo("active",!1)].concat(fg),gg=Ar(mg.concat([Hr("type"),Xr("onAction")])),Ag=function(e){return $r("ToggleButton",gg,e)},vg=[co("predicate",_),so("scope","node",["node","editor"]),so("position","selection",["node","selection","line"])],yg=fg.concat([ro("type","contextformbutton"),ro("primary",!1),Xr("onAction"),Nr("original",v)]),Og=mg.concat([ro("type","contextformbutton"),ro("primary",!1),Xr("onAction"),Nr("original",v)]),bg=fg.concat([ro("type","contextformbutton")]),wg=mg.concat([ro("type","contextformtogglebutton")]),_g=Dr("type",{contextformbutton:yg,contextformtogglebutton:Og}),xg=Ar([ro("type","contextform"),co("initValue",A("")),Jr("label"),Zr("commands",_g),Gr("launch",Dr("type",{contextformbutton:bg,contextformtogglebutton:wg}))].concat(vg)),Sg=Ar([ro("type","contexttoolbar"),Hr("items")].concat(vg));!function(e){e[e.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",e[e.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"}(qm||(qm={}));var kg,Cg=qm,Bg="tox-menu-nav__js",Qg="tox-collection__item",Tg="tox-swatch",Eg={normal:Bg,color:Tg},Pg="tox-collection__item--enabled",$g="tox-collection__item-icon",Mg="tox-collection__item-label",zg="tox-collection__item-caret",Rg="tox-collection__item--active",Dg="tox-collection__item-container",Ig="tox-collection__item-container--row",Ng=function(e){return ye(Eg,e).getOr(Bg)},Lg=function(e){return"color"===e?"tox-swatches":"tox-menu"},Vg=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Lg(e),tieredMenu:"tox-tiered-menu"}},Ug=function(e){var t=Vg(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:Ng(e)}},Fg=function(e,t,n){var r=Vg(n);return{tag:"div",classes:K([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},Hg=[am.parts.items({})],Wg=function(e,t,n){var r=Vg(n);return{dom:{tag:"div",classes:K([[r.tieredMenu]])},markers:Ug(n)}},Xg=function(e,t){return function(n){var r=F(n,t);return H(r,(function(t){return{dom:e,components:t}}))}},jg=function(e,t){var n=[],r=[];return W(e,(function(e,o){t(e,o)?(r.length>0&&n.push(r),r=[],Oe(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),H(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},qg=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[am.parts.items({preprocess:function(n){return"auto"!==e&&e>1?Xg({tag:"div",classes:["tox-collection__group"]},e)(n):jg(n,(function(e,n){return"separator"===t[n].type}))}})]}},Zg=function(e){return V(e,(function(e){return"icon"in e&&void 0!==e.icon}))},Yg=function(e){return console.error(Rr(e)),console.log(e),z.none()},Gg=function(e,t,n,r,o){var i,a=(i=n,{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[am.parts.items({preprocess:function(e){return jg(e,(function(e,t){return"separator"===i[t].type}))}})]});return{value:e,dom:a.dom,components:a.components,items:n}},Kg=function(e,t,n,r,o){if("color"===o){var i=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[am.parts.items({preprocess:"auto"!==e?Xg({tag:"div",classes:["tox-swatches__row"]},e):v})]}]}}(r);return{value:e,dom:i.dom,components:i.components,items:n}}return"normal"===o&&"auto"===r?{value:e,dom:(i=qg(r,n)).dom,components:i.components,items:n}:"normal"===o&&1===r?{value:e,dom:(i=qg(1,n)).dom,components:i.components,items:n}:"normal"===o?{value:e,dom:(i=qg(r,n)).dom,components:i.components,items:n}:"listpreview"===o&&"auto"!==r?(i=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[am.parts.items({preprocess:Xg({tag:"div",classes:["tox-collection__group"]},e)})]}}(r),{value:e,dom:i.dom,components:i.components,items:n}):{value:e,dom:Fg(t,r,o),components:Hg,items:n}},Jg=[Hr("type"),Hr("src"),Jr("alt"),uo("classes",[],Sr)],eA=Ar(Jg),tA=[Hr("type"),Hr("text"),Jr("name"),uo("classes",["tox-collection__item-label"],Sr)],nA=Ar(tA),rA=pr((function(){return Tr("type",{cardimage:eA,cardtext:nA,cardcontainer:oA})})),oA=Ar([Hr("type"),ao("direction","horizontal"),ao("align","left"),ao("valign","middle"),Zr("items",rA)]),iA=[lo("disabled",!1),Jr("text"),Jr("shortcut"),Ir("value","value",or((function(){return ji("menuitem-value")})),wr()),ro("meta",{})],aA=Ar([Hr("type"),Jr("label"),Zr("items",rA),co("onSetup",(function(){return m})),co("onAction",m)].concat(iA)),sA=Ar([Hr("type"),lo("active",!1),Jr("icon")].concat(iA)),lA=[Hr("type"),Hr("fancytype"),co("onAction",m)],cA=[ro("initData",{})].concat(lA),uA=[fo("initData",{},[lo("allowCustomColors",!0),to("colors",wr())])].concat(lA),dA=Dr("fancytype",{inserttable:cA,colorswatch:uA}),fA=Ar([Hr("type"),co("onSetup",(function(){return m})),co("onAction",m),Jr("icon")].concat(iA)),hA=Ar([Hr("type"),Xr("getSubmenuItems"),co("onSetup",(function(){return m})),Jr("icon")].concat(iA)),pA=Ar([Hr("type"),Jr("icon"),lo("active",!1),co("onSetup",(function(){return m})),Xr("onAction")].concat(iA)),mA=function(e,t,n){var r=Cc(e.element,"."+n);if(r.length>0){var o=G(r,(function(e){var n=e.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>t})).getOr(r.length);return z.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return z.none()},gA=function(e){return function(e,t){return Gs([Sp(e,t)])}(ji("unnamed-events"),e)},AA=ji("tooltip.exclusive"),vA=ji("tooltip.show"),yA=ji("tooltip.hide"),OA=function(e,t,n){e.getSystem().broadcastOn([AA],{})},bA=Object.freeze({__proto__:null,hideAllExclusive:OA,setComponents:function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&xp.set(e,r)}))}}),wA=Object.freeze({__proto__:null,events:function(e,t){var n=function(n){t.getTooltip().each((function(r){uu(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()};return Si(K([[Bi(vA,(function(n){t.resetTimer((function(){!function(n){if(!t.isShowing()){OA(n);var r=e.lazySink(n).getOrDie(),o=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Si("normal"===e.mode?[Bi(Mo(),(function(e){yi(n,vA)})),Bi(Po(),(function(e){yi(n,yA)}))]:[]),behaviours:Gs([xp.config({})])});t.setTooltip(o),su(r,o),e.onShow(n,o),nu.position(r,o,{anchor:e.anchor(n)})}}(n)}),e.delay)})),Bi(yA,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Bi(Go(),(function(e,t){var r=t;r.universal||L(r.channels,AA)&&n(e)})),Di((function(e){n(e)}))],"normal"===e.mode?[Bi(zo(),(function(e){yi(e,vA)})),Bi(Zo(),(function(e){yi(e,yA)})),Bi(Mo(),(function(e){yi(e,vA)})),Bi(Po(),(function(e){yi(e,yA)}))]:[Bi(Ai(),(function(e,t){yi(e,vA)})),Bi(vi(),(function(e){yi(e,yA)}))]]))}}),_A=[Vr("lazySink"),Vr("tooltipDom"),ro("exclusive",!0),ro("tooltipComponents",[]),ro("delay",300),so("mode","normal",["normal","follow-highlight"]),ro("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:A([Ds,Rs,Ps,Ms,$s,zs]),onRtl:A([Ds,Rs,Ps,Ms,$s,zs])}}})),is("onHide"),is("onShow")],xA=Js({fields:_A,name:"tooltipping",active:wA,state:Object.freeze({__proto__:null,init:function(){var e=Ql(),t=Ql(),n=function(){e.on(clearTimeout)},r=A("not-implemented");return ua({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:function(t,r){n(),e.set(setTimeout(t,r))},readState:r})}}),apis:bA}),SA=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),kA=tinymce.util.Tools.resolve("tinymce.EditorManager"),CA=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},BA=function(e){return e.getParam("width",SA.DOM.getStyle(e.getElement(),"width"))},QA=function(e){return z.from(e.getParam("min_width")).filter(h)},TA=function(e){return z.from(e.getParam("min_height")).filter(h)},EA=function(e){return z.from(e.getParam("max_width")).filter(h)},PA=function(e){return z.from(e.getParam("max_height")).filter(h)},$A=function(e){return!1!==e.getParam("menubar",!0,"boolean")},MA=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=o(t),i=a(t)&&t.length>0;return!RA(e)&&(i||r||n)},zA=function(e){var t=U(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=j(t,(function(e){return"string"==typeof e}));return n.length>0?z.some(n):z.none()},RA=function(e){return zA(e).fold((function(){return e.getParam("toolbar",[],"string[]").length>0}),x)};!function(e){e.default="wrap",e.floating="floating",e.sliding="sliding",e.scrolling="scrolling"}(kg||(kg={}));var DA,IA=function(e){return e.getParam("toolbar_mode","","string")};!function(e){e.auto="auto",e.top="top",e.bottom="bottom"}(DA||(DA={}));var NA,LA,VA=function(e){return e.getParam("toolbar_location",DA.auto,"string")},UA=function(e){return VA(e)===DA.bottom},FA=function(e){if(!e.inline)return z.none();var t=function(e){return e.getParam("fixed_toolbar_container","","string")}(e);if(t.length>0)return Ha(Ut(),t);var n=function(e){return e.getParam("fixed_toolbar_container_target")}(e);return d(n)?z.some(Re(n)):z.none()},HA=function(e){return e.inline&&FA(e).isSome()},WA=function(e){return FA(e).getOrThunk((function(){return It(Dt(Re(e.getElement())))}))},XA=function(e){return e.inline&&!$A(e)&&!MA(e)&&!RA(e)},jA=function(e){return(e.getParam("toolbar_sticky",!1,"boolean")||e.inline)&&!HA(e)&&!XA(e)},qA=function(e){var t=e.getParam("menu");return t?pe(t,(function(e){return k(k({},e),{items:e.items})})):{}},ZA=function(e){return e.getParam("menubar")},YA=function(e){return e.getParam("anchor_top","#top")},GA=function(e){return e.getParam("anchor_bottom","#bottom")},KA="silver.readonly",JA=Ar([Ur("readonly",kr)]),ev=function(e,t){var n=e.outerContainer.element;t&&(e.mothership.broadcastOn([ku()],{target:n}),e.uiMothership.broadcastOn([ku()],{target:n})),e.mothership.broadcastOn([KA],{readonly:t}),e.uiMothership.broadcastOn([KA],{readonly:t})},tv=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&ev(t,!0)})),e.on("SwitchMode",(function(){return ev(t,e.mode.isReadOnly())})),function(e){return e.getParam("readonly",!1,"boolean")}(e)&&e.setMode("readonly")},nv=function(){var e;return rl.config({channels:(e={},e[KA]={schema:JA,onReceive:function(e,t){hf.set(e,t.readonly)}},e)})},rv=function(e){return hf.config({disabled:e})},ov=function(e){return hf.config({disabled:e,disableClass:"tox-tbtn--disabled"})},iv=function(e){return hf.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},av=function(e,t){var n=e.getApi(t);return function(e){e(n)}},sv=function(e,t){return Ri((function(n){av(e,n)((function(n){var r=e.onSetup(n);f(r)&&t.set(r)}))}))},lv=function(e,t){return Di((function(n){return av(e,n)(t.get())}))},cv=function(e,t){return Ni((function(n,r){av(e,n)(e.onAction),e.triggersSubmenu||t!==Cg.CLOSE_ON_EXECUTE||(yi(n,ni()),r.stop())}))},uv=((NA={})[Ko()]=["disabling","alloy.base.behaviour","toggling","item-events"],NA),dv=_e,fv=function(e,t,n,r){var o,i=ho(m);return{type:"item",dom:t.dom,components:dv(t.optComponents),data:e.data,eventOrder:uv,hasSubmenu:e.triggersSubmenu,itemBehaviours:Gs([Sp("item-events",[cv(e,n),sv(e,i),lv(e,i)]),(o=function(){return e.disabled||r.isDisabled()},hf.config({disabled:o,disableClass:"tox-collection__item--state-disabled"})),nv(),xp.config({})].concat(e.itemBehaviours))}},hv=function(e){return{value:e.value,meta:k({text:e.text.getOr("")},e.meta)}},pv=tinymce.util.Tools.resolve("tinymce.Env"),mv=function(e){var t=pv.mac?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},n=e.split("+"),r=H(n,(function(e){var n=e.toLowerCase().trim();return Oe(t,n)?t[n]:e}));return pv.mac?r.join(""):r.join("+")},gv=function(e,t,n){return void 0===n&&(n=[$g]),Wm(e,{tag:"div",classes:n},t)},Av=function(e){return{dom:{tag:"div",classes:[Mg]},components:[Pa(Rm.translate(e))]}},vv=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},yv=function(e,t){return{dom:{tag:"div",classes:[Mg]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Pa(Rm.translate(t))]}]}},Ov=function(e){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:mv(e)}}},bv=function(e){return gv("checkmark",e,["tox-collection__item-checkmark"])},wv=function(e){var t=e.map((function(e){return{attributes:{title:Rm.translate(e)}}})).getOr({});return k({tag:"div",classes:[Bg,Qg]},t)},_v=function(e,t,n,r){return void 0===r&&(r=z.none()),"color"===e.presets?function(e,t,n){var r,o,i,a,s=e.ariaLabel,l=e.value,c=e.iconContent.map((function(e){return function(e,t,n){var r=t();return Vm(e,r).or(n).getOrThunk(Nm(r))}(e,t.icons,n)}));return{dom:(r=Tg,o=c.getOr(""),i=s.map((function(e){return{title:t.translate(e)}})).getOr({}),a={tag:"div",attributes:i,classes:[r]},k(k({},a),"custom"===l?{tag:"button",classes:B(B([],a.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:o}:"remove"===l?{classes:B(B([],a.classes,!0),["tox-swatch--remove"],!1),innerHtml:o}:{attributes:k(k({},a.attributes),{"data-mce-color":l}),styles:{"background-color":l}})),optComponents:[]}}(e,t,r):function(e,t,n,r){var o={tag:"div",classes:[$g]},i=n?e.iconContent.map((function(e){return Wm(e,o,t.icons,r)})).orThunk((function(){return z.some({dom:o})})):z.none(),a=e.checkMark,s=z.from(e.meta).fold((function(){return Av}),(function(e){return Oe(e,"style")?O(yv,e.style):Av})),l=e.htmlContent.fold((function(){return e.textContent.map(s)}),(function(e){return z.some(vv(e,[Mg]))}));return{dom:wv(e.ariaLabel),optComponents:[i,l,e.shortcutContent.map(Ov),a,e.caret]}}(e,t,n,r)},xv=function(e,t){return ye(e,"tooltipWorker").map((function(e){return[xA.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Nl}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){xA.setComponents(t,[$a({element:Re(e)})])}))}})]})).getOr([])},Sv=function(e,t){var n=function(e){return SA.DOM.encode(e)}(Rm.translate(e));if(t.length>0){var r=new RegExp(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(t),"gi");return n.replace(r,(function(e){return''+e+""}))}return n},kv=function(e,t){return H(e,(function(e){switch(e.type){case"cardcontainer":return function(e,t){var n="vertical"===e.direction?"tox-collection__item-container--column":Ig,r="left"===e.align?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right";return{dom:{tag:"div",classes:[Dg,n,r,function(){switch(e.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}}()]},components:t}}(e,kv(e.items,t));case"cardimage":return function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}}(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return L(t.cardText.highlightOn,e)})),r=n?z.from(t.cardText.matchText).getOr(""):"";return vv(Sv(e.text,r),e.classes)}}))},Cv=kd(Jp(),em()),Bv=function(e){return{value:e}},Qv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ev=function(e){return Qv.test(e)||Tv.test(e)},Pv=function(e){return(t=e,function(e,t){return ke(e,t,0)}(t,"#")?function(e){return e.substring(1)}(t):t).toUpperCase();var t},$v=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},Mv=function(e){var t=$v(e.red)+$v(e.green)+$v(e.blue);return Bv(t)},zv=Math.min,Rv=Math.max,Dv=Math.round,Iv=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Nv=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Lv=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},Vv=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},Uv=function(e){var t,n,r,o=(e.hue||0)%360,i=e.saturation/100,a=e.value/100;if(i=Rv(0,zv(i,1)),a=Rv(0,zv(a,1)),0===i)return t=n=r=Dv(255*a),Lv(t,n,r,1);var s=o/60,l=a*i,c=l*(1-Math.abs(s%2-1)),u=a-l;switch(Math.floor(s)){case 0:t=l,n=c,r=0;break;case 1:t=c,n=l,r=0;break;case 2:t=0,n=l,r=c;break;case 3:t=0,n=c,r=l;break;case 4:t=c,n=0,r=l;break;case 5:t=l,n=0,r=c;break;default:t=n=r=0}return t=Dv(255*(t+u)),n=Dv(255*(n+u)),r=Dv(255*(r+u)),Lv(t,n,r,1)},Fv=function(e){var t,n,r=(t=function(e){var t=e.value.replace(Qv,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}}(e),null===(n=Tv.exec(t.value))?["FFFFFF","FF","FF","FF"]:n),o=parseInt(r[1],16),i=parseInt(r[2],16),a=parseInt(r[3],16);return Lv(o,i,a,1)},Hv=function(e,t,n,r){var o=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return Lv(o,i,a,s)},Wv=function(e){if("transparent"===e)return z.some(Lv(0,0,0,0));var t=Iv.exec(e);if(null!==t)return z.some(Hv(t[1],t[2],t[3],"1"));var n=Nv.exec(e);return null!==n?z.some(Hv(n[1],n[2],n[3],n[4])):z.none()},Xv=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},jv=Lv(255,0,0,1),qv=function(e,t){return e.fire("ResizeContent",t)},Zv=function(e,t,n){return{hue:e,saturation:t,value:n}},Yv=function(e){var t,n=0,r=0,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.min(o,Math.min(i,a)),l=Math.max(o,Math.max(i,a));return s===l?Zv(0,0,100*(r=s)):(n=60*((n=o===s?3:a===s?1:5)-(o===s?i-a:a===s?o-i:a-o)/(l-s)),t=(l-s)/l,r=l,Zv(Math.round(n),Math.round(100*t),Math.round(100*r)))},Gv=function(e){return Mv(Uv(e))},Kv=function(e){return(t=e,Ev(t)?z.some({value:Pv(t)}):z.none()).orThunk((function(){return Wv(e).map(Mv)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],s=r[3];return Mv(Lv(o,i,a,s))}));var t},Jv=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),ey="tinymce-custom-colors",ty="choiceitem",ny=[{type:ty,text:"Light Green",value:"#BFEDD2"},{type:ty,text:"Light Yellow",value:"#FBEEB8"},{type:ty,text:"Light Red",value:"#F8CAC6"},{type:ty,text:"Light Purple",value:"#ECCAFA"},{type:ty,text:"Light Blue",value:"#C2E0F4"},{type:ty,text:"Green",value:"#2DC26B"},{type:ty,text:"Yellow",value:"#F1C40F"},{type:ty,text:"Red",value:"#E03E2D"},{type:ty,text:"Purple",value:"#B96AD9"},{type:ty,text:"Blue",value:"#3598DB"},{type:ty,text:"Dark Turquoise",value:"#169179"},{type:ty,text:"Orange",value:"#E67E23"},{type:ty,text:"Dark Red",value:"#BA372A"},{type:ty,text:"Dark Purple",value:"#843FA1"},{type:ty,text:"Dark Blue",value:"#236FA1"},{type:ty,text:"Light Gray",value:"#ECF0F1"},{type:ty,text:"Medium Gray",value:"#CED4D9"},{type:ty,text:"Gray",value:"#95A5A6"},{type:ty,text:"Dark Gray",value:"#7E8C8D"},{type:ty,text:"Navy Blue",value:"#34495E"},{type:ty,text:"Black",value:"#000000"},{type:ty,text:"White",value:"#ffffff"}],ry=function(e){void 0===e&&(e=10);var t,n=Jv.getItem(ey),r=o(n)?JSON.parse(n):[],i=e-(t=r).length<0?t.slice(0,e):t,a=function(e){i.splice(e,1)};return{add:function(t){(function(e,t){var n=N(e,t);return-1===n?z.none():z.some(n)})(i,t).each(a),i.unshift(t),i.length>e&&i.pop(),Jv.setItem(ey,JSON.stringify(i))},state:function(){return i.slice(0)}}}(10),oy=function(e){return!1!==e.getParam("custom_colors")},iy=function(e){var t=function(e){return e.getParam("color_map")}(e);return void 0!==t?function(e){for(var t=[],n=0;n0?function(t,n,r,i){t.matchLength=n.text.length;var a=ue(r,(function(e){return z.from(e.columns)})).getOr(1);hm.showAt(o,am.sketch(function(e,t,n,r){var o=n===LA.ContentFocus?Wf():Hf(),i=yy(t,r),a=Ug(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:i,fakeFocus:n===LA.ContentFocus,focusManager:o,menuBehaviours:gA("auto"!==t?[]:[Ri((function(e,t){mA(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;vp.setGridSize(e,r,n)}))}))])}}(Kg("autocompleter-value",!0,i,a,"normal"),a,LA.ContentFocus,"normal")),{anchor:{type:"node",root:Re(e.getBody()),node:z.from(t.element)}}),hm.getContent(o).each(_f.highlightFirst)}(n,h,i,p):h.text.length-n.matchLength>=10?s():a()}}))}))}))},u={onKeypress:Zm((function(e){27!==e.which&&c()}),50),cancelIfNecessary:s,isMenuOpen:function(){return hm.isOpen(o)},isActive:i,isProcessingAction:r.get,getView:function(){return hm.getContent(o)}};!1===e.hasPlugin("rtc")&&function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){Oi(e,Do(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(_f.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(bi),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(_f.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&Jm(Re(t.element)).isNone()&&e.cancelIfNecessary()}))}(u,e)},Py=function(e,t,n){return Wa(e,t,n).isSome()},$y=function(e,t){var n=null;return{cancel:function(){null!==n&&(clearTimeout(n),n=null)},schedule:function(){for(var r=[],o=0;o5||r>5})(e,n)&&t.clear()}))})),z.none()}},{key:Bo(),value:function(o){return r.cancel(),t.get().filter((function(e){return wt(e.target,o.target)})).map((function(t){return n.get()?(o.prevent(),!1):e.triggerEvent(ei(),o)}))}}]);return{fireIfReady:function(e,t){return ye(o,t).bind((function(t){return t(e)}))}}}(n),o=H(["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"].concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return El(e,t,(function(e){r.fireIfReady(e,t).each((function(t){t&&e.kill()})),n.triggerEvent(t,e)&&e.kill()}))})),i=Ql(),a=El(e,"paste",(function(e){r.fireIfReady(e,"paste").each((function(t){t&&e.kill()})),n.triggerEvent("paste",e)&&e.kill(),i.set(setTimeout((function(){n.triggerEvent(Yo(),e)}),0))})),s=El(e,"keydown",(function(e){n.triggerEvent("keydown",e)?e.kill():n.stopBackspace&&function(e){return e.raw.which===xf[0]&&!L(["input","textarea"],Ie(e.target))&&!Py(e.target,'[contenteditable="true"]')}(e)&&e.prevent()})),l=function(e,t){return zy()?Pl(e,"focus",t):El(e,"focusin",t)}(e,(function(e){n.triggerEvent("focusin",e)&&e.kill()})),c=Ql(),u=function(e,t){return zy()?Pl(e,"blur",t):El(e,"focusout",t)}(e,(function(e){n.triggerEvent("focusout",e)&&e.kill(),c.set(setTimeout((function(){n.triggerEvent(Zo(),e)}),0))}));return{unbind:function(){W(o,(function(e){e.unbind()})),s.unbind(),l.unbind(),u.unbind(),a.unbind(),i.on(clearTimeout),c.on(clearTimeout)}}},Dy=function(e,t){var n=ye(e,"target").getOr(t);return ho(n)},Iy=po([{stopped:[]},{resume:["element"]},{complete:[]}]),Ny=function(e,t,n,r,o,i){var a=e(t,r),s=function(e,t){var n=ho(!1),r=ho(!1);return{stop:function(){n.set(!0)},cut:function(){r.set(!0)},isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}}(n,o);return a.fold((function(){return i.logEventNoHandlers(t,r),Iy.complete()}),(function(e){var n=e.descHandler;return ha(n)(s),s.isStopped()?(i.logEventStopped(t,e.element,n.purpose),Iy.stopped()):s.isCut()?(i.logEventCut(t,e.element,n.purpose),Iy.complete()):Bt(e.element).fold((function(){return i.logNoParent(t,e.element,n.purpose),Iy.complete()}),(function(r){return i.logEventResponse(t,e.element,n.purpose),Iy.resume(r)}))}))},Ly=function(e,t,n,r,o,i){return Ny(e,t,n,r,o,i).fold(x,(function(r){return Ly(e,t,n,r,o,i)}),_)},Vy=function(e,t,n,r,o){var i=Dy(n,r);return Ly(e,t,n,r,i,o)},Uy=function(){var e,t=(e={},{registerId:function(t,n,r){he(r,(function(r,o){var i=void 0!==e[o]?e[o]:{};i[n]=function(e,t){return{cHandler:O.apply(void 0,[e.handler].concat(t)),purpose:e.purpose}}(r,t),e[o]=i}))},unregisterId:function(t){he(e,(function(e,n){Oe(e,t)&&delete e[t]}))},filterByType:function(t){return ye(e,t).map((function(e){return ge(e,(function(e,t){return function(e,t){return{id:e,descHandler:t}}(t,e)}))})).getOr([])},find:function(t,n,r){return ye(e,n).bind((function(e){return bo(r,(function(t){return function(e,t){return Ji(t).bind((function(t){return ye(e,t)})).map((function(e){return function(e,t){return{element:e,descHandler:t}}(t,e)}))}(e,t)}),t)}))}}),n={},r=function(e){Ji(e.element).each((function(e){delete n[e],t.unregisterId(e)}))};return{find:function(e,n,r){return t.find(e,n,r)},filter:function(e){return t.filterByType(e)},register:function(e){var o=function(e){var t=e.element;return Ji(t).getOrThunk((function(){return function(e,t){var n=ji(Yi+"uid-");return Ki(t,n),n}(0,e.element)}))}(e);be(n,o)&&function(e,t){var o=n[t];if(o!==e)throw new Error('The tagId "'+t+'" is already used by: '+Fi(o.element)+"\nCannot use it for: "+Fi(e.element)+"\nThe conflicting element is"+(Vt(o.element)?" ":" not ")+"already in the DOM");r(e)}(e,o);var i=[e];t.registerId(i,o,e.events),n[o]=e},unregister:r,getById:function(e){return ye(n,e)}}},Fy=jd({name:"Container",factory:function(e){var t=e.dom,n=t.attributes,r=C(t,["attributes"]);return{uid:e.uid,dom:k({tag:"div",attributes:k({role:"presentation"},n)},r),components:e.components,behaviours:ju(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},configFields:[ro("components",[]),Xu("containerBehaviours",[]),ro("events",{}),ro("domModification",{}),ro("eventOrder",{})]}),Hy=function(e){var t=function(t){return Bt(e.element).fold(x,(function(e){return wt(t,e)}))},n=Uy(),r=function(e,r){return n.find(t,e,r)},o=Ry(e.element,{triggerEvent:function(e,t){return Ya(e,t.target,(function(n){return function(e,t,n,r){return Vy(e,t,n,n.target,r)}(r,e,t,n)}))}}),i={debugInfo:A("real"),triggerEvent:function(e,t,n){Ya(e,t,(function(o){return Vy(r,e,n,t,o)}))},triggerFocus:function(e,t){Ji(e).fold((function(){al(e)}),(function(n){Ya(qo(),e,(function(n){return function(e,t,n,r,o){var i=Dy(n,r);Ny(e,t,n,r,i,o)}(r,qo(),{originator:t,kill:m,prevent:m,target:e},e,n),!1}))}))},triggerEscape:function(e,t){i.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return p(e)},getByDom:function(e){return g(e)},build:za,addToGui:function(e){l(e)},removeFromGui:function(e){c(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){s(e)},broadcast:function(e){d(e)},broadcastOn:function(e,t){f(e,t)},broadcastEvent:function(e,t){h(e,t)},isConnected:x},a=function(e){e.connect(i),Ve(e.element)||(n.register(e),W(e.components(),a),i.triggerEvent(oi(),e.element,{target:e.element}))},s=function(e){Ve(e.element)||(W(e.components(),s),n.unregister(e)),e.disconnect()},l=function(t){su(e,t)},c=function(e){uu(e)},u=function(e){var t=n.filter(Go());W(t,(function(t){var n=t.descHandler;ha(n)(e)}))},d=function(e){u({universal:!0,data:e})},f=function(e,t){u({universal:!1,channels:e,data:t})},h=function(e,t){return function(e,t){var n=function(e){var t=ho(!1);return{stop:function(){t.set(!0)},cut:m,isStopped:t.get,isCut:_,event:e,setSource:w("Cannot set source of a broadcasted event"),getSource:w("Cannot get source of a broadcasted event")}}(t);return W(e,(function(e){var t=e.descHandler;ha(t)(n)})),n.isStopped()}(n.filter(e),t)},p=function(e){return n.getById(e).fold((function(){return Xn.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),Xn.value)},g=function(e){var t=Ji(e).getOr("not found");return p(t)};return a(e),{root:e,element:e.element,destroy:function(){o.unbind(),En(e.element)},add:l,remove:c,getByUid:p,getByDom:g,addToWorld:a,removeFromWorld:s,broadcast:d,broadcastOn:f,broadcastEvent:h}},Wy=A([ro("prefix","form-field"),Xu("fieldBehaviours",[Kd,Wu])]),Xy=A([bd({schema:[Vr("dom")],name:"label"}),bd({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Vr("text")],name:"aria-descriptor"}),yd({factory:{sketch:function(e){var t=function(e,t){var n={};return he(e,(function(e,r){L(t,r)||(n[r]=e)})),n}(e,["factory"]);return e.factory.sketch(t)}},schema:[Vr("factory")],name:"field"})]),jy=qd({name:"FormField",configFields:Wy(),partFields:Xy(),factory:function(e,t,n,r){var o=qu(e.fieldBehaviours,[Kd.config({find:function(t){return $d(t,e,"field")}}),Wu.config({store:{mode:"manual",getValue:function(e){return Kd.getCurrent(e).bind(Wu.getValue)},setValue:function(e,t){Kd.getCurrent(e).each((function(e){Wu.setValue(e,t)}))}}})]),i=Si([Ri((function(t,n){var r=zd(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=ji(e.prefix);r.label().each((function(e){Wt(e.element,"for",n),Wt(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=ji(e.prefix);Wt(n.element,"id",r),Wt(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return $d(t,e,"field")},getLabel:function(t){return $d(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:o,events:i,apis:a}},apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),qy=Object.freeze({__proto__:null,exhibit:function(e,t){return fa({attributes:vo([{key:t.tabAttr,value:"true"}])})}}),Zy=[ro("tabAttr","data-alloy-tabstop")],Yy=Js({fields:Zy,name:"tabstopping",active:qy}),Gy=tinymce.util.Tools.resolve("tinymce.html.Entities"),Ky=function(e,t,n,r){var o=Jy(e,t,n,r);return jy.sketch(o)},Jy=function(e,t,n,r){return{dom:eO(n),components:e.toArray().concat([t]),fieldBehaviours:Gs(r)}},eO=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},tO=function(e,t){return jy.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},nO=ji("form-component-change"),rO=ji("form-close"),oO=ji("form-cancel"),iO=ji("form-action"),aO=ji("form-submit"),sO=ji("form-block"),lO=ji("form-unblock"),cO=ji("form-tabchange"),uO=ji("form-resize"),dO=A([Yr("data"),ro("inputAttributes",{}),ro("inputStyles",{}),ro("tag","input"),ro("inputClasses",[]),is("onSetValue"),ro("styles",{}),ro("eventOrder",{}),Xu("inputBehaviours",[Wu,Tp]),ro("selectOnFocus",!0)]),fO=function(e){return Gs([Tp.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=Ca(t);t.dom.setSelectionRange(0,n.length)}:m})])},hO=function(e){return k(k({},fO(e)),qu(e.inputBehaviours,[Wu.config({store:k(k({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return Ca(e.element)},setValue:function(e,t){Ca(e.element)!==t&&Ba(e.element,t)}}),onSetValue:e.onSetValue})]))},pO=function(e){return{tag:e.tag,attributes:k({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},mO=jd({name:"Input",configFields:dO(),factory:function(e,t){return{uid:e.uid,dom:pO(e),components:[],behaviours:hO(e),eventOrder:e.eventOrder}}}),gO={},AO={exports:gO};!function(e,t,r){!function(e,n){"object"==typeof t&&void 0!==r?r.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=n()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t={exports:{}};!function(t){!function(e){var n=setTimeout;function r(){}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,r)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void u((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var r,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;tn?n:e===t?t-1:Math.max(t,e-r)},Gb=function(e,t,n,r){return e>n?e:ef)return m;var g=function(e,t,n){return Math.min(n,Math.max(e,t))-t}(o,d,f),A=Kb(g/h*r+t,p,m);return a&&A>=t&&A<=n?function(e,t,n,r,o){return o.fold((function(){var o=e-t,i=Math.round(o/r)*r;return Kb(t+i,t-1,n+1)}),(function(t){var o=(e-t)%r,i=Math.round(o/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),l=t+Math.min(s,a+i)*r;return Math.max(t,l)}))}(A,t,n,i,s):l?Math.round(A):A},ew=function(e){var t=e.min,n=e.max,r=e.range,o=e.value,i=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,l=e.maxOffset,c=e.centerMinEdge,u=e.centerMaxEdge;return on?a?s:u:(o-t)/r*l},tw="top",nw="right",rw="bottom",ow="left",iw=function(e){return e.element.dom.getBoundingClientRect()},aw=function(e,t){return e[t]},sw=function(e){var t=iw(e);return aw(t,ow)},lw=function(e){var t=iw(e);return aw(t,nw)},cw=function(e){var t=iw(e);return aw(t,tw)},uw=function(e){var t=iw(e);return aw(t,rw)},dw=function(e){var t=iw(e);return aw(t,"width")},fw=function(e){var t=iw(e);return aw(t,"height")},hw=function(e,t,n){return(e+t)/2-n},pw=function(e,t){var n=iw(e),r=iw(t),o=aw(n,ow),i=aw(n,nw),a=aw(r,ow);return hw(o,i,a)},mw=function(e,t){var n=iw(e),r=iw(t),o=aw(n,tw),i=aw(n,rw),a=aw(r,tw);return hw(o,i,a)},gw=function(e,t){Oi(e,bb(),{value:t})},Aw=function(e){return{x:e}},vw=function(e,t,n){var r={min:_b(t),max:Cb(t),range:Pb(t),value:n,step:Rb(t),snap:Db(t),snapStart:Ib(t),rounded:Nb(t),hasMinEdge:Vb(t),hasMaxEdge:Ub(t),minBound:sw(e),maxBound:lw(e),screenRange:dw(e)};return Jb(r)},yw=function(e){return function(t,n){return function(e,t,n){var r=(e>0?Gb:Yb)(Wb(n).x,_b(n),Cb(n),Rb(n));return gw(t,Aw(r)),z.some(r)}(e,t,n).map(x)}},Ow=function(e,t,n,r,o,i){var a=function(e,t,n,r,o){var i=dw(e),a=r.bind((function(t){return z.some(pw(t,e))})).getOr(0),s=o.bind((function(t){return z.some(pw(t,e))})).getOr(i),l={min:_b(t),max:Cb(t),range:Pb(t),value:n,hasMinEdge:Vb(t),hasMaxEdge:Ub(t),minBound:sw(e),minOffset:0,maxBound:lw(e),maxOffset:i,centerMinEdge:a,centerMaxEdge:s};return ew(l)}(t,i,n,r,o);return sw(t)-sw(e)+a},bw=yw(-1),ww=yw(1),_w=z.none,xw=z.none,Sw={"top-left":z.none(),top:z.none(),"top-right":z.none(),right:z.some((function(e,t){Zb(e,Xb(Qb(t)))})),"bottom-right":z.none(),bottom:z.none(),"bottom-left":z.none(),left:z.some((function(e,t){Zb(e,Xb(Sb(t)))}))},kw=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=vw(e,t,n),o=Aw(r);return gw(e,o),r},setToMin:function(e,t){var n=_b(t);gw(e,Aw(n))},setToMax:function(e,t){var n=Cb(t);gw(e,Aw(n))},findValueOfOffset:vw,getValueFromEvent:function(e){return wb(e).map((function(e){return e.left}))},findPositionOfValue:Ow,setPositionFromValue:function(e,t,n,r){var o=Wb(n),i=Ow(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=On(t.element)/2;Jt(t.element,"left",i-a+"px")},onLeft:bw,onRight:ww,onUp:_w,onDown:xw,edgeActions:Sw}),Cw=function(e,t){Oi(e,bb(),{value:t})},Bw=function(e){return{y:e}},Qw=function(e,t,n){var r={min:xb(t),max:Bb(t),range:$b(t),value:n,step:Rb(t),snap:Db(t),snapStart:Ib(t),rounded:Nb(t),hasMinEdge:Fb(t),hasMaxEdge:Hb(t),minBound:cw(e),maxBound:uw(e),screenRange:fw(e)};return Jb(r)},Tw=function(e){return function(t,n){return function(e,t,n){var r=(e>0?Gb:Yb)(Wb(n).y,xb(n),Bb(n),Rb(n));return Cw(t,Bw(r)),z.some(r)}(e,t,n).map(x)}},Ew=function(e,t,n,r,o,i){var a=function(e,t,n,r,o){var i=fw(e),a=r.bind((function(t){return z.some(mw(t,e))})).getOr(0),s=o.bind((function(t){return z.some(mw(t,e))})).getOr(i),l={min:xb(t),max:Bb(t),range:$b(t),value:n,hasMinEdge:Fb(t),hasMaxEdge:Hb(t),minBound:cw(e),minOffset:0,maxBound:uw(e),maxOffset:i,centerMinEdge:a,centerMaxEdge:s};return ew(l)}(t,i,n,r,o);return cw(t)-cw(e)+a},Pw=z.none,$w=z.none,Mw=Tw(-1),zw=Tw(1),Rw={"top-left":z.none(),top:z.some((function(e,t){Zb(e,jb(kb(t)))})),"top-right":z.none(),right:z.none(),"bottom-right":z.none(),bottom:z.some((function(e,t){Zb(e,jb(Tb(t)))})),"bottom-left":z.none(),left:z.none()},Dw=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=Qw(e,t,n),o=Bw(r);return Cw(e,o),r},setToMin:function(e,t){var n=xb(t);Cw(e,Bw(n))},setToMax:function(e,t){var n=Bb(t);Cw(e,Bw(n))},findValueOfOffset:Qw,getValueFromEvent:function(e){return wb(e).map((function(e){return e.top}))},findPositionOfValue:Ew,setPositionFromValue:function(e,t,n,r){var o=Wb(n),i=Ew(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=fn(t.element)/2;Jt(t.element,"top",i-a+"px")},onLeft:Pw,onRight:$w,onUp:Mw,onDown:zw,edgeActions:Rw}),Iw=function(e,t){Oi(e,bb(),{value:t})},Nw=function(e,t){return{x:e,y:t}},Lw=function(e,t){return function(n,r){return function(e,t,n,r){var o=e>0?Gb:Yb,i=t?Wb(r).x:o(Wb(r).x,_b(r),Cb(r),Rb(r)),a=t?o(Wb(r).y,xb(r),Bb(r),Rb(r)):Wb(r).y;return Iw(n,Nw(i,a)),z.some(i)}(e,t,n,r).map(x)}},Vw=Lw(-1,!1),Uw=Lw(1,!1),Fw=Lw(-1,!0),Hw=Lw(1,!0),Ww={"top-left":z.some((function(e,t){Zb(e,qb(Sb(t),kb(t)))})),top:z.some((function(e,t){Zb(e,qb(Mb(t),kb(t)))})),"top-right":z.some((function(e,t){Zb(e,qb(Qb(t),kb(t)))})),right:z.some((function(e,t){Zb(e,qb(Qb(t),zb(t)))})),"bottom-right":z.some((function(e,t){Zb(e,qb(Qb(t),Tb(t)))})),bottom:z.some((function(e,t){Zb(e,qb(Mb(t),Tb(t)))})),"bottom-left":z.some((function(e,t){Zb(e,qb(Sb(t),Tb(t)))})),left:z.some((function(e,t){Zb(e,qb(Sb(t),zb(t)))}))},Xw=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=vw(e,t,n.left),o=Qw(e,t,n.top),i=Nw(r,o);return Iw(e,i),i},setToMin:function(e,t){var n=_b(t),r=xb(t);Iw(e,Nw(n,r))},setToMax:function(e,t){var n=Cb(t),r=Bb(t);Iw(e,Nw(n,r))},getValueFromEvent:function(e){return wb(e)},setPositionFromValue:function(e,t,n,r){var o=Wb(n),i=Ow(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=Ew(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=On(t.element)/2,l=fn(t.element)/2;Jt(t.element,"left",i-s+"px"),Jt(t.element,"top",a-l+"px")},onLeft:Vw,onRight:Uw,onUp:Fw,onDown:Hw,edgeActions:Ww}),jw=qd({name:"Slider",configFields:[ro("stepSize",1),ro("onChange",m),ro("onChoose",m),ro("onInit",m),ro("onDragStart",m),ro("onDragEnd",m),ro("snapToGrid",!1),ro("rounded",!0),Yr("snapStart"),Ur("model",Dr("mode",{x:[ro("minX",0),ro("maxX",100),Nr("value",(function(e){return ho(e.mode.minX)})),Vr("getInitialValue"),cs("manager",kw)],y:[ro("minY",0),ro("maxY",100),Nr("value",(function(e){return ho(e.mode.minY)})),Vr("getInitialValue"),cs("manager",Dw)],xy:[ro("minX",0),ro("maxX",100),ro("minY",0),ro("maxY",100),Nr("value",(function(e){return ho({x:e.mode.minX,y:e.mode.minY})})),Vr("getInitialValue"),cs("manager",Xw)]})),Xu("sliderBehaviours",[vp,Wu]),Nr("mouseIsDown",(function(){return ho(!1)}))],partFields:Ob,factory:function(e,t,n,r){var o,i=function(t){return Md(t,e,"thumb")},a=function(t){return Md(t,e,"spectrum")},s=function(t){return $d(t,e,"left-edge")},l=function(t){return $d(t,e,"right-edge")},c=function(t){return $d(t,e,"top-edge")},u=function(t){return $d(t,e,"bottom-edge")},d=e.model,f=d.manager,h=function(t,n){f.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:l,getTopEdge:c,getBottomEdge:u,getSpectrum:a})},p=function(e,t){d.value.set(t);var n=i(e);h(e,n)},m=function(t){var n=e.mouseIsDown.get();e.mouseIsDown.set(!1),n&&$d(t,e,"thumb").each((function(n){var r=d.value.get();e.onChoose(t,n,r)}))},g=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,i(t))},A=function(t,n){n.stop(),e.onDragEnd(t,i(t)),m(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:qu(e.sliderBehaviours,[vp.config({mode:"special",focusIn:function(t){return $d(t,e,"spectrum").map(vp.focusIn).map(x)}}),Wu.config({store:{mode:"manual",getValue:function(e){return d.value.get()}}}),rl.config({channels:(o={},o[Bu()]={onReceive:m},o)})]),events:Si([Bi(bb(),(function(t,n){!function(t,n){p(t,n);var r=i(t);e.onChange(t,r,n),z.some(!0)}(t,n.event.value)})),Ri((function(t,n){var r=d.getInitialValue();d.value.set(r);var o=i(t);h(t,o);var s=a(t);e.onInit(t,o,s,d.value.get())})),Bi(ko(),g),Bi(Bo(),A),Bi(To(),g),Bi($o(),A)]),apis:{resetToMin:function(t){f.setToMin(t,e)},resetToMax:function(t){f.setToMax(t,e)},setValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),qw=ji("rgb-hex-update"),Zw=ji("slider-update"),Yw=ji("palette-update"),Gw="form",Kw=[Xu("formBehaviours",[Wu])],Jw=function(e){return""},e_=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:qu(e.formBehaviours,[Wu.config({store:{mode:"manual",getValue:function(t){var n=Rd(t,e);return pe(n,(function(e,t){return e().bind((function(e){var n,r;return n=Kd.getCurrent(e),r=new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Fi(e.element)),n.fold((function(){return Xn.error(r)}),Xn.value)})).map(Wu.getValue)}))},setValue:function(t,n){he(n,(function(n,r){$d(t,e,r).each((function(e){Kd.getCurrent(e).each((function(e){Wu.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return $d(t,e,n).bind(Kd.getCurrent)}}}},t_={getField:la((function(e,t,n){return e.getField(t,n)})),sketch:function(e){var t=function(){var e=[];return{field:function(t,n){return e.push(t),Bd(Gw,Jw(t),n)},record:A(e)}}(),n=e(t),r=t.record(),o=H(r,(function(e){return yd({name:e,pname:Jw(e)})}));return Fd(Gw,Kw,o,e_,n)}},n_=ji("valid-input"),r_=ji("invalid-input"),o_=ji("validating-input"),i_="colorcustom.rgb.",a_=function(e,t,n,r){var o=function(n,r){return zO.config({invalidClass:t("invalid"),notify:{onValidate:function(e){Oi(e,o_,{type:n})},onValid:function(e){Oi(e,n_,{type:n,value:Wu.getValue(e)})},onInvalid:function(e){Oi(e,r_,{type:n,value:Wu.getValue(e)})}},validator:{validate:function(t){var n=Wu.getValue(t),o=r(n)?Xn.value(!0):Xn.error(e("aria.input.invalid"));return SO(o)},validateOnLoad:!1}})},i=function(n,r,i,a,s){var l=e(i_+"range"),c=jy.parts.label({dom:{tag:"label",innerHtml:i,attributes:{"aria-label":a}}}),u=jy.parts.field({data:s,factory:mO,inputAttributes:k({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:Gs([o(r,n),Yy.config({})]),onSetValue:function(e){zO.isInvalid(e)&&zO.run(e).get(m)}}),d=[c,u],f="hex"!==r?[jy.parts["aria-descriptor"]({text:l})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:d.concat(f)}},a=function(e,t){var n=t.red,r=t.green,o=t.blue;Wu.setValue(e,{red:n,green:r,blue:o})},s=zm({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(e,t){s.getOpt(e).each((function(e){Jt(e.element,"background-color","#"+t.value)}))},c=jd({factory:function(){var o={red:ho(z.some(255)),green:ho(z.some(255)),blue:ho(z.some(255)),hex:ho(z.some("ffffff"))},c=function(e){return o[e].get()},u=function(e,t){o[e].set(t)},d=function(e){var t=e.red,n=e.green,r=e.blue;u("red",z.some(t)),u("green",z.some(n)),u("blue",z.some(r))},f=function(e,t){var n=t.event;"hex"!==n.type?u(n.type,z.none()):r(e)},h=function(e,t){var r=t.event;!function(e){return"hex"===e.type}(r)?function(e,t,n){var r=parseInt(n,10);u(t,z.some(r)),c("red").bind((function(e){return c("green").bind((function(t){return c("blue").map((function(n){return Lv(e,t,n,1)}))}))})).each((function(t){var n=function(e,t){var n=Mv(t);return t_.getField(e,"hex").each((function(t){Tp.isFocused(t)||Wu.setValue(e,{hex:n.value})})),n}(e,t);Oi(e,qw,{hex:n}),l(e,n)}))}(e,r.type,r.value):function(e,t){n(e);var r=Bv(t);u("hex",z.some(t));var o=Fv(r);a(e,o),d(o),Oi(e,qw,{hex:r}),l(e,r)}(e,r.value)},p=function(t){return{label:e(i_+t+".label"),description:e(i_+t+".description")}},m=p("red"),g=p("green"),A=p("blue"),v=p("hex");return nr(t_.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",jy.sketch(i(Vv,"red",m.label,m.description,255))),n.field("green",jy.sketch(i(Vv,"green",g.label,g.description,255))),n.field("blue",jy.sketch(i(Vv,"blue",A.label,A.description,255))),n.field("hex",jy.sketch(i(Ev,"hex",v.label,v.description,"ffffff"))),s.asSpec()],formBehaviours:Gs([zO.config({invalidClass:t("form-invalid")}),Sp("rgb-form-events",[Bi(n_,h),Bi(r_,f),Bi(o_,f)])])}})),{apis:{updateHex:function(e,t){Wu.setValue(e,{hex:t.value}),function(e,t){var n=Fv(t);a(e,n),d(n)}(e,t),l(e,t)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return c},s_=function(e,t){var n=jd({name:"ColourPicker",configFields:[Vr("dom"),ro("onValidHex",m),ro("onInvalidHex",m)],factory:function(n){var r,o=a_(e,t,n.onValidHex,n.onInvalidHex),i=function(e,t){var n=jw.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=jw.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"'}}),o=function(e,t){var n=e.width,r=e.height,o=e.getContext("2d");if(null!==o){o.fillStyle=t,o.fillRect(0,0,n,r);var i=o.createLinearGradient(0,0,n,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),o.fillStyle=i,o.fillRect(0,0,n,r);var a=o.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),o.fillStyle=a,o.fillRect(0,0,n,r)}};return jd({factory:function(e){var i=A({x:0,y:0}),a=Gs([Kd.config({find:z.some}),Tp.config({})]);return jw.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:i},rounded:!1,components:[n,r],onChange:function(e,t,n){Oi(e,Yw,{value:n})},onInit:function(e,t,n,r){o(n.element.dom,Xv(jv))},sliderBehaviours:a})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){!function(e,t){var n=e.components()[0].element.dom,r=Zv(t,100,100),i=Uv(r);o(n,Xv(i))}(t,n)},setThumb:function(e,t,n){!function(e,t){var n=Yv(Fv(t));jw.setValue(e,{x:n.saturation,y:100-n.value})}(t,n)}},extraApis:{}})}(0,t),a=function(e){return 100-e/360*100},s={paletteRgba:ho(jv),paletteHue:ho(0)},l=zm(function(e,t){var n=jw.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=jw.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return jw.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:A({y:0})},components:[n,r],sliderBehaviours:Gs([Tp.config({})]),onChange:function(e,t,n){Oi(e,Zw,{value:n})}})}(0,t)),c=zm(i.sketch({})),u=zm(o.sketch({})),d=function(e,t,n){c.getOpt(e).each((function(e){i.setHue(e,n)}))},f=function(e,t){u.getOpt(e).each((function(e){o.updateHex(e,t)}))},h=function(e,t,n,r){!function(e,t){var n=Fv(e);s.paletteRgba.set(n),s.paletteHue.set(t)}(t,n),W(r,(function(r){r(e,t,n)}))};return{uid:n.uid,dom:n.dom,components:[c.asSpec(),l.asSpec(),u.asSpec()],behaviours:Gs([Sp("colour-picker-events",[Bi(qw,(r=[d,function(e,t,n){l.getOpt(e).each((function(e){jw.setValue(e,{y:a(n)})}))},function(e,t){c.getOpt(e).each((function(e){i.setThumb(e,t)}))}],function(e,t){var n=t.event.hex,o=function(e){return Yv(Fv(e))}(n);h(e,n,o.hue,r)})),Bi(Yw,function(){var e=[f];return function(t,n){var r=n.event.value,o=s.paletteHue.get(),i=Zv(o,r.x,100-r.y),a=Gv(i);h(t,a,o,e)}}()),Bi(Zw,function(){var e=[d,f];return function(t,n){var r=function(e){return(100-e)/100*360}(n.event.value.y),o=s.paletteRgba.get(),i=Yv(o),a=Zv(r,i.saturation,i.value),l=Gv(a);h(t,l,r,e)}}())]),Kd.config({find:function(e){return u.getOpt(e)}}),vp.config({mode:"acyclic"})])}}});return n},l_=function(){return Kd.config({find:z.some})},c_=function(e){return Kd.config({find:function(t){return Et(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},u_={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},d_=function(e){return function(e){return u_[e]}(e)},f_=tinymce.util.Tools.resolve("tinymce.Resource"),h_=tinymce.util.Tools.resolve("tinymce.util.Tools"),p_=Ar([ro("preprocess",v),ro("postprocess",v)]),m_=function(e,t,n){return Wu.config(nr({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},g_=function(e,t){var n=zr("RepresentingConfigs.memento processors",p_,t);return Wu.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),o=Wu.getValue(r);return n.postprocess(o)},setValue:function(t,r){var o=n.preprocess(r),i=e.get(t);Wu.setValue(i,o)}}})},A_=m_,v_=function(e){return t=Li,n=Vi,m_(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}));var t,n},y_=function(e){return Wu.config({store:{mode:"memory",initialValue:e}})},O_=ji("alloy-fake-before-tabstop"),b_=ji("alloy-fake-after-tabstop"),w_=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:Gs([Tp.config({ignore:!0}),Yy.config({})])}},__=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[w_([O_]),e,w_([b_])],behaviours:Gs([c_(1)])}},x_=function(e,t){Oi(e,Do(),{raw:{which:9,shiftKey:t}})},S_=function(e,t){var n=t.element;xa(n,O_)?x_(e,!0):xa(n,b_)&&x_(e,!1)},k_=function(e){return Py(e,["."+O_,"."+b_].join(","),_)},C_=!(yt().browser.isIE()||yt().browser.isEdge()),B_=function(e,t){return E_(document.createElement("canvas"),e,t)},Q_=function(e){var t=B_(e.width,e.height);return T_(t).drawImage(e,0,0),t},T_=function(e){return e.getContext("2d")},E_=function(e,t,n){return e.width=t,e.height=n,e},P_=function(e){return e.naturalWidth||e.width},$_=function(e){return e.naturalHeight||e.height},M_=function(e,t,n){return t=t||"image/png",f(HTMLCanvasElement.prototype.toBlob)?new yO((function(r,o){e.toBlob((function(e){e?r(e):o()}),t,n)})):(r=e.toDataURL(t,n),new yO((function(e,t){(function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return z.none();for(var r=n[1],o=t[1],i=1024,a=atob(o),s=a.length,l=Math.ceil(s/i),c=new Array(l),u=0;un?r=n:rn?e=n:e2)&&(i=i<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var l=G_(e,i,a);return s?l.then((function(e){return Y_(e,t,n)})):l},G_=function(e,t,n){return new yO((function(r){var o=P_(e),i=$_(e),a=Math.floor(o*t),s=Math.floor(i*n),l=B_(a,s);T_(l).drawImage(e,0,0,o,i,0,0,a,s),r(l)}))},K_=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},J_=function(e){return W_(e)},ex=function(e){return q_(e)},tx=function(e,t){return Z_(e,t)},nx=function(e,t){return X_(e,t)},rx=function(e,t){return j_(e,t)},ox=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return function(e,t,n){var r=B_(e.width,e.height),o=T_(r);return"v"===n?(o.scale(1,-1),o.drawImage(e,0,-r.height)):(o.scale(-1,1),o.drawImage(e,-r.width,0)),I_(r,t)}(n,e.getType(),t)}))}(e,t)},ix=function(e,t,n,r,o){return function(e,t,n,r,o){return e.toCanvas().then((function(i){return function(e,t,n,r,o,i){var a=B_(o,i);return T_(a).drawImage(e,-n,-r),I_(a,t)}(i,e.getType(),t,n,r,o)}))}(e,t,n,r,o)},ax=function(e,t){return function(e,t){return e.toCanvas().then((function(n){return function(e,t,n){var r=(n<0?360+n:n)*Math.PI/180,o=e.width,i=e.height,a=Math.sin(r),s=Math.cos(r),l=K_(Math.abs(o*s)+Math.abs(i*a)),c=K_(Math.abs(o*a)+Math.abs(i*s)),u=B_(l,c),d=T_(u);return d.translate(l/2,c/2),d.rotate(r),d.drawImage(e,-o/2,-i/2),I_(u,t)}(n,e.getType(),t)}))}(e,t)},sx=function(e,t,n){return Wm(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},lx=function(e,t){return sx(e,t,[])},cx=function(e,t){return sx(e,t,[xp.config({})])},ux=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:Gs([xp.config({})])}},dx=ji("toolbar.button.execute"),fx=((HO={})[Ko()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],HO),hx=ji("update-menu-text"),px=ji("update-menu-icon"),mx=function(e,t,n){var r=ho(m),o=e.text.map((function(e){return zm(ux(e,t,n.providers))})),i=e.icon.map((function(e){return zm(cx(e,n.providers.icons))})),a=function(e,t){var n=Wu.getValue(e);return Tp.focus(n),Oi(n,"keydown",{raw:t.event.raw}),nb.close(n),z.some(!0)},s=e.role.fold((function(){return{}}),(function(e){return{role:e}})),l=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),c=Wm("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons);return zm(nb.sketch(k(k(k({},e.uid?{uid:e.uid}:{}),s),{dom:{tag:"button",classes:[t,t+"--select"].concat(H(e.classes,(function(e){return t+"--"+e}))),attributes:k({},l)},components:dv([i.map((function(e){return e.asSpec()})),o.map((function(e){return e.asSpec()})),z.some(c)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Gs(B(B([],e.dropdownBehaviours,!0),[rv((function(){return e.disabled||n.providers.isDisabled()})),nv(),ob.config({}),xp.config({}),Sp("dropdown-events",[sv(e,r),lv(e,r)]),Sp("menubutton-update-display-text",[Bi(hx,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){xp.set(e,[Pa(n.providers.translate(t.event.text))])}))})),Bi(px,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){xp.set(e,[cx(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:nr(fx,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Gs([vp.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:Wg(0,e.columns,e.presets)},fetch:function(t){return xO(O(e.fetch,t))}}))).asSpec()},gx=function(e){return"separator"===e.type},Ax={type:"separator"},vx=function(e,t){var n=function(e,t){var n=Z(e,(function(e,n){return function(e){return o(e)}(n)?""===n?e:"|"===n?e.length>0&&!gx(e[e.length-1])?e.concat([Ax]):e:Oe(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&gx(n[n.length-1])&&n.pop(),n}(o(e)?e.split(" "):e,t);return q(n,(function(e,n){var r=function(e){if(gx(e))return e;var t=ye(e,"value").getOrThunk((function(){return ji("generated-menu-item")}));return nr({value:t},e)}(n),o=function(e,t){return function(e){return Oe(e,"getSubmenuItems")}(e)?function(e,t){var n=e.getSubmenuItems(),r=vx(n,t);return{item:e,menus:nr(r.menus,Ao(e.value,r.items)),expansions:nr(r.expansions,Ao(e.value,e.value))}}(e,t):{item:e,menus:{},expansions:{}}}(r,t);return{menus:nr(e.menus,o.menus),items:[o.item].concat(e.items),expansions:nr(e.expansions,o.expansions)}}),{menus:{},expansions:{},items:[]})},yx=function(e,t,n,r){var o=ji("primary-menu"),i=vx(e,n.shared.providers.menuItems());if(0===i.items.length)return z.none();var a=Qy(o,i.items,t,n,r),s=pe(i.menus,(function(e,r){return Qy(r,e,t,n,!1)})),l=nr(s,Ao(o,a));return z.from(fm.tieredData(o,l,i.expansions))},Ox=function(e){return{isDisabled:function(){return hf.isDisabled(e)},setDisabled:function(t){return hf.set(e,t)},setActive:function(t){var n=e.element;t?(wa(n,"tox-tbtn--enabled"),Wt(n,"aria-pressed",!0)):(_a(n,"tox-tbtn--enabled"),Yt(n,"aria-pressed"))},isActive:function(){return xa(e.element,"tox-tbtn--enabled")}}},bx=function(e,t,n,r){return mx({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(yx(e,Cg.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:Ox,columns:1,presets:"normal",classes:[],dropdownBehaviours:[Yy.config({})]},t,n.shared)},wx=function(e,t,n){var r=function(e){return function(r){var o=!r.isActive();r.setActive(o),e.storage.set(o),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){al(t.element),Oi(t,iO,{name:e.name,value:e.storage.get()})}))}))}},o=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(H(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return k(k({type:e.type,active:!1},t),{onAction:r(e),onSetup:o(e)})})))}},_x=function(e,t,n,r,o,i){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=k({buttonBehaviours:Gs([rv((function(){return e.disabled||i.isDisabled()})),nv(),Yy.config({}),Sp("button press",[Ci("click"),Ci("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),l=nr(s,{dom:r});return nr(l,{components:o})},xx=function(e,t,n,r){void 0===r&&(r=[]);var o={tag:"button",classes:["tox-tbtn"],attributes:e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({})},i=e.icon.map((function(e){return lx(e,n.icons)})),a=dv([i]);return _x(e,t,r,o,a,n)},Sx=function(e,t,n,r){void 0===r&&(r=[]);var o=xx(e,z.some(t),n,r);return Mm.sketch(o)},kx=function(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(e.text),a=e.icon?e.icon.map((function(e){return lx(e,n.icons)})):z.none(),s=a.isSome()?dv([a]):[],l=a.isSome()?{}:{innerHtml:i},c=B(B(B(B([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),o,!0),u=k(k({tag:"button",classes:c},l),{attributes:{title:i}});return _x(e,t,r,u,s,n)},Cx=function(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=kx(e,z.some(t),n,r,o);return Mm.sketch(i)},Bx=function(e,t){return function(n){"custom"===t?Oi(n,iO,{name:e,value:{}}):"submit"===t?yi(n,aO):"cancel"===t?yi(n,oO):console.error("Unknown button type: ",t)}},Qx=function(e,t,n){if(function(e,t){return"menu"===t}(0,t)){var r=e,o=k(k({},e),{onSetup:function(t){return t.setDisabled(e.disabled),m},fetch:wx(r.items,(function(){return i}),n)}),i=zm(bx(o,"tox-tbtn",n,z.none()));return i.asSpec()}if(function(e,t){return"custom"===t||"cancel"===t||"submit"===t}(0,t)){var a=Bx(e.name,t),s=k(k({},e),{borderless:!1});return Cx(s,a,n.shared.providers,[])}console.error("Unknown footer button type: ",t)},Tx=A([ro("field1Name","field1"),ro("field2Name","field2"),ss("onLockedChange"),rs(["lockClass"]),ro("locked",!1),Zu("coupledFieldBehaviours",[Kd,Wu])]),Ex=function(e,t){return yd({factory:jy,name:e,overrides:function(e){return{fieldBehaviours:Gs([Sp("coupled-input-behaviour",[Bi(No(),(function(n){(function(e,t,n){return $d(e,t,n).bind(Kd.getCurrent)})(n,e,t).each((function(t){$d(n,e,"lock").each((function(r){Up.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},Px=A([Ex("field1","field2"),Ex("field2","field1"),yd({factory:Mm,schema:[Vr("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:Gs([Up.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),$x=qd({name:"FormCoupledInputs",configFields:Tx(),partFields:Px(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Yu(e.coupledFieldBehaviours,[Kd.config({find:z.some}),Wu.config({store:{mode:"manual",getValue:function(t){var n,r=Id(t,e,["field1","field2"]);return(n={})[e.field1Name]=Wu.getValue(r.field1()),n[e.field2Name]=Wu.getValue(r.field2()),n},setValue:function(t,n){var r=Id(t,e,["field1","field2"]);be(n,e.field1Name)&&Wu.setValue(r.field1(),n[e.field1Name]),be(n,e.field2Name)&&Wu.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return $d(t,e,"field1")},getField2:function(t){return $d(t,e,"field2")},getLock:function(t){return $d(t,e,"lock")}}}},apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),Mx=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(e);if(null!==t){var n=parseFloat(t[1]),r=t[2];return Xn.value({value:n,unit:r})}return Xn.error(e)},zx=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Oe(n,e)};return e.unit===t?z.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?z.some(e.value):z.some(e.value/n[e.unit]*n[t]):z.none()},Rx=function(e){return z.none()},Dx=function(e,t){var n=Rx,r=ji("ratio-event"),o=function(e){return Wm(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},i=$x.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[o("lock"),o("unlock")],buttonBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()}}),nv(),Yy.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},s=function(n){return jy.parts.field({factory:mO,inputClasses:["tox-textfield"],inputBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()}}),nv(),Yy.config({}),Sp("size-input-events",[Bi(zo(),(function(e,t){Oi(e,r,{isField1:n})})),Bi(Lo(),(function(t,n){Oi(t,nO,{name:e.name})}))])]),selectOnFocus:!1})},l=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},c=$x.parts.field1(a([jy.parts.label(l("Width")),s(!0)])),u=$x.parts.field2(a([jy.parts.label(l("Height")),s(!1)]));return $x.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,u,a([l(" "),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){Mx(Wu.getValue(e)).each((function(e){n(e).each((function(e){Wu.setValue(t,function(e){var t,n={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},r=e.value.toFixed((t=e.unit)in n?n[t]:1);return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit}(e))}))}))},coupledFieldBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){$x.getField1(e).bind(jy.getField).each(hf.disable),$x.getField2(e).bind(jy.getField).each(hf.disable),$x.getLock(e).each(hf.disable)},onEnabled:function(e){$x.getField1(e).bind(jy.getField).each(hf.enable),$x.getField2(e).bind(jy.getField).each(hf.enable),$x.getLock(e).each(hf.enable)}}),nv(),Sp("size-input-events2",[Bi(r,(function(e,t){var r,o,i,a=t.event.isField1,s=a?$x.getField1(e):$x.getField2(e),l=a?$x.getField2(e):$x.getField1(e),c=s.map(Wu.getValue).getOr(""),u=l.map(Wu.getValue).getOr("");r=u,o=Mx(c).toOptional(),i=Mx(r).toOptional(),n=xe(o,i,(function(e,t){return zx(e,t.unit).map((function(e){return t.value/e})).map((function(e){return function(e,t){return function(n){return zx(n,t).map((function(n){return{value:n*e,unit:t}}))}}(e,t.unit)})).getOr(Rx)})).getOr(Rx)}))])])})},Ix={undo:A(ji("undo")),redo:A(ji("redo")),zoom:A(ji("zoom")),back:A(ji("back")),apply:A(ji("apply")),swap:A(ji("swap")),transform:A(ji("transform")),tempTransform:A(ji("temp-transform")),transformApply:A(ji("transform-apply"))},Nx=A("save-state"),Lx=A("disable"),Vx=A("enable"),Ux={formActionEvent:iO,saveState:Nx,disable:Lx,enable:Vx},Fx=function(e,t){var n=function(e,n,r,o){return zm(Cx({name:e,text:e,disabled:r,primary:o,icon:z.none(),borderless:!1},n,t))},r=function(e,n,r,o){return zm(Sx({name:e,icon:z.some(e),tooltip:z.some(n),disabled:o,primary:!1,borderless:!1},r,t))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(hf)&&hf.disable(n)}))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(hf)&&hf.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=m,l=function(e,t,n){Oi(e,t,n)},c=function(e){return yi(e,Ux.disable())},u=function(e){return yi(e,Ux.enable())},d=function(e,t){c(e),l(e,Ix.transform(),{transform:t}),u(e)},f=function(e){return function(){ee.getOpt(e).each((function(e){xp.set(e,[K])}))}},h=function(e,t){c(e),l(e,Ix.transformApply(),{transform:t,swap:f(e)}),u(e)},p=function(){return n("Back",(function(e){return l(e,Ix.back(),{swap:f(e)})}),!1,!1)},g=function(){return zm({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Gs([hf.config({})])})},v=function(){return n("Apply",(function(e){return l(e,Ix.apply(),{swap:f(e)})}),!0,!0)},y=[p(),g(),n("Apply",(function(t){h(t,(function(t){var n=e.getRect();return ix(t,n.x,n.y,n.w,n.h)})),e.hideCrop()}),!1,!0)],O=Fy.sketch({dom:a,components:y.map((function(e){return e.asSpec()})),containerBehaviours:Gs([Sp("image-tools-crop-buttons-events",[Bi(Ux.disable(),(function(e,t){o(y,e)})),Bi(Ux.enable(),(function(e,t){i(y,e)}))])])}),b=zm(Dx({name:"size",label:z.none(),constrain:!0,disabled:!1},t)),w=[p(),g(),b,g(),n("Apply",(function(e){b.getOpt(e).each((function(t){var n,r,o=Wu.getValue(t),i=(n=parseInt(o.width,10),r=parseInt(o.height,10),function(e){return function(e,t,n){return function(e,t,n){return e.toCanvas().then((function(r){return Y_(r,t,n).then((function(t){return I_(t,e.getType())}))}))}(e,t,n)}(e,n,r)});h(e,i)}))}),!1,!0)],_=Fy.sketch({dom:a,components:w.map((function(e){return e.asSpec()})),containerBehaviours:Gs([Sp("image-tools-resize-buttons-events",[Bi(Ux.disable(),(function(e,t){o(w,e)})),Bi(Ux.enable(),(function(e,t){i(w,e)}))])])}),x=function(e,t){return function(n){return e(n,t)}},S=x(ox,"h"),k=x(ox,"v"),C=x(ax,-90),B=x(ax,90),Q=function(e,t){!function(e,t){c(e),l(e,Ix.tempTransform(),{transform:t}),u(e)}(e,t)},T=[p(),g(),r("flip-horizontally","Flip horizontally",(function(e){Q(e,S)}),!1),r("flip-vertically","Flip vertically",(function(e){Q(e,k)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){Q(e,C)}),!1),r("rotate-right","Rotate clockwise",(function(e){Q(e,B)}),!1),g(),v()],E=Fy.sketch({dom:a,components:T.map((function(e){return e.asSpec()})),containerBehaviours:Gs([Sp("image-tools-fliprotate-buttons-events",[Bi(Ux.disable(),(function(e,t){o(T,e)})),Bi(Ux.enable(),(function(e,t){i(T,e)}))])])}),P=function(e,n,r,o,i){var a=jw.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),s=jw.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),l=jw.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return zm(jw.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:i,getInitialValue:A({x:o})},components:[a,s,l],sliderBehaviours:Gs([Tp.config({})]),onChoose:n}))},$=function(e,t,n,r,o){return P(e,(function(e,n,r){var o=x(t,r.x/100);d(e,o)}),n,r,o)},M=function(e,t,n,r,s){var l=function(e,t,n,r,o){return[p(),$(e,t,n,r,o),v()]}(e,t,n,r,s);return Fy.sketch({dom:a,components:l.map((function(e){return e.asSpec()})),containerBehaviours:Gs([Sp("image-tools-filter-panel-buttons-events",[Bi(Ux.disable(),(function(e,t){o(l,e)})),Bi(Ux.enable(),(function(e,t){i(l,e)}))])])})},R=[p(),g(),v()],D=Fy.sketch({dom:a,components:R.map((function(e){return e.asSpec()}))}),I=M("Brightness",nx,-100,0,100),N=M("Contrast",rx,-100,0,100),L=M("Gamma",tx,-100,0,100),V=function(e,t,n){return function(r){return function(e,t,n,r){return function(e,t,n,r){return U_(e,function(e,t,n,r){return t=N_(t,0,2),n=N_(n,0,2),r=N_(r,0,2),V_([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])}(0,t,n,r))}(e,t,n,r)}(r,e,t,n)}},U=function(e){return P(e,(function(e,t,n){var r=F.getOpt(e),o=W.getOpt(e),i=H.getOpt(e);r.each((function(t){o.each((function(n){i.each((function(r){var o=Wu.getValue(t).x/100,i=Wu.getValue(r).x/100,a=Wu.getValue(n).x/100,s=V(o,i,a);d(e,s)}))}))}))}),0,100,200)},F=U("R"),H=U("G"),W=U("B"),X=[p(),F,H,W,v()],j=Fy.sketch({dom:a,components:X.map((function(e){return e.asSpec()}))}),q=function(e,t,n){return function(r){l(r,Ix.swap(),{transform:t,swap:function(){ee.getOpt(r).each((function(t){xp.set(t,[e]),n(t)}))}})}},Z=z.some(ex),Y=z.some(J_),G=[r("crop","Crop",q(O,z.none(),(function(t){e.showCrop()})),!1),r("resize","Resize",q(_,z.none(),(function(t){b.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,o=n.height;Wu.setValue(t,{width:r,height:o})}))})),!1),r("orientation","Orientation",q(E,z.none(),s),!1),r("brightness","Brightness",q(I,z.none(),s),!1),r("sharpen","Sharpen",q(D,Z,s),!1),r("contrast","Contrast",q(N,z.none(),s),!1),r("color-levels","Color levels",q(j,z.none(),s),!1),r("gamma","Gamma",q(L,z.none(),s),!1),r("invert","Invert",q(D,Y,s),!1)],K=Fy.sketch({dom:a,components:G.map((function(e){return e.asSpec()}))}),J=Fy.sketch({dom:{tag:"div"},components:[K],containerBehaviours:Gs([xp.config({})])}),ee=zm(J);return{memContainer:ee,getApplyButton:function(e){return ee.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))}}},Hx=tinymce.util.Tools.resolve("tinymce.geom.Rect"),Wx=tinymce.util.Tools.resolve("tinymce.util.Observable"),Xx=tinymce.util.Tools.resolve("tinymce.util.VK"),jx=function(e){if(function(e){return d(e.changedTouches)}(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n0},canRedo:o=function(){return-1!==n&&n=1?r.set(1):r.set(s)}))}(e,o),s(e,o)}))}))},c=Fy.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[n.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:Gs([Sp("image-panel-crop-events",[Ri((function(e){u.getOpt(e).each((function(e){var t=e.element.dom,n=Gx({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,m);n.toggleVisibility(!1),n.on("updateRect",(function(e){var t=e.rect,n=r.get(),o={x:Math.round(t.x/n),y:Math.round(t.y/n),w:Math.round(t.w/n),h:Math.round(t.h/n)};i.set(o)})),o.set(n)}))})),Di((function(){o.clear()}))])])}],containerBehaviours:Gs([xp.config({}),Sp("image-panel-events",[Ri((function(t){l(t,e)}))])])}),u=zm(c);return{memContainer:u,updateSrc:l,zoom:function(e,t){var n=r.get(),o=t>0?Math.min(2,n+.1):Math.max(.1,n-.1);r.set(o),u.getOpt(e).each((function(e){var t=e.components()[1].element;s(e,t)}))},showCrop:function(){o.run((function(e){e.toggleVisibility(!0)}))},hideCrop:function(){o.run((function(e){e.toggleVisibility(!1)}))},getRect:function(){return i.get()},getMeasurements:function(){var e=a.get();return{width:e.w,height:e.h}}}}(e.currentState.url),f=function(e){var t=zm(Kx("Undo","undo",!0,(function(e){Oi(e,Ix.undo(),{direction:1})}),e)),n=zm(Kx("Redo","redo",!0,(function(e){Oi(e,Ix.redo(),{direction:1})}),e));return{container:Fy.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[t.asSpec(),n.asSpec(),Kx("Zoom in","zoom-in",!1,(function(e){Oi(e,Ix.zoom(),{direction:1})}),e),Kx("Zoom out","zoom-out",!1,(function(e){Oi(e,Ix.zoom(),{direction:-1})}),e)]}),updateButtonUndoStates:function(e,r,o){t.getOpt(e).each((function(e){Jx(e,r)})),n.getOpt(e).each((function(e){Jx(e,o)}))}}}(t),h=Fx(d,t);return{dom:{tag:"div",attributes:{role:"presentation"}},components:[h.memContainer.asSpec(),d.memContainer.asSpec(),f.container],behaviours:Gs([Wu.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),Sp("image-tools-events",[Bi(Ix.undo(),(function(e,t){var o=n.undo();s(e,o).then((function(t){a(e),r(e)}))})),Bi(Ix.redo(),(function(e,t){var o=n.redo();s(e,o).then((function(t){a(e),r(e)}))})),Bi(Ix.zoom(),(function(e,t){var n=t.event.direction;d.zoom(e,n)})),Bi(Ix.back(),(function(e,t){!function(e){var t=u(e);s(e,t).then((function(t){a(e)}))}(e),(0,t.event.swap)(),d.hideCrop()})),Bi(Ix.apply(),(function(e,t){n.applyTempState((function(){u(e),(0,t.event.swap)()}))})),Bi(Ix.transform(),(function(e,t){return c(e,t.event.transform,m)})),Bi(Ix.tempTransform(),(function(e,t){return function(e,t){var r=n.getTempState().blob;l(e,r,t,(function(e){return n.addTempState(e)}),m)}(e,t.event.transform)})),Bi(Ix.transformApply(),(function(e,t){return function(e,t,r){var o=n.getBlobState().blob;l(e,o,t,(function(t){var r=n.addBlobState(t);return u(e),r}),r)}(e,t.event.transform,t.event.swap)})),Bi(Ix.swap(),(function(e,t){!function(e){f.updateButtonUndoStates(e,!1,!1)}(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){c(e,t,r)}))}))]),l_()])}},tS=function(e){return!Oe(e,"items")},nS="data-value",rS=function(e,t,n,r){return H(n,(function(n){return tS(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Wu.setValue(e,n.value),Oi(e,nO,{name:t}),Tp.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return rS(e,t,n.items,r)}}}))},oS=function(e,t){return ue(e,(function(e){return tS(e)?Se(e.value===t,e):oS(e.items,t)}))},iS=jd({name:"HtmlSelect",configFields:[Vr("options"),Xu("selectBehaviours",[Tp,Wu]),ro("selectClasses",[]),ro("selectAttributes",{}),Yr("data")],factory:function(e,t){var n=H(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return Ao("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:qu(e.selectBehaviours,[Tp.config({}),Wu.config({store:k({mode:"manual",getValue:function(e){return Ca(e.element)},setValue:function(t,n){Y(e.options,(function(e){return e.value===n})).isSome()&&Ba(t.element,n)}},r)})])}}}),aS=function(e,t){var n=e.label.map((function(e){return tO(e,t)})),r=[hf.config({disabled:function(){return e.disabled||t.isDisabled()}}),nv(),vp.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return yi(e,aO),z.some(!0)}}),Sp("textfield-change",[Bi(No(),(function(t,n){Oi(t,nO,{name:e.name})})),Bi(Yo(),(function(t,n){Oi(t,nO,{name:e.name})}))]),Yy.config({})],o=e.validation.map((function(e){return zO.config({getRoot:function(e){return Bt(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=Wu.getValue(t),r=e.validator(n);return SO(!0===r?Xn.value(n):Xn.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),i=e.placeholder.fold(A({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(A({}),(function(e){return{inputmode:e}})),s=k(k({},i),a),l=jy.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:s,inputClasses:[e.classname],inputBehaviours:Gs(K([r,o])),selectOnFocus:!1,factory:mO}),c=(e.flex?["tox-form__group--stretched"]:[]).concat(e.maximized?["tox-form-group--maximize"]:[]),u=[hf.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){jy.getField(e).each(hf.disable)},onEnabled:function(e){jy.getField(e).each(hf.enable)}}),nv()];return Ky(n,l,c,u)},sS=Object.freeze({__proto__:null,events:function(e,t){var n=e.stream.streams.setup(e,t);return Si([Bi(e.event,n),Di((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Bi(e,(function(){return t.cancel()}))]})).getOr([])))}}),lS=function(e){var t=ho(null);return ua({readState:function(){return{timer:null!==t.get()?"set":"unset"}},setTimer:function(e){t.set(e)},cancel:function(){var e=t.get();null!==e&&e.cancel()}})},cS=Object.freeze({__proto__:null,throttle:lS,init:function(e){return e.stream.streams.state(e)}}),uS=[Ur("stream",Dr("mode",{throttle:[Vr("delay"),ro("stopEvent",!0),cs("streams",{setup:function(e,t){var n=e.stream,r=Zm(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},state:lS})]})),ro("event","input"),Yr("cancelEvent"),ss("onStream")],dS=Js({fields:uS,name:"streaming",active:sS,state:cS}),fS=function(e,t,n){var r=Wu.getValue(n);Wu.setValue(t,r),pS(t)},hS=function(e,t){var n=e.element,r=Ca(n),o=n.dom;"number"!==jt(n,"type")&&t(o,r)},pS=function(e){hS(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},mS=A("alloy.typeahead.itemexecute"),gS=A([Yr("lazySink"),Vr("fetch"),ro("minChars",5),ro("responseTime",1e3),is("onOpen"),ro("getHotspot",z.some),ro("getAnchorOverrides",A({})),ro("layouts",z.none()),ro("eventOrder",{}),fo("model",{},[ro("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),ro("selectsOver",!0),ro("populateFromBrowse",!0)]),is("onSetValue"),as("onExecute"),is("onItemExecute"),ro("inputClasses",[]),ro("inputAttributes",{}),ro("inputStyles",{}),ro("matchWidth",!0),ro("useMinWidth",!1),ro("dismissOnBlur",!0),rs(["openClass"]),Yr("initialData"),Xu("typeaheadBehaviours",[Tp,Wu,dS,vp,Up,NO]),Nr("previewing",(function(){return ho(!0)}))].concat(dO()).concat(JO())),AS=A([Od({schema:[ns()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){(function(e,t,n){if(e.selectsOver){var r=Wu.getValue(t),o=e.getDisplayText(r),i=Wu.getValue(n);return 0===e.getDisplayText(i).indexOf(o)?z.some((function(){fS(0,t,n),function(e,t){hS(e,(function(e,n){return e.setSelectionRange(t,n.length)}))}(t,o.length)})):z.none()}return z.none()})(e.model,r,n).fold((function(){return _f.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&fS(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return Oi(e,mS(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&fS(e.model,t,n)}))}}}})]),vS=qd({name:"Typeahead",configFields:gS(),partFields:AS(),factory:function(e,t,n,r){var o=function(t,n,o){e.previewing.set(!1);var i=NO.getCoupled(t,"sandbox");Su.isOpen(i)?Kd.getCurrent(i).each((function(e){_f.getHighlighted(e).fold((function(){o(e)}),(function(){xi(i,e.element,"keydown",n)}))})):XO(e,a(t),t,i,r,(function(e){Kd.getCurrent(e).each(o)}),vO.HighlightFirst).get(m)},i=fO(e),a=function(e){return function(t){return t.map((function(t){var n=ve(t.menus),r=J(n,(function(e){return j(e.items,(function(e){return"item"===e.type}))}));return Wu.getState(e).update(H(r,(function(e){return e.data}))),t}))}},s=[Tp.config({}),Wu.config({onSetValue:e.onSetValue,store:k({mode:"dataset",getDataKey:function(e){return Ca(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){Ba(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return Ao("initialValue",e)})).getOr({}))}),dS.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var o=NO.getCoupled(t,"sandbox");if(Tp.isFocused(t)&&Ca(t.element).length>=e.minChars){var i=Kd.getCurrent(o).bind((function(e){return _f.getHighlighted(e).map(Wu.getValue)}));e.previewing.set(!0),XO(e,a(t),t,o,r,(function(t){Kd.getCurrent(o).each((function(t){i.fold((function(){e.model.selectsOver&&_f.highlightFirst(t)}),(function(e){_f.highlightBy(t,(function(t){return Wu.getValue(t).value===e.value})),_f.getHighlighted(t).orThunk((function(){return _f.highlightFirst(t),z.none()}))}))}))}),vO.HighlightFirst).get(m)}},cancelEvent:ri()}),vp.config({mode:"special",onDown:function(e,t){return o(e,t,_f.highlightFirst),z.some(!0)},onEscape:function(e){var t=NO.getCoupled(e,"sandbox");return Su.isOpen(t)?(Su.close(t),z.some(!0)):z.none()},onUp:function(e,t){return o(e,t,_f.highlightLast),z.some(!0)},onEnter:function(t){var n=NO.getCoupled(t,"sandbox"),r=Su.isOpen(n);if(r&&!e.previewing.get())return Kd.getCurrent(n).bind((function(e){return _f.getHighlighted(e)})).map((function(e){return Oi(t,mS(),{item:e}),!0}));var o=Wu.getValue(t);return yi(t,ri()),e.onExecute(n,t,o),r&&Su.close(n),z.some(!0)}}),Up.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),NO.config({others:{sandbox:function(t){return GO(e,t,{onOpen:function(){return Up.on(t)},onClose:function(){return Up.off(t)}})}}}),Sp("typeaheadevents",[Ni((function(t){var n=m;qO(e,a(t),t,r,n,vO.HighlightFirst).get(m)})),Bi(mS(),(function(t,n){var r=NO.getCoupled(t,"sandbox");fS(e.model,t,n.event.item),yi(t,ri()),e.onItemExecute(t,r,n.event.item,Wu.getValue(t)),Su.close(r),pS(t)}))].concat(e.dismissOnBlur?[Bi(Zo(),(function(e){var t=NO.getCoupled(e,"sandbox");cl(t.element).isNone()&&Su.close(t)}))]:[]))];return{uid:e.uid,dom:pO(nr(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:k(k({},i),qu(e.typeaheadBehaviours,s)),eventOrder:e.eventOrder}}}),yS=function(e){return k(k({},e),{toCached:function(){return yS(e.toCached())},bindFuture:function(t){return yS(e.bind((function(e){return e.fold((function(e){return SO(Xn.error(e))}),(function(e){return t(e)}))})))},bindResult:function(t){return yS(e.map((function(e){return e.bind(t)})))},mapResult:function(t){return yS(e.map((function(e){return e.map(t)})))},mapError:function(t){return yS(e.map((function(e){return e.mapError(t)})))},foldResult:function(t,n){return e.map((function(e){return e.fold(t,n)}))},withTimeout:function(t,n){return yS(xO((function(r){var o=!1,i=setTimeout((function(){o=!0,r(Xn.error(n()))}),t);e.get((function(e){o||(clearTimeout(i),r(e))}))})))}})},OS=function(e){return yS(xO(e))},bS={type:"separator"},wS=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:m}},_S=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:m}},xS=function(e,t){return function(e){return H(e,wS)}(function(e,t){return j(t,(function(t){return t.type===e}))}(e,t))},SS=function(e){return xS("header",e.targets)},kS=function(e){return xS("anchor",e.targets)},CS=function(e){return z.from(e.anchorTop).map((function(e){return _S("",e)})).toArray()},BS=function(e){return z.from(e.anchorBottom).map((function(e){return _S("",e)})).toArray()},QS=function(e,t){var n=e.toLowerCase();return j(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return Ce(t.toLowerCase(),n)||Ce(e.value.toLowerCase(),n)}))},TS=ji("aria-invalid"),ES=function(e){return function(t,n,r){return ye(n,"name").fold((function(){return e(n,r)}),(function(o){return t.field(o,e(n,r))}))}},PS={bar:ES((function(e,t){return function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:H(e.items,t.interpreter)}}(e,t.shared)})),collection:ES((function(e,t){return function(e,t){var n,r,o=e.label.map((function(e){return tO(e,t)})),i=function(e){return function(t,n){Wa(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,jt(r,"data-collection-item-value"))}))}},a=i((function(n,r,o,i){r.stop(),t.isDisabled()||Oi(n,iO,{name:e.name,value:i})})),s=[Bi(Mo(),i((function(e,t,n){al(n)}))),Bi(Vo(),a),Bi(ei(),a),Bi(zo(),i((function(e,t,n){Ha(e.element,"."+Rg).each((function(e){_a(e,Rg)})),wa(n,Rg)}))),Bi(Ro(),i((function(e){Ha(e.element,"."+Rg).each((function(e){_a(e,Rg)}))}))),Ni(i((function(t,n,r,o){Oi(t,iO,{name:e.name,value:o})})))],l=function(e,t){return H(Cc(e.element,".tox-collection__item"),t)},c=jy.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:v},behaviours:Gs([hf.config({disabled:t.isDisabled,onDisabled:function(e){l(e,(function(e){wa(e,"tox-collection__item--state-disabled"),Wt(e,"aria-disabled",!0)}))},onEnabled:function(e){l(e,(function(e){_a(e,"tox-collection__item--state-disabled"),Yt(e,"aria-disabled")}))}}),nv(),xp.config({}),Wu.config({store:{mode:"memory",initialValue:[]},onSetValue:function(n,r){!function(n,r){var o=H(r,(function(n){var r=Rm.translate(n.text),o=1===e.columns?'
'+r+"
":"",i='
'+n.icon+"
",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]}));return'
'+i+o+"
"})),i="auto"!==e.columns&&e.columns>1?F(o,e.columns):[o],a=H(i,(function(e){return'
'+e.join("")+"
"}));Vi(n.element,a.join(""))}(n,r),"auto"===e.columns&&mA(n,5,"tox-collection__item").each((function(e){var t=e.numRows,r=e.numColumns;vp.setGridSize(n,t,r)})),yi(n,uO)}}),Yy.config({}),vp.config((r=e.columns,1===r?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===r?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:".tox-collection__group",cell:"."+Qg}})),Sp("collection-events",s)]),eventOrder:(n={},n[Ko()]=["disabling","alloy.base.behaviour","collection-events"],n)});return Ky(o,c,["tox-form__group--collection"],[])}(e,t.shared.providers)})),alertbanner:ES((function(e,t){return function(e,t){return Fy.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Mm.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Um(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){Oi(t,iO,{name:"alert-banner",value:e.url})},buttonBehaviours:Gs([Fm()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})}(e,t.shared.providers)})),input:ES((function(e,t){return function(e,t){return aS({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:z.none(),maximized:e.maximized},t)}(e,t.shared.providers)})),textarea:ES((function(e,t){return function(e,t){return aS({name:e.name,multiline:!0,label:e.label,inputMode:z.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:z.none(),maximized:e.maximized},t)}(e,t.shared.providers)})),label:ES((function(e,t){return function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=H(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:Gs([l_(),xp.config({}),v_(z.none()),vp.config({mode:"acyclic"})])}}(e,t.shared)})),iframe:(Zx=function(e,t){return function(e,t){var n=C_&&e.sandboxed,r=k(k({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),o=function(e){var t=ho("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)Wt(n.element,"srcdoc",r);else{Wt(n.element,"src","javascript:''");var o=n.element.dom.contentWindow.document;o.open(),o.write(r),o.close()}t.set(r)}}}(n),i=e.label.map((function(e){return tO(e,t)})),a=jy.parts.field({factory:{sketch:function(e){return __({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:Gs([Yy.config({}),Tp.config({}),A_(z.none(),o.getValue,o.setValue)])})}}});return Ky(i,a,["tox-form__group--stretched"],[])}(e,t.shared.providers)},function(e,t,n){var r=nr(t,{source:"dynamic"});return ES(Zx)(e,r,n)}),button:ES((function(e,t){return function(e,t){var n,r,o=Bx(e.name,"custom");return n=z.none(),r=jy.parts.field(k({factory:Mm},kx(e,z.some(o),t,[y_(""),l_()]))),Ky(n,r,[],[])}(e,t.shared.providers)})),checkbox:ES((function(e,t){return function(e,t){var n=Wu.config({store:{mode:"manual",getValue:function(e){return e.element.dom.checked},setValue:function(e,t){e.element.dom.checked=t}}}),r=function(e){return e.element.dom.click(),z.some(!0)},o=jy.parts.field({factory:{sketch:v},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Gs([l_(),hf.config({disabled:function(){return e.disabled||t.isDisabled()}}),Yy.config({}),Tp.config({}),n,vp.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Sp("checkbox-events",[Bi(Lo(),(function(t,n){Oi(t,nO,{name:e.name})}))])])}),i=jy.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:Gs([ob.config({})])}),a=function(e){return Wm("checked"===e?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},s=zm({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return jy.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[o,s.asSpec(),i],fieldBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){jy.getField(e).each(hf.disable)},onEnabled:function(e){jy.getField(e).each(hf.enable)}}),nv()])})}(e,t.shared.providers)})),colorinput:ES((function(e,t){return function(e,t,n){var r=jy.parts.field({factory:mO,inputClasses:["tox-textfield"],onSetValue:function(e){return zO.run(e).get(m)},inputBehaviours:Gs([hf.config({disabled:t.providers.isDisabled}),nv(),Yy.config({}),zO.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return Bt(e.element)},notify:{onValid:function(e){var t=Wu.getValue(e);Oi(e,ib,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=Wu.getValue(e);if(0===t.length)return SO(Xn.value(!0));var n=Me("span");Jt(n,"background-color",t);var r=on(n,"background-color").fold((function(){return Xn.error("blah")}),(function(e){return Xn.value(t)}));return SO(r)}}})]),selectOnFocus:!1}),o=e.label.map((function(e){return tO(e,t.providers)})),i=function(e,t){Oi(e,ab,{value:t})},a=zm(function(e,t){return nb.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:Gs([rv(t.providers.isDisabled),nv(),ob.config({}),Yy.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return xO((function(t){return e.fetch(t)})).map((function(r){return z.from(Ty(nr(Ay(ji("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,Cg.CLOSE_ON_EXECUTE,_,t.providers),{movement:yy(e.columns,e.presets)})))}))},parts:{menu:Wg(0,0,e.presets)}})}({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[$s,Ps,Ds]},onLtr:function(){return[Ps,$s,Ds]}},components:[],fetch:fy(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:function(e,t){a.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return yi(e,sb)}),(function(t){i(e,t),ay(t)}))}),"#ffffff"):i(e,"remove"===t?"":t)}))}},t));return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,a.asSpec()]}]),fieldBehaviours:Gs([Sp("form-field-events",[Bi(ib,(function(t,n){a.getOpt(t).each((function(e){Jt(e.element,"background-color",n.event.color)})),Oi(t,nO,{name:e.name})})),Bi(ab,(function(e,t){jy.getField(e).each((function(n){Wu.setValue(n,t.event.value),Kd.getCurrent(e).each(Tp.focus)}))})),Bi(sb,(function(e,t){jy.getField(e).each((function(t){Kd.getCurrent(e).each(Tp.focus)}))}))])])})}(e,t.shared,t.colorinput)})),colorpicker:ES((function(e){var t=function(e){return"tox-"+e},n=s_(d_,t),r=zm(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:function(e){Oi(e,iO,{name:"hex-valid",value:!0})},onInvalidHex:function(e){Oi(e,iO,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[r.asSpec()],behaviours:Gs([Wu.config({store:{mode:"manual",getValue:function(e){var t=r.get(e);return Kd.getCurrent(t).bind((function(e){return Wu.getValue(e).hex})).map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(t),o=r.get(e);Kd.getCurrent(o).fold((function(){console.log("Can not find form")}),(function(e){Wu.setValue(e,{hex:z.from(n[1]).getOr("")}),t_.getField(e,"hex").each((function(e){yi(e,No())}))}))}}}),l_()])}})),dropzone:ES((function(e,t){return function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){W(e,(function(e){e(t,n)}))}},o=function(e,t){if(!hf.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},i=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){Wu.setValue(n,function(e,t){var n=h_.explode(t.getSetting("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string"));return j(ce(e),(function(e){return V(n,(function(t){return Be(e.name.toLowerCase(),"."+t.toLowerCase())}))}))}(r,t)),Oi(n,nO,{name:e.name})},s=zm({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Gs([Sp("input-file-events",[$i(Vo()),$i(ei())])])}),l=e.label.map((function(e){return tO(e,t)})),c=jy.parts.field({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Gs([y_([]),l_(),hf.config({}),Up.config({toggleClass:"dragenter",toggleOnExecute:!1}),Sp("dropzone-events",[Bi("dragenter",r([n,Up.toggle])),Bi("dragleave",r([n,Up.toggle])),Bi("dragover",n),Bi("drop",r([n,o])),Bi(Lo(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},Mm.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){s.get(e).element.dom.click()},buttonBehaviours:Gs([Yy.config({}),rv(t.isDisabled),nv()])})]}]}}}});return Ky(l,c,["tox-form__group--stretched"],[])}(e,t.shared.providers)})),grid:ES((function(e,t){return function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:H(e.items,t.interpreter)}}(e,t.shared)})),listbox:ES((function(e,t){return function(e,t){var n=t.shared.providers,r=se(e.items).filter(tS),o=e.label.map((function(e){return tO(e,n)})),i={dom:{tag:"div",classes:["tox-listboxfield"]},components:[jy.parts.field({dom:{},factory:{sketch:function(n){return mx({uid:n.uid,text:r.map((function(e){return e.text})),icon:z.none(),tooltip:e.label,role:z.none(),fetch:function(n,r){var o=rS(n,e.name,e.items,Wu.getValue(n));r(yx(o,Cg.CLOSE_ON_EXECUTE,t,!1))},onSetup:A(m),getApi:A({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Yy.config({}),Wu.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return jt(e.element,nS)},setValue:function(t,n){oS(e.items,n).each((function(e){Wt(t.element,nS,e.value),Oi(t,hx,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}})]};return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:K([o.toArray(),[i]]),fieldBehaviours:Gs([hf.config({disabled:A(e.disabled),onDisabled:function(e){jy.getField(e).each(hf.disable)},onEnabled:function(e){jy.getField(e).each(hf.enable)}})])})}(e,t)})),selectbox:ES((function(e,t){return function(e,t){var n=H(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return tO(e,t)})),o=jy.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:iS,selectBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()}}),Yy.config({}),Sp("selectbox-change",[Bi(Lo(),(function(t,n){Oi(t,nO,{name:e.name})}))])])}),i=e.size>1?z.none():z.some(Wm("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:K([[o],i.toArray()])};return jy.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:K([r.toArray(),[a]]),fieldBehaviours:Gs([hf.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){jy.getField(e).each(hf.disable)},onEnabled:function(e){jy.getField(e).each(hf.enable)}}),nv()])})}(e,t.shared.providers)})),sizeinput:ES((function(e,t){return Dx(e,t.shared.providers)})),urlinput:ES((function(e,t){return function(e,t,n){var r,o=t.shared.providers,i=function(t){var r=Wu.getValue(t);n.addToHistory(r.value,e.filetype)},a=jy.parts.field({factory:vS,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":TS,type:"url"},minChars:0,responseTime:0,fetch:function(r){var o=function(e,t,n){var r=Wu.getValue(t),o=void 0!==r.meta.text?r.meta.text:r.value;return n.getLinkInformation().fold((function(){return[]}),(function(t){var r,i=QS(o,function(e){return H(e,(function(e){return _S(e,e)}))}(n.getHistory(e)));return"file"===e?(r=[i,QS(o,SS(t)),QS(o,K([CS(t),kS(t),BS(t)]))],Z(r,(function(e,t){return 0===e.length||0===t.length?e.concat(t):e.concat(bS,t)}),[])):i}))}(e.filetype,r,n),i=yx(o,Cg.BUBBLE_TO_SANDBOX,t,!1);return SO(i)},getHotspot:function(e){return f.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(zO)&&zO.run(e).get(m)},typeaheadBehaviours:Gs(K([n.getValidationHandler().map((function(t){return zO.config({getRoot:function(e){return Bt(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){l.getOpt(e).each((function(e){Wt(e.element,"title",o.translate(t))}))}},validator:{validate:function(n){var r=Wu.getValue(n);return OS((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=Xn.error(e.message);n(t)}else{var r=Xn.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[hf.config({disabled:function(){return e.disabled||o.isDisabled()}}),Yy.config({}),Sp("urlinput-events",K(["file"===e.filetype?[Bi(No(),(function(t){Oi(t,nO,{name:e.name})}))]:[],[Bi(Lo(),(function(t){Oi(t,nO,{name:e.name}),i(t)})),Bi(Yo(),(function(t){Oi(t,nO,{name:e.name}),i(t)}))]]))]])),eventOrder:(r={},r[No()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:Wg(0,0,"normal")},onExecute:function(e,t,n){Oi(t,aO,{})},onItemExecute:function(t,n,r,o){i(t),Oi(t,nO,{name:e.name})}}),s=e.label.map((function(e){return tO(e,o)})),l=zm(function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),Wm(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:k({title:o.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},o.icons)}("invalid",z.some(TS),"warning")),c=zm({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[l.asSpec()]}),u=n.getUrlPicker(e.filetype),d=ji("browser.url.event"),f=zm({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,c.asSpec()],behaviours:Gs([hf.config({disabled:function(){return e.disabled||o.isDisabled()}})])}),h=zm(Cx({name:e.name,icon:z.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return yi(e,d)}),o,[],["tox-browse-url"]));return jy.sketch({dom:eO([]),components:s.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:K([[f.asSpec()],u.map((function(){return h.asSpec()})).toArray()])}]),fieldBehaviours:Gs([hf.config({disabled:function(){return e.disabled||o.isDisabled()},onDisabled:function(e){jy.getField(e).each(hf.disable),h.getOpt(e).each(hf.disable)},onEnabled:function(e){jy.getField(e).each(hf.enable),h.getOpt(e).each(hf.enable)}}),nv(),Sp("url-input-events",[Bi(d,(function(t){Kd.getCurrent(t).each((function(n){var r=Wu.getValue(n),o=k({fieldname:e.name},r);u.each((function(r){r(o).get((function(r){Wu.setValue(n,r),Oi(t,nO,{name:e.name})}))}))}))}))])])})}(e,t,t.urlinput)})),customeditor:ES((function(e){var t=Ql(),n=zm({dom:{tag:e.tag}}),r=Ql();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Gs([Sp("custom-editor-events",[Ri((function(o){n.getOpt(o).each((function(n){(!function(e){return Oe(e,"init")}(e)?f_.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)})):e.init(n.element.dom)).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),Wu.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),l_()]),components:[n.asSpec()]}})),htmlpanel:ES((function(e){return"presentation"===e.presets?Fy.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):Fy.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:Gs([Yy.config({}),Tp.config({})])})})),imagetools:ES((function(e,t){return eS(e,t.shared.providers)})),table:ES((function(e,t){return function(e,t){var n,r,o=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[(r=e.header,{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:H(r,(function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}}))}]}),(n=e.cells,{dom:{tag:"tbody"},components:H(n,(function(e){return{dom:{tag:"tr"},components:H(e,o)}}))})],behaviours:Gs([Yy.config({}),Tp.config({})])}}(e,t.shared.providers)})),panel:ES((function(e,t){return function(e,t){return{dom:{tag:"div",classes:e.classes},components:H(e.items,t.shared.interpreter)}}(e,t)}))},$S={field:function(e,t){return t}},MS=function(e,t,n){var r=nr(n,{shared:{interpreter:function(t){return zS(e,t,r)}}});return zS(e,t,r)},zS=function(e,t,n){return ye(PS,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},RS={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},DS=function(e,t,n){var r={maxHeightFunction:Nl()};return function(){return n()?{type:"node",root:It(e()),node:z.from(e()),bubble:Fl(12,12,RS),layouts:{onRtl:function(){return[xm]},onLtr:function(){return[_m]}},overrides:r}:{type:"hotspot",hotspot:t(),bubble:Fl(-12,12,RS),layouts:{onRtl:function(){return[Ps]},onLtr:function(){return[$s]}},overrides:r}}},IS=function(e,t,n){return function(){return n()?{type:"node",root:It(e()),node:z.from(e()),layouts:{onRtl:function(){return[Sm]},onLtr:function(){return[Sm]}}}:{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[Ds]},onLtr:function(){return[Ds]}}}}},NS=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return z.some(mc.range(Re(t.startContainer),t.startOffset,Re(t.endContainer),t.endOffset))}}}},LS=function(e){return function(t){return{type:"node",root:e(),node:t}}},VS=function(e,t,n){var r=HA(e),o=function(){return Re(e.getBody())},i=function(){return Re(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:DS(i,t,a),banner:IS(i,t,a),cursor:NS(e,o),node:LS(o)}},US=function(e){return function(t,n){gy(e)(t,n)}},FS=function(e){return function(){return oy(e)}},HS=function(e){return function(){return iy(e)}},WS=function(e){return function(){return ly(e)}},XS=function(e){return{colorPicker:US(e),hasCustomColors:FS(e),getColors:HS(e),getColorCols:WS(e)}},jS=function(e){return function(){return function(e){return e.getParam("draggable_modal",!1,"boolean")}(e)}},qS=function(e){return{isDraggableModal:jS(e)}},ZS=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],YS=function(e){return Z(e,(function(e,t){if(Oe(t,"items")){var n=YS(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(Oe(t,"inline")||function(e){return Oe(e,"block")}(t)||function(e){return Oe(e,"selector")}(t)){var r="custom-"+(o(t.name)?t.name:t.title.toLowerCase());return{customFormats:e.customFormats.concat([{name:r,format:t}]),formats:e.formats.concat([{title:t.title,format:r,icon:t.icon}])}}return k(k({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},GS=function(e){return function(e){return z.from(e.getParam("style_formats")).filter(a)}(e).map((function(t){var n=function(e,t){var n=YS(t),r=function(t){W(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats}(e,t);return function(e){return e.getParam("style_formats_merge",!1,"boolean")}(e)?ZS.concat(n):n})).getOr(ZS)},KS=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return nr(e,r)},JS=function(e,t,n,r){var i=function(t){return H(t,(function(t){var a=de(t);if(be(t,"items")){var s=i(t.items);return nr(function(e){return nr(e,{type:"submenu"})}(t),{getStyleItems:A(s)})}return be(t,"format")?function(e){return KS(e,n,r)}(t):1===a.length&&L(a,"title")?nr(t,{type:"separator"}):function(t){var i=o(t.name)?t.name:ji(t.title),a="custom-"+i,s={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},l=nr(t,s);return e.formatter.register(i,l),l}(t)}))};return i(t)},ek=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):z.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?J(t,r):[e.format]},o=ho([]),i=ho([]),a=ho([]),s=ho([]),l=ho(!1);return e.on("PreInit",(function(a){var s=GS(e),l=JS(e,s,t,n);o.set(l),i.set(J(l,r))})),e.on("addStyleModifications",(function(o){var i=JS(e,o.items,t,n);a.set(i),l.set(o.replace),s.set(J(i,r))})),{getData:function(){var e=l.get()?[]:o.get(),t=a.get();return e.concat(t)},getFlattenedKeys:function(){var e=l.get()?[]:i.get(),t=s.get();return e.concat(t)}}},tk=h_.trim,nk=function(e){return function(t){if(function(e){return d(e)&&1===e.nodeType}(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},rk=nk("true"),ok=nk("false"),ik=function(e,t,n,r,o){return{type:e,title:t,url:n,level:r,attach:o}},ak=function(e){return e.innerText||e.textContent},sk=function(e){return function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)}(e)&&ck(e)},lk=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},ck=function(e){return function(e){for(;e=e.parentNode;){var t=e.contentEditable;if(t&&"inherit"!==t)return rk(e)}return!1}(e)&&!ok(e)},uk=function(e){return lk(e)&&ck(e)},dk=function(e){var t=function(e){return e.id?e.id:ji("h")}(e);return ik("header",ak(e),"#"+t,function(e){return lk(e)?parseInt(e.nodeName.substr(1),10):0}(e),(function(){e.id=t}))},fk=function(e){var t=e.id||e.name,n=ak(e);return ik("anchor",n||"#"+t,"#"+t,0,m)},hk=function(e){return tk(e.title).length>0},pk=function(e){var t=function(e){var t=H(Cc(Re(e),"h1,h2,h3,h4,h5,h6,a:not([href])"),(function(e){return e.dom}));return t}(e);return j(function(e){return H(j(e,uk),dk)}(t).concat(function(e){return H(j(e,sk),fk)}(t)),hk)},mk="tinymce-url-history",gk=function(e){return o(e)&&/^https?/.test(e)},Ak=function(e){return i(e)&&Ae(e,(function(e){return!(a(t=e)&&t.length<=5&&ee(t,gk));var t})).isNone()},vk=function(){var e,t=Jv.getItem(mk);if(null===t)return{};try{e=JSON.parse(t)}catch(e){if(e instanceof SyntaxError)return console.log("Local storage "+mk+" was not valid JSON",e),{};throw e}return Ak(e)?e:(console.log("Local storage "+mk+" was not valid format",e),{})},yk=function(e){var t=vk();return ye(t,e).getOr([])},Ok=function(e,t){if(gk(e)){var n=vk(),r=ye(n,t).getOr([]),o=j(r,(function(t){return t!==e}));n[t]=[e].concat(o).slice(0,5),function(e){if(!Ak(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));Jv.setItem(mk,JSON.stringify(e))}(n)}},bk=function(e){return!!e},wk=function(e){return pe(h_.makeMap(e,/[, ]/),bk)},_k=function(e){return z.from(function(e){return e.getParam("file_picker_callback")}(e)).filter(f)},xk=function(e){return z.from(e).filter(o).getOrUndefined()},Sk=function(e){return{getHistory:yk,addToHistory:Ok,getLinkInformation:function(){return function(e){return function(e){return!1===e.getParam("typeahead_urls")}(e)?z.none():z.some({targets:pk(e.getBody()),anchorTop:xk(YA(e)),anchorBottom:xk(GA(e))})}(e)},getValidationHandler:function(){return function(e){return z.from(function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t}(e))}(e)},getUrlPicker:function(t){return function(e,t){return function(e,t){var n=function(e){var t=z.some(function(e){return e.getParam("file_picker_types")}(e)).filter(bk),n=z.some(function(e){return e.getParam("file_browser_callback_types")}(e)).filter(bk),r=t.or(n).map(wk);return _k(e).fold(_,(function(e){return r.fold(x,(function(e){return de(e).length>0&&e}))}))}(e);return l(n)?n?_k(e):z.none():n[t]?_k(e):z.none()}(e,t).map((function(n){return function(r){return xO((function(a){var s=k({filetype:t,fieldname:r.fieldname},z.from(r.meta).getOr({}));n.call(e,(function(e,t){if(!o(e))throw new Error("Expected value to be string");if(void 0!==t&&!i(t))throw new Error("Expected meta to be a object");a({value:e,meta:t})}),r.value,s)}))}}))}(e,t)}}},kk=Vd,Ck=xd,Bk=A([ro("shell",!1),Vr("makeItem"),ro("setupItem",m),Zu("listBehaviours",[xp])]),Qk=bd({name:"items",overrides:function(){return{behaviours:Gs([xp.config({})])}}}),Tk=A([Qk]),Ek=qd({name:A("CustomList")(),configFields:Bk(),partFields:Tk(),factory:function(e,t,n,r){var o=e.shell?{behaviours:[xp.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:qu(e.listBehaviours,o.behaviours),apis:{setItems:function(t,n){var r;(r=t,e.shell?z.some(r):$d(r,e,"items")).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var o=xp.contents(r),i=n.length,a=i-o.length,s=a>0?U(a,(function(){return e.makeItem()})):[],l=o.slice(i);W(l,(function(e){return xp.remove(r,e)})),W(s,(function(e){return xp.append(r,e)}));var c=xp.contents(r);W(c,(function(r,o){e.setupItem(t,r,n[o],o)}))}))}}}},apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),Pk=A([Vr("dom"),ro("shell",!0),Xu("toolbarBehaviours",[xp])]),$k=A([bd({name:"groups",overrides:function(){return{behaviours:Gs([xp.config({})])}}})]),Mk=qd({name:"Toolbar",configFields:Pk(),partFields:$k(),factory:function(e,t,n,r){var o=e.shell?{behaviours:[xp.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:qu(e.toolbarBehaviours,o.behaviours),apis:{setGroups:function(t,n){var r;(r=t,e.shell?z.some(r):$d(r,e,"groups")).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){xp.set(e,n)}))}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),zk=m,Rk=_,Dk=A([]),Ik=Object.freeze({__proto__:null,setup:zk,isDocked:Rk,getBehaviours:Dk}),Nk=function(e){return(we(on(e,"position"),"fixed")?z.none():Qt(e)).orThunk((function(){var t=Me("span");return Bt(e).bind((function(e){Bn(e,t);var n=Qt(t);return En(t),n}))}))},Lk=function(e){return Nk(e).map(An).getOrThunk((function(){return mn(0,0)}))},Vk=po([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),Uk=function(e,t){var n=e.element;wa(n,t.transitionClass),_a(n,t.fadeOutClass),wa(n,t.fadeInClass),t.onShow(e)},Fk=function(e,t){var n=e.element;wa(n,t.transitionClass),_a(n,t.fadeInClass),wa(n,t.fadeOutClass),t.onHide(e)},Hk=function(e,t,n){return ee(e,(function(e){switch(e){case"bottom":return function(e,t){return e.bottom<=t.bottom}(t,n);case"top":return function(e,t){return e.y>=t.y}(t,n)}}))},Wk=function(e,t){return t.getInitialPos().map((function(t){return Ln(t.bounds.x,t.bounds.y,On(e),fn(e))}))},Xk=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return z.some(Vk.static());case"absolute":var o=Nk(e).map(Vn).getOrThunk((function(){return Vn(Ut())}));return z.some(Vk.absolute(dl("absolute",ye(r.style,"left").map((function(e){return t.x-o.x})),ye(r.style,"top").map((function(e){return t.y-o.y})),ye(r.style,"right").map((function(e){return o.right-t.right})),ye(r.style,"bottom").map((function(e){return o.bottom-t.bottom})))));default:return z.none()}}))},jk=function(e,t,n){var r=e.element;return we(on(r,"position"),"fixed")?function(e,t,n){return Wk(e,n).filter((function(e){return Hk(n.getModes(),e,t)})).bind((function(t){return Xk(e,t,n)}))}(r,t,n):function(e,t,n){var r=Vn(e);if(Hk(n.getModes(),r,t))return z.none();!function(e,t,n){n.setInitialPos({style:an(e),position:nn(e,"position")||"static",bounds:t})}(e,r,n);var o=Fn(),i=r.x-o.x,a=t.y-o.y,s=o.bottom-t.bottom,l=r.y<=t.y;return z.some(Vk.fixed(dl("fixed",z.some(i),l?z.some(a):z.none(),z.none(),l?z.none():z.some(s))))}(r,t,n)},qk=function(e,t,n){n.setDocked(!1),W(["left","right","top","bottom","position"],(function(t){return ln(e.element,t)})),t.onUndocked(e)},Zk=function(e,t,n,r){var o="fixed"===r.position;n.setDocked(o),fl(e.element,r),(o?t.onDocked:t.onUndocked)(e)},Yk=function(e,t,n,r,o){void 0===o&&(o=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(i){var a=function(e,t){return e.yt.y}(i,r);a!==n.isVisible()&&(n.setVisible(a),o&&!a?(Sa(e.element,[t.fadeOutClass]),t.onHide(e)):(a?Uk:Fk)(e,t))}))}))},Gk=function(e,t,n){e.getSystem().isConnected()&&function(e,t,n){var r=t.lazyViewport(e);n.isDocked()&&Yk(e,t,n,r),jk(e,r,n).each((function(o){o.fold((function(){return qk(e,t,n)}),(function(r){return Zk(e,t,n,r)}),(function(o){Yk(e,t,n,r,!0),Zk(e,t,n,o)}))}))}(e,t,n)},Kk=function(e,t,n){n.isDocked()&&function(e,t,n){var r=e.element;n.setDocked(!1),function(e,t){var n=e.element;return Wk(n,t).bind((function(e){return Xk(n,e,t)}))}(e,n).each((function(r){r.fold((function(){return qk(e,t,n)}),(function(r){return Zk(e,t,n,r)}),m)})),n.setVisible(!0),t.contextual.each((function(t){ka(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),Gk(e,t,n)}(e,t,n)},Jk=Object.freeze({__proto__:null,refresh:Gk,reset:Kk,isDocked:function(e,t,n){return n.isDocked()},getModes:function(e,t,n){return n.getModes()},setModes:function(e,t,n,r){return n.setModes(r)}}),eC=Object.freeze({__proto__:null,events:function(e,t){return Si([zi(Fo(),(function(n,r){e.contextual.each((function(e){xa(n.element,e.transitionClass)&&(ka(n.element,[e.transitionClass,e.fadeInClass]),(t.isVisible()?e.onShown:e.onHidden)(n)),r.stop()}))})),Bi(si(),(function(n,r){Gk(n,e,t)})),Bi(li(),(function(n,r){Kk(n,e,t)}))])}}),tC=[no("contextual",[Hr("fadeInClass"),Hr("fadeOutClass"),Hr("transitionClass"),Xr("lazyContext"),is("onShow"),is("onShown"),is("onHide"),is("onHidden")]),co("lazyViewport",Fn),uo("modes",["top","bottom"],Sr),is("onDocked"),is("onUndocked")],nC=Js({fields:tC,name:"docking",active:eC,apis:Jk,state:Object.freeze({__proto__:null,init:function(e){var t=ho(!1),n=ho(!0),r=Ql(),o=ho(e.modes);return ua({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:o.get,setModes:o.set,readState:function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+o.get().join(",")}})}})}),rC=A(ji("toolbar-height-change")),oC={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},iC="tox-tinymce--toolbar-sticky-on",aC="tox-tinymce--toolbar-sticky-off",sC=function(e,t){return L(nC.getModes(e),t)},lC=function(e){var t=e.element;Bt(t).each((function(n){var r="padding-"+nC.getModes(e)[0];if(nC.isDocked(e)){var o=On(n);Jt(t,"width",o+"px"),Jt(n,r,function(e){return hn(e)+(parseInt(nn(e,"margin-top"),10)||0)+(parseInt(nn(e,"margin-bottom"),10)||0)}(t)+"px")}else ln(t,"width"),ln(n,r)}))},cC=function(e,t){t?(_a(e,oC.fadeOutClass),Sa(e,[oC.transitionClass,oC.fadeInClass])):(_a(e,oC.fadeInClass),Sa(e,[oC.fadeOutClass,oC.transitionClass]))},uC=function(e,t){var n=Re(e.getContainer());t?(wa(n,iC),_a(n,aC)):(wa(n,aC),_a(n,iC))},dC=function(e,t){var n=Ql(),r=t.getSink,o=function(e){r().each((function(t){return e(t.element)}))},i=function(t){e.inline||lC(t),uC(e,nC.isDocked(t)),t.getSystem().broadcastOn([Cu()],{}),r().each((function(e){return e.getSystem().broadcastOn([Cu()],{})}))},a=e.inline?[]:function(){var e;return[rl.config({channels:(e={},e[rC()]={onReceive:lC},e)})]}();return B([Tp.config({}),nC.config({contextual:k({lazyContext:function(t){var n=hn(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),o=Vn(Re(r)),i=o.height-n,a=o.y+(sC(t,"top")?0:n);return z.some(Ln(o.x,a,o.width,i))},onShow:function(){o((function(e){return cC(e,!0)}))},onShown:function(e){o((function(e){return ka(e,[oC.transitionClass,oC.fadeInClass])})),n.get().each((function(t){var r,o,i;r=e.element,i=xt(o=t),ll(i).filter((function(e){return!wt(o,e)})).filter((function(e){return wt(e,Re(i.dom.body))||_t(r,e)})).each((function(){return al(o)})),n.clear()}))},onHide:function(e){(function(e,t){return cl(e).orThunk((function(){return t().toOptional().bind((function(e){return cl(e.element)}))}))})(e.element,r).fold(n.clear,n.set),o((function(e){return cC(e,!1)}))},onHidden:function(){o((function(e){return ka(e,[oC.transitionClass])}))}},oC),lazyViewport:function(t){var n=Fn(),r=function(e){return e.getParam("toolbar_sticky_offset",0,"number")}(e),o=n.y+(sC(t,"top")?r:0),i=n.height-(sC(t,"bottom")?r:0);return Ln(n.x,o,n.width,i)},modes:[t.header.getDockingMode()],onDocked:i,onUndocked:i})],a,!0)},fC=Object.freeze({__proto__:null,setup:function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(nC.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(lC)})),e.on("SkinLoaded",(function(){n().each((function(e){nC.isDocked(e)?nC.reset(e):nC.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(nC.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){nC.refresh(t);var n=t.element;fh(n)&&function(e,t){var n=xt(t),r=n.dom.defaultView.innerHeight,o=$n(n),i=Re(e.elm),a=Un(i),s=fn(i),l=a.y,c=l+s,u=An(t),d=fn(t),f=u.top,h=f+d,p=Math.abs(f-o.top)<2,m=Math.abs(h-(o.top+r))<2;if(p&&lf){var g=l-r+s+d;Mn(o.left,g,n)}}(e,n)}))})),e.on("PostRender",(function(){uC(e,!1)}))},isDocked:function(e){return e().map(nC.isDocked).getOr(!1)},getBehaviours:dC}),hC=Ar([Hr("type"),Ur("items",yr([br([Hr("name"),Zr("items",Sr)]),Sr]))].concat(fg)),pC=[Jr("text"),Jr("tooltip"),Jr("icon"),Xr("fetch"),co("onSetup",(function(){return m}))],mC=Ar(B([Hr("type")],pC,!0)),gC=function(e){return $r("menubutton",mC,e)},AC=Ar([Hr("type"),Jr("tooltip"),Jr("icon"),Jr("text"),eo("select"),Xr("fetch"),co("onSetup",(function(){return m})),so("presets","normal",["normal","color","listpreview"]),ro("columns",1),Xr("onAction"),Xr("onItemAction")]),vC=jd({factory:function(e,t){var n={focus:vp.focusIn,setMenus:function(e,n){var r=H(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=gC(n).mapError((function(e){return Rr(e)})).getOrDie();return bx(r,"tox-mbtn",t.backstage,z.some("menuitem"))}));xp.set(e,r)}};return{uid:e.uid,dom:e.dom,components:[],behaviours:Gs([xp.config({}),Sp("menubar-events",[Ri((function(t){e.onSetup(t)})),Bi(Mo(),(function(e,t){Ha(e.element,".tox-mbtn--active").each((function(n){Wa(t.event.target,".tox-mbtn").each((function(t){wt(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){nb.expand(e),nb.close(n),Tp.focus(e)}))}))}))}))})),Bi(hi(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){nb.isOpen(n)&&(nb.expand(e),nb.close(n))}))}))}))]),vp.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),z.some(!0)}}),Yy.config({})]),apis:n,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Vr("dom"),Vr("uid"),Vr("onEscape"),Vr("backstage"),ro("onSetup",m)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),yC=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},OC=function(e){return e.dimension.property},bC=function(e,t){return e.dimension.getDimension(t)},wC=function(e,t){var n=yC(e,t);ka(n,[t.shrinkingClass,t.growingClass])},_C=function(e,t){_a(e.element,t.openClass),wa(e.element,t.closedClass),Jt(e.element,OC(t),"0px"),cn(e.element)},xC=function(e,t){_a(e.element,t.closedClass),wa(e.element,t.openClass),ln(e.element,OC(t))},SC=function(e,t,n,r){n.setCollapsed(),Jt(e.element,OC(t),bC(t,e.element)),cn(e.element),wC(e,t),_C(e,t),t.onStartShrink(e),t.onShrunk(e)},kC=function(e,t,n,r){var o=r.getOrThunk((function(){return bC(t,e.element)}));n.setCollapsed(),Jt(e.element,OC(t),o),cn(e.element);var i=yC(e,t);_a(i,t.growingClass),wa(i,t.shrinkingClass),_C(e,t),t.onStartShrink(e)},CC=function(e,t,n){var r=bC(t,e.element);("0px"===r?SC:kC)(e,t,n,z.some(r))},BC=function(e,t,n){var r=yC(e,t),o=xa(r,t.shrinkingClass),i=bC(t,e.element);xC(e,t);var a=bC(t,e.element);(o?function(){Jt(e.element,OC(t),i),cn(e.element)}:function(){_C(e,t)})(),_a(r,t.shrinkingClass),wa(r,t.growingClass),xC(e,t),Jt(e.element,OC(t),a),n.setExpanded(),t.onStartGrow(e)},QC=function(e,t,n){var r=yC(e,t);return!0===xa(r,t.growingClass)},TC=function(e,t,n){var r=yC(e,t);return!0===xa(r,t.shrinkingClass)},EC=Object.freeze({__proto__:null,refresh:function(e,t,n){if(n.isExpanded()){ln(e.element,OC(t));var r=bC(t,e.element);Jt(e.element,OC(t),r)}},grow:function(e,t,n){n.isExpanded()||BC(e,t,n)},shrink:function(e,t,n){n.isExpanded()&&CC(e,t,n)},immediateShrink:function(e,t,n){n.isExpanded()&&SC(e,t,n)},hasGrown:function(e,t,n){return n.isExpanded()},hasShrunk:function(e,t,n){return n.isCollapsed()},isGrowing:QC,isShrinking:TC,isTransitioning:function(e,t,n){return QC(e,t)||TC(e,t)},toggleGrow:function(e,t,n){(n.isExpanded()?CC:BC)(e,t,n)},disableTransitions:wC}),PC=Object.freeze({__proto__:null,exhibit:function(e,t,n){var r=t.expanded;return fa(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:Ao(t.dimension.property,"0px")})},events:function(e,t){return Si([zi(Fo(),(function(n,r){r.event.raw.propertyName===e.dimension.property&&(wC(n,e),t.isExpanded()&&ln(n.element,e.dimension.property),(t.isExpanded()?e.onGrown:e.onShrunk)(n))}))])}}),$C=[Vr("closedClass"),Vr("openClass"),Vr("shrinkingClass"),Vr("growingClass"),Yr("getAnimationRoot"),is("onShrunk"),is("onStartShrink"),is("onGrown"),is("onStartGrow"),ro("expanded",!1),Ur("dimension",Dr("property",{width:[cs("property","width"),cs("getDimension",(function(e){return On(e)+"px"}))],height:[cs("property","height"),cs("getDimension",(function(e){return fn(e)+"px"}))]}))],MC=Js({fields:$C,name:"sliding",active:PC,apis:EC,state:Object.freeze({__proto__:null,init:function(e){var t=ho(e.expanded);return ua({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:O(t.set,!1),setExpanded:O(t.set,!0),readState:function(){return"expanded: "+t.get()}})}})}),zC="container",RC=[Xu("slotBehaviours",[])],DC=function(e){return""},IC=function(e,t){var n,r=function(t){return Dd(e)},o=function(t,n){return function(r,o){return $d(r,e,o).map((function(e){return t(e,o)})).getOr(n)}},i=function(e,t){return"true"!==jt(e.element,"aria-hidden")},a=o(i,!1),s=o((function(e,t){if(i(e)){var n=e.element;Jt(n,"display","none"),Wt(n,"aria-hidden","true"),Oi(e,pi(),{name:t,visible:!1})}})),l=(n=s,function(e,t){W(t,(function(t){return n(e,t)}))}),c=o((function(e,t){if(!i(e)){var n=e.element;ln(n,"display"),Yt(n,"aria-hidden"),Oi(e,pi(),{name:t,visible:!0})}})),u={getSlotNames:r,getSlot:function(t,n){return $d(t,e,n)},isShowing:a,hideSlot:s,hideAllSlots:function(e){return l(e,r())},showSlot:c};return{uid:e.uid,dom:e.dom,components:t,behaviours:ju(e.slotBehaviours),apis:u}},NC=pe({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return la(e)})),LC=k(k({},NC),{sketch:function(e){var t=function(){var e=[];return{slot:function(t,n){return e.push(t),Bd(zC,DC(t),n)},record:A(e)}}(),n=e(t),r=t.record(),o=H(r,(function(e){return yd({name:e,pname:DC(e)})}));return Fd(zC,RC,o,IC,n)}}),VC=Ar([Jr("icon"),Jr("tooltip"),co("onShow",m),co("onHide",m),co("onSetup",(function(){return m}))]),UC=function(e){return{element:function(){return e.element.dom}}},FC=function(e,t){var n=H(de(t),(function(e){var n=t[e],r=Mr(function(e){return $r("sidebar",VC,e)}(n));return{name:e,getApi:UC,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return H(n,(function(t){var r=ho(m);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:gA([sv(t,r),lv(t,r),Bi(pi(),(function(e,t){var r=t.event,o=Y(n,(function(e){return e.name===r.name}));o.each((function(t){(r.visible?t.onShow:t.onHide)(t.getApi(e))}))}))])})}))},HC=function(e){return LC.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:FC(t,e),slotBehaviours:gA([Ri((function(e){return LC.hideAllSlots(e)}))])}}))},WC=function(e){return Kd.getCurrent(e).bind((function(e){return MC.isGrowing(e)||MC.hasGrown(e)?Kd.getCurrent(e).bind((function(e){return Y(LC.getSlotNames(e),(function(t){return LC.isShowing(e,t)}))})):z.none()}))},XC=ji("FixSizeEvent"),jC=ji("AutoSizeEvent"),qC=Object.freeze({__proto__:null,block:function(e,t,n,r){Wt(e.element,"aria-busy",!0);var o=t.getRoot(e).getOr(e),i=Gs([vp.config({mode:"special",onTab:function(){return z.some(!0)},onShiftTab:function(){return z.some(!0)}}),Tp.config({})]),a=r(o,i),s=o.getSystem().build(a);xp.append(o,Ra(s)),s.hasConfigured(vp)&&t.focus&&vp.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return xp.remove(o,s)}))},unblock:function(e,t,n){Yt(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()}}),ZC=[co("getRoot",z.none),lo("focus",!0),is("onBlock"),is("onUnblock")],YC=Js({fields:ZC,name:"blocking",apis:qC,state:Object.freeze({__proto__:null,init:function(){var e=Cl();return ua({readState:e.isSet,blockWith:function(t){e.set({destroy:t})},clear:e.clear,isBlocked:e.isSet})}})}),GC=function(e){var t=$e(e),n=Tt(t),r=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return Z(t,(function(e,t){var n;return"class"===t.name?e:k(k({},e),((n={})[t.name]=t.value,n))}),{})}(t),o=function(e){return Array.prototype.slice.call(e.dom.classList,0)}(t),i=0===n.length?{}:{innerHtml:Li(t)};return k({tag:Ie(t),classes:o,attributes:r},i)},KC=function(e){return Kd.getCurrent(e).each((function(e){return al(e.element)}))},JC=function(e,t,n){var r=ho(!1),o=Ql(),i=function(n){var o;!r.get()||function(e){return"focusin"===e.type}(o=n)&&(o.composed?se(o.composedPath()):z.from(o.target)).map(Re).filter(Le).exists((function(e){return xa(e,"mce-pastebin")}))||(n.preventDefault(),KC(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",i),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&i(e)}))}));var a=function(o){o!==r.get()&&(r.set(o),function(e,t,n,r){var o=t.element;if(function(e,t){var n="tabindex",r="data-mce-"+n;z.from(e.iframeElement).map(Re).each((function(e){t?(qt(e,n).each((function(t){return Wt(e,r,t)})),Wt(e,n,-1)):(Yt(e,n),qt(e,r).each((function(t){Wt(e,n,t),Yt(e,r)})))}))}(e,n),n)YC.block(t,function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:GC('
')}]}}}(r)),ln(o,"display"),Yt(o,"aria-hidden"),e.hasFocus()&&KC(t);else{var i=Kd.getCurrent(t).exists((function(e){return sl(e.element)}));YC.unblock(t),Jt(o,"display","none"),Wt(o,"aria-hidden","true"),i&&e.focus()}}(e,t(),o,n.providers),e.fire("AfterProgressState",{state:o}))};e.on("ProgressState",(function(t){if(o.on($m.clearTimeout),h(t.time)){var n=$m.setEditorTimeout(e,(function(){return a(t.state)}),t.time);o.set(n)}else a(t.state),o.clear()}))},eB=function(e,t,n){return{within:e,extra:t,withinWidth:n}},tB=function(e,t,n){var r=Z(e,(function(e,t){return(r=t,o=e.len,i=n(r),z.some({element:r,start:o,finish:o+i,width:i})).fold(A(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}));var r,o,i}),{len:0,list:[]}).list,o=j(r,(function(e){return e.finish<=t})),i=q(o,(function(e,t){return e+t.width}),0);return{within:o,extra:r.slice(o.length),withinWidth:i}},nB=function(e){return H(e,(function(e){return e.element}))},rB=function(e,t){var n=H(t,(function(e){return Ra(e)}));Mk.setGroups(e,n)},oB=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var o=Md(e,t,"primary"),i=NO.getCoupled(e,"overflowGroup");Jt(o.element,"visibility","hidden");var a=r.concat([i]),s=ue(a,(function(e){return cl(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}));n([]),rB(o,a);var l=function(e,t,n,r){var o=function(e,t,n){var r=tB(t,e,n);return 0===r.extra.length?z.some(r):z.none()}(e,t,n).getOrThunk((function(){return tB(t,e-n(r),n)})),i=o.within,a=o.extra,s=o.withinWidth;return 1===a.length&&a[0].width<=n(r)?function(e,t,n){var r=nB(e.concat(t));return eB(r,[],n)}(i,a,s):a.length>=1?function(e,t,n,r){var o=nB(e).concat([n]);return eB(o,nB(t),r)}(i,a,r,s):function(e,t,n){return eB(nB(e),[],n)}(i,0,s)}(On(o.element),t.builtGroups.get(),(function(e){return On(e.element)}),i);0===l.extra.length?(xp.remove(o,i),n([])):(rB(o,l.within),n(l.extra)),ln(o.element,"visibility"),cn(o.element),s.each(Tp.focus)}},iB=A([Xu("splitToolbarBehaviours",[NO]),Nr("builtGroups",(function(){return ho([])}))]),aB=A([rs(["overflowToggledClass"]),eo("getOverflowBounds"),Vr("lazySink"),Nr("overflowGroups",(function(){return ho([])}))].concat(iB())),sB=A([yd({factory:Mk,schema:Pk(),name:"primary"}),Od({schema:Pk(),name:"overflow"}),Od({name:"overflow-button"}),Od({name:"overflow-group"})]),lB=A((function(e,t){!function(e,t){var n=yn.max(e,t,["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"]);Jt(e,"max-width",n+"px")}(e,Math.floor(t))})),cB=A([rs(["toggledClass"]),Vr("lazySink"),Xr("fetch"),eo("getBounds"),no("fireDismissalEventInstead",[ro("event",di())]),Yl()]),uB=A([Od({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Gs([Up.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Od({factory:Mk,schema:Pk(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:Gs([vp.config({mode:"cyclic",onEscape:function(t){return $d(t,e,"button").each(Tp.focus),z.none()}})])}}})]),dB=function(e,t){var n=NO.getCoupled(e,"toolbarSandbox");Su.isOpen(n)?Su.close(n):Su.open(n,t.toolbar())},fB=function(e,t,n,r){var o=n.getBounds.map((function(e){return e()})),i=n.lazySink(e).getOrDie();nu.positionWithinBounds(i,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:lB()}}},o)},hB=function(e,t,n,r,o){Mk.setGroups(t,o),fB(e,t,n,r),Up.on(e)},pB=qd({name:"FloatingToolbarButton",factory:function(e,t,n,r){return k(k({},Mm.sketch(k(k({},r.button()),{action:function(e){dB(e,r)},buttonBehaviours:Yu({dump:r.button().buttonBehaviours},[NO.config({others:{toolbarSandbox:function(t){return function(e,t,n){var r=Xa();return{dom:{tag:"div",attributes:{id:r.id}},behaviours:Gs([vp.config({mode:"special",onEscape:function(e){return Su.close(e),z.some(!0)}}),Su.config({onOpen:function(o,i){n.fetch().get((function(o){hB(e,i,n,t.layouts,o),r.link(e.element),vp.focusIn(i)}))},onClose:function(){Up.off(e),Tp.focus(e),r.unlink(e.element)},isPartOf:function(t,n,r){return ja(n,r)||ja(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),rl.config({channels:k(k({},Tu(k({isExtraPart:_},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Pu({doReposition:function(){Su.getState(NO.getCoupled(e,"toolbarSandbox")).each((function(r){fB(e,r,n,t.layouts)}))}}))})])}}(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){Su.getState(NO.getCoupled(t,"toolbarSandbox")).each((function(o){hB(t,o,e,n.layouts,r)}))},reposition:function(t){Su.getState(NO.getCoupled(t,"toolbarSandbox")).each((function(r){fB(t,r,e,n.layouts)}))},toggle:function(e){dB(e,r)},getToolbar:function(e){return Su.getState(NO.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return Su.isOpen(NO.getCoupled(e,"toolbarSandbox"))}}})},configFields:cB(),partFields:uB(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),mB=A([Vr("items"),rs(["itemSelector"]),Xu("tgroupBehaviours",[vp])]),gB=A([wd({name:"items",unit:"item"})]),AB=qd({name:"ToolbarGroup",configFields:mB(),partFields:gB(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:qu(e.tgroupBehaviours,[vp.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}}}),vB=function(e){return H(e,(function(e){return Ra(e)}))},yB=function(e,t,n){oB(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){pB.setGroups(e,vB(r))}))}))},OB=qd({name:"SplitFloatingToolbar",configFields:aB(),partFields:sB(),factory:function(e,t,n,r){var o=zm(pB.sketch({fetch:function(){return xO((function(t){t(vB(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[$s,Ps]},onRtl:function(){return[Ps,$s]},onBottomLtr:function(){return[zs,Ms]},onBottomRtl:function(){return[Ms,zs]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:qu(e.splitToolbarBehaviours,[NO.config({others:{overflowGroup:function(){return AB.sketch(k(k({},r["overflow-group"]()),{items:[o.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(H(n,t.getSystem().build)),yB(t,o,e)},refresh:function(t){return yB(t,o,e)},toggle:function(e){o.getOpt(e).each((function(e){pB.toggle(e)}))},isOpen:function(e){return o.getOpt(e).map(pB.isOpen).getOr(!1)},reposition:function(e){o.getOpt(e).each((function(e){pB.reposition(e)}))},getOverflow:function(e){return o.getOpt(e).bind(pB.getToolbar)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),bB=A([rs(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),is("onOpened"),is("onClosed")].concat(iB())),wB=A([yd({factory:Mk,schema:Pk(),name:"primary"}),yd({factory:Mk,schema:Pk(),name:"overflow",overrides:function(e){return{toolbarBehaviours:Gs([MC.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){$d(t,e,"overflow-button").each((function(e){Up.off(e),Tp.focus(e)})),e.onClosed(t)},onGrown:function(t){vp.focusIn(t),e.onOpened(t)},onStartGrow:function(t){$d(t,e,"overflow-button").each(Up.on)}}),vp.config({mode:"acyclic",onEscape:function(t){return $d(t,e,"overflow-button").each(Tp.focus),z.some(!0)}})])}}}),Od({name:"overflow-button",overrides:function(e){return{buttonBehaviours:Gs([Up.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Od({name:"overflow-group"})]),_B=function(e,t){$d(e,t,"overflow-button").bind((function(){return $d(e,t,"overflow")})).each((function(n){xB(e,t),MC.toggleGrow(n)}))},xB=function(e,t){$d(e,t,"overflow").each((function(n){oB(e,t,(function(e){var t=H(e,(function(e){return Ra(e)}));Mk.setGroups(n,t)})),$d(e,t,"overflow-button").each((function(e){MC.hasGrown(n)&&Up.on(e)})),MC.refresh(n)}))},SB=qd({name:"SplitSlidingToolbar",configFields:bB(),partFields:wB(),factory:function(e,t,n,r){var o="alloy.toolbar.toggle";return{uid:e.uid,dom:e.dom,components:t,behaviours:qu(e.splitToolbarBehaviours,[NO.config({others:{overflowGroup:function(e){return AB.sketch(k(k({},r["overflow-group"]()),{items:[Mm.sketch(k(k({},r["overflow-button"]()),{action:function(t){yi(e,o)}}))]}))}}}),Sp("toolbar-toggle-events",[Bi(o,(function(t){_B(t,e)}))])]),apis:{setGroups:function(t,n){!function(t,n){var r=H(n,t.getSystem().build);e.builtGroups.set(r)}(t,n),xB(t,e)},refresh:function(t){return xB(t,e)},toggle:function(t){return _B(t,e)},isOpen:function(t){return function(e,t){return $d(e,t,"overflow").map(MC.hasGrown).getOr(!1)}(t,e)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),kB=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:k({tag:"div",classes:["tox-toolbar__group"]},t),components:[AB.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:Gs([Yy.config({}),Tp.config({})])}},CB=function(e){return AB.sketch(kB(e))},BB=function(e,t){var n=Ri((function(t){var n=H(e.initGroups,CB);Mk.setGroups(t,n)}));return Gs([iv(e.providers.isDisabled),nv(),vp.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),Sp("toolbar-events",[n])])},QB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":kB({title:z.none(),items:[]}),"overflow-button":xx({name:"more",icon:z.some("more-drawer"),disabled:!1,tooltip:z.some("More..."),primary:!1,borderless:!1},z.none(),e.providers)},splitToolbarBehaviours:BB(e,t)}},TB=function(e){var t=QB(e),n=OB.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return OB.sketch(k(k({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,n=Un(t),r=kt(t),o=Un(r),i=Math.max(r.dom.scrollHeight,o.height);return Ln(n.x+4,o.y,n.width-8,i)},parts:k(k({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},EB=function(e){var t=SB.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=SB.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=QB(e);return SB.sketch(k(k({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([rC()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([rC()],{type:"closed"})}}))},PB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return Mk.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===kg.scrolling?["tox-toolbar--scrolling"]:[])},components:[Mk.parts.groups({})],toolbarBehaviours:BB(e,t)})},$B=Ck.optional({factory:vC,name:"menubar",schema:[Vr("backstage")]}),MB=Ck.optional({factory:{sketch:function(e){return Ek.sketch({uid:e.uid,dom:e.dom,listBehaviours:Gs([vp.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return PB({type:e.type,uid:ji("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),z.some(!0)}})},setupItem:function(e,t,n,r){Mk.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Vr("dom"),Vr("onEscape")]}),zB=Ck.optional({factory:{sketch:function(e){var t=function(e){return e.type===kg.sliding?EB:e.type===kg.floating?TB:PB}(e);return t({type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),z.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes})}},name:"toolbar",schema:[Vr("dom"),Vr("onEscape"),Vr("getSink")]}),RB=Ck.optional({factory:{sketch:function(e){var t=e.editor,n=e.sticky?dC:Dk;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:Gs(n(t,e.sharedBackstage))}}},name:"header",schema:[Vr("dom")]}),DB=Ck.optional({name:"socket",schema:[Vr("dom")]}),IB=Ck.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Gs([Yy.config({}),Tp.config({}),MC.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){Kd.getCurrent(e).each(LC.hideAllSlots),yi(e,jC)},onGrown:function(e){yi(e,jC)},onStartGrow:function(e){Oi(e,XC,{width:on(e.element,"width").getOr("")})},onStartShrink:function(e){Oi(e,XC,{width:On(e.element)+"px"})}}),xp.config({}),Kd.config({find:function(e){var t=xp.contents(e);return se(t)}})])}],behaviours:Gs([c_(0),Sp("sidebar-sliding-events",[Bi(XC,(function(e,t){Jt(e.element,"width",t.event.width)})),Bi(jC,(function(e,t){ln(e.element,"width")}))])])}}},name:"sidebar",schema:[Vr("dom")]}),NB=Ck.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Gs([xp.config({}),YC.config({focus:!1}),Kd.config({find:function(e){return se(e.components())}})]),components:[]}}},name:"throbber",schema:[Vr("dom")]}),LB=qd({name:"OuterContainer",factory:function(e,t,n){var r={getSocket:function(t){return kk.getPart(t,e,"socket")},setSidebar:function(t,n){kk.getPart(t,e,"sidebar").each((function(e){return function(e,t){Kd.getCurrent(e).each((function(e){return xp.set(e,[HC(t)])}))}(e,n)}))},toggleSidebar:function(t,n){kk.getPart(t,e,"sidebar").each((function(e){return function(e,t){Kd.getCurrent(e).each((function(e){Kd.getCurrent(e).each((function(n){MC.hasGrown(e)?LC.isShowing(n,t)?MC.shrink(e):(LC.hideAllSlots(n),LC.showSlot(n,t)):(LC.hideAllSlots(n),LC.showSlot(n,t),MC.grow(e))}))}))}(e,n)}))},whichSidebar:function(t){return kk.getPart(t,e,"sidebar").bind(WC).getOrNull()},getHeader:function(t){return kk.getPart(t,e,"header")},getToolbar:function(t){return kk.getPart(t,e,"toolbar")},setToolbar:function(t,n){kk.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){kk.getPart(t,e,"multiple-toolbar").each((function(e){Ek.setItems(e,n)}))},refreshToolbar:function(t){kk.getPart(t,e,"toolbar").each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){kk.getPart(t,e,"toolbar").each((function(e){var t,n;n=function(t){return t(e)},null!=(t=e.getApis().toggle)?z.some(n(t)):z.none()}))},isToolbarDrawerToggled:function(t){return kk.getPart(t,e,"toolbar").bind((function(e){return z.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return kk.getPart(t,e,"throbber")},focusToolbar:function(t){kk.getPart(t,e,"toolbar").orThunk((function(){return kk.getPart(t,e,"multiple-toolbar")})).each((function(e){vp.focusIn(e)}))},setMenubar:function(t,n){kk.getPart(t,e,"menubar").each((function(e){vC.setMenus(e,n)}))},focusMenubar:function(t){kk.getPart(t,e,"menubar").each((function(e){vC.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},configFields:[Vr("dom"),Vr("behaviours")],partFields:[RB,$B,zB,MB,DB,IB,NB],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=H(n,(function(e){return CB(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=H(n,(function(e){return H(e,CB)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),VB={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},UB=function(e){return"string"==typeof e?e.split(" "):e},FB=function(e,t){var n=k(k({},VB),t.menus),r=de(t.menus).length>0,o=void 0===t.menubar||!0===t.menubar?UB("file edit view insert format tools table help"):UB(!1===t.menubar?"":t.menubar),i=j(o,(function(e){var n=Oe(VB,e);return r?n||ye(t.menus,e).exists((function(e){return Oe(e,"items")})):n})),a=H(i,(function(r){var o=n[r];return function(e,t,n){var r=function(e){return e.getParam("removed_menuitems","")}(n).split(/[ ,]/);return{text:e.title,getItems:function(){return J(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||V(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}}({title:o.title,items:UB(o.items)},t,e)}));return j(a,(function(e){return e.getItems().length>0&&V(e.getItems(),(function(e){return"separator"!==e.type}))}))},HB=function(e){var t=function(){e._skinLoaded=!0,function(e){e.fire("SkinLoaded")}(e)};return function(){e.initialized?t():e.on("init",t)}},WB=function(e,t,n){return new og((function(r,o){n.load(t,r,o),e.on("remove",(function(){return n.unload(t)}))}))},XB=function(e,t){return WB(e,t+"/skin.min.css",e.ui.styleSheetLoader)},jB=function(e,t){var n;return n=Re(e.getElement()),Nt(n).isSome()?WB(e,t+"/skin.shadowdom.min.css",SA.DOM.styleSheetLoader):og.resolve()},qB=function(e,t){var n=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):kA.baseURL+"/skins/ui/"+r}return n}(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===function(e){return!1===e.getParam("skin")}(t)&&o(n)?og.all([XB(t,n),jB(t,n)]).then(HB(t),function(e){return function(){return function(e,t){return e.fire("SkinLoadError",t)}(e,{message:"Skin could not be loaded"})}}(t)):HB(t)()},ZB=O(qB,!1),YB=O(qB,!0),GB=function(e,t){return function(n){var r=Bl(),o=function(){n.setActive(e.formatter.match(t));var o=e.formatter.formatChanged(t,n.setActive);r.set(o)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),r.clear()}}},KB=function(e,t,n){return function(r){var o=function(){return n(r)},i=function(){n(r),e.on(t,o)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),e.off(t,o)}}},JB=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},eQ=function(e,t){return function(){return e.execCommand(t)}},tQ=function(e,t,n){var r=function(e,r,i,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return z.some({type:"separator",text:s});if("submenu"===e.type){var l=J(e.getStyleItems(),(function(e){return o(e,r,a)}));return 0===r&&l.length<=0?z.none():z.some({type:"nestedmenuitem",text:s,disabled:l.length<=0,getSubmenuItems:function(){return J(e.getStyleItems(),(function(e){return o(e,r,a)}))}})}return z.some(k({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:i,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},o=function(e,t,o){var i="formatter"===e.type&&n.isInvalid(e);return 0===t?i?[]:r(e,t,!1,o).toArray():r(e,t,i,o).toArray()},i=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return J(e,(function(e){return o(e,r,t)}))};return{validateItems:i,getFetch:function(e,t){return function(n,r){var o=t(),a=i(o);r(yx(a,Cg.CLOSE_ON_EXECUTE,e,!1))}}}},nQ=function(e,t,n){var r=n.dataset,o="basic"===r.type?function(){return H(r.data,(function(e){return KS(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:tQ(0,t,n),getStyleItems:o}},rQ=function(e,t,n){var r=nQ(0,t,n),o=r.items,i=r.getStyleItems,a=KB(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return mx({text:n.icon.isSome()?z.none():n.text,icon:n.icon,tooltip:z.from(n.tooltip),role:z.none(),fetch:o.getFetch(t,i),onSetup:a,getApi:function(e){return{getComponent:A(e)}},columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)};!function(e){e[e.SemiColon=0]="SemiColon",e[e.Space=1]="Space"}(qx||(qx={}));var oQ,iQ,aQ,sQ,lQ,cQ=function(e,t,n,r){var o,i=(o=function(e,t){return t===qx.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")}(e.getParam(t,n,"string"),r),H(o,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}})));return{type:"basic",data:i}},uQ=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],dQ=function(e){var t={type:"basic",data:uQ};return{tooltip:"Align",text:z.none(),icon:z.some("align-left"),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:z.none,getPreviewFor:function(e){return z.none},onAction:function(t){return function(){return Y(uQ,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}},updateText:function(t){var n=Y(uQ,(function(t){return e.formatter.match(t.format)})).fold(A("left"),(function(e){return e.title.toLowerCase()}));Oi(t,px,{icon:"align-"+n})},dataset:t,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},fQ=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],hQ=function(e){var t=e.split(/\s*,\s*/);return H(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},pQ=function(e){var t="System Font",n=function(){var n=function(e){return e?hQ(e)[0]:""},o=e.queryCommandValue("FontName"),i=r.data,a=o?o.toLowerCase():"",s=Y(i,(function(e){var t=e.format;return t.toLowerCase()===a||n(t).toLowerCase()===n(a).toLowerCase()})).orThunk((function(){return Se(function(e){var t;return 0===e.indexOf("-apple-system")&&(t=hQ(e.toLowerCase()),ee(fQ,(function(e){return t.indexOf(e.toLowerCase())>-1})))}(a),{title:t,format:a})}));return{matchOpt:s,font:o}},r=cQ(e,"font_formats","Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",qx.SemiColon);return{tooltip:"Fonts",text:z.some(t),icon:z.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getCurrentValue:function(){return n().matchOpt},getPreviewFor:function(e){return function(){return z.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},updateText:function(e){var t=n(),r=t.matchOpt,o=t.font,i=r.fold(A(o),(function(e){return e.title}));Oi(e,hx,{text:i})},dataset:r,shouldHide:!1,isInvalid:_}},mQ={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},gQ={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},AQ=function(e){var t=function(){var t=z.none(),n=r.data,o=e.queryCommandValue("FontSize");if(o)for(var i=function(e){var r=function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":ye(gQ,e).getOr(e)}(o,e),i=function(e){return ye(mQ,e).getOr("")}(r);t=Y(n,(function(e){return e.format===o||e.format===r||e.format===i}))},a=3;t.isNone()&&a>=0;a--)i(a);return{matchOpt:t,size:o}},n=A(z.none),r=cQ(e,"fontsize_formats","8pt 10pt 12pt 14pt 18pt 24pt 36pt",qx.Space);return{tooltip:"Font sizes",text:z.some("12pt"),icon:z.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getPreviewFor:n,getCurrentValue:function(){return t().matchOpt},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},updateText:function(e){var n=t(),r=n.matchOpt,o=n.size,i=r.fold(A(o),(function(e){return e.title}));Oi(e,hx,{text:i})},dataset:r,shouldHide:!1,isInvalid:_}},vQ=function(e,t){var n=t(),r=H(n,(function(e){return e.format}));return z.from(e.formatter.closest(r)).bind((function(e){return Y(n,(function(t){return t.format===e}))})).orThunk((function(){return Se(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},yQ=function(e){var t="Paragraph",n=cQ(e,"block_formats","Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",qx.SemiColon);return{tooltip:"Blocks",text:z.some(t),icon:z.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:z.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},onAction:JB(e),updateText:function(r){var o=vQ(e,(function(){return n.data})).fold(A(t),(function(e){return e.title}));Oi(r,hx,{text:o})},dataset:n,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},OQ=function(e,t){var n="Paragraph";return{tooltip:"Formats",text:z.some(n),icon:z.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:z.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return void 0!==n?z.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):z.none()}},onAction:JB(e),updateText:function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?J(t,r):[{title:e.title,format:e.format}]},o=J(GS(e),r),i=vQ(e,A(o)).fold(A(n),(function(e){return e.title}));Oi(t,hx,{text:i})},shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},bQ=Object.freeze({__proto__:null,events:function(e,t){var n=function(n,r){e.updateState.each((function(e){var o=e(n,r);t.set(o)})),e.renderComponents.each((function(e){var o=e(r,t.get()),i=H(o,n.getSystem().build);au(n,i)}))};return Si([Bi(Go(),(function(t,r){var o=r;if(!o.universal){var i=e.channel;L(o.channels,i)&&n(t,o.data)}})),Ri((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])}}),wQ=Object.freeze({__proto__:null,getState:function(e,t,n){return n}}),_Q=[Vr("channel"),Yr("renderComponents"),Yr("updateState"),Yr("initialData")],xQ=Js({fields:_Q,name:"reflecting",active:bQ,apis:wQ,state:Object.freeze({__proto__:null,init:function(){var e=ho(z.none());return{readState:function(){return e.get().getOr("none")},get:e.get,set:e.set,clear:function(){return e.set(z.none())}}}})}),SQ=A([Vr("toggleClass"),Vr("fetch"),ss("onExecute"),ro("getHotspot",z.some),ro("getAnchorOverrides",A({})),Yl(),ss("onItemExecute"),Yr("lazySink"),Vr("dom"),is("onOpen"),Xu("splitDropdownBehaviours",[NO,vp,Tp]),ro("matchWidth",!1),ro("useMinWidth",!1),ro("eventOrder",{}),Yr("role")].concat(JO())),kQ=yd({factory:Mm,schema:[Vr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:Gs([Tp.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(bi)},buttonBehaviours:Gs([Up.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),CQ=yd({factory:Mm,schema:[Vr("dom")],name:"button",defaults:function(){return{buttonBehaviours:Gs([Tp.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),BQ=A([kQ,CQ,bd({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Vr("text")],name:"aria-descriptor"}),Od({schema:[ns()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),VO()]),QQ=qd({name:"SplitDropdown",configFields:SQ(),partFields:BQ(),factory:function(e,t,n,r){var o,i=function(e){Kd.getCurrent(e).each((function(e){_f.highlightFirst(e),vp.focusIn(e)}))},a=function(t){qO(e,v,t,r,i,vO.HighlightFirst).get(m)},s=function(t){var n=Md(t,e,"button");return bi(n),z.some(!0)},l=k(k({},Si([Ri((function(t,n){$d(t,e,"aria-descriptor").each((function(e){var n=ji("aria");Wt(e.element,"id",n),Wt(t.element,"aria-describedby",n)}))}))])),Hp(z.some(a))),c={repositionMenus:function(e){Up.isOn(e)&&KO(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:c,eventOrder:k(k({},e.eventOrder),(o={},o[Ko()]=["disabling","toggling","alloy.base.behaviour"],o)),events:l,behaviours:qu(e.splitDropdownBehaviours,[NO.config({others:{sandbox:function(t){var n=Md(t,e,"arrow");return GO(e,t,{onOpen:function(){Up.on(n),Up.on(t)},onClose:function(){Up.off(n),Up.off(t)}})}}}),vp.config({mode:"special",onSpace:s,onEnter:s,onDown:function(e){return a(e),z.some(!0)}}),Tp.config({}),Up.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),TQ=function(e){return{isDisabled:function(){return hf.isDisabled(e)},setDisabled:function(t){return hf.set(e,t)}}},EQ=function(e){return{setActive:function(t){Up.set(e,t)},isActive:function(){return Up.isOn(e)},isDisabled:function(){return hf.isDisabled(e)},setDisabled:function(t){return hf.set(e,t)}}},PQ=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},$Q=ji("focus-button"),MQ=function(e,t,n,r,o,i){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:PQ(n,i)},components:dv([e.map((function(e){return lx(e,i.icons)})),t.map((function(e){return ux(e,"tox-tbtn",i)}))]),eventOrder:(a={},a[To()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:Gs([iv(i.isDisabled),nv(),Sp("common-button-display-events",[Bi(To(),(function(e,t){t.event.prevent(),yi(e,$Q)}))])].concat(r.map((function(n){return xQ.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return dv([e.icon.map((function(e){return lx(e,i.icons)})),e.text.map((function(e){return ux(e,"tox-tbtn",i)}))])}})})).toArray()).concat(o.getOr([])))}},zQ=function(e,t,n){var r,o=ho(m),i=MQ(e.icon,e.text,e.tooltip,z.none(),z.none(),n);return Mm.sketch({dom:i.dom,components:i.components,eventOrder:fx,buttonBehaviours:Gs([Sp("toolbar-button-events",[(r={onAction:e.onAction,getApi:t.getApi},Ni((function(e,t){av(r,e)((function(t){Oi(e,dx,{buttonApi:t}),r.onAction(t)}))}))),sv(t,o),lv(t,o)]),iv((function(){return e.disabled||n.isDisabled()})),nv()].concat(t.toolbarButtonBehaviours))})},RQ=function(e,t,n){return zQ(e,{toolbarButtonBehaviours:[].concat(n.length>0?[Sp("toolbarButtonWith",n)]:[]),getApi:TQ,onSetup:e.onSetup},t)},DQ=function(e,t,n){return nr(zQ(e,{toolbarButtonBehaviours:[xp.config({}),Up.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Sp("toolbarToggleButtonWith",n)]:[]),getApi:EQ,onSetup:e.onSetup},t))},IQ=function(e,t,n){return function(r){return xO((function(e){return t.fetch(e)})).map((function(o){return z.from(Ty(nr(Ay(ji("menu-value"),o,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,Cg.CLOSE_ON_EXECUTE,t.select.getOr(_),n),{movement:yy(t.columns,t.presets),menuBehaviours:gA("auto"!==t.columns?[]:[Ri((function(e,n){mA(e,4,Ng(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;vp.setGridSize(e,n,r)}))}))])})))}))}},NQ=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],LQ=function(e,t){return function(n,r,o){var i=e(n).mapError((function(e){return Rr(e)})).getOrDie();return t(i,r,o)}},VQ={button:LQ(pg,(function(e,t){return n=e,r=t.backstage.shared.providers,RQ(n,r,[]);var n,r})),togglebutton:LQ(Ag,(function(e,t){return n=e,r=t.backstage.shared.providers,DQ(n,r,[]);var n,r})),menubutton:LQ(gC,(function(e,t){return bx(e,"tox-tbtn",t.backstage,z.none())})),splitbutton:LQ((function(e){return $r("SplitButton",AC,e)}),(function(e,t){return function(e,t){var n,r=ji("channel-update-split-dropdown-display"),o=function(e){return{isDisabled:function(){return hf.isDisabled(e)},setDisabled:function(t){return hf.set(e,t)},setIconFill:function(t,n){Ha(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Wt(e,"fill",n)}))},setIconStroke:function(t,n){Ha(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Wt(e,"stroke",n)}))},setActive:function(t){Wt(e.element,"aria-pressed",t),Ha(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return Up.set(e,t)}))}))},isActive:function(){return Ha(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(Up.isOn)}))}}},i=ho(m),a={getApi:o,onSetup:e.onSetup};return QQ.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:k({"aria-pressed":!1},PQ(e.tooltip,t.providers))},onExecute:function(t){e.onAction(o(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:Gs([ov(t.providers.isDisabled),nv(),Sp("split-dropdown-events",[Bi($Q,Tp.focus),sv(a,i),lv(a,i)]),ob.config({})]),eventOrder:(n={},n[ci()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:IQ(o,e,t.providers),parts:{menu:Wg(0,e.columns,e.presets)},components:[QQ.parts.button(MQ(e.icon,e.text,z.none(),z.some(r),z.some([Up.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),QQ.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Um("chevron-down",t.providers.icons)},buttonBehaviours:Gs([ov(t.providers.isDisabled),nv(),Fm()])}),QQ.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})}(e,t.backstage.shared)})),grouptoolbarbutton:LQ((function(e){return $r("GroupToolbarButton",hC,e)}),(function(e,t,n){var r,o=n.ui.registry.getAll().buttons,i=((r={})[ql]=t.backstage.shared.header.isPositionedAtTop()?yl.TopToBottom:yl.BottomToTop,r);if(IA(n)===kg.floating)return function(e,t,n,r){var o=t.shared;return pB.sketch({lazySink:o.getSink,fetch:function(){return xO((function(t){t(H(n(e.items),CB))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:MQ(e.icon,e.text,e.tooltip,z.none(),z.none(),o.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})}(e,t.backstage,(function(e){return FQ(n,{buttons:o,toolbar:e,allowToolbarGroups:!1},t,z.none())}),i);throw new Error("Toolbar groups are only supported when using floating toolbar mode")})),styleSelectButton:function(e,t){return function(e,t){var n=k({type:"advanced"},t.styleselect);return rQ(e,t,OQ(e,n))}(e,t.backstage)},fontsizeSelectButton:function(e,t){return function(e,t){return rQ(e,t,AQ(e))}(e,t.backstage)},fontSelectButton:function(e,t){return function(e,t){return rQ(e,t,pQ(e))}(e,t.backstage)},formatButton:function(e,t){return function(e,t){return rQ(e,t,yQ(e))}(e,t.backstage)},alignMenuButton:function(e,t){return function(e,t){return rQ(e,t,dQ(e))}(e,t.backstage)}},UQ={styleselect:VQ.styleSelectButton,fontsizeselect:VQ.fontsizeSelectButton,fontselect:VQ.fontSelectButton,formatselect:VQ.formatButton,align:VQ.alignMenuButton},FQ=function(e,t,n,r){var i=function(e){var t,n=e.toolbar,r=e.buttons;return!1===n?[]:void 0===n||!0===n?function(e){var t=H(NQ,(function(t){var n=j(t.items,(function(t){return Oe(e,t)||Oe(UQ,t)}));return{name:t.name,items:n}}));return j(t,(function(e){return e.items.length>0}))}(r):o(n)?(t=n.split("|"),H(t,(function(e){return{items:e.trim().split(" ")}}))):function(e){return p(e,(function(e){return Oe(e,"name")&&Oe(e,"items")}))}(n)?n:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])}(t),a=H(i,(function(o){var i=J(o.items,(function(o){return 0===o.trim().length?[]:function(e,t,n,r,o,i){return ye(t,n.toLowerCase()).orThunk((function(){return i.bind((function(e){return ue(e,(function(e){return ye(t,e+n.toLowerCase())}))}))})).fold((function(){return ye(UQ,n.toLowerCase()).map((function(t){return t(e,o)})).orThunk((function(){return z.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?function(e,t,n){return ye(VQ,e.type).fold((function(){return console.error("skipping button defined by",e),z.none()}),(function(r){return z.some(r(e,t,n))}))}(t,o,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),z.none())}))}(e,t.buttons,o,t.allowToolbarGroups,n,r).toArray()}));return{title:z.from(e.translate(o.name)),items:i}}));return j(a,(function(e){return e.items.length>0}))},HQ=function(e,t,n,r){var i=t.outerContainer,a=n.toolbar,s=n.buttons;if(p(a,o)){var l=a.map((function(t){var o={toolbar:t,buttons:s,allowToolbarGroups:n.allowToolbarGroups};return FQ(e,o,{backstage:r},z.none())}));LB.setToolbars(i,l)}else LB.setToolbar(i,FQ(e,n,{backstage:r},z.none()))},WQ=yt(),XQ=WQ.os.isiOS()&&WQ.os.version.major<=12,jQ=Object.freeze({__proto__:null,render:function(e,t,n,r,o){var i=ho(0),a=t.outerContainer;ZB(e);var l=Re(o.targetNode),c=It(Dt(l));!function(e,t){hu(e,t,kn)}(l,t.mothership),fu(c,t.uiMothership),e.on("PostRender",(function(){HQ(e,t,n,r),i.set(e.getWin().innerWidth),LB.setMenubar(a,FB(e,n)),LB.setSidebar(a,n.sidebar),function(e,t){var n=e.dom,r=e.getWin(),o=e.getDoc().documentElement,i=ho(mn(r.innerWidth,r.innerHeight)),a=ho(mn(o.offsetWidth,o.offsetHeight)),s=function(){var t=i.get();t.left===r.innerWidth&&t.top===r.innerHeight||(i.set(mn(r.innerWidth,r.innerHeight)),qv(e))},l=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(mn(t.offsetWidth,t.offsetHeight)),qv(e))},c=function(t){return function(e,t){return e.fire("ScrollContent",t)}(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",c);var u=Pl(Re(e.getBody()),"load",l),d=t.uiMothership.element;e.on("hide",(function(){Jt(d,"display","none")})),e.on("show",(function(){ln(d,"display")})),e.on("NodeChange",l),e.on("remove",(function(){u.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",c),r=null}))}(e,t)}));var u,d,f=LB.getSocket(a).getOrDie("Could not find expected socket element");if(XQ){en(f.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var h=(u=function(){e.fire("ScrollContent")},d=null,{cancel:function(){s(d)||(clearTimeout(d),d=null)},throttle:function(){for(var e=[],t=0;tt}));return r.or(o).getOr(e)},GQ=function(e){var t=BA(e),n=QA(e),r=EA(e);return qQ(t).map((function(e){return YQ(e,n,r)}))},KQ=function(e,t){var n=Vn(e);return{pos:t?n.y:n.bottom,bounds:n}},JQ=Object.freeze({__proto__:null,render:function(e,t,n,r,o){var i=t.mothership,a=t.uiMothership,s=t.outerContainer,l=ho(null),c=Re(o.targetNode),u=function(e,t,n,r,o){var i=n.uiMothership,a=n.outerContainer,s=SA.DOM,l=HA(e),c=jA(e),u=EA(e).or(GQ(e)),d=r.shared.header,f=d.isPositionedAtTop,h=IA(e),p=h===kg.sliding||h===kg.floating,m=ho(!1),g=function(){return m.get()&&!e.removed},v=function(e){return p?e.fold(A(0),(function(e){return e.components().length>1?fn(e.components()[1].element):0})):0},y=function(){i.broadcastOn([Cu()],{})},O=function(e){if(void 0===e&&(e=!1),g()){var n;if(l||(n=u.getOrThunk((function(){var e=qQ(nn(Ut(),"margin-left")).getOr(0);return On(Ut())-An(t).left+e})),Jt(o.get().element,"max-width",n+"px")),p&&LB.refreshToolbar(a),l||function(){var e=LB.getToolbar(a),n=v(e),r=Vn(t),i=f()?Math.max(r.y-fn(o.get().element)+n,0):r.bottom;en(a.element,{position:"absolute",top:Math.round(i)+"px",left:Math.round(r.x)+"px"})}(),c){var r=o.get();e?nC.reset(r):nC.refresh(r)}y()}},b=function(n){if(void 0===n&&(n=!0),!l&&c&&g()){var r=d.getDockingMode(),i=function(n){switch(VA(e)){case DA.auto:var r=LB.getToolbar(a),o=v(r),i=fn(n.element)-o,s=Vn(t);if(s.y>i)return"top";var l=kt(t),c=Math.max(l.dom.scrollHeight,fn(l));return s.bottom=n&&e.bottom-t.y>=n},oT=function(e){var t=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=$t(Re(e.startContainer),e.startOffset).element;return(Ve(n)?Bt(n):z.some(n)).filter(Le).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t}(e.selection.getRng());if(e.inline){var n=$n();return Ln(n.left+t.left,n.top+t.top,t.width,t.height)}var r=Un(Re(e.getBody()));return Ln(r.x+t.left,r.y+t.top,t.width,t.height)},iT=function(e,t,n,r){void 0===r&&(r=0);var o=Rn(window),i=Vn(Re(e.getContentAreaContainer())),a=$A(e)||MA(e)||RA(e),s=function(e,t,n){var r=Math.max(e.x+n,t.x);return{x:r,width:Math.min(e.right-n,t.right)-r}}(i,o,r),l=s.x,c=s.width;if(e.inline&&!a)return Ln(l,o.y,c,o.height);var u=function(e,t,n,r,o,i){var a=Re(e.getContainer()),s=Ha(a,".tox-editor-header").getOr(a),l=Vn(s),c=l.y>=t.bottom,u=r&&!c;if(e.inline&&u)return{y:Math.max(l.bottom+i,n.y),bottom:n.bottom};if(e.inline&&!u)return{y:n.y,bottom:Math.min(l.y-i,n.bottom)};var d="line"===o?Vn(a):t;return u?{y:Math.max(l.bottom+i,n.y),bottom:Math.min(d.bottom-i,n.bottom)}:{y:Math.max(d.y+i,n.y),bottom:Math.min(l.y-i,n.bottom)}}(e,i,o,t.header.isPositionedAtTop(),n,r),d=u.y,f=u.bottom;return Ln(l,d,c,f-d)},aT={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},sT={maxHeightFunction:Nl(),maxWidthFunction:lB()},lT=function(e){return"node"===e},cT=function(e,t,n,r,o){var i=oT(e),a=r.lastElement().exists((function(e){return wt(n,e)}));return function(e,t){var n=e.selection.getRng(),r=$t(Re(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&wt(r.element,t)}(e,n)?a?Tm:Sm:a?function(e,n){var o=on(e,"position");Jt(e,"position",n);var a=rT(i,Vn(t))&&!r.isReposition()?Pm:Tm;return o.each((function(t){return Jt(e,"position",t)})),a}(t,r.getMode()):("fixed"===r.getMode()?o.y+$n().top:o.y)+(fn(t)+12)<=i.y?Sm:km},uT=function(e,t,n,r){var o=function(t){return function(r,o,i,a,s){var l=cT(e,a,t,n,s),c=k(k({},r),{y:s.y,height:s.height});return k(k({},l(c,o,i,a,s)),{alwaysFit:!0})}},i=function(e){return lT(r)?[o(e)]:[]};return t?{onLtr:function(e){return[Ds,Ps,$s,Ms,zs,Rs].concat(i(e))},onRtl:function(e){return[Ds,$s,Ps,zs,Ms,Rs].concat(i(e))}}:{onLtr:function(e){return[Rs,Ds,Ms,Ps,zs,$s].concat(i(e))},onRtl:function(e){return[Rs,Ds,zs,$s,Ms,Ps].concat(i(e))}}},dT=function(e,t){var n=j(t,(function(t){return t.predicate(e.dom)})),r=X(n,(function(e){return"contexttoolbar"===e.type}));return{contextToolbars:r.pass,contextForms:r.fail}},fT=function(e,t){var n={},r=[],o=[],i={},a={},s=de(e);return W(s,(function(s){var l=e[s];"contextform"===l.type?function(e,s){var l=Mr($r("ContextForm",xg,s));n[e]=l,l.launch.map((function(n){i["form:"+e]=k(k({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(l)}})})),"editor"===l.scope?o.push(l):r.push(l),a[e]=l}(s,l):"contexttoolbar"===l.type&&function(e,t){var n;(n=t,$r("ContextToolbar",Sg,n)).each((function(n){"editor"===t.scope?o.push(n):r.push(n),a[e]=n}))}(s,l)})),{forms:n,inNodeScope:r,inEditorScope:o,lookupTable:a,formNavigators:i}},hT=ji("forward-slide"),pT=ji("backward-slide"),mT=ji("change-slide-event"),gT="tox-pop--resizing",AT="tox-pop--transition",vT=function(e,t,n,r){var o,i,a=r.backstage,s=a.shared,l=yt().deviceType.isTouch,c=Ql(),u=Ql(),d=Ql(),f=za((o={sink:n,onEscape:function(){return e.focus(),z.some(!0)}},i=ho([]),hm.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){i.set([]),hm.getContent(e).each((function(e){ln(e.element,"visibility")})),_a(e.element,gT),ln(e.element,"width")},inlineBehaviours:Gs([Sp("context-toolbar-events",[zi(Fo(),(function(e,t){"width"===t.event.raw.propertyName&&(_a(e.element,gT),ln(e.element,"width"))})),Bi(mT,(function(e,t){var n=e.element;ln(n,"width");var r=On(n);hm.setContent(e,t.event.contents),wa(n,gT);var o=On(n);Jt(n,"width",r+"px"),hm.getContent(e).each((function(e){t.event.focus.bind((function(e){return al(e),cl(n)})).orThunk((function(){return vp.focusIn(e),ll(Dt(n))}))})),$m.setTimeout((function(){Jt(e.element,"width",o+"px")}),0)})),Bi(hT,(function(e,t){hm.getContent(e).each((function(t){i.set(i.get().concat([{bar:t,focus:ll(Dt(e.element))}]))})),Oi(e,mT,{contents:t.event.forwardContents,focus:z.none()})})),Bi(pT,(function(e,t){le(i.get()).each((function(t){i.set(i.get().slice(0,i.get().length-1)),Oi(e,mT,{contents:Ra(t.bar),focus:t.focus})}))}))]),vp.config({mode:"special",onEscape:function(e){return le(i.get()).fold((function(){return o.onEscape()}),(function(t){return yi(e,pT),z.some(!0)}))}})]),lazySink:function(){return Xn.value(o.sink)}}))),h=function(){var t=d.get().getOr("node"),n=lT(t)?1:0;return iT(e,s,t,n)},p=function(){return!(e.removed||l()&&a.isContextMenuOpen())},g=function(){if(p()){var t=h(),n=we(d.get(),"node")?function(e,t){return t.filter(Vt).map(Un).getOrThunk((function(){return oT(e)}))}(e,c.get()):oT(e);return t.height<=0||!rT(n,t)}return!0},A=function(){c.clear(),u.clear(),d.clear(),hm.hide(f)},v=function(){if(hm.isOpen(f)){var e=f.element;ln(e,"display"),g()?Jt(e,"display","none"):(u.set(0),hm.reposition(f))}},y=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:Gs([vp.config({mode:"acyclic"}),Sp("pop-dialog-wrap-events",[Ri((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return vp.focusIn(t)}))})),Di((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},O=He((function(){return fT(t,(function(e){var t=b([e]);Oi(f,hT,{forwardContents:y(t)})}))})),b=function(t){var n=e.ui.registry.getAll().buttons,o=O(),i=k(k({},n),o.formNavigators),a=IA(e)===kg.scrolling?kg.scrolling:kg.default,l=K(H(t,(function(t){return"contexttoolbar"===t.type?function(t,n){return FQ(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,z.some(["form:"]))}(i,t):function(e,t){return nT(e,t)}(t,s.providers)})));return PB({type:a,uid:ji("context-toolbar"),initGroups:l,onEscape:z.none,cyclicKeying:!0,providers:s.providers})},w=function(t,r){if(_.cancel(),p()){var o=b(t),i=t[0].position,a=function(t,r){var o="node"===t?s.anchors.node(r):s.anchors.cursor(),i=function(e,t,n,r){return"line"===t?{bubble:Fl(12,0,aT),layouts:{onLtr:function(){return[Is]},onRtl:function(){return[Ns]}},overrides:sT}:{bubble:Fl(0,12,aT,1/12),layouts:uT(e,n,r,t),overrides:sT}}(e,t,l(),{lastElement:c.get,isReposition:function(){return we(u.get(),0)},getMode:function(){return nu.getMode(n)}});return nr(o,i)}(i,r);d.set(i),u.set(1);var m=f.element;ln(m,"display"),function(e){return we(xe(e,c.get(),wt),!0)}(r)||(_a(m,AT),nu.reset(n,f)),hm.showWithinBounds(f,y(o),{anchor:a,transition:{classes:[AT],mode:"placement"}},(function(){return z.some(h())})),r.fold(c.clear,c.set),g()&&Jt(m,"display","none")}},_=Zm((function(){e.hasFocus()&&!e.removed&&(xa(f.element,AT)?_.throttle():function(e,t){var n=Re(t.getBody()),r=function(e){return wt(e,n)},o=Re(t.selection.getNode());return function(e){return!r(e)&&!_t(n,e)}(o)?z.none():function(e,t,n){var r=dT(e,t);if(r.contextForms.length>0)return z.some({elem:e,toolbars:[r.contextForms[0]]});var o=dT(e,n);if(o.contextForms.length>0)return z.some({elem:e,toolbars:[o.contextForms[0]]});if(r.contextToolbars.length>0||o.contextToolbars.length>0){var i=function(e){if(e.length<=1)return e;var t=function(t){return V(e,(function(e){return e.position===t}))},n=function(t){return j(e,(function(e){return e.position===t}))},r=t("selection"),o=t("node");if(r||o){if(o&&r){var i=n("node"),a=H(n("selection"),(function(e){return k(k({},e),{position:"node"})}));return i.concat(a)}return n(r?"selection":"node")}return n("line")}(r.contextToolbars.concat(o.contextToolbars));return z.some({elem:e,toolbars:i})}return z.none()}(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return function(e,t,n){return e(t)?z.none():Oo(t,(function(e){if(Le(e)){var t=dT(e,n.inNodeScope),r=t.contextToolbars,o=t.contextForms,i=o.length>0?o:function(e){if(e.length<=1)return e;var t=function(t){return Y(e,(function(e){return e.position===t}))};return t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position})).fold((function(){return[]}),(function(t){return j(e,(function(e){return e.position===t}))}))}(r);return i.length>0?z.some({elem:e,toolbars:i}):z.none()}return z.none()}),e)}(r,o,e)}))}(O(),e).fold(A,(function(e){w(e.toolbars,z.some(e.elem))})))}),17);e.on("init",(function(){e.on("remove",A),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click keyup focus SetContent",_.throttle),e.on(eT,A),e.on("contexttoolbar-show",(function(t){var n=O();ye(n.lookupTable,t.toolbarKey).each((function(n){w([n],Se(t.target!==e,t.target)),hm.getContent(f).each(vp.focusIn)}))})),e.on("focusout",(function(t){$m.setEditorTimeout(e,(function(){cl(n.element).isNone()&&cl(f.element).isNone()&&A()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&A()})),e.on("AfterProgressState",(function(t){t.state?A():e.hasFocus()&&_.throttle()})),e.on("NodeChange",(function(e){cl(f.element).fold(_.throttle,m)}))}))},yT={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},OT=(iQ="[eE][+-]?"+(oQ="[0-9]+"),aQ=function(e){return"(?:"+e+")?"},sQ=["Infinity",oQ+"\\."+aQ(oQ)+aQ(iQ),"\\."+oQ+aQ(iQ),oQ+aQ(iQ)].join("|"),new RegExp("^([+-]?(?:"+sQ+"))(.*)$")),bT=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),o=Ql();return H(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(i){var a=function(e){e&&(o.on((function(e){return e.setActive(!1)})),o.set(i)),i.setActive(e)};a(we(r,t.hash(n)));var s=t.watcher(e,n,a);return function(){o.clear(),s()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},wT={name:"lineheight",text:"Line height",icon:"line-height",getOptions:function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},hash:function(e){return function(e){return function(e,t){return z.from(OT.exec(e)).bind((function(e){var n=Number(e[1]),r=e[2];return function(e,t){return V(t,(function(t){return V(yT[t],(function(t){return e===t}))}))}(r,t)?z.some({value:n,unit:r}):z.none()}))}(e,["fixed","relative","empty"]).map((function(e){return e.value+e.unit}))}(e).getOr(e)},display:v,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return z.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},_T=function(e){return KB(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},xT=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},ST=function(e){(function(e){!function(e){h_.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:GB(e,t.name),onAction:xT(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:GB(e,n),onAction:xT(e,n)})}}(e),function(e){h_.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:eQ(e,t.action)})}))}(e),function(e){h_.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:eQ(e,t.action),onSetup:GB(e,t.name)})}))}(e)})(e),function(e){h_.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:eQ(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:xT(e,"code")})}(e)},kT=function(e,t){return KB(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},CT=function(e){return KB(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},BT=function(e,t){!function(e){W([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:eQ(e,t.cmd),onSetup:GB(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:eQ(e,"JustifyNone")})}(e),ST(e),function(e,t){!function(e,t){var n=nQ(0,t,dQ(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})}(e,t),function(e,t){var n=nQ(0,t,pQ(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})}(e,t),function(e,t){var n=k({type:"advanced"},t.styleselect),r=nQ(0,t,OQ(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})}(e,t),function(e,t){var n=nQ(0,t,yQ(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})}(e,t),function(e,t){var n=nQ(0,t,AQ(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})}(e,t)}(e,t),function(e){!function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:kT(e,"hasUndo"),onAction:eQ(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:kT(e,"hasRedo"),onAction:eQ(e,"redo")})}(e),function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:kT(e,"hasUndo"),onAction:eQ(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:kT(e,"hasRedo"),onAction:eQ(e,"redo")})}(e)}(e),function(e){!function(e){e.addCommand("mceApplyTextcolor",(function(t,n){!function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))}(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){!function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))}(e,t)}))}(e);var t=ho(sy),n=ho(sy);py(e,"forecolor","forecolor","Text color",t),py(e,"backcolor","hilitecolor","Background color",n),my(e,"forecolor","forecolor","Text color"),my(e,"backcolor","hilitecolor","Background color")}(e),function(e){!function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:eQ(e,"mceToggleVisualAid")})}(e),function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:CT(e),onAction:eQ(e,"mceToggleVisualAid")})}(e)}(e),function(e){!function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:_T(e),onAction:eQ(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:eQ(e,"indent")})}(e)}(e),function(e){bT(e,wT),function(e){var t=z.from(function(e){return e.getParam("content_langs",void 0,"array")}(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:A(t),hash:function(e){return c(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=Re(e.selection.getNode());return bo(t,(function(e){return z.some(e).filter(Le).bind((function(e){return qt(e,"lang").map((function(t){return{code:t,customCode:qt(e,"data-mce-lang").getOrUndefined(),title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=Bl();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))}(e).each((function(t){return bT(e,t)}))}(e)},QT=function(e,t){return{type:"makeshift",x:e,y:t}},TT=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},ET=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?function(e){if(TT(e)){var t=e.touches[0];return QT(t.pageX,t.pageY)}return QT(e.pageX,e.pageY)}(t):function(e,t){var n=SA.DOM.getPos(e);return function(e,t,n){return QT(e.x+t,e.y+n)}(t,n.x,n.y)}(e.getContentAreaContainer(),function(e){if(TT(e)){var t=e.touches[0];return QT(t.clientX,t.clientY)}return QT(e.clientX,e.clientY)}(t)):PT(e)},PT=function(e){return{type:"selection",root:Re(e.selection.getNode())}},$T=function(e,t,n){switch(n){case"node":return function(e){return{type:"node",node:z.some(Re(e.selection.getNode())),root:Re(e.getBody())}}(e);case"point":return ET(e,t);case"selection":return PT(e)}},MT=function(e,t,n,r,o,i){var a=n(),s=$T(e,t,i);yx(a,Cg.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),hm.showMenuAt(o,{anchor:s},{menu:{markers:Ug("normal")},data:e})}))},zT={onLtr:function(){return[Ds,Ps,$s,Ms,zs,Rs,Sm,km,xm,wm,_m,bm]},onRtl:function(){return[Ds,$s,Ps,zs,Ms,Rs,Sm,km,_m,bm,xm,wm]}},RT={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},DT=function(e,t,n,r,o,i){var a=yt(),s=a.os.isiOS(),l=a.os.isOSX(),c=a.os.isAndroid(),u=a.deviceType.isTouch(),d=function(){var a=n();!function(e,t,n,r,o,i,a){var s=function(e,t,n){var r=$T(e,t,n);return k({bubble:Fl(0,"point"===n?12:0,RT),layouts:zT,overrides:{maxWidthFunction:lB(),maxHeightFunction:Nl()}},r)}(e,t,i);yx(n,Cg.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),hm.showMenuWithinBounds(o,{anchor:s},{menu:{markers:Ug("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return z.some(iT(e,r.shared,"node"===i?"node":"selection"))})),e.fire(eT)}))}(e,t,a,r,o,i,!(c||s||l&&u))};if((l||s)&&"node"!==i){var f=function(){!function(e){var t=e.selection.getRng(),n=function(){$m.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),i()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var o=function(){return i()};e.once("longpresscancel",o);var i=function(){e.off("touchend",n),e.off("longpresscancel",o),e.off("mousedown",r)}}(e),d()};!function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],o=n.getRng();return Tc(e.getWin(),mc.domRange(o)).exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))}(e,t)?(e.once("selectionchange",f),e.once("touchend",(function(){return e.off("selectionchange",f)}))):f()}else d()},IT=function(e){return"string"==typeof e?e.split(/[ ,]/):e},NT=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},LT=function(e){return o(e)?"|"===e:"separator"===e.type},VT={type:"separator"},UT=function(e){var t,n=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(o(e))return e;switch(e.type){case"separator":return VT;case"submenu":return k(k({type:"nestedmenuitem"},n(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return o(t)?t:H(t,UT)}});default:return k(k({type:"menuitem"},n(e)),{onAction:(t=e.onAction,function(){return t()})})}},FT=function(e,t){if(0===t.length)return e;var n=le(e).filter((function(e){return!LT(e)})).fold((function(){return[]}),(function(e){return[VT]}));return e.concat(n).concat(t).concat([VT])},HT=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},WT=function(e,t){return HT(e,t)?e.selection.getStart(!0):t.target},XT=function(e,t,n){var r=yt().deviceType.isTouch,i=za(hm.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:Gs([Sp("dismissContextMenu",[Bi(di(),(function(t,n){Su.close(t),e.focus()}))])])})),a=function(e){return hm.hide(i)},s=function(t){if(NT(e)&&t.preventDefault(),!function(e,t){return t.ctrlKey&&!NT(e)}(e,t)&&!function(e){return!1===e.getParam("contextmenu")}(e)){var a=function(e,t){var n=function(e){return e.getParam("contextmenu_avoid_overlap","","string")}(e),r=HT(e,t)?"selection":"point";if(Te(n)){var o=WT(e,t);return Py(Re(o),n)?"node":r}return r}(e,t);(r()?DT:MT)(e,t,(function(){var n=WT(e,t),r=e.ui.registry.getAll(),i=function(e){return function(e){var t=e.ui.registry.getAll().contextMenus;return z.from(e.getParam("contextmenu")).map(IT).getOrThunk((function(){return j(IT("link linkchecker image imagetools table spellchecker configurepermanentpen"),(function(e){return Oe(t,e)}))}))}(e)}(e);return function(e,t,n){var r=Z(t,(function(t,r){return ye(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(o(r))return FT(t,r.split(" "));if(r.length>0){var i=H(r,UT);return FT(t,i)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&<(r[r.length-1])&&r.pop(),r}(r.contextMenus,i,n)}),n,i,a)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(r()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},jT=po([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),qT=function(e){return function(t){return t.translate(-e.left,-e.top)}},ZT=function(e){return function(t){return t.translate(e.left,e.top)}},YT=function(e){return function(t,n){return Z(e,(function(e,t){return t(e)}),mn(t,n))}},GT=function(e,t,n){return e.fold(YT([ZT(n),qT(t)]),YT([qT(t)]),YT([]))},KT=function(e,t,n){return e.fold(YT([ZT(n)]),YT([]),YT([ZT(t)]))},JT=function(e,t,n){return e.fold(YT([]),YT([qT(n)]),YT([ZT(t),qT(n)]))},eE=function(e,t,n){var r=e.fold((function(e,t){return{position:z.some("absolute"),left:z.some(e+"px"),top:z.some(t+"px")}}),(function(e,t){return{position:z.some("absolute"),left:z.some(e-n.left+"px"),top:z.some(t-n.top+"px")}}),(function(e,t){return{position:z.some("fixed"),left:z.some(e+"px"),top:z.some(t+"px")}}));return k({right:z.none(),bottom:z.none()},r)},tE=function(e,t,n,r){var o=function(e,o){return function(i,a){var s=e(t,n,r);return o(i.getOr(s.left),a.getOr(s.top))}};return e.fold(o(JT,nE),o(KT,rE),o(GT,oE))},nE=jT.offset,rE=jT.absolute,oE=jT.fixed,iE=function(e,t){var n=jt(e,t);return c(n)?NaN:parseInt(n,10)},aE=function(e,t,n,r,o,i){var a=function(e,t,n,r){return function(e,t){var n=e.element,r=iE(n,t.leftAttr),o=iE(n,t.topAttr);return isNaN(r)||isNaN(o)?z.none():z.some(mn(r,o))}(e,t).fold((function(){return n}),(function(e){return oE(e.left+r.left,e.top+r.top)}))}(e,t,n,r),s=t.mustSnap?lE(e,t,a,o,i):cE(e,t,a,o,i),l=GT(a,o,i);return function(e,t,n){var r=e.element;Wt(r,t.leftAttr,n.left+"px"),Wt(r,t.topAttr,n.top+"px")}(e,t,l),s.fold((function(){return{coord:oE(l.left,l.top),extra:z.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},sE=function(e,t,n,r){return ue(e,(function(e){var o=e.sensor,i=function(e,t,n,r,o,i){var a=KT(e,o,i),s=KT(t,o,i);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r}(t,o,e.range.left,e.range.top,n,r);return i?z.some({output:tE(e.output,t,n,r),extra:e.extra}):z.none()}))},lE=function(e,t,n,r,o){var i=t.getSnapPoints(e);return sE(i,n,r,o).orThunk((function(){var e=Z(i,(function(e,t){var i=t.sensor,a=function(e,t,n,r,o,i){var a=KT(e,o,i),s=KT(t,o,i),l=Math.abs(a.left-s.left),c=Math.abs(a.top-s.top);return mn(l,c)}(n,i,t.range.left,t.range.top,r,o);return e.deltas.fold((function(){return{deltas:z.some(a),snap:z.some(t)}}),(function(n){return(a.left+a.top)/2<=(n.left+n.top)/2?{deltas:z.some(a),snap:z.some(t)}:e}))}),{deltas:z.none(),snap:z.none()});return e.snap.map((function(e){return{output:tE(e.output,n,r,o),extra:e.extra}}))}))},cE=function(e,t,n,r,o){var i=t.getSnapPoints(e);return sE(i,n,r,o)},uE=Object.freeze({__proto__:null,snapTo:function(e,t,n,r){var o=t.getTarget(e.element);if(t.repositionTarget){var i=xt(e.element),a=$n(i),s=Lk(o),l=function(e,t,n){return{coord:tE(e.output,e.output,t,n),extra:e.extra}}(r,a,s),c=eE(l.coord,0,s);tn(o,c)}}}),dE="data-initial-z-index",fE=function(e,t){e.getSystem().addToGui(t),function(e){Bt(e.element).filter(Le).each((function(t){on(t,"z-index").each((function(e){Wt(t,dE,e)})),Jt(t,"z-index",nn(e.element,"z-index"))}))}(t)},hE=function(e){!function(e){Bt(e.element).filter(Le).each((function(e){qt(e,dE).fold((function(){return ln(e,"z-index")}),(function(t){return Jt(e,"z-index",t)})),Yt(e,dE)}))}(e),e.getSystem().removeFromGui(e)},pE=function(e,t,n){return e.getSystem().build(Fy.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},mE=no("snaps",[Vr("getSnapPoints"),is("onSensor"),Vr("leftAttr"),Vr("topAttr"),ro("lazyViewport",Fn),ro("mustSnap",!1)]),gE=[ro("useFixed",_),Vr("blockerClass"),ro("getTarget",v),ro("onDrag",m),ro("repositionTarget",!0),ro("onDrop",m),co("getBounds",Fn),mE],AE=function(e,t){return{bounds:e.getBounds(),height:hn(t.element),width:bn(t.element)}},vE=function(e,t,n,r,o){var i=n.update(r,o),a=n.getStartData().getOrThunk((function(){return AE(t,e)}));i.each((function(n){!function(e,t,n,r){var o=t.getTarget(e.element);if(t.repositionTarget){var i=xt(e.element),a=$n(i),s=Lk(o),l=function(e){return(t=on(e,"left"),n=on(e,"top"),r=on(e,"position"),o=function(e,t,n){return("fixed"===n?oE:nE)(parseInt(e,10),parseInt(t,10))},t.isSome()&&n.isSome()&&r.isSome()?z.some(o(t.getOrDie(),n.getOrDie(),r.getOrDie())):z.none()).getOrThunk((function(){var t=An(e);return rE(t.left,t.top)}));var t,n,r,o}(o),c=function(e,t,n,r,o,i,a){return function(e,t,n,r,o){var i=o.bounds,a=KT(t,n,r),s=_s(a.left,i.x,i.x+i.width-o.width),l=_s(a.top,i.y,i.y+i.height-o.height),c=rE(s,l);return t.fold((function(){var e=JT(c,n,r);return nE(e.left,e.top)}),A(c),(function(){var e=GT(c,n,r);return oE(e.left,e.top)}))}(0,t.fold((function(){var e,t,a,s=(e=n,t=i.left,a=i.top,e.fold((function(e,n){return nE(e+t,n+a)}),(function(e,n){return rE(e+t,n+a)}),(function(e,n){return oE(e+t,n+a)}))),l=GT(s,r,o);return oE(l.left,l.top)}),(function(t){var a=aE(e,t,n,i,r,o);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord})),r,o,a)}(e,t.snaps,l,a,s,r,n),u=eE(c,0,s);tn(o,u)}t.onDrag(e,o,r)}(e,t,a,n)}))},yE=function(e,t,n,r){t.each(hE),n.snaps.each((function(t){!function(e,t){!function(e,t){var n=e.element;Yt(n,t.leftAttr),Yt(n,t.topAttr)}(e,t)}(e,t)}));var o=n.getTarget(e.element);r.reset(),n.onDrop(e,o)},OE=function(e){return function(t,n){var r=function(e){n.setStartData(AE(t,e))};return Si(B([Bi(si(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},bE=Object.freeze({__proto__:null,getData:function(e){return z.from(mn(e.x,e.y))},getDelta:function(e,t){return mn(t.left-e.left,t.top-e.top)}}),wE=function(e,t,n){return[Bi(To(),(function(r,o){if(0===o.event.raw.button){o.stop();var i=function(){return yE(r,z.some(l),e,t)},a=$y(i,200),s={drop:i,delayDrop:a.schedule,forceDrop:i,move:function(n){a.cancel(),vE(r,e,t,bE,n)}},l=pE(r,e.blockerClass,function(e){return Si([Bi(To(),e.forceDrop),Bi($o(),e.drop),Bi(Eo(),(function(t,n){e.move(n.event)})),Bi(Po(),e.delayDrop)])}(s));n(r),fE(r,l)}}))]},_E=B(B([],gE,!0),[cs("dragger",{handlers:OE(wE)})],!1),xE=Object.freeze({__proto__:null,getData:function(e){var t=e.raw.touches;return 1===t.length?function(e){var t=e[0];return z.some(mn(t.clientX,t.clientY))}(t):z.none()},getDelta:function(e,t){return mn(t.left-e.left,t.top-e.top)}}),SE=function(e,t,n){var r=Ql(),o=function(n){yE(n,r.get(),e,t),r.clear()};return[Bi(ko(),(function(i,a){a.stop();var s=function(){return o(i)},l={drop:s,delayDrop:m,forceDrop:s,move:function(n){vE(i,e,t,xE,n)}},c=pE(i,e.blockerClass,function(e){return Si([Bi(ko(),e.forceDrop),Bi(Bo(),e.drop),Bi(Qo(),e.drop),Bi(Co(),(function(t,n){e.move(n.event)}))])}(l));r.set(c),n(i),fE(i,c)})),Bi(Co(),(function(n,r){r.stop(),vE(n,e,t,xE,r.event)})),Bi(Bo(),(function(e,t){t.stop(),o(e)})),Bi(Qo(),o)]},kE=_E,CE=B(B([],gE,!0),[cs("dragger",{handlers:OE(SE)})],!1),BE=B(B([],gE,!0),[cs("dragger",{handlers:OE((function(e,t,n){return B(B([],wE(e,t,n),!0),SE(e,t,n),!0)}))})],!1),QE=Object.freeze({__proto__:null,mouse:kE,touch:CE,mouseOrTouch:BE}),TE=Object.freeze({__proto__:null,init:function(){var e=z.none(),t=z.none(),n=A({});return ua({readState:n,reset:function(){e=z.none(),t=z.none()},update:function(t,n){return t.getData(n).bind((function(n){return function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=z.some(n),r}(t,n)}))},getStartData:function(){return t},setStartData:function(e){t=z.some(e)}})}}),EE=tl({branchKey:"mode",branches:QE,name:"dragging",active:{events:function(e,t){return e.dragger.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:z.from(e.extra)}}},state:TE,apis:uE}),PE=function(e,t,n,r,o,i){return e.fold((function(){return EE.snap({sensor:rE(n-20,r-20),range:mn(o,i),output:rE(z.some(n),z.some(r)),extra:{td:t}})}),(function(e){var o=n-20,i=r-20,a=e.element.dom.getBoundingClientRect();return EE.snap({sensor:rE(o,i),range:mn(40,40),output:rE(z.some(n-a.width/2),z.some(r-a.height/2)),extra:{td:t}})}))},$E=function(e,t,n){return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,r){var o=r.td;(function(e,t){return e.exists((function(e){return wt(e,t)}))})(t.get(),o)||(t.set(o),n(o))},mustSnap:!0}},ME=function(e){return zm(Mm.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Gs([EE.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),ob.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},zE=function(e,t){var n=ho([]),r=ho([]),o=ho(!1),i=Ql(),a=Ql(),s=function(e){var n=Un(e);return PE(d.getOpt(t),e,n.x,n.y,n.width,n.height)},l=function(e){var n=Un(e);return PE(f.getOpt(t),e,n.right,n.bottom,n.width,n.height)},c=$E((function(){return H(n.get(),(function(e){return s(e)}))}),i,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),u=$E((function(){return H(r.get(),(function(e){return l(e)}))}),a,(function(t){i.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),d=ME(c),f=ME(u),h=za(d.asSpec()),p=za(f.asSpec()),m=function(t,n,r,o){var i=r(n);EE.snapTo(t,i),function(t,n){var r=n.dom.getBoundingClientRect();ln(t.element,"display");var i=Ct(Re(e.getBody())).dom.innerHeight,a=r[o]<0,s=function(e,t){return e[o]>t}(r,i);(a||s)&&Jt(t.element,"display","none")}(t,n)},g=function(e){return m(h,e,s,"top")},A=function(e){return m(p,e,l,"bottom")};yt().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){o.get()||(su(t,h),su(t,p),o.set(!0)),i.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),g(e.start),A(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){i.get().each(g),a.get().each(A)})),e.on("TableSelectionClear",(function(){o.get()&&(uu(h),uu(p),o.set(!1)),i.clear(),a.clear()})))},RE=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1};!function(e){e[e.None=0]="None",e[e.Both=1]="Both",e[e.Vertical=2]="Vertical"}(lQ||(lQ={}));var DE,IE=function(e,t,n){var r=Re(e.getContainer()),o=function(e,t,n,r,o){var i={};return i.height=YQ(r+t.top,TA(e),PA(e)),n===lQ.Both&&(i.width=YQ(o+t.left,QA(e),EA(e))),i}(e,t,n,fn(r),On(r));he(o,(function(e,t){return Jt(r,t,ZQ(e))})),function(e){e.fire("ResizeEditor")}(e)},NE=function(e,t,n,r){var o=mn(20*n,20*r);return IE(e,o,t),z.some(!0)},LE=function(e,t){var n=function(){var n,r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(function(e,t,n){return t.delimiter||(t.delimiter="»"),{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Gs([vp.config({mode:"flow",selector:"div[role=button]"}),hf.config({disabled:n.isDisabled}),nv(),Yy.config({}),xp.config({}),Sp("elementPathEvents",[Ri((function(r,o){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return vp.focusIn(r)})),e.on("NodeChange",(function(o){var i,a,s=function(t){for(var n=[],r=t.length;r-- >0;){var o=t[r];if(1===o.nodeType&&!RE(o)){var i=e.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(i.isDefaultPrevented()||n.push({name:i.name,element:o}),i.isPropagationStopped())break}}return n}(o.parents);s.length>0?xp.set(r,(i=H(s||[],(function(t,r){return Mm.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:Gs([rv(n.isDisabled),nv()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}},Z(i.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[i[0]]))):xp.set(r,[])}))}))])]),components:[]}}(e,{},t)),e.hasPlugin("wordcount")&&r.push(function(e,t){var n,r=function(e,n,r){return xp.set(e,[Pa(t.translate(["{0} "+r,n[r]]))])};return Mm.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Gs([rv(t.isDisabled),nv(),Yy.config({}),xp.config({}),Wu.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Sp("wordcount-events",[Ni((function(e){var t=Wu.getValue(e),n="words"===t.mode?"characters":"words";Wu.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Ri((function(t){e.on("wordCountUpdate",(function(e){var n=Wu.getValue(t).mode;Wu.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[Ko()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})}(e,t)),e.getParam("branding",!0,"boolean")&&r.push({dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:''+n+""}}),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:function(){var r=n(),o=function(e,t){var n=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?lQ.None:"both"===n?lQ.Both:lQ.Vertical}(e);return n===lQ.None?z.none():z.some(Wm("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[EE.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,o){return IE(e,o,n)},blockerClass:"tox-blocker"}),vp.config({mode:"special",onLeft:function(){return NE(e,n,-1,0)},onRight:function(){return NE(e,n,1,0)},onUp:function(){return NE(e,n,0,-1)},onDown:function(){return NE(e,n,0,1)}}),Yy.config({}),Tp.config({})]},t.icons))}(e,t);return r.concat(o.toArray())}()}},VE=function(e){var t,n,r,o,i=e.inline,a=i?JQ:jQ,s=jA(e)?fC:Ik,l=z.none(),c=yt(),u=c.browser.isIE()?["tox-platform-ie"]:[],d=c.deviceType.isTouch()?["tox-platform-touch"]:[],f=UA(e),h=WA(e),p=Rm.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(t={},t[ql]=f?yl.BottomToTop:yl.TopToBottom,t)},A=function(){return l.bind(LB.getHeader)},v=za((n=wt(Ut(),h)&&"grid"===nn(h,"display"),r={dom:k({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(d)},p),behaviours:Gs([nu.config({useFixed:function(){return s.isDocked(A)}})])},o={dom:{styles:{width:document.body.clientWidth+"px"}},events:Si([Bi(li(),(function(){Jt(H.element,"width",document.body.clientWidth+"px")}))])},nr(r,n?o:{}))),y=function(){return Xn.value(v)},O=zm({dom:{tag:"div",classes:["tox-anchorbar"]}}),b=function(){return l.bind((function(e){return LB.getThrobber(e)})).getOrDie("Could not find throbber element")},w=function(e,t,n){var r=ho(!1),o=function(e){var t=ho(UA(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}}(t),i={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:Rm.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return function(e,t){return zS($S,e,t)}(e,i)},anchors:VS(t,n,o.isPositionedAtTop),header:o,getSink:function(){return Xn.value(e)}},urlinput:Sk(t),styleselect:ek(t),colorinput:XS(t),dialog:qS(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return i}(v,e,(function(){return l.bind((function(e){return O.getOpt(e)})).getOrDie("Could not find a anchor bar element")})),_=LB.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:w,onEscape:function(){e.focus()}}),x=IA(e),S=LB.parts.toolbar(k({dom:{tag:"div",classes:["tox-toolbar"]},getSink:y,providers:w.shared.providers,onEscape:function(){e.focus()},type:x,lazyToolbar:function(){return l.bind((function(e){return LB.getToolbar(e)})).getOrDie("Could not find more toolbar element")},lazyHeader:function(){return A().getOrDie("Could not find header element")}},g)),C=LB.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:w.shared.providers,onEscape:function(){e.focus()},type:x}),B=LB.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Q=LB.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),T=LB.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:w}),E=e.getParam("statusbar",!0,"boolean")&&!i?z.some(LE(e,w.shared.providers)):z.none(),P={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[B,Q]},$=RA(e),M=MA(e),R=$A(e),D=LB.parts.header({dom:k({tag:"div",classes:["tox-editor-header"]},g),components:K([R?[_]:[],$?[C]:M?[S]:[],HA(e)?[]:[O.asSpec()]]),sticky:jA(e),editor:e,sharedBackstage:w.shared}),I=K([f?[]:[D],i?[]:[P],f?[D]:[]]),N=K([[{dom:{tag:"div",classes:["tox-editor-container"]},components:I}],i?[]:E.toArray(),[T]]),L=XA(e),V=k(k({role:"application"},Rm.isRtl()?{dir:"rtl"}:{}),L?{"aria-hidden":"true"}:{}),U=za(LB.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(i?["tox-tinymce-inline"]:[]).concat(f?["tox-tinymce--toolbar-bottom"]:[]).concat(d).concat(u),styles:k({visibility:"hidden"},L?{opacity:"0",border:"0"}:{}),attributes:V},components:N,behaviours:Gs([nv(),hf.config({disableClass:"tox-tinymce--disabled"}),vp.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));l=z.some(U),e.shortcuts.add("alt+F9","focus menubar",(function(){LB.focusMenubar(U)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){LB.focusToolbar(U)})),e.addCommand("ToggleToolbarDrawer",(function(){LB.toggleToolbarDrawer(U)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return LB.isToolbarDrawerToggled(U)}));var F=Hy(U),H=Hy(v);!function(e,t,n){var r=function(e,r){W([t,n],(function(t){t.broadcastEvent(e,r)}))},o=function(e,r){W([t,n],(function(t){t.broadcastOn([e],r)}))},i=function(e){return o(ku(),{target:e.target})},a=il(),s=El(a,"touchstart",i),l=El(a,"touchmove",(function(e){return r(ii(),e)})),c=El(a,"touchend",(function(e){return r(ai(),e)})),u=El(a,"mousedown",i),d=El(a,"mouseup",(function(e){0===e.raw.button&&o(Bu(),{target:e.target})})),f=function(e){return o(ku(),{target:Re(e.target)})},h=function(e){0===e.button&&o(Bu(),{target:Re(e.target)})},p=function(){W(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},m=function(e){return r(si(),$l(e))},g=function(e){o(Cu(),{}),r(li(),$l(e))},A=function(){return o(Cu(),{})},v=function(t){t.state&&o(ku(),{target:Re(e.getContainer())})},y=function(e){o(ku(),{target:Re(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",f),e.on("tap",f),e.on("mouseup",h),e.on("mousedown",p),e.on("ScrollWindow",m),e.on("ResizeWindow",g),e.on("ResizeEditor",A),e.on("AfterProgressState",v),e.on("DismissPopups",y)})),e.on("remove",(function(){e.off("click",f),e.off("tap",f),e.off("mouseup",h),e.off("mousedown",p),e.off("ScrollWindow",m),e.off("ResizeWindow",g),e.off("ResizeEditor",A),e.off("AfterProgressState",v),e.off("DismissPopups",y),u.unbind(),s.unbind(),l.unbind(),c.unbind(),d.unbind()})),e.on("detach",(function(){pu(t),pu(n),t.destroy(),n.destroy()}))}(e,F,H);var X=function(){var t=ZQ(function(e){var t=function(e){var t=CA(e),n=TA(e),r=PA(e);return qQ(t).map((function(e){return YQ(e,n,r)}))}(e);return t.getOr(CA(e))}(e)),n=ZQ(function(e){return GQ(e).getOr(BA(e))}(e));return e.inline||(sn("div","width",n)&&Jt(U.element,"width",n),sn("div","height",t)?Jt(U.element,"height",t):Jt(U.element,"height","200px")),t};return{mothership:F,uiMothership:H,backstage:w,renderUI:function(){s.setup(e,w.shared,A),BT(e,w),XT(e,y,w),function(e){var t=e.ui.registry.getAll().sidebars;W(de(t),(function(n){var r=t[n],o=function(){return we(z.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(o())},onSetup:function(t){var n=function(){return t.setActive(o())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))}(e),JC(e,b,w.shared),pe(function(e){return e.getParam("toolbar_groups",{},"object")}(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,r=t.menuItems,o=t.contextToolbars,i=t.sidebars,l=zA(e),c={menuItems:r,menus:qA(e),menubar:ZA(e),toolbar:l.getOrThunk((function(){return function(e){return e.getParam("toolbar",!0)}(e)})),allowToolbarGroups:x===kg.floating,buttons:n,sidebar:i};vT(e,o,v,{backstage:w}),zE(e,v);var u=e.getElement(),d=X(),f={mothership:F,uiMothership:H,outerContainer:U},h={targetNode:u,height:d};return a.render(e,f,c,w,h)},getUi:function(){return{channels:{broadcastAll:H.broadcast,broadcastOn:H.broadcastOn,register:m}}}}},UE=A([Vr("lazySink"),Yr("dragBlockClass"),co("getBounds",Fn),ro("useTabstopAt",x),ro("eventOrder",{}),Xu("modalBehaviours",[vp]),as("onExecute"),ls("onEscape")]),FE={sketch:v},HE=A([bd({name:"draghandle",overrides:function(e,t){return{behaviours:Gs([EE.config({mode:"mouse",getTarget:function(e){return Ua(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),yd({schema:[Vr("dom")],name:"title"}),yd({factory:FE,schema:[Vr("dom")],name:"close"}),yd({factory:FE,schema:[Vr("dom")],name:"body"}),bd({factory:FE,schema:[Vr("dom")],name:"footer"}),Od({factory:{sketch:function(e,t){return k(k({},e),{dom:t.dom,components:t.components})}},schema:[ro("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),ro("components",[])],name:"blocker"})]),WE=qd({name:"ModalDialog",configFields:UE(),partFields:HE(),factory:function(e,t,n,r){var o,i=Ql(),a=ji("modal-events"),s=k(k({},e.eventOrder),((o={})[ci()]=[a].concat(e.eventOrder["alloy.system.attached"]||[]),o));return{uid:e.uid,dom:e.dom,components:t,apis:{show:function(t){i.set(t);var n=e.lazySink(t).getOrDie(),o=r.blocker(),a=n.getSystem().build(k(k({},o),{components:o.components.concat([Ra(t)]),behaviours:Gs([Tp.config({}),Sp("dialog-blocker-events",[zi(zo(),(function(){vp.focusIn(t)}))])])}));su(n,a),vp.focusIn(t)},hide:function(e){i.clear(),Bt(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){uu(e)}))}))},getBody:function(t){return Md(t,e,"body")},getFooter:function(t){return Md(t,e,"footer")},setIdle:function(e){YC.unblock(e)},setBusy:function(e,t){YC.block(e,t)}},eventOrder:s,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:qu(e.modalBehaviours,[xp.config({}),vp.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),YC.config({getRoot:i.get}),Sp(a,[Ri((function(t){var n,r,o,i,a,s;n=t.element,r=Md(t,e,"title").element,o=qt(n,"id").fold((function(){var e=ji("dialog-label");return Wt(r,"id",e),e}),v),Wt(n,"aria-labelledby",o),i=t.element,a=Md(t,e,"body").element,s=z.from(jt(i,"id")).fold((function(){var e=ji("dialog-describe");return Wt(a,"id",e),e}),v),Wt(i,"aria-describedby",s)}))])])}},apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),XE=Ar([Hr("type"),Hr("name")].concat(iA)),jE=kr,qE=[Ir("name","name",or((function(){return ji("button-name")})),Sr),Jr("icon"),so("align","end",["start","end"]),lo("primary",!1),lo("disabled",!1)],ZE=B(B([],qE,!0),[Hr("text")],!1),YE=B([Wr("type",["submit","cancel","custom"])],ZE,!0),GE=B([Wr("type",["menu"]),Jr("text"),Jr("tooltip"),Jr("icon"),Zr("items",XE)],qE,!0),KE=Dr("type",{submit:YE,cancel:YE,custom:YE,menu:GE}),JE=[Hr("type"),Hr("text"),Wr("level",["info","warn","error","success"]),Hr("icon"),ro("url","")],eP=Ar(JE),tP=[Hr("type"),Hr("text"),lo("disabled",!1),lo("primary",!1),Ir("name","name",or((function(){return ji("button-name")})),Sr),Jr("icon"),lo("borderless",!1)],nP=Ar(tP),rP=[Hr("type"),Hr("name"),Hr("label"),lo("disabled",!1)],oP=Ar(rP),iP=kr,aP=[Hr("type"),Hr("name")],sP=aP.concat([Jr("label")]),lP=sP.concat([ro("columns","auto")]),cP=Ar(lP),uP=br([Hr("value"),Hr("text"),Hr("icon")]),dP=Ar(sP),fP=Sr,hP=Ar(sP),pP=Sr,mP=aP.concat([ao("tag","textarea"),Hr("scriptId"),Hr("scriptUrl"),oo("settings",void 0,Qr)]),gP=aP.concat([ao("tag","textarea"),Xr("init")]),AP=Er((function(e){return $r("customeditor.old",gr(gP),e).orThunk((function(){return $r("customeditor.new",gr(mP),e)}))})),vP=Sr,yP=Ar(sP),OP=vr(dr),bP=function(e){return[Hr("type"),Fr("columns"),e]},wP=[Hr("type"),Hr("html"),so("presets","presentation",["presentation","document"])],_P=Ar(wP),xP=sP.concat([lo("sandboxed",!0)]),SP=Ar(xP),kP=Sr,CP=sP.concat([Ur("currentState",Ar([Vr("blob"),Hr("url")]))]),BP=Ar(CP),QP=sP.concat([Jr("inputMode"),Jr("placeholder"),lo("maximized",!1),lo("disabled",!1)]),TP=Ar(QP),EP=Sr,PP=function(e){return[Hr("type"),Hr("label"),e]},$P=[Hr("text"),Hr("value")],MP=[Hr("text"),Zr("items",(DE=He((function(){return zP})),{extract:function(e,t){return DE().extract(e,t)},toString:function(){return DE().toString()}}))],zP=yr([Ar($P),Ar(MP)]),RP=sP.concat([Zr("items",zP),lo("disabled",!1)]),DP=Ar(RP),IP=Sr,NP=sP.concat([qr("items",[Hr("text"),Hr("value")]),io("size",1),lo("disabled",!1)]),LP=Ar(NP),VP=Sr,UP=sP.concat([lo("constrain",!0),lo("disabled",!1)]),FP=Ar(UP),HP=Ar([Hr("width"),Hr("height")]),WP=[Hr("type"),Zr("header",Sr),Zr("cells",vr(Sr))],XP=Ar(WP),jP=sP.concat([Jr("placeholder"),lo("maximized",!1),lo("disabled",!1)]),qP=Ar(jP),ZP=Sr,YP=sP.concat([so("filetype","file",["image","media","file"]),ro("disabled",!1)]),GP=Ar(YP),KP=Ar([Hr("value"),ro("meta",{})]),JP=function(e){return Ir("items","items",{tag:"required",process:{}},vr(Er((function(t){return $r("Checking item of "+e,e$,t).fold((function(e){return Xn.error(Rr(e))}),(function(e){return Xn.value(e)}))}))))},e$=pr((function(){return Tr("type",{alertbanner:eP,bar:Ar((e=JP("bar"),[Hr("type"),e])),button:nP,checkbox:oP,colorinput:dP,colorpicker:hP,dropzone:yP,grid:Ar(bP(JP("grid"))),iframe:SP,input:TP,listbox:DP,selectbox:LP,sizeinput:FP,textarea:qP,urlinput:GP,customeditor:AP,htmlpanel:_P,imagetools:BP,collection:cP,label:Ar(PP(JP("label"))),table:XP,panel:n$});var e})),t$=[Hr("type"),ro("classes",[]),Zr("items",e$)],n$=Ar(t$),r$=[Ir("name","name",or((function(){return ji("tab-name")})),Sr),Hr("title"),Zr("items",e$)],o$=[Hr("type"),qr("tabs",r$)],i$=Ar(o$),a$=ZE,s$=KE,l$=Ar([Hr("title"),Ur("body",Tr("type",{panel:n$,tabpanel:i$})),ao("size","normal"),Zr("buttons",s$),ro("initialData",{}),co("onAction",m),co("onChange",m),co("onSubmit",m),co("onClose",m),co("onCancel",m),ro("onTabChange",m)]),c$=Ar(B([Wr("type",["cancel","custom"])],a$,!0)),u$=Ar([Hr("title"),Hr("url"),Kr("height"),Kr("width"),to("buttons",c$),co("onAction",m),co("onCancel",m),co("onClose",m),co("onMessage",m)]),d$=function(e){return i(e)?[e].concat(J(ve(e),d$)):a(e)?J(e,d$):[]},f$=function(e){return o(e.type)&&o(e.name)},h$={checkbox:iP,colorinput:fP,colorpicker:pP,dropzone:OP,input:EP,iframe:kP,sizeinput:HP,selectbox:VP,listbox:IP,size:HP,textarea:ZP,urlinput:KP,customeditor:vP,collection:uP,togglemenuitem:jE},p$=function(e){var t=function(e){return j(d$(e),f$)}(e),n=J(t,(function(e){return function(e){return z.from(h$[e.type])}(e).fold((function(){return[]}),(function(t){return[Ur(e.name,t)]}))}));return Ar(n)},m$=function(e){return{internalDialog:Mr($r("dialog",l$,e)),dataValidator:p$(e),initialData:e.initialData}},g$={open:function(e,t){var n=m$(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){return e(Mr($r("dialog",u$,t)))},redial:function(e){return m$(e)}},A$=function(e){var t=[],n={};return he(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?Xn.error(t):Xn.value(n)},v$=function(e,t){var n,r=zm(t_.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:H(e.items,(function(e){return MS(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[r.asSpec()]}],behaviours:Gs([vp.config({mode:"acyclic",useTabstopAt:b(k_)}),(n=r,Kd.config({find:n.getOpt})),g_(r,{postprocess:function(e){return A$(e).fold((function(e){return console.error(e),{}}),v)}})])}},y$=jd({name:"TabButton",configFields:[ro("uid",void 0),Vr("value"),Ir("dom","dom",ar((function(){return{attributes:{role:"tab",id:ji("aria"),"aria-selected":"false"}}})),wr()),Yr("action"),ro("domModification",{}),Xu("tabButtonBehaviours",[Tp,vp,Wu]),Vr("view")],factory:function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:Hp(e.action),behaviours:qu(e.tabButtonBehaviours,[Tp.config({}),vp.config({mode:"execution",useSpace:!0,useEnter:!0}),Wu.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}}}),O$=A([Vr("tabs"),Vr("dom"),ro("clickToDismiss",!1),Xu("tabbarBehaviours",[_f,vp]),rs(["tabClass","selectedClass"])]),b$=wd({factory:y$,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){_f.dehighlight(e,t),Oi(e,gi(),{tabbar:e,button:t})},n=function(e,t){_f.highlight(e,t),Oi(e,mi(),{tabbar:e,button:t})};return{action:function(r){var o=r.getSystem().getByUid(e.uid).getOrDie(),i=_f.isHighlighted(o,r);(i&&e.clickToDismiss?t:i?m:n)(o,r)},domModification:{classes:[e.markers.tabClass]}}}}),w$=A([b$]),_$=qd({name:"Tabbar",configFields:O$(),partFields:w$(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:qu(e.tabbarBehaviours,[_f.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){Wt(t.element,"aria-selected","true")},onDehighlight:function(e,t){Wt(t.element,"aria-selected","false")}}),vp.config({mode:"flow",getInitial:function(e){return _f.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}}}),x$=jd({name:"Tabview",configFields:[Xu("tabviewBehaviours",[xp])],factory:function(e,t){return{uid:e.uid,dom:e.dom,behaviours:qu(e.tabviewBehaviours,[xp.config({})]),domModification:{attributes:{role:"tabpanel"}}}}}),S$=A([ro("selectFirst",!0),is("onChangeTab"),is("onDismissTab"),ro("tabs",[]),Xu("tabSectionBehaviours",[])]),k$=yd({factory:_$,schema:[Vr("dom"),jr("markers",[Vr("tabClass"),Vr("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),C$=yd({factory:x$,name:"tabview"}),B$=A([k$,C$]),Q$=qd({name:"TabSection",configFields:S$(),partFields:B$(),factory:function(e,t,n,r){var o=function(t,n){$d(t,e,"tabbar").each((function(e){n(e).each(bi)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:ju(e.tabSectionBehaviours),events:Si(K([e.selectFirst?[Ri((function(e,t){o(e,_f.getFirst)}))]:[],[Bi(mi(),(function(t,n){var r,o;r=n.event.button,o=Wu.getValue(r),$d(r,e,"tabview").each((function(t){Y(e.tabs,(function(e){return e.value===o})).each((function(n){var o=n.view();qt(r.element,"id").each((function(e){Wt(t.element,"aria-labelledby",e)})),xp.set(t,o),e.onChangeTab(t,r,o)}))}))})),Bi(gi(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return $d(t,e,"tabview").map((function(e){return xp.contents(e)})).getOr([])},showTab:function(e,t){o(e,(function(e){var n=_f.getCandidates(e);return Y(n,(function(e){return Wu.getValue(e)===t})).filter((function(t){return!_f.isHighlighted(e,t)}))}))}}}},apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),T$=function(e,t){Jt(e,"height",t+"px"),yt().browser.isIE()?ln(e,"flex-basis"):Jt(e,"flex-basis",t+"px")},E$=function(e,t,n){Ua(e,'[role="dialog"]').each((function(e){Ha(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Jt(t,"height","0"),Jt(t,"flex-basis","0"),Math.min(n,function(e,t,n){var r,o=kt(e).dom,i=Ua(e,".tox-dialog-wrap").getOr(e);r="fixed"===nn(i,"position")?Math.max(o.clientHeight,window.innerHeight):Math.max(o.offsetHeight,o.scrollHeight);var a=fn(t),s=t.dom.offsetLeft>=n.dom.offsetLeft+On(n)?Math.max(fn(n),a):a,l=parseInt(nn(e,"margin-top"),10)||0,c=parseInt(nn(e,"margin-bottom"),10)||0;return r-(fn(e)+l+c-s)}(e,t,r))})).each((function(e){T$(t,e)}))}))}))},P$=function(e){return Ha(e,'[role="tabpanel"]')},$$="send-data-to-section",M$="send-data-to-view",z$=function(e,t){var n=ho({}),r=function(e){var t=Wu.getValue(e),r=A$(t).getOr({}),o=n.get(),i=nr(o,r);n.set(i)},o=function(e){var t=n.get();Wu.setValue(e,t)},i=ho(null),a=H(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[t_.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:H(e.items,(function(e){return MS(n,e,t)})),formBehaviours:Gs([vp.config({mode:"acyclic",useTabstopAt:b(k_)}),Sp("TabView.form.events",[Ri(o),Di(r)]),rl.config({channels:vo([{key:$$,value:{onReceive:r}},{key:M$,value:{onReceive:o}}])})])}}))]}}})),s=function(e){var t,n,r=(t=Ql(),n=[Ri((function(n){var r=n.element;P$(r).each((function(o){Jt(o,"visibility","hidden"),n.getSystem().getByDom(o).toOptional().each((function(n){var r=function(e,t,n){return H(e,(function(r,o){xp.set(n,e[o].view());var i=t.dom.getBoundingClientRect();return xp.set(n,[]),i.height}))}(e,o,n),i=function(e){return se(ie(e,(function(e,t){return e>t?-1:ee}))?(t.set(i),E$(r,e,t)):o.each((function(t){T$(e,t)})),ln(e,"visibility"),n.each(al)}))}))],{extraEvents:n,selectFirst:!1});return{smartTabHeight:r,naiveTabHeight:{extraEvents:[],selectFirst:!0}}}(a).smartTabHeight;return Q$.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=Wu.getValue(t);Oi(e,cO,{name:r,oldName:i.get()}),i.set(r)},tabs:a,components:[Q$.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[_$.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Gs([Yy.config({})])}),Q$.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:Gs([Sp("tabpanel",s.extraEvents),vp.config({mode:"acyclic"}),Kd.config({find:function(e){return se(Q$.getViewItems(e))}}),Wu.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([$$],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([M$],{})}}})])})},R$=ji("update-dialog"),D$=ji("update-title"),I$=ji("update-body"),N$=ji("update-footer"),L$=ji("body-send-message"),V$=function(e,t,n,r){return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:k(k({},t.map((function(e){return{id:e}})).getOr({})),r?{"aria-live":"polite"}:{})},components:[],behaviours:Gs([c_(0),xQ.config({channel:I$,updateState:function(e,t){return z.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},renderComponents:function(e){return"tabpanel"===e.body.type?[z$(e.body,n)]:[v$(e.body,n)]},initialData:e})])}},U$=pv.deviceType.isTouch(),F$=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},H$=function(e,t){return WE.parts.close(Mm.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:Gs([Yy.config({})])}))},W$=function(){return WE.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},X$=function(e,t){return WE.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:GC("

"+t.translate(e)+"

")}]}]})},j$=function(e){return WE.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},q$=function(e,t){return[Fy.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),Fy.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},Z$=function(e){var t,n="tox-dialog",r=n+"-wrap",o=r+"__backdrop",i=n+"__disable-scroll";return WE.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),z.some(!0)},useTabstopAt:function(e){return!k_(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:k({position:"relative"},e.extraStyles)},components:B([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:GC('
'),components:[{dom:{tag:"div",classes:U$?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:r,modalBehaviours:Gs(B([Tp.config({}),Sp("dialog-events",e.dialogEvents.concat([zi(zo(),(function(e,t){vp.focusIn(e)}))])),Sp("scroll-lock",[Ri((function(){wa(Ut(),i)})),Di((function(){_a(Ut(),i)}))])],e.extraBehaviours,!0)),eventOrder:k((t={},t[Ko()]=["dialog-events"],t[ci()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[ui()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},Y$=function(e){return Mm.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[Wm("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){yi(e,oO)}})},G$=function(e,t,n){var r=function(e){return[Pa(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:k({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:Gs([xQ.config({channel:D$,renderComponents:r})])}},K$=function(){return{dom:GC('
')}},J$=function(e,t){return function(e,t){var n=WE.parts.title(G$(e,z.none(),t)),r=WE.parts.draghandle(K$()),o=WE.parts.close(Y$(t)),i=[n].concat(e.draggable?[r]:[]).concat([o]);return Fy.sketch({dom:GC('
'),components:i})}({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},eM=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:GC('
')}]}},tM=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){WE.setBusy(e(),(function(e,r){return eM(n.message,r,t)}))},onUnblock:function(){WE.setIdle(e())}}},nM=function(e,t,n,r){var o;return za(Z$(k(k({},e),{lazySink:r.shared.getSink,extraBehaviours:B([xQ.config({channel:R$,updateState:function(e,t){return z.some(t)},initialData:t}),y_({})],e.extraBehaviours,!0),onEscape:function(e){yi(e,oO)},dialogEvents:n,eventOrder:(o={},o[Go()]=[xQ.name(),rl.name()],o[ci()]=["scroll-lock",xQ.name(),"messages","dialog-events","alloy.base.behaviour"],o[ui()]=["alloy.base.behaviour","dialog-events","messages",xQ.name(),"scroll-lock"],o)})))},rM=function(e){return H(e,(function(e){return"menu"===e.type?function(e){var t=H(e.items,(function(e){var t=ho(!1);return k(k({},e),{storage:t})}));return k(k({},e),{items:t})}(e):e}))},oM=function(e){return Z(e,(function(e,t){return"menu"===t.type?Z(t.items,(function(e,t){return e[t.name]=t.storage,e}),e):e}),{})},iM=function(e,t){return[Pi(zo(),S_),e(rO,(function(e,n){t.onClose(),n.onClose()})),e(oO,(function(e,t,n,r){t.onCancel(e),yi(r,rO)})),Bi(lO,(function(e,n){return t.onUnblock()})),Bi(sO,(function(e,n){return t.onBlock(n.event)}))]},aM=function(e,t,n){var r=function(t,n){return Bi(t,(function(t,r){o(t,(function(o,i){n(e(),o,r.event,t)}))}))},o=function(e,t){xQ.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return B(B([],iM(r,t),!0),[r(aO,(function(e,t){return t.onSubmit(e)})),r(nO,(function(e,t,n){t.onChange(e,{name:n.name})})),r(iO,(function(e,t,r,o){var i=function(){return vp.focusIn(o)},a=function(e){return Zt(e,"disabled")||qt(e,"aria-disabled").exists((function(e){return"true"===e}))},s=Dt(o.element),l=ll(s);t.onAction(e,{name:r.name,value:r.value}),ll(s).fold(i,(function(e){a(e)||l.exists((function(t){return _t(e,t)&&a(t)}))?i():n().toOptional().filter((function(t){return!_t(t.element,e)})).each(i)}))})),r(cO,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Di((function(t){var n=e();Wu.setValue(t,n.getData())}))],!1)},sM=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=X(n,(function(e){return"start"===e.align})),o=function(e,t){return Fy.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:H(t,(function(e){return e.memento.asSpec()}))})};return[o("start",r.pass),o("end",r.fail)]},lM=function(e,t){return{dom:GC(''),components:[],behaviours:Gs([xQ.config({channel:N$,initialData:e,updateState:function(e,n){var r=H(n.buttons,(function(e){var n=zm(function(e,t){return Qx(e,e.type,t)}(e,t));return{name:e.name,align:e.align,memento:n}}));return z.some({lookupByName:function(e,t){return function(e,t,n){return Y(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))}(e,r,t)},footerButtons:r})},renderComponents:sM})])}},cM=function(e,t){return WE.parts.footer(lM(e,t))},uM=function(e,t){if(e.getRoot().getSystem().isConnected()){var n=Kd.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return t_.getField(n,t).fold((function(){var r=e.getFooter();return xQ.getState(r).get().bind((function(e){return e.lookupByName(n,t)}))}),(function(e){return z.some(e)}))}return z.none()},dM=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i={getData:function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,o=Wu.getValue(r),i=pe(n,(function(e){return e.get()}));return k(k({},o),i)},setData:function(t){r((function(r){var o=i.getData(),a=k(k({},o),t),s=function(e,t){var n=e.getRoot();return xQ.getState(n).get().map((function(e){return Mr($r("data",e.dataValidator,t))})).getOr(t)}(e,a),l=e.getFormWrapper();Wu.setValue(l,s),he(n,(function(e,t){Oe(a,t)&&e.set(a[t])}))}))},disable:function(t){uM(e,t).each(hf.disable)},enable:function(t){uM(e,t).each(hf.enable)},focus:function(t){uM(e,t).each(Tp.focus)},block:function(e){if(!o(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){Oi(t,sO,{message:e})}))},unblock:function(){r((function(e){yi(e,lO)}))},showTab:function(t){r((function(n){var r=e.getBody();xQ.getState(r).get().exists((function(e){return e.isTabPanel()}))&&Kd.getCurrent(r).each((function(e){Q$.showTab(e,t)}))}))},redial:function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([R$],r),n.getSystem().broadcastOn([D$],r.internalDialog),n.getSystem().broadcastOn([I$],r.internalDialog),n.getSystem().broadcastOn([N$],r.internalDialog),i.setData(r.initialData)}))},close:function(){r((function(e){yi(e,rO)}))}};return i},fM=tinymce.util.Tools.resolve("tinymce.util.URI"),hM=["insertContent","setContent","execCommand","close","block","unblock"],pM=function(e){return i(e)&&-1!==hM.indexOf(e.mceAction)},mM=function(e,t,n,r){var a,s,c,u,d,f,h,p,m=J$(e.title,r),g=(p={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[__({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:Gs([Yy.config({}),Tp.config({})])})]}],behaviours:Gs([vp.config({mode:"acyclic",useTabstopAt:b(k_)})])},WE.parts.body(p)),A=e.buttons.bind((function(e){return 0===e.length?z.none():z.some(cM({buttons:e},r))})),v=(u=function(){return Q},d=tM((function(){return C}),r.shared.providers,t),f=function(e,t){return Bi(e,(function(e,n){h(e,(function(r,o){t(u(),r,n.event,e)}))}))},h=function(e,t){xQ.getState(e).get().each((function(n){t(n,e)}))},B(B([],iM(f,d),!0),[f(iO,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)),y=k(k({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),O=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],w=new fM(e.url,{base_uri:new fM(window.location.href)}),_=w.protocol+"://"+w.host+(w.port?":"+w.port:""),x=Bl(),S=[Sp("messages",[Ri((function(){var t=El(Re(window),"message",(function(t){if(w.isSameOrigin(new fM(t.raw.origin))){var r=t.raw.data;pM(r)?function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!l(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock()}}(n,Q,r):function(e){return!pM(e)&&i(e)&&Oe(e,"mceAction")}(r)&&e.onMessage(Q,r)}}));x.set(t)})),Di(x.clear)]),rl.config({channels:(a={},a[L$]={onReceive:function(e,t){Ha(e.element,"iframe").each((function(e){e.dom.contentWindow.postMessage(t,_)}))}},a)})],C=nM({header:m,body:g,footer:A,extraClasses:O,extraBehaviours:S,extraStyles:y},e,v,r),Q=(s=C,c=function(e){s.getSystem().isConnected()&&e(s)},{block:function(e){if(!o(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");c((function(t){Oi(t,sO,{message:e})}))},unblock:function(){c((function(e){yi(e,lO)}))},close:function(){c((function(e){yi(e,rO)}))},sendMessage:function(e){c((function(t){t.getSystem().broadcastOn([L$],e)}))}});return{dialog:C,instanceApi:Q}},gM=function(e,t,n){return t&&n?[]:[nC.config({contextual:{lazyContext:function(){return z.some(Vn(Re(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},AM=function(e){var t=e.backstage,n=e.editor,r=jA(n),o=function(e){var t=e.backstage.shared;return{open:function(n,r){var o=function(){WE.hide(l),r()},i=zm(Qx({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:z.none()},"cancel",e.backstage)),a=W$(),s=H$(o,t.providers),l=za(Z$({lazySink:function(){return t.getSink()},header:F$(a,s),body:X$(n,t.providers),footer:z.some(j$(q$([],[i.asSpec()]))),onEscape:o,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Bi(oO,o)],eventOrder:{}}));WE.show(l);var c=i.get(l);Tp.focus(c)}}}(e),i=function(e){var t=e.backstage.shared;return{open:function(n,r){var o=function(e){WE.hide(c),r(e)},i=zm(Qx({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:z.none()},"submit",e.backstage)),a=Qx({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:z.none()},"cancel",e.backstage),s=W$(),l=H$((function(){return o(!1)}),t.providers),c=za(Z$({lazySink:function(){return t.getSink()},header:F$(s,l),body:X$(n,t.providers),footer:z.some(j$(q$([],[a,i.asSpec()]))),onEscape:function(){return o(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Bi(oO,(function(){return o(!1)})),Bi(aO,(function(){return o(!0)}))],eventOrder:{}}));WE.show(c);var u=i.get(c);Tp.focus(u)}}}(e),a=function(e,n){return g$.open((function(e,r,o){var i=r,a=function(e,t,n){var r=J$(e.internalDialog.title,n),o=function(e,t){var n=V$(e,z.none(),t,!1);return WE.parts.body(n)}({body:e.internalDialog.body},n),i=rM(e.internalDialog.buttons),a=oM(i),s=cM({buttons:i},n),l=aM((function(){return h}),tM((function(){return d}),n.shared.providers,t),n.shared.getSink),c=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}}(e.internalDialog.size),u={header:r,body:o,footer:z.some(s),extraClasses:c,extraBehaviours:[],extraStyles:{}},d=nM(u,e,l,n),f={getRoot:A(d),getBody:function(){return WE.getBody(d)},getFooter:function(){return WE.getFooter(d)},getFormWrapper:function(){var e=WE.getBody(d);return Kd.getCurrent(e).getOr(e)}},h=dM(f,t.redial,a);return{dialog:d,instanceApi:h}}({dataValidator:o,initialData:i,internalDialog:e},{redial:g$.redial,closeWindow:function(){WE.hide(a.dialog),n(a.instanceApi)}},t);return WE.show(a.dialog),a.instanceApi.setData(i),a.instanceApi}),e)},s=function(e,o,i,a){return g$.open((function(e,s,l){var c=Mr($r("data",l,s)),u=Ql(),d=t.shared.header.isPositionedAtTop(),f=function(){return u.on((function(e){hm.reposition(e),nC.refresh(e)}))},h=function(e,t,n,r){var o,i,a,s,l,c=ji("dialog-label"),u=ji("dialog-content"),d=zm((a={title:e.internalDialog.title,draggable:!0},s=c,l=n.shared.providers,Fy.sketch({dom:GC('
'),components:[G$(a,z.some(s),l),K$(),Y$(l)],containerBehaviours:Gs([EE.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Wa(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))),f=zm(function(e,t,n,r){return V$(e,z.some(t),n,r)}({body:e.internalDialog.body},u,n,r)),h=rM(e.internalDialog.buttons),p=oM(h),m=zm(function(e,t){return lM(e,t)}({buttons:h},n)),g=aM((function(){return y}),{onBlock:function(e){YC.block(v,(function(t,r){return eM(e.message,r,n.shared.providers)}))},onUnblock:function(){YC.unblock(v)},onClose:function(){return t.closeWindow()}},n.shared.getSink),v=za({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(o={role:"dialog"},o["aria-labelledby"]=c,o["aria-describedby"]=u,o)},eventOrder:(i={},i[Go()]=[xQ.name(),rl.name()],i[Ko()]=["execute-on-form"],i[ci()]=["reflecting","execute-on-form"],i),behaviours:Gs([vp.config({mode:"cyclic",onEscape:function(e){return yi(e,rO),z.some(!0)},useTabstopAt:function(e){return!k_(e)&&("button"!==Ie(e)||"disabled"!==jt(e,"disabled"))}}),xQ.config({channel:R$,updateState:function(e,t){return z.some(t)},initialData:e}),Tp.config({}),Sp("execute-on-form",g.concat([zi(zo(),(function(e,t){vp.focusIn(e)}))])),YC.config({getRoot:function(){return z.some(v)}}),xp.config({}),y_({})]),components:[d.asSpec(),f.asSpec(),m.asSpec()]}),y=dM({getRoot:A(v),getFooter:function(){return m.get(v)},getBody:function(){return f.get(v)},getFormWrapper:function(){var e=f.get(v);return Kd.getCurrent(e).getOr(e)}},t.redial,p);return{dialog:v,instanceApi:y}}({dataValidator:l,initialData:c,internalDialog:e},{redial:g$.redial,closeWindow:function(){u.on(hm.hide),n.off("ResizeEditor",f),u.clear(),i(h.instanceApi)}},t,a),p=za(hm.sketch(k(k({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:Gs(B([Sp("window-manager-inline-events",[Bi(di(),(function(e,t){yi(h.dialog,oO)}))])],gM(n,r,d),!0)),isExtraPart:function(e,t){return function(e){return Py(e,".tox-alert-dialog")||Py(e,".tox-confirm-dialog")}(t)}})));return u.set(p),hm.showWithin(p,Ra(h.dialog),{anchor:o},z.some(Ut())),r&&d||(nC.refresh(p),n.on("ResizeEditor",f)),h.instanceApi.setData(c),vp.focusIn(h.dialog),h.instanceApi}),e)};return{open:function(e,n,r){return void 0!==n&&"toolbar"===n.inline?s(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?s(e,t.shared.anchors.cursor(),r,n.ariaAttrs):a(e,r)},openUrl:function(e,r){return function(e,r){return g$.openUrl((function(e){var o=mM(e,{closeWindow:function(){WE.hide(o.dialog),r(o.instanceApi)}},n,t);return WE.show(o.dialog),o.instanceApi}),e)}(e,r)},alert:function(e,t){o.open(e,(function(){t()}))},close:function(e){e.close()},confirm:function(e,t){i.open(e,(function(e){t(e)}))}}};S.add("silver",(function(e){var t=VE(e),n=t.uiMothership,r=t.backstage,o=t.renderUI,i=t.getUi;Ey(e,r.shared);var a=AM({editor:e,backstage:r});return{renderUI:o,getWindowManagerImpl:A(a),getNotificationManagerImpl:function(){return function(e,t,n){var r=t.backstage.shared;return{open:function(t,o){var i=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),a=function(){o(),hm.hide(l)},s=za(jm.sketch({text:t.text,level:L(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:z.from(t.icon),closeButton:!i,onAction:a,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),l=za(hm.sketch(k({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(l),t.timeout>0&&$m.setTimeout((function(){a()}),t.timeout);var c=function(){var t=Vn(Re(e.getContentAreaContainer())),n=Fn(),r=_s(n.x,t.x,t.right),o=_s(n.y,t.y,t.bottom),i=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return z.some(Ln(r,o,i-r,a-o))};return{close:a,moveTo:function(e,t){hm.showAt(l,Ra(s),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Ra(s),o={maxHeightFunction:Nl()};if("banner"!==t&&d(e)){var i=function(e){switch(e){case"bc-bc":return km;case"tc-tc":return Sm;case"tc-bc":return Rs;default:return Ds}}(t),a={type:"node",root:Ut(),node:z.some(Re(e)),overrides:o,layouts:{onRtl:function(){return[i]},onLtr:function(){return[i]}}};hm.showWithinBounds(l,n,{anchor:a},c)}else{var u=k(k({},r.anchors.banner()),{overrides:o});hm.showWithinBounds(l,n,{anchor:u},c)}},text:function(e){jm.updateText(s,e)},settings:t,getEl:function(){return s.element.dom},progressBar:{value:function(e){jm.updateProgress(s,e)}}}},close:function(e){e.close()},reposition:function(e){e.length>0&&W(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},getArgs:function(e){return e.settings}}}(e,{backstage:r},n)},ui:i()}}))}()},5070:function(e,t,n){"use strict";n.d(t,{MW:function(){return C},Ay:function(){return T}});var r=n(15215),o=n(71519),i=n(68717),a=n(57043),s=n(89259);function l(e,t,n,r,o,i,a,l,c,u,d){if(0===c)return!1;var f=c;return!(d>t+f&&d>r+f&&d>i+f&&d>l+f||de+f&&u>n+f&&u>o+f&&u>a+f||un||f+co&&(o+=d);var p=Math.atan2(l,s);return p<0&&(p+=d),p>=r&&p<=o||p+d>=r&&p+d<=o}var h=n(76873),p=i.A.CMD,m=2*Math.PI,g=[-1,-1,-1],A=[-1,-1];function v(e,t,n,r,o,i,a,l,c,u){if(u>t&&u>r&&u>i&&u>l||u1&&(void 0,d=A[0],A[0]=A[1],A[1]=d),m=s.Yb(t,r,i,l,A[0]),p>1&&(v=s.Yb(t,r,i,l,A[1]))),2===p?Ot&&l>r&&l>i||l=0&&u<=1){for(var d=0,f=s.k3(t,r,i,u),h=0;hn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);g[0]=-l,g[1]=l;var c=Math.abs(r-o);if(c<1e-4)return 0;if(c>=m-1e-4){r=0,o=m;var u=i?1:-1;return a>=g[0]+e&&a<=g[1]+e?u:0}if(r>o){var d=r;r=o,o=d}r<0&&(r+=m,o+=m);for(var f=0,h=0;h<2;h++){var p=g[h];if(p+e>a){var A=Math.atan2(s,p);u=i?1:-1,A<0&&(A=m+A),(A>=r&&A<=o||A+m>=r&&A+m<=o)&&(A>Math.PI/2&&A<1.5*Math.PI&&(u=-u),f+=u)}}return f}function b(e,t,n,r,o){for(var i,s,u,d,m=e.data,g=e.len(),A=0,b=0,w=0,_=0,x=0,S=0;S1&&(n||(A+=(0,h.A)(b,w,_,x,r,o))),C&&(_=b=m[S],x=w=m[S+1]),k){case p.M:b=_=m[S++],w=x=m[S++];break;case p.L:if(n){if(a.l(b,w,m[S],m[S+1],t,r,o))return!0}else A+=(0,h.A)(b,w,m[S],m[S+1],r,o)||0;b=m[S++],w=m[S++];break;case p.C:if(n){if(l(b,w,m[S++],m[S++],m[S++],m[S++],m[S],m[S+1],t,r,o))return!0}else A+=v(b,w,m[S++],m[S++],m[S++],m[S++],m[S],m[S+1],r,o)||0;b=m[S++],w=m[S++];break;case p.Q:if(n){if(c.l(b,w,m[S++],m[S++],m[S],m[S+1],t,r,o))return!0}else A+=y(b,w,m[S++],m[S++],m[S],m[S+1],r,o)||0;b=m[S++],w=m[S++];break;case p.A:var B=m[S++],Q=m[S++],T=m[S++],E=m[S++],P=m[S++],$=m[S++];S+=1;var M=!!(1-m[S++]);i=Math.cos(P)*T+B,s=Math.sin(P)*E+Q,C?(_=i,x=s):A+=(0,h.A)(b,w,i,s,r,o);var z=(r-B)*E/T+B;if(n){if(f(B,Q,E,P,P+$,M,t,z,o))return!0}else A+=O(B,Q,E,P,P+$,M,z,o);b=Math.cos(P+$)*T+B,w=Math.sin(P+$)*E+Q;break;case p.R:if(_=b=m[S++],x=w=m[S++],i=_+m[S++],s=x+m[S++],n){if(a.l(_,x,i,x,t,r,o)||a.l(i,x,i,s,t,r,o)||a.l(i,s,_,s,t,r,o)||a.l(_,s,_,x,t,r,o))return!0}else A+=(0,h.A)(i,x,i,s,r,o),A+=(0,h.A)(_,s,_,x,r,o);break;case p.Z:if(n){if(a.l(b,w,_,x,t,r,o))return!0}else A+=(0,h.A)(b,w,_,x,r,o);b=_,w=x}}return n||(u=w,d=x,Math.abs(u-d)<1e-4)||(A+=(0,h.A)(b,w,_,x,r,o)||0),0!==A}var w=n(98026),_=n(47698),x=n(73098),S=n(56448),k=n(92836),C=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},o.oN),B={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},o.sW.style)},Q=k.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]),T=function(e){function t(t){return e.call(this,t)||this}var n;return(0,r.C6)(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(e){n.buildPath(e,n.shape)}),o.silent=!0;var i=o.style;for(var a in r)i[a]!==r[a]&&(i[a]=r[a]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?x._S:t>.2?x.tY:x.el}if(e)return x.el}return x._S},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if((0,w.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==(0,_.lum)(e,0)0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var o=this.path;(r||this.__dirty&S.Dl)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var i=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){i.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(i.width+=s/a,i.height+=s/a,i.x-=s/a/2,i.y-=s/a/2)}return i}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var i=this.path;if(this.hasStroke()){var a=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return b(e,t,!0,n,r)}(i,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return b(e,0,!1,t,n)}(i,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=S.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:(0,w.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&S.Dl)},t.prototype.createStyle=function(e){return(0,w.createObject)(C,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,o,i,a){e.prototype._applyStateObj.call(this,t,n,r,o,i,a);var s,l=!(n&&o);if(n&&n.shape?i?o?s=n.shape:(s=(0,w.extend)({},r.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},o?this.shape:r.shape),(0,w.extend)(s,n.shape)):l&&(s=r.shape),s)if(i){this.shape=(0,w.extend)({},this.shape);for(var c={},u=(0,w.keys)(s),d=0;d-1&&e%1==0&&e<=9007199254740991}},5638:function(e,t,n){"use strict";n.d(t,{Jw:function(){return i},LR:function(){return c},LW:function(){return l},Nz:function(){return u},Xr:function(){return p},ap:function(){return h},oi:function(){return s},t5:function(){return f}});var r=n(98026),o=(0,n(48170).$r)();function i(e,t,n,o,i){var a;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===e;if(t&&t.isAnimationEnabled()){var c=void 0,u=void 0,d=void 0;return o?(c=(0,r.retrieve2)(o.duration,200),u=(0,r.retrieve2)(o.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(u=a.easing),null!=a.delay&&(d=a.delay)),(0,r.isFunction)(d)&&(d=d(n,i)),(0,r.isFunction)(c)&&(c=c(n)),{duration:c||0,delay:d,easing:u}}return null}function a(e,t,n,o,a,s,l){var c,u=!1;(0,r.isFunction)(a)?(l=s,s=a,a=null):(0,r.isObject)(a)&&(s=a.cb,l=a.during,u=a.isFrom,c=a.removeOpt,a=a.dataIndex);var d="leave"===e;d||t.stopAnimation("leave");var f=i(e,o,a,d?c||{}:null,o&&o.getAnimationDelayParams?o.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var h={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!l,setToFinal:!d,scope:e,during:l};u?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!u&&t.attr(n),l&&l(1),s&&s()}function s(e,t,n,r,o,i){a("update",e,t,n,r,o,i)}function l(e,t,n,r,o,i){a("enter",e,t,n,r,o,i)}function c(e){if(!e.__zr)return!0;for(var t=0;t=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(n(15915).A),c=l,u=n(47698),d=n(43870),f=n(32322),h=n(10992),p=n(43199),m=n(34833),g=n(89632),A=n(2400),v=n(34253),y=n(59109),O=n(62103),b=n(76868),w=n(69622),_=i.curry,x=i.each,S=d.A,k=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,o.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new S),this.group.add(this._selectorGroup=new S),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),a=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,e,t,n,s,a,l);var c=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},d=e.get("padding"),f=v.dV(c,u,d),h=this.layoutInner(e,o,f,r,s,l),p=v.dV(i.defaults({width:h.width,height:h.height},c),u,d);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,A.P)(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,o,a,s){var l=this.getContentGroup(),c=i.createHashMap(),d=t.get("selectedMode"),f=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&f.push(e.id)})),x(t.getData(),(function(o,a){var s=o.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var h=new S;return h.newline=!0,void l.add(h)}var p=n.getSeriesByName(s)[0];if(!c.get(s))if(p){var m=p.getData(),g=m.getVisual("legendLineStyle")||{},A=m.getVisual("legendIcon"),v=m.getVisual("style"),y=this._createItem(p,s,a,o,t,e,g,v,A,d,r);y.on("click",_(C,s,null,r,f)).on("mouseover",_(Q,p.name,null,r,f)).on("mouseout",_(T,p.name,null,r,f)),n.ssr&&y.eachChild((function(e){var t=(0,w.z)(e);t.seriesIndex=p.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),c.set(s,!0)}else n.eachRawSeries((function(l){if(!c.get(s)&&l.legendVisualProvider){var h=l.legendVisualProvider;if(!h.containName(s))return;var p=h.indexOfName(s),m=h.getItemVisual(p,"style"),g=h.getItemVisual(p,"legendIcon"),A=(0,u.parse)(m.fill);A&&0===A[3]&&(A[3]=.2,m=i.extend(i.extend({},m),{fill:(0,u.stringify)(A,"rgba")}));var v=this._createItem(l,s,a,o,t,e,{},m,g,d,r);v.on("click",_(C,null,s,r,f)).on("mouseover",_(Q,null,s,r,f)).on("mouseout",_(T,null,s,r,f)),n.ssr&&v.eachChild((function(e){var t=(0,w.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),c.set(s,!0)}}),this)}),this),o&&this._createSelector(o,t,r,a,s)},t.prototype._createSelector=function(e,t,n,r,o){var i=this.getSelectorGroup();x(e,(function(e){var r=e.type,o=new f.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});i.add(o);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,g.qM)(o,{normal:a,emphasis:s},{defaultText:e.title}),(0,m.iJ)(o)}))},t.prototype._createItem=function(e,t,n,r,o,a,s,l,c,u,d){var A,v,y,w=e.visualDrawType,_=o.get("itemWidth"),k=o.get("itemHeight"),C=o.isSelected(t),B=r.get("symbolRotate"),Q=r.get("symbolKeepAspect"),T=r.get("icon"),E=function(e,t,n,r,o,i,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),x(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?(0,b.w)(d,a):r.decal,"inherit"===c.fill&&(c.fill=r[o]),"inherit"===c.stroke&&(c.stroke=r[u]),"inherit"===c.opacity&&(c.opacity=("fill"===o?r:n).opacity),s(c,r);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!i){var p=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth="auto"===p?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}(c=T||c||"roundRect",r,s,l,w,C,d),P=new S,$=r.getModel("textStyle");if(!i.isFunction(e.getLegendIcon)||T&&"inherit"!==T){var M="inherit"===T&&e.getData().getVisual("symbol")?"inherit"===B?e.getData().getVisual("symbolRotate"):B:0;P.add((A={itemWidth:_,itemHeight:k,icon:c,iconRotate:M,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:Q},v=A.icon||"roundRect",(y=(0,O.v5)(v,0,0,A.itemWidth,A.itemHeight,A.itemStyle.fill,A.symbolKeepAspect)).setStyle(A.itemStyle),y.rotation=(A.iconRotate||0)*Math.PI/180,y.setOrigin([A.itemWidth/2,A.itemHeight/2]),v.indexOf("empty")>-1&&(y.style.stroke=y.style.fill,y.style.fill="#fff",y.style.lineWidth=2),y))}else P.add(e.getLegendIcon({itemWidth:_,itemHeight:k,icon:c,iconRotate:B,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:Q}));var z="left"===a?_+5:-5,R=a,D=o.get("formatter"),I=t;i.isString(D)&&D?I=D.replace("{name}",null!=t?t:""):i.isFunction(D)&&(I=D(t));var N=C?$.getTextColor():r.get("inactiveColor");P.add(new f.Ay({style:(0,g.VB)($,{text:I,x:z,y:k/2,fill:N,align:R,verticalAlign:"middle"},{inheritColor:N})}));var L=new h.A({shape:P.getBoundingRect(),style:{fill:"transparent"}}),V=r.getModel("tooltip");return V.get("show")&&p.setTooltipConfig({el:L,componentModel:o,itemName:t,itemTooltipOption:V.option}),P.add(L),P.eachChild((function(e){e.silent=!0})),L.silent=!u,this.getContentGroup().add(P),(0,m.iJ)(P),P.__legendDataIndex=n,P},t.prototype.layoutInner=function(e,t,n,r,o,i){var a=this.getContentGroup(),s=this.getSelectorGroup();v.aP(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){v.aP("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",m=0===h?"height":"width",g=0===h?"y":"x";"end"===i?d[h]+=l[p]+f:c[h]+=u[p]+f,d[1-h]+=l[m]/2-u[m]/2,s.x=d[0],s.y=d[1],a.x=c[0],a.y=c[1];var A={x:0,y:0};return A[p]=l[p]+f+u[p],A[m]=Math.max(l[m],u[m]),A[g]=Math.min(0,u[g]+d[1-h]),A}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(y.A);function C(e,t,n,r){T(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),Q(e,t,n,r)}function B(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,o=n.length;rn[o],g=[-f.x,-f.y];t||(g[r]=c[l]);var A=[0,0],y=[-p.x,-p.y],O=i.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));m&&("end"===e.get("pageButtonPosition",!0)?y[r]+=n[o]-p[o]:A[r]+=p[o]+O),y[1-r]+=f[a]/2-p[a]/2,c.setPosition(g),u.setPosition(A),d.setPosition(y);var b={x:0,y:0};if(b[o]=m?n[o]:f[o],b[a]=Math.max(f[a],p[a]),b[s]=Math.min(0,p[s]+y[1-r]),u.__rectSize=n[o],m){var w={x:0,y:0};w[o]=Math.max(n[o]-p[o]-O,0),w[a]=b[a],u.setClipPath(new h.A({shape:w})),u.__rectSize=w[o]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(e);return null!=_.pageIndex&&L.oi(c,{x:_.contentPosition[0],y:_.contentPosition[1]},m?e:null),this._updatePageInfoView(e,_),b},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(r){var o=null!=t[r+"DataIndex"],i=n.childOfName(r);i&&(i.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;r&&o&&r.setStyle("text",i.isString(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):o({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=e.getOrient().index,i=U[o],a=F[o],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,d=u?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var h=v(c);f.contentPosition[o]=-h.s;for(var p=s+1,m=h,g=h,A=null;p<=u;++p)(!(A=v(l[p]))&&g.e>m.s+r||A&&!y(A,m.s))&&(m=g.i>m.i?g:A)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),g=A;for(p=s-1,m=h,g=h,A=null;p>=-1;--p)(A=v(l[p]))&&y(g,A.s)||!(m.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,o){var i=r.__legendDataIndex;null==n&&null!=i&&(n=o),i===e&&(t=o)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(E),W=H;function X(e){(0,r.Y)(z),e.registerComponentModel(N),e.registerComponentView(W),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function j(e){(0,r.Y)(z),(0,r.Y)(X)}},5786:function(e,t,n){"use strict";n.d(t,{a:function(){return b}});var r=n(98026),o=n(41025),i=n(31825),a={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},s=function(){function e(e){null==(this._condVal=(0,r.isString)(e)?new RegExp(e):(0,r.isRegExp)(e)?e:null)&&(0,o.$8)("")}return e.prototype.evaluate=function(e){var t=typeof e;return(0,r.isString)(t)?this._condVal.test(e):!!(0,r.isNumber)(t)&&this._condVal.test(e+"")},e}(),l=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),c=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t
'};function o(e,t,n){return en?n:e}function i(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var l=n.render(!t),c=l.querySelector(r.barSelector),u=r.speed,d=r.easing;return l.offsetWidth,a((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(c,function(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+n,o}(e,u,d)),1===e?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),l=e?"-100":i(n.status||0),u=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=d(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=d(e);l(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},6006:function(e,t,n){"use strict";var r,o,i,a,s,l,c,u=n(98026),d=n(5202),f=n(16563),h=n(58267),p=n(29756),m=n(22759),g=n(13430),A=n(48170),v=n(69622),y=n(34310),O=n(70250),b=n(73632),w=u.isObject,_=u.map,x="undefined"==typeof Int32Array?Array:Int32Array,S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],k=["_approximateExtent"],C=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;(0,b.fg)(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var o={},i=[],a={},s=!1,l={},c=0;c=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList;if(n.getSource().sourceFormat===g.mK&&!n.pure)for(var a=[],s=e;s0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var o=r[t];return null==o&&(o=this.getVisual(t),u.isArray(o)?o=o.slice():w(o)&&(o=u.extend({},o)),r[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,w(t)?u.extend(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){w(e)?u.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?u.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;(0,v.a)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){u.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_(this.dimensions,this._getDimInfo,this),this.hostModel)),s(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];u.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(u.slice(arguments)))})},e.internalField=(r=function(e){var t=e._invertedIndicesMap;u.each(t,(function(n,r){var o=e._dimInfos[r],i=o.ordinalMeta,a=e._store;if(i){n=t[r]=new x(i.categories.length);for(var s=0;s1&&(l+="__ec__"+u),r[t]=l}})),e}();t.A=C},6060:function(e,t,n){var r=n(75526)("Date");e.exports=r},6393:function(e,t,n){"use strict";n.d(t,{AH:function(){return P},Yk:function(){return E}});var r=n(48820),o=n(43720);const i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function a(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function s(e){return e>=48&&e<=57}const l=new r.Lu(((e,t)=>{for(let n=!1,r=0,o=0;;o++){let{next:i}=e;if(a(i)||45==i||95==i||n&&s(i))!n&&(45!=i||o>0)&&(n=!0),r===o&&45==i&&r++,e.advance();else{if(92!=i||10==e.peek(1)){n&&e.acceptToken(40==i?101:2==r&&t.canShift(2)?2:102);break}e.advance(),e.next>-1&&e.advance(),n=!0}}})),c=new r.Lu((e=>{if(i.includes(e.peek(-1))){let{next:t}=e;(a(t)||95==t||35==t||46==t||91==t||58==t&&a(e.peek(1))||45==t||38==t)&&e.acceptToken(100)}})),u=new r.Lu((e=>{if(!i.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),a(t)){do{e.advance()}while(a(e.next)||s(e.next));e.acceptToken(1)}}})),d=(0,o.pn)({"AtKeyword import charset namespace keyframes media supports":o._A.definitionKeyword,"from to selector":o._A.keyword,NamespaceName:o._A.namespace,KeyframeName:o._A.labelName,KeyframeRangeName:o._A.operatorKeyword,TagName:o._A.tagName,ClassName:o._A.className,PseudoClassName:o._A.constant(o._A.className),IdName:o._A.labelName,"FeatureName PropertyName":o._A.propertyName,AttributeName:o._A.attributeName,NumberLiteral:o._A.number,KeywordQuery:o._A.keyword,UnaryQueryOp:o._A.operatorKeyword,"CallTag ValueName":o._A.atom,VariableName:o._A.variableName,Callee:o._A.operatorKeyword,Unit:o._A.unit,"UniversalSelector NestingSelector":o._A.definitionOperator,MatchOp:o._A.compareOperator,"ChildOp SiblingOp, LogicOp":o._A.logicOperator,BinOp:o._A.arithmeticOperator,Important:o._A.modifier,Comment:o._A.blockComment,ColorLiteral:o._A.color,"ParenthesizedContent StringLiteral":o._A.string,":":o._A.punctuation,"PseudoOp #":o._A.derefOperator,"; ,":o._A.separator,"( )":o._A.paren,"[ ]":o._A.squareBracket,"{ }":o._A.brace}),f={__proto__:null,lang:34,"nth-child":34,"nth-last-child":34,"nth-of-type":34,"nth-last-of-type":34,dir:34,"host-context":34,url:62,"url-prefix":62,domain:62,regexp:62,selector:140},h={__proto__:null,"@import":120,"@media":144,"@charset":148,"@namespace":152,"@keyframes":158,"@supports":170},p={__proto__:null,not:134,only:134},m=r.U1.deserialize({version:14,states:":jQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#CiO$qQ[O'#DUO$vQ[O'#DXOOQP'#En'#EnO${QdO'#DhO%jQ[O'#DuO${QdO'#DwO%{Q[O'#DyO&WQ[O'#D|O&`Q[O'#ESO&nQ[O'#EUOOQS'#Em'#EmOOQS'#EX'#EXQYQ[OOO&uQXO'#CdO'jQWO'#DdO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@])C@]OOQP'#Ch'#ChOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E]O({QWO,58{O)TQ[O,59TO$qQ[O,59pO$vQ[O,59sO(aQ[O,59vO(aQ[O,59xO(aQ[O,59yO)`Q[O'#DcOOQS,58{,58{OOQP'#Cl'#ClOOQO'#DS'#DSOOQP,59T,59TO)gQWO,59TO)lQWO,59TOOQP'#DW'#DWOOQP,59p,59pOOQO'#DY'#DYO)qQ`O,59sOOQS'#Cq'#CqO${QdO'#CrO)yQvO'#CtO+ZQtO,5:SOOQO'#Cy'#CyO)lQWO'#CxO+oQWO'#CzO+tQ[O'#DPOOQS'#Ep'#EpOOQO'#Dk'#DkO+|Q[O'#DrO,[QWO'#EtO&`Q[O'#DpO,jQWO'#DsOOQO'#Eu'#EuO)OQWO,5:aO,oQpO,5:cOOQS'#D{'#D{O,wQWO,5:eO,|Q[O,5:eOOQO'#EO'#EOO-UQWO,5:hO-ZQWO,5:nO-cQWO,5:pOOQS-E8V-E8VO-kQdO,5:OO-{Q[O'#E_O.YQWO,5;_O.YQWO,5;_POOO'#EW'#EWP.eO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO/[QXO,5:wOOQO-E8Z-E8ZOOQS1G.g1G.gOOQP1G.o1G.oO)gQWO1G.oO)lQWO1G.oOOQP1G/[1G/[O/iQ`O1G/_O0SQXO1G/bO0jQXO1G/dO1QQXO1G/eO1hQWO,59}O1mQ[O'#DTO1tQdO'#CpOOQP1G/_1G/_O${QdO1G/_O1{QpO,59^OOQS,59`,59`O${QdO,59bO2TQWO1G/nOOQS,59d,59dO2YQ!bO,59fOOQS'#DQ'#DQOOQS'#EZ'#EZO2eQ[O,59kOOQS,59k,59kO2mQWO'#DkO2xQWO,5:WO2}QWO,5:^O&`Q[O,5:YO&`Q[O'#E`O3VQWO,5;`O3bQWO,5:[O(aQ[O,5:_OOQS1G/{1G/{OOQS1G/}1G/}OOQS1G0P1G0PO3sQWO1G0PO3xQdO'#EPOOQS1G0S1G0SOOQS1G0Y1G0YOOQS1G0[1G0[O4TQtO1G/jOOQO1G/j1G/jOOQO,5:y,5:yO4kQ[O,5:yOOQO-E8]-E8]O4xQWO1G0yPOOO-E8U-E8UPOOO1G.e1G.eOOQP7+$Z7+$ZOOQP7+$y7+$yO${QdO7+$yOOQS1G/i1G/iO5TQXO'#ErO5[QWO,59oO5aQtO'#EYO6XQdO'#EoO6cQWO,59[O6hQpO7+$yOOQS1G.x1G.xOOQS1G.|1G.|OOQS7+%Y7+%YOOQS1G/Q1G/QO6pQWO1G/QOOQS-E8X-E8XOOQS1G/V1G/VO${QdO1G/rOOQO1G/x1G/xOOQO1G/t1G/tO6uQWO,5:zOOQO-E8^-E8^O7TQXO1G/yOOQS7+%k7+%kO7[QYO'#CtOOQO'#ER'#ERO7gQ`O'#EQOOQO'#EQ'#EQO7rQWO'#EaO7zQdO,5:kOOQS,5:k,5:kO8VQtO'#E^O${QdO'#E^O9WQdO7+%UOOQO7+%U7+%UOOQO1G0e1G0eO9kQpO<PAN>PO;]QdO,5:vOOQO-E8Y-E8YOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUp`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYp`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[p`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSu^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWkWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VUZQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTkWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSp`#]~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU^QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S_Qp`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Z^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS}SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!PQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!PQp`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!]Qp`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSr^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSq^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUp`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!cQp`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!UUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!T^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!SQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[c,u,l,1,2,3,4,new r.uC("m~RRYZ[z{a~~g~aO#_~~dP!P!Qg~lO#`~~",28,106)],topRules:{StyleSheet:[0,4],Styles:[1,87]},specialized:[{term:101,get:e=>f[e]||-1},{term:59,get:e=>h[e]||-1},{term:102,get:e=>p[e]||-1}],tokenPrec:1219});var g=n(15874),A=n(90365);let v=null;function y(){if(!v&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),n.has(r)||(t.push(r),n.add(r)));v=t.sort().map((e=>({type:"property",label:e,apply:e+": "})))}return v||[]}const O=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),w=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),_=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map((e=>({type:"keyword",label:e}))),x=/^(\w[\w-]*|-\w[\w-]*|)$/,S=/^-(-[\w-]*)?$/,k=new A.RY,C=["Declaration"];function B(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Q(e,t,n){if(t.to-t.from>4096){let r=k.get(t);if(r)return r;let o=[],i=new Set,a=t.cursor(A.Qj.IncludeAnonymous);if(a.firstChild())do{for(let t of Q(e,a.node,n))i.has(t.label)||(i.add(t.label),o.push(t))}while(a.nextSibling());return k.set(t,o),o}{let r=[],o=new Set;return t.cursor().iterate((t=>{var i;if(n(t)&&t.matchContext(C)&&":"==(null===(i=t.node.nextSibling)||void 0===i?void 0:i.name)){let n=e.sliceString(t.from,t.to);o.has(n)||(o.add(n),r.push({label:n,type:"variable"}))}})),r}}const T=(e=>t=>{let{state:n,pos:r}=t,o=(0,g.mv)(n).resolveInner(r,-1),i=o.type.isError&&o.from==o.to-1&&"-"==n.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(i||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:y(),validFor:x};if("ValueName"==o.name)return{from:o.from,options:b,validFor:x};if("PseudoClassName"==o.name)return{from:o.from,options:O,validFor:x};if(e(o)||(t.explicit||i)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(o,n.doc))return{from:e(o)||i?o.from:r,options:Q(n.doc,B(o),e),validFor:S};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:y(),validFor:x};return{from:o.from,options:w,validFor:x}}if("AtKeyword"==o.name)return{from:o.from,options:_,validFor:x};if(!t.explicit)return null;let a=o.resolve(r),s=a.childBefore(r);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:O,validFor:x}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,options:b,validFor:x}:"Block"==a.name||"Styles"==a.name?{from:r,options:y(),validFor:x}:null})((e=>"VariableName"==e.name)),E=g.bj.define({name:"css",parser:m.configure({props:[g.Oh.add({Declaration:(0,g.mz)()}),g.b_.add({"Block KeyframeList":g.yd})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function P(){return new g.Yy(E,E.data.of({autocomplete:T}))}},6666:function(e,t,n){"use strict";var r=n(98026),o=n(43870),i=n(12616),a=n(30693),s=n(48170),l=n(34833),c=n(49431),u=n(87582),d=n(43199),f=s.$r(),h=(0,u.A)(),p=function(){function e(){this.group=new o.A,this.uid=i.$Q("viewChart"),this.renderTask=(0,c.U)({plan:A,reset:v}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&g(o,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&g(o,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){(0,d.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){f(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function m(e,t,n){e&&(0,l.u6)(e)&&("emphasis"===t?l.HY:l.SD)(e,n)}function g(e,t,n){var o=s.le(e,t),i=t&&null!=t.highlightKey?(0,l._n)(t.highlightKey):null;null!=o?(0,r.each)(s.qB(o),(function(t){m(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){m(e,n,i)}))}function A(e){return h(e.model)}function v(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,i=t.pipelineContext.progressiveRender,a=e.view,s=o&&f(o).updateMethod,l=i?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,o),y[l]}a.gq(p,["dispose"]),a.tQ(p);var y={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t.A=p},6756:function(e,t,n){"use strict";n.d(t,{a:function(){return Y}});var r=n(98026),o=n(62536),i=n(37959),a=n(15215),s=n(98908),l=n(40446),c=n(12616),u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,a.C6)(t,e),t.prototype.getInitialData=function(){return(0,l.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,c.G_)(s.A.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(s.A),d=u,f=n(5070),h=n(43870),p=n(43199),m=n(5638),g=n(10992),A=n(59975),v=n(69622),y=n(34833),O=n(89632),b=n(24711),w=n(95235),_=n(84618),x=n(6666),S=n(41849),k=n(44532),C=n(45558);function B(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Q(e,t,n){return t*Math.cos(e)*(n?1:-1)}var T=n(79446),E=Math.max,P=Math.min,$=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return(0,a.C6)(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){(0,p.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var o,i=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?o=c.isHorizontal():"polar"===l.type&&(o="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);d&&this._enableRealtimeSort(d,a,n);var f=e.get("clip",!0)||d,p=function(e,t){var n=e.getArea&&e.getArea();if((0,S.g)(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var o=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(l,a);i.removeClipPath();var v=e.get("roundCap",!0),y=e.get("showBackground",!0),b=e.getModel("backgroundStyle"),w=b.get("borderRadius")||0,_=[],x=this._backgroundEls,k=r&&r.isInitSort,C=r&&"changeAxisOrder"===r.type;function B(e){var t=V[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?A.A:g.A)({shape:q(t,n,e),silent:!0,z2:0})}(l,o,t);return n.useStyle(b.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",w):n.setShape("cornerRadius",w),_[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=V[l.type](a,t,n);if(y&&B(t),a.hasValue(t)&&L[l.type](r)){var s=!1;f&&(s=M[l.type](p,r));var h=z[l.type](e,a,t,r,o,u,c.model,!1,v);d&&(h.forceLabelAnimation=!0),F(h,a,t,n,r,e,o,"polar"===l.type),k?h.attr({shape:r}):d?R(d,u,h,r,t,o,!1,!1):(0,m.LW)(h,{shape:r},e,t),a.setItemGraphicEl(t,h),i.add(h),h.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),h=V[l.type](a,t,r);if(y){var g=void 0;0===x.length?g=B(n):((g=x[n]).useStyle(b.getItemStyle()),"cartesian2d"===l.type?g.setShape("r",w):g.setShape("cornerRadius",w),_[t]=g);var A=V[l.type](a,t),S=q(o,A,l);(0,m.oi)(g,{shape:S},u,t)}var Q=s.getItemGraphicEl(n);if(a.hasValue(t)&&L[l.type](h)){var T=!1;if(f&&(T=M[l.type](p,h))&&i.remove(Q),Q?(0,m.ap)(Q):Q=z[l.type](e,a,t,h,o,u,c.model,!!Q,v),d&&(Q.forceLabelAnimation=!0),C){var E=Q.getTextContent();if(E){var P=(0,O.Lu)(E);null!=P.prevValue&&(P.prevValue=P.value)}}else F(Q,a,t,r,h,e,o,"polar"===l.type);k?Q.attr({shape:h}):d?R(d,u,Q,h,t,o,!0,C):(0,m.oi)(Q,{shape:h},e,t,null),a.setItemGraphicEl(t,Q),Q.ignore=T,i.add(Q)}else i.remove(Q)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&(0,m.t5)(n,e,t)})).execute();var Q=this._backgroundGroup||(this._backgroundGroup=new h.A);Q.removeAll();for(var T=0;T<_.length;++T)Q.add(_[T]);i.add(Q),this._backgroundEls=_,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),X(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),X(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&(0,w.Ip)(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var i=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(o.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,i,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var o=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,o.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),o.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:(0,r.map)(o,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,o=e.mapDimension(n.dim),i=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;ai)return!0;i=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),o=Math.max(0,r[0]),i=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o<=i;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,o=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:o})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){(0,m.t5)(t,e,(0,v.z)(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(x.A),M={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,i=e.y+e.height,a=E(t.x,e.x),s=P(t.x+t.width,o),l=E(t.y,e.y),c=P(t.y+t.height,i),u=so?s:a,t.y=d&&l>i?c:l,t.width=u?0:s-a,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var o=P(t.r,e.r),i=E(t.r0,e.r0);t.r=o,t.r0=i;var a=o-i<0;return n<0&&(r=t.r,t.r=t.r0,t.r0=r),a}},z={cartesian2d:function(e,t,n,o,i,a,s,l,c){var u=new g.A({shape:(0,r.extend)({},o),z2:1});return u.__dataIndex=n,u.name="item",a&&(u.shape[i?"height":"width"]=0),u},polar:function(e,t,n,r,o,i,a,s,l){var c=!o&&l?_.A:A.A,u=new c({shape:r,z2:1});u.name="item";var d,f,h,p=U(o);if(u.calculateTextPosition=(d=p,f={isRoundCap:c===_.A},h=(f=f||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return(0,C.X4)(e,t,n);var o=d(r),i=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,f=(c+u)/2,p=a.startAngle,m=a.endAngle,g=(p+m)/2,A=h?Math.abs(c-u)/2:0,v=Math.cos,y=Math.sin,O=s+c*v(p),b=l+c*y(p),w="left",_="top";switch(o){case"startArc":O=s+(u-i)*v(g),b=l+(u-i)*y(g),w="center",_="top";break;case"insideStartArc":O=s+(u+i)*v(g),b=l+(u+i)*y(g),w="center",_="bottom";break;case"startAngle":O=s+f*v(p)+B(p,i+A,!1),b=l+f*y(p)+Q(p,i+A,!1),w="right",_="middle";break;case"insideStartAngle":O=s+f*v(p)+B(p,-i+A,!1),b=l+f*y(p)+Q(p,-i+A,!1),w="left",_="middle";break;case"middle":O=s+f*v(g),b=l+f*y(g),w="center",_="middle";break;case"endArc":O=s+(c+i)*v(g),b=l+(c+i)*y(g),w="center",_="bottom";break;case"insideEndArc":O=s+(c-i)*v(g),b=l+(c-i)*y(g),w="center",_="top";break;case"endAngle":O=s+f*v(m)+B(m,i+A,!0),b=l+f*y(m)+Q(m,i+A,!0),w="left",_="middle";break;case"insideEndAngle":O=s+f*v(m)+B(m,-i+A,!0),b=l+f*y(m)+Q(m,-i+A,!0),w="right",_="middle";break;default:return(0,C.X4)(e,t,n)}return(e=e||{}).x=O,e.y=b,e.align=w,e.verticalAlign=_,e}),i){var g=o?"r":"endAngle",v={};u.shape[g]=o?r.r0:r.startAngle,v[g]=r[g],(s?m.oi:m.LW)(u,{shape:v},i)}return u}};function R(e,t,n,r,o,i,a,s){var l,c;i?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?m.oi:m.LW)(n,{shape:l},t,o,null);var u=t?e.baseAxis.model:null;(a?m.oi:m.LW)(n,{shape:c},u,o)}function D(e,t){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+i*o/2,y:r.y+a*o/2,width:r.width-i*o,height:r.height-a*o}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function U(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function F(e,t,n,o,i,a,s,l){var c=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var u=e.shape,d=(0,T.i)(o.getModel("itemStyle"),u,!0);(0,r.extend)(u,d),e.setShape(u)}}else{var f=o.get(["itemStyle","borderRadius"])||0;e.setShape("r",f)}e.useStyle(c);var h=o.getShallow("cursor");h&&e.attr("cursor",h);var p=l?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",m=(0,O.lx)(o);(0,O.qM)(e,m,{labelFetcher:a,labelDataIndex:n,defaultText:(0,k.i)(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(l&&g){var A=o.get(["label","position"]);e.textConfig.inside="middle"===A||null,function(e,t,n,o){if((0,r.isNumber)(o))e.setTextConfig({rotation:o});else if((0,r.isArray)(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,c=(s+l)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=c;break;case"startAngle":case"insideStartAngle":i=s;break;case"endAngle":case"insideEndAngle":i=l;break;default:return void e.setTextConfig({rotation:0})}var d=1.5*Math.PI-i;"middle"===u&&d>Math.PI/2&&d<1.5*Math.PI&&(d-=Math.PI),e.setTextConfig({rotation:d})}}(e,"outside"===A?p:A,U(s),o.get(["label","rotate"]))}(0,O.Oh)(g,m,a.getRawValue(n),(function(e){return(0,k.T)(t,e)}));var v=o.getModel(["emphasis"]);(0,y.Lm)(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),(0,y.Mx)(e,o),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",(0,r.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var H=function(){},W=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return(0,a.C6)(t,e),t.prototype.getDefaultShape=function(){return new H},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,o=1-this.baseDimIdx,i=[],a=[],s=this.barWidth,l=0;l=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}(this,e.offsetX,e.offsetY);(0,v.z)(this).dataIndex=t>=0?t:null}),30,!1);function q(e,t,n){if((0,S.g)(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}var i=t;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:e?o.r0:i.r0,r:e?o.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:2*Math.PI}}var Z=$;function Y(e){e.registerChartView(Z),e.registerSeriesModel(d),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,r.curry(o.Zp,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,o.KF)("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,i.A)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7442:function(e,t,n){"use strict";n.d(t,{S:function(){return i},a:function(){return a}});var r=n(98026),o=(0,r.createHashMap)();function i(e,t){(0,r.assert)(null==o.get(e)&&t),o.set(e,t)}function a(e,t,n){var r=o.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}},7586:function(e,t,n){var r=n(43271),o=n(1968);e.exports=function(e,t){return r(e,t,o)}},7588:function(e,t,n){"use strict";var r=n(46518),o=n(72652),i=n(79306),a=n(28551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),i(e);var t=s(this),n=0;o(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},7828:function(e,t,n){n(83393)},7847:function(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}},n=t("string"),r=t("array"),o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),i=tinymce.util.Tools.resolve("tinymce.EditorManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),s=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=function(e){return e.getParam("importcss_selector_converter")},c=function(e){return e.getParam("importcss_append")},u=Array.prototype.push,d=/^\.(?:ephox|tiny-pageembed|mce)(?:[.-]+\w+)+$/,f=function(e){return n(e)?function(t){return-1!==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:e},h=function(e,t){var n,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(t);if(r){var o=r[1],i=r[2].substr(1).split(".").join(" "),a=s.makeMap("a,img");return r[1]?(n={title:t},e.schema.getTextBlockElements()[o]?n.block=o:e.schema.getBlockElements()[o]||a[o.toLowerCase()]?n.selector=o:n.inline=o):r[2]&&(n={inline:"span",title:t.substr(1),classes:i}),!1!==function(e){return e.getParam("importcss_merge_classes")}(e)?n.classes=i:n.attributes={class:i},n}},p=function(e,t){return null===t||!1!==function(e){return e.getParam("importcss_exclusive")}(e)},m=function(e){e.on("init",(function(){var t=function(){var e=[],t=[],n={};return{addItemToGroup:function(e,r){n[e]?n[e].push(r):(t.push(e),n[e]=[r])},addItem:function(t){e.push(t)},toFormats:function(){return(o=t,i=function(e){var t=n[e];return 0===t.length?[]:[{title:e,items:t}]},function(e){for(var t=[],n=0,o=e.length;n0)s.each(n,(function(n){var r=v(e,n);r&&t.addItemToGroup(n.title,r)}));else{var r=v(e,null);r&&t.addItem(r)}}}));var y=t.toFormats();e.fire("addStyleModifications",{items:y,replace:!c(e)})}))};e.add("importcss",(function(e){return m(e),function(e){return{convertSelectorToFormat:function(t){return h(e,t)}}}(e)}))}()},8022:function(e,t,n){n(64715)},8127:function(e,t,n){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e,t="3.7.7",n=t,r="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,i="function"==typeof TextEncoder?new TextEncoder:void 0,a=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),s=(e={},a.forEach((function(t,n){return e[t]=n})),e),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,c=String.fromCharCode.bind(String),u="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},d=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},f=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(e){for(var t,n,r,o,i="",s=e.length%3,l=0;l255||(r=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");i+=a[(t=n<<16|r<<8|o)>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},p="function"==typeof btoa?function(e){return btoa(e)}:r?function(e){return Buffer.from(e,"binary").toString("base64")}:h,m=r?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,y=function(e){return e.replace(v,A)},O=r?function(e){return Buffer.from(e,"utf8").toString("base64")}:i?function(e){return m(i.encode(e))}:function(e){return p(y(e))},b=function(e,t){return void 0===t&&(t=!1),t?d(O(e)):O(e)},w=function(e){return b(e,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},S=function(e){return e.replace(_,x)},k=function(e){if(e=e.replace(/\s+/g,""),!l.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,o="",i=0;i>16&255):64===r?c(t>>16&255,t>>8&255):c(t>>16&255,t>>8&255,255&t);return o},C="function"==typeof atob?function(e){return atob(f(e))}:r?function(e){return Buffer.from(e,"base64").toString("binary")}:k,B=r?function(e){return u(Buffer.from(e,"base64"))}:function(e){return u(C(e).split("").map((function(e){return e.charCodeAt(0)})))},Q=function(e){return B(E(e))},T=r?function(e){return Buffer.from(e,"base64").toString("utf8")}:o?function(e){return o.decode(B(e))}:function(e){return S(C(e))},E=function(e){return f(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},P=function(e){return T(E(e))},$=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},M=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,$(t))};e("fromBase64",(function(){return P(this)})),e("toBase64",(function(e){return b(this,e)})),e("toBase64URI",(function(){return b(this,!0)})),e("toBase64URL",(function(){return b(this,!0)})),e("toUint8Array",(function(){return Q(this)}))},z=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,$(t))};e("toBase64",(function(e){return g(this,e)})),e("toBase64URI",(function(){return g(this,!0)})),e("toBase64URL",(function(){return g(this,!0)}))},R={version:t,VERSION:n,atob:C,atobPolyfill:k,btoa:p,btoaPolyfill:h,fromBase64:P,toBase64:b,encode:b,encodeURI:w,encodeURL:w,utob:y,btou:S,decode:P,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:g,toUint8Array:Q,extendString:M,extendUint8Array:z,extendBuiltins:function(){M(),z()},Base64:{}};return Object.keys(R).forEach((function(e){return R.Base64[e]=R[e]})),R}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8317:function(e,t,n){"use strict";n.d(t,{J:function(){return a},m:function(){return o}});var r=n(32944),o=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],i=(0,r.A)(o),a=function(){function e(){}return e.prototype.getLineStyle=function(e){return i(this,e)},e}()},8557:function(e,t,n){var r=n(21323),o=n(99361),i=n(88827),a=n(50281),s=n(53876),l=n(35224);e.exports=function(e){return e=s(e),l(e)?Math.floor((i(e)-i(a(e,0,o)))/r)+1:NaN}},8906:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},8957:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(98026),o="undefined"!=typeof Float32Array,i=o?Float32Array:Array;function a(e){return(0,r.isArray)(e)?o?new Float32Array(e):e:new i(e)}},9310:function(e,t,n){var r=n(73971),o=typeof WeakSet!==r;e.exports=function(e){return o&&e instanceof WeakSet}},9427:function(e,t,n){"use strict";n.d(t,{J:function(){return s},L:function(){return l}});var r=n(98026),o=n(58267),i=n(83412),a=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),o=n.getRawIndex(e),i=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,d="series"===u,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:i,dataIndex:o,data:a,dataType:t,value:r,color:l,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,c){t=t||"normal";var u=this.getData(n),d=this.getDataParams(e,n);return c&&(d.value=c.interpolatedValue),null!=s&&r.isArray(d.value)&&(d.value=d.value[s]),l||(l=u.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),r.isFunction(l)?(d.status=t,d.dimensionIndex=s,l(d)):r.isString(l)?(0,i.YK)(l,d).replace(a,(function(t,n){var i=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(i-1)&&(a=+a.slice(1,i-1));var s=(0,o.QE)(u,e,a);if(c&&r.isArray(c.interpolatedValue)){var l=u.getDimensionIndex(a);l>=0&&(s=c.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return(0,o.QE)(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r.isObject(e)?e.type&&(n=e):t=e,{text:t,frag:n}}},9539:function(e,t,n){"use strict";var r=n(69565),o=n(28551),i=n(55966);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},9914:function(e,t,n){"use strict";n.d(t,{_0:function(){return he.A},OZ:function(){return h.A},jT:function(){return u.A},bR:function(){return d.A},B8:function(){return p.A},Kx:function(){return x.A},FQ:function(){return c.FQ},rP:function(){return f.A},yW:function(){return y},Ng:function(){return c.Ng},p5:function(){return c.p5},El:function(){return c.El},zm:function(){return c.zm},Zf:function(){return c.Zf},AS:function(){return c.AS},_K:function(){return fe.A},yX:function(){return ve},rt:function(){return me},NO:function(){return ge},NA:function(){return Ae},GP:function(){return s},Bo:function(){return c.Bo},FP:function(){return c.FP},aQ:function(){return c.aQ},ZB:function(){return c.ZB},fA:function(){return a},dw:function(){return r},Ts:function(){return c.Ts},UU:function(){return pe.Xi},UP:function(){return g},ai:function(){return o},l3:function(){return N.A},zI:function(){return N.A},OH:function(){return c.OH},pX:function(){return c.pX},Oh:function(){return c.Oh},Ej:function(){return c.Ej},E:function(){return c.E},mz:function(){return c.mz},cf:function(){return c.cf},tb:function(){return c.tb},lP:function(){return c.lP},qg:function(){return c.qg},bf:function(){return c.bf},iY:function(){return c.iY},xV:function(){return c.xV},AF:function(){return c.AF},vV:function(){return c.vV},Gs:function(){return I.Gs},nF:function(){return O.nF},kB:function(){return i},Yx:function(){return D.Y},ZS:function(){return l},i1:function(){return A},rE:function(){return c.rE},F_:function(){return v},nd:function(){return m}});var r={};n.r(r),n.d(r,{createDimensions:function(){return Q.M},createList:function(){return P},createScale:function(){return M},createSymbol:function(){return T.v5},createTextStyle:function(){return R},dataStack:function(){return $},enableHoverEmphasis:function(){return E.iJ},getECData:function(){return C.z},getLayoutRect:function(){return S.dV},mixinAxisModelCommonMethods:function(){return z}});var o={};n.r(o),n.d(o,{MAX_SAFE_INTEGER:function(){return L.Is},asc:function(){return L.Y6},getPercentWithPrecision:function(){return L.wp},getPixelPrecision:function(){return L.hb},getPrecision:function(){return L.XV},getPrecisionSafe:function(){return L.y6},isNumeric:function(){return L.kf},isRadianAroundZero:function(){return L.dh},linearMap:function(){return L.Cb},nice:function(){return L.Cm},numericToNumber:function(){return L.Sm},parseDate:function(){return L._U},quantile:function(){return L.YV},quantity:function(){return L.au},quantityExponent:function(){return L.NX},reformIntervals:function(){return L.sL},remRadian:function(){return L._7},round:function(){return L.LI}});var i={};n.r(i),n.d(i,{format:function(){return V.GP},parse:function(){return L._U}});var a={};n.r(a),n.d(a,{Arc:function(){return ne.A},BezierCurve:function(){return te.A},BoundingRect:function(){return se.A},Circle:function(){return j.A},CompoundPath:function(){return oe.A},Ellipse:function(){return q.A},Group:function(){return H.A},Image:function(){return W.Ay},IncrementalDisplayable:function(){return re.A},Line:function(){return ee.A},LinearGradient:function(){return ie.A},Polygon:function(){return G.A},Polyline:function(){return K.A},RadialGradient:function(){return ae.A},Rect:function(){return J.A},Ring:function(){return Y.A},Sector:function(){return Z.A},Text:function(){return X.Ay},clipPointsByRect:function(){return U.clipPointsByRect},clipRectByRect:function(){return U.clipRectByRect},createIcon:function(){return U.createIcon},extendPath:function(){return U.extendPath},extendShape:function(){return U.extendShape},getShapeClass:function(){return U.getShapeClass},getTransform:function(){return U.getTransform},initProps:function(){return F.LW},makeImage:function(){return U.makeImage},makePath:function(){return U.makePath},mergePath:function(){return U.mergePath},registerShape:function(){return U.registerShape},resizePath:function(){return U.resizePath},updateProps:function(){return F.oi}});var s={};n.r(s),n.d(s,{addCommas:function(){return le.ob},capitalFirst:function(){return le.x5},encodeHTML:function(){return ce.Me},formatTime:function(){return le.fU},formatTpl:function(){return le.YK},getTextRect:function(){return de},getTooltipMarker:function(){return le.qg},normalizeCssArray:function(){return le.QX},toCamelCase:function(){return le.Cb},truncateText:function(){return ue.EJ}});var l={};n.r(l),n.d(l,{bind:function(){return v.bind},clone:function(){return v.clone},curry:function(){return v.curry},defaults:function(){return v.defaults},each:function(){return v.each},extend:function(){return v.extend},filter:function(){return v.filter},indexOf:function(){return v.indexOf},inherits:function(){return v.inherits},isArray:function(){return v.isArray},isFunction:function(){return v.isFunction},isObject:function(){return v.isObject},isString:function(){return v.isString},map:function(){return v.map},merge:function(){return v.merge},reduce:function(){return v.reduce}});var c=n(23421),u=n(15915),d=n(59109),f=n(47355),h=n(6666),p=n(6006),m=n(23442),g=n(45587),A=n(83509),v=n(98026),y=n(47698),O=n(24711),b=n(40446),w=n(50626),_=n(12462),x=n(5202),S=n(34253),k=n(65008),C=n(69622),B=n(89632),Q=n(97351),T=n(62103),E=n(34833);function P(e){return(0,b.A)(null,e)}var $={isDimensionStacked:k.sJ,enableDataStack:k.iJ,getStackedDimension:k.me};function M(e,t){var n=t;t instanceof x.A||(n=new x.A(t));var r=w.f$(n);return r.setExtent(e[0],e[1]),w.af(r,n),r}function z(e){v.mixin(e,_.L)}function R(e,t){return t=t||{},(0,B.VB)(e,null,null,"normal"!==t.state)}var D=n(3087),I=n(59741),N=n(69718),L=n(24326),V=n(55854),U=n(43199),F=n(5638),H=n(43870),W=n(90540),X=n(32322),j=n(31571),q=n(18393),Z=n(59975),Y=n(42933),G=n(52505),K=n(39195),J=n(10992),ee=n(82861),te=n(53849),ne=n(43471),re=n(2995),oe=n(82591),ie=n(29668),ae=n(82250),se=n(29308),le=n(83412),ce=n(44265),ue=n(62406);function de(e,t,n,r,o,i,a,s){return new X.Ay({style:{text:e,font:t,align:n,verticalAlign:r,padding:o,rich:i,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var fe=n(38123),he=n(33423),pe=n(29571);function me(e){var t=u.A.extend(e);return u.A.registerClass(t),t}function ge(e){var t=d.A.extend(e);return d.A.registerClass(t),t}function Ae(e){var t=f.A.extend(e);return f.A.registerClass(t),t}function ve(e){var t=h.A.extend(e);return h.A.registerClass(t),t}var ye=n(77037);(0,D.Y)(ye._)},9915:function(e){e.exports=function(e,t,n){var r,o,i=[],a=arguments;if(a.length<2&&(t=a[0],e=0),o=0|t,(r=0|e)(0,r.A)(o,e)},10128:function(e,t,n){"use strict";var r=n(15215),o=n(62103),i=n(5638),a=n(43870),s=n(69622),l=n(34833),c=n(44532),u=n(98026),d=n(89632),f=n(90540),h=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.updateData(t,n,r,o),i}return(0,r.C6)(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=(0,o.v5)(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=p,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){(0,l.HY)(this.childAt(0))},t.prototype.downplay=function(){(0,l.SD)(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,o){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),c=a!==this._symbolType,u=o&&o.disableAnimation;if(c){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,l,d)}else{(h=this.childAt(0)).silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};u?h.attr(f):i.oi(h,f,s,n),(0,i.ap)(h)}if(this._updateCommon(e,n,l,r,o),c){var h=this.childAt(0);u||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}},h.scaleX=h.scaleY=0,h.style.opacity=0,i.LW(h,f,s,n))}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var a,s,h,p,m,g,A,v,y,O=this.childAt(0),b=e.hostModel;if(r&&(a=r.emphasisItemStyle,s=r.blurItemStyle,h=r.selectItemStyle,p=r.focus,m=r.blurScope,A=r.labelStatesModels,v=r.hoverScale,y=r.cursorStyle,g=r.emphasisDisabled),!r||e.hasItemOption){var w=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=w.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),h=w.getModel(["select","itemStyle"]).getItemStyle(),s=w.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),m=_.get("blurScope"),g=_.get("disabled"),A=(0,d.lx)(w),v=_.getShallow("scale"),y=w.getShallow("cursor")}var x=e.getItemVisual(t,"symbolRotate");O.attr("rotation",(x||0)*Math.PI/180||0);var S=(0,o.hV)(e.getItemVisual(t,"symbolOffset"),n);S&&(O.x=S[0],O.y=S[1]),y&&O.attr("cursor",y);var k=e.getItemVisual(t,"style"),C=k.fill;if(O instanceof f.Ay){var B=O.style;O.useStyle((0,u.extend)({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},k))}else O.__isEmptyBrush?O.useStyle((0,u.extend)({},k)):O.useStyle(k),O.style.decal=null,O.setColor(C,i&&i.symbolInnerColor),O.style.strokeNoScale=!0;var Q=e.getItemVisual(t,"liftZ"),T=this._z2;null!=Q?null==T&&(this._z2=O.z2,O.z2+=Q):null!=T&&(O.z2=T,this._z2=null);var E=i&&i.useNameLabel;(0,d.qM)(O,A,{labelFetcher:b,labelDataIndex:t,defaultText:function(t){return E?e.getName(t):(0,c.i)(e,t)},inheritColor:C,defaultOpacity:k.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=O.ensureState("emphasis");P.style=a,O.ensureState("select").style=h,O.ensureState("blur").style=s;var $=null==v||!0===v?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;P.scaleX=this._sizeX*$,P.scaleY=this._sizeY*$,this.setSymbolScale(1),(0,l.Lm)(this,p,m,g)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),o=(0,s.z)(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var l=r.getTextContent();l&&i.Nz(l,{style:{opacity:0}},t,{dataIndex:o,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();i.Nz(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return(0,o.xU)(e.getItemVisual(t,"symbolSize"))},t}(a.A);function p(e,t){this.parent.drift(e,t)}t.A=h},10224:function(e,t,n){var r=n(3045),o=n(35657),i=n(79135),a=n(2801),s=n(10906),l=n(54477);function c(e,t,n){var s,u=[];return o(e,(function(e,o){s=i(e),l(e)||s?u=u.concat(c(e,t+"["+o+"]",s)):u.push(r(t+"["+(n?"":o)+"]")+"="+r(a(e)?"":e))})),u}e.exports=function(e){var t,n=[];return o(e,(function(e,o){s(e)||(t=i(e),l(e)||t?n=n.concat(c(e,o,t)):n.push(r(o)+"="+r(a(e)?"":e)))})),n.join("&").replace(/%20/g,"+")}},10246:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function O(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function b(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||r&&e===n)return e;if(e===n)break}while(e=O(e))}return null}var w,_=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_," ")}}function S(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function k(e,t){var n="";if("string"==typeof e)n=e;else do{var r=S(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function C(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===B())break;r=z(r,!1)}return!1}function E(e,t,n,r){for(var o=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,q);X.pluginEvent.bind(Ve)(e,t,o({dragEl:G,parentEl:K,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:Ae,putSortable:ue,activeSortable:Ve.active,originalEvent:r,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le,hideGhostForTarget:De,unhideGhostForTarget:Ie,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){Y({sortable:t,name:e,originalEvent:r})}},i))};function Y(e){j(o({putSortable:ue,cloneEl:re,targetEl:G,rootEl:ee,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le},e))}var G,K,J,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,fe,he,pe,me,ge,Ae,ve,ye,Oe,be,we=!1,_e=!1,xe=[],Se=!1,ke=!1,Ce=[],Be=!1,Qe=[],Te="undefined"!=typeof document,Ee=p,Pe=d||u?"cssFloat":"float",$e=Te&&!m&&!p&&"draggable"in document.createElement("div"),Me=function(){if(Te){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var n=S(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=E(e,0,t),i=E(e,1,t),a=o&&S(o),s=i&&S(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Q(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Q(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Pe]||i&&"none"===n[Pe]&&l+c>r)?"vertical":"horizontal"},Re=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},De=function(){!Me&&J&&S(J,"display","none")},Ie=function(){!Me&&J&&S(J,"display","")};Te&&!m&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);var Ne=function(e){if(G){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,xe.some((function(e){var t=e[F].options.emptyInsertThreshold;if(t&&!P(e)){var n=Q(e),r=o>=n.left-t&&o<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[F]._onDragOver(n)}}var o,i,a},Le=function(e){G&&G.parentNode[F]._isOutsideThisEl(e.target)};function Ve(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[F]=this;var n,r,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ze(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ve.supportPointer&&"PointerEvent"in window&&(!h||p),emptyInsertThreshold:5};for(var a in X.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var l in Re(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&$e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(e,"pointerdown",this._onTapStart):(A(e,"mousedown",this._onTapStart),A(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(e,"dragover",this),A(e,"dragenter",this)),xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==Ve.ghost){r.push({target:e,rect:Q(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=k(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,i=0;r.forEach((function(e){var n=0,r=e.target,a=r.fromRect,s=Q(r),l=r.prevFromRect,c=r.prevToRect,u=e.rect,d=k(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&R(l,s)&&!R(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,t.options)),R(s,a)||(r.prevFromRect=a,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,i=Math.max(i,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){S(e,"transition",""),S(e,"transform","");var o=k(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,S(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),S(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Ue(e,t,n,r,o,i,a,s){var l,c,f=e[F],h=f.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||Q(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),h&&(c=h.call(f,l,a)),c}function Fe(e){e.draggable=!1}function He(){Be=!1}function We(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Xe(e){return setTimeout(e,0)}function je(e){return clearTimeout(e)}Ve.prototype={constructor:Ve,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,G):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Qe.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Qe.push(r)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!h||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=b(s,r.draggable,n,!1))&&s.animated||ne===s)){if(ie=$(s),se=$(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Y({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=b(l,r.trim(),n,!1))return Y({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!b(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!G&&n.parentNode===i){var l=Q(n);if(ee=i,K=(G=n).parentNode,te=G.nextSibling,ne=n,ce=a.group,Ve.dragged=G,de={target:G,clientX:(t||e).clientX,clientY:(t||e).clientY},me=de.clientX-l.left,ge=de.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,G.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),Ve.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&(G.draggable=!0),o._triggerDragStart(e,t),Y({sortable:o,name:"choose",originalEvent:e}),x(G,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){C(G,e.trim(),Fe)})),A(s,"dragover",Ne),A(s,"mousemove",Ne),A(s,"touchmove",Ne),a.supportPointer?(A(s,"pointerup",o._onDrop),!this.nativeDraggable&&A(s,"pointercancel",o._onDrop)):(A(s,"mouseup",o._onDrop),A(s,"touchend",o._onDrop),A(s,"touchcancel",o._onDrop)),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),Z("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(Ve.eventCanceled)return void this._onDrop();a.supportPointer?(A(s,"pointerup",o._disableDelayedDrag),A(s,"pointercancel",o._disableDelayedDrag)):(A(s,"mouseup",o._disableDelayedDrag),A(s,"touchend",o._disableDelayedDrag),A(s,"touchcancel",o._disableDelayedDrag)),A(s,"mousemove",o._delayedDragTouchMoveHandler),A(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&A(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&Fe(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):A(document,t?"touchmove":"mousemove",this._onTouchMove):(A(G,"dragend",this),A(ee,"dragstart",this._onDragStart));try{document.selection?Xe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,ee&&G){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",Le);var n=this.options;!e&&x(G,n.dragClass,!1),x(G,n.ghostClass,!0),Ve.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fe){this._lastX=fe.clientX,this._lastY=fe.clientY,De();for(var e=document.elementFromPoint(fe.clientX,fe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fe.clientX,fe.clientY))!==t;)t=e;if(G.parentNode[F]._isOutsideThisEl(e),t)do{if(t[F]&&t[F]._onDragOver({clientX:fe.clientX,clientY:fe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=O(t));Ie()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=J&&k(J,!0),a=J&&i&&i.a,s=J&&i&&i.d,l=Ee&&be&&M(be),c=(o.clientX-de.clientX+r.x)/(a||1)+(l?l[0]-Ce[0]:0)/(a||1),u=(o.clientY-de.clientY+r.y)/(s||1)+(l?l[1]-Ce[1]:0)/(s||1);if(!Ve.active&&!we){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,i,this)&&!g.animated){if(g===G)return V(!1);if(g&&a===e.target&&(s=g),s&&(n=Q(s)),!1!==Ue(ee,a,G,t,s,n,e,!!s))return L(),g&&g.nextSibling?a.insertBefore(G,g.nextSibling):a.appendChild(G),K=a,H(),V(!0)}else if(g&&function(e,t,n){var r=Q(E(n.el,0,n.options,!0)),o=U(n.el,n.options,J);return t?e.clientXu+c*i/2:ld-Oe)return-ye}else if(l>u+c*(1-o)/2&&ld-c*i/2)?l>u+c/2?1:-1:0}(e,s,n,i,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,ke,ve===s),0!==v){var M=$(G);do{M-=v,O=K.children[M]}while(O&&("none"===S(O,"display")||O===J))}if(0===v||O===s)return V(!1);ve=s,ye=v;var z=s.nextElementSibling,R=!1,D=Ue(ee,a,G,t,s,n,e,R=1===v);if(!1!==D)return 1!==D&&-1!==D||(R=1===D),Be=!0,setTimeout(He,30),L(),R&&!z?a.appendChild(G):s.parentNode.insertBefore(G,R?z:s),C&&I(C,0,B-C.scrollTop),K=G.parentNode,void 0===y||ke||(Oe=Math.abs(y-Q(s)[k])),H(),V(!0)}if(a.contains(G))return V(!1)}return!1}function N(l,c){Z(l,p,o({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:h,target:s,completed:V,onMove:function(n,r){return Ue(ee,a,G,t,n,Q(n),e,r)},changed:H},c))}function L(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function V(t){return N("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==h&&(x(G,ue?ue.options.ghostClass:u.options.ghostClass,!1),x(G,l.ghostClass,!0)),ue!==p&&p!==Ve.active?ue=p:p===Ve.active&&ue&&(ue=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===G&&!G.animated||s===a&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(G.parentNode[F]._isOutsideThisEl(e.target),!t&&Ne(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ae=$(G),le=$(G,l.draggable),Y({sortable:p,name:"change",toEl:a,newIndex:ae,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Ne),v(document,"mousemove",Ne),v(document,"touchmove",Ne)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=$(G),le=$(G,n.draggable),Z("drop",this,{evt:e}),K=G&&G.parentNode,ae=$(G),le=$(G,n.draggable),Ve.eventCanceled||(we=!1,ke=!1,Se=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),je(this.cloneId),je(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&S(document.body,"user-select",""),S(G,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(ee===K||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),G&&(this.nativeDraggable&&v(G,"dragend",this),Fe(G),G.style["will-change"]="",Ae&&!we&&x(G,ue?ue.options.ghostClass:this.options.ghostClass,!1),x(G,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==K?(ae>=0&&(Y({rootEl:K,name:"add",toEl:K,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"remove",toEl:K,originalEvent:e}),Y({rootEl:K,name:"sort",toEl:K,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"sort",toEl:K,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(Y({sortable:this,name:"update",toEl:K,originalEvent:e}),Y({sortable:this,name:"sort",toEl:K,originalEvent:e})),Ve.active&&(null!=ae&&-1!==ae||(ae=ie,le=se),Y({sortable:this,name:"end",toEl:K,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),ee=G=K=J=te=re=ne=oe=de=fe=Ae=ae=le=ie=se=ve=ye=ue=ce=Ve.dragged=Ve.ghost=Ve.clone=Ve.active=null,Qe.forEach((function(e){e.checked=!0})),Qe.length=he=pe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":G&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?Q(e):o}),V(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),At=!1,s.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!a)){var l=Q(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&(L(e,l),i.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),mt.length>1){var c=pt;o._showClone(t),o.options.animation&&!pt&&c&>.forEach((function(e){o.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=s({},t);var o=k(ft,!0);ht.top-=o.f,ht.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(ft,c.selectedClass,!~mt.indexOf(ft)),~mt.indexOf(ft))mt.splice(mt.indexOf(ft),1),ut=null,j({sortable:o,rootEl:n,name:"deselect",targetEl:ft,originalEvent:t});else{if(mt.push(ft),j({sortable:o,rootEl:n,name:"select",targetEl:ft,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var d=$(ut),f=$(ft);~d&&~f&&d!==f&&function(){var e,i;f>d?(i=d,e=f):(i=f,e=d+1);for(var a=c.filter;i1){var h=Q(ft),p=$(ft,":not(."+this.options.selectedClass+")");if(!At&&c.animation&&(ft.thisAnimationDuration=null),l.captureAnimationState(),!At&&(c.animation&&(ft.fromRect=h,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ft){var t=vt?Q(e):h;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),wt(),mt.forEach((function(e){u[p]?r.insertBefore(e,u[p]):r.appendChild(e),p++})),a===$(ft))){var m=!1;mt.forEach((function(e){e.sortableIndex===$(e)||(m=!0)})),m&&(i("update"),i("sort"))}mt.forEach((function(e){V(e)})),l.animateAll()}dt=l}(n===r||s&&"clone"!==s.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&b(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];x(t,this.options.selectedClass,!1),mt.shift(),j({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[F];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),x(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[F],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==ft?-1:vt?$(e,":not(."+t.options.selectedClass+")"):$(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function wt(){mt.forEach((function(e){e!==ft&&e.parentNode&&e.parentNode.removeChild(e)}))}Ve.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):t.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(w),w=void 0},nulling:function(){Ke=Ze=qe=tt=Je=Ye=Ge=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(Ke=e,t||this.options.forceAutoScrollFallback||d||u||h){it(e,this.options,i,t);var a=z(i,!0);!tt||Je&&r===Ye&&o===Ge||(Je&&rt(),Je=setInterval((function(){var i=z(document.elementFromPoint(r,o),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ye=r,Ge=o)}else{if(!this.options.bubbleScroll||z(i,!0)===B())return void nt();it(e,this.options,z(i,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Ve.mount(lt,st),t.default=Ve},10350:function(e,t,n){"use strict";var r=n(43724),o=n(39297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},10757:function(e,t,n){"use strict";var r=n(97751),o=n(94901),i=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},10810:function(e,t,n){"use strict";n.d(t,{Ey:function(){return v},nY:function(){return Q}});var r=n(12189);let o;const i=e=>o=e,a=Symbol();function s(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var l;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(l||(l={}));const c="undefined"!=typeof window,u=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function d(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){g(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function f(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const p="object"==typeof navigator?navigator:{userAgent:""},m=(()=>/Macintosh/.test(p.userAgent)&&/AppleWebKit/.test(p.userAgent)&&!/Safari/.test(p.userAgent))(),g=c?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!m?function(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin!==location.origin?f(r.href)?d(e,t,n):(r.target="_blank",h(r)):h(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){h(r)}),0))}:"msSaveOrOpenBlob"in p?function(e,t="download",n){if("string"==typeof e)if(f(e))d(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){h(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return d(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(u.HTMLElement))||"safari"in u,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||m)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{},{assign:A}=Object;function v(){const e=(0,r.uYQ)(!0),t=e.run((()=>(0,r.KRz)({})));let n=[],o=[];const s=(0,r.IGZ)({install(e){i(s),r.LER||(s._a=e,e.provide(a,s),e.config.globalProperties.$pinia=s,o.forEach((e=>n.push(e))),o=[])},use(e){return this._a||r.LER?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const y=()=>{};function O(e,t,n,o=y){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&(0,r.o55)()&&(0,r.jr2)(i),i}function b(e,...t){e.slice().forEach((e=>{e(...t)}))}const w=e=>e(),_=Symbol(),x=Symbol();function S(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,n)=>e.set(n,t))):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],i=e[n];s(i)&&s(o)&&e.hasOwnProperty(n)&&!(0,r.i9z)(o)&&!(0,r.g8q)(o)?e[n]=S(i,o):e[n]=o}return e}const k=Symbol(),{assign:C}=Object;function B(e,t,n={},o,a,c){let u;const d=C({actions:{}},n),f={deep:!0};let h,p,m,g=[],A=[];const v=o.state.value[e];let B;function Q(t){let n;h=p=!1,"function"==typeof t?(t(o.state.value[e]),n={type:l.patchFunction,storeId:e,events:m}):(S(o.state.value[e],t),n={type:l.patchObject,payload:t,storeId:e,events:m});const i=B=Symbol();(0,r.dYV)().then((()=>{B===i&&(h=!0)})),p=!0,b(g,n,o.state.value[e])}c||v||(r.LER?(0,r.hZp)(o.state.value,e,{}):o.state.value[e]={}),(0,r.KRz)({});const T=c?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{C(e,t)}))}:y,E=(t,n="")=>{if(_ in t)return t[x]=n,t;const r=function(){i(o);const n=Array.from(arguments),a=[],s=[];let l;b(A,{args:n,name:r[x],store:$,after:function(e){a.push(e)},onError:function(e){s.push(e)}});try{l=t.apply(this&&this.$id===e?this:$,n)}catch(e){throw b(s,e),e}return l instanceof Promise?l.then((e=>(b(a,e),e))).catch((e=>(b(s,e),Promise.reject(e)))):(b(a,l),l)};return r[_]=!0,r[x]=n,r},P={_p:o,$id:e,$onAction:O.bind(null,A),$patch:Q,$reset:T,$subscribe(t,n={}){const i=O(g,t,n.detached,(()=>a())),a=u.run((()=>(0,r.wBe)((()=>o.state.value[e]),(r=>{("sync"===n.flush?p:h)&&t({storeId:e,type:l.direct,events:m},r)}),C({},f,n))));return i},$dispose:function(){u.stop(),g=[],A=[],o._s.delete(e)}};r.LER&&(P._r=!1);const $=(0,r.Kh)(P);o._s.set(e,$);const M=(o._a&&o._a.runWithContext||w)((()=>o._e.run((()=>(u=(0,r.uYQ)()).run((()=>t({action:E})))))));for(const t in M){const n=M[t];if((0,r.i9z)(n)&&(R=n,!(0,r.i9z)(R)||!R.effect)||(0,r.g8q)(n))c||(!v||s(z=n)&&z.hasOwnProperty(k)||((0,r.i9z)(n)?n.value=v[t]:S(n,v[t])),r.LER?(0,r.hZp)(o.state.value[e],t,n):o.state.value[e][t]=n);else if("function"==typeof n){const e=E(n,t);r.LER?(0,r.hZp)(M,t,e):M[t]=e,d.actions[t]=n}}var z,R;return r.LER?Object.keys(M).forEach((e=>{(0,r.hZp)($,e,M[e])})):(C($,M),C((0,r.uxp)($),M)),Object.defineProperty($,"$state",{get:()=>o.state.value[e],set:e=>{Q((t=>{C(t,e)}))}}),r.LER&&($._r=!0),o._p.forEach((e=>{C($,u.run((()=>e({store:$,app:o._a,pinia:o,options:d}))))})),v&&c&&n.hydrate&&n.hydrate($.$state,v),h=!0,p=!0,$}function Q(e,t,n){let s,l;const c="function"==typeof t;function u(e,n){const u=(0,r.PSC)();return(e=e||(u?(0,r.WQX)(a,null):null))&&i(e),(e=o)._s.has(s)||(c?B(s,t,l,e):function(e,t,n){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let c;c=B(e,(function(){l||(r.LER?(0,r.hZp)(n.state.value,e,o?o():{}):n.state.value[e]=o?o():{});const t=(0,r.QWb)(n.state.value[e]);return C(t,a,Object.keys(s||{}).reduce(((t,o)=>(t[o]=(0,r.IGZ)((0,r.EWP)((()=>{i(n);const t=n._s.get(e);if(!r.LER||t._r)return s[o].call(t,t)}))),t)),{}))}),t,n,0,!0)}(s,l,e)),e._s.get(s)}return"string"==typeof e?(s=e,l=c?n:t):(l=e,s=e.id),u.$id=s,u}},10813:function(){!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("textcolor",(function(){}))}()},10906:function(e,t,n){var r=n(73971),o=n(98594)(r);e.exports=o},10992:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(15215),o=n(5070),i=n(14865),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(e){function t(t){return e.call(this,t)||this}return(0,r.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n,r,o,a;if(this.subPixelOptimize){var l=(0,i.Op)(s,t,this.style);n=l.x,r=l.y,o=l.width,a=l.height,l.r=t.r,t=l}else n=t.x,r=t.y,o=t.width,a=t.height;t.r?function(e,t){var n,r,o,i,a,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"==typeof d?n=r=o=i=d:d instanceof Array?1===d.length?n=r=o=i=d[0]:2===d.length?(n=o=d[0],r=i=d[1]):3===d.length?(n=d[0],r=i=d[1],o=d[2]):(n=d[0],r=d[1],o=d[2],i=d[3]):n=r=o=i=0,n+r>c&&(n*=c/(a=n+r),r*=c/a),o+i>c&&(o*=c/(a=o+i),i*=c/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),n+i>u&&(n*=u/(a=n+i),i*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-o),0!==o&&e.arc(s+c-o,l+u-o,o,0,Math.PI/2),e.lineTo(s+i,l+u),0!==i&&e.arc(s+i,l+u-i,i,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,o,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(o.Ay);l.prototype.type="rect";var c=l},11203:function(e,t,n){n(96168)},11310:function(e,t,n){n(87187)},11793:function(e,t){"use strict";var n=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t.A=n},12116:function(e){e.exports=function(e,t,n){var r=null,o=null,i=n||{},a=!1,s=null,l=!("leading"in i)||i.leading,c="trailing"in i&&i.trailing,u=function(){r=null,o=null},d=function(){a=!0,e.apply(o,r),s=setTimeout(f,t),u()},f=function(){s=null,a||!0!==c||d()},h=function(){r=arguments,o=this,a=!1,null===s&&(!0===l?d():!0===c&&(s=setTimeout(f,t)))};return h.cancel=function(){var e=null!==s;return e&&clearTimeout(s),u(),s=null,a=!1,e},h}},12189:function(e,t,n){"use strict";n.d(t,{EWP:function(){return r.computed},IGZ:function(){return r.markRaw},IJ:function(){return r.shallowRef},KRz:function(){return r.ref},Kh:function(){return r.reactive},LER:function(){return o},PSC:function(){return r.hasInjectionContext},QWb:function(){return r.toRefs},R1X:function(){return r.unref},Sg5:function(){return i},WQX:function(){return r.inject},dYV:function(){return r.nextTick},g8q:function(){return r.isReactive},hZp:function(){return a},i9z:function(){return r.isRef},jr2:function(){return r.onScopeDispose},nIK:function(){return r.getCurrentInstance},nTw:function(){return r.watchEffect},o55:function(){return r.getCurrentScope},rYL:function(){return r.customRef},sV8:function(){return r.onMounted},tBZ:function(){return r.readonly},uYQ:function(){return r.effectScope},uxp:function(){return r.toRaw},wBe:function(){return r.watch}});var r=n(61431),o=!1,i=!0;function a(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}},12191:function(e,t,n){"use strict";n.d(t,{OD:function(){return s},SR:function(){return a},xA:function(){return c}});var r=n(60501),o=n(59741),i=new r.Ay(50);function a(e){if("string"==typeof e){var t=i.get(e);return t&&t.image}return e}function s(e,t,n,r,a){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=i.get(e),u={hostEl:n,cb:r,cbPayload:a};return s?!c(t=s.image)&&s.pending.push(u):((t=o.yh.loadImage(e,l,l)).__zrImageSrc=e,i.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;te instanceof MouseEvent},u=(0,r.defineComponent)({name:"ElOverlay",props:l,emits:c,setup(e,{slots:t,emit:n}){const a=(0,s.DU)("overlay"),{onClick:l,onMousedown:c,onMouseup:u}=(0,o.r)(e.customMaskEvent?void 0:e=>{n("click",e)});return()=>e.mask?(0,r.createVNode)("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:c,onMouseup:u},[(0,r.renderSlot)(t,"default")],i.Yn.STYLE|i.Yn.CLASS|i.Yn.PROPS,["onClick","onMouseup","onMousedown"]):(0,r.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,r.renderSlot)(t,"default")])}})},12407:function(e,t,n){var r=n(86075)("indexOf",n(18346));e.exports=r},12462:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()},12616:function(e,t,n){"use strict";n.d(t,{$Q:function(){return a},A6:function(){return s},G_:function(){return c},vf:function(){return l}});var r=n(98026),o=n(30693),i=Math.round(10*Math.random());function a(e){return[e||"",i++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=(0,o.CC)(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=(0,o.CC)(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function l(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,o,i,a){if(e.length){var s=function(e){var o={},i=[];return r.each(e,(function(a){var s=n(o,a),l=function(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(a),e);s.entryCount=l.length,0===s.entryCount&&i.push(a),r.each(l,(function(e){r.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(o,e);r.indexOf(t.successor,e)<0&&t.successor.push(a)}))})),{graph:o,noEntryList:i}}(o),l=s.graph,c=s.noEntryList,u={};for(r.each(e,(function(e){u[e]=!0}));c.length;){var d=c.pop(),f=l[d],h=!!u[d];h&&(i.call(a,d,f.originalDeps.slice()),delete u[d]),r.each(f.successor,h?m:p)}r.each(u,(function(){throw new Error("")}))}function p(e){l[e].entryCount--,0===l[e].entryCount&&c.push(e)}function m(e){u[e]=!0,p(e)}}}function c(e,t){return r.merge(r.merge({},e,!0),t,!0)}},12706:function(e,t,n){"use strict";var r=n(15215),o=n(24326),i=n(55854),a=n(67071),s=n(74562),l=n(28613),c=n(98026),u=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return(0,r.C6)(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return(0,i.GP)(e.value,i.Lm[(0,i.$9)((0,i.ym)(this._minLevelUnit))]||i.Lm.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),o=this.getSetting("locale");return(0,i.X_)(e,t,n,o,r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),a=function(e,t,n,r){var a=i.F7,s=0;function l(e,t,n,o,i,a,s){for(var l=new Date(t),c=t,u=l[o]();c1&&0===d&&s.unshift({value:s[0].value-O})}}for(d=0;d=r[0]&&S<=r[1]&&y++)}var k=(r[1]-r[0])/t;if(y>1.5*k&&O>k/1.5)break;if(d.push(_),y>k||e===a[b])break}v=[]}}var C=(0,c.filter)((0,c.map)(d,(function(e){return(0,c.filter)(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),B=[],Q=C.length-1;for(b=0;bn&&(this._approxInterval=n);var i=d.length,a=Math.min(function(e,t,n,r){for(;n>>1;e[o][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function h(e){return(e/=30*i.CZ)>6?6:e>3?3:e>2?2:1}function p(e){return(e/=i.MA)>12?12:e>6?6:e>3.5?4:e>2?2:1}function m(e,t){return(e/=t?i.iW:i.OY)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function g(e){return o.Cm(e,!0)}function A(e,t,n){var r=new Date(e);switch((0,i.ym)(t)){case"year":case"month":r[(0,i.xu)(n)](0);case"day":r[(0,i.ti)(n)](1);case"hour":r[(0,i.Yd)(n)](0);case"minute":r[(0,i.KF)(n)](0);case"second":r[(0,i.ww)(n)](0),r[(0,i.FP)(n)](0)}return r.getTime()}l.A.registerClass(u),t.A=u},12897:function(e,t,n){e.exports=function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};function t(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var r=t((function(e,t){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){return r&&!0===r.clone&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,s){void 0===a[s]?a[s]=n(r,o):e(r)?a[s]=i(t[s],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=i(t[s],r[s],o):a[s]=n(r[s],o)})),a}function i(e,t,i){var a=Array.isArray(t),s=(i||{arrayMerge:r}).arrayMerge||r;return a?Array.isArray(e)?s(e,t,i):n(t,i):o(e,t,i)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return i(e,n,t)}))},i}()})),o=t((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),i=o.svg,a=o.xlink,s={};s[i.name]=i.uri,s[a.name]=a.uri;var l=function(e,t){return void 0===e&&(e=""),""+e+""},c=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e);return c}()},12983:function(){tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}})},13286:function(e,t,n){"use strict";var r=n(98026),o={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},i=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),a=r.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},o),s=r.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),l=r.defaults({logBase:10},a);t.A={category:i,value:a,time:s,log:l}},13369:function(e,t,n){var r=n(40481);e.exports=function(e){return e&&e.trimLeft?e.trimLeft():r(e).replace(/^[\s\uFEFF\xA0]+/g,"")}},13430:function(e,t,n){"use strict";n.d(t,{Km:function(){return i},Pe:function(){return r},Wk:function(){return a},XO:function(){return l},i_:function(){return u},mK:function(){return o},oC:function(){return d},t1:function(){return s},vm:function(){return c}});var r=(0,n(98026).createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",i="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",c="unknown",u="column",d="row"},13550:function(){!function(){"use strict";var e,t,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(e){return function(){return e}},o=r(!1),i=r(!0),a=function(){return s},s={fold:function(e,t){return e()},isSome:o,isNone:i,getOr:t=function(e){return e},getOrThunk:e=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:t,orThunk:e,map:a,each:function(){},bind:a,exists:o,forall:i,filter:function(){return a()},toArray:function(){return[]},toString:r("none()")},l=function(e){var t=r(e),n=function(){return c},a=function(t){return t(e)},c={fold:function(t,n){return n(e)},isSome:i,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return l(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?c:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return c},c={some:l,none:a,from:function(e){return null==e?s:l(e)}},u=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),d=function(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")},f=function(e){return function(t,n){return e(n)}},h="undefined"!=typeof window?window:Function("return this;")(),p={},m={exports:p},g={};!function(e,t,n){var r=window.Prism;window.Prism={manual:!0},function(e,r){"object"==typeof t&&void 0!==n?n.exports=r():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=r()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:g,t={exports:{}};return function(t){var n=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);_+=w.value.length,w=w.next){var x=w.value;if(t.length>e.length)return;if(!(x instanceof i)){var S,k=1;if(v){if(!(S=a(b,_,e,A)))break;var C=S.index,B=S.index+S[0].length,Q=_;for(Q+=w.value.length;C>=Q;)Q+=(w=w.next).value.length;if(_=Q-=w.value.length,w.value instanceof i)continue;for(var T=w;T!==t.tail&&(Qd.reach&&(d.reach=M);var z=w.prev;if(P&&(z=c(t,z,P),_+=P.length),u(t,z,k),w=c(t,z,new i(f,g?o.tokenize(E,g):E,y,E)),$&&c(t,w,$),k>1){var R={cause:f+","+p,reach:M};s(e,t,n,w.prev,_,R),d&&R.reach>d.reach&&(d.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n)}(t),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var l=0;l=i.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[o],d=n.tokenStack[u],f="string"==typeof c?c:c.content,h=t(r,u),p=f.indexOf(h);if(p>-1){++o;var m=f.substring(0,p),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),A=f.substring(p+h.length),v=[];m&&v.push.apply(v,a([m])),v.push(g),A&&v.push.apply(v,a([A])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),u=RegExp(l(o+" "+i+" "+a+" "+s)),d=l(i+" "+a+" "+s),f=l(o+" "+i+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=r(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),A=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[A,v]),O=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,v]),b=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[O]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[b,A,v]),_={keyword:u,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[A]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,w]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:_},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[A]),lookbehind:!0,inside:_},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,f,m]),inside:_}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,A]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:_}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,m,w,u.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var C=S+"|"+x,B=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),Q=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,E=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[A,Q]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,E]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Q]),inside:e.languages.csharp},"class-name":{pattern:RegExp(A),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,$=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,P]),z=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,P]);function D(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:D(M,$)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:D(R,z)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),{boltExport:t.exports}}));window.Prism;window.Prism=r}(0,p,m);var A=m.exports.boltExport,v=function(e){return h.Prism&&function(e){return e.getParam("codesample_global_prismjs",!1,"boolean")}(e)?h.Prism:A},y=function(e){var t,n=e.selection?e.selection.getNode():null;return t=n,d(n)?c.some(t):c.none()},O=function(e){var t,n=function(e){var t=function(e){return e.getParam("codesample_languages")}(e);return t||[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}]}(e),o=(t=n,function(e){return 0'+n+""),e.selection.select(e.$("#__new").removeAttr("id")[0])}),(function(r){e.dom.setAttrib(r,"class","language-"+t),r.innerHTML=n,v(e).highlightElement(r),e.selection.select(r)}))}))}(e,n.language,n.code),t.close()}})};n.add("codesample",(function(e){!function(e){var t=e.$;e.on("PreProcess",(function(e){t("pre[contenteditable=false]",e.node).filter(f(d)).each((function(e,n){var r=t(n),o=n.textContent;r.attr("class",t.trim(r.attr("class"))),r.removeAttr("contentEditable"),r.empty().append(t("").each((function(){this.textContent=o})))}))})),e.on("SetContent",(function(){var n=t("pre").filter(f(d)).filter((function(e,t){return"false"!==t.contentEditable}));n.length&&e.undoManager.transact((function(){n.each((function(n,r){t(r).find("br").each((function(t,n){n.parentNode.replaceChild(e.getDoc().createTextNode("\n"),n)})),r.contentEditable="false",r.innerHTML=e.dom.encode(r.textContent),v(e).highlightElement(r),r.className=t.trim(r.className)}))}))}))}(e),function(e){var t=function(){return e.execCommand("codesample")};e.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:t,onSetup:function(t){var n=function(){t.setActive(function(e){var t=e.selection.getStart();return e.dom.is(t,'pre[class*="language-"]')}(e))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}}),e.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:t})}(e),function(e){e.addCommand("codesample",(function(){var t=e.selection.getNode();e.selection.isCollapsed()||d(t)?O(e):e.formatter.toggle("code")}))}(e),e.on("dblclick",(function(t){d(t.target)&&O(e)}))}))}()},13579:function(e,t,n){"use strict";var r=n(46518),o=n(72652),i=n(79306),a=n(28551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),i(e);var t=s(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13588:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(76912),o=n(241),i=n(52274),a=n(92049),s=o.A?o.A.isConcatSpreadable:void 0,l=function(e){return(0,a.A)(e)||(0,i.A)(e)||!!(s&&e&&e[s])},c=function e(t,n,o,i,a){var s=-1,c=t.length;for(o||(o=l),a||(a=[]);++s0&&o(u)?n>1?e(u,n-1,o,i,a):(0,r.A)(a,u):i||(a[a.length]=u)}return a}},13702:function(e,t,n){var r=n(79135);e.exports=function(e,t,n,o){if(r(e)&&e.copyWithin)return e.copyWithin(t,n,o);var i,a,s=0|t,l=0|n,c=e.length,u=arguments.length>3?0|o:c;if(s=0?s:c+s)>=0&&(l=l>=0?l:c+l)<(u=u>=0?u:c+u))for(i=0,a=e.slice(l,u);s6}(e)||a){if(s&&!a){"single"===l.brushMode&&E(e);var c=(0,o.clone)(l);c.brushType=q(c.brushType,s),c.panelId=s===h?null:s.panelId,a=e._creatingCover=_(e,c),e._covers.push(a)}if(a){var u=G[q(e._brushType,s)];a.__brushOption.range=u.getCreatingRange(H(e,a,e._track)),r&&(x(e,a),u.updateCommon(e,a)),S(e,a),i={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&Q(e,t,n)&&E(e)&&(i={isEnd:r,removeOnClick:!0});return i}function q(e,t){return"auto"===e?t.defaultBrushType:e}var Z={mousedown:function(e){if(this._dragging)Y(this,e);else if(!e.target||!e.target.draggable){W(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Q(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,o=e._covers,i=Q(e,t,n);if(!e._dragging)for(var a=0;at+u&&c>o+u&&c>a+u||ce+u&&l>n+u&&l>i+u||l{const t=(0,r.getCurrentInstance)()?(0,r.inject)(u,s):s,n=e||((0,r.getCurrentInstance)()?(0,r.inject)(d,void 0):void 0),f=(0,r.computed)((()=>{const e=(0,r.unref)(n);return(0,o.Et)(e)?e:c})),h=(0,r.computed)((()=>f.value+l.value));return i.oc||(0,r.inject)(u)||(0,a.U)("ZIndexInjection","Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"),{initialZIndex:f,currentZIndex:h,nextZIndex:()=>(t.current++,l.value=t.current,h.value)}}},14865:function(e,t,n){"use strict";n.d(t,{M7:function(){return a},Op:function(){return i},eB:function(){return o}});var r=Math.round;function o(e,t,n){if(t){var o=t.x1,i=t.x2,s=t.y1,l=t.y2;e.x1=o,e.x2=i,e.y1=s,e.y2=l;var c=n&&n.lineWidth;return c?(r(2*o)===r(2*i)&&(e.x1=e.x2=a(o,c,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=a(s,c,!0)),e):e}}function i(e,t,n){if(t){var r=t.x,o=t.y,i=t.width,s=t.height;e.x=r,e.y=o,e.width=i,e.height=s;var l=n&&n.lineWidth;return l?(e.x=a(r,l,!0),e.y=a(o,l,!0),e.width=Math.max(a(r+i,l,!1)-e.x,0===i?0:1),e.height=Math.max(a(o+s,l,!1)-e.y,0===s?0:1),e):e}}function a(e,t,n){if(!t)return e;var o=r(2*e);return(o+r(t))%2==0?o/2:(o+(n?1:-1))/2}},14962:function(e,t,n){"use strict";n.d(t,{L:function(){return o},s:function(){return a}});var r=n(32944),o=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],i=(0,r.A)(o),a=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return i(this,e,t)},e}()},15024:function(e,t,n){"use strict";var r=n(46518),o=n(83650);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")},{symmetricDifference:o})},15135:function(e,t,n){"use strict";var r=n(98026),o=0,i=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++o}return e.createByAxisModel=function(t){var n=t.option,o=n.data,i=o&&(0,r.map)(o,a);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!(0,r.isString)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return null==(t=o.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,r.createHashMap)(this.categories))},e}();function a(e){return(0,r.isObject)(e)&&null!=e.value?e.value:e+""}t.A=i},15215:function(e,t,n){"use strict";n.d(t,{C6:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create,Object.create},15367:function(e,t,n){"use strict";n.d(t,{Hg:function(){return F}});var r=n(48820),o=n(43720);const i=10,a=new Set([25,49,50,263,65,130,56,57,238,62,63,72,73,77,60,61,151,152,155,112]);function s(e){return e==i||13==e}function l(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const c=new r.Lu(((e,t)=>{let n;if(e.next<0)e.acceptToken(199);else if(t.context.flags&d)s(e.next)&&e.acceptToken(198,1);else if(((n=e.peek(-1))<0||s(n))&&t.canShift(197)){let t=0;for(;32==e.next||9==e.next;)e.advance(),t++;e.next!=i&&13!=e.next&&35!=e.next||e.acceptToken(197,-t)}else s(e.next)&&e.acceptToken(196,1)}),{contextual:!0}),u=new r.Lu(((e,t)=>{let n=t.context;if(n.flags)return;let r=e.peek(-1);if(r==i||13==r){let t=0,r=0;for(;;){if(32==e.next)t++;else{if(9!=e.next)break;t+=8-t%8}e.advance(),r++}t!=n.indent&&e.next!=i&&13!=e.next&&35!=e.next&&(t[e,2|t]))),y=new r.Aj({start:A,reduce(e,t,n,r){return e.flags&d&&a.has(t)||(71==t||72==t)&&2&e.flags?e.parent:e},shift(e,t,n,r){return 194==t?new g(e,function(e){let t=0;for(let n=0;n{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(32!=n&&9!=n)return void(40!=n&&46!=n&&n!=i&&13!=n&&35!=n&&e.acceptToken(1))}})),b=new r.Lu(((e,t)=>{let{flags:n}=t.context,r=n&f?34:39,o=(n&h)>0,a=!(n&p),s=(n&m)>0,l=e.pos;for(;!(e.next<0);)if(s&&123==e.next){if(123!=e.peek(1)){if(e.pos==l)return void e.acceptToken(3,1);break}e.advance(2)}else{if(a&&92==e.next){if(e.pos==l){e.advance();let t=e.next;return t>=0&&(e.advance(),w(e,t)),void e.acceptToken(2)}break}if(e.next==r&&(!o||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==l)return void e.acceptToken(201,o?3:1);break}if(e.next==i){if(o)e.advance();else if(e.pos==l)return void e.acceptToken(201);break}e.advance()}e.pos>l&&e.acceptToken(200)}));function w(e,t){if(111==t)for(let t=0;t<2&&e.next>=48&&e.next<=55;t++)e.advance();else if(120==t)for(let t=0;t<2&&l(e.next);t++)e.advance();else if(117==t)for(let t=0;t<4&&l(e.next);t++)e.advance();else if(85==t)for(let t=0;t<8&&l(e.next);t++)e.advance();else if(78==t&&123==e.next){for(e.advance();e.next>=0&&125!=e.next&&39!=e.next&&34!=e.next&&e.next!=i;)e.advance();125==e.next&&e.advance()}}const _=(0,o.pn)({'async "*" "**" FormatConversion FormatSpec':o._A.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":o._A.controlKeyword,"in not and or is del":o._A.operatorKeyword,"from def class global nonlocal lambda":o._A.definitionKeyword,import:o._A.moduleKeyword,"with as print":o._A.keyword,Boolean:o._A.bool,None:o._A.null,VariableName:o._A.variableName,"CallExpression/VariableName":o._A.function(o._A.variableName),"FunctionDefinition/VariableName":o._A.function(o._A.definition(o._A.variableName)),"ClassDefinition/VariableName":o._A.definition(o._A.className),PropertyName:o._A.propertyName,"CallExpression/MemberExpression/PropertyName":o._A.function(o._A.propertyName),Comment:o._A.lineComment,Number:o._A.number,String:o._A.string,FormatString:o._A.special(o._A.string),Escape:o._A.escape,UpdateOp:o._A.updateOperator,"ArithOp!":o._A.arithmeticOperator,BitOp:o._A.bitwiseOperator,CompareOp:o._A.compareOperator,AssignOp:o._A.definitionOperator,Ellipsis:o._A.punctuation,At:o._A.meta,"( )":o._A.paren,"[ ]":o._A.squareBracket,"{ }":o._A.brace,".":o._A.derefOperator,", ;":o._A.separator}),x={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},S=r.U1.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO'#DoOOQS,5:Y,5:YO5hQdO'#HdOOQS,5:],5:]O5uQ!fO,5:]O5zQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8jQdO,59bO8oQdO,59bO8vQdO,59jO8}QdO'#HTO:TQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:lQdO,59aO'vQdO,59aO:zQdO,59aOOQS,59y,59yO;PQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;_QdO,5:QO;dQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;uQdO,5:UO;zQdO,5:WOOOW'#Fy'#FyOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!/[QtO1G.|O!/cQtO1G.|O1lQdO1G.|O!0OQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!0VQdO1G/eO!0gQdO1G/eO!0oQdO1G/fO'vQdO'#H[O!0tQdO'#H[O!0yQtO1G.{O!1ZQdO,59iO!2aQdO,5=zO!2qQdO,5=zO!2yQdO1G/mO!3OQtO1G/mOOQS1G/l1G/lO!3`QdO,5=uO!4VQdO,5=uO0rQdO1G/qO!4tQdO1G/sO!4yQtO1G/sO!5ZQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!5kQdO'#HxO0rQdO'#HxO!5|QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!6[Q#xO1G2zO!6{QtO1G2zO'vQdO,5kOOQS1G1`1G1`O!8RQdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!8WQdO'#FrO!8cQdO,59oO!8kQdO1G/XO!8uQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!9fQdO'#GtOOQS,5jO!;ZQdO,5>jO1XQdO,5>jO!;lQdO,5>iOOQS-E:R-E:RO!;qQdO1G0lO!;|QdO1G0lO!lO!lO!hO!=VQdO,5>hO!=hQdO'#EpO0rQdO1G0tO!=sQdO1G0tO!=xQgO1G0zO!AvQgO1G0}O!EqQdO,5>oO!E{QdO,5>oO!FTQtO,5>oO0rQdO1G1PO!F_QdO1G1PO4iQdO1G1UO!!vQdO1G1WOOQV,5;a,5;aO!FdQfO,5;aO!FiQgO1G1QO!JjQdO'#GZO4iQdO1G1QO4iQdO1G1QO!JzQdO,5>pO!KXQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!KaQdO'#FSO!KrQ!fO1G1WO!KzQdO1G1WOOQV1G1]1G1]O4iQdO1G1]O!LPQdO1G1]O!LXQdO'#F^OOQV1G1b1G1bO!#ZQtO1G1bPOOO1G2v1G2vP!L^OSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!LfQdO,5=|O!LyQdO,5=|OOQS1G/u1G/uO!MRQdO,5>PO!McQdO,5>PO!MkQdO,5>PO!NOQdO,5>PO!N`QdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!8kQdO7+$pO#!RQdO1G.|O#!YQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO#!aQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO#!qQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO#!vQdO7+%PO##OQdO7+%QO##TQdO1G3fOOQS7+%X7+%XO##eQdO1G3fO##mQdO7+%XOOQS,5<_,5<_O'vQdO,5<_O##rQdO1G3aOOQS-E9q-E9qO#$iQdO7+%]OOQS7+%_7+%_O#$wQdO1G3aO#%fQdO7+%_O#%kQdO1G3gO#%{QdO1G3gO#&TQdO7+%]O#&YQdO,5>dO#&sQdO,5>dO#&sQdO,5>dOOQS'#Dx'#DxO#'UO&jO'#DzO#'aO`O'#HyOOOW1G3}1G3}O#'fQdO1G3}O#'nQdO1G3}O#'yQ#xO7+(fO#(jQtO1G2UP#)TQdO'#GOOOQS,5nQdO,5sQdO1G4OOOQS-E9y-E9yO#?^QdO1G4OO<[QdO'#H{OOOO'#D{'#D{OOOO'#F|'#F|O#?oO&jO,5:fOOOW,5>e,5>eOOOW7+)i7+)iO#?zQdO7+)iO#@SQdO1G2zO#@mQdO1G2zP'vQdO'#FuO0rQdO<mO#BQQdO,5>mOOQS1G0v1G0vOOQS<rO#KgQdO,5>rO#KrQdO,5>rO#K}QdO,5>qO#L`QdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO$ oQdO<cAN>cO0rQdO1G1|O$!PQtO1G1|P$!ZQdO'#FvOOQS1G2R1G2RP$!hQdO'#F{O$!uQdO7+)jO$#`QdO,5>gOOOO-E9z-E9zOOOW<tO$4{QdO,5>tO1XQdO,5vO$)nQdO,5>vOOQS1G1p1G1pO$8sQtO,5<[OOQU7+'P7+'PO$+zQdO1G/iO$)nQdO,5wO$9RQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$)nQdO'#GdO$9ZQdO1G4bO$9eQdO1G4bO$9mQdO1G4bOOQS7+%T7+%TO$9{QdO1G1tO$:ZQtO'#FaO$:bQdO,5<}OOQS,5<},5<}O$:pQdO1G4cOOQS-E:a-E:aO$)nQdO,5<|O$:wQdO,5<|O$:|QdO7+)|OOQS-E:`-E:`O$;WQdO7+)|O$)nQdO,5Z~O%cOS%^OSSOS%]PQ~OPdOVaOfoOhYOopOs!POvqO!PrO!Q{O!T!SO!U!RO!XZO!][O!h`O!r`O!s`O!t`O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#l!QO#o!TO#s!UO#u!VO#z!WO#}hO$P!XO%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~O%]!YO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%j![O%k!]O%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aO~Ok%xXl%xXm%xXn%xXo%xXp%xXs%xXz%xX{%xX!x%xX#g%xX%[%xX%_%xX%z%xXg%xX!T%xX!U%xX%{%xX!W%xX![%xX!Q%xX#[%xXt%xX!m%xX~P%SOfoOhYO!XZO!][O!h`O!r`O!s`O!t`O%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~Oz%wX{%wX#g%wX%[%wX%_%wX%z%wX~Ok!pOl!qOm!oOn!oOo!rOp!sOs!tO!x%wX~P)pOV!zOg!|Oo0cOv0qO!PrO~P'vOV#OOo0cOv0qO!W#PO~P'vOV#SOa#TOo0cOv0qO![#UO~P'vOQ#XO%`#XO%a#ZO~OQ#^OR#[O%`#^O%a#`O~OV%iX_%iXa%iXh%iXk%iXl%iXm%iXn%iXo%iXp%iXs%iXz%iX!X%iX!f%iX%j%iX%k%iX%l%iX%m%iX%n%iX%o%iX%p%iX%q%iX%r%iX%s%iXg%iX!T%iX!U%iX~O&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O{%iX!x%iX#g%iX%[%iX%_%iX%z%iX%{%iX!W%iX![%iX!Q%iX#[%iXt%iX!m%iX~P,eOz#dO{%hX!x%hX#g%hX%[%hX%_%hX%z%hX~Oo0cOv0qO~P'vO#g#gO%[#iO%_#iO~O%uWO~O!T#nO#u!VO#z!WO#}hO~OopO~P'vOV#sOa#tO%uWO{wP~OV#xOo0cOv0qO!Q#yO~P'vO{#{O!x$QO%z#|O#g!yX%[!yX%_!yX~OV#xOo0cOv0qO#g#SX%[#SX%_#SX~P'vOo0cOv0qO#g#WX%[#WX%_#WX~P'vOh$WO%uWO~O!f$YO!r$YO%uWO~OV$eO~P'vO!U$gO#s$hO#u$iO~O{$jO~OV$qO~P'vOS$sO%[$rO%_$rO%c$tO~OV$}Oa$}Og%POo0cOv0qO~P'vOo0cOv0qO{%SO~P'vO&Y%UO~Oa!bOh!iO!X!kO!f!mOVba_bakbalbambanbaobapbasbazba{ba!xba#gba%[ba%_ba%jba%kba%lba%mba%nba%oba%pba%qba%rba%sba%zbagba!Tba!Uba%{ba!Wba![ba!Qba#[batba!mba~On%ZO~Oo%ZO~P'vOo0cO~P'vOk0eOl0fOm0dOn0dOo0mOp0nOs0rOg%wX!T%wX!U%wX%{%wX!W%wX![%wX!Q%wX#[%wX!m%wX~P)pO%{%]Og%vXz%vX!T%vX!U%vX!W%vX{%vX~Og%_Oz%`O!T%dO!U%cO~Og%_O~Oz%gO!T%dO!U%cO!W&SX~O!W%kO~Oz%lO{%nO!T%dO!U%cO![%}X~O![%rO~O![%sO~OQ#XO%`#XO%a%uO~OV%wOo0cOv0qO!PrO~P'vOQ#^OR#[O%`#^O%a%zO~OV!qa_!qaa!qah!qak!qal!qam!qan!qao!qap!qas!qaz!qa{!qa!X!qa!f!qa!x!qa#g!qa%[!qa%_!qa%j!qa%k!qa%l!qa%m!qa%n!qa%o!qa%p!qa%q!qa%r!qa%s!qa%z!qag!qa!T!qa!U!qa%{!qa!W!qa![!qa!Q!qa#[!qat!qa!m!qa~P#yOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P%SOV&OOopOvqO{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P'vOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#g$zX%[$zX%_$zX~P'vO#g#gO%[&TO%_&TO~O!f&UOh&sX%[&sXz&sX#[&sX#g&sX%_&sX#Z&sXg&sX~Oh!iO%[&WO~Okealeameaneaoeapeaseazea{ea!xea#gea%[ea%_ea%zeagea!Tea!Uea%{ea!Wea![ea!Qea#[eatea!mea~P%SOsqazqa{qa#gqa%[qa%_qa%zqa~Ok!pOl!qOm!oOn!oOo!rOp!sO!xqa~PEcO%z&YOz%yX{%yX~O%uWOz%yX{%yX~Oz&]O{wX~O{&_O~Oz%lO#g%}X%[%}X%_%}Xg%}X{%}X![%}X!m%}X%z%}X~OV0lOo0cOv0qO!PrO~P'vO%z#|O#gUa%[Ua%_Ua~Oz&hO#g&PX%[&PX%_&PXn&PX~P%SOz&kO!Q&jO#g#Wa%[#Wa%_#Wa~Oz&lO#[&nO#g&rX%[&rX%_&rXg&rX~O!f$YO!r$YO#Z&qO%uWO~O#Z&qO~Oz&sO#g&tX%[&tX%_&tX~Oz&uO#g&pX%[&pX%_&pX{&pX~O!X&wO%z&xO~Oz&|On&wX~P%SOn'PO~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO%['UO~P'vOt'YO#p'WO#q'XOP#naV#naf#nah#nao#nas#nav#na!P#na!Q#na!T#na!U#na!X#na!]#na!h#na!r#na!s#na!t#na!{#na!}#na#P#na#R#na#T#na#X#na#Z#na#^#na#_#na#a#na#c#na#l#na#o#na#s#na#u#na#z#na#}#na$P#na%X#na%o#na%p#na%t#na%u#na&Z#na&[#na&]#na&^#na&_#na&`#na&a#na&b#na&c#na&d#na&e#na&f#na&g#na&h#na&i#na&j#na%Z#na%_#na~Oz'ZO#[']O{&xX~Oh'_O!X&wO~Oh!iO{$jO!X&wO~O{'eO~P%SO%['hO%_'hO~OS'iO%['hO%_'hO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%k!]O~P!#uO%kWi~P!#uOV!aO_!aOa!bOh!iO!X!kO!f!mO%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%m!_O%n!_O~P!&pO%mWi%nWi~P!&pOa!bOh!iO!X!kO!f!mOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%mWi%nWi%oWi%pWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~OV!aO_!aO%q!aO%r!aO%s!aO~P!)nOVWi_Wi%qWi%rWi%sWi~P!)nO!T%dO!U%cOg&VXz&VX~O%z'kO%{'kO~P,eOz'mOg&UX~Og'oO~Oz'pO{'rO!W&XX~Oo0cOv0qOz'pO{'sO!W&XX~P'vO!W'uO~Om!oOn!oOo!rOp!sOkjisjizji{ji!xji#gji%[ji%_ji%zji~Ol!qO~P!.aOlji~P!.aOk0eOl0fOm0dOn0dOo0mOp0nO~Ot'wO~P!/jOV'|Og'}Oo0cOv0qO~P'vOg'}Oz(OO~Og(QO~O!U(SO~Og(TOz(OO!T%dO!U%cO~P%SOk0eOl0fOm0dOn0dOo0mOp0nOgqa!Tqa!Uqa%{qa!Wqa![qa!Qqa#[qatqa!mqa~PEcOV'|Oo0cOv0qO!W&Sa~P'vOz(WO!W&Sa~O!W(XO~Oz(WO!T%dO!U%cO!W&Sa~P%SOV(]Oo0cOv0qO![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~P'vOz(^O![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~O![(aO~Oz(^O!T%dO!U%cO![%}a~P%SOz(dO!T%dO!U%cO![&Ta~P%SOz(gO{&lX![&lX!m&lX%z&lX~O{(kO![(mO!m(nO%z(jO~OV&OOopOvqO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~P'vOz(pO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~O!f&UOh&sa%[&saz&sa#[&sa#g&sa%_&sa#Z&sag&sa~O%[(uO~OV#sOa#tO%uWO~Oz&]O{wa~OopOvqO~P'vOz(^O#g%}a%[%}a%_%}ag%}a{%}a![%}a!m%}a%z%}a~P%SOz(zO#g%hX%[%hX%_%hX%z%hX~O%z#|O#gUi%[Ui%_Ui~O#g&Pa%[&Pa%_&Pan&Pa~P'vOz(}O#g&Pa%[&Pa%_&Pan&Pa~O%uWO#g&ra%[&ra%_&rag&ra~Oz)SO#g&ra%[&ra%_&rag&ra~Og)VO~OV)WOh$WO%uWO~O#Z)XO~O%uWO#g&ta%[&ta%_&ta~Oz)ZO#g&ta%[&ta%_&ta~Oo0cOv0qO#g&pa%[&pa%_&pa{&pa~P'vOz)^O#g&pa%[&pa%_&pa{&pa~OV)`Oa)`O%uWO~O%z)eO~Ot)hO#j)gOP#hiV#hif#hih#hio#his#hiv#hi!P#hi!Q#hi!T#hi!U#hi!X#hi!]#hi!h#hi!r#hi!s#hi!t#hi!{#hi!}#hi#P#hi#R#hi#T#hi#X#hi#Z#hi#^#hi#_#hi#a#hi#c#hi#l#hi#o#hi#s#hi#u#hi#z#hi#}#hi$P#hi%X#hi%o#hi%p#hi%t#hi%u#hi&Z#hi&[#hi&]#hi&^#hi&_#hi&`#hi&a#hi&b#hi&c#hi&d#hi&e#hi&f#hi&g#hi&h#hi&i#hi&j#hi%Z#hi%_#hi~Ot)iOP#kiV#kif#kih#kio#kis#kiv#ki!P#ki!Q#ki!T#ki!U#ki!X#ki!]#ki!h#ki!r#ki!s#ki!t#ki!{#ki!}#ki#P#ki#R#ki#T#ki#X#ki#Z#ki#^#ki#_#ki#a#ki#c#ki#l#ki#o#ki#s#ki#u#ki#z#ki#}#ki$P#ki%X#ki%o#ki%p#ki%t#ki%u#ki&Z#ki&[#ki&]#ki&^#ki&_#ki&`#ki&a#ki&b#ki&c#ki&d#ki&e#ki&f#ki&g#ki&h#ki&i#ki&j#ki%Z#ki%_#ki~OV)kOn&wa~P'vOz)lOn&wa~Oz)lOn&wa~P%SOn)pO~O%Y)tO~Ot)wO#p'WO#q)vOP#niV#nif#nih#nio#nis#niv#ni!P#ni!Q#ni!T#ni!U#ni!X#ni!]#ni!h#ni!r#ni!s#ni!t#ni!{#ni!}#ni#P#ni#R#ni#T#ni#X#ni#Z#ni#^#ni#_#ni#a#ni#c#ni#l#ni#o#ni#s#ni#u#ni#z#ni#}#ni$P#ni%X#ni%o#ni%p#ni%t#ni%u#ni&Z#ni&[#ni&]#ni&^#ni&_#ni&`#ni&a#ni&b#ni&c#ni&d#ni&e#ni&f#ni&g#ni&h#ni&i#ni&j#ni%Z#ni%_#ni~OV)zOo0cOv0qO{$jO~P'vOo0cOv0qO{&xa~P'vOz*OO{&xa~OV*SOa*TOg*WO%q*UO%uWO~O{$jO&{*YO~Oh'_O~Oh!iO{$jO~O%[*_O~O%[*aO%_*aO~OV$}Oa$}Oo0cOv0qOg&Ua~P'vOz*dOg&Ua~Oo0cOv0qO{*gO!W&Xa~P'vOz*hO!W&Xa~Oo0cOv0qOz*hO{*kO!W&Xa~P'vOo0cOv0qOz*hO!W&Xa~P'vOz*hO{*kO!W&Xa~Om0dOn0dOo0mOp0nOgjikjisjizji!Tji!Uji%{ji!Wji{ji![ji#gji%[ji%_ji!Qji#[jitji!mji%zji~Ol0fO~P!NkOlji~P!NkOV'|Og*pOo0cOv0qO~P'vOn*rO~Og*pOz*tO~Og*uO~OV'|Oo0cOv0qO!W&Si~P'vOz*vO!W&Si~O!W*wO~OV(]Oo0cOv0qO![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~P'vOz*zO!T%dO!U%cO![&Ti~Oz*}O![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~O![+OO~Oa+QOo0cOv0qO![&Ti~P'vOz*zO![&Ti~O![+SO~OV+UOo0cOv0qO{&la![&la!m&la%z&la~P'vOz+VO{&la![&la!m&la%z&la~O!]+YO&n+[O![!nX~O![+^O~O{(kO![+_O~O{(kO![+_O!m+`O~OV&OOopOvqO{%hq!x%hq#g%hq%[%hq%_%hq%z%hq~P'vOz$ri{$ri!x$ri#g$ri%[$ri%_$ri%z$ri~P%SOV&OOopOvqO~P'vOV&OOo0cOv0qO#g%ha%[%ha%_%ha%z%ha~P'vOz+aO#g%ha%[%ha%_%ha%z%ha~Oz$ia#g$ia%[$ia%_$ian$ia~P%SO#g&Pi%[&Pi%_&Pin&Pi~P'vOz+dO#g#Wq%[#Wq%_#Wq~O#[+eOz$va#g$va%[$va%_$vag$va~O%uWO#g&ri%[&ri%_&rig&ri~Oz+gO#g&ri%[&ri%_&rig&ri~OV+iOh$WO%uWO~O%uWO#g&ti%[&ti%_&ti~Oo0cOv0qO#g&pi%[&pi%_&pi{&pi~P'vO{#{Oz#eX!W#eX~Oz+mO!W&uX~O!W+oO~Ot+rO#j)gOP#hqV#hqf#hqh#hqo#hqs#hqv#hq!P#hq!Q#hq!T#hq!U#hq!X#hq!]#hq!h#hq!r#hq!s#hq!t#hq!{#hq!}#hq#P#hq#R#hq#T#hq#X#hq#Z#hq#^#hq#_#hq#a#hq#c#hq#l#hq#o#hq#s#hq#u#hq#z#hq#}#hq$P#hq%X#hq%o#hq%p#hq%t#hq%u#hq&Z#hq&[#hq&]#hq&^#hq&_#hq&`#hq&a#hq&b#hq&c#hq&d#hq&e#hq&f#hq&g#hq&h#hq&i#hq&j#hq%Z#hq%_#hq~On$|az$|a~P%SOV)kOn&wi~P'vOz+yOn&wi~Oz,TO{$jO#[,TO~O#q,VOP#nqV#nqf#nqh#nqo#nqs#nqv#nq!P#nq!Q#nq!T#nq!U#nq!X#nq!]#nq!h#nq!r#nq!s#nq!t#nq!{#nq!}#nq#P#nq#R#nq#T#nq#X#nq#Z#nq#^#nq#_#nq#a#nq#c#nq#l#nq#o#nq#s#nq#u#nq#z#nq#}#nq$P#nq%X#nq%o#nq%p#nq%t#nq%u#nq&Z#nq&[#nq&]#nq&^#nq&_#nq&`#nq&a#nq&b#nq&c#nq&d#nq&e#nq&f#nq&g#nq&h#nq&i#nq&j#nq%Z#nq%_#nq~O#[,WOz%Oa{%Oa~Oo0cOv0qO{&xi~P'vOz,YO{&xi~O{#{O%z,[Og&zXz&zX~O%uWOg&zXz&zX~Oz,`Og&yX~Og,bO~O%Y,eO~O!T%dO!U%cOg&Viz&Vi~OV$}Oa$}Oo0cOv0qOg&Ui~P'vO{,hOz$la!W$la~Oo0cOv0qO{,iOz$la!W$la~P'vOo0cOv0qO{*gO!W&Xi~P'vOz,lO!W&Xi~Oo0cOv0qOz,lO!W&Xi~P'vOz,lO{,oO!W&Xi~Og$hiz$hi!W$hi~P%SOV'|Oo0cOv0qO~P'vOn,qO~OV'|Og,rOo0cOv0qO~P'vOV'|Oo0cOv0qO!W&Sq~P'vOz$gi![$gi#g$gi%[$gi%_$gig$gi{$gi!m$gi%z$gi~P%SOV(]Oo0cOv0qO~P'vOa+QOo0cOv0qO![&Tq~P'vOz,sO![&Tq~O![,tO~OV(]Oo0cOv0qO![%}q#g%}q%[%}q%_%}qg%}q{%}q!m%}q%z%}q~P'vO{,uO~OV+UOo0cOv0qO{&li![&li!m&li%z&li~P'vOz,zO{&li![&li!m&li%z&li~O!]+YO&n+[O![!na~O{(kO![,}O~OV&OOo0cOv0qO#g%hi%[%hi%_%hi%z%hi~P'vOz-OO#g%hi%[%hi%_%hi%z%hi~O%uWO#g&rq%[&rq%_&rqg&rq~Oz-RO#g&rq%[&rq%_&rqg&rq~OV)`Oa)`O%uWO!W&ua~Oz-TO!W&ua~On$|iz$|i~P%SOV)kO~P'vOV)kOn&wq~P'vOt-XOP#myV#myf#myh#myo#mys#myv#my!P#my!Q#my!T#my!U#my!X#my!]#my!h#my!r#my!s#my!t#my!{#my!}#my#P#my#R#my#T#my#X#my#Z#my#^#my#_#my#a#my#c#my#l#my#o#my#s#my#u#my#z#my#}#my$P#my%X#my%o#my%p#my%t#my%u#my&Z#my&[#my&]#my&^#my&_#my&`#my&a#my&b#my&c#my&d#my&e#my&f#my&g#my&h#my&i#my&j#my%Z#my%_#my~O%Z-]O%_-]O~P`O#q-^OP#nyV#nyf#nyh#nyo#nys#nyv#ny!P#ny!Q#ny!T#ny!U#ny!X#ny!]#ny!h#ny!r#ny!s#ny!t#ny!{#ny!}#ny#P#ny#R#ny#T#ny#X#ny#Z#ny#^#ny#_#ny#a#ny#c#ny#l#ny#o#ny#s#ny#u#ny#z#ny#}#ny$P#ny%X#ny%o#ny%p#ny%t#ny%u#ny&Z#ny&[#ny&]#ny&^#ny&_#ny&`#ny&a#ny&b#ny&c#ny&d#ny&e#ny&f#ny&g#ny&h#ny&i#ny&j#ny%Z#ny%_#ny~Oz-aO{$jO#[-aO~Oo0cOv0qO{&xq~P'vOz-dO{&xq~O%z,[Og&zaz&za~O{#{Og&zaz&za~OV*SOa*TO%q*UO%uWOg&ya~Oz-hOg&ya~O$S-lO~OV$}Oa$}Oo0cOv0qO~P'vOo0cOv0qO{-mOz$li!W$li~P'vOo0cOv0qOz$li!W$li~P'vO{-mOz$li!W$li~Oo0cOv0qO{*gO~P'vOo0cOv0qO{*gO!W&Xq~P'vOz-pO!W&Xq~Oo0cOv0qOz-pO!W&Xq~P'vOs-sO!T%dO!U%cOg&Oq!W&Oq![&Oqz&Oq~P!/jOa+QOo0cOv0qO![&Ty~P'vOz$ji![$ji~P%SOa+QOo0cOv0qO~P'vOV+UOo0cOv0qO~P'vOV+UOo0cOv0qO{&lq![&lq!m&lq%z&lq~P'vO{(kO![-xO!m-yO%z-wO~OV&OOo0cOv0qO#g%hq%[%hq%_%hq%z%hq~P'vO%uWO#g&ry%[&ry%_&ryg&ry~OV)`Oa)`O%uWO!W&ui~Ot-}OP#m!RV#m!Rf#m!Rh#m!Ro#m!Rs#m!Rv#m!R!P#m!R!Q#m!R!T#m!R!U#m!R!X#m!R!]#m!R!h#m!R!r#m!R!s#m!R!t#m!R!{#m!R!}#m!R#P#m!R#R#m!R#T#m!R#X#m!R#Z#m!R#^#m!R#_#m!R#a#m!R#c#m!R#l#m!R#o#m!R#s#m!R#u#m!R#z#m!R#}#m!R$P#m!R%X#m!R%o#m!R%p#m!R%t#m!R%u#m!R&Z#m!R&[#m!R&]#m!R&^#m!R&_#m!R&`#m!R&a#m!R&b#m!R&c#m!R&d#m!R&e#m!R&f#m!R&g#m!R&h#m!R&i#m!R&j#m!R%Z#m!R%_#m!R~Oo0cOv0qO{&xy~P'vOV*SOa*TO%q*UO%uWOg&yi~O$S-lO%Z.VO%_.VO~OV.aOh._O!X.^O!].`O!h.YO!s.[O!t.[O%p.XO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O~Oo0cOv0qOz$lq!W$lq~P'vO{.fOz$lq!W$lq~Oo0cOv0qO{*gO!W&Xy~P'vOz.gO!W&Xy~Oo0cOv.kO~P'vOs-sO!T%dO!U%cOg&Oy!W&Oy![&Oyz&Oy~P!/jO{(kO![.nO~O{(kO![.nO!m.oO~OV*SOa*TO%q*UO%uWO~Oh.tO!f.rOz$TX#[$TX%j$TXg$TX~Os$TX{$TX!W$TX![$TX~P$-bO%o.vO%p.vOs$UXz$UX{$UX#[$UX%j$UX!W$UXg$UX![$UX~O!h.xO~Oz.|O#[/OO%j.yOs&|X{&|X!W&|Xg&|X~Oa/RO~P$)zOh.tOs&}Xz&}X{&}X#[&}X%j&}X!W&}Xg&}X![&}X~Os/VO{$jO~Oo0cOv0qOz$ly!W$ly~P'vOo0cOv0qO{*gO!W&X!R~P'vOz/ZO!W&X!R~Og&RXs&RX!T&RX!U&RX!W&RX![&RXz&RX~P!/jOs-sO!T%dO!U%cOg&Qa!W&Qa![&Qaz&Qa~O{(kO![/^O~O!f.rOh$[as$[az$[a{$[a#[$[a%j$[a!W$[ag$[a![$[a~O!h/eO~O%o.vO%p.vOs$Uaz$Ua{$Ua#[$Ua%j$Ua!W$Uag$Ua![$Ua~O%j.yOs$Yaz$Ya{$Ya#[$Ya!W$Yag$Ya![$Ya~Os&|a{&|a!W&|ag&|a~P$)nOz/jOs&|a{&|a!W&|ag&|a~O!W/mO~Og/mO~O{/oO~O![/pO~Oo0cOv0qO{*gO!W&X!Z~P'vO{/sO~O%z/tO~P$-bOz/uO#[/OO%j.yOg'PX~Oz/uOg'PX~Og/wO~O!h/xO~O#[/OOs%Saz%Sa{%Sa%j%Sa!W%Sag%Sa![%Sa~O#[/OO%j.yOs%Waz%Wa{%Wa!W%Wag%Wa~Os&|i{&|i!W&|ig&|i~P$)nOz/zO#[/OO%j.yO!['Oa~O{$da~P%SOg'Pa~P$)nOz0SOg'Pa~Oa0UO!['Oi~P$)zOz0WO!['Oi~Oz0WO#[/OO%j.yO!['Oi~O#[/OO%j.yOg$biz$bi~O%z0ZO~P$-bO#[/OO%j.yOg%Vaz%Va~Og'Pi~P$)nO{0^O~Oa0UO!['Oq~P$)zOz0`O!['Oq~O#[/OO%j.yOz%Ui![%Ui~Oa0UO~P$)zOa0UO!['Oy~P$)zO#[/OO%j.yOg$ciz$ci~O#[/OO%j.yOz%Uq![%Uq~Oz+aO#g%ha%[%ha%_%ha%z%ha~P%SOV&OOo0cOv0qO~P'vOn0hO~Oo0hO~P'vO{0iO~Ot0jO~P!/jO&]&Z&j&h&i&g&f&d&e&c&b&`&a&_&^&[%u~",goto:"!=o'QPPPPPP'RP'Z*s+]+v,b,}-kP.YP'Z.y.y'ZPPP'Z2cPPPPPP2c5VPP5VP7g7p=xPP={>m>pPP'Z'ZPP?PPP'Z'ZPP'Z'Z'Z'Z'Z?T?}'ZP@QP@WD_G{HPPHSH^Hb'ZPPPHeHq'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPHwITI]PIdIjPIdPIdIdPPPIdPKxPLRL]LcKxPIdLlPIdPLsLyPL}McNQNkL}L}Nq! OL}L}L}L}! d! j! m! r! u!!P!!V!!c!!u!!{!#V!#]!#y!$P!$V!$a!$g!$m!%P!%Z!%a!%g!%q!%w!%}!&T!&Z!&a!&k!&q!&{!'R!'[!'b!'q!'y!(T!([PPPPPPPPPPP!(b!(e!(k!(t!)O!)ZPPPPPPPPPPPP!-}!/c!3c!6sPP!6{!7[!7e!8^!8T!8g!8m!8p!8s!8v!9O!9oPPPPPPPPPPPPPPPPP!9r!9v!9|P!:b!:f!:r!:{!;X!;o!;r!;u!;{!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[O,u,c,b,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>x[e]||-1}],tokenPrec:7675});var k=n(15874),C=n(90365),B=n(47404);const Q=new C.RY,T=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function E(e){return(t,n,r)=>{if(r)return!1;let o=t.node.getChild("VariableName");return o&&n(o,e),!0}}const P={FunctionDefinition:E("function"),ClassDefinition:E("class"),ForStatement(e,t,n){if(n)for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if("in"==n.name)break},ImportStatement(e,t){var n,r;let{node:o}=e,i="from"==(null===(n=o.firstChild)||void 0===n?void 0:n.name);for(let e=o.getChild("import");e;e=e.nextSibling)"VariableName"==e.name&&"as"!=(null===(r=e.nextSibling)||void 0===r?void 0:r.name)&&t(e,i?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if(":"==n.name||"AssignOp"==n.name)break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)"VariableName"!=r.name||n&&/\*|AssignOp/.test(n.name)||t(r,"variable"),n=r},CapturePattern:E("variable"),AsPattern:E("variable"),__proto__:null};function $(e,t){let n=Q.get(t);if(n)return n;let r=[],o=!0;function i(t,n){let o=e.sliceString(t.from,t.to);r.push({label:o,type:n})}return t.cursor(C.Qj.IncludeAnonymous).iterate((t=>{if(t.name){let e=P[t.name];if(e&&e(t,i,o)||!o&&T.has(t.name))return!1;o=!1}else if(t.to-t.from>8192){for(let n of $(e,t.node))r.push(n);return!1}})),Q.set(t,r),r}const M=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,z=["String","FormatString","Comment","PropertyName"];function R(e){let t=(0,k.mv)(e.state).resolveInner(e.pos,-1);if(z.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&M.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)T.has(n.name)&&(r=r.concat($(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:M}}const D=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((e=>({label:e,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((e=>({label:e,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((e=>({label:e,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((e=>({label:e,type:"function"})))),I=[(0,B.Gw)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,B.Gw)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,B.Gw)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,B.Gw)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,B.Gw)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,B.Gw)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,B.Gw)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,B.Gw)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,B.Gw)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],N=(0,B.Ar)(z,(0,B.et)(D.concat(I)));function L(e){let{node:t,pos:n}=e,r=e.lineIndent(n,-1),o=null;for(;;){let i=t.childBefore(n);if(!i)break;if("Comment"==i.name)n=i.from;else if("Body"==i.name||"MatchBody"==i.name)e.baseIndentFor(i)+e.unit<=r&&(o=i),t=i;else if("MatchClause"==i.name)t=i;else{if(!i.type.is("Statement"))break;t=i}}return o}function V(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),o=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const U=k.bj.define({name:"python",parser:S.configure({props:[k.Oh.add({Body:e=>{var t;return null!==(t=V(e,L(e)||e.node))&&void 0!==t?t:e.continue()},MatchBody:e=>{var t;return null!==(t=V(e,L(e)||e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,k.Ay)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,k.Ay)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,k.Ay)({closing:"]"}),"String FormatString":()=>null,Script:e=>{var t;let n=L(e);return null!==(t=n&&V(e,n))&&void 0!==t?t:e.continue()}}),k.b_.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":k.yd,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function F(){return new k.Yy(U,[U.data.of({autocomplete:R}),U.data.of({autocomplete:N})])}},15378:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(61431),o=n(97859),i=n(33333),a=n(36940),s=n(78396),l=n(22720),c=n(53344);let u=[];const d=e=>{e.code===c.R.esc&&u.forEach((t=>t(e)))};var f=n(90033);const h=(0,r.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[a.NP,a.fI,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,r.ref)();let s,h;const{focusReason:p}=(0,i.ie)();var m;m=n=>{e.trapped&&!g.paused&&t("release-requested",n)},(0,r.onMounted)((()=>{0===u.length&&document.addEventListener("keydown",d),l.oc&&u.push(m)})),(0,r.onBeforeUnmount)((()=>{u=u.filter((e=>e!==m)),0===u.length&&l.oc&&document.removeEventListener("keydown",d)}));const g={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},A=n=>{if(!e.loop&&!e.trapped)return;if(g.paused)return;const{code:r,altKey:o,ctrlKey:a,metaKey:s,currentTarget:l,shiftKey:u}=n,{loop:d}=e,f=r===c.R.tab&&!o&&!a&&!s,h=document.activeElement;if(f&&h){const e=l,[r,o]=(0,i.$M)(e);if(r&&o)if(u||h!==o){if(u&&[r,e].includes(h)){const e=(0,i.Ub)({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&(0,i.EC)(o,!0))}}else{const e=(0,i.Ub)({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&(0,i.EC)(r,!0))}else if(h===e){const e=(0,i.Ub)({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,r.provide)(a.r3,{focusTrapRef:n,onKeydown:A}),(0,r.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,r.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",A),e.addEventListener("focusin",O),e.addEventListener("focusout",b)),t&&(t.removeEventListener("keydown",A),t.removeEventListener("focusin",O),t.removeEventListener("focusout",b))}));const v=e=>{t(a.NP,e)},y=e=>t(a.fI,e),O=o=>{const a=(0,r.unref)(n);if(!a)return;const l=o.target,c=o.relatedTarget,u=l&&a.contains(l);e.trapped||c&&a.contains(c)||(s=c),u&&t("focusin",o),g.paused||e.trapped&&(u?h=l:(0,i.EC)(h,!0))},b=a=>{const s=(0,r.unref)(n);if(!g.paused&&s)if(e.trapped){const n=a.relatedTarget;(0,o.A)(n)||s.contains(n)||setTimeout((()=>{if(!g.paused&&e.trapped){const e=(0,i.Ub)({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||(0,i.EC)(h,!0)}}),0)}else{const e=a.target;e&&s.contains(e)||t("focusout",a)}};async function w(){await(0,r.nextTick)();const t=(0,r.unref)(n);if(t){i.Zy.push(g);const n=t.contains(document.activeElement)?s:document.activeElement;if(s=n,!t.contains(n)){const o=new Event(a.Ll,a.MP);t.addEventListener(a.Ll,v),t.dispatchEvent(o),o.defaultPrevented||(0,r.nextTick)((()=>{let r=e.focusStartEl;(0,f.Kg)(r)||((0,i.EC)(r),document.activeElement!==r&&(r="first")),"first"===r&&(0,i.s5)((0,i.uG)(t),!0),document.activeElement!==n&&"container"!==r||(0,i.EC)(t)}))}}}function _(){const e=(0,r.unref)(n);if(e){e.removeEventListener(a.Ll,v);const t=new CustomEvent(a.aw,{...a.MP,detail:{focusReason:p.value}});e.addEventListener(a.aw,y),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=p.value&&(0,i.KQ)()&&!e.contains(document.activeElement)||(0,i.EC)(null!=s?s:document.body),e.removeEventListener(a.aw,y),i.Zy.remove(g)}}return(0,r.onMounted)((()=>{e.trapped&&w(),(0,r.watch)((()=>e.trapped),(e=>{e?w():_()}))})),(0,r.onBeforeUnmount)((()=>{e.trapped&&_(),n.value&&(n.value.removeEventListener("keydown",A),n.value.removeEventListener("focusin",O),n.value.removeEventListener("focusout",b),n.value=void 0)})),{onKeydown:A}}});var p=(0,s.A)(h,[["render",function(e,t,n,o,i,a){return(0,r.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]])},15576:function(e,t,n){"use strict";n.d(t,{Pq:function(){return c}});var r=n(48820),o=n(43720);const i=(0,o.pn)({String:o._A.string,Number:o._A.number,"True False":o._A.bool,PropertyName:o._A.propertyName,Null:o._A.null,", :":o._A.separator,"[ ]":o._A.squareBracket,"{ }":o._A.brace}),a=r.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[i],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var s=n(15874);const l=s.bj.define({name:"json",parser:a.configure({props:[s.Oh.add({Object:(0,s.mz)({except:/^\s*\}/}),Array:(0,s.mz)({except:/^\s*\]/})}),s.b_.add({"Object Array":s.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new s.Yy(l)}},15580:function(e,t,n){var r=n(63103),o=n(70111),i=n(53848),a=n(54529),s=n(35657);e.exports=function(e,t,n){var l,c={};return e&&(t&&o(t)?t=function(e){return function(){return r(e)}}(t):i(t)||(t=a(t)),s(e,(function(r,o){l=t?t.call(n,r,o,e):r,c[l]?c[l].push(r):c[l]=[r]}))),c}},15588:function(e,t,n){var r=n(51780);e.exports=function(e,t,n){var o=0,i=[];return function(){var a=arguments;++o<=e&&i.push(a[0]),o>=e&&t.apply(n,[i].concat(r(a)))}}},15651:function(e,t,n){var r=n(79135),o=n(40870);e.exports=function(e,t,n){if(e){r(e)||(e=o(e));for(var i=e.length-1;i>=0;i--)if(t.call(n,e[i],i,e))return e[i]}}},15791:function(e,t,n){n(72564)},15874:function(e,t,n){"use strict";n.d(t,{Ay:function(){return N},EI:function(){return T},KB:function(){return P},Lv:function(){return pe},Oh:function(){return $},Q0:function(){return d},Q_:function(){return $e},SG:function(){return Pe},TM:function(){return f},Tg:function(){return Ue},WD:function(){return H},Xt:function(){return B},Yy:function(){return S},Zt:function(){return _e},_Y:function(){return V},_v:function(){return E},b_:function(){return X},bj:function(){return p},cr:function(){return ge},f7:function(){return ie},iB:function(){return c},jU:function(){return Re},mv:function(){return m},mz:function(){return U},nq:function(){return v},p9:function(){return u},t:function(){return W},t$:function(){return k},tp:function(){return Q},y9:function(){return Oe},yd:function(){return j}});var r,o=n(90365),i=n(20614),a=n(62144),s=n(43720),l=n(97417);const c=new o.uY;function u(e){return i.sj.define({combine:e?t=>t.concat(e):void 0})}const d=new o.uY;class f{constructor(e,t,n=[],r=""){this.data=e,this.name=r,i.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(i.$t.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[x.of(this),i.$t.languageData.of(((e,t,n)=>{let r=h(e,t,n),o=r.type.prop(c);if(!o)return[];let i=e.facet(o),a=r.type.prop(d);if(a){let o=r.resolve(t-r.from,n);for(let t of a)if(t.test(o,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(e,t,n=-1){return h(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(x);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(o.uY.mounted);if(i){if(i.tree.prop(c)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(f.state,!1);return t?t.tree:o.PH.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let A=null;class v{constructor(e,t,n=[],r,o,i,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=i,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new v(e,t,[],o.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=o.PH.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(o.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=A;A=this;try{return e()}finally{A=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=y(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,o)=>t.push({fromA:e,toA:n,fromB:r,toB:o}))),n=o.rr.applyChanges(n,t),r=o.PH.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=y(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends o.iX{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance(){let t=A;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new o.PH(o.Z6.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return A}}function y(e,t,n){return o.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class O{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new O(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=v.create(e.facet(x).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new O(n)}}f.state=i.sU.define({create:O.init,update(e,t){for(let e of t.effects)if(e.is(f.setState))return e.value;return t.startState.facet(x)!=t.state.facet(x)?O.init(t.state):e.apply(t)}});let b=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(b=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const w="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,_=a.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(f.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(f.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=b(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=o.context.work((()=>w&&w()||Date.now()>i),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:f.setState.of(new O(o.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,a.c_)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),x=i.sj.define({combine(e){return e.length?e[0]:null},enables:e=>[f.state,_,a.Lz.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class S{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class k{constructor(e,t,n,r,o,i=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=o,this.support=i,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new k(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let n of e)if(n.filename&&n.filename.test(t))return n;let n=/\.([^.]+)$/.exec(t);if(n)for(let t of e)if(t.extensions.indexOf(n[1])>-1)return t;return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let n of e)if(n.alias.some((e=>e==t)))return n;if(n)for(let n of e)for(let e of n.alias){let r=t.indexOf(e);if(r>-1&&(e.length>2||!/\w/.test(t[r-1])&&!/\w/.test(t[r+e.length])))return n}return null}}const C=i.sj.define(),B=i.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Q(e){let t=e.facet(B);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function T(e,t){let n="",r=e.tabSize,o=e.facet(B)[0];if("\t"==o){for(;t>=r;)n+="\t",t-=r;o=" "}for(let e=0;e=t?function(e,t,n){let r=t.resolveStack(n),o=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(o!=r.node){let e=[];for(let t=o;t&&(t.from!=r.node.from||t.type!=r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return M(r,e,n)}(e,n,t):null}class P{constructor(e,t={}){this.state=e,this.options=t,this.unit=Q(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return null!=r&&r>=n.from&&r<=n.to?o&&r==e?{text:"",from:e}:(t<0?r-1&&(o+=i-this.countColumn(n,n.search(/\S|$/))),o}countColumn(e,t=e.length){return(0,i.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let e=o(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const $=new o.uY;function M(e,t,n){for(let r=e;r;r=r.next){let e=z(r.node);if(e)return e(D.create(t,n,r))}return 0}function z(e){let t=e.type.prop($);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(o.uY.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>L(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?R:null}function R(){return 0}class D extends P{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new D(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(I(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return M(this.context.next,this.base,this.pos)}}function I(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function N({closing:e,align:t=!0,units:n=1}){return r=>L(r,t,n,e)}function L(e,t,n,r,o){let i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=null==o||o<=i.from?i.to:Math.min(i.to,o);for(let e=n.to;;){let o=t.childAfter(e);if(!o||o==r)return null;if(!o.type.isSkipped){if(o.from>=a)return null;let e=/^ */.exec(i.text.slice(n.to-i.from))[0].length;return{from:n.from,to:n.to+e}}e=o.to}}(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const V=e=>e.baseIndent;function U({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const F=200;function H(){return i.$t.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,o=n.lineAt(r);if(r>o.from+F)return e;let i=n.sliceString(o.from,r);if(!t.some((e=>e.test(i))))return e;let{state:a}=e,s=-1,l=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=E(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],o=T(a,n);r!=o&&l.push({from:t.from,to:t.from+r.length,insert:o})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const W=i.sj.define(),X=new o.uY;function j(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&a.from=t&&r.to>n&&(o=r)}}return o}(e,t,n)}function Y(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const G=i.Pe.define({map:Y}),K=i.Pe.define({map:Y});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ee=i.sU.define({create(){return a.NZ.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(G)&&!ne(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(se),o=r?a.NZ.replace({widget:new de(r(t.state,n.value))}):ue;e=e.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>a.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!o||o.from>e)&&(o={from:e,to:t})})),o}function ne(e,t,n){let r=!1;return e.between(t,t,((e,o)=>{e==t&&o==n&&(r=!0)})),r}function re(e,t){return e.field(ee,!1)?t:t.concat(i.Pe.appendConfig.of(le()))}function oe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return a.Lz.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${o}.`)}const ie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=Z(e.state,t.from,t.to);if(n)return e.dispatch({effects:re(e.state,[G.of(n),oe(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of J(e)){let r=te(e.state,n.from,n.to);r&&t.push(K.of(r),oe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(K.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],ae={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},se=i.sj.define({combine(e){return(0,i.QR)(e,ae)}});function le(e){let t=[ee,me];return e&&t.push(se.of(e)),t}function ce(e,t){let{state:n}=e,r=n.facet(se),o=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=te(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}const ue=a.NZ.replace({widget:new class extends a.xO{toDOM(e){return ce(e,null)}}});class de extends a.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ce(e,this.value)}}const fe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class he extends a.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function pe(e={}){let t=Object.assign(Object.assign({},fe),e),n=new he(t,!0),r=new he(t,!1),o=a.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(x)!=e.state.facet(x)||e.startState.field(ee,!1)!=e.state.field(ee,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new i.vB;for(let o of e.viewportLineBlocks){let i=te(e.state,o.from,o.to)?r:Z(e.state,o.from,o.to)?n:null;i&&t.add(o.from,o.from,i)}return t.finish()}}),{domEventHandlers:s}=t;return[o,(0,a.cU)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.markers)||i.om.empty},initialSpacer(){return new he(t,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(e,t,n)=>{if(s.click&&s.click(e,t,n))return!0;let r=te(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let o=Z(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:G.of(o)}),!0)}})}),le()]}const me=a.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ge{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const o="string"==typeof t.all?t.all:t.all?r(t.all):void 0,i=t.scope;this.scope=i instanceof f?e=>e.prop(c)==i.data:i?e=>e==i:void 0,this.style=(0,s.az)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:o}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new ge(e,t||{})}}const Ae=i.sj.define(),ve=i.sj.define({combine(e){return e.length?[e[0]]:null}});function ye(e){let t=e.facet(Ae);return t.length?t:e.facet(ve)}function Oe(e,t){let n,r=[we];return e instanceof ge&&(e.module&&r.push(a.Lz.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(ve.of(e)):n?r.push(Ae.computeN([a.Lz.darkTheme],(t=>t.facet(a.Lz.darkTheme)==("dark"==n)?[e]:[]))):r.push(Ae.of(e)),r}class be{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=m(e.state),n=ye(e.state),r=n!=ye(e.startState),{viewport:o}=e.view,i=e.changes.mapPos(this.decoratedTo,1);t.length=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return a.NZ.none;let n=new i.vB;for(let{from:r,to:o}of e.visibleRanges)(0,s.DM)(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.NZ.mark({class:r})))}),r,o);return n.finish()}}const we=i.Nb.high(a.Z9.fromClass(be,{decorations:e=>e.decorations})),_e=ge.define([{tag:s._A.meta,color:"#404740"},{tag:s._A.link,textDecoration:"underline"},{tag:s._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s._A.emphasis,fontStyle:"italic"},{tag:s._A.strong,fontWeight:"bold"},{tag:s._A.strikethrough,textDecoration:"line-through"},{tag:s._A.keyword,color:"#708"},{tag:[s._A.atom,s._A.bool,s._A.url,s._A.contentSeparator,s._A.labelName],color:"#219"},{tag:[s._A.literal,s._A.inserted],color:"#164"},{tag:[s._A.string,s._A.deleted],color:"#a11"},{tag:[s._A.regexp,s._A.escape,s._A.special(s._A.string)],color:"#e40"},{tag:s._A.definition(s._A.variableName),color:"#00f"},{tag:s._A.local(s._A.variableName),color:"#30a"},{tag:[s._A.typeName,s._A.namespace],color:"#085"},{tag:s._A.className,color:"#167"},{tag:[s._A.special(s._A.variableName),s._A.macroName],color:"#256"},{tag:s._A.definition(s._A.propertyName),color:"#00c"},{tag:s._A.comment,color:"#940"},{tag:s._A.invalid,color:"#f00"}]),xe=a.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Se=1e4,ke="()[]{}",Ce=i.sj.define({combine(e){return(0,i.QR)(e,{afterCursor:!0,brackets:ke,maxScanDistance:Se,renderMatch:Te})}}),Be=a.NZ.mark({class:"cm-matchingBracket"}),Qe=a.NZ.mark({class:"cm-nonmatchingBracket"});function Te(e){let t=[],n=e.matched?Be:Qe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Ee=[i.sU.define({create(){return a.NZ.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Ce);for(let e of t.state.selection.ranges){if(!e.empty)continue;let o=Re(t.state,e.head,-1,r)||e.head>0&&Re(t.state,e.head-1,1,r)||r.afterCursor&&(Re(t.state,e.head,1,r)||e.heada.Lz.decorations.from(e)}),xe];function Pe(e={}){return[Ce.of(e),Ee]}const $e=new o.uY;function Me(e,t,n){let r=e.prop(t<0?o.uY.openedBy:o.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function ze(e){let t=e.type.prop($e);return t?t(e.node):e}function Re(e,t,n,r={}){let o=r.maxScanDistance||Se,i=r.brackets||ke,a=m(e),s=a.resolveInner(t,n);for(let e=s;e;e=e.parent){let r=Me(e.type,n,i);if(r&&e.from0?t>=o.from&&to.from&&t<=o.to))return De(0,0,n,e,o,r,i)}}return function(e,t,n,r,o,i,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=i;){let i=u.value;n<0&&(e+=i.length);let s=t+e*n;for(let e=n>0?0:i.length-1,t=n>0?i.length:-1;e!=t;e+=n){let t=a.indexOf(i[e]);if(!(t<0||r.resolveInner(s+e,1).type!=o))if(t%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}n>0&&(e+=i.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,o,i)}function De(e,t,n,r,o,i,a){let s=r.parent,l={from:o.from,to:o.to},c=0,u=null==s?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&i.indexOf(u.type.name)>-1&&u.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function Le(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const Ve=new WeakMap;class Ue extends f{constructor(e){let t,n=u(e.languageData),r={name:(i=e).name||"",token:i.token,blankLine:i.blankLine||(()=>{}),startState:i.startState||(()=>!0),copyState:i.copyState||Le,indent:i.indent||(()=>null),languageData:i.languageData||{},tokenTable:i.tokenTable||je,mergeTokens:!1!==i.mergeTokens};var i;super(n,new class extends o.iX{createParse(e,n,r){return new We(t,e,n,r)}},[],e.name),this.topNode=function(e,t){let n=o.Z6.define({id:qe.length,name:"Document",props:[c.add((()=>e)),$.add((()=>e=>t.getIndent(e)))],top:!0});return qe.push(n),n}(n,this),t=this,this.streamParser=r,this.stateAfter=new o.uY({perNode:!0}),this.tokenTable=e.tokenTable?new Je(r.tokenTable):et}static define(e){return new Ue(e)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=Ve.get(e.state),null!=t&&t1e4)return null;for(;r=r&&n+t.length<=i&&t.prop(e.stateAfter);if(a)return{state:e.streamParser.copyState(a),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],c=s instanceof o.PH&&l=t.length)return t;i||0!=n||t.type!=e.topNode||(i=!0);for(let a=t.children.length-1;a>=0;a--){let s,l=t.positions[a],c=t.children[a];if(ln&&Fe(e,o.tree,0-o.offset,n,a);if(s&&s.pos<=r&&(t=He(e,o.tree,n+o.offset,s.pos+o.offset,!1)))return{state:s.state,tree:t}}return{state:e.streamParser.startState(i?Q(i):4),tree:o.PH.empty}}(e,n,a,this.to,null==i?void 0:i.state);this.state=s,this.parsedPos=this.chunkStart=a+l.length;for(let e=0;ee.from<=i.viewport.from&&e.to>=i.viewport.from))&&(this.state=this.lang.streamParser.startState(Q(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let e=v.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n)break;if(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length)break;let o=this.ranges[e].from,i=this.lineAfter(o);t+=i,n=o+i.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,o=e+t;if(n>0?r>o:r>=o)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),o+=this.chunk.length-e}let i=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==o&&i>=0&&this.chunk[i]==e&&this.chunk[i+2]==t?this.chunk[i+2]=n:this.chunk.push(e,t,n,o),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:o}=this.lang,i=new Ne(t,e?e.state.tabSize:4,e?Q(e.state):2);if(i.eol())o.blankLine(this.state,i.indentUnit);else for(;!i.eol();){let e=Xe(o.token,i,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+i.start,this.parsedPos+i.pos,r)),i.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const je=Object.create(null),qe=[o.Z6.none],Ze=new o.fI(qe),Ye=[],Ge=Object.create(null),Ke=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Ke[e]=nt(je,t);class Je{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Ke)}resolve(e){return e?this.table[e]||(this.table[e]=nt(this.extra,e)):0}}const et=new Je(je);function tt(e,t){Ye.indexOf(e)>-1||(Ye.push(e),console.warn(t))}function nt(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||s._A[n];r?"function"==typeof r?t.length?t=t.map(r):tt(n,`Modifier ${n} used at start of tag`):t.length?tt(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:tt(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map((e=>e.id)),a=Ge[i];if(a)return a.id;let l=Ge[i]=o.Z6.define({id:qe.length,name:r,props:[(0,s.pn)({[r]:n})]});return qe.push(l),l.id}a.OP.RTL,a.OP.LTR},15915:function(e,t,n){"use strict";var r=n(15215),o=n(98026),i=n(5202),a=n(12616),s=n(30693),l=n(48170),c=n(34253),u=(0,l.$r)(),d=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.uid=a.$Q("ec_cpt_model"),o}var n;return(0,r.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=c.ad(this),r=n?c.vs(e):{},i=t.getTheme();o.merge(e,i.get(this.mainType)),o.merge(e,this.getDefaultOption()),n&&c.YA(e,r,n)},t.prototype.mergeOption=function(e,t){o.merge(this.option,e,!0);var n=c.ad(this);n&&c.YA(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!(0,s._E)(e))return e.defaultOption;var t=u(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},l=n.length-1;l>=0;l--)a=o.merge(a,n[l],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return(0,l.JO)(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(i.A);(0,s.q7)(d,i.A),(0,s.tQ)(d),a.A6(d),a.vf(d,(function(e){var t=[];return o.each(d.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=o.map(t,(function(e){return(0,s.CC)(e).main})),"dataset"!==e&&o.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t})),t.A=d},15980:function(e,t,n){var r=n(95962),o=n(99917),i=n(69156);e.exports=function(e,t){var n=o(e),a=o(t),s=r(n),l=r(a)-s,c=l<0,u=Math.pow(10,c?Math.abs(l):l);return i(n.replace(".","")/a.replace(".",""),c?1/u:u)}},16075:function(e,t,n){n(4934)},16134:function(e){e.exports=function(e,t,n){return e.substring(t,n)}},16193:function(e,t,n){"use strict";var r=n(84215);e.exports="NODE"===r},16563:function(e,t){"use strict";function n(e){return null==e?0:e.length||1}function r(e){return e}var o=function(){function e(e,t,n,o,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||r,this._newKeyGetter=o||r,this.context=i,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},o=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var a=0;a1){var u=l.shift();1===l.length&&(r[s]=l[0]),this._update&&this._update(u,a)}else 1===c?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},o={},i=[],a=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s1&&1===f)this._updateManyToOne&&this._updateManyToOne(u,c),o[l]=null;else if(1===d&&f>1)this._updateOneToMany&&this._updateOneToMany(u,c),o[l]=null;else if(1===d&&1===f)this._update&&this._update(u,c),o[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,c),o[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s=0&&e.length>i)for(n=0;n{(0,r.isRef)(e)||(0,i.$)("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||(0,o.DU)("popup"),c=(0,r.computed)((()=>n.bm("parent","hidden")));if(!a.oc||(0,s.nB)(document.body,c.value))return;let u=0,d=!1,f="0";const h=()=>{setTimeout((()=>{"undefined"!=typeof document&&d&&document&&(document.body.style.width=f,(0,s.vy)(document.body,c.value))}),200)};(0,r.watch)(e,(e=>{if(!e)return void h();d=!(0,s.nB)(document.body,c.value),d&&(f=document.body.style.width,(0,s.iQ)(document.body,c.value)),u=(0,l.F_)(n.namespace.value);const t=document.documentElement.clientHeight0&&(t||"scroll"===r)&&d&&(document.body.style.width=`calc(100% - ${u}px)`)})),(0,r.onScopeDispose)((()=>h()))}},16985:function(e,t,n){"use strict";n.d(t,{M_:function(){return i},Ms:function(){return r},x$:function(){return a}});var r=function(){},o={};function i(e,t){o[e]=t}function a(e){return o[e]}},17186:function(e,t,n){var r=n(82867)((function(e,t,n){for(var r=0,o=e.length;r=t.length&&e.substr(n,n+t.length)===t},S=tinymce.util.Tools.resolve("tinymce.Env"),k=tinymce.util.Tools.resolve("tinymce.util.Delay"),C=tinymce.util.Tools.resolve("tinymce.util.Promise"),B=tinymce.util.Tools.resolve("tinymce.util.VK"),Q=function(e,t){return e.fire("PastePlainTextToggle",{state:t})},T=tinymce.util.Tools.resolve("tinymce.util.Tools"),E=function(e){return e.getParam("paste_data_images",!1)},P=function(e){return e.getParam("paste_merge_formats",!0)},$=function(e){return e.getParam("paste_retain_style_properties")},M=function(e){return e.getParam("validate")},z=function(e){return e.getParam("allow_html_data_urls",!1,"boolean")},R=function(e){return e.getParam("paste_data_images",!1,"boolean")},D=function(e){return T.explode(e.getParam("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string"))},I="x-tinymce/html",N="\x3c!-- "+I+" --\x3e",L=function(e){return-1!==e.indexOf(N)},V=c(I),U=Object.hasOwnProperty,F=function(e,t){return U.call(e,t)},H=tinymce.util.Tools.resolve("tinymce.html.Entities"),W=tinymce.util.Tools.resolve("tinymce.html.DomParser"),X=tinymce.util.Tools.resolve("tinymce.html.Serializer"),j=" ",q=tinymce.util.Tools.resolve("tinymce.html.Node"),Z=tinymce.util.Tools.resolve("tinymce.html.Schema"),Y=function(e,t){return T.each(t,(function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])})),e},G=function(e){return Y(e,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/|/g,[/( ?)\u00a0<\/span>( ?)/g,function(e,t,n){return t||n?j:" "}],/
/g,/
$/i])},K=function(e){return//gi,/]+id="?docs-internal-[^>]*>/gi,//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,j],[/([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(j):""}]]);var o=function(e){return e.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")}(e),i=Z({valid_elements:o,valid_children:"-li[p]"});T.each(i.elements,(function(e){e.attributes.class||(e.attributes.class={},e.attributesOrder.push("class")),e.attributes.style||(e.attributes.style={},e.attributesOrder.push("style"))}));var a=W({},i);a.addAttributeFilter("style",(function(t){for(var r,o=t.length;o--;)(r=t[o]).attr("style",ee(e,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(e){for(var t,n,r=e.length;r--;)n=(t=e[r]).attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&t.remove(),t.attr("class",null)})),a.addNodeFilter("del",(function(e){for(var t=e.length;t--;)e[t].remove()})),a.addNodeFilter("a",(function(e){for(var t,n,r,o=e.length;o--;)if(n=(t=e[o]).attr("href"),r=t.attr("name"),n&&-1!==n.indexOf("#_msocom_"))t.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1])&&(n="#"+n),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){t.unwrap();continue}t.attr({href:n,name:r})}else t.unwrap()}));var s=a.parse(t);return function(e){return e.getParam("paste_convert_word_fake_lists",!0)}(e)&&function(e){for(var t,n,r=1,o=function(e){var t="";if(3===e.type)return e.value;if(e=e.firstChild)do{t+=o(e)}while(e=e.next);return t},i=function(e,t){if(3===e.type&&t.test(e.value))return e.value=e.value.replace(t,""),!1;if(e=e.firstChild)do{if(!i(e,t))return!1}while(e=e.next);return!0},a=function(e){if(e._listIgnore)e.remove();else if(e=e.firstChild)do{a(e)}while(e=e.next)},s=function(e,o,s){var l=e._listLevel||r;l!==r&&(l1&&t.attr("start",""+s),e.wrap(t)),e.name="li",l>r&&n&&n.lastChild.append(t),r=l,a(e),i(e,/^\u00a0+/),i(e,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(e,/^\u00a0+/)},l=[],c=e.firstChild;null!=c;)if(l.push(c),null!==(c=c.walk()))for(;void 0!==c&&c.parent!==e;)c=c.walk();for(var u=0;u')})),!0}(e,t,n)},se=function(e){return"\n"===e||"\r"===e},le=function(e,t,n,r){var o=ne(e,t,n);!1===o.cancelled&&function(e,t,n){n||!1===function(e){return e.getParam("smart_paste",!0)}(e)?re(e,t):function(e,t){T.each([ie,ae,re],(function(n){return!0!==n(e,t,re)}))}(e,t)}(e,o.content,r)},ce=function(e,t,n){var r=n||L(t);le(e,function(e){return e.replace(N,"")}(t),r,!1)},ue=function(e,t){var n=e.dom.encode(t).replace(/\r\n/g,"\n"),r=function(e,t,n){return t?function(e,t,n){var r=e.split(/\n\n/),o=function(e,t){var n=[],r="<"+e;if("object"==typeof t){for(var o in t)F(t,o)&&n.push(o+'="'+H.encodeAllRaw(t[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"}(t,n),i="",a=T.map(r,(function(e){return e.split(/\n/).join("
")}));return 1===a.length?a[0]:T.map(a,(function(e){return o+e+i})).join("")}(e,!0===t?"p":t,n):function(e){return e.replace(/\r?\n/g,"
")}(e)}(function(e,t){var n,r,o,i=(n=function(e){return e.getParam("paste_tab_spaces",4,"number")}(e),n<=0?"":new Array(n+1).join(" ")),a=t.replace(/\t/g,i),s=(r=function(e,t){return function(e){return-1!==" \f\t\v".indexOf(e)}(t)||t===j?e.pcIsSpace||""===e.str||e.str.length===a.length-1||function(e,t){return t=0&&se(e[t])}(a,e.str.length+1)?{pcIsSpace:!1,str:e.str+j}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:se(t),str:e.str+t}},o={pcIsSpace:!1,str:""},O(a,(function(e,t){o=r(o,e)})),o);return s.str}(e,n),function(e){return e.getParam("forced_root_block")}(e),function(e){return e.getParam("forced_root_block_attrs")}(e));le(e,r,!1,!0)},de=function(e){var t={};if(e){if(e.getData){var n=e.getData("Text");n&&n.length>0&&-1===n.indexOf("data:text/mce-internal,")&&(t["text/plain"]=n)}if(e.types)for(var r=0;r0},he=function(e){return fe(e,"text/html")||fe(e,"text/plain")},pe=(n=0,function(){return"mceclip"+n++}),me=function(e,t,n){var r,o="paste"===t.type?t.clipboardData:t.dataTransfer;if(R(e)&&o){var s=function(e,t){var n,r=t.items?(n=b(t.items),function(e){for(var t=[],n=0,r=e.length;n0?r:o,function(e){var t=D(e);return function(e){return n=e.type,x(n,"image/",0)&&v(t,(function(t){return n=t.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"},(T.hasOwn(r,n)?"image/"+r[n]:"image/"+n)===e.type;var n,r}));var n}}(e))}(e,o);if(s.length>0)return t.preventDefault(),(r=s,C.all(y(r,(function(e){return new C((function(t){var n=function(e){return a(e.getAsFile)}(e)?e.getAsFile():e,r=new window.FileReader;r.onload=function(){t({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))).then((function(t){n&&e.selection.setRng(n),O(t,(function(t){!function(e,t){var n,r,o=(n=t.uri,(r=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(n))?{type:r[1],data:decodeURIComponent(r[2])}:{type:null,data:null}),i=o.data,s=o.type,l=pe(),c=t.blob,u=new Image;if(u.src=t.uri,function(e,t){var n=function(e){return e.getParam("images_dataimg_filter")}(e);return!n||n(t)}(e,u)){var d=e.editorUpload.blobCache,f=void 0,h=d.getByData(i,s);if(h)f=h;else{var p=function(e){return e.getParam("images_reuse_filename")}(e)&&a(c.name),m=p?function(e,t){var n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return a(n)?e.dom.encode(n[1]):null}(e,c.name):l,g=p?c.name:void 0;f=d.create(l,c,i,m,g),d.add(f)}ce(e,'',!1)}else ce(e,'',!1)}(e,t)}))})),!0}return!1},ge=function(e){return B.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode},Ae=function(e){return S.ie&&e.inline?document.body:e.getBody()},ve=function(e){return e.dom.get("mcepastebin")},ye=function(e,t){return t===e},Oe=function(e,t){var n,r=ve(e);return(n=r)&&"mcepastebin"===n.id&&ye(t,r.innerHTML)},be=function(e){var t=r(null),n="%MCEPASTEBIN%";return{create:function(){return function(e,t,n){var r=e.dom,o=e.getBody();t.set(e.selection.getRng());var i=e.dom.add(Ae(e),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(S.ie||S.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(e){e.stopPropagation()})),function(e,t,n){(function(e){return Ae(e)!==e.getBody()})(e)&&e.dom.bind(t,"paste keyup",(function(t){Oe(e,n)||e.fire("paste")}))}(e,i,n),i.focus(),e.selection.select(i,!0)}(e,t,n)},remove:function(){return function(e,t){if(ve(e)){for(var n=void 0,r=t.get();n=e.dom.get("mcepastebin");)e.dom.remove(n),e.dom.unbind(n);r&&e.selection.setRng(r)}t.set(null)}(e,t)},getEl:function(){return ve(e)},getHtml:function(){return function(e){var t=function(t,n){t.appendChild(n),e.dom.remove(n,!0)},n=T.grep(Ae(e).childNodes,(function(e){return"mcepastebin"===e.id})),r=n.shift();T.each(n,(function(e){t(r,e)}));for(var o=e.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=e.dom.create("div");r.insertBefore(a,o[i]),t(a,o[i])}return r?r.innerHTML:""}(e)},getLastRng:t.get,isDefault:function(){return Oe(e,n)},isDefaultContent:function(e){return ye(n,e)}}},we=function(e,t){var n=be(e);return e.on("PreInit",(function(){return function(e,t,n){var r;(function(e,t,n){var r,o=_(),i=_();e.on("keyup",i.clear),e.on("keydown",(function(n){var a=function(e){ge(e)&&!e.isDefaultPrevented()&&t.remove()};if(ge(n)&&!n.isDefaultPrevented()){if((r=n.shiftKey&&86===n.keyCode)&&S.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),S.ie&&r)return n.preventDefault(),void function(e){e.fire("paste",{ieFake:!0})}(e);t.remove(),t.create(),e.once("keyup",a),e.once("paste",(function(){e.off("keyup",a)}))}}));var a=function(e,n,r,o,i){var a;fe(n,"text/html")?a=n["text/html"]:(a=t.getHtml(),i=i||L(a),t.isDefaultContent(a)&&(o=!0)),a=G(a),t.remove();var s,l,c,u,d,f,h,p,m=!1===i&&!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(a),g=oe(a);(!a.length||m&&!g)&&(o=!0),(o||g)&&(a=fe(n,"text/plain")&&m?n["text/plain"]:(s=a,l=Z(),c=W({},l),u="",d=l.getShortEndedElements(),f=T.makeMap("script noscript style textarea video audio iframe object"," "),h=l.getBlockElements(),p=function(e){var t=e.name,n=e;if("br"!==t){if("wbr"!==t)if(d[t]&&(u+=" "),f[t])u+=" ";else{if(3===e.type&&(u+=e.value),!e.shortEnded&&(e=e.firstChild))do{p(e)}while(e=e.next);h[t]&&n.next&&(u+="\n","p"===t&&(u+="\n"))}}else u+="\n"},s=Y(s,[//g]),p(c.parse(s)),u)),t.isDefaultContent(a)?r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?ue(e,a):ce(e,a,i)};e.on("paste",(function(s){var l=o.isSet()||i.isSet();l&&o.clear();var c=function(e,t){return de(t.clipboardData||e.getDoc().dataTransfer)}(e,s),u="text"===n.get()||r,d=fe(c,V());r=!1,s.isDefaultPrevented()||function(e){var t=e.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&t&&t.items&&0===t.items.length}(s)?t.remove():he(c)||!me(e,s,t.getLastRng()||e.selection.getRng())?(l||s.preventDefault(),!S.ie||l&&!s.ieFake||fe(c,"text/html")||(t.create(),e.dom.bind(t.getEl(),"paste",(function(e){e.stopPropagation()})),e.getDoc().execCommand("Paste",!1,null),c["text/html"]=t.getHtml()),fe(c,"text/html")?(s.preventDefault(),d||(d=L(c["text/html"])),a(e,c,l,u,d)):k.setEditorTimeout(e,(function(){a(e,c,l,u,d)}),0)):t.remove()}))})(e,t,n),e.parser.addNodeFilter("img",(function(t,n,o){var i,a=function(e){return 0===e.indexOf("webkit-fake-url")},s=function(e){return 0===e.indexOf("data:")};if(!R(e)&&function(e){return e.data&&!0===e.data.paste}(o))for(var l=t.length;l--;)(r=t[l].attr("src"))&&(a(r)||!z(e)&&s(r))&&((i=t[l]).attr("data-mce-object")||r===S.transparentSrc||i.remove())}))}(e,n,t)})),{pasteFormat:t,pasteHtml:function(t,n){return ce(e,t,n)},pasteText:function(t){return ue(e,t)},pasteImageData:function(t,n){return me(e,t,n)},getDataTransferItems:de,hasHtmlOrText:he,hasContentType:fe}},_e=function(e,t,n,r){!function(e,t,n){if(!function(e){return!1===S.iOS&&"function"==typeof(null==e?void 0:e.setData)}(e))return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(V(),t),!0}catch(e){return!1}}(e.clipboardData,t.html,t.text)?n(t.html,r):(e.preventDefault(),r())},xe=function(e){return function(t,n){var r=function(e){return N+e}(t),o=e.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=e.dom.create("div",{contenteditable:"true"},r);e.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),e.dom.add(e.getBody(),o);var a=e.selection.getRng();i.focus();var s=e.dom.createRng();s.selectNodeContents(i),e.selection.setRng(s),k.setTimeout((function(){e.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Se=function(e){return{html:e.selection.getContent({contextual:!0}),text:e.selection.getContent({format:"text"})}},ke=function(e){return!e.selection.isCollapsed()||function(e){return!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody())}(e)},Ce=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Be=function(e,t){return Ce.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc())},Qe=function(e,t){e.focus(),e.selection.setRng(t)},Te=function(e,t){e.on("PastePreProcess",(function(n){n.content=t(e,n.content,n.internal,n.wordContent)}))},Ee=function(e,t){if(!K(t))return t;var n=[];T.each(e.schema.getBlockElements(),(function(e,t){n.push(t)}));var r=new RegExp("(?:
 [\\s\\r\\n]+|
)*(<\\/?("+n.join("|")+")[^>]*>)(?:
 [\\s\\r\\n]+|
)*","g");return t=Y(t,[[r,"$1"]]),Y(t,[[/

/g,"

"],[/
/g," "],[/

/g,"
"]])},Pe=function(e,t,n,r){if(r||n)return t;var o,i=function(e){return e.getParam("paste_webkit_styles")}(e);if(!1===function(e){return e.getParam("paste_remove_styles_if_webkit",!0)}(e)||"all"===i)return t;if(i&&(o=i.split(/[, ]/)),o){var a=e.dom,s=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(e,t,n,r){var i=a.parseStyle(a.decode(n)),l={};if("none"===o)return t+r;for(var c=0;c]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(e,t,n,r){return t+' style="'+n+'"'+r})),t},$e=function(e,t){e.$("a",t).find("font,u").each((function(t,n){e.dom.remove(n,!0)}))},Me=function(e,t){return function(n){n.setActive("text"===t.pasteFormat.get());var r=function(e){return n.setActive(e.state)};return e.on("PastePlainTextToggle",r),function(){return e.off("PastePlainTextToggle",r)}}};o.add("paste",(function(e){if(!1===function(e){return!!e.hasPlugin("powerpaste",!0)&&(void 0!==window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)}(e)){var t=r(!1),n=r(function(e){return e.getParam("paste_as_text",!1)}(e)?"text":"html"),o=we(e,n);return function(e){S.webkit&&Te(e,Pe),S.ie&&(Te(e,Ee),function(e,t){e.on("PastePostProcess",(function(n){t(e,n.node)}))}(e,$e))}(e),function(e,t){var n=function(){return e.execCommand("mceTogglePlainTextPaste")};e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:Me(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:Me(e,t)})}(e,o),function(e,t){e.addCommand("mceTogglePlainTextPaste",(function(){!function(e,t){"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),Q(e,!1)):(t.pasteFormat.set("text"),Q(e,!0)),e.focus()}(e,t)})),e.addCommand("mceInsertClipboardContent",(function(e,n){n.content&&t.pasteHtml(n.content,n.internal),n.text&&t.pasteText(n.text)}))}(e,o),function(e){var t=e.plugins.paste,n=function(e){return e.getParam("paste_preprocess")}(e);n&&e.on("PastePreProcess",(function(e){n.call(t,t,e)}));var r=function(e){return e.getParam("paste_postprocess")}(e);r&&e.on("PastePostProcess",(function(e){r.call(t,t,e)}))}(e),function(e){e.on("cut",function(e){return function(t){ke(e)&&_e(t,Se(e),xe(e),(function(){if(S.browser.isChrome()||S.browser.isFirefox()){var t=e.selection.getRng();k.setEditorTimeout(e,(function(){e.selection.setRng(t),e.execCommand("Delete")}),0)}else e.execCommand("Delete")}))}}(e)),e.on("copy",function(e){return function(t){ke(e)&&_e(t,Se(e),xe(e),l)}}(e))}(e),function(e,t,n){(function(e){return e.getParam("paste_block_drop",!1)})(e)&&e.on("dragend dragover draggesture dragdrop drop drag",(function(e){e.preventDefault(),e.stopPropagation()})),E(e)||e.on("drop",(function(e){var t=e.dataTransfer;t&&t.files&&t.files.length>0&&e.preventDefault()})),e.on("drop",(function(r){var o=Be(e,r);if(!r.isDefaultPrevented()&&!n.get()){var i,a=t.getDataTransferItems(r.dataTransfer),s=t.hasContentType(a,V());if((t.hasHtmlOrText(a)&&(!(i=a["text/plain"])||0!==i.indexOf("file://"))||!t.pasteImageData(r,o))&&o&&function(e){return e.getParam("paste_filter_drop",!0)}(e)){var l=a["mce-internal"]||a["text/html"]||a["text/plain"];l&&(r.preventDefault(),k.setEditorTimeout(e,(function(){e.undoManager.transact((function(){a["mce-internal"]&&e.execCommand("Delete"),Qe(e,o),l=G(l),a["text/html"]?t.pasteHtml(l,s):t.pasteText(l)}))})))}}})),e.on("dragstart",(function(e){n.set(!0)})),e.on("dragover dragend",(function(t){E(e)&&!1===n.get()&&(t.preventDefault(),Qe(e,Be(e,t))),"dragend"===t.type&&n.set(!1)}))}(e,o,t),function(e){return{clipboard:e}}(o)}}))}()},18014:function(e,t,n){"use strict";var r=n(91291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},18066:function(e){var t;self,t=()=>(()=>{"use strict";var e={};return(()=>{var t=e;function n(e,t,n){return e.addEventListener(t,n),{dispose:()=>{n&&e.removeEventListener(t,n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0,t.AttachAddon=class{constructor(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!(t&&!1===t.bidirectional)}activate(e){this._disposables.push(n(this._socket,"message",(t=>{const n=t.data;e.write("string"==typeof n?n:new Uint8Array(n))}))),this._bidirectional&&(this._disposables.push(e.onData((e=>this._sendData(e)))),this._disposables.push(e.onBinary((e=>this._sendBinary(e))))),this._disposables.push(n(this._socket,"close",(()=>this.dispose()))),this._disposables.push(n(this._socket,"error",(()=>this.dispose())))}dispose(){for(const e of this._disposables)e.dispose()}_sendData(e){this._checkOpenSocket()&&this._socket.send(e)}_sendBinary(e){if(!this._checkOpenSocket())return;const t=new Uint8Array(e.length);for(let n=0;n=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(o.A);o.A.registerClass(l),t.A=l},18727:function(e,t,n){"use strict";var r=n(36955);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},18744:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r,o=n(89610),i=n(41917).A["__core-js_shared__"],a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(23149),l=n(81121),c=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,f=u.toString,h=d.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=function(e){return!(!(0,s.A)(e)||(t=e,a&&a in t))&&((0,o.A)(e)?p:c).test((0,l.A)(e));var t},g=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return m(n)?n:void 0}},18983:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(83509);function o(e,t,n){var o=t.smooth,i=t.points;if(i&&i.length>=2){if(o){var a=function(e,t,n,o){var i,a,s,l,c=[],u=[],d=[],f=[];if(o){s=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,p=e.length;hu;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},19845:function(e,t,n){"use strict";var r=n(15215),o=n(71519),i=n(45558),a=n(5070),s=n(98026),l=n(59741),c=(0,s.defaults)({strokeFirst:!0,font:l.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return(0,s.createObject)(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=(0,i.NO)(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(o.Ay);u.prototype.type="tspan",t.A=u},20034:function(e,t,n){"use strict";var r=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},20037:function(e,t,n){var r=n(51780);e.exports=function(e,t){var n=!1,o=null,i=r(arguments,2);return function(){return n||(o=e.apply(t,r(arguments).concat(i)),n=!0),o}}},20116:function(e,t,n){"use strict";var r=n(46518),o=n(72652),i=n(79306),a=n(28551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),i(e);var t=s(this),n=0;return o(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20163:function(e,t,n){"use strict";n.d(t,{nk:function(){return C}});var r=n(61431),o=n(22720),i=n(97786),a=n(79869),s=n(91361),l=n(50819),c=n(25343);const u=["success","info","warning","error"],d=(0,n(51254).f)({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:o.oc?document.body:void 0}),f=(0,l.b_)({customClass:{type:String,default:d.customClass},center:{type:Boolean,default:d.center},dangerouslyUseHTMLString:{type:Boolean,default:d.dangerouslyUseHTMLString},duration:{type:Number,default:d.duration},icon:{type:c.Ze,default:d.icon},id:{type:String,default:d.id},message:{type:(0,l.jq)([String,Object,Function]),default:d.message},onClose:{type:(0,l.jq)(Function),default:d.onClose},showClose:{type:Boolean,default:d.showClose},type:{type:String,values:u,default:d.type},plain:{type:Boolean,default:d.plain},offset:{type:Number,default:d.offset},zIndex:{type:Number,default:d.zIndex},grouping:{type:Boolean,default:d.grouping},repeatNum:{type:Number,default:d.repeatNum}}),h=(0,r.shallowReactive)([]);var p=n(78396),m=n(22974),g=n(53344);const A=(0,r.defineComponent)({name:"ElMessage"}),v=(0,r.defineComponent)({...A,props:f,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:l}=c.Nk,{ns:u,zIndex:d}=(0,m.ht)("message"),{currentZIndex:f,nextZIndex:p}=d,A=(0,r.ref)(),v=(0,r.ref)(!1),y=(0,r.ref)(0);let O;const b=(0,r.computed)((()=>n.type?"error"===n.type?"danger":n.type:"info")),w=(0,r.computed)((()=>{const e=n.type;return{[u.bm("icon",e)]:e&&c.rz[e]}})),_=(0,r.computed)((()=>n.icon||c.rz[n.type]||"")),x=(0,r.computed)((()=>(e=>{const{prev:t}=(e=>{const t=h.findIndex((t=>t.id===e)),n=h[t];let r;return t>0&&(r=h[t-1]),{current:n,prev:r}})(e);return t?t.vm.exposed.bottom.value:0})(n.id))),S=(0,r.computed)((()=>((e,t)=>h.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+x.value)),k=(0,r.computed)((()=>y.value+S.value)),C=(0,r.computed)((()=>({top:`${S.value}px`,zIndex:f.value})));function B(){0!==n.duration&&({stop:O}=(0,o.TO)((()=>{T()}),n.duration))}function Q(){null==O||O()}function T(){v.value=!1}return(0,r.onMounted)((()=>{B(),p(),v.value=!0})),(0,r.watch)((()=>n.repeatNum),(()=>{Q(),B()})),(0,i.MLh)(document,"keydown",(function({code:e}){e===g.R.esc&&T()})),(0,i.wYm)(A,(()=>{y.value=A.value.getBoundingClientRect().height})),t({visible:v,bottom:k,close:T}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:(0,r.unref)(u).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{id:e.id,ref_key:"messageRef",ref:A,class:(0,r.normalizeClass)([(0,r.unref)(u).b(),{[(0,r.unref)(u).m(e.type)]:e.type},(0,r.unref)(u).is("center",e.center),(0,r.unref)(u).is("closable",e.showClose),(0,r.unref)(u).is("plain",e.plain),e.customClass]),style:(0,r.normalizeStyle)((0,r.unref)(C)),role:"alert",onMouseenter:Q,onMouseleave:B},[e.repeatNum>1?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(a.z_),{key:0,value:e.repeatNum,type:(0,r.unref)(b),class:(0,r.normalizeClass)((0,r.unref)(u).e("badge"))},null,8,["value","type","class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(_)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(s.tk),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(u).e("icon"),(0,r.unref)(w)])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(_))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" Caution here, message could've been compromised, never use user's input as message "),(0,r.createElementVNode)("p",{class:(0,r.normalizeClass)((0,r.unref)(u).e("content")),innerHTML:e.message},null,10,["innerHTML"])],2112)):((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:0,class:(0,r.normalizeClass)((0,r.unref)(u).e("content"))},(0,r.toDisplayString)(e.message),3))])),e.showClose?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(s.tk),{key:2,class:(0,r.normalizeClass)((0,r.unref)(u).e("closeBtn")),onClick:(0,r.withModifiers)(T,["stop"])},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(l))])),_:1},8,["class","onClick"])):(0,r.createCommentVNode)("v-if",!0)],46,["id"]),[[r.vShow,v.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var y=(0,p.A)(v,[["__file","message.vue"]]),O=n(31415),b=n(2154),w=n(90033),_=n(41651);let x=1;const S=e=>{const t=!e||(0,w.Kg)(e)||(0,r.isVNode)(e)||(0,w.Tn)(e)?{message:e}:e,n={...d,...t};if(n.appendTo){if((0,w.Kg)(n.appendTo)){let e=document.querySelector(n.appendTo);(0,b.vq)(e)||((0,_.U)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return(0,b.Lm)(O.k.grouping)&&!n.grouping&&(n.grouping=O.k.grouping),(0,b.Et)(O.k.duration)&&3e3===n.duration&&(n.duration=O.k.duration),(0,b.Et)(O.k.offset)&&16===n.offset&&(n.offset=O.k.offset),(0,b.Lm)(O.k.showClose)&&!n.showClose&&(n.showClose=O.k.showClose),n},k=(e={},t)=>{if(!o.oc)return{close:()=>{}};const n=S(e);if(n.grouping&&h.length){const e=h.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if((0,b.Et)(O.k.max)&&h.length>=O.k.max)return{close:()=>{}};const i=(({appendTo:e,...t},n)=>{const o="message_"+x++,i=t.onClose,a=document.createElement("div"),s={...t,id:o,onClose:()=>{null==i||i(),(e=>{const t=h.indexOf(e);if(-1===t)return;h.splice(t,1);const{handler:n}=e;n.close()})(d)},onDestroy:()=>{(0,r.render)(null,a)}},l=(0,r.createVNode)(y,s,(0,w.Tn)(s.message)||(0,r.isVNode)(s.message)?{default:(0,w.Tn)(s.message)?s.message:()=>s.message}:null);l.appContext=n||k._context,(0,r.render)(l,a),e.appendChild(a.firstElementChild);const c=l.component,u={close:()=>{c.exposed.visible.value=!1}},d={id:o,vnode:l,vm:c,handler:u,props:l.component.props};return d})(n,t);return h.push(i),i.handler};u.forEach((e=>{k[e]=(t={},n)=>{const r=S(t);return k({...r,type:e},n)}})),k.closeAll=function(e){for(const t of h)e&&e!==t.props.type||t.handler.close()},k._context=null;const C=(0,n(64769)._u)(k,"$message")},20354:function(e){e.exports=function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=55296&&o<=56319&&n>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<64;f++)d[u.charCodeAt(f)]=f;for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),m=0;m<64;m++)p[h.charCodeAt(m)]=m;for(var g=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},A=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256),O=0;O<64;O++)y[v.charCodeAt(O)]=O;var b=10,w=13,_=15,x=17,S=18,k=19,C=20,B=21,Q=22,T=24,E=25,P=26,$=27,M=28,z=30,R=32,D=33,I=34,N=35,L=37,V=38,U=39,F=40,H=42,W=[9001,65288],X="×",j="÷",q=function(e){var t,n,r,o=function(e){var t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r0;){var a=r[--i];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==b)break}if(a!==b)break}return!1},re=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==b)return r;n--}return 0},oe=function(e,t,n,r,o){if(0===n[r])return X;var i=r-1;if(Array.isArray(o)&&!0===o[i])return X;var a=i-1,s=i+1,l=t[i],c=a>=0?t[a]:0,u=t[s];if(2===l&&3===u)return X;if(-1!==Y.indexOf(l))return"!";if(-1!==Y.indexOf(u))return X;if(-1!==G.indexOf(u))return X;if(8===re(i,t))return j;if(11===q.get(e[i]))return X;if((l===R||l===D)&&11===q.get(e[s]))return X;if(7===l||7===u)return X;if(9===l)return X;if(-1===[b,w,_].indexOf(l)&&9===u)return X;if(-1!==[x,S,k,T,M].indexOf(u))return X;if(re(i,t)===Q)return X;if(ne(23,Q,i,t))return X;if(ne([x,S],B,i,t))return X;if(ne(12,12,i,t))return X;if(l===b)return j;if(23===l||23===u)return X;if(16===u||16===l)return j;if(-1!==[w,_,B].indexOf(u)||14===l)return X;if(36===c&&-1!==te.indexOf(l))return X;if(l===M&&36===u)return X;if(u===C)return X;if(-1!==Z.indexOf(u)&&l===E||-1!==Z.indexOf(l)&&u===E)return X;if(l===$&&-1!==[L,R,D].indexOf(u)||-1!==[L,R,D].indexOf(l)&&u===P)return X;if(-1!==Z.indexOf(l)&&-1!==K.indexOf(u)||-1!==K.indexOf(l)&&-1!==Z.indexOf(u))return X;if(-1!==[$,P].indexOf(l)&&(u===E||-1!==[Q,_].indexOf(u)&&t[s+1]===E)||-1!==[Q,_].indexOf(l)&&u===E||l===E&&-1!==[E,M,T].indexOf(u))return X;if(-1!==[E,M,T,x,S].indexOf(u))for(var d=i;d>=0;){if((f=t[d])===E)return X;if(-1===[M,T].indexOf(f))break;d--}if(-1!==[$,P].indexOf(u))for(d=-1!==[x,S].indexOf(l)?a:i;d>=0;){var f;if((f=t[d])===E)return X;if(-1===[M,T].indexOf(f))break;d--}if(V===l&&-1!==[V,U,I,N].indexOf(u)||-1!==[U,I].indexOf(l)&&-1!==[U,F].indexOf(u)||-1!==[F,N].indexOf(l)&&u===F)return X;if(-1!==ee.indexOf(l)&&-1!==[C,P].indexOf(u)||-1!==ee.indexOf(u)&&l===$)return X;if(-1!==Z.indexOf(l)&&-1!==Z.indexOf(u))return X;if(l===T&&-1!==Z.indexOf(u))return X;if(-1!==Z.concat(E).indexOf(l)&&u===Q&&-1===W.indexOf(e[s])||-1!==Z.concat(E).indexOf(u)&&l===S)return X;if(41===l&&41===u){for(var h=n[i],p=1;h>0&&41===t[--h];)p++;if(p%2!=0)return X}return l===R&&u===D?X:j},ie=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],o=[];return e.forEach((function(e,i){var a=q.get(e);if(a>50?(o.push(!0),a-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(16);if(4===a||11===a){if(0===i)return r.push(i),n.push(z);var s=n[i-1];return-1===J.indexOf(s)?(r.push(r[i-1]),n.push(s)):(r.push(i),n.push(z))}return r.push(i),31===a?n.push("strict"===t?B:L):a===H||29===a?n.push(z):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(L):n.push(z):void n.push(a)})),[r,n,o]}(e,t.lineBreak),r=n[0],o=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map((function(e){return-1!==[E,z,H].indexOf(e)?L:e})));var a="keep-all"===t.wordBreak?i.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[r,o,a]},ae=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),se=45,le=43,ce=-1,ue=function(e){return e>=48&&e<=57},de=function(e){return ue(e)||e>=65&&e<=70||e>=97&&e<=102},fe=function(e){return 10===e||9===e||32===e},he=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},pe=function(e){return he(e)||ue(e)||e===se},me=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ge=function(e,t){return 92===e&&10!==t},Ae=function(e,t,n){return e===se?he(t)||ge(t,n):!!he(e)||!(92!==e||!ge(e,t))},ve=function(e,t,n){return e===le||e===se?!!ue(t)||46===t&&ue(n):ue(46===e?t:e)},ye=function(e){var t=0,n=1;e[t]!==le&&e[t]!==se||(e[t]===se&&(n=-1),t++);for(var r=[];ue(e[t]);)r.push(e[t++]);var o=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var i=[];ue(e[t]);)i.push(e[t++]);var a=i.length,s=a?parseInt(c.apply(void 0,i),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==le&&e[t]!==se||(e[t]===se&&(l=-1),t++);for(var u=[];ue(e[t]);)u.push(e[t++]);var d=u.length?parseInt(c.apply(void 0,u),10):0;return n*(o+s*Math.pow(10,-a))*Math.pow(10,l*d)},Oe={type:2},be={type:3},we={type:4},_e={type:13},xe={type:8},Se={type:21},ke={type:9},Ce={type:10},Be={type:11},Qe={type:12},Te={type:14},Ee={type:23},Pe={type:1},$e={type:25},Me={type:24},ze={type:26},Re={type:27},De={type:28},Ie={type:29},Ne={type:31},Le={type:32},Ve=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Le;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(pe(t)||ge(n,r)){var o=Ae(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 39:return this.consumeStringToken(39);case 40:return Oe;case 41:return be;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Te;break;case le:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return we;case se:var i=e,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(ve(i,a,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Ae(i,a,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===se&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Me;break;case 46:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(l===ce)return this.consumeToken()}break;case 58:return ze;case 59:return Re;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),$e;break;case 64:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Ae(u,d,f))return{type:7,value:this.consumeName()};break;case 91:return De;case 92:if(ge(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ie;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;break;case 123:return Be;case 125:return Qe;case 117:case 85:var h=this.peekCodePoint(0),p=this.peekCodePoint(1);return h!==le||!de(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ke;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case ce:return Le}return fe(e)?(this.consumeWhiteSpace(),Ne):ue(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):he(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return 63===e?70:e}))),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===se&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];de(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,o),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Ee)}for(;;){var r=this.consumeCodePoint();if(r===ce||41===r)return{type:22,value:c.apply(void 0,e)};if(fe(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Ee);if(34===r||39===r||40===r||me(r))return this.consumeBadUrlRemnants(),Ee;if(92===r){if(!ge(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ee;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;fe(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ce)return;ge(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ce||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Pe;if(92===r){var o=this._value[n+1];o!==ce&&void 0!==o&&(10===o?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):ge(r,o)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==le&&n!==se||e.push(this.consumeCodePoint());ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ue(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===n||101===n)&&((r===le||r===se)&&ue(o)||ue(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ue(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ye(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);return Ae(r,o,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=c(e);de(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());fe(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ce?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(pe(t))e+=c(t);else{if(!ge(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ue=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Ve;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Ge(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Le:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Fe=function(e){return 15===e.type},He=function(e){return 17===e.type},We=function(e){return 20===e.type},Xe=function(e){return 0===e.type},je=function(e,t){return We(e)&&e.value===t},qe=function(e){return 31!==e.type},Ze=function(e){return 31!==e.type&&4!==e.type},Ye=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Ge=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Ke=function(e){return 17===e.type||15===e.type},Je=function(e){return 16===e.type||Ke(e)},et=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},tt={type:17,number:0,flags:4},nt={type:16,number:50,flags:4},rt={type:16,number:100,flags:4},ot=function(e,t,n){var r=e[0],o=e[1];return[it(r,t),it(void 0!==o?o:r,n)]},it=function(e,t){if(16===e.type)return e.number/100*t;if(Fe(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},at="grad",st="turn",lt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case at:return Math.PI/200*t.number;case"rad":return t.number;case st:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},ct=function(e){return 15===e.type&&("deg"===e.unit||e.unit===at||"rad"===e.unit||e.unit===st)},ut=function(e){switch(e.filter(We).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,rt];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[rt,rt];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[rt,tt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},ft=function(e,t){if(18===t.type){var n=Ot[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);return mt(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);var a=t.value.substring(3,4);return mt(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),mt(parseInt(r,16),parseInt(o,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),a=t.value.substring(6,8),mt(parseInt(r,16),parseInt(o,16),parseInt(i,16),parseInt(a,16)/255)}if(20===t.type){var s=wt[t.value.toUpperCase()];if(void 0!==s)return s}return wt.TRANSPARENT},ht=function(e){return!(255&e)},pt=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+r+","+n+","+t/255+")":"rgb("+o+","+r+","+n+")"},mt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},gt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},At=function(e,t){var n=t.filter(Ze);if(3===n.length){var r=n.map(gt),o=r[0],i=r[1],a=r[2];return mt(o,i,a,1)}if(4===n.length){var s=n.map(gt),l=(o=s[0],i=s[1],a=s[2],s[3]);return mt(o,i,a,l)}return 0};function vt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var yt=function(e,t){var n=t.filter(Ze),r=n[0],o=n[1],i=n[2],a=n[3],s=(17===r.type?dt(r.number):lt(e,r))/(2*Math.PI),l=Je(o)?o.number/100:0,c=Je(i)?i.number/100:0,u=void 0!==a&&Je(a)?it(a,1):1;if(0===l)return mt(255*c,255*c,255*c,1);var d=c<=.5?c*(l+1):c+l-c*l,f=2*c-d,h=vt(f,d,s+1/3),p=vt(f,d,s),m=vt(f,d,s-1/3);return mt(255*h,255*p,255*m,u)},Ot={hsl:yt,hsla:yt,rgb:At,rgba:At},bt=function(e,t){return ft(e,Ue.create(t).parseComponentValue())},wt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_t={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(We(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},xt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},St=function(e,t){var n=ft(e,t[0]),r=t[1];return r&&Je(r)?{color:n,stop:r}:{color:n,stop:null}},kt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=tt),null===r.stop&&(r.stop=rt);for(var o=[],i=0,a=0;ai?o.push(l):o.push(i),i=l}else o.push(null)}var c=null;for(a=0;ae.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e}),{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Tt=function(e,t){var n=dt(180),r=[];return Ye(t).forEach((function(t,o){if(0===o){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=ut(t));if(ct(i))return void(n=(lt(e,i)+dt(270))%dt(360))}var a=St(e,t);r.push(a)})),{angle:n,stops:r,type:1}},Et="closest-side",Pt="farthest-side",$t="closest-corner",Mt="farthest-corner",zt="circle",Rt="ellipse",Dt="cover",It="contain",Nt=function(e,t){var n=0,r=3,o=[],i=[];return Ye(t).forEach((function(t,a){var s=!0;if(0===a?s=t.reduce((function(e,t){if(We(t))switch(t.value){case"center":return i.push(nt),!1;case"top":case"left":return i.push(tt),!1;case"right":case"bottom":return i.push(rt),!1}else if(Je(t)||Ke(t))return i.push(t),!1;return e}),s):1===a&&(s=t.reduce((function(e,t){if(We(t))switch(t.value){case zt:return n=0,!1;case Rt:return n=1,!1;case It:case Et:return r=0,!1;case Pt:return r=1,!1;case $t:return r=2,!1;case Dt:case Mt:return r=3,!1}else if(Ke(t)||Je(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),s)),s){var l=St(e,t);o.push(l)}})),{size:r,shape:n,stops:o,position:i,type:2}},Lt=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Ut[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var Vt,Ut={"linear-gradient":function(e,t){var n=dt(180),r=[];return Ye(t).forEach((function(t,o){if(0===o){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=ut(t));if(ct(i))return void(n=lt(e,i))}var a=St(e,t);r.push(a)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Tt,"-ms-linear-gradient":Tt,"-o-linear-gradient":Tt,"-webkit-linear-gradient":Tt,"radial-gradient":function(e,t){var n=0,r=3,o=[],i=[];return Ye(t).forEach((function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce((function(e,t){if(l)if(We(t))switch(t.value){case"center":return i.push(nt),e;case"top":case"left":return i.push(tt),e;case"right":case"bottom":return i.push(rt),e}else(Je(t)||Ke(t))&&i.push(t);else if(We(t))switch(t.value){case zt:return n=0,!1;case Rt:return n=1,!1;case"at":return l=!0,!1;case Et:return r=0,!1;case Dt:case Pt:return r=1,!1;case It:case $t:return r=2,!1;case Mt:return r=3,!1}else if(Ke(t)||Je(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),s)}if(s){var c=St(e,t);o.push(c)}})),{size:r,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":Nt,"-ms-radial-gradient":Nt,"-o-radial-gradient":Nt,"-webkit-radial-gradient":Nt,"-webkit-gradient":function(e,t){var n=dt(180),r=[],o=1;return Ye(t).forEach((function(t,n){var i=t[0];if(0===n){if(We(i)&&"linear"===i.value)return void(o=1);if(We(i)&&"radial"===i.value)return void(o=2)}if(18===i.type)if("from"===i.name){var a=ft(e,i.values[0]);r.push({stop:tt,color:a})}else if("to"===i.name)a=ft(e,i.values[0]),r.push({stop:rt,color:a});else if("color-stop"===i.name){var s=i.values.filter(Ze);if(2===s.length){a=ft(e,s[1]);var l=s[0];He(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}})),1===o?{angle:(n+dt(180))%dt(360),stops:r,type:o}:{size:3,shape:0,stops:r,position:[],type:o}}},Ft={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Ze(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Ut[e.name])}(e)})).map((function(t){return Lt(e,t)}))}},Ht={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(We(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Wt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ye(t).map((function(e){return e.filter(Je)})).map(et)}},Xt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ye(t).map((function(e){return e.filter(We).map((function(e){return e.value})).join(" ")})).map(jt)}},jt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Vt||(Vt={}));var qt,Zt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ye(t).map((function(e){return e.filter(Yt)}))}},Yt=function(e){return We(e)||Je(e)},Gt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Kt=Gt("top"),Jt=Gt("right"),en=Gt("bottom"),tn=Gt("left"),nn=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return et(t.filter(Je))}}},rn=nn("top-left"),on=nn("top-right"),an=nn("bottom-right"),sn=nn("bottom-left"),ln=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cn=ln("top"),un=ln("right"),dn=ln("bottom"),fn=ln("left"),hn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fe(t)?t.number:0}}},pn=hn("top"),mn=hn("right"),gn=hn("bottom"),An=hn("left"),vn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},On={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(We).reduce((function(e,t){return e|bn(t.value)}),0)}},bn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},wn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_n={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(qt||(qt={}));var xn,Sn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?qt.STRICT:qt.NORMAL}},kn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Cn=function(e,t){return We(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Je(e)?it(e,t):t},Bn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Lt(e,t)}},Qn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},Tn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},En=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Pn=En("top"),$n=En("right"),Mn=En("bottom"),zn=En("left"),Rn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(We).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Dn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},In=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nn=In("top"),Ln=In("right"),Vn=In("bottom"),Un=In("left"),Fn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Wn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&je(t[0],"none")?[]:Ye(t).map((function(t){for(var n={color:wt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},r=0,o=0;o1?1:0],this.overflowWrap=xr(e,Dn,t.overflowWrap),this.paddingTop=xr(e,Nn,t.paddingTop),this.paddingRight=xr(e,Ln,t.paddingRight),this.paddingBottom=xr(e,Vn,t.paddingBottom),this.paddingLeft=xr(e,Un,t.paddingLeft),this.paintOrder=xr(e,vr,t.paintOrder),this.position=xr(e,Hn,t.position),this.textAlign=xr(e,Fn,t.textAlign),this.textDecorationColor=xr(e,rr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=xr(e,or,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=xr(e,Wn,t.textShadow),this.textTransform=xr(e,Xn,t.textTransform),this.transform=xr(e,jn,t.transform),this.transformOrigin=xr(e,Gn,t.transformOrigin),this.visibility=xr(e,Kn,t.visibility),this.webkitTextStrokeColor=xr(e,yr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=xr(e,Or,t.webkitTextStrokeWidth),this.wordBreak=xr(e,Jn,t.wordBreak),this.zIndex=xr(e,er,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ht(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return ur(this.display,4)||ur(this.display,33554432)||ur(this.display,268435456)||ur(this.display,536870912)||ur(this.display,67108864)||ur(this.display,134217728)},e}(),wr=function(e,t){this.content=xr(e,dr,t.content),this.quotes=xr(e,mr,t.quotes)},_r=function(e,t){this.counterIncrement=xr(e,fr,t.counterIncrement),this.counterReset=xr(e,hr,t.counterReset)},xr=function(e,t,n){var r=new Ve,o=null!=n?n.toString():t.initialValue;r.write(o);var i=new Ue(r.read());switch(t.type){case 2:var a=i.parseComponentValue();return t.parse(e,We(a)?a.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return lt(e,i.parseComponentValue());case"color":return ft(e,i.parseComponentValue());case"image":return Lt(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Ke(s)?s:tt;case"length-percentage":var l=i.parseComponentValue();return Je(l)?l:tt;case"time":return tr.parse(e,i.parseComponentValue())}}},Sr=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},kr=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Sr(t,3),this.styles=new br(e,window.getComputedStyle(t,null)),Eo(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Sr(t,4)&&(this.flags|=16)},Cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Br="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qr=0;Qr<64;Qr++)Br[Cr.charCodeAt(Qr)]=Qr;for(var Tr=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Er=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Mr=0;Mr<64;Mr++)$r[Pr.charCodeAt(Mr)]=Mr;var zr,Rr=8,Dr=9,Ir=11,Nr=12,Lr=function(){for(var e=[],t=0;t>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Vr=function(e){var t,n,r,o=function(e){var t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r=55296&&o<=56319&&n=n)return{done:!0,value:null};for(var e=Ur;ra.x||o.y>a.y;return a=o,0===t||s}));return e.body.removeChild(t),s}(document);return Object.defineProperty(Zr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Zr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var o=new Image,i=t.toDataURL();o.src=i;var a=jr(n,n,0,0,o);return r.fillStyle="red",r.fillRect(0,0,n,n),qr(a).then((function(t){r.drawImage(t,0,0);var o=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height=n+"px",Xr(o)?qr(jr(n,n,0,0,a)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),Xr(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Zr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Zr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Zr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Zr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Zr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Yr=function(e,t){this.text=e,this.bounds=t},Gr=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(r,t);var i=s(e,r);return r.firstChild&&o.replaceChild(r.firstChild,r),i}}return a.EMPTY},Kr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var o=r.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},Jr=function(e){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return function(e){for(var t,n=Wr(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},eo=function(e,t){return 0!==t.letterSpacing?Jr(e):function(e,t){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return no(e,t)}(e,t)},to=[32,160,4961,65792,65793,4153,4241],no=function(e,t){for(var n,r=function(e,t){var n=l(e),r=ie(n,t),o=r[0],i=r[1],a=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e=X;u0)if(Zr.SUPPORT_RANGE_BOUNDS){var o=Kr(r,s,t.length).getClientRects();if(o.length>1){var l=Jr(t),c=0;l.forEach((function(t){i.push(new Yr(t,a.fromDOMRectList(e,Kr(r,c+s,t.length).getClientRects()))),c+=t.length}))}else i.push(new Yr(t,a.fromDOMRectList(e,o)))}else{var u=r.splitText(t.length);i.push(new Yr(t,Gr(e,r))),r=u}else Zr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length})),i}(e,this.text,n,t)},oo=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(io,ao);case 2:return e.toUpperCase();default:return e}},io=/(^|\s|:|-|\(|\))([a-z])/g,ao=function(e,t,n){return e.length>0?t+n.toUpperCase():e},so=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(kr),lo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(kr),co=function(e){function n(t,n){var r=e.call(this,t,n)||this,o=new XMLSerializer,i=s(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(kr),uo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(kr),fo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(kr),ho=[{type:15,flags:0,unit:"px",number:3}],po=[{type:16,flags:0,number:50}],mo="checkbox",go="radio",Ao="password",vo=707406591,yo=function(e){function n(t,n){var r,o,i,s=e.call(this,t,n)||this;switch(s.type=n.type.toLowerCase(),s.checked=n.checked,s.value=0===(i=(o=n).type===Ao?new Array(o.value.length+1).join("•"):o.value).length?o.placeholder||"":i,s.type!==mo&&s.type!==go||(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=(r=s.bounds).width>r.height?new a(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)n.textNodes.push(new ro(e,o,n.styles));else if(To(o))if(Wo(o)&&o.assignedNodes)o.assignedNodes().forEach((function(t){return xo(e,t,n,r)}));else{var a=So(e,o);a.styles.isVisible()&&(Co(o,a,r)?a.flags|=4:Bo(a.styles)&&(a.flags|=2),-1!==_o.indexOf(o.tagName)&&(a.flags|=8),n.elements.push(a),o.slot,o.shadowRoot?xo(e,o.shadowRoot,a,r):Fo(o)||Ro(o)||Ho(o)||xo(e,o,a,r))}},So=function(e,t){return Lo(t)?new so(e,t):Io(t)?new lo(e,t):Ro(t)?new co(e,t):$o(t)?new uo(e,t):Mo(t)?new fo(e,t):zo(t)?new yo(e,t):Ho(t)?new Oo(e,t):Fo(t)?new bo(e,t):Vo(t)?new wo(e,t):new kr(e,t)},ko=function(e,t){var n=So(e,t);return n.flags|=4,xo(e,t,n,n),n},Co=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Do(e)&&n.styles.isTransparent()},Bo=function(e){return e.isPositioned()||e.isFloating()},Qo=function(e){return e.nodeType===Node.TEXT_NODE},To=function(e){return e.nodeType===Node.ELEMENT_NODE},Eo=function(e){return To(e)&&void 0!==e.style&&!Po(e)},Po=function(e){return"object"==typeof e.className},$o=function(e){return"LI"===e.tagName},Mo=function(e){return"OL"===e.tagName},zo=function(e){return"INPUT"===e.tagName},Ro=function(e){return"svg"===e.tagName},Do=function(e){return"BODY"===e.tagName},Io=function(e){return"CANVAS"===e.tagName},No=function(e){return"VIDEO"===e.tagName},Lo=function(e){return"IMG"===e.tagName},Vo=function(e){return"IFRAME"===e.tagName},Uo=function(e){return"STYLE"===e.tagName},Fo=function(e){return"TEXTAREA"===e.tagName},Ho=function(e){return"SELECT"===e.tagName},Wo=function(e){return"SLOT"===e.tagName},Xo=function(e){return e.tagName.indexOf("-")>0},jo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,o=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var i=[];return o&&r.forEach((function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),i},e}(),qo={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Zo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Yo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Go={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ko=function(e,t,n,r,o,i){return en?si(e,o,i.length>0):r.integers.reduce((function(t,n,o){for(;e>=n;)e-=n,t+=r.values[o];return t}),"")+i},Jo=function(e,t,n,r){var o="";do{n||e--,o=r(e)+o,e/=t}while(e*t>=t);return o},ei=function(e,t,n,r,o){var i=n-t+1;return(e<0?"-":"")+(Jo(Math.abs(e),i,r,(function(e){return c(Math.floor(e%i)+t)}))+o)},ti=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Jo(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},ni=function(e,t,n,r,o,i){if(e<-9999||e>9999)return si(e,4,o.length>0);var a=Math.abs(e),s=o;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var c=a%10;0===c&&ur(i,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&ur(i,2)||1===c&&1===l&&ur(i,4)&&e>100||1===c&&l>1&&ur(i,8)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},ri="十百千萬",oi="拾佰仟萬",ii="マイナス",ai="마이너스",si=function(e,t,n){var r=n?". ":"",o=n?"、":"",i=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=ei(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return ti(e,"〇一二三四五六七八九",o);case 6:return Ko(e,1,3999,qo,3,r).toLowerCase();case 7:return Ko(e,1,3999,qo,3,r);case 8:return ei(e,945,969,!1,r);case 9:return ei(e,97,122,!1,r);case 10:return ei(e,65,90,!1,r);case 11:return ei(e,1632,1641,!0,r);case 12:case 49:return Ko(e,1,9999,Zo,3,r);case 35:return Ko(e,1,9999,Zo,3,r).toLowerCase();case 13:return ei(e,2534,2543,!0,r);case 14:case 30:return ei(e,6112,6121,!0,r);case 15:return ti(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return ti(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return ni(e,"零一二三四五六七八九",ri,"負",o,14);case 47:return ni(e,"零壹貳參肆伍陸柒捌玖",oi,"負",o,15);case 42:return ni(e,"零一二三四五六七八九",ri,"负",o,14);case 41:return ni(e,"零壹贰叁肆伍陆柒捌玖",oi,"负",o,15);case 26:return ni(e,"〇一二三四五六七八九","十百千万",ii,o,0);case 25:return ni(e,"零壱弐参四伍六七八九","拾百千万",ii,o,7);case 31:return ni(e,"영일이삼사오육칠팔구","십백천만",ai,i,7);case 33:return ni(e,"零一二三四五六七八九","十百千萬",ai,i,0);case 32:return ni(e,"零壹貳參四五六七八九","拾百千",ai,i,7);case 18:return ei(e,2406,2415,!0,r);case 20:return Ko(e,1,19999,Go,3,r);case 21:return ei(e,2790,2799,!0,r);case 22:return ei(e,2662,2671,!0,r);case 22:return Ko(e,1,10999,Yo,3,r);case 23:return ti(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ti(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ei(e,3302,3311,!0,r);case 28:return ti(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return ti(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return ei(e,3792,3801,!0,r);case 37:return ei(e,6160,6169,!0,r);case 38:return ei(e,4160,4169,!0,r);case 39:return ei(e,2918,2927,!0,r);case 40:return ei(e,1776,1785,!0,r);case 43:return ei(e,3046,3055,!0,r);case 44:return ei(e,3174,3183,!0,r);case 45:return ei(e,3664,3673,!0,r);case 46:return ei(e,3872,3881,!0,r);default:return ei(e,48,57,!0,r)}},li="data-html2canvas-ignore",ci=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new jo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=di(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=i.contentWindow,c=l.document,u=pi(i).then((function(){return r(n,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(yi),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,hi(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(c,n)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(Ai(document.doctype)+""),vi(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(Sr(e,2),Io(e))return this.createCanvasClone(e);if(No(e))return this.createVideoClone(e);if(Uo(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Lo(t)&&(Lo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Xo(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return gi(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){To(t)&&("SCRIPT"===t.tagName||t.hasAttribute(li)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&To(t)&&Uo(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(To(o)&&Wo(o)&&"function"==typeof o.assignedNodes){var i=o.assignedNodes();i.length&&i.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(Qo(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&To(e)&&(Eo(e)||Po(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Eo(r)&&(this.clonedReferenceElement=r),Do(r)&&_i(r);var s=this.counters.parse(new _r(this.context,o)),l=this.resolvePseudoContent(e,r,i,zr.BEFORE);Xo(e)&&(t=!0),No(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,a,zr.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(o&&(this.options.copyStyles||Po(e))&&!Vo(e)||t)&&gi(o,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Fo(e)||Ho(e))&&(Fo(r)||Ho(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var o=this;if(n){var i=n.content,a=t.ownerDocument;if(a&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new _r(this.context,n));var s=new wr(this.context,n),l=a.createElement("html2canvaspseudoelement");gi(n,l),s.content.forEach((function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(We);r.length&&l.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(Ze),c=i[0],u=i[1];if(c&&We(c)){var d=o.counters.getCounterValue(c.value),f=u&&We(u)?Tn.parse(o.context,u.value):3;l.appendChild(a.createTextNode(si(d,f,!1)))}}else if("counters"===t.name){var h=t.values.filter(Ze),p=(c=h[0],h[1]);if(u=h[2],c&&We(c)){var m=o.counters.getCounterValues(c.value),g=u&&We(u)?Tn.parse(o.context,u.value):3,A=p&&0===p.type?p.value:"",v=m.map((function(e){return si(e,g,!1)})).join(A);l.appendChild(a.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(gr(s.quotes,o.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(gr(s.quotes,--o.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}})),l.className=Oi+" "+bi;var c=r===zr.BEFORE?" "+Oi:" "+bi;return Po(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(zr||(zr={}));var ui,di=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(li,"true"),e.body.appendChild(n),n},fi=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},hi=function(e){return Promise.all([].slice.call(e.images,0).map(fi))},pi=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var o=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))}),50)}}))},mi=["all","d","content"],gi=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===mi.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Ai=function(e){var t="";return e&&(t+=""),t},vi=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},yi=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},Oi="___html2canvas___pseudoelement_before",bi="___html2canvas___pseudoelement_after",wi='{\n content: "" !important;\n display: none !important;\n}',_i=function(e){xi(e,"."+Oi+":before"+wi+"\n ."+bi+":after"+wi)},xi=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},Si=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ki=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:$i(e)||Ti(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,a=this;return o(this,(function(o){switch(o.label){case 0:return t=Si.isSameOrigin(e),n=!Ei(e)&&!0===this._options.useCORS&&Zr.SUPPORT_CORS_IMAGES&&!t,r=!Ei(e)&&!t&&!$i(e)&&"string"==typeof this._options.proxy&&Zr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ei(e)||$i(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Pi(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return e(r)}),500),a._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(o,i){var a=Zr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)o(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return o(e.result)}),!1),e.addEventListener("error",(function(e){return i(e)}),!1),e.readAsDataURL(s.response)}else i("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=i;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}s.send()}))},e}(),Ci=/^data:image\/svg\+xml/i,Bi=/^data:image\/.*;base64,/i,Qi=/^data:image\/.*/i,Ti=function(e){return Zr.SUPPORT_SVG_DRAWING||!Mi(e)},Ei=function(e){return Qi.test(e)},Pi=function(e){return Bi.test(e)},$i=function(e){return"blob"===e.substr(0,4)},Mi=function(e){return"svg"===e.substr(-3).toLowerCase()||Ci.test(e)},zi=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Ri=function(e,t,n){return new zi(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Di=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Ri(this.start,this.startControl,t),o=Ri(this.startControl,this.endControl,t),i=Ri(this.endControl,this.end,t),a=Ri(r,o,t),s=Ri(o,i,t),l=Ri(a,s,t);return n?new e(this.start,r,a,l):new e(l,s,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ii=function(e){return 1===e.type},Ni=function(e){var t=e.styles,n=e.bounds,r=ot(t.borderTopLeftRadius,n.width,n.height),o=r[0],i=r[1],a=ot(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],c=ot(t.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],f=ot(t.borderBottomLeftRadius,n.width,n.height),h=f[0],p=f[1],m=[];m.push((o+s)/n.width),m.push((h+u)/n.width),m.push((i+p)/n.height),m.push((l+d)/n.height);var g=Math.max.apply(Math,m);g>1&&(o/=g,i/=g,s/=g,l/=g,u/=g,d/=g,h/=g,p/=g);var A=n.width-s,v=n.height-d,y=n.width-u,O=n.height-p,b=t.borderTopWidth,w=t.borderRightWidth,_=t.borderBottomWidth,x=t.borderLeftWidth,S=it(t.paddingTop,e.bounds.width),k=it(t.paddingRight,e.bounds.width),C=it(t.paddingBottom,e.bounds.width),B=it(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?Li(n.left+x/3,n.top+b/3,o-x/3,i-b/3,ui.TOP_LEFT):new zi(n.left+x/3,n.top+b/3),this.topRightBorderDoubleOuterBox=o>0||i>0?Li(n.left+A,n.top+b/3,s-w/3,l-b/3,ui.TOP_RIGHT):new zi(n.left+n.width-w/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Li(n.left+y,n.top+v,u-w/3,d-_/3,ui.BOTTOM_RIGHT):new zi(n.left+n.width-w/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=h>0||p>0?Li(n.left+x/3,n.top+O,h-x/3,p-_/3,ui.BOTTOM_LEFT):new zi(n.left+x/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?Li(n.left+2*x/3,n.top+2*b/3,o-2*x/3,i-2*b/3,ui.TOP_LEFT):new zi(n.left+2*x/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=o>0||i>0?Li(n.left+A,n.top+2*b/3,s-2*w/3,l-2*b/3,ui.TOP_RIGHT):new zi(n.left+n.width-2*w/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Li(n.left+y,n.top+v,u-2*w/3,d-2*_/3,ui.BOTTOM_RIGHT):new zi(n.left+n.width-2*w/3,n.top+n.height-2*_/3),this.bottomLeftBorderDoubleInnerBox=h>0||p>0?Li(n.left+2*x/3,n.top+O,h-2*x/3,p-2*_/3,ui.BOTTOM_LEFT):new zi(n.left+2*x/3,n.top+n.height-2*_/3),this.topLeftBorderStroke=o>0||i>0?Li(n.left+x/2,n.top+b/2,o-x/2,i-b/2,ui.TOP_LEFT):new zi(n.left+x/2,n.top+b/2),this.topRightBorderStroke=o>0||i>0?Li(n.left+A,n.top+b/2,s-w/2,l-b/2,ui.TOP_RIGHT):new zi(n.left+n.width-w/2,n.top+b/2),this.bottomRightBorderStroke=u>0||d>0?Li(n.left+y,n.top+v,u-w/2,d-_/2,ui.BOTTOM_RIGHT):new zi(n.left+n.width-w/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=h>0||p>0?Li(n.left+x/2,n.top+O,h-x/2,p-_/2,ui.BOTTOM_LEFT):new zi(n.left+x/2,n.top+n.height-_/2),this.topLeftBorderBox=o>0||i>0?Li(n.left,n.top,o,i,ui.TOP_LEFT):new zi(n.left,n.top),this.topRightBorderBox=s>0||l>0?Li(n.left+A,n.top,s,l,ui.TOP_RIGHT):new zi(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Li(n.left+y,n.top+v,u,d,ui.BOTTOM_RIGHT):new zi(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||p>0?Li(n.left,n.top+O,h,p,ui.BOTTOM_LEFT):new zi(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||i>0?Li(n.left+x,n.top+b,Math.max(0,o-x),Math.max(0,i-b),ui.TOP_LEFT):new zi(n.left+x,n.top+b),this.topRightPaddingBox=s>0||l>0?Li(n.left+Math.min(A,n.width-w),n.top+b,A>n.width+w?0:Math.max(0,s-w),Math.max(0,l-b),ui.TOP_RIGHT):new zi(n.left+n.width-w,n.top+b),this.bottomRightPaddingBox=u>0||d>0?Li(n.left+Math.min(y,n.width-x),n.top+Math.min(v,n.height-_),Math.max(0,u-w),Math.max(0,d-_),ui.BOTTOM_RIGHT):new zi(n.left+n.width-w,n.top+n.height-_),this.bottomLeftPaddingBox=h>0||p>0?Li(n.left+x,n.top+Math.min(O,n.height-_),Math.max(0,h-x),Math.max(0,p-_),ui.BOTTOM_LEFT):new zi(n.left+x,n.top+n.height-_),this.topLeftContentBox=o>0||i>0?Li(n.left+x+B,n.top+b+S,Math.max(0,o-(x+B)),Math.max(0,i-(b+S)),ui.TOP_LEFT):new zi(n.left+x+B,n.top+b+S),this.topRightContentBox=s>0||l>0?Li(n.left+Math.min(A,n.width+x+B),n.top+b+S,A>n.width+x+B?0:s-x+B,l-(b+S),ui.TOP_RIGHT):new zi(n.left+n.width-(w+k),n.top+b+S),this.bottomRightContentBox=u>0||d>0?Li(n.left+Math.min(y,n.width-(x+B)),n.top+Math.min(v,n.height+b+S),Math.max(0,u-(w+k)),d-(_+C),ui.BOTTOM_RIGHT):new zi(n.left+n.width-(w+k),n.top+n.height-(_+C)),this.bottomLeftContentBox=h>0||p>0?Li(n.left+x+B,n.top+O,Math.max(0,h-(x+B)),p-(_+C),ui.BOTTOM_LEFT):new zi(n.left+x+B,n.top+n.height-(_+C))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(ui||(ui={}));var Li=function(e,t,n,r,o){var i=(Math.sqrt(2)-1)/3*4,a=n*i,s=r*i,l=e+n,c=t+r;switch(o){case ui.TOP_LEFT:return new Di(new zi(e,c),new zi(e,c-s),new zi(l-a,t),new zi(l,t));case ui.TOP_RIGHT:return new Di(new zi(e,t),new zi(e+a,t),new zi(l,c-s),new zi(l,c));case ui.BOTTOM_RIGHT:return new Di(new zi(l,t),new zi(l,t+s),new zi(e+a,c),new zi(e,c));case ui.BOTTOM_LEFT:default:return new Di(new zi(l,c),new zi(l-a,c),new zi(e,t+s),new zi(e,t))}},Vi=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ui=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Fi=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},Hi=function(e,t){this.path=e,this.target=t,this.type=1},Wi=function(e){this.opacity=e,this.type=2,this.target=6},Xi=function(e){return 1===e.type},ji=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},qi=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Zi=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ni(this.container),this.container.styles.opacity<1&&this.effects.push(new Wi(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new Fi(n,r,o))}if(0!==this.container.styles.overflowX){var i=Vi(this.curves),a=Ui(this.curves);ji(i,a)?this.effects.push(new Hi(i,6)):(this.effects.push(new Hi(i,2)),this.effects.push(new Hi(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var o=n.effects.filter((function(e){return!Xi(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=Vi(n.curves),a=Ui(n.curves);ji(i,a)||r.unshift(new Hi(a,6))}}else r.unshift.apply(r,o);n=n.parent}return r.filter((function(t){return ur(t.target,e)}))},e}(),Yi=function(e,t,n,r){e.container.elements.forEach((function(o){var i=ur(o.flags,4),a=ur(o.flags,2),s=new Zi(o,e);ur(o.styles.display,2048)&&r.push(s);var l=ur(o.flags,8)?[]:r;if(i||a){var c=i||o.styles.isPositioned()?n:t,u=new qi(s);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),c.negativeZIndex.splice(f,0,u)}else if(d>0){var h=0;c.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Yi(s,u,i?u:n,l)}else o.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Yi(s,t,n,l);ur(o.flags,8)&&Gi(o,l)}))},Gi=function(e,t){for(var n=e instanceof fo?e.start:1,r=e instanceof fo&&e.reversed,o=0;o0&&e.intrinsicHeight>0){var r=na(e),o=Ui(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,i,s,l,c,u,d,f,h,p,m,g,A,v,y,O,b;return o(this,(function(o){switch(o.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,s=0,l=t.textNodes,o.label=1;case 1:return s0&&x>0&&(v=r.ctx.createPattern(m,"repeat"),r.renderRepeat(O,v,k,C))):function(e){return 2===e.type}(n)&&(y=ra(e,t,[null,null,null]),O=y[0],b=y[1],w=y[2],_=y[3],x=y[4],S=0===n.position.length?[nt]:n.position,k=it(S[0],_),C=it(S[S.length-1],x),B=function(e,t,n,r,o){var i=0,a=0;switch(e.size){case 0:0===e.shape?i=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)i=a=Math.min(Bt(t,n),Bt(t,n-o),Bt(t-r,n),Bt(t-r,n-o));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-r)),l=Qt(r,o,t,n,!0),c=l[0],u=l[1];a=s*(i=Bt(c-t,(u-n)/s))}break;case 1:0===e.shape?i=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)i=a=Math.max(Bt(t,n),Bt(t,n-o),Bt(t-r,n),Bt(t-r,n-o));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-r));var d=Qt(r,o,t,n,!1);c=d[0],u=d[1],a=s*(i=Bt(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(i=it(e.size[0],r),a=2===e.size.length?it(e.size[1],o):i),[i,a]}(n,k,C,_,x),Q=B[0],T=B[1],Q>0&&T>0&&(E=r.ctx.createRadialGradient(b+k,w+C,0,b+k,w+C,Q),kt(n.stops,2*Q).forEach((function(e){return E.addColorStop(e.stop,pt(e.color))})),r.path(O),r.ctx.fillStyle=E,Q!==T?(P=e.bounds.left+.5*e.bounds.width,$=e.bounds.top+.5*e.bounds.height,z=1/(M=T/Q),r.ctx.save(),r.ctx.translate(P,$),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-P,-$),r.ctx.fillRect(b,z*(w-$)+$,_,x*z),r.ctx.restore()):r.ctx.fill())),o.label=6;case 6:return t--,[2]}}))},r=this,i=0,a=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return o.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,3)];case 6:return o.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,a,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,a,e.curves)];case 10:o.sent(),o.label=11;case 11:a++,o.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,i,a){return r(this,void 0,void 0,(function(){var r,s,l,c,u,d,f,h,p,m,g,A,v,y,O,b;return o(this,(function(o){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Ji(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Ji(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Ji(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Ji(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(i,n),s=Ki(i,n),2===a&&(this.path(s),this.ctx.clip()),Ii(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),Ii(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),f=0===n||2===n?Math.abs(l-u):Math.abs(c-d),this.ctx.beginPath(),3===a?this.formatPath(r):this.formatPath(s.slice(0,2)),h=t<3?3*t:2*t,p=t<3?2*t:t,3===a&&(h=t,p=t),m=!0,f<=2*h?m=!1:f<=2*h+p?(h*=g=f/(2*h+p),p*=g):(A=Math.floor((f+p)/(h+p)),v=(f-A*h)/(A-1),p=(y=(f-(A+1)*h)/A)<=0||Math.abs(p-v)>1;if(e=o[i]))return!0;t=i+1}if(t==n)return!1}}function a(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let t=0,n=0;t=0&&a(d(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function u(e,t,n){for(;t>0;){let r=c(e,t-2,n);if(r=56320&&e<57344}function h(e){return e>=55296&&e<56320}function p(e){return e<65536?1:2}class m{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=x(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),A.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=x(this,e,t);let n=[];return this.decompose(e,t,n,0),A.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new O(this),o=new O(e);for(let e=t,i=t;;){if(r.next(e),o.next(e),e=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(i+=r.value.length,r.done||i>=n)return!0}}iter(e=1){return new O(this,e)}iterRange(e,t=this.length){return new b(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new w(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new g(e):A.from(g.split(e,[])):m.empty}}class g extends m{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let o=0;;o++){let i=this.text[o],a=r+i.length;if((t?n:a)>=e)return new _(r,a,n,i);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new g(y(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=v(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new g(t,e.length+o.length));else{let e=t.length>>1;n.push(new g(t.slice(0,e)),new g(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof g))return super.replace(e,t,n);[e,t]=x(this,e,t);let r=v(this.text,v(n.text,y(this.text,0,e)),t),o=this.length+n.length-(t-e);return r.length<=32?new g(r,o):A.from(g.split(r,[]),o)}sliceString(e,t=this.length,n="\n"){[e,t]=x(this,e,t);let r="";for(let o=0,i=0;o<=t&&ie&&i&&(r+=n),eo&&(r+=a.slice(Math.max(0,e-o),t-o)),o=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new g(n,r)),n=[],r=-1);return r>-1&&t.push(new g(n,r)),t}}class A extends m{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let o=0;;o++){let i=this.children[o],a=r+i.length,s=n+i.lines-1;if((t?s:a)>=e)return i.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let o=0,i=0;i<=t&&o=i){let o=r&((i<=e?1:0)|(s>=t?2:0));i>=e&&s<=t&&!o?n.push(a):a.decompose(e-i,t-i,n,o)}i=s+1}}replace(e,t,n){if([e,t]=x(this,e,t),n.lines=o&&t<=a){let s=i.replace(e-o,t-o,n),l=this.lines-i.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let o=this.children.slice();return o[r]=s,new A(o,this.length-(t-e)+n.length)}return super.replace(o,a,s)}o=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=x(this,e,t);let r="";for(let o=0,i=0;oe&&o&&(r+=n),ei&&(r+=a.sliceString(e-i,t-i,n)),i=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof A))return 0;let n=0,[r,o,i,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==i||o==a)return n;let s=this.children[r],l=e.children[o];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new g(n,t)}let r=Math.max(32,n>>5),o=r<<1,i=r>>1,a=[],s=0,l=-1,c=[];function u(e){let t;if(e.lines>o&&e instanceof A)for(let t of e.children)u(t);else e.lines>i&&(s>i||!s)?(d(),a.push(e)):e instanceof g&&s&&(t=c[c.length-1])instanceof g&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,c[c.length-1]=new g(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),s+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=s&&(a.push(1==c.length?c[0]:A.from(c,l)),l=-1,s=c.length=0)}for(let t of e)u(t);return d(),1==a.length?a[0]:new A(a,t)}}function v(e,t,n=0,r=1e9){for(let o=0,i=0,a=!0;i=n&&(l>r&&(s=s.slice(0,r-o)),o0?1:(e instanceof g?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],i=o>>1,a=r instanceof g?r.text.length:r.children.length;if(i==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof g){let o=r.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,o.length>Math.max(0,e))return this.value=0==e?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=r.children[i+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof g?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class b{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new O(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class w{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(m.prototype[Symbol.iterator]=function(){return this.iter()},O.prototype[Symbol.iterator]=b.prototype[Symbol.iterator]=w.prototype[Symbol.iterator]=function(){return this});class _{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function x(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function S(e,t,n=!0,r=!0){return l(e,t,n,r)}function k(e,t){let n=e.charCodeAt(t);if(!((r=n)>=55296&&r<56320&&t+1!=e.length))return n;var r;let o=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(o)?o-56320+(n-55296<<10)+65536:n}function C(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function B(e){return e<65536?1:2}const Q=/\r\n?|\n/;var T=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(T||(T={}));class E{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return o+(e-r);o+=a}else{if(n!=T.Simple&&l>=e&&(n==T.TrackDel&&re||n==T.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?o:o+s;o+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&o>=e)return!(rt)||"cover";r=o}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new E(e)}static create(e){return new E(e)}}class P extends E{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return z(this,((t,n,r,o,i)=>e=e.replace(r,r+(n-t),i)),!1),e}mapDesc(e,t=!1){return R(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,o=0;r=0){t[r]=a,t[r+1]=i;let s=r>>1;for(;n.length0&&M(n,t,o.text),o.forward(e),a+=e}let l=e[i++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],o=[],i=0,a=null;function s(e=!1){if(!e&&!r.length)return;ia||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?m.of(c.split(n||Q)):c:m.empty,d=u.length;if(e==a&&0==d)return;ei&&$(r,e-i,-1),$(r,a-e,d),M(o,r,u),i=a}}(e),s(!a),a}static empty(e){return new P(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length=0&&n<=0&&n==e[o+1]?e[o]+=t:o>=0&&0==t&&0==e[o]?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}function M(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(o,c,i,u,d),o=c,i=u}}}function R(e,t,n,r=!1){let o=[],i=r?[]:null,a=new I(e),s=new I(t);for(let e=-1;;){if(a.done&&s.len||s.done&&a.len)throw new Error("Mismatched change set lengths");if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);$(o,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return i?P.createSet(o,i):E.create(o);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),i.forward2(t),a.forward(t)}}else $(r,0,a.ins,e),o&&M(o,r,a.text),a.next()}}class I{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?m.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?m.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class N{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new N(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return L.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return L.range(this.anchor,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return L.range(e.anchor,e.head)}static create(e,t,n){return new N(e,t,n)}}class L{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:L.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new L(e.ranges.map((e=>N.fromJSON(e))),e.main)}static single(e,t=e){return new L([L.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?8:0)|o)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;nr.head?L.range(a,i):L.range(i,a))}}return new L(e,t)}}function V(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let U=0;class F{constructor(e,t,n,r,o){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=U++,this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(e={}){return new F(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:H),!!e.static,e.enables)}of(e){return new W([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new W(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new W(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function H(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class W{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=U++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,o=this.id,i=e[o]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:1&(null!==(t=e[n.id])&&void 0!==t?t:1)||c.push(e[n.id]);return{create(e){return e.values[i]=n(e),1},update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||j(e,c)){let t=n(e);if(a?!X(t,e.values[i],r):!r(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[o];if(null!=l){let o=oe(t,l);if(this.dependencies.every((n=>n instanceof F?t.facet(n)===e.facet(n):!(n instanceof Y)||t.field(n,!1)==e.field(n,!1)))||(a?X(s=n(e),o,r):r(s=n(e),o)))return e.values[i]=o,0}else s=n(e);return e.values[i]=s,1}}}}function X(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),o=n.map((e=>e.type)),i=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Z).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(e.values[t]=o,1)},reconfigure:(e,n)=>{let r,o=e.facet(Z),i=n.facet(Z);return(r=o.find((e=>e.field==this)))&&r!=i.find((e=>e.field==this))?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,Z.of({field:this,create:e})]}get extension(){return this}}function G(e){return t=>new J(t,e)}const K={highest:G(0),high:G(1),default:G(2),low:G(3),lowest:G(4)};class J{constructor(e,t){this.inner=e,this.prec=t}}class ee{of(e){return new te(this,e)}reconfigure(e){return ee.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class te{constructor(e,t){this.compartment=e,this.inner=t}}class ne{constructor(e,t,n,r,o,i){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=i,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],o=Object.create(null),i=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],o=new Map;return function e(i,a){let s=o.get(i);if(null!=s){if(s<=a)return;let e=r[s].indexOf(i);e>-1&&r[s].splice(e,1),i instanceof te&&n.delete(i.compartment)}if(o.set(i,a),Array.isArray(i))for(let t of i)e(t,a);else if(i instanceof te){if(n.has(i.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(i.compartment)||i.inner;n.set(i.compartment,r),e(r,a)}else if(i instanceof J)e(i.inner,i.prec);else if(i instanceof Y)r[a].push(i),i.provides&&e(i.provides,a);else if(i instanceof W)r[a].push(i),i.facet.extensions&&e(i.facet.extensions,2);else{let t=i.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${i}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,i))n instanceof Y?r.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==n?void 0:n.config.facets;for(let e in o){let t=o[e],r=t[0].facet,i=c&&c[e]||[];if(t.every((e=>0==e.type)))if(a[r.id]=s.length<<1|1,H(i,t))s.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[r.id]=l.length<<1,l.push((e=>q(e,r,t)))}}let u=l.map((e=>e(a)));return new ne(e,i,u,a,s,o)}}function re(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function oe(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ie=F.define(),ae=F.define({combine:e=>e.some((e=>e)),static:!0}),se=F.define({combine:e=>e.length?e[0]:void 0,static:!0}),le=F.define(),ce=F.define(),ue=F.define(),de=F.define({combine:e=>!!e.length&&e[0]});class fe{constructor(e,t){this.type=e,this.value=t}static define(){return new he}}class he{of(e){return new fe(this,e)}}class pe{constructor(e){this.map=e}of(e){return new me(this,e)}}class me{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new me(this.type,t)}is(e){return this.type==e}static define(e={}){return new pe(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}me.reconfigure=me.define(),me.appendConfig=me.define();class ge{constructor(e,t,n,r,o,i){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=o,this.scrollIntoView=i,this._doc=null,this._state=null,n&&V(n,t.newLength),o.some((e=>e.type==ge.time))||(this.annotations=o.concat(ge.time.of(Date.now())))}static create(e,t,n,r,o,i){return new ge(e,t,n,r,o,i)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ge.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Ae(e,t){let n=[];for(let r=0,o=0;;){let i,a;if(r=e[r]))i=e[r++],a=e[r++];else{if(!(o=0;o--){let i=n[o](e);i&&Object.keys(i).length&&(r=ve(r,ye(t,i,e.changes.newLength),!0))}return r==e?e:ge.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(le)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Ae(n,t))}if(!0!==n){let r,o;if(!1===n)o=e.changes.invertedDesc,r=P.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,o=t.filtered.mapDesc(t.changes).invertedDesc}e=ge.create(t,r,e.selection&&e.selection.map(o),me.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)}let r=t.facet(ce);for(let n=r.length-1;n>=0;n--){let o=r[n](e);e=o instanceof ge?o:Array.isArray(o)&&1==o.length&&o[0]instanceof ge?o[0]:Oe(t,we(o),!1)}return e}(o):o)}ge.time=fe.define(),ge.userEvent=fe.define(),ge.addToHistory=fe.define(),ge.remote=fe.define();const be=[];function we(e){return null==e?be:Array.isArray(e)?e:[e]}var _e=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(_e||(_e={}));const xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Se;try{Se=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class ke{constructor(e,t,n,r,o,i){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=o,i&&(i._state=this);for(let e=0;eo.set(t,e))),n=null),o.set(t.value.compartment,t.value.extension)):t.is(me.reconfigure)?(n=null,r=t.value):t.is(me.appendConfig)&&(n=null,r=we(r).concat(t.value));n?t=e.startState.values.slice():(n=ne.resolve(r,o,this),t=new ke(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let i=e.startState.facet(ae)?e.newSelection:e.newSelection.asSingle();new ke(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:L.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),o=[n.range],i=we(n.effects);for(let n=1;no.spec.fromJSON(i,e))))}return ke.create({doc:e.doc,selection:L.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ne.resolve(e.extensions||[],new Map),n=e.doc instanceof m?e.doc:m.of((e.doc||"").split(t.staticFacet(ke.lineSeparator)||Q)),r=e.selection?e.selection instanceof L?e.selection:L.single(e.selection.anchor,e.selection.head):L.single(0);return V(r,n.length),t.staticFacet(ae)||(r=r.asSingle()),new ke(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(ke.tabSize)}get lineBreak(){return this.facet(ke.lineSeparator)||"\n"}get readOnly(){return this.facet(de)}phrase(e,...t){for(let t of this.facet(ke.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let o of this.facet(ie))for(let i of o(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&r.push(i[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return _e.Space;if(function(e){if(Se)return Se.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||xe.test(n)))return!0}return!1}(e))return _e.Word;for(let n=0;n-1)return _e.Word;return _e.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),i=e-n,a=e-n;for(;i>0;){let e=S(t,i,!1);if(o(t.slice(e,i))!=_e.Word)break;i=e}for(;ae.length?e[0]:4}),ke.lineSeparator=se,ke.readOnly=de,ke.phrases=F.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),ke.languageData=ie,ke.changeFilter=le,ke.transactionFilter=ce,ke.transactionExtender=ue,ee.reconfigure=me.define();class Be{eq(e){return this==e}range(e,t=e){return Qe.create(e,t,this)}}Be.prototype.startSide=Be.prototype.endSide=0,Be.prototype.point=!1,Be.prototype.mapMode=T.TrackDel;class Qe{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Qe(e,t,n)}}function Te(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ee{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let o=n?this.to:this.from;for(let i=r,a=o.length;;){if(i==a)return i;let r=i+a>>1,s=o[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==i)return s>=0?i:a;s>=0?a=r:i=r+1}}between(e,t,n,r){for(let o=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,o);oc||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(i<0&&(i=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-i),o.push(c-i))}return{mapped:n.length?new Ee(r,o,n,a):null,pos:i}}}class Pe{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Pe(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:o=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(n&&(t=t.slice().sort(Te)),this.isEmpty)return t.length?Pe.of(t):this;let a=new ze(this,null,-1).goto(0),s=0,l=[],c=new $e;for(;a.value||s=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||oa.to||o=o&&e<=o+i.length&&!1===i.between(o,e-o,t-o,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Re.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Re.from(e).goto(t)}static compare(e,t,n,r,o=-1){let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),s=Me(i,a,n),l=new Ie(i,s,o),c=new Ie(a,s,o);n.iterGaps(((e,t,n)=>Ne(l,e,c,t,n,r))),n.empty&&0==n.length&&Ne(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let o=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(o.length!=i.length)return!1;if(!o.length)return!0;let a=Me(o,i),s=new Ie(o,a,0).goto(n),l=new Ie(i,a,0).goto(n);for(;;){if(s.to!=l.to||!Le(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,o=-1){let i=new Ie(e,null,o).goto(t),a=t,s=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),o=i.pointFroma&&(r.span(a,e,i.active,s),s=i.openEnd(e));if(i.to>n)return s+(i.point&&i.to>n?1:0);a=i.to,i.next()}}static of(e,t=!1){let n=new $e;for(let r of e instanceof Qe?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Te);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return Pe.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=Pe.empty;r=r.nextLayer)t=new Pe(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Pe.empty=new Pe([],[],null,-1),Pe.empty.nextLayer=Pe.empty;class $e{finishChunk(e){this.chunks.push(new Ee(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new $e)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Pe.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Pe.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Me(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new ze(i,t,n,o));return 1==r.length?r[0]:new Re(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)De(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)De(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),De(this.heap,0)}}}function De(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let o=e[r];if(r+1=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}class Ie{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Re.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ve(this.active,e),Ve(this.activeTo,e),Ve(this.activeRank,e),this.minActive=Fe(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:o}=this.cursor;for(;t0;)t++;Ue(this.active,t,n),Ue(this.activeTo,t,r),Ue(this.activeRank,t,o),e&&Ue(e,t,this.cursor.from),this.minActive=Fe(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ve(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Ne(e,t,n,r,o,i){e.goto(t),n.goto(r);let a=r+o,s=r,l=r-t;for(;;){let t=e.to+l-n.to,r=t||e.endSide-n.endSide,o=r<0?e.to+l:n.to,c=Math.min(o,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Le(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,c,e.point,n.point):c>s&&!Le(e.active,n.active)&&i.compareRange(s,c,e.active,n.active),o>a)break;(t||e.openEnd!=n.openEnd)&&i.boundChange&&i.boundChange(o),s=o,r<=0&&e.next(),r>=0&&n.next()}}function Le(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function Fe(e,t){let n=-1,r=1e9;for(let o=0;o=t)return r;if(r==e.length)break;o+=9==e.charCodeAt(r)?n-o%n:1,r=S(e,r)}return!0===r?-1:e.length}},20713:function(e,t,n){"use strict";var r=n(69565),o=n(79306),i=n(28551),a=n(1767),s=n(19462),l=n(96319),c=s((function(){var e=this.iterator,t=i(r(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),o(e),new c(a(this),{mapper:e})}},21323:function(e){e.exports=864e5},21419:function(e,t,n){"use strict";n.d(t,{oQ:function(){return P}});var r=n(48820),o=n(43720);const i=63;class a{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}}function s(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(c(t)||-1==t)return n}}function l(e){return 32==e||9==e}function c(e){return 10==e||13==e}function u(e){return l(e)||c(e)}function d(e){return e<0||u(e)}a.top=new a(null,-1,0);const f=new r.Aj({start:a.top,reduce(e,t){return 3!=e.type||20!=t&&34!=t?e:e.parent},shift(e,t,n,r){if(3==t)return new a(e,s(r,r.pos),1);if(65==t||5==t)return new a(e,s(r,r.pos),2);if(t==i)return e.parent;if(19==t||33==t)return new a(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new a(e,e.depth+ +t[0],4)}return e},hash(e){return e.hash}});function h(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&d(e.peek(n+3))}const p=new r.Lu(((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let n=e.peek(-1);if((c(n)||n<0)&&3!=t.context.type){if(h(e,45)){if(!t.canShift(i))return e.acceptToken(1,3);e.acceptToken(i)}if(h(e,46)){if(!t.canShift(i))return e.acceptToken(2,3);e.acceptToken(i)}let n=0;for(;32==e.next;)n++,e.advance();!(n{if(3!=t.context.type)if(45==e.next)e.advance(),d(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==s(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),d(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==s(e,e.pos-1)?6:5);else{let n=e.pos;for(;;)if(l(e.next)){if(e.pos==n)return;e.advance()}else if(33==e.next)v(e);else{if(38!=e.next){if(42==e.next){y(e);break}if(39==e.next||34==e.next){if(O(e,!0))break;return}if(91==e.next||123==e.next){if(!b(e))return;break}S(e,!0,!1,0);break}y(e)}for(;l(e.next);)e.advance();if(58==e.next){if(e.pos==n&&t.canShift(29))return;d(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==s(e,n)?66:65,n)}}else 63==e.next&&(e.advance(),d(e.next)&&e.acceptToken(7))}),{contextual:!0});function g(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function A(e,t){return 37==e.next?(e.advance(),g(e.next)&&e.advance(),g(e.next)&&e.advance(),!0):!!((n=e.next)>32&&n<127&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||t&&44==e.next)&&(e.advance(),!0);var n}function v(e){if(e.advance(),60==e.next){for(e.advance();;)if(!A(e,!0)){62==e.next&&e.advance();break}}else for(;A(e,!1););}function y(e){for(e.advance();!d(e.next)&&"f"!=_(e.tag);)e.advance()}function O(e,t){let n=e.next,r=!1,o=e.pos;for(e.advance();;){let i=e.next;if(i<0)break;if(e.advance(),i==n){if(39!=i)break;if(39!=e.next)break;e.advance()}else if(92==i&&34==n)e.next>=0&&e.advance();else if(c(i)){if(t)return!1;r=!0}else if(t&&e.pos>=o+1024)return!1}return!r}function b(e){for(let t=[],n=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!O(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||c(e.next))return!1;e.advance()}}const w="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function _(e){return e<33?"u":e>125?"s":w[e-33]}function x(e,t){let n=_(e);return"u"!=n&&!(t&&"f"==n)}function S(e,t,n,r){if("s"!=_(e.next)&&(63!=e.next&&58!=e.next&&45!=e.next||!x(e.peek(1),n)))return!1;e.advance();let o=e.pos;for(;;){let i=e.next,a=0,s=r+1;for(;u(i);){if(c(i)){if(t)return!1;s=0}else s++;i=e.peek(++a)}if(!(i>=0&&(58==i?x(e.peek(a+1),n):35==i?32!=e.peek(a-1):x(i,n)))||!n&&s<=r||0==s&&!n&&(h(e,45,a)||h(e,46,a)))break;if(t&&"f"==_(i))return!1;for(let t=a;t>=0;t--)e.advance();if(t&&e.pos>o+1024)return!1}return!0}const k=new r.Lu(((e,t)=>{if(33==e.next)v(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;y(e),e.acceptToken(t)}else 39==e.next||34==e.next?(O(e,!1),e.acceptToken(9)):S(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)})),C=new r.Lu(((e,t)=>{let n=4==t.context.type?t.context.depth:-1,r=e.pos;e:for(;;){let o=0,i=e.next;for(;32==i;)i=e.peek(++o);if(!o&&(h(e,45,o)||h(e,46,o)))break;if(!c(i)&&(n<0&&(n=Math.max(t.context.depth+1,o)),oYAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:f,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[B],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[p,m,k,C,0,1],topRules:{Stream:[0,15]},tokenPrec:0});var T=n(15874);n(90365);const E=T.bj.define({name:"yaml",parser:Q.configure({props:[T.Oh.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.frome.pos)return null}}return null},FlowMapping:(0,T.Ay)({closing:"}"}),FlowSequence:(0,T.Ay)({closing:"]"})}),T.b_.add({"FlowMapping FlowSequence":T.yd,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function P(){return new T.Yy(E)}o._A.meta},21607:function(e,t,n){var r=n(87400),o=n(59988),i=n(99917);e.exports=function(e){return function(t,n){var a=o(t),s=a;if(a){n|=0;var l=i(a).split("."),c=l[0],u=l[1]||"",d=u.substring(0,n+1),f=c+(d?"."+d:"");if(n>=u.length)return o(f);if(f=a,n>0){var h=Math.pow(10,n);s=Math[e](r(f,h))/h}else s=Math[e](f)}return s}}},21640:function(e,t,n){var r=n(40870);e.exports=function(e){return r(e)[0]}},21840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),c=s||l.map((function(e){return e.slice(0,r)}));if(!i)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},21857:function(e,t,n){"use strict";n.d(t,{S2:function(){return _},fg:function(){return x}});var r=n(61431),o=n(91361);const i=Symbol("buttonGroupContextKey");var a=n(49766),s=n(22974),l=n(29357),c=n(72207),u=n(2250),d=n(61951),f=n(65980);function h(e,t=20){return e.mix("#141414",t).toString()}var p=n(78396);const m=(0,r.defineComponent)({name:"ElButton"}),g=(0,r.defineComponent)({...m,props:u.D$,emits:u.ro,setup(e,{expose:t,emit:n}){const u=e,p=function(e){const t=(0,c.CB)(),n=(0,f.DU)("button");return(0,r.computed)((()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new d.q(o),s=e.dark?a.tint(20).toString():h(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?h(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?h(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?h(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?h(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?h(a,80):a.tint(80).toString());else{const i=e.dark?h(a,30):a.tint(30).toString(),l=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":i,"hover-text-color":l,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const t=e.dark?h(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(u),m=(0,f.DU)("button"),{_ref:g,_size:A,_type:v,_disabled:y,_props:O,shouldAddSpace:b,handleClick:w}=((e,t)=>{(0,a.b)({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,r.computed)((()=>"text"===e.type)));const n=(0,r.inject)(i,void 0),o=(0,s.H3)("button"),{form:u}=(0,l.j)(),d=(0,c.NV)((0,r.computed)((()=>null==n?void 0:n.size))),f=(0,c.CB)(),h=(0,r.ref)(),p=(0,r.useSlots)(),m=(0,r.computed)((()=>e.type||(null==n?void 0:n.type)||"")),g=(0,r.computed)((()=>{var t,n,r;return null!=(r=null!=(n=e.autoInsertSpace)?n:null==(t=o.value)?void 0:t.autoInsertSpace)&&r})),A=(0,r.computed)((()=>"button"===e.tag?{ariaDisabled:f.value||e.loading,disabled:f.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),v=(0,r.computed)((()=>{var e;const t=null==(e=p.default)?void 0:e.call(p);if(g.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.Text){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1}));return{_disabled:f,_size:d,_type:m,_ref:h,_props:A,shouldAddSpace:v,handleClick:n=>{f.value||e.loading?n.stopPropagation():("reset"===e.nativeType&&(null==u||u.resetFields()),t("click",n))}}})(u,n),_=(0,r.computed)((()=>[m.b(),m.m(v.value),m.m(A.value),m.is("disabled",y.value),m.is("loading",u.loading),m.is("plain",u.plain),m.is("round",u.round),m.is("circle",u.circle),m.is("text",u.text),m.is("link",u.link),m.is("has-bg",u.bg)]));return t({ref:g,size:A,type:v,disabled:y,shouldAddSpace:b}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.tag),(0,r.mergeProps)({ref_key:"_ref",ref:g},(0,r.unref)(O),{class:(0,r.unref)(_),style:(0,r.unref)(p),onClick:(0,r.unref)(w)}),{default:(0,r.withCtx)((()=>[e.loading?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.$slots.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0}):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(o.tk),{key:1,class:(0,r.normalizeClass)((0,r.unref)(m).is("loading"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(o.tk),{key:1},{default:(0,r.withCtx)((()=>[e.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.icon),{key:0})):(0,r.renderSlot)(e.$slots,"icon",{key:1})])),_:3})):(0,r.createCommentVNode)("v-if",!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:(0,r.normalizeClass)({[(0,r.unref)(m).em("text","expand")]:(0,r.unref)(b)})},[(0,r.renderSlot)(e.$slots,"default")],2)):(0,r.createCommentVNode)("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var A=(0,p.A)(g,[["__file","button.vue"]]);const v={size:u.D$.size,type:u.D$.type},y=(0,r.defineComponent)({name:"ElButtonGroup"}),O=(0,r.defineComponent)({...y,props:v,setup(e){const t=e;(0,r.provide)(i,(0,r.reactive)({size:(0,r.toRef)(t,"size"),type:(0,r.toRef)(t,"type")}));const n=(0,f.DU)("button");return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)((0,r.unref)(n).b("group"))},[(0,r.renderSlot)(e.$slots,"default")],2))}});var b=(0,p.A)(O,[["__file","button-group.vue"]]),w=n(64769);const _=(0,w.GU)(A,{ButtonGroup:b}),x=(0,w.WM)(b)},22195:function(e,t,n){"use strict";var r=n(79504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},22355:function(e,t,n){"use strict";n.d(t,{bs:function(){return c},fQ:function(){return u},mf:function(){return s}});var r=n(61431),o=n(50819),i=n(90033),a=n(41651);const s=Symbol("emptyValuesContextKey"),l=["",void 0,null],c=(0,o.b_)({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>(0,i.Tn)(e)?!e():!e}}),u=(e,t)=>{const n=(0,r.getCurrentInstance)()?(0,r.inject)(s,(0,r.ref)({})):(0,r.ref)({}),o=(0,r.computed)((()=>e.emptyValues||n.value.emptyValues||l)),c=(0,r.computed)((()=>(0,i.Tn)(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:(0,i.Tn)(n.value.valueOnClear)?n.value.valueOnClear():void 0!==n.value.valueOnClear?n.value.valueOnClear:void 0!==t?t:void 0));return o.value.includes(c.value)||(0,a.U)("use-empty-values","value-on-clear should be a value of empty-values"),{emptyValues:o,valueOnClear:c,isEmptyValue:e=>o.value.includes(e)}}},22440:function(e,t,n){n(47829)},22454:function(){!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1;var n,r},b=function(e,t){for(var n=e.length,r=new Array(n),o=0;o=0;n--)t(e[n],n)}(e,(function(e,r){n=t(n,e,r)})),n},S=function(e,t){for(var n=0,r=e.length;nt.start.length?-1:1},(r=v.call(t,0)).sort(n),r;var t,n,r},z=function(e){var t=function(t){return E.error({message:t,pattern:e})},n=function(n,r,o){if(void 0!==e.format){var i=void 0;if(l(e.format)){if(!S(e.format,a))return t(n+" pattern has non-string items in the `format` array");i=e.format}else{if(!a(e.format))return t(n+" pattern has non-string `format` parameter");i=[e.format]}return E.value(r(i))}return void 0!==e.cmd?a(e.cmd)?E.value(o(e.cmd,e.value)):t(n+" pattern has non-string `cmd` parameter"):t(n+" pattern is missing both `format` and `cmd` parameters")};if(!s(e))return t("Raw pattern is not an object");if(!a(e.start))return t("Raw pattern is missing `start` parameter");if(void 0!==e.end){if(!a(e.end))return t("Inline pattern has non-string `end` parameter");if(0===e.start.length&&0===e.end.length)return t("Inline pattern has empty `start` and `end` parameters");var r=e.start,o=e.end;return 0===o.length&&(o=r,r=""),n("Inline",(function(e){return{type:"inline-format",start:r,end:o,format:e}}),(function(e,t){return{type:"inline-command",start:r,end:o,cmd:e,value:t}}))}return void 0!==e.replacement?a(e.replacement)?0===e.start.length?t("Replacement pattern has empty `start` parameter"):E.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):t("Replacement pattern has non-string `replacement` parameter"):0===e.start.length?t("Block pattern has empty `start` parameter"):n("Block",(function(t){return{type:"block-format",start:e.start,format:t[0]}}),(function(t,n){return{type:"block-command",start:e.start,cmd:t,value:n}}))},R=function(e){return"block-command"===e.type?{start:e.start,cmd:e.cmd,value:e.value}:"block-format"===e.type?{start:e.start,format:e.format}:"inline-command"===e.type?"mceInsertContent"===e.cmd&&""===e.start?{start:e.end,replacement:e.value}:{start:e.start,end:e.end,cmd:e.cmd,value:e.value}:"inline-format"===e.type?{start:e.start,end:e.end,format:1===e.format.length?e.format[0]:e.format}:void 0},D=function(e){return{inlinePatterns:_(e,P),blockPatterns:M(_(e,$))}},I="undefined"!=typeof window?window:Function("return this;")(),N=function(){for(var e=[],t=0;t=0)return A.some(j(e,t));var r=X(ee);return A.from(r.backwards(e,t,te(e),n)).map((function(e){return j(e.container,e.container.data.length)}))},re=function(e,t,n){if(!q(e))return A.none();var r=e.textContent;if(t>=0&&t<=r.length)return A.some(j(e,t));var o=X(ee);return A.from(o.backwards(e,t,te(e),n)).bind((function(e){var r=e.container.data;return re(e.container,t+r.length,n)}))},oe=function(e,t,n){if(!q(e))return A.none();var r=e.textContent;if(t<=r.length)return A.some(j(e,t));var o=X(ee);return A.from(o.forwards(e,t,te(e),n)).bind((function(e){return oe(e.container,t-r.length,n)}))},ie=function(e,t,n){if(q(t)&&(n<0||n>t.data.length))return[];for(var r=[n],o=t;o!==e&&o.parentNode;){for(var i=o.parentNode,a=0;ae.data.length)?A.none():A.some({node:e,offset:a})}))},le=function(e,t){return se(e,t.start).bind((function(n){var r=n.node,o=n.offset;return se(e,t.end).map((function(e){var t=e.node,n=e.offset,i=document.createRange();return i.setStart(r,o),i.setEnd(t,n),i}))}))},ce=function(e,t,n){(function(e,t,n){if(q(e)&&0>=e.length)return A.some(j(e,0));var r=X(ee);return A.from(r.forwards(e,0,te(e),n)).map((function(e){return j(e.container,0)}))})(t,0,t).each((function(r){var o=r.container;oe(o,n.start.length,t).each((function(n){var r=e.createRng();r.setStart(o,0),r.setEnd(n.container,n.offset),Y(e,r,(function(e){return e===t}))}))}))},ue=function(e,t){var n=e.dom,r=e.selection.getRng();return J(e,r).filter((function(t){var r=V(e),o=""===r&&n.is(t,"body")||n.is(t,r);return null!==t&&o})).bind((function(e){var r=e.textContent,o=function(e,t){var n=t.replace(" "," ");return function(e,t,n){for(var r=0,o=e.length;r=i.length){var o=e.createRng();return o.setStart(r.container,r.offset-i.length),o.setEnd(r.container,r.offset),A.some(o)}var a=r.offset-i.length;return re(r.container,a,n).map((function(t){var n=e.createRng();return n.setStart(t.container,t.offset),n.setEnd(r.container,r.offset),n})).filter((function(e){return e.toString()===i})).orThunk((function(){return ge(e,t,n,j(r.container,0))}))}))},Ae=function(e,t,n){var r=e.dom,o=r.getRoot(),i=n.pattern,a=n.position.container,s=n.position.offset;return re(a,s-n.pattern.end.length,t).bind((function(l){var c=ae(o,l.container,l.offset,a,s);if(K(i))return A.some({matches:[{pattern:i,startRng:c,endRng:c}],position:l});var u=ve(e,n.remainingPatterns,l.container,l.offset,t),d=u.getOr({matches:[],position:l}),f=d.position,h=function(e,t,n,r,o,i){if(void 0===i&&(i=!1),0===t.start.length&&!i){var a=e.createRng();return a.setStart(n,r),a.setEnd(n,r),A.some(a)}return ne(n,r,o).bind((function(n){return ge(e,t,o,n).bind((function(e){if(i){if(e.endContainer===n.container&&e.endOffset===n.offset)return A.none();if(0===n.offset&&e.endContainer.textContent.length===e.endOffset)return A.none()}return A.some(e)}))}))}(r,i,f.container,f.offset,t,u.isNone());return h.map((function(e){var t=function(e,t){return ae(e,t.startContainer,t.startOffset,t.endContainer,t.endOffset)}(o,e);return{matches:d.matches.concat([{pattern:i,startRng:t,endRng:c}]),position:j(e.startContainer,e.startOffset)}}))}))},ve=function(e,t,n,r,o){var i=e.dom;return ne(n,r,i.getRoot()).bind((function(a){var s=i.createRng();s.setStart(o,0),s.setEnd(n,r);for(var l,c,u=s.toString(),d=0;d=t.length&&e.substr(n,n+t.length)===t}(l=u,c=f.end,l.length-c.length)){var h=t.slice();h.splice(d,1);var p=Ae(e,o,{pattern:f,remainingPatterns:h,position:a});if(p.isSome())return p}}return A.none()}))},ye=function(e,t,n){e.selection.setRng(n),"inline-format"===t.type?w(t.format,(function(t){e.formatter.apply(t)})):e.execCommand(t.cmd,!1,t.value)},Oe=function(e,t,n){var r=e.selection.getRng();return!1===r.collapsed?[]:J(e,r).bind((function(o){var i=r.startOffset-(n?1:0);return ve(e,t,r.startContainer,i,o)})).fold((function(){return[]}),(function(e){return e.matches}))},be=function(e,n){if(0!==n.length){var r=e.dom,o=e.selection.getBookmark(),i=function(e,n){var r,o=(r=(new Date).getTime(),"mce_textpattern_"+Math.floor(1e9*Math.random())+ ++de+String(r)),i=x(n,(function(n,r){var i=pe(e,o+"_end"+n.length,r.endRng);return n.concat([t(t({},r),{endMarker:i})])}),[]);return x(i,(function(n,r){var a=i.length-n.length-1,s=K(r.pattern)?r.endMarker:pe(e,o+"_start"+a,r.startRng);return n.concat([t(t({},r),{startMarker:s})])}),[])}(r,n);w(i,(function(t){var n=r.getParent(t.startMarker.start,r.isBlock),o=function(e){return e===n};K(t.pattern)?function(e,t,n,r){var o=he(e.dom,n);Y(e.dom,o,r),ye(e,t,o)}(e,t.pattern,t.endMarker,o):function(e,t,n,r,o){var i=e.dom,a=he(i,r),s=he(i,n);Y(i,s,o),Y(i,a,o);var l={prefix:n.prefix,start:n.end,end:r.start},c=he(i,l);ye(e,t,c)}(e,t.pattern,t.startMarker,t.endMarker,o),me(r,t.endMarker,o),me(r,t.startMarker,o)})),e.selection.moveToBookmark(o)}},we=function(e,t){var n=Oe(e,t.inlinePatterns,!0);n.length>0&&e.undoManager.transact((function(){be(e,n)}))},_e=function(e,t,n){for(var r=0;r0||n.length>0)&&(e.undoManager.add(),e.undoManager.extra((function(){e.execCommand("mceInsertNewLine")}),(function(){e.insertContent("\ufeff"),be(e,n),function(e,t){if(0!==t.length){var n=e.selection.getBookmark();w(t,(function(t){return function(e,t){var n=e.dom,r=t.pattern,o=le(n.getRoot(),t.range).getOrDie("Unable to resolve path range");return J(e,o).each((function(t){"block-format"===r.type?G(r.format,e.formatter)&&e.undoManager.transact((function(){ce(e.dom,t,r),e.formatter.apply(r.format)})):"block-command"===r.type&&e.undoManager.transact((function(){ce(e.dom,t,r),e.execCommand(r.cmd,!1,r.value)}))})),!0}(e,t)})),e.selection.moveToBookmark(n)}}(e,r);var t=e.selection.getRng(),o=ne(t.startContainer,t.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),o.each((function(t){var n=t.container;"\ufeff"===n.data.charAt(t.offset-1)&&(n.deleteData(t.offset-1,1),Z(e.dom,n.parentNode,(function(t){return t===e.dom.getRoot()})))}))})),!0)}(e,t.get())&&n.preventDefault()}),!0),e.on("keyup",(function(n){_e(r,n,(function(e,t){return e===t.keyCode&&!1===F.modifierPressed(t)}))&&we(e,t.get())})),e.on("keypress",(function(r){_e(n,r,(function(e,t){return e.charCodeAt(0)===t.charCode}))&&U.setEditorTimeout(e,(function(){we(e,t.get())}))}))};e.add("textpattern",(function(e){var t=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}(function(e){var t=e.getParam("textpattern_patterns",L,"array");if(!l(t))return N("The setting textpattern_patterns should be an array"),{inlinePatterns:[],blockPatterns:[]};var n=B(b(t,z));return w(n.errors,(function(e){return N(e.message,e.pattern)})),D(n.values)}(e));return xe(e,t),function(e){return{setPatterns:function(t){var n=B(b(t,z));if(n.errors.length>0){var r=n.errors[0];throw new Error(r.message+":\n"+JSON.stringify(r.pattern,null,2))}e.set(D(n.values))},getPatterns:function(){return n(n([],b(e.get().inlinePatterns,R),!0),b(e.get().blockPatterns,R),!0)}}}(t)}))}()},22480:function(e,t,n){"use strict";var r=n(15215),o=n(49890),i=n(59109),a={},s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&o.h_(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=o.mg(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){a[e]=t},t.getAxisPointerClass=function(e){return e&&a[e]},t.type="axis",t}(i.A);t.A=s},22489:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79306),a=n(28551),s=n(1767),l=n(19462),c=n(96319),u=n(96395),d=l((function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=a(o(i,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return a(this),i(e),new d(s(this),{predicate:e})}})},22498:function(e){e.exports=function(e){return e.getMonth()}},22612:function(){!function(){"use strict";var e=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}},r=function(e){return function(t){return typeof t===e}},o=n("string"),i=n("array"),a=r("boolean"),s=function(e){return!function(e){return null==e}(e)},l=r("function"),c=r("number"),u=function(){},d=function(e){return function(){return e}};function f(e){for(var t=[],n=1;nt in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&d(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&d(e,n,t[n]);return e},h=(e,t)=>a(e,s(t));function p(e,t){var n;const r=(0,o.IJ)();return(0,o.nTw)((()=>{r.value=e()}),h(f({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),(0,o.tBZ)(r)}const m="undefined"!=typeof window,g=e=>void 0!==e,A=(Object.prototype.toString,e=>"function"==typeof e),v=e=>"string"==typeof e,y=()=>{},O=m&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function b(e){return"function"==typeof e?e():(0,o.R1X)(e)}function w(e,t){return function(...n){return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(o)}))}}function _(e){return e}function x(e,t){let n,r,i;const a=(0,o.KRz)(!0),s=()=>{a.value=!0,i()};(0,o.wBe)(e,s,{flush:"sync"});const l=A(t)?t:t.get,c=A(t)?void 0:t.set,u=(0,o.rYL)(((e,t)=>(r=e,i=t,{get(){return a.value&&(n=l(),a.value=!1),r(),n},set(e){null==c||c(e)}})));return Object.isExtensible(u)&&(u.trigger=s),u}function S(e){return!!(0,o.o55)()&&((0,o.jr2)(e),!0)}function k(e,t=200,n={}){const r=(0,o.KRz)(e.value),i=function(e,t=200,n={}){return w(function(e,t={}){let n,r,o=y;const i=e=>{clearTimeout(e),o(),o=y};return a=>{const s=b(e),l=b(t.maxWait);return n&&i(n),s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise(((e,c)=>{o=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(a())}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(a())}),s)}))}}(t,n),e)}((()=>{r.value=e.value}),t,n);return(0,o.wBe)(e,(()=>i())),r}function C(e,t=200,n=!1,r=!0,o=!1){return w(function(e,t=!0,n=!0,r=!1){let o,i,a=0,s=!0,l=y;const c=()=>{o&&(clearTimeout(o),o=void 0,l(),l=y)};return u=>{const d=b(e),f=Date.now()-a,h=()=>i=u();return c(),d<=0?(a=Date.now(),h()):(f>d&&(n||!s)?(a=Date.now(),h()):t&&(i=new Promise(((e,t)=>{l=r?t:e,o=setTimeout((()=>{a=Date.now(),s=!0,e(h()),c()}),Math.max(0,d-f))}))),n||o||(o=setTimeout((()=>s=!0),d)),s=!1,i)}}(t,n,r,o),e)}function B(e,t=!0){(0,o.nIK)()?(0,o.sV8)(e):t?e():(0,o.dYV)(e)}function Q(e,t,n={}){const{immediate:r=!0}=n,i=(0,o.KRz)(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){i.value=!1,s()}function c(...n){s(),i.value=!0,a=setTimeout((()=>{i.value=!1,a=null,e(...n)}),b(t))}return r&&(i.value=!0,m&&c()),S(l),{isPending:(0,o.tBZ)(i),start:c,stop:l}}o.Sg5,o.Sg5,o.Sg5,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},22759:function(e,t,n){"use strict";var r=n(98026);t.A=function(e){this.otherDims={},null!=e&&r.extend(this,e)}},22810:function(e){e.exports=function(e){return e.getFullYear()}},22812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}function p(e,t){const n=h(),o=(0,i.DU)(e,(0,r.computed)((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||i.Lt}))),l=(0,s.Ym)((0,r.computed)((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),c=(0,a.YK)((0,r.computed)((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||a._}))),u=(0,r.computed)((()=>{var e;return(0,r.unref)(t)||(null==(e=n.value)?void 0:e.size)||""}));return m((0,r.computed)((()=>(0,r.unref)(n)||{}))),{ns:o,locale:l,zIndex:c,size:u}}const m=(e,t,n=!1)=>{var d;const p=!!(0,r.getCurrentInstance)(),m=p?h():void 0,A=null!=(d=null==t?void 0:t.provide)?d:p?r.provide:void 0;if(!A)return void(0,u.U)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const v=(0,r.computed)((()=>{const t=(0,r.unref)(e);return(null==m?void 0:m.value)?g(m.value,t):t}));return A(o,v),A(s.vx,(0,r.computed)((()=>v.value.locale))),A(i.O5,(0,r.computed)((()=>v.value.namespace))),A(a.d4,(0,r.computed)((()=>v.value.zIndex))),A(l.SN,{size:(0,r.computed)((()=>v.value.size||""))}),A(c.mf,(0,r.computed)((()=>({emptyValues:v.value.emptyValues,valueOnClear:v.value.valueOnClear})))),!n&&f.value||(f.value=v.value),v},g=(e,t)=>{const n=[...new Set([...(0,d.YD)(e),...(0,d.YD)(t)])],r={};for(const o of n)r[o]=void 0!==t[o]?t[o]:e[o];return r}},22997:function(e,t,n){var r=n(50026),o=n(59988);e.exports=function(e,t){return r(o(e),o(t))}},23071:function(e,t,n){"use strict";n.d(t,{G9:function(){return d},Gt:function(){return f},OC:function(){return c},PU:function(){return h},ln:function(){return u},ps:function(){return l},sc:function(){return a}});var r=n(48170),o=n(98026),i=n(13430),a={Must:1,Might:2,Not:3},s=(0,r.$r)();function l(e){s(e).datasetMap=(0,o.createHashMap)()}function c(e,t,n){var r={},i=d(t);if(!i||!e)return r;var a,l,c=[],u=[],f=t.ecModel,h=s(f).datasetMap,p=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),(0,o.each)(e,(function(t,n){var i=(0,o.isObject)(t)?t:e[n]={name:t};"ordinal"===i.type&&null==a&&(a=n,l=A(i)),r[i.name]=[]}));var m=h.get(p)||h.set(p,{categoryWayDim:l,valueWayDim:0});function g(e,t,n){for(var r=0;r{const{excludeListeners:t=!1,excludeKeys:n}=e,l=(0,r.computed)((()=>((null==n?void 0:n.value)||[]).concat(a))),c=(0,r.getCurrentInstance)();return c?(0,r.computed)((()=>{var e;return(0,o.A)(Object.entries(null==(e=c.proxy)?void 0:e.$attrs).filter((([e])=>!(l.value.includes(e)||t&&s.test(e)))))})):((0,i.U)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.computed)((()=>({}))))}},23421:function(e,t,n){"use strict";n.d(t,{FQ:function(){return wt},Ng:function(){return mn},p5:function(){return Nn},El:function(){return gt},zm:function(){return An},Zf:function(){return gn},AS:function(){return vn},Bo:function(){return Qn},FP:function(){return yn},aQ:function(){return On},ZB:function(){return Dn},Ts:function(){return pn},OH:function(){return Cn},pX:function(){return Bn},Oh:function(){return Tn},Ej:function(){return Mn},E:function(){return ct.E},mz:function(){return Rn},cf:function(){return xn},tb:function(){return Sn},lP:function(){return wn},qg:function(){return _n},bf:function(){return bn},iY:function(){return In},xV:function(){return kn},AF:function(){return En},vV:function(){return zn},rE:function(){return mt}});var r=n(15215),o=n(23442),i=n(98026),a=n(38123),s=n(83470),l=n(57861),c=n(48170),u=n(5202),d=n(15915),f="";"undefined"!=typeof navigator&&(f=navigator.platform||"");var h,p,m,g="rgba(0, 0, 0, 0.2)",A={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:g,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:g,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:g,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:g,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:g,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:g,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:f.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},v=n(23071),y=n(7442),O=n(96501),b="\0_ec_inner",w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.init=function(e,t,n,r,o,i){r=r||{},this.option=null,this._theme=new u.A(r),this._locale=new u.A(o),this._optionManager=i},t.prototype.setOption=function(e,t,n){var r=S(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,S(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var o=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):m(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this);s.length&&(0,i.each)(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,o=this._componentsCount,a=[],s=(0,i.createHashMap)(),l=t&&t.replaceMergeMainTypeMap;(0,v.ps)(this),(0,i.each)(e,(function(e,t){null!=e&&(d.A.hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?(0,i.clone)(e):(0,i.merge)(n[t],e,!0))})),l&&l.each((function(e,t){d.A.hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),d.A.topologicalTravel(a,d.A.getAllClassMainTypes(),(function(t){var a=(0,y.a)(this,t,c.qB(e[t])),s=r.get(t),u=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",f=c.O2(s,a,u);c.GX(f,t,d.A),n[t]=null,r.set(t,null),o.set(t,0);var p,m=[],g=[],A=0;(0,i.each)(f,(function(e,n){var r=e.existing,o=e.newOption;if(o){var a="series"===t,s=d.A.getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(p)return;p=!0}if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var l=(0,i.extend)({componentIndex:n},e.keyInfo);r=new s(o,this,this,l),(0,i.extend)(r,l),e.brandNew&&(r.__requireNewView=!0),r.init(o,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(m.push(r.option),g.push(r),A++):(m.push(void 0),g.push(void 0))}),this),n[t]=m,r.set(t,g),o.set(t,A),"series"===t&&h(this)}),this),this._seriesIndices||h(this)},t.prototype.getOption=function(){var e=(0,i.clone)(this.option);return(0,i.each)(e,(function(t,n){if(d.A.hasClass(n)){for(var r=c.qB(t),o=r.length,i=!1,a=o-1;a>=0;a--)r[a]&&!c.oh(r[a])?i=!0:(r[a]=null,!i&&o--);r.length=o,e[n]=r}})),delete e[b],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var o=0;o=t:"max"===n?e<=t:e===t})(r[a],e,i)||(o=!1)}})),o}var $=E,M=i.each,z=i.isObject,R=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function D(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=R.length;n=0;m--){var g=e[m];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,d)),f>=0){var A=g.data.getByRawIndex(g.stackResultDimension,f);if("all"===l||"positive"===l&&A>0||"negative"===l&&A<0||"samesign"===l&&h>=0&&A>0||"samesign"===l&&h<=0&&A<0){h=(0,J.Tr)(h,A),p=A;break}}}return r[0]=h,r[1]=p,r}))}))}var te=n(47355),ne=n(59109),re=n(6666),oe=n(10992),ie=n(90540),ae=n(5638),se=n(5070),le=n(69622),ce=n(34833),ue=n(24711),de=n(32944),fe=n(14962),he=n(8317),pe=(0,c.$r)(),me={itemStyle:(0,de.A)(fe.L,!0),lineStyle:(0,de.A)(he.m,!0)},ge={lineStyle:"stroke",itemStyle:"fill"};function Ae(e,t){return e.visualStyleMapper||me[t]||(console.warn("Unknown style type '"+t+"'."),me.itemStyle)}function ve(e,t){return e.visualDrawType||ge[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var ye={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Ae(e,r)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=ve(e,r),c=a[l],u=(0,i.isFunction)(c)?c:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||u||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,i.isFunction)(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||(0,i.isFunction)(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),o=(0,i.extend)({},a);o[l]=u(r),t.setItemVisual(n,"style",o)}}}},Oe=new u.A,be={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Ae(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Oe.option=n[r];var s=o(Oe),l=e.ensureUniqueItemVisual(t,"style");(0,i.extend)(l,s),Oe.option.decal&&(e.setItemVisual(t,"decal",Oe.option.decal),Oe.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},we={performRawSeries:!0,overallReset:function(e){var t=(0,i.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,o=t.get(r);o||(o={},t.set(r,o)),pe(e).scope=o}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},o=t.getData(),i=pe(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=ve(t,a);o.each((function(e){var t=o.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(o.getItemVisual(a,"colorFromPalette")){var l=o.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",u=n.count();l[s]=t.getColorFromPalette(c,i,u)}}))}}))}},_e=n(43870),xe=n(32322),Se=n(43471),ke=Math.PI,Ce=n(49431),Be=n(12616),Qe=function(){function e(e,t,n,r){this._stageTaskMap=(0,i.createHashMap)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,o=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,i=r&&r.modDataCount;return{step:o,modBy:null!=i?Math.ceil(i/o):null,modDataCount:i}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,i=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:i}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=(0,i.createHashMap)();e.eachSeries((function(e){var r=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;(0,i.each)(this._allHandlers,(function(r){var o=e.get(r.uid)||e.set(r.uid,{});(0,i.assert)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,o,t,n),r.overallReset&&this._createOverallStageTask(r,o,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var o=e.renderTask,i=o.context;i.model=t,i.ecModel=n,i.api=r,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var o=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}(0,i.each)(e,(function(e,i){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,f=u.agentStubMap;f.each((function(e){s(r,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),a.updatePayload(u,n);var h=a.getPerformArgs(u,r.block);f.each((function(e){e.perform(h)})),u.perform(h)&&(o=!0)}else c&&c.each((function(i,l){s(r,i)&&i.dirty();var c=a.getPerformArgs(i,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(i.context.model),a.updatePayload(i,n),i.perform(c)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=(0,i.createHashMap)(),l=e.seriesType,c=e.getTargetSeries;function u(t){var i=t.uid,l=s.set(i,a&&a.get(i)||(0,Ce.U)({plan:Me,reset:ze,count:Ie}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var o=this,a=t.overallTask=t.overallTask||(0,Ce.U)({reset:Te});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=(0,i.createHashMap)(),c=e.seriesType,u=e.getTargetSeries,d=!0,f=!1;function h(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(f=!0,(0,Ce.U)({reset:Ee,onDirty:$e})));n.context={model:e,overallProgress:d},n.agent=a,n.__block=d,o._pipe(e,n)}(0,i.assert)(!e.createOnAllSeries,""),c?n.eachRawSeriesByType(c,h):u?u(n,r).each(h):(d=!1,(0,i.each)(n.getSeries(),h)),f&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return(0,i.isFunction)(e)&&(e={overallReset:e,seriesType:Ne(e)}),e.uid=(0,Be.$Q)("stageHandler"),t&&(e.visualType=t),e},e}();function Te(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ee(e){return e.overallProgress&&Pe}function Pe(){this.agent.dirty(),this.getDownstream().dirty()}function $e(){this.agent&&this.agent.dirty()}function Me(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ze(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=(0,c.qB)(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?(0,i.map)(t,(function(e,t){return De(t)})):Re}var Re=De(0);function De(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var i=t.start;i0&&u===o.length-c.length){var d=o.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,i=!0)}}s.hasOwnProperty(o)&&(n[o]=e,i=!0),i||(r[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,i=n.model,a=n.view;if(!i||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,i,"mainType")&&c(s,i,"subType")&&c(s,i,"index","componentIndex")&&c(s,i,"name")&&c(s,i,"id")&&c(l,o,"name")&&c(l,o,"dataIndex")&&c(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,o));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tt=["symbol","symbolSize","symbolRotate","symbolOffset"],nt=tt.concat(["symbolKeepAspect"]),rt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},o={},a=!1,s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[_t])if(this._disposed)en(this.id);else{var r,o,a;if((0,i.isObject)(t)&&(n=t.lazyUpdate,r=t.silent,o=t.replaceMerge,a=t.transition,t=t.notMerge),this[_t]=!0,!this._model||t){var s=new $(this._api),l=this._theme,c=this._model=new k;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:o},on);var u={seriesTransition:a,optionChanged:!0};if(n)this[xt]={silent:r,updateParams:u},this[_t]=!1,this.getZr().wakeUp();else{try{Et(this),Mt.update.call(this,null,u)}catch(e){throw this[xt]=null,this[_t]=!1,e}this._ssr||this._zr.flush(),this[xt]=null,this[_t]=!1,It.call(this,r),Nt.call(this,r)}}},t.prototype.setTheme=function(){(0,at.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.A.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return(0,i.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],o=this;(0,i.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return(0,i.each)(r,(function(e){e.group.ignore=!1})),a}en(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,a=Math.max,s=1/0;if(un[n]){var l=s,c=s,u=-1/0,d=-1/0,f=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();(0,i.each)(cn,(function(o,s){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas((0,i.clone)(e)),p=o.getDom().getBoundingClientRect();l=r(p.left,l),c=r(p.top,c),u=a(p.right,u),d=a(p.bottom,d),f.push({dom:h,left:p.left,top:p.top})}}));var p=(u*=h)-(l*=h),m=(d*=h)-(c*=h),g=ht.yh.createCanvas(),A=o.init(g,{renderer:t?"svg":"canvas"});if(A.resize({width:p,height:m}),t){var v="";return(0,i.each)(f,(function(e){var t=e.left-l,n=e.top-c;v+=''+e.dom+""})),A.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&A.painter.setBackgroundColor(e.connectedBackgroundColor),A.refreshImmediately(),A.painter.toDataURL()}return e.connectedBackgroundColor&&A.add(new oe.A({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),(0,i.each)(f,(function(e){var t=new ie.Ay({style:{x:e.left*h-l,y:e.top*h-c,image:e.dom}});A.add(t)})),A.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}en(this.id)},t.prototype.convertToPixel=function(e,t){return zt(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return zt(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,o=c._e(r,e);return(0,i.each)(o,(function(e,r){r.indexOf("Models")>=0&&(0,i.each)(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===r){var i=this._chartsMap[e.__viewId];i&&i.containPoint&&(n=n||i.containPoint(t,e))}}),this)}),this),!!n}en(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=c._e(n,e,{defaultMainType:"series"}),o=r.seriesModel.getData(),i=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=i?(0,it.Ez)(o,i,t):(0,it.rI)(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;(0,i.each)(Jt,(function(t){var n=function(n){var r,o=e.getModel(),a=n.target;if("globalout"===t?r={}:a&&(0,ut.R)(a,(function(e){var t=(0,le.z)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=(0,i.extend)({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var c=s&&null!=l&&o.getComponent(s,l),u=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:u},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),(0,i.each)(nn,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),(0,i.each)(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),(0,st.l)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&c.Bq(this.getDom(),hn,"");var e=this,t=e._api,n=e._model;(0,i.each)(e._componentsViews,(function(e){e.dispose(n,t)})),(0,i.each)(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete cn[e.id]}},t.prototype.resize=function(e){if(!this[_t])if(this._disposed)en(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[xt]&&(null==r&&(r=this[xt].silent),n=!0,this[xt]=null),this[_t]=!0;try{n&&Et(this),Mt.update.call(this,{type:"resize",animation:(0,i.extend)({duration:0},e&&e.animation)})}catch(e){throw this[_t]=!1,e}this[_t]=!1,It.call(this,r),Nt.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)en(this.id);else if((0,i.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ln[e]){var n=ln[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=(0,i.extend)({},e);return t.type=nn[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)en(this.id);else if((0,i.isObject)(t)||(t={silent:!!t}),tn[e.type]&&this._model)if(this[_t])this._pendingActions.push(e);else{var n=t.silent;Dt.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&a.A.browser.weChat&&this._throttledZrFlush(),It.call(this,n),Nt.call(this,n)}},t.prototype.updateLabelLayout=function(){ft.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)en(this.id);else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r0?{duration:i,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(ae.LR(e))return;if(e instanceof se.Ay&&(0,ce.fz)(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(o){e.stateTransition=a;var r=e.getTextContent(),i=e.getTextGuideLine();r&&(r.stateTransition=a),i&&(i.stateTransition=a)}e.__dirty&&t(e)}}))}Et=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Pt(e,!0),Pt(e,!1),t.plan()},Pt=function(e,t){for(var n=e._model,r=e._scheduler,o=t?e._componentsViews:e._chartsViews,i=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;lt.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),ft.trigger("series:afterupdate",t,r,s)},jt=function(e){e[St]=!0,e.getZr().wakeUp()},qt=function(e){e[St]&&(e.getZr().storage.traverse((function(e){ae.LR(e)||t(e)})),e[St]=!1)},Wt=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){(0,ce.HY)(t,n),jt(e)},n.prototype.leaveEmphasis=function(t,n){(0,ce.SD)(t,n),jt(e)},n.prototype.enterBlur=function(t){(0,ce.QX)(t),jt(e)},n.prototype.leaveBlur=function(t){(0,ce.JC)(t),jt(e)},n.prototype.enterSelect=function(t){(0,ce.JI)(t),jt(e)},n.prototype.leaveSelect=function(t){(0,ce.gd)(t),jt(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(B))(e)},Xt=function(e){function t(e,t){for(var n=0;n=0)){Pn.push(n);var a=He.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function Mn(e,t){ln[e]=t}function zn(e){(0,ht.Gs)({createCanvas:e})}function Rn(e,t,n){var r=(0,pt.v)("registerMap");r&&r(e,t,n)}function Dn(e){var t=(0,pt.v)("getMap");return t&&t(e)}var In=lt.v5;En(yt,ye),En(bt,be),En(bt,we),En(yt,rt),En(bt,ot),En(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=(0,dt.w)(n,t))}));var o=r.getVisual("decal");o&&(r.getVisual("style").decal=(0,dt.w)(o,t))}}))})),wn(K),_n(900,(function(e){var t=(0,i.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),o=e.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!i.stackedDimension||!i.isStackedByIndex&&!i.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(i)}})),t.each(ee)})),Mn("default",(function(e,t){t=t||{},i.defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _e.A,r=new oe.A({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o,a=new xe.Ay({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new oe.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&((o=new Se.A({shape:{startAngle:-ke/2,endAngle:-ke/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*ke/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*ke/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=a.getBoundingRect().width,i=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*i-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:i),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:c}),s.setShape({x:l-i,y:c-i,width:2*i,height:2*i}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Cn({type:ce.h5,event:ce.h5,update:ce.h5},i.noop),Cn({type:ce.PW,event:ce.PW,update:ce.PW},i.noop),Cn({type:ce.Lv,event:ce.Lv,update:ce.Lv},i.noop),Cn({type:ce.U2,event:ce.U2,update:ce.U2},i.noop),Cn({type:ce.Q6,event:ce.Q6,update:ce.Q6},i.noop),bn("light",Xe),bn("dark",Ke);var Nn={}},23442:function(e,t,n){"use strict";n.r(t),n.d(t,{dispose:function(){return se},disposeAll:function(){return le},getElementSSRData:function(){return de},getInstance:function(){return ce},init:function(){return ae},registerPainter:function(){return ue},registerSSRDataGetter:function(){return fe},version:function(){return he}});var r=n(38123),o=n(98026),i=n(15215),a=n(83509),s=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},l=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,o=n-this._x,i=r-this._y;this._x=n,this._y=r,t.drift(o,i,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,e),"dragleave",e.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),c=n(57861),u=n(35452),d=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var o={points:[],touches:[],target:t,event:e},i=0,a=r.length;i1&&o&&o.length>1){var a=f(o)/f(i);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=o)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},p=n(29308),m="silent";function g(){u.ds(this.event)}var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return(0,i.C6)(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(c.A),v=function(e,t){this.x=e,this.y=t},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],O=new p.A(0,0,0,0),b=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a._hovered=new v(0,0),a.storage=t,a.painter=n,a.painterRoot=o,a._pointerSize=i,r=r||new A,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new l(a),a}return(0,i.C6)(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(o.each(y,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=x(this,t,n),o=this._hovered,i=o.target;i&&!i.__zr&&(i=(o=this.findHover(o.x,o.y)).target);var a=this._hovered=r?new v(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),i&&s!==i&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==i&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new v(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var o="on"+t,i=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(t,e,n);r&&(r[o]&&(i.cancelBubble=!!r[o].call(r,i)),r.trigger(t,i),r=r.__hostTarget?r.__hostTarget:r.parent,!i.cancelBubble););i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[o]&&e[o].call(e,i),e.trigger&&e.trigger(t,i)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),o=new v(e,t);if(_(r,o,e,t,n),this._pointerSize&&!o.target){for(var i=[],a=this._pointerSize,s=a/2,l=new p.A(e-s,t-s,a,a),c=r.length-1;c>=0;c--){var u=r[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(O.copy(u.getBoundingRect()),u.transform&&O.applyTransform(u.transform),O.intersect(l)&&i.push(u))}if(i.length)for(var d=Math.PI/12,f=2*Math.PI,h=0;h=0;i--){var a=e[i],s=void 0;if(a!==o&&!a.ignore&&(s=w(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==m)){t.target=a;break}}}function x(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}o.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){b.prototype[e]=function(t){var n,r,o=t.zrX,i=t.zrY,s=x(this,o,i);if("mouseup"===e&&s||(r=(n=this.findHover(o,i)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var S=b,k=n(83470),C=n(56448),B=!1;function Q(){B||(B=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function T(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var E=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=T}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(Q(),c.z=0),isNaN(c.z2)&&(Q(),c.z2=0),isNaN(c.zlevel)&&(Q(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),P=n(45825),$=n(77193);function M(){return(new Date).getTime()}var z,R,D=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return(0,i.C6)(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=M()-this._pausedTime,n=t-this._time,r=this._head;r;){var o=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=o):r=o}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,(0,P.A)((function t(){e._running&&((0,P.A)(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=M(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=M(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=M()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new $.A(e,t.loop);return this.addAnimator(n),n},t}(c.A),I=r.A.domSupported,N=(R={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:o.map(z,(function(e){var t=e.replace("mouse","pointer");return R.hasOwnProperty(t)?t:e}))}),L=["mousemove","mouseup"],V=["pointermove","pointerup"],U=!1;function F(e){var t=e.pointerType;return"pen"===t||"touch"===t}function H(e){e&&(e.zrByTouch=!0)}function W(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var X=function(e,t){this.stopPropagation=o.noop,this.stopImmediatePropagation=o.noop,this.preventDefault=o.noop,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},j={mousedown:function(e){e=(0,u.e0)(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=(0,u.e0)(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=(0,u.e0)(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){W(this,(e=(0,u.e0)(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){U=!0,e=(0,u.e0)(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){U||(e=(0,u.e0)(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){H(e=(0,u.e0)(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),j.mousemove.call(this,e),j.mousedown.call(this,e)},touchmove:function(e){H(e=(0,u.e0)(this.dom,e)),this.handler.processGesture(e,"change"),j.mousemove.call(this,e)},touchend:function(e){H(e=(0,u.e0)(this.dom,e)),this.handler.processGesture(e,"end"),j.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&j.click.call(this,e)},pointerdown:function(e){j.mousedown.call(this,e)},pointermove:function(e){F(e)||j.mousemove.call(this,e)},pointerup:function(e){j.mouseup.call(this,e)},pointerout:function(e){F(e)||j.mouseout.call(this,e)}};o.each(["click","dblclick","contextmenu"],(function(e){j[e]=function(t){t=(0,u.e0)(this.dom,t),this.trigger(e,t)}}));var q={pointermove:function(e){F(e)||q.mousemove.call(this,e)},pointerup:function(e){q.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Z(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,(0,u.q2)(e.domTarget,t,n,r)}function Y(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&(0,u.f)(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var G,K=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},J=function(e){function t(t,n){var i,a,s,l=e.call(this)||this;return l.__pointerCapturing=!1,l.dom=t,l.painterRoot=n,l._localHandlerScope=new K(t,j),I&&(l._globalHandlerScope=new K(document,q)),i=l,a=l._localHandlerScope,s=a.domHandlers,r.A.pointerEventsSupported?o.each(N.pointer,(function(e){Z(a,e,(function(t){s[e].call(i,t)}))})):(r.A.touchEventsSupported&&o.each(N.touch,(function(e){Z(a,e,(function(t){s[e].call(i,t),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(a)}))})),o.each(N.mouse,(function(e){Z(a,e,(function(t){t=(0,u.mK)(t),a.touching||s[e].call(i,t)}))}))),l}return(0,i.C6)(t,e),t.prototype.dispose=function(){Y(this._localHandlerScope),I&&Y(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,I&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){function n(n){Z(t,n,(function(r){r=(0,u.mK)(r),W(e,r.target)||(r=function(e,t){return(0,u.e0)(e.dom,new X(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}r.A.pointerEventsSupported?o.each(V,n):r.A.touchEventsSupported||o.each(L,n)}(this,t):Y(t)}},t}(c.A),ee=n(47698),te=n(73098),ne=n(43870),re={},oe={},ie=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new E,s=n.renderer||"canvas";re[s]||(s=o.keys(re)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new re[s](t,a,n,e),c=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var u,d=r.A.node||r.A.worker||c?null:new J(l.getViewportRoot(),l.root),f=n.useCoarsePointer;(null==f||"auto"===f?r.A.touchEventsSupported:!!f)&&(u=o.retrieve2(n.pointerSize,44)),this.handler=new S(a,l,d,l.root,u),this.animation=new D({stage:{update:c?null:function(){return i._flush(!0)}}}),c||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return(0,ee.lum)(e,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;te.normalize("NFKD"):e=>e;class d{constructor(e,t,n=0,r=e.length,o,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=o?e=>o(u(e)):u,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,i.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,i.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.Fh)(e);let r=this.normalize(t);if(r.length)for(let e=0,o=n;;e++){let i=r.charCodeAt(e),a=this.match(i,o,this.bufferPos+this.bufferStart);if(e==r.length-1){if(a)return this.value=a,this;break}o==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=v(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new g(t,e.sliceString(t,n));return m.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:o,from:i}=r;return i>t&&(o=e.sliceString(t,i)+o,i=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=v(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=g.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function v(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function y(e){let t=l("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,a=r.doc.lineAt(r.selection.main.head),[,s,l,c,u]=n,d=c?+c.slice(1):0,f=l?+l:a.number;if(l&&u){let e=f/100;s&&(e=e*("-"==s?-1:1)+a.number/r.doc.lines),f=Math.round(r.doc.lines*e)}else l&&s&&(f=f*("-"==s?-1:1)+a.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,f))),p=i.OF.cursor(h.from+Math.max(0,Math.min(d,h.length)));e.dispatch({effects:[O.of(!1),o.Lz.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:l("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:O.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},l("label",e.state.phrase("Go to line"),": ",t)," ",l("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),l("button",{name:"close",onclick:()=>{e.dispatch({effects:O.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["×"]))}}"undefined"!=typeof Symbol&&(p.prototype[Symbol.iterator]=A.prototype[Symbol.iterator]=function(){return this});const O=i.Pe.define(),b=i.sU.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(O)&&(e=n.value);return e},provide:e=>o.S7.from(e,(e=>e?y:null))}),w=o.Lz.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),_={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},x=i.sj.define({combine(e){return(0,i.QR)(e,_,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function S(e){let t=[T,Q];return e&&t.push(x.of(e)),t}const k=o.NZ.mark({class:"cm-selectionMatch"}),C=o.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function B(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==i.Je.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==i.Je.Word)}const Q=o.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(x),{state:n}=e,r=n.selection;if(r.ranges.length>1)return o.NZ.none;let a,s=r.main,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return o.NZ.none;let e=n.wordAt(s.head);if(!e)return o.NZ.none;l=n.charCategorizer(s.head),a=n.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return o.NZ.none;if(t.wholeWords){if(a=n.sliceDoc(s.from,s.to),l=n.charCategorizer(s.head),!B(l,n,s.from,s.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==i.Je.Word&&e(t.sliceDoc(r-1,r))==i.Je.Word}(l,n,s.from,s.to))return o.NZ.none}else if(a=n.sliceDoc(s.from,s.to),!a)return o.NZ.none}let c=[];for(let r of e.visibleRanges){let e=new d(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!l||B(l,n,r,i))&&(s.empty&&r<=s.from&&i>=s.to?c.push(C.range(r,i)):(r>=s.to||i<=s.from)&&c.push(k.range(r,i)),c.length>t.maxMatches))return o.NZ.none}}return o.NZ.set(c)}},{decorations:e=>e.decorations}),T=o.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),E=i.sj.define({combine(e){return(0,i.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new ae(e),scrollToMatch:e=>o.Lz.scrollIntoView(e)})}});class P{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,h),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new N(this):new z(this)}getCursor(e,t=0,n){let r=e.doc?e:i.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?R(this,r,t,n):M(this,r,t,n)}}class ${constructor(e){this.spec=e}}function M(e,t,n,r){return new d(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(o=t.doc,a=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=M(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function R(e,t,n,r){return new p(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(o(D(n.input,n.index))!=i.Je.Word||o(I(n.input,n.index))!=i.Je.Word)&&(o(I(n.input,n.index+n[0].length))!=i.Je.Word||o(D(n.input,n.index+n[0].length))!=i.Je.Word)):void 0},n,r);var o}function D(e,t){return e.slice((0,i.zK)(e,t,!1),t)}function I(e,t){return e.slice(t,(0,i.zK)(e,t))}class N extends ${nextMatch(e,t,n){let r=R(this.spec,e,n,e.doc.length).next();return r.done&&(r=R(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let o=Math.max(t,n-1e4*r),i=R(this.spec,e,o,n),a=null;for(;!i.next().done;)a=i.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,((t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=R(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const L=i.Pe.define(),V=i.Pe.define(),U=i.sU.define({create(e){return new F(ee(e).create(),null)},update(e,t){for(let n of t.effects)n.is(L)?e=new F(n.value.create(),e.panel):n.is(V)&&(e=new F(e.query,n.value?J:null));return e},provide:e=>o.S7.from(e,(e=>e.panel))});class F{constructor(e,t){this.query=e,this.panel=t}}const H=o.NZ.mark({class:"cm-searchMatch"}),W=o.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),X=o.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(U))}update(e){let t=e.state.field(U);(t!=e.startState.field(U)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return o.NZ.none;let{view:n}=this,r=new i.vB;for(let t=0,o=n.visibleRanges,i=o.length;to[t+1].from-500;)s=o[++t].to;e.highlight(n.state,a,s,((e,t)=>{let o=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,o?W:H)}))}return r.finish()}},{decorations:e=>e.decorations});function j(e){return t=>{let n=t.state.field(U,!1);return n&&n.query.spec.valid?e(t,n):re(t)}}const q=j(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let o=i.OF.single(r.from,r.to),a=e.state.facet(E);return e.dispatch({selection:o,effects:[ue(e,r),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),ne(e),!0})),Z=j(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,o=t.prevMatch(n,r,r);if(!o)return!1;let a=i.OF.single(o.from,o.to),s=e.state.facet(E);return e.dispatch({selection:a,effects:[ue(e,o),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),ne(e),!0})),Y=j(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:i.OF.create(n.map((e=>i.OF.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),G=j(((e,{query:t})=>{let{state:n}=e,{from:r,to:a}=n.selection.main;if(n.readOnly)return!1;let s=t.nextMatch(n,r,r);if(!s)return!1;let l,c,u=s,d=[],f=[];if(u.from==r&&u.to==a&&(c=n.toText(t.getReplacement(u)),d.push({from:u.from,to:u.to,insert:c}),u=t.nextMatch(n,u.from,u.to),f.push(o.Lz.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),u){let t=0==d.length||d[0].from>=s.to?0:s.to-s.from-c.length;l=i.OF.single(u.from-t,u.to-t),f.push(ue(e,u)),f.push(n.facet(E).scrollToMatch(l.main,e))}return e.dispatch({changes:d,selection:l,effects:f,userEvent:"input.replace"}),!0})),K=j(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:o.Lz.announce.of(r),userEvent:"input.replace.all"}),!0}));function J(e){return e.state.facet(E).createPanel(e)}function ee(e,t){var n,r,o,i,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(E);return new P({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(o=null==t?void 0:t.literal)&&void 0!==o?o:c.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:c.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function te(e){let t=(0,o.ld)(e,J);return t&&t.dom.querySelector("[main-field]")}function ne(e){let t=te(e);t&&t==e.root.activeElement&&t.select()}const re=e=>{let t=e.state.field(U,!1);if(t&&t.panel){let n=te(e);if(n&&n!=e.root.activeElement){let r=ee(e.state,t.query.spec);r.valid&&e.dispatch({effects:L.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[V.of(!0),t?L.of(ee(e.state,t.query.spec)):i.Pe.appendConfig.of(fe)]});return!0},oe=e=>{let t=e.state.field(U,!1);if(!t||!t.panel)return!1;let n=(0,o.ld)(e,J);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:V.of(!1)}),!0},ie=[{key:"Mod-f",run:re,scope:"editor search-panel"},{key:"F3",run:q,shift:Z,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:q,shift:Z,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:oe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,a=[],s=0;for(let t=new d(e.doc,e.sliceDoc(r,o));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(s=a.length),a.push(i.OF.range(t.value.from,t.value.to))}return t(e.update({selection:i.OF.create(a,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,o.ld)(e,y);if(!t){let n=[O.of(!0)];null==e.state.field(b,!1)&&n.push(i.Pe.appendConfig.of([b,w])),e.dispatch({effects:n}),t=(0,o.ld)(e,y)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=i.OF.create(n.ranges.map((t=>e.wordAt(t.head)||i.OF.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let a=function(e,t){let{main:n,ranges:r}=e.selection,o=e.wordAt(n.head),i=o&&o.from==n.from&&o.to==n.to;for(let n=!1,o=new d(e.doc,t,r[r.length-1].to);;){if(o.next(),!o.done){if(n&&r.some((e=>e.from==o.value.from)))continue;if(i){let t=e.wordAt(o.value.from);if(!t||t.from!=o.value.from||t.to!=o.value.to)continue}return o.value}if(n)return null;o=new d(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!a&&(t(e.update({selection:e.selection.addRange(i.OF.range(a.from,a.to),!1),effects:o.Lz.scrollIntoView(a.to)})),!0)},preventDefault:!0}];class ae{constructor(e){this.view=e;let t=this.query=e.state.field(U).query.spec;function n(e,t,n){return l("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=l("input",{value:t.search,placeholder:se(e,"Find"),"aria-label":se(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=l("input",{value:t.replace,placeholder:se(e,"Replace"),"aria-label":se(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=l("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=l("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=l("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=l("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>q(e)),[se(e,"next")]),n("prev",(()=>Z(e)),[se(e,"previous")]),n("select",(()=>Y(e)),[se(e,"all")]),l("label",null,[this.caseField,se(e,"match case")]),l("label",null,[this.reField,se(e,"regexp")]),l("label",null,[this.wordField,se(e,"by word")]),...e.state.readOnly?[]:[l("br"),this.replaceField,n("replace",(()=>G(e)),[se(e,"replace")]),n("replaceAll",(()=>K(e)),[se(e,"replace all")])],l("button",{name:"close",onclick:()=>oe(e),"aria-label":se(e,"close"),type:"button"},["×"])])}commit(){let e=new P({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:L.of(e)}))}keydown(e){(0,o.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Z:q)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),G(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(L)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(E).top}}function se(e,t){return e.state.phrase(t)}const le=30,ce=/[\s\.,:;?!]/;function ue(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-le),s=Math.min(i,n+le),l=e.state.sliceDoc(a,s);if(a!=r.from)for(let e=0;el.length-le;e--)if(!ce.test(l[e-1])&&ce.test(l[e])){l=l.slice(0,e);break}return o.Lz.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${r.number}.`)}const de=o.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),fe=[U,i.Nb.low(X),de];var he=n(47404);class pe{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class me{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,a=n.facet(ke).markerFilter;a&&(r=a(r,n));let s=e.slice().sort(((e,t)=>e.from-t.from||e.to-t.to)),l=new i.vB,c=[],u=0;for(let e=0;;){let t,r,i=e==s.length?null:s[e];if(!i&&!c.length)break;for(c.length?(t=u,r=c.reduce(((e,t)=>Math.min(e,t.to)),i&&i.from>t?i.from:1e8)):(t=i.from,r=i.to,c.push(i),e++);en.from||n.to==t)){r=Math.min(n.from,r);break}c.push(n),e++,r=Math.min(n.to,r)}let a=ze(c);if(c.some((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from)))l.add(t,t,o.NZ.widget({widget:new Qe(a),diagnostics:c.slice()}));else{let e=c.reduce(((e,t)=>t.markClass?e+" "+t.markClass:e),"");l.add(t,r,o.NZ.mark({class:"cm-lintRange cm-lintRange-"+a+e,diagnostics:c.slice(),inclusiveEnd:c.some((e=>e.to>r))}))}u=r;for(let e=0;e{if(!(t&&o.diagnostics.indexOf(t)<0))if(r){if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new pe(r.from,n,r.diagnostic)}else r=new pe(e,n,t||o.diagnostics[0])})),r}const Ae=i.Pe.define(),ve=i.Pe.define(),ye=i.Pe.define(),Oe=i.sU.define({create(){return new me(o.NZ.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,o=e.panel;if(e.selected){let o=t.changes.mapPos(e.selected.from,1);r=ge(n,e.selected.diagnostic,o)||ge(n,null,o)}!n.size&&o&&t.state.facet(ke).autoPanel&&(o=null),e=new me(n,o,r)}for(let n of t.effects)if(n.is(Ae)){let r=t.state.facet(ke).autoPanel?n.value.length?Ee.open:null:e.panel;e=me.init(n.value,r,t.state)}else n.is(ve)?e=new me(e.diagnostics,n.value?Ee.open:null,e.selected):n.is(ye)&&(e=new me(e.diagnostics,e.panel,n.value));return e},provide:e=>[o.S7.from(e,(e=>e.panel)),o.Lz.decorations.from(e,(e=>e.diagnostics))]}),be=o.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function we(e,t,n){let r,{diagnostics:o}=e.state.field(Oe),i=-1,a=-1;o.between(t-(n<0?1:0),t+(n>0?1:0),((e,o,{spec:s})=>{if(t>=e&&t<=o&&(e==o||(t>e||n>0)&&(tBe(e,t,!1))))}const xe=e=>{let t=e.state.field(Oe,!1);return!(!t||!t.panel||(e.dispatch({effects:ve.of(!1)}),0))},Se=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Oe,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[ve.of(!0)],n.field(Oe,!1)?r:r.concat(i.Pe.appendConfig.of(Re)))});let a=(0,o.ld)(e,Ee.open);return a&&a.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Oe,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],ke=i.sj.define({combine(e){return Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,i.QR)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))}});function Ce(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function Be(e,t,n){var r;let o=n?Ce(t.actions):[];return l("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},l("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let i=!1,a=r=>{if(r.preventDefault(),i)return;i=!0;let o=ge(e.state.field(Oe).diagnostics,t);o&&n.apply(e,o.from,o.to)},{name:s}=n,c=o[r]?s.indexOf(o[r]):-1,u=c<0?s:[s.slice(0,c),l("u",s.slice(c,c+1)),s.slice(c+1)];return l("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${c<0?"":` (access key "${o[r]})"`}.`},u)})),t.source&&l("div",{class:"cm-diagnosticSource"},t.source))}class Qe extends o.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return l("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Te{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Be(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ee{constructor(e){this.view=e,this.items=[],this.list=l("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)xe(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=Ce(n.actions);for(let o=0;o{for(let t=0;txe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Oe).selected;if(!e)return-1;for(let t=0;t{for(let e of s.diagnostics){if(i.has(e))continue;i.add(e);let a,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),o=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}}));n({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=ge(this.view.state.field(Oe).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:ye.of(t)})}static open(e){return new Ee(e)}}function Pe(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const $e=o.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Pe("#d11")},".cm-lintRange-warning":{backgroundImage:Pe("orange")},".cm-lintRange-info":{backgroundImage:Pe("#999")},".cm-lintRange-hint":{backgroundImage:Pe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Me(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function ze(e){let t="hint",n=1;for(let r of e){let e=Me(r.severity);e>n&&(n=e,t=r.severity)}return t}o.wJ;const Re=[Oe,o.Lz.decorations.compute([Oe],(e=>{let{selected:t,panel:n}=e.field(Oe);return t&&n&&t.from!=t.to?o.NZ.set([be.range(t.from,t.to)]):o.NZ.none})),(0,o.Ux)(we,{hideOn:function(e,t){let n=t.pos,r=t.end||n,o=e.state.facet(ke).hideOn(e,n,r);if(null!=o)return o;let i=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Ae)))&&!e.changes.touchesRange(i.from,Math.max(i.to,r)))}}),$e],De=(()=>[(0,o.$K)(),(0,o.Wu)(),(0,o.N$)(),(0,s.b6)(),(0,a.Lv)(),(0,o.VH)(),(0,o.A)(),i.$t.allowMultipleSelections.of(!0),(0,a.WD)(),(0,a.y9)(a.Zt,{fallback:!0}),(0,a.SG)(),(0,he.wm)(),(0,he.yU)(),(0,o.D4)(),(0,o.HJ)(),(0,o.dz)(),S(),o.w4.of([...he.Bc,...s.pw,...ie,...s.cL,...a.f7,...he.OO,...Se])])();var Ie,Ne,Le=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[De]}),Ve=Symbol("vue-codemirror-global-config"),Ue=function(e){var t=new i.xx;return{compartment:t,run:function(n){t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:i.Pe.appendConfig.of(t.of(n))})}}},Fe=function(e,t){var n=Ue(e),r=n.compartment,o=n.run;return function(n){var i=r.get(e.state);o((null!=n?n:i!==t)?t:[])}},He={type:Boolean,default:void 0},We={autofocus:He,disabled:He,indentWithTab:He,tabSize:Number,placeholder:String,style:Object,autoDestroy:He,phrases:Object,root:Object,extensions:Array,selection:Object},Xe={modelValue:{type:String,default:""}},je=Object.assign(Object.assign({},We),Xe);(Ne=Ie||(Ie={})).Change="change",Ne.Update="update",Ne.Focus="focus",Ne.Blur="blur",Ne.Ready="ready",Ne.ModelUpdate="update:modelValue";var qe={};qe[Ie.Change]=function(e,t){return!0},qe[Ie.Update]=function(e){return!0},qe[Ie.Focus]=function(e){return!0},qe[Ie.Blur]=function(e){return!0},qe[Ie.Ready]=function(e){return!0};var Ze={};Ze[Ie.ModelUpdate]=qe[Ie.Change];var Ye=Object.assign(Object.assign({},qe),Ze),Ge=(0,r.defineComponent)({name:"VueCodemirror",props:Object.assign({},je),emits:Object.assign({},Ye),setup:function(e,t){var n=(0,r.shallowRef)(),l=(0,r.shallowRef)(),c=(0,r.shallowRef)(),u=Object.assign(Object.assign({},Le),(0,r.inject)(Ve,{})),d=(0,r.computed)((function(){var t={};return Object.keys((0,r.toRaw)(e)).forEach((function(n){var r;"modelValue"!==n&&(t[n]=null!==(r=e[n])&&void 0!==r?r:u[n])})),t}));return(0,r.onMounted)((function(){var f;l.value=function(e){var t=e.onUpdate,n=e.onChange,r=e.onFocus,a=e.onBlur,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(m(n,(function(e){var n,r=A(e),l=T(r),u=function(e,t){return(t?(n=e,r="ol,ul",function(e,t,n){for(var o=e.dom,i=a(n)?n:c;o.parentNode;){o=o.parentNode;var s=A(o);if(v(s,r))return p.some(s);if(i(s))break}return p.none()}(n,0,o)):p.some(e)).getOr(e);var n,r,o}(r,l);(n=u,function(e){return p.from(e.dom.parentNode).map(A)}(n).filter(O)).each((function(e){if(B(e)!==t?function(e,t,n){!function(e,t,n){if(!(o(n)||i(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}(u,"dir",t):B(u)!==t&&x(u,"dir"),l){var n=Q(u,"li[dir]");m(n,(function(e){return x(e,"dir")}))}}))})),e.nodeChanged())},P=function(e,t){return function(n){var r=function(e){var r=A(e.element);n.setActive(B(r)===t)};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}};n.add("directionality",(function(e){!function(e){e.addCommand("mceDirectionLTR",(function(){E(e,"ltr")})),e.addCommand("mceDirectionRTL",(function(){E(e,"rtl")}))}(e),function(e){e.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return e.execCommand("mceDirectionLTR")},onSetup:P(e,"ltr")}),e.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return e.execCommand("mceDirectionRTL")},onSetup:P(e,"rtl")})}(e)}))}()},24326:function(e,t,n){"use strict";n.d(t,{Cb:function(){return a},Cm:function(){return _},IH:function(){return B},Is:function(){return g},LI:function(){return l},NX:function(){return w},Sm:function(){return k},Tr:function(){return m},XV:function(){return u},Y6:function(){return c},YV:function(){return x},_7:function(){return A},_U:function(){return O},au:function(){return b},dh:function(){return v},hb:function(){return f},kM:function(){return p},kf:function(){return C},lQ:function(){return T},lo:function(){return s},sL:function(){return S},wp:function(){return h},y6:function(){return d}});var r=n(98026),o=1e-4,i=20;function a(e,t,n,r){var o=t[0],i=t[1],a=n[0],s=n[1],l=i-o,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(r)if(l>0){if(e<=o)return a;if(e>=i)return s}else{if(e>=o)return a;if(e<=i)return s}else{if(e===o)return a;if(e===i)return s}return(e-o)/l*c+a}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return r.isString(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),i),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return d(e)}function d(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,i=t.indexOf("."),a=i<0?0:o-1-i;return Math.max(0,a-r)}function f(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-o+i,0),20);return isFinite(a)?a:20}function h(e,t,n){return e[t]&&p(e,n)[t]||0}function p(e,t){var n=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var o=Math.pow(10,t),i=r.map(e,(function(e){return(isNaN(e)?0:e)/n*o*100})),a=100*o,s=r.map(i,(function(e){return Math.floor(e)})),l=r.reduce(s,(function(e,t){return e+t}),0),c=r.map(i,(function(e,t){return e-s[t]}));lu&&(u=c[f],d=f);++s[d],c[d]=0,++l}return r.map(s,(function(e){return e/o}))}function m(e,t){var n=Math.max(u(e),u(t)),r=e+t;return n>i?r:l(r,n)}var g=9007199254740991;function A(e){var t=2*Math.PI;return(e%t+t)%t}function v(e){return e>-o&&e=10&&t++,t}function _(e,t){var n=w(e),r=Math.pow(10,n),o=e/r;return e=(t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function x(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o}function S(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0?d():u=setTimeout(d,-o),l=r};return f.clear=function(){u&&(clearTimeout(u),u=null)},f.debounceNextCall=function(e){s=e},f}function s(e,t,n,s){var l=e[t];if(l){var c=l[r]||l,u=l[i];if(l[o]!==n||u!==s){if(null==n||!s)return e[t]=c;(l=e[t]=a(c,n,"debounce"===s))[r]=c,l[i]=s,l[o]=n}return l}}function l(e,t){var n=e[t];n&&n[r]&&(n.clear&&n.clear(),e[t]=n[r])}},24855:function(){!function(){"use strict";var e,t,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1?"www."===t[1]?"https://":t[1]:"https://"}(t),r=e.regex.exec(t),o=n+e.url,i=function(e){o=o.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a0?k.extend({},o[0],{url:U(o[0],r)}):null);if(i&&(n.source=i.url,n.type=i.type,n.allowfullscreen=i.allowFullscreen,n.width=n.width||String(i.w),n.height=n.height||String(i.h)),n.embed)return L(n.embed,n,!0);var a=Q(x(e),n.source);a&&(n.type="script",n.width=String(a.width),n.height=String(a.height));var s=function(e){return e.getParam("audio_template_callback")}(e),l=function(e){return e.getParam("video_template_callback")}(e);return n.width=n.width||"300",n.height=n.height||"150",k.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'"}(n):"application/x-shockwave-flash"===n.sourcemime?function(e){var t='';return e.poster&&(t+=''),t+""}(n):-1!==n.sourcemime.indexOf("audio")?function(e,t){return t?t(e):'"}(n,s):"script"===n.type?function(e){return'