diff --git a/admin-views/dist/assets/BarCode-33c4445d.js.gz b/admin-views/dist/assets/BarCode-33c4445d.js.gz deleted file mode 100644 index fc5b3410..00000000 Binary files a/admin-views/dist/assets/BarCode-33c4445d.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/BarCode-33c4445d.js b/admin-views/dist/assets/BarCode-6576ecf3.js similarity index 99% rename from admin-views/dist/assets/BarCode-33c4445d.js rename to admin-views/dist/assets/BarCode-6576ecf3.js index 7431b0ba..e50a78c9 100644 --- a/admin-views/dist/assets/BarCode-33c4445d.js +++ b/admin-views/dist/assets/BarCode-6576ecf3.js @@ -1 +1 @@ -import{e as At,w as Pt,R as te,c9 as Tt}from"./index-79ae6e73.js";var he={},U={},l={};Object.defineProperty(l,"__esModule",{value:!0});function Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kt=function t(e,r){Mt(this,t),this.data=e,this.text=r.text||e,this.options=r};l.default=kt;Object.defineProperty(U,"__esModule",{value:!0});U.CODE39=void 0;var It=function(){function t(e,r){for(var n=0;n=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var $=e.getBar(u),Rt=u*a;return{result:$+o.result,checksum:Rt+o.checksum}}}]),e}(Wt.default);P.default=tn;var _e={};Object.defineProperty(_e,"__esModule",{value:!0});var g=f,ut=function(e){return e.match(new RegExp("^"+g.A_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+g.B_CHARS+"*"))[0].length},ct=function(e){return e.match(new RegExp("^"+g.C_CHARS+"*"))[0]};function ve(t,e){var r=e?g.A_CHARS:g.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+lt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+ve(t.substring(a.length),!e)}function lt(t){var e=ct(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ut(t)>=ft(t);return e+String.fromCharCode(n?206:205)+ve(t,n)}_e.default=function(t){var e=void 0,r=ct(t).length;if(r>=2)e=g.C_START_CHAR+lt(t);else{var n=ut(t)>ft(t);e=(n?g.A_START_CHAR:g.B_START_CHAR)+ve(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return String.fromCharCode(203)+i})};Object.defineProperty(de,"__esModule",{value:!0});var nn=P,rn=ht(nn),an=_e,on=ht(an);function ht(t){return t&&t.__esModule?t:{default:t}}function un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cn=function(t){fn(e,t);function e(r,n){if(un(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,on.default)(r),n));else var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ae(a)}return e}(rn.default);de.default=cn;var se={};Object.defineProperty(se,"__esModule",{value:!0});var ln=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:S.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:S.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:S.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[S.SIDE_BIN,this.leftEncode(),S.MIDDLE_BIN,this.rightEncode(),S.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Vn.default);V.default=Yn;Object.defineProperty(ge,"__esModule",{value:!0});var Zn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Br(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==fe(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,x.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,x.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,x.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,x.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Cr.default);function fe(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Xr;var me={};Object.defineProperty(me,"__esModule",{value:!0});var zr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Kr[parseInt(a)][parseInt(n)];return(0,qr.default)(this.middleDigits,i)}}]),e}(Jr.default);function Je(t,e){for(var r=parseInt(t[t.length-1]),n=Zr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(ki.default);Q.pharmacode=Li;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var Ni=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Et(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function Eo(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=Oo;d.getEncodingHeight=Ot;d.getBarcodePadding=Et;d.calculateEncodingAttributes=po;d.getTotalWidthOfEncodings=go;Object.defineProperty(Ie,"__esModule",{value:!0});var bo=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();Ie.default=xo;var De={};Object.defineProperty(De,"__esModule",{value:!0});var Ro=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();De.default=ko;var je={};Object.defineProperty(je,"__esModule",{value:!0});var Io=function(){function t(e,r){for(var n=0;n"u"?"undefined":Uo(t))==="object"&&!t.nodeName)return{element:t,renderer:B.default.ObjectRenderer};throw new Jo.InvalidElementException}}function Qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,iu.default)(e),a._encodings=[],a._options=$t.default,a._errorHandler=new cu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=xt()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return E.default[t]};for(var tt in E.default)E.default.hasOwnProperty(tt)&&hu(E.default,tt);function hu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,G.default)(a._options,n);i=(0,uu.default)(i);var o=t[e],u=St(r,o,i);return a._encodings.push(u),a})}}function St(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new wt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,mt.default)(a);for(var i=0;i=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var $=e.getBar(u),Rt=u*a;return{result:$+o.result,checksum:Rt+o.checksum}}}]),e}(Wt.default);P.default=tn;var _e={};Object.defineProperty(_e,"__esModule",{value:!0});var g=f,ut=function(e){return e.match(new RegExp("^"+g.A_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+g.B_CHARS+"*"))[0].length},ct=function(e){return e.match(new RegExp("^"+g.C_CHARS+"*"))[0]};function ve(t,e){var r=e?g.A_CHARS:g.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+lt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+ve(t.substring(a.length),!e)}function lt(t){var e=ct(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ut(t)>=ft(t);return e+String.fromCharCode(n?206:205)+ve(t,n)}_e.default=function(t){var e=void 0,r=ct(t).length;if(r>=2)e=g.C_START_CHAR+lt(t);else{var n=ut(t)>ft(t);e=(n?g.A_START_CHAR:g.B_START_CHAR)+ve(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return String.fromCharCode(203)+i})};Object.defineProperty(de,"__esModule",{value:!0});var nn=P,rn=ht(nn),an=_e,on=ht(an);function ht(t){return t&&t.__esModule?t:{default:t}}function un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cn=function(t){fn(e,t);function e(r,n){if(un(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,on.default)(r),n));else var a=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ae(a)}return e}(rn.default);de.default=cn;var se={};Object.defineProperty(se,"__esModule",{value:!0});var ln=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,Ue.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:S.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:S.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:S.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[S.SIDE_BIN,this.leftEncode(),S.MIDDLE_BIN,this.rightEncode(),S.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Vn.default);V.default=Yn;Object.defineProperty(ge,"__esModule",{value:!0});var Zn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Br(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==fe(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,x.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,x.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,x.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,x.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Cr.default);function fe(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Xr;var me={};Object.defineProperty(me,"__esModule",{value:!0});var zr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return zr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Kr[parseInt(a)][parseInt(n)];return(0,qr.default)(this.middleDigits,i)}}]),e}(Jr.default);function Je(t,e){for(var r=parseInt(t[t.length-1]),n=Zr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(ki.default);Q.pharmacode=Li;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var Ni=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Et(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function Eo(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=Oo;d.getEncodingHeight=Ot;d.getBarcodePadding=Et;d.calculateEncodingAttributes=po;d.getTotalWidthOfEncodings=go;Object.defineProperty(Ie,"__esModule",{value:!0});var bo=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();Ie.default=xo;var De={};Object.defineProperty(De,"__esModule",{value:!0});var Ro=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();De.default=ko;var je={};Object.defineProperty(je,"__esModule",{value:!0});var Io=function(){function t(e,r){for(var n=0;n"u"?"undefined":Uo(t))==="object"&&!t.nodeName)return{element:t,renderer:B.default.ObjectRenderer};throw new Jo.InvalidElementException}}function Qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,iu.default)(e),a._encodings=[],a._options=$t.default,a._errorHandler=new cu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=xt()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return E.default[t]};for(var tt in E.default)E.default.hasOwnProperty(tt)&&hu(E.default,tt);function hu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,G.default)(a._options,n);i=(0,uu.default)(i);var o=t[e],u=St(r,o,i);return a._encodings.push(u),a})}}function St(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new wt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,mt.default)(a);for(var i=0;i0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,In.default)(e,function(n){Array.isArray(n)?t(n).map(function(a){return r.push(a)}):(0,Ln.default)(n)?(0,Dn.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,Bn.default)(n)&&r.push(n)}),r};ke.default=Gn;var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.mergeClasses=void 0;var zn=mt,Un=Wr(zn),Wn=$n,Xn=Wr(Wn),Vn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],n=e.default&&(0,Xn.default)(e.default)||{};return r.map(function(a){var i=e[a];return i&&(0,Un.default)(i,function(o,l){n[l]||(n[l]={}),n[l]=Vn({},n[l],i[l])}),a}),n};Fe.default=Kn;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.autoprefix=void 0;var qn=mt,qt=Zn(qn),Yn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){aa(a,n);function a(){var i,o,l,u;na(this,a);for(var f=arguments.length,h=Array(f),c=0;c1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){fa(a,n);function a(){var i,o,l,u;ua(this,a);for(var f=arguments.length,h=Array(f),c=0;c1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=l};return e===0&&a("first-child"),e===r-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),n};yt.default=ca;Object.defineProperty(F,"__esModule",{value:!0});F.ReactCSS=F.loop=F.handleActive=wt=F.handleHover=F.hover=void 0;var pa=ke,da=me(pa),ga=Fe,ba=me(ga),va=Be,xa=me(va),ma=He,Xr=me(ma),ya=De,wa=me(ya),Ea=yt,Sa=me(Ea);function me(t){return t&&t.__esModule?t:{default:t}}F.hover=Xr.default;var wt=F.handleHover=Xr.default;F.handleActive=wa.default;F.loop=Sa.default;var Ca=F.ReactCSS=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;al?p=1:p=Math.round(c*100/l)/100,r.a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}else{var d=void 0;if(h<0?d=0:h>o?d=1:d=Math.round(h*100/o)/100,a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}return null},ot={},Oa=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},Ra=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(ot[i])return ot[i];var o=Oa(e,r,n,a);return ot[i]=o,o},Jt=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,In.default)(e,function(n){Array.isArray(n)?t(n).map(function(a){return r.push(a)}):(0,Ln.default)(n)?(0,Dn.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,Bn.default)(n)&&r.push(n)}),r};ke.default=Gn;var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.mergeClasses=void 0;var zn=mt,Un=Wr(zn),Wn=$n,Xn=Wr(Wn),Vn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],n=e.default&&(0,Xn.default)(e.default)||{};return r.map(function(a){var i=e[a];return i&&(0,Un.default)(i,function(o,l){n[l]||(n[l]={}),n[l]=Vn({},n[l],i[l])}),a}),n};Fe.default=Kn;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.autoprefix=void 0;var qn=mt,qt=Zn(qn),Yn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){aa(a,n);function a(){var i,o,l,u;na(this,a);for(var f=arguments.length,h=Array(f),c=0;c1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){fa(a,n);function a(){var i,o,l,u;ua(this,a);for(var f=arguments.length,h=Array(f),c=0;c1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=l};return e===0&&a("first-child"),e===r-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),n};yt.default=ca;Object.defineProperty(F,"__esModule",{value:!0});F.ReactCSS=F.loop=F.handleActive=wt=F.handleHover=F.hover=void 0;var pa=ke,da=me(pa),ga=Fe,ba=me(ga),va=Be,xa=me(va),ma=He,Xr=me(ma),ya=De,wa=me(ya),Ea=yt,Sa=me(Ea);function me(t){return t&&t.__esModule?t:{default:t}}F.hover=Xr.default;var wt=F.handleHover=Xr.default;F.handleActive=wa.default;F.loop=Sa.default;var Ca=F.ReactCSS=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;al?p=1:p=Math.round(c*100/l)/100,r.a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}else{var d=void 0;if(h<0?d=0:h>o?d=1:d=Math.round(h*100/o)/100,a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}return null},ot={},Oa=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},Ra=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(ot[i])return ot[i];var o=Oa(e,r,n,a);return ot[i]=o,o},Jt=Object.assign||function(t){for(var e=1;e-1},Ia=function(e){return Number(String(e).replace(/%/g,""))},Ga=1,w=function(t){Ha(e,t);function e(r){Fa(this,e);var n=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=Ia(a.target.value);if(!isNaN(i)&&ja(a.keyCode)){var o=n.getArrowOffset(),l=a.keyCode===Vr?i+o:i-o;n.setUpdatedValue(l,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+Ga++,n}return Ma(e,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return ka({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Da}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=y({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return $e("div",{style:a.wrap,children:[O("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?O("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown,children:this.props.label}):null]})}}]),e}(R.PureComponent||R.Component),za=function(e,r,n,a){var i=a.clientWidth,o=a.clientHeight,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(a.getBoundingClientRect().left+window.pageXOffset),h=u-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var c=void 0;if(h<0)c=359;else if(h>o)c=0;else{var p=-(h*100/o)+100;c=360*p/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(f<0)d=0;else if(f>i)d=359;else{var v=f*100/i;d=360*v/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Ua=function(){function t(e,r){for(var n=0;n-1}function Qa(t,e){var r=this.__data__,n=Ze(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function I(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=yo}function Ee(t){return t!=null&&Ot(t.length)&&!St(t)}function wo(t){return X(t)&&Ee(t)}function Eo(){return!1}var tn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sr=tn&&typeof module=="object"&&module&&!module.nodeType&&module,So=sr&&sr.exports===tn,ur=So?N.Buffer:void 0,Co=ur?ur.isBuffer:void 0,_o=Co||Eo;const Ve=_o;var Oo="[object Object]",Ro=Function.prototype,Ao=Object.prototype,rn=Ro.toString,To=Ao.hasOwnProperty,$o=rn.call(Object);function Po(t){if(!X(t)||Z(t)!=Oo)return!1;var e=Qr(t);if(e===null)return!0;var r=To.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&rn.call(r)==$o}var Mo="[object Arguments]",ko="[object Array]",Fo="[object Boolean]",Bo="[object Date]",Ho="[object Error]",Do="[object Function]",No="[object Map]",Lo="[object Number]",jo="[object Object]",Io="[object RegExp]",Go="[object Set]",zo="[object String]",Uo="[object WeakMap]",Wo="[object ArrayBuffer]",Xo="[object DataView]",Vo="[object Float32Array]",Ko="[object Float64Array]",qo="[object Int8Array]",Yo="[object Int16Array]",Zo="[object Int32Array]",Jo="[object Uint8Array]",Qo="[object Uint8ClampedArray]",el="[object Uint16Array]",tl="[object Uint32Array]",S={};S[Vo]=S[Ko]=S[qo]=S[Yo]=S[Zo]=S[Jo]=S[Qo]=S[el]=S[tl]=!0;S[Mo]=S[ko]=S[Wo]=S[Fo]=S[Xo]=S[Bo]=S[Ho]=S[Do]=S[No]=S[Lo]=S[jo]=S[Io]=S[Go]=S[zo]=S[Uo]=!1;function rl(t){return X(t)&&Ot(t.length)&&!!S[Z(t)]}function nl(t){return function(e){return t(e)}}var nn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Te=nn&&typeof module=="object"&&module&&!module.nodeType&&module,al=Te&&Te.exports===nn,st=al&&Kr.process,il=function(){try{var t=Te&&Te.require&&Te.require("util").types;return t||st&&st.binding&&st.binding("util")}catch{}}();const fr=il;var hr=fr&&fr.isTypedArray,ol=hr?nl(hr):rl;const Rt=ol;function pt(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var ll=Object.prototype,sl=ll.hasOwnProperty;function ul(t,e,r){var n=t[e];(!(sl.call(t,e)&&Ne(n,r))||r===void 0&&!(e in t))&&Ct(t,e,r)}function fl(t,e,r,n){var a=!r;r||(r={});for(var i=-1,o=e.length;++i-1&&t%1==0&&t0){if(++e>=Rl)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Pl=$l(Ol);const Ml=Pl;function kl(t,e){return Ml(Sl(t,e,Qe),t+"")}function Fl(t,e,r){if(!B(r))return!1;var n=typeof e;return(n=="number"?Ee(r)&&At(e,r.length):n=="string"&&e in r)?Ne(r[e],t):!1}function Bl(t){return kl(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Fl(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++n=e||U<0||c&&Se>=i}function E(){var _=ut();if(m(_))return $(_);l=setTimeout(E,x(_))}function $(_){return l=void 0,p&&n?d(_):(n=a=void 0,o)}function K(){l!==void 0&&clearTimeout(l),f=0,n=u=a=l=void 0}function P(){return l===void 0?o:$(ut())}function z(){var _=ut(),U=m(_);if(n=arguments,a=this,u=_,U){if(l===void 0)return v(u);if(c)return clearTimeout(l),l=setTimeout(E,e),d(u)}return l===void 0&&(l=setTimeout(E,e)),o}return z.cancel=K,z.flush=P,z}var Yl="Expected a function";function Zl(t,e,r){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Yl);return B(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),sn(t,e,{leading:n,maxWait:e,trailing:a})}var Jl=function(e,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,l=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,u=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=l-(n.getBoundingClientRect().left+window.pageXOffset),h=u-(n.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>i&&(f=i),h<0?h=0:h>o&&(h=o);var c=f/i,p=1-h/o;return{h:r.h,s:c,v:p,a:r.a,source:"hsv"}},Ql=function(){function t(e,r){for(var n=0;n=0,i=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return b(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Cs,arguments)},brighten:function(){return this._applyModification(_s,arguments)},darken:function(){return this._applyModification(Os,arguments)},desaturate:function(){return this._applyModification(ws,arguments)},saturate:function(){return this._applyModification(Es,arguments)},greyscale:function(){return this._applyModification(Ss,arguments)},spin:function(){return this._applyModification(Rs,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination($s,arguments)},complement:function(){return this._applyCombination(As,arguments)},monochromatic:function(){return this._applyCombination(Ps,arguments)},splitcomplement:function(){return this._applyCombination(Ts,arguments)},triad:function(){return this._applyCombination(mr,[3])},tetrad:function(){return this._applyCombination(mr,[4])}};b.fromRatio=function(t,e){if(Ke(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Oe(t[n]));t=r}return b(t,e)};function bs(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,l=!1;return typeof t=="string"&&(t=Hs(t)),Ke(t)=="object"&&(j(t.r)&&j(t.g)&&j(t.b)?(e=vs(t.r,t.g,t.b),o=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):j(t.h)&&j(t.s)&&j(t.v)?(n=Oe(t.s),a=Oe(t.v),e=ms(t.h,n,a),o=!0,l="hsv"):j(t.h)&&j(t.s)&&j(t.l)&&(n=Oe(t.s),i=Oe(t.l),e=xs(t.h,n,i),o=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=fn(r),{ok:o,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function vs(t,e,r){return{r:C(t,255)*255,g:C(e,255)*255,b:C(r,255)*255}}function gr(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,l=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=l>.5?u/(2-n-a):u/(n+a),n){case t:i=(e-r)/u+(e1&&(c-=1),c<1/6?f+(h-f)*6*c:c<1/2?h:c<2/3?f+(h-f)*(2/3-c)*6:f}if(e===0)n=a=i=r;else{var l=r<.5?r*(1+e):r+e-r*e,u=2*r-l;n=o(u,l,t+1/3),a=o(u,l,t),i=o(u,l,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function br(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,l=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case t:i=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(b(n));return i}function Ps(t,e){e=e||6;for(var r=b(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/e;e--;)o.push(b({h:n,s:a,v:i})),i=(i+l)%1;return o}b.mix=function(t,e,r){r=r===0?0:r||50;var n=b(t).toRgb(),a=b(e).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return b(o)};b.readability=function(t,e){var r=b(t),n=b(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};b.isReadable=function(t,e,r){var n=b.readability(t,e),a,i;switch(i=!1,a=Ds(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};b.mostReadable=function(t,e,r){var n=null,a=0,i,o,l,u;r=r||{},o=r.includeFallbackColors,l=r.level,u=r.size;for(var f=0;fa&&(a=i,n=b(e[f]));return b.isReadable(t,n,{level:l,size:u})||!o?n:(r.includeFallbackColors=!1,b.mostReadable(t,["#fff","#000"],r))};var dt=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ms=b.hexNames=ks(dt);function ks(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function fn(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function C(t,e){Fs(t)&&(t="100%");var r=Bs(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function rt(t){return Math.min(1,Math.max(0,t))}function M(t){return parseInt(t,16)}function Fs(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Bs(t){return typeof t=="string"&&t.indexOf("%")!=-1}function D(t){return t.length==1?"0"+t:""+t}function Oe(t){return t<=1&&(t=t*100+"%"),t}function hn(t){return Math.round(parseFloat(t)*255).toString(16)}function yr(t){return M(t)/255}var H=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function j(t){return!!H.CSS_UNIT.exec(t)}function Hs(t){t=t.replace(ds,"").replace(gs,"").toLowerCase();var e=!1;if(dt[t])t=dt[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=H.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=H.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=H.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=H.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=H.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=H.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=H.hex8.exec(t))?{r:M(r[1]),g:M(r[2]),b:M(r[3]),a:yr(r[4]),format:e?"name":"hex8"}:(r=H.hex6.exec(t))?{r:M(r[1]),g:M(r[2]),b:M(r[3]),format:e?"name":"hex"}:(r=H.hex4.exec(t))?{r:M(r[1]+""+r[1]),g:M(r[2]+""+r[2]),b:M(r[3]+""+r[3]),a:yr(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=H.hex3.exec(t))?{r:M(r[1]+""+r[1]),g:M(r[2]+""+r[2]),b:M(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function Ds(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var wr=function(e){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return ps(r,function(i){if(e[i]&&(n+=1,isNaN(e[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(e[i])&&(a+=1)}}),n===a?e:!1},Re=function(e,r){var n=e.hex?b(e.hex):b(e),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),l=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var u=l==="000000"&&o.a===0;return{hsl:a,hex:u?"transparent":"#"+l,rgb:o,hsv:i,oldHue:e.h||r||a.h,source:e.source}},V=function(e){if(e==="transparent")return!0;var r=String(e).charAt(0)==="#"?1:0;return e.length!==4+r&&e.length<7+r&&b(e).isValid()},$t=function(e){if(!e)return"#fff";var r=Re(e);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},ft=function(e,r){var n=e.replace("°","");return b(r+" ("+n+")")._ok},je=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Ws(a,n);function a(){var i,o,l,u;Us(this,a);for(var f=arguments.length,h=Array(f),c=0;cl))return!1;var f=i.get(t),h=i.get(e);if(f&&h)return f==e&&h==t;var c=-1,p=!0,d=r&nu?new qe:void 0;for(i.set(t,e),i.set(e,t);++c=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Ge=24,Of=wn.default=function(t){var e=t.fill,r=e===void 0?"currentColor":e,n=t.width,a=n===void 0?Ge:n,i=t.height,o=i===void 0?Ge:i,l=t.style,u=l===void 0?{}:l,f=_f(t,["fill","width","height","style"]);return jr.default.createElement("svg",Lr({viewBox:"0 0 "+Ge+" "+Ge,style:Lr({fill:r,width:a,height:o},u)},f),jr.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},Rf=function(){function t(e,r){for(var n=0;n1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(Nr(a.s)?n.props.hsl.s:a.s),l:Number(Nr(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return Rf(e,[{key:"render",value:function(){var n=this,a=y({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=s.createElement("div",{style:a.fields,className:"flexbox-fix"},s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=s.createElement("div",{style:a.fields,className:"flexbox-fix"},s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),s.createElement("div",{style:a.alpha},s.createElement(w,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=s.createElement("div",{style:a.fields,className:"flexbox-fix"},s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),s.createElement("div",{style:a.field},s.createElement(w,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),s.createElement("div",{style:a.alpha},s.createElement(w,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),s.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,s.createElement("div",{style:a.toggle},s.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(l){return n.icon=l}},s.createElement(Of,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),e}(s.Component);En.defaultProps={view:"hex"};var Ir=function(){var e=y({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return s.createElement("div",{style:e.picker})},Pf=function(){var e=y({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return s.createElement("div",{style:e.picker})},Ht=function(e){var r=e.width,n=e.onChange,a=e.disableAlpha,i=e.rgb,o=e.hsl,l=e.hsv,u=e.hex,f=e.renderers,h=e.styles,c=h===void 0?{}:h,p=e.className,d=p===void 0?"":p,v=e.defaultView,x=y(A({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},c),{disableAlpha:a});return s.createElement("div",{style:x.picker,className:"chrome-picker "+d},s.createElement("div",{style:x.saturation},s.createElement(tt,{style:x.Saturation,hsl:o,hsv:l,pointer:Pf,onChange:n})),s.createElement("div",{style:x.body},s.createElement("div",{style:x.controls,className:"flexbox-fix"},s.createElement("div",{style:x.color},s.createElement("div",{style:x.swatch},s.createElement("div",{style:x.active}),s.createElement(ye,{renderers:f}))),s.createElement("div",{style:x.toggles},s.createElement("div",{style:x.hue},s.createElement(we,{style:x.Hue,hsl:o,pointer:Ir,onChange:n})),s.createElement("div",{style:x.alpha},s.createElement(Et,{style:x.Alpha,rgb:i,hsl:o,pointer:Ir,renderers:f,onChange:n})))),s.createElement(En,{rgb:i,hsl:o,hex:u,view:v,onChange:n,disableAlpha:a})))};Ht.propTypes={width:g.oneOfType([g.string,g.number]),disableAlpha:g.bool,styles:g.object,defaultView:g.oneOf(["hex","rgb","hsl"])};Ht.defaultProps={width:225,disableAlpha:!1,styles:{}};T(Ht);var Mf=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,i=e.onSwatchHover,o=e.active,l=y({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:$t(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return s.createElement(ee,{style:l.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},s.createElement("div",{style:l.dot}))},kf=function(e){var r=e.hex,n=e.rgb,a=e.onChange,i=y({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(u,f){u.r||u.g||u.b?a({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},f):a({hex:u.hex,source:"hex"},f)};return s.createElement("div",{style:i.fields,className:"flexbox-fix"},s.createElement("div",{style:i.active}),s.createElement(w,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),s.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),s.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),s.createElement(w,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},Dt=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.colors,i=e.hex,o=e.rgb,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,c=y(A({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(v,x){v.hex?V(v.hex)&&r({hex:v.hex,source:"hex"},x):r(v,x)};return s.createElement(Le,{style:c.Compact,styles:u},s.createElement("div",{style:c.compact,className:"compact-picker "+h},s.createElement("div",null,te(a,function(d){return s.createElement(Mf,{key:d,color:d,active:d.toLowerCase()===i,onClick:p,onSwatchHover:n})}),s.createElement("div",{style:c.clear})),s.createElement(kf,{hex:i,rgb:o,onChange:p})))};Dt.propTypes={colors:g.arrayOf(g.string),styles:g.object};Dt.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};T(Dt);var Ff=function(e){var r=e.hover,n=e.color,a=e.onClick,i=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=y({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return s.createElement("div",{style:l.swatch},s.createElement(ee,{color:n,onClick:a,onHover:i,focusStyle:o}))};const Bf=wt(Ff);var Nt=function(e){var r=e.width,n=e.colors,a=e.onChange,i=e.onSwatchHover,o=e.triangle,l=e.styles,u=l===void 0?{}:l,f=e.className,h=f===void 0?"":f,c=y(A({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),p=function(v,x){return a({hex:v,source:"hex"},x)};return s.createElement("div",{style:c.card,className:"github-picker "+h},s.createElement("div",{style:c.triangleShadow}),s.createElement("div",{style:c.triangle}),te(n,function(d){return s.createElement(Bf,{color:d,key:d,onClick:p,onSwatchHover:i})}))};Nt.propTypes={width:g.oneOfType([g.string,g.number]),colors:g.arrayOf(g.string),triangle:g.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:g.object};Nt.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};const oh=T(Nt);var Hf=function(e){var r=e.direction,n=y({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return s.createElement("div",{style:n.picker})},Df=Object.assign||function(t){for(var e=1;e.5});return s.createElement("div",{style:n.picker})},If=function(){var e=y({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return s.createElement("div",{style:e.pointer},s.createElement("div",{style:e.left},s.createElement("div",{style:e.leftInside})),s.createElement("div",{style:e.right},s.createElement("div",{style:e.rightInside})))},Gr=function(e){var r=e.onClick,n=e.label,a=e.children,i=e.active,o=y({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return s.createElement("div",{style:o.button,onClick:r},n||a)},Gf=function(e){var r=e.rgb,n=e.currentColor,a=y({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return s.createElement("div",null,s.createElement("div",{style:a.label},"new"),s.createElement("div",{style:a.swatches},s.createElement("div",{style:a.new}),s.createElement("div",{style:a.current})),s.createElement("div",{style:a.label},"current"))},zf=function(){function t(e,r){for(var n=0;n100&&(h.a=100),h.a/=100,r({h:a.h,s:a.s,l:a.l,a:h.a,source:"rgb"},c))};return s.createElement("div",{style:l.fields,className:"flexbox-fix"},s.createElement("div",{style:l.double},s.createElement(w,{style:{input:l.input,label:l.label},label:"hex",value:i.replace("#",""),onChange:u})),s.createElement("div",{style:l.single},s.createElement(w,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),s.createElement("div",{style:l.single},s.createElement(w,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),s.createElement("div",{style:l.single},s.createElement(w,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),s.createElement("div",{style:l.alpha},s.createElement(w,{style:{input:l.input,label:l.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},Kf=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var ze=24,th=Cn.default=function(t){var e=t.fill,r=e===void 0?"currentColor":e,n=t.width,a=n===void 0?ze:n,i=t.height,o=i===void 0?ze:i,l=t.style,u=l===void 0?{}:l,f=eh(t,["fill","width","height","style"]);return Ur.default.createElement("svg",zr({viewBox:"0 0 "+ze+" "+ze,style:zr({fill:r,width:a,height:o},u)},f),Ur.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},rh=function(e){var r=e.color,n=e.onClick,a=n===void 0?function(){}:n,i=e.onSwatchHover,o=e.first,l=e.last,u=e.active,f=y({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:$t(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:l,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return s.createElement(ee,{color:r,style:f.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},s.createElement("div",{style:f.check},s.createElement(th,null)))},nh=function(e){var r=e.onClick,n=e.onSwatchHover,a=e.group,i=e.active,o=y({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return s.createElement("div",{style:o.group},te(a,function(l,u){return s.createElement(rh,{key:l,color:l,active:l.toLowerCase()===i,first:u===0,last:u===a.length-1,onClick:r,onSwatchHover:n})}))},zt=function(e){var r=e.width,n=e.height,a=e.onChange,i=e.onSwatchHover,o=e.colors,l=e.hex,u=e.styles,f=u===void 0?{}:u,h=e.className,c=h===void 0?"":h,p=y(A({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),d=function(x,m){return a({hex:x,source:"hex"},m)};return s.createElement("div",{style:p.picker,className:"swatches-picker "+c},s.createElement(Le,null,s.createElement("div",{style:p.overflow},s.createElement("div",{style:p.body},te(o,function(v){return s.createElement(nh,{key:v.toString(),group:v,active:l,onClick:d,onSwatchHover:i})}),s.createElement("div",{style:p.clear})))))};zt.propTypes={width:g.oneOfType([g.string,g.number]),height:g.oneOfType([g.string,g.number]),colors:g.arrayOf(g.arrayOf(g.string)),styles:g.object};zt.defaultProps={width:320,height:240,colors:[[re[900],re[700],re[500],re[300],re[100]],[ne[900],ne[700],ne[500],ne[300],ne[100]],[ae[900],ae[700],ae[500],ae[300],ae[100]],[ie[900],ie[700],ie[500],ie[300],ie[100]],[oe[900],oe[700],oe[500],oe[300],oe[100]],[le[900],le[700],le[500],le[300],le[100]],[se[900],se[700],se[500],se[300],se[100]],[ue[900],ue[700],ue[500],ue[300],ue[100]],[fe[900],fe[700],fe[500],fe[300],fe[100]],["#194D33",Ae[700],Ae[500],Ae[300],Ae[100]],[he[900],he[700],he[500],he[300],he[100]],[ce[900],ce[700],ce[500],ce[300],ce[100]],[pe[900],pe[700],pe[500],pe[300],pe[100]],[de[900],de[700],de[500],de[300],de[100]],[ge[900],ge[700],ge[500],ge[300],ge[100]],[be[900],be[700],be[500],be[300],be[100]],[ve[900],ve[700],ve[500],ve[300],ve[100]],[xe[900],xe[700],xe[500],xe[300],xe[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};T(zt);var Ut=function(e){var r=e.onChange,n=e.onSwatchHover,a=e.hex,i=e.colors,o=e.width,l=e.triangle,u=e.styles,f=u===void 0?{}:u,h=e.className,c=h===void 0?"":h,p=y(A({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":l==="hide","top-left-triangle":l==="top-left","top-right-triangle":l==="top-right"}),d=function(x,m){V(x)&&r({hex:x,source:"hex"},m)};return s.createElement("div",{style:p.card,className:"twitter-picker "+c},s.createElement("div",{style:p.triangleShadow}),s.createElement("div",{style:p.triangle}),s.createElement("div",{style:p.body},te(i,function(v,x){return s.createElement(ee,{key:x,color:v,hex:v,style:p.swatch,onClick:d,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),s.createElement("div",{style:p.hash},"#"),s.createElement(w,{label:null,style:{input:p.input},value:a.replace("#",""),onChange:d}),s.createElement("div",{style:p.clear})))};Ut.propTypes={width:g.oneOfType([g.string,g.number]),triangle:g.oneOf(["hide","top-left","top-right"]),colors:g.arrayOf(g.string),styles:g.object};Ut.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};T(Ut);var Wt=function(e){var r=y({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(e.hsl.s*100)+"%, "+Math.round(e.hsl.l*100)+"%)"}}});return s.createElement("div",{style:r.picker})};Wt.propTypes={hsl:g.shape({h:g.number,s:g.number,l:g.number,a:g.number})};Wt.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Xt=function(e){var r=y({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return s.createElement("div",{style:r.picker})};Xt.propTypes={hsl:g.shape({h:g.number,s:g.number,l:g.number,a:g.number})};Xt.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var ah=function(e){var r=e.onChange,n=e.rgb,a=e.hsl,i=e.hex,o=e.hsv,l=function(d,v){if(d.hex)V(d.hex)&&r({hex:d.hex,source:"hex"},v);else if(d.rgb){var x=d.rgb.split(",");ft(d.rgb,"rgb")&&r({r:x[0],g:x[1],b:x[2],a:1,source:"rgb"},v)}else if(d.hsv){var m=d.hsv.split(",");ft(d.hsv,"hsv")&&(m[2]=m[2].replace("%",""),m[1]=m[1].replace("%",""),m[0]=m[0].replace("°",""),m[1]==1?m[1]=.01:m[2]==1&&(m[2]=.01),r({h:Number(m[0]),s:Number(m[1]),v:Number(m[2]),source:"hsv"},v))}else if(d.hsl){var E=d.hsl.split(",");ft(d.hsl,"hsl")&&(E[2]=E[2].replace("%",""),E[1]=E[1].replace("%",""),E[0]=E[0].replace("°",""),c[1]==1?c[1]=.01:c[2]==1&&(c[2]=.01),r({h:Number(E[0]),s:Number(E[1]),v:Number(E[2]),source:"hsl"},v))}},u=y({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),f=n.r+", "+n.g+", "+n.b,h=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",c=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return s.createElement("div",{style:u.wrap,className:"flexbox-fix"},s.createElement("div",{style:u.fields},s.createElement("div",{style:u.double},s.createElement(w,{style:{input:u.input,label:u.label},label:"hex",value:i,onChange:l})),s.createElement("div",{style:u.column},s.createElement("div",{style:u.single},s.createElement(w,{style:{input:u.input2,label:u.label2},label:"rgb",value:f,onChange:l})),s.createElement("div",{style:u.single},s.createElement(w,{style:{input:u.input2,label:u.label2},label:"hsv",value:c,onChange:l})),s.createElement("div",{style:u.single},s.createElement(w,{style:{input:u.input2,label:u.label2},label:"hsl",value:h,onChange:l})))))},Vt=function(e){var r=e.width,n=e.onChange,a=e.rgb,i=e.hsl,o=e.hsv,l=e.hex,u=e.header,f=e.styles,h=f===void 0?{}:f,c=e.className,p=c===void 0?"":c,d=y(A({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},h));return s.createElement("div",{style:d.picker,className:"google-picker "+p},s.createElement("div",{style:d.head},u),s.createElement("div",{style:d.swatch}),s.createElement("div",{style:d.saturation},s.createElement(tt,{hsl:i,hsv:o,pointer:Wt,onChange:n})),s.createElement("div",{style:d.body},s.createElement("div",{style:d.controls,className:"flexbox-fix"},s.createElement("div",{style:d.hue},s.createElement(we,{style:d.Hue,hsl:i,radius:"4px",pointer:Xt,onChange:n}))),s.createElement(ah,{rgb:a,hsl:i,hex:l,hsv:o,onChange:n})))};Vt.propTypes={width:g.oneOfType([g.string,g.number]),styles:g.object,header:g.string};Vt.defaultProps={width:652,styles:{},header:"Color picker"};T(Vt);export{oh as G,lh as S,b as t}; diff --git a/admin-views/dist/assets/Google-0705f6ee.js.gz b/admin-views/dist/assets/Google-0705f6ee.js.gz new file mode 100644 index 00000000..c7abd355 Binary files /dev/null and b/admin-views/dist/assets/Google-0705f6ee.js.gz differ diff --git a/admin-views/dist/assets/Google-900e2154.js.gz b/admin-views/dist/assets/Google-900e2154.js.gz deleted file mode 100644 index 5c35092a..00000000 Binary files a/admin-views/dist/assets/Google-900e2154.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/Markdown-f6e43aa4.js b/admin-views/dist/assets/Markdown-99862198.js similarity index 99% rename from admin-views/dist/assets/Markdown-f6e43aa4.js rename to admin-views/dist/assets/Markdown-99862198.js index 825c2eda..ae8ea01e 100644 --- a/admin-views/dist/assets/Markdown-f6e43aa4.js +++ b/admin-views/dist/assets/Markdown-99862198.js @@ -1,4 +1,4 @@ -import{ct as Kr,e as Xr,w as nt,ah as rt,ai as tt,R as Hn}from"./index-79ae6e73.js";var q={};const ot="Á",et="á",st="Ă",ct="ă",it="∾",at="∿",lt="∾̳",ut="Â",pt="â",ft="´",ht="А",dt="а",mt="Æ",gt="æ",bt="⁡",_t="𝔄",kt="𝔞",xt="À",vt="à",yt="ℵ",Ct="ℵ",wt="Α",At="α",qt="Ā",Dt="ā",Et="⨿",St="&",Ft="&",Tt="⩕",Rt="⩓",Lt="∧",zt="⩜",It="⩘",Bt="⩚",Mt="∠",Nt="⦤",Pt="∠",Ot="⦨",Ut="⦩",Vt="⦪",$t="⦫",Gt="⦬",Ht="⦭",jt="⦮",Zt="⦯",Jt="∡",Yt="∟",Wt="⊾",Qt="⦝",Kt="∢",Xt="Å",no="⍼",ro="Ą",to="ą",oo="𝔸",eo="𝕒",so="⩯",co="≈",io="⩰",ao="≊",lo="≋",uo="'",po="⁡",fo="≈",ho="≊",mo="Å",go="å",bo="𝒜",_o="𝒶",ko="≔",xo="*",vo="≈",yo="≍",Co="Ã",wo="ã",Ao="Ä",qo="ä",Do="∳",Eo="⨑",So="≌",Fo="϶",To="‵",Ro="∽",Lo="⋍",zo="∖",Io="⫧",Bo="⊽",Mo="⌅",No="⌆",Po="⌅",Oo="⎵",Uo="⎶",Vo="≌",$o="Б",Go="б",Ho="„",jo="∵",Zo="∵",Jo="∵",Yo="⦰",Wo="϶",Qo="ℬ",Ko="ℬ",Xo="Β",ne="β",re="ℶ",te="≬",oe="𝔅",ee="𝔟",se="⋂",ce="◯",ie="⋃",ae="⨀",le="⨁",ue="⨂",pe="⨆",fe="★",he="▽",de="△",me="⨄",ge="⋁",be="⋀",_e="⤍",ke="⧫",xe="▪",ve="▴",ye="▾",Ce="◂",we="▸",Ae="␣",qe="▒",De="░",Ee="▓",Se="█",Fe="=⃥",Te="≡⃥",Re="⫭",Le="⌐",ze="𝔹",Ie="𝕓",Be="⊥",Me="⊥",Ne="⋈",Pe="⧉",Oe="┐",Ue="╕",Ve="╖",$e="╗",Ge="┌",He="╒",je="╓",Ze="╔",Je="─",Ye="═",We="┬",Qe="╤",Ke="╥",Xe="╦",ns="┴",rs="╧",ts="╨",os="╩",es="⊟",ss="⊞",cs="⊠",is="┘",as="╛",ls="╜",us="╝",ps="└",fs="╘",hs="╙",ds="╚",ms="│",gs="║",bs="┼",_s="╪",ks="╫",xs="╬",vs="┤",ys="╡",Cs="╢",ws="╣",As="├",qs="╞",Ds="╟",Es="╠",Ss="‵",Fs="˘",Ts="˘",Rs="¦",Ls="𝒷",zs="ℬ",Is="⁏",Bs="∽",Ms="⋍",Ns="⧅",Ps="\\",Os="⟈",Us="•",Vs="•",$s="≎",Gs="⪮",Hs="≏",js="≎",Zs="≏",Js="Ć",Ys="ć",Ws="⩄",Qs="⩉",Ks="⩋",Xs="∩",nc="⋒",rc="⩇",tc="⩀",oc="ⅅ",ec="∩︀",sc="⁁",cc="ˇ",ic="ℭ",ac="⩍",lc="Č",uc="č",pc="Ç",fc="ç",hc="Ĉ",dc="ĉ",mc="∰",gc="⩌",bc="⩐",_c="Ċ",kc="ċ",xc="¸",vc="¸",yc="⦲",Cc="¢",wc="·",Ac="·",qc="𝔠",Dc="ℭ",Ec="Ч",Sc="ч",Fc="✓",Tc="✓",Rc="Χ",Lc="χ",zc="ˆ",Ic="≗",Bc="↺",Mc="↻",Nc="⊛",Pc="⊚",Oc="⊝",Uc="⊙",Vc="®",$c="Ⓢ",Gc="⊖",Hc="⊕",jc="⊗",Zc="○",Jc="⧃",Yc="≗",Wc="⨐",Qc="⫯",Kc="⧂",Xc="∲",ni="”",ri="’",ti="♣",oi="♣",ei=":",si="∷",ci="⩴",ii="≔",ai="≔",li=",",ui="@",pi="∁",fi="∘",hi="∁",di="ℂ",mi="≅",gi="⩭",bi="≡",_i="∮",ki="∯",xi="∮",vi="𝕔",yi="ℂ",Ci="∐",wi="∐",Ai="©",qi="©",Di="℗",Ei="∳",Si="↵",Fi="✗",Ti="⨯",Ri="𝒞",Li="𝒸",zi="⫏",Ii="⫑",Bi="⫐",Mi="⫒",Ni="⋯",Pi="⤸",Oi="⤵",Ui="⋞",Vi="⋟",$i="↶",Gi="⤽",Hi="⩈",ji="⩆",Zi="≍",Ji="∪",Yi="⋓",Wi="⩊",Qi="⊍",Ki="⩅",Xi="∪︀",na="↷",ra="⤼",ta="⋞",oa="⋟",ea="⋎",sa="⋏",ca="¤",ia="↶",aa="↷",la="⋎",ua="⋏",pa="∲",fa="∱",ha="⌭",da="†",ma="‡",ga="ℸ",ba="↓",_a="↡",ka="⇓",xa="‐",va="⫤",ya="⊣",Ca="⤏",wa="˝",Aa="Ď",qa="ď",Da="Д",Ea="д",Sa="‡",Fa="⇊",Ta="ⅅ",Ra="ⅆ",La="⤑",za="⩷",Ia="°",Ba="∇",Ma="Δ",Na="δ",Pa="⦱",Oa="⥿",Ua="𝔇",Va="𝔡",$a="⥥",Ga="⇃",Ha="⇂",ja="´",Za="˙",Ja="˝",Ya="`",Wa="˜",Qa="⋄",Ka="⋄",Xa="⋄",nl="♦",rl="♦",tl="¨",ol="ⅆ",el="ϝ",sl="⋲",cl="÷",il="÷",al="⋇",ll="⋇",ul="Ђ",pl="ђ",fl="⌞",hl="⌍",dl="$",ml="𝔻",gl="𝕕",bl="¨",_l="˙",kl="⃜",xl="≐",vl="≑",yl="≐",Cl="∸",wl="∔",Al="⊡",ql="⌆",Dl="∯",El="¨",Sl="⇓",Fl="⇐",Tl="⇔",Rl="⫤",Ll="⟸",zl="⟺",Il="⟹",Bl="⇒",Ml="⊨",Nl="⇑",Pl="⇕",Ol="∥",Ul="⤓",Vl="↓",$l="↓",Gl="⇓",Hl="⇵",jl="̑",Zl="⇊",Jl="⇃",Yl="⇂",Wl="⥐",Ql="⥞",Kl="⥖",Xl="↽",nu="⥟",ru="⥗",tu="⇁",ou="↧",eu="⊤",su="⤐",cu="⌟",iu="⌌",au="𝒟",lu="𝒹",uu="Ѕ",pu="ѕ",fu="⧶",hu="Đ",du="đ",mu="⋱",gu="▿",bu="▾",_u="⇵",ku="⥯",xu="⦦",vu="Џ",yu="џ",Cu="⟿",wu="É",Au="é",qu="⩮",Du="Ě",Eu="ě",Su="Ê",Fu="ê",Tu="≖",Ru="≕",Lu="Э",zu="э",Iu="⩷",Bu="Ė",Mu="ė",Nu="≑",Pu="ⅇ",Ou="≒",Uu="𝔈",Vu="𝔢",$u="⪚",Gu="È",Hu="è",ju="⪖",Zu="⪘",Ju="⪙",Yu="∈",Wu="⏧",Qu="ℓ",Ku="⪕",Xu="⪗",np="Ē",rp="ē",tp="∅",op="∅",ep="◻",sp="∅",cp="▫",ip=" ",ap=" ",lp=" ",up="Ŋ",pp="ŋ",fp=" ",hp="Ę",dp="ę",mp="𝔼",gp="𝕖",bp="⋕",_p="⧣",kp="⩱",xp="ε",vp="Ε",yp="ε",Cp="ϵ",wp="≖",Ap="≕",qp="≂",Dp="⪖",Ep="⪕",Sp="⩵",Fp="=",Tp="≂",Rp="≟",Lp="⇌",zp="≡",Ip="⩸",Bp="⧥",Mp="⥱",Np="≓",Pp="ℯ",Op="ℰ",Up="≐",Vp="⩳",$p="≂",Gp="Η",Hp="η",jp="Ð",Zp="ð",Jp="Ë",Yp="ë",Wp="€",Qp="!",Kp="∃",Xp="∃",nf="ℰ",rf="ⅇ",tf="ⅇ",of="≒",ef="Ф",sf="ф",cf="♀",af="ffi",lf="ff",uf="ffl",pf="𝔉",ff="𝔣",hf="fi",df="◼",mf="▪",gf="fj",bf="♭",_f="fl",kf="▱",xf="ƒ",vf="𝔽",yf="𝕗",Cf="∀",wf="∀",Af="⋔",qf="⫙",Df="ℱ",Ef="⨍",Sf="½",Ff="⅓",Tf="¼",Rf="⅕",Lf="⅙",zf="⅛",If="⅔",Bf="⅖",Mf="¾",Nf="⅗",Pf="⅜",Of="⅘",Uf="⅚",Vf="⅝",$f="⅞",Gf="⁄",Hf="⌢",jf="𝒻",Zf="ℱ",Jf="ǵ",Yf="Γ",Wf="γ",Qf="Ϝ",Kf="ϝ",Xf="⪆",nh="Ğ",rh="ğ",th="Ģ",oh="Ĝ",eh="ĝ",sh="Г",ch="г",ih="Ġ",ah="ġ",lh="≥",uh="≧",ph="⪌",fh="⋛",hh="≥",dh="≧",mh="⩾",gh="⪩",bh="⩾",_h="⪀",kh="⪂",xh="⪄",vh="⋛︀",yh="⪔",Ch="𝔊",wh="𝔤",Ah="≫",qh="⋙",Dh="⋙",Eh="ℷ",Sh="Ѓ",Fh="ѓ",Th="⪥",Rh="≷",Lh="⪒",zh="⪤",Ih="⪊",Bh="⪊",Mh="⪈",Nh="≩",Ph="⪈",Oh="≩",Uh="⋧",Vh="𝔾",$h="𝕘",Gh="`",Hh="≥",jh="⋛",Zh="≧",Jh="⪢",Yh="≷",Wh="⩾",Qh="≳",Kh="𝒢",Xh="ℊ",nd="≳",rd="⪎",td="⪐",od="⪧",ed="⩺",sd=">",cd=">",id="≫",ad="⋗",ld="⦕",ud="⩼",pd="⪆",fd="⥸",hd="⋗",dd="⋛",md="⪌",gd="≷",bd="≳",_d="≩︀",kd="≩︀",xd="ˇ",vd=" ",yd="½",Cd="ℋ",wd="Ъ",Ad="ъ",qd="⥈",Dd="↔",Ed="⇔",Sd="↭",Fd="^",Td="ℏ",Rd="Ĥ",Ld="ĥ",zd="♥",Id="♥",Bd="…",Md="⊹",Nd="𝔥",Pd="ℌ",Od="ℋ",Ud="⤥",Vd="⤦",$d="⇿",Gd="∻",Hd="↩",jd="↪",Zd="𝕙",Jd="ℍ",Yd="―",Wd="─",Qd="𝒽",Kd="ℋ",Xd="ℏ",nm="Ħ",rm="ħ",tm="≎",om="≏",em="⁃",sm="‐",cm="Í",im="í",am="⁣",lm="Î",um="î",pm="И",fm="и",hm="İ",dm="Е",mm="е",gm="¡",bm="⇔",_m="𝔦",km="ℑ",xm="Ì",vm="ì",ym="ⅈ",Cm="⨌",wm="∭",Am="⧜",qm="℩",Dm="IJ",Em="ij",Sm="Ī",Fm="ī",Tm="ℑ",Rm="ⅈ",Lm="ℐ",zm="ℑ",Im="ı",Bm="ℑ",Mm="⊷",Nm="Ƶ",Pm="⇒",Om="℅",Um="∞",Vm="⧝",$m="ı",Gm="⊺",Hm="∫",jm="∬",Zm="ℤ",Jm="∫",Ym="⊺",Wm="⋂",Qm="⨗",Km="⨼",Xm="⁣",ng="⁢",rg="Ё",tg="ё",og="Į",eg="į",sg="𝕀",cg="𝕚",ig="Ι",ag="ι",lg="⨼",ug="¿",pg="𝒾",fg="ℐ",hg="∈",dg="⋵",mg="⋹",gg="⋴",bg="⋳",_g="∈",kg="⁢",xg="Ĩ",vg="ĩ",yg="І",Cg="і",wg="Ï",Ag="ï",qg="Ĵ",Dg="ĵ",Eg="Й",Sg="й",Fg="𝔍",Tg="𝔧",Rg="ȷ",Lg="𝕁",zg="𝕛",Ig="𝒥",Bg="𝒿",Mg="Ј",Ng="ј",Pg="Є",Og="є",Ug="Κ",Vg="κ",$g="ϰ",Gg="Ķ",Hg="ķ",jg="К",Zg="к",Jg="𝔎",Yg="𝔨",Wg="ĸ",Qg="Х",Kg="х",Xg="Ќ",n0="ќ",r0="𝕂",t0="𝕜",o0="𝒦",e0="𝓀",s0="⇚",c0="Ĺ",i0="ĺ",a0="⦴",l0="ℒ",u0="Λ",p0="λ",f0="⟨",h0="⟪",d0="⦑",m0="⟨",g0="⪅",b0="ℒ",_0="«",k0="⇤",x0="⤟",v0="←",y0="↞",C0="⇐",w0="⤝",A0="↩",q0="↫",D0="⤹",E0="⥳",S0="↢",F0="⤙",T0="⤛",R0="⪫",L0="⪭",z0="⪭︀",I0="⤌",B0="⤎",M0="❲",N0="{",P0="[",O0="⦋",U0="⦏",V0="⦍",$0="Ľ",G0="ľ",H0="Ļ",j0="ļ",Z0="⌈",J0="{",Y0="Л",W0="л",Q0="⤶",K0="“",X0="„",nb="⥧",rb="⥋",tb="↲",ob="≤",eb="≦",sb="⟨",cb="⇤",ib="←",ab="←",lb="⇐",ub="⇆",pb="↢",fb="⌈",hb="⟦",db="⥡",mb="⥙",gb="⇃",bb="⌊",_b="↽",kb="↼",xb="⇇",vb="↔",yb="↔",Cb="⇔",wb="⇆",Ab="⇋",qb="↭",Db="⥎",Eb="↤",Sb="⊣",Fb="⥚",Tb="⋋",Rb="⧏",Lb="⊲",zb="⊴",Ib="⥑",Bb="⥠",Mb="⥘",Nb="↿",Pb="⥒",Ob="↼",Ub="⪋",Vb="⋚",$b="≤",Gb="≦",Hb="⩽",jb="⪨",Zb="⩽",Jb="⩿",Yb="⪁",Wb="⪃",Qb="⋚︀",Kb="⪓",Xb="⪅",n_="⋖",r_="⋚",t_="⪋",o_="⋚",e_="≦",s_="≶",c_="≶",i_="⪡",a_="≲",l_="⩽",u_="≲",p_="⥼",f_="⌊",h_="𝔏",d_="𝔩",m_="≶",g_="⪑",b_="⥢",__="↽",k_="↼",x_="⥪",v_="▄",y_="Љ",C_="љ",w_="⇇",A_="≪",q_="⋘",D_="⌞",E_="⇚",S_="⥫",F_="◺",T_="Ŀ",R_="ŀ",L_="⎰",z_="⎰",I_="⪉",B_="⪉",M_="⪇",N_="≨",P_="⪇",O_="≨",U_="⋦",V_="⟬",$_="⇽",G_="⟦",H_="⟵",j_="⟵",Z_="⟸",J_="⟷",Y_="⟷",W_="⟺",Q_="⟼",K_="⟶",X_="⟶",nk="⟹",rk="↫",tk="↬",ok="⦅",ek="𝕃",sk="𝕝",ck="⨭",ik="⨴",ak="∗",lk="_",uk="↙",pk="↘",fk="◊",hk="◊",dk="⧫",mk="(",gk="⦓",bk="⇆",_k="⌟",kk="⇋",xk="⥭",vk="‎",yk="⊿",Ck="‹",wk="𝓁",Ak="ℒ",qk="↰",Dk="↰",Ek="≲",Sk="⪍",Fk="⪏",Tk="[",Rk="‘",Lk="‚",zk="Ł",Ik="ł",Bk="⪦",Mk="⩹",Nk="<",Pk="<",Ok="≪",Uk="⋖",Vk="⋋",$k="⋉",Gk="⥶",Hk="⩻",jk="◃",Zk="⊴",Jk="◂",Yk="⦖",Wk="⥊",Qk="⥦",Kk="≨︀",Xk="≨︀",nx="¯",rx="♂",tx="✠",ox="✠",ex="↦",sx="↦",cx="↧",ix="↤",ax="↥",lx="▮",ux="⨩",px="М",fx="м",hx="—",dx="∺",mx="∡",gx=" ",bx="ℳ",_x="𝔐",kx="𝔪",xx="℧",vx="µ",yx="*",Cx="⫰",wx="∣",Ax="·",qx="⊟",Dx="−",Ex="∸",Sx="⨪",Fx="∓",Tx="⫛",Rx="…",Lx="∓",zx="⊧",Ix="𝕄",Bx="𝕞",Mx="∓",Nx="𝓂",Px="ℳ",Ox="∾",Ux="Μ",Vx="μ",$x="⊸",Gx="⊸",Hx="∇",jx="Ń",Zx="ń",Jx="∠⃒",Yx="≉",Wx="⩰̸",Qx="≋̸",Kx="ʼn",Xx="≉",nv="♮",rv="ℕ",tv="♮",ov=" ",ev="≎̸",sv="≏̸",cv="⩃",iv="Ň",av="ň",lv="Ņ",uv="ņ",pv="≇",fv="⩭̸",hv="⩂",dv="Н",mv="н",gv="–",bv="⤤",_v="↗",kv="⇗",xv="↗",vv="≠",yv="≐̸",Cv="​",wv="​",Av="​",qv="​",Dv="≢",Ev="⤨",Sv="≂̸",Fv="≫",Tv="≪",Rv=` +import{ct as Kr,e as Xr,w as nt,ah as rt,ai as tt,R as Hn}from"./index-16176cf1.js";var q={};const ot="Á",et="á",st="Ă",ct="ă",it="∾",at="∿",lt="∾̳",ut="Â",pt="â",ft="´",ht="А",dt="а",mt="Æ",gt="æ",bt="⁡",_t="𝔄",kt="𝔞",xt="À",vt="à",yt="ℵ",Ct="ℵ",wt="Α",At="α",qt="Ā",Dt="ā",Et="⨿",St="&",Ft="&",Tt="⩕",Rt="⩓",Lt="∧",zt="⩜",It="⩘",Bt="⩚",Mt="∠",Nt="⦤",Pt="∠",Ot="⦨",Ut="⦩",Vt="⦪",$t="⦫",Gt="⦬",Ht="⦭",jt="⦮",Zt="⦯",Jt="∡",Yt="∟",Wt="⊾",Qt="⦝",Kt="∢",Xt="Å",no="⍼",ro="Ą",to="ą",oo="𝔸",eo="𝕒",so="⩯",co="≈",io="⩰",ao="≊",lo="≋",uo="'",po="⁡",fo="≈",ho="≊",mo="Å",go="å",bo="𝒜",_o="𝒶",ko="≔",xo="*",vo="≈",yo="≍",Co="Ã",wo="ã",Ao="Ä",qo="ä",Do="∳",Eo="⨑",So="≌",Fo="϶",To="‵",Ro="∽",Lo="⋍",zo="∖",Io="⫧",Bo="⊽",Mo="⌅",No="⌆",Po="⌅",Oo="⎵",Uo="⎶",Vo="≌",$o="Б",Go="б",Ho="„",jo="∵",Zo="∵",Jo="∵",Yo="⦰",Wo="϶",Qo="ℬ",Ko="ℬ",Xo="Β",ne="β",re="ℶ",te="≬",oe="𝔅",ee="𝔟",se="⋂",ce="◯",ie="⋃",ae="⨀",le="⨁",ue="⨂",pe="⨆",fe="★",he="▽",de="△",me="⨄",ge="⋁",be="⋀",_e="⤍",ke="⧫",xe="▪",ve="▴",ye="▾",Ce="◂",we="▸",Ae="␣",qe="▒",De="░",Ee="▓",Se="█",Fe="=⃥",Te="≡⃥",Re="⫭",Le="⌐",ze="𝔹",Ie="𝕓",Be="⊥",Me="⊥",Ne="⋈",Pe="⧉",Oe="┐",Ue="╕",Ve="╖",$e="╗",Ge="┌",He="╒",je="╓",Ze="╔",Je="─",Ye="═",We="┬",Qe="╤",Ke="╥",Xe="╦",ns="┴",rs="╧",ts="╨",os="╩",es="⊟",ss="⊞",cs="⊠",is="┘",as="╛",ls="╜",us="╝",ps="└",fs="╘",hs="╙",ds="╚",ms="│",gs="║",bs="┼",_s="╪",ks="╫",xs="╬",vs="┤",ys="╡",Cs="╢",ws="╣",As="├",qs="╞",Ds="╟",Es="╠",Ss="‵",Fs="˘",Ts="˘",Rs="¦",Ls="𝒷",zs="ℬ",Is="⁏",Bs="∽",Ms="⋍",Ns="⧅",Ps="\\",Os="⟈",Us="•",Vs="•",$s="≎",Gs="⪮",Hs="≏",js="≎",Zs="≏",Js="Ć",Ys="ć",Ws="⩄",Qs="⩉",Ks="⩋",Xs="∩",nc="⋒",rc="⩇",tc="⩀",oc="ⅅ",ec="∩︀",sc="⁁",cc="ˇ",ic="ℭ",ac="⩍",lc="Č",uc="č",pc="Ç",fc="ç",hc="Ĉ",dc="ĉ",mc="∰",gc="⩌",bc="⩐",_c="Ċ",kc="ċ",xc="¸",vc="¸",yc="⦲",Cc="¢",wc="·",Ac="·",qc="𝔠",Dc="ℭ",Ec="Ч",Sc="ч",Fc="✓",Tc="✓",Rc="Χ",Lc="χ",zc="ˆ",Ic="≗",Bc="↺",Mc="↻",Nc="⊛",Pc="⊚",Oc="⊝",Uc="⊙",Vc="®",$c="Ⓢ",Gc="⊖",Hc="⊕",jc="⊗",Zc="○",Jc="⧃",Yc="≗",Wc="⨐",Qc="⫯",Kc="⧂",Xc="∲",ni="”",ri="’",ti="♣",oi="♣",ei=":",si="∷",ci="⩴",ii="≔",ai="≔",li=",",ui="@",pi="∁",fi="∘",hi="∁",di="ℂ",mi="≅",gi="⩭",bi="≡",_i="∮",ki="∯",xi="∮",vi="𝕔",yi="ℂ",Ci="∐",wi="∐",Ai="©",qi="©",Di="℗",Ei="∳",Si="↵",Fi="✗",Ti="⨯",Ri="𝒞",Li="𝒸",zi="⫏",Ii="⫑",Bi="⫐",Mi="⫒",Ni="⋯",Pi="⤸",Oi="⤵",Ui="⋞",Vi="⋟",$i="↶",Gi="⤽",Hi="⩈",ji="⩆",Zi="≍",Ji="∪",Yi="⋓",Wi="⩊",Qi="⊍",Ki="⩅",Xi="∪︀",na="↷",ra="⤼",ta="⋞",oa="⋟",ea="⋎",sa="⋏",ca="¤",ia="↶",aa="↷",la="⋎",ua="⋏",pa="∲",fa="∱",ha="⌭",da="†",ma="‡",ga="ℸ",ba="↓",_a="↡",ka="⇓",xa="‐",va="⫤",ya="⊣",Ca="⤏",wa="˝",Aa="Ď",qa="ď",Da="Д",Ea="д",Sa="‡",Fa="⇊",Ta="ⅅ",Ra="ⅆ",La="⤑",za="⩷",Ia="°",Ba="∇",Ma="Δ",Na="δ",Pa="⦱",Oa="⥿",Ua="𝔇",Va="𝔡",$a="⥥",Ga="⇃",Ha="⇂",ja="´",Za="˙",Ja="˝",Ya="`",Wa="˜",Qa="⋄",Ka="⋄",Xa="⋄",nl="♦",rl="♦",tl="¨",ol="ⅆ",el="ϝ",sl="⋲",cl="÷",il="÷",al="⋇",ll="⋇",ul="Ђ",pl="ђ",fl="⌞",hl="⌍",dl="$",ml="𝔻",gl="𝕕",bl="¨",_l="˙",kl="⃜",xl="≐",vl="≑",yl="≐",Cl="∸",wl="∔",Al="⊡",ql="⌆",Dl="∯",El="¨",Sl="⇓",Fl="⇐",Tl="⇔",Rl="⫤",Ll="⟸",zl="⟺",Il="⟹",Bl="⇒",Ml="⊨",Nl="⇑",Pl="⇕",Ol="∥",Ul="⤓",Vl="↓",$l="↓",Gl="⇓",Hl="⇵",jl="̑",Zl="⇊",Jl="⇃",Yl="⇂",Wl="⥐",Ql="⥞",Kl="⥖",Xl="↽",nu="⥟",ru="⥗",tu="⇁",ou="↧",eu="⊤",su="⤐",cu="⌟",iu="⌌",au="𝒟",lu="𝒹",uu="Ѕ",pu="ѕ",fu="⧶",hu="Đ",du="đ",mu="⋱",gu="▿",bu="▾",_u="⇵",ku="⥯",xu="⦦",vu="Џ",yu="џ",Cu="⟿",wu="É",Au="é",qu="⩮",Du="Ě",Eu="ě",Su="Ê",Fu="ê",Tu="≖",Ru="≕",Lu="Э",zu="э",Iu="⩷",Bu="Ė",Mu="ė",Nu="≑",Pu="ⅇ",Ou="≒",Uu="𝔈",Vu="𝔢",$u="⪚",Gu="È",Hu="è",ju="⪖",Zu="⪘",Ju="⪙",Yu="∈",Wu="⏧",Qu="ℓ",Ku="⪕",Xu="⪗",np="Ē",rp="ē",tp="∅",op="∅",ep="◻",sp="∅",cp="▫",ip=" ",ap=" ",lp=" ",up="Ŋ",pp="ŋ",fp=" ",hp="Ę",dp="ę",mp="𝔼",gp="𝕖",bp="⋕",_p="⧣",kp="⩱",xp="ε",vp="Ε",yp="ε",Cp="ϵ",wp="≖",Ap="≕",qp="≂",Dp="⪖",Ep="⪕",Sp="⩵",Fp="=",Tp="≂",Rp="≟",Lp="⇌",zp="≡",Ip="⩸",Bp="⧥",Mp="⥱",Np="≓",Pp="ℯ",Op="ℰ",Up="≐",Vp="⩳",$p="≂",Gp="Η",Hp="η",jp="Ð",Zp="ð",Jp="Ë",Yp="ë",Wp="€",Qp="!",Kp="∃",Xp="∃",nf="ℰ",rf="ⅇ",tf="ⅇ",of="≒",ef="Ф",sf="ф",cf="♀",af="ffi",lf="ff",uf="ffl",pf="𝔉",ff="𝔣",hf="fi",df="◼",mf="▪",gf="fj",bf="♭",_f="fl",kf="▱",xf="ƒ",vf="𝔽",yf="𝕗",Cf="∀",wf="∀",Af="⋔",qf="⫙",Df="ℱ",Ef="⨍",Sf="½",Ff="⅓",Tf="¼",Rf="⅕",Lf="⅙",zf="⅛",If="⅔",Bf="⅖",Mf="¾",Nf="⅗",Pf="⅜",Of="⅘",Uf="⅚",Vf="⅝",$f="⅞",Gf="⁄",Hf="⌢",jf="𝒻",Zf="ℱ",Jf="ǵ",Yf="Γ",Wf="γ",Qf="Ϝ",Kf="ϝ",Xf="⪆",nh="Ğ",rh="ğ",th="Ģ",oh="Ĝ",eh="ĝ",sh="Г",ch="г",ih="Ġ",ah="ġ",lh="≥",uh="≧",ph="⪌",fh="⋛",hh="≥",dh="≧",mh="⩾",gh="⪩",bh="⩾",_h="⪀",kh="⪂",xh="⪄",vh="⋛︀",yh="⪔",Ch="𝔊",wh="𝔤",Ah="≫",qh="⋙",Dh="⋙",Eh="ℷ",Sh="Ѓ",Fh="ѓ",Th="⪥",Rh="≷",Lh="⪒",zh="⪤",Ih="⪊",Bh="⪊",Mh="⪈",Nh="≩",Ph="⪈",Oh="≩",Uh="⋧",Vh="𝔾",$h="𝕘",Gh="`",Hh="≥",jh="⋛",Zh="≧",Jh="⪢",Yh="≷",Wh="⩾",Qh="≳",Kh="𝒢",Xh="ℊ",nd="≳",rd="⪎",td="⪐",od="⪧",ed="⩺",sd=">",cd=">",id="≫",ad="⋗",ld="⦕",ud="⩼",pd="⪆",fd="⥸",hd="⋗",dd="⋛",md="⪌",gd="≷",bd="≳",_d="≩︀",kd="≩︀",xd="ˇ",vd=" ",yd="½",Cd="ℋ",wd="Ъ",Ad="ъ",qd="⥈",Dd="↔",Ed="⇔",Sd="↭",Fd="^",Td="ℏ",Rd="Ĥ",Ld="ĥ",zd="♥",Id="♥",Bd="…",Md="⊹",Nd="𝔥",Pd="ℌ",Od="ℋ",Ud="⤥",Vd="⤦",$d="⇿",Gd="∻",Hd="↩",jd="↪",Zd="𝕙",Jd="ℍ",Yd="―",Wd="─",Qd="𝒽",Kd="ℋ",Xd="ℏ",nm="Ħ",rm="ħ",tm="≎",om="≏",em="⁃",sm="‐",cm="Í",im="í",am="⁣",lm="Î",um="î",pm="И",fm="и",hm="İ",dm="Е",mm="е",gm="¡",bm="⇔",_m="𝔦",km="ℑ",xm="Ì",vm="ì",ym="ⅈ",Cm="⨌",wm="∭",Am="⧜",qm="℩",Dm="IJ",Em="ij",Sm="Ī",Fm="ī",Tm="ℑ",Rm="ⅈ",Lm="ℐ",zm="ℑ",Im="ı",Bm="ℑ",Mm="⊷",Nm="Ƶ",Pm="⇒",Om="℅",Um="∞",Vm="⧝",$m="ı",Gm="⊺",Hm="∫",jm="∬",Zm="ℤ",Jm="∫",Ym="⊺",Wm="⋂",Qm="⨗",Km="⨼",Xm="⁣",ng="⁢",rg="Ё",tg="ё",og="Į",eg="į",sg="𝕀",cg="𝕚",ig="Ι",ag="ι",lg="⨼",ug="¿",pg="𝒾",fg="ℐ",hg="∈",dg="⋵",mg="⋹",gg="⋴",bg="⋳",_g="∈",kg="⁢",xg="Ĩ",vg="ĩ",yg="І",Cg="і",wg="Ï",Ag="ï",qg="Ĵ",Dg="ĵ",Eg="Й",Sg="й",Fg="𝔍",Tg="𝔧",Rg="ȷ",Lg="𝕁",zg="𝕛",Ig="𝒥",Bg="𝒿",Mg="Ј",Ng="ј",Pg="Є",Og="є",Ug="Κ",Vg="κ",$g="ϰ",Gg="Ķ",Hg="ķ",jg="К",Zg="к",Jg="𝔎",Yg="𝔨",Wg="ĸ",Qg="Х",Kg="х",Xg="Ќ",n0="ќ",r0="𝕂",t0="𝕜",o0="𝒦",e0="𝓀",s0="⇚",c0="Ĺ",i0="ĺ",a0="⦴",l0="ℒ",u0="Λ",p0="λ",f0="⟨",h0="⟪",d0="⦑",m0="⟨",g0="⪅",b0="ℒ",_0="«",k0="⇤",x0="⤟",v0="←",y0="↞",C0="⇐",w0="⤝",A0="↩",q0="↫",D0="⤹",E0="⥳",S0="↢",F0="⤙",T0="⤛",R0="⪫",L0="⪭",z0="⪭︀",I0="⤌",B0="⤎",M0="❲",N0="{",P0="[",O0="⦋",U0="⦏",V0="⦍",$0="Ľ",G0="ľ",H0="Ļ",j0="ļ",Z0="⌈",J0="{",Y0="Л",W0="л",Q0="⤶",K0="“",X0="„",nb="⥧",rb="⥋",tb="↲",ob="≤",eb="≦",sb="⟨",cb="⇤",ib="←",ab="←",lb="⇐",ub="⇆",pb="↢",fb="⌈",hb="⟦",db="⥡",mb="⥙",gb="⇃",bb="⌊",_b="↽",kb="↼",xb="⇇",vb="↔",yb="↔",Cb="⇔",wb="⇆",Ab="⇋",qb="↭",Db="⥎",Eb="↤",Sb="⊣",Fb="⥚",Tb="⋋",Rb="⧏",Lb="⊲",zb="⊴",Ib="⥑",Bb="⥠",Mb="⥘",Nb="↿",Pb="⥒",Ob="↼",Ub="⪋",Vb="⋚",$b="≤",Gb="≦",Hb="⩽",jb="⪨",Zb="⩽",Jb="⩿",Yb="⪁",Wb="⪃",Qb="⋚︀",Kb="⪓",Xb="⪅",n_="⋖",r_="⋚",t_="⪋",o_="⋚",e_="≦",s_="≶",c_="≶",i_="⪡",a_="≲",l_="⩽",u_="≲",p_="⥼",f_="⌊",h_="𝔏",d_="𝔩",m_="≶",g_="⪑",b_="⥢",__="↽",k_="↼",x_="⥪",v_="▄",y_="Љ",C_="љ",w_="⇇",A_="≪",q_="⋘",D_="⌞",E_="⇚",S_="⥫",F_="◺",T_="Ŀ",R_="ŀ",L_="⎰",z_="⎰",I_="⪉",B_="⪉",M_="⪇",N_="≨",P_="⪇",O_="≨",U_="⋦",V_="⟬",$_="⇽",G_="⟦",H_="⟵",j_="⟵",Z_="⟸",J_="⟷",Y_="⟷",W_="⟺",Q_="⟼",K_="⟶",X_="⟶",nk="⟹",rk="↫",tk="↬",ok="⦅",ek="𝕃",sk="𝕝",ck="⨭",ik="⨴",ak="∗",lk="_",uk="↙",pk="↘",fk="◊",hk="◊",dk="⧫",mk="(",gk="⦓",bk="⇆",_k="⌟",kk="⇋",xk="⥭",vk="‎",yk="⊿",Ck="‹",wk="𝓁",Ak="ℒ",qk="↰",Dk="↰",Ek="≲",Sk="⪍",Fk="⪏",Tk="[",Rk="‘",Lk="‚",zk="Ł",Ik="ł",Bk="⪦",Mk="⩹",Nk="<",Pk="<",Ok="≪",Uk="⋖",Vk="⋋",$k="⋉",Gk="⥶",Hk="⩻",jk="◃",Zk="⊴",Jk="◂",Yk="⦖",Wk="⥊",Qk="⥦",Kk="≨︀",Xk="≨︀",nx="¯",rx="♂",tx="✠",ox="✠",ex="↦",sx="↦",cx="↧",ix="↤",ax="↥",lx="▮",ux="⨩",px="М",fx="м",hx="—",dx="∺",mx="∡",gx=" ",bx="ℳ",_x="𝔐",kx="𝔪",xx="℧",vx="µ",yx="*",Cx="⫰",wx="∣",Ax="·",qx="⊟",Dx="−",Ex="∸",Sx="⨪",Fx="∓",Tx="⫛",Rx="…",Lx="∓",zx="⊧",Ix="𝕄",Bx="𝕞",Mx="∓",Nx="𝓂",Px="ℳ",Ox="∾",Ux="Μ",Vx="μ",$x="⊸",Gx="⊸",Hx="∇",jx="Ń",Zx="ń",Jx="∠⃒",Yx="≉",Wx="⩰̸",Qx="≋̸",Kx="ʼn",Xx="≉",nv="♮",rv="ℕ",tv="♮",ov=" ",ev="≎̸",sv="≏̸",cv="⩃",iv="Ň",av="ň",lv="Ņ",uv="ņ",pv="≇",fv="⩭̸",hv="⩂",dv="Н",mv="н",gv="–",bv="⤤",_v="↗",kv="⇗",xv="↗",vv="≠",yv="≐̸",Cv="​",wv="​",Av="​",qv="​",Dv="≢",Ev="⤨",Sv="≂̸",Fv="≫",Tv="≪",Rv=` `,Lv="∄",zv="∄",Iv="𝔑",Bv="𝔫",Mv="≧̸",Nv="≱",Pv="≱",Ov="≧̸",Uv="⩾̸",Vv="⩾̸",$v="⋙̸",Gv="≵",Hv="≫⃒",jv="≯",Zv="≯",Jv="≫̸",Yv="↮",Wv="⇎",Qv="⫲",Kv="∋",Xv="⋼",ny="⋺",ry="∋",ty="Њ",oy="њ",ey="↚",sy="⇍",cy="‥",iy="≦̸",ay="≰",ly="↚",uy="⇍",py="↮",fy="⇎",hy="≰",dy="≦̸",my="⩽̸",gy="⩽̸",by="≮",_y="⋘̸",ky="≴",xy="≪⃒",vy="≮",yy="⋪",Cy="⋬",wy="≪̸",Ay="∤",qy="⁠",Dy=" ",Ey="𝕟",Sy="ℕ",Fy="⫬",Ty="¬",Ry="≢",Ly="≭",zy="∦",Iy="∉",By="≠",My="≂̸",Ny="∄",Py="≯",Oy="≱",Uy="≧̸",Vy="≫̸",$y="≹",Gy="⩾̸",Hy="≵",jy="≎̸",Zy="≏̸",Jy="∉",Yy="⋵̸",Wy="⋹̸",Qy="∉",Ky="⋷",Xy="⋶",nC="⧏̸",rC="⋪",tC="⋬",oC="≮",eC="≰",sC="≸",cC="≪̸",iC="⩽̸",aC="≴",lC="⪢̸",uC="⪡̸",pC="∌",fC="∌",hC="⋾",dC="⋽",mC="⊀",gC="⪯̸",bC="⋠",_C="∌",kC="⧐̸",xC="⋫",vC="⋭",yC="⊏̸",CC="⋢",wC="⊐̸",AC="⋣",qC="⊂⃒",DC="⊈",EC="⊁",SC="⪰̸",FC="⋡",TC="≿̸",RC="⊃⃒",LC="⊉",zC="≁",IC="≄",BC="≇",MC="≉",NC="∤",PC="∦",OC="∦",UC="⫽⃥",VC="∂̸",$C="⨔",GC="⊀",HC="⋠",jC="⊀",ZC="⪯̸",JC="⪯̸",YC="⤳̸",WC="↛",QC="⇏",KC="↝̸",XC="↛",nw="⇏",rw="⋫",tw="⋭",ow="⊁",ew="⋡",sw="⪰̸",cw="𝒩",iw="𝓃",aw="∤",lw="∦",uw="≁",pw="≄",fw="≄",hw="∤",dw="∦",mw="⋢",gw="⋣",bw="⊄",_w="⫅̸",kw="⊈",xw="⊂⃒",vw="⊈",yw="⫅̸",Cw="⊁",ww="⪰̸",Aw="⊅",qw="⫆̸",Dw="⊉",Ew="⊃⃒",Sw="⊉",Fw="⫆̸",Tw="≹",Rw="Ñ",Lw="ñ",zw="≸",Iw="⋪",Bw="⋬",Mw="⋫",Nw="⋭",Pw="Ν",Ow="ν",Uw="#",Vw="№",$w=" ",Gw="≍⃒",Hw="⊬",jw="⊭",Zw="⊮",Jw="⊯",Yw="≥⃒",Ww=">⃒",Qw="⤄",Kw="⧞",Xw="⤂",nA="≤⃒",rA="<⃒",tA="⊴⃒",oA="⤃",eA="⊵⃒",sA="∼⃒",cA="⤣",iA="↖",aA="⇖",lA="↖",uA="⤧",pA="Ó",fA="ó",hA="⊛",dA="Ô",mA="ô",gA="⊚",bA="О",_A="о",kA="⊝",xA="Ő",vA="ő",yA="⨸",CA="⊙",wA="⦼",AA="Œ",qA="œ",DA="⦿",EA="𝔒",SA="𝔬",FA="˛",TA="Ò",RA="ò",LA="⧁",zA="⦵",IA="Ω",BA="∮",MA="↺",NA="⦾",PA="⦻",OA="‾",UA="⧀",VA="Ō",$A="ō",GA="Ω",HA="ω",jA="Ο",ZA="ο",JA="⦶",YA="⊖",WA="𝕆",QA="𝕠",KA="⦷",XA="“",n1="‘",r1="⦹",t1="⊕",o1="↻",e1="⩔",s1="∨",c1="⩝",i1="ℴ",a1="ℴ",l1="ª",u1="º",p1="⊶",f1="⩖",h1="⩗",d1="⩛",m1="Ⓢ",g1="𝒪",b1="ℴ",_1="Ø",k1="ø",x1="⊘",v1="Õ",y1="õ",C1="⨶",w1="⨷",A1="⊗",q1="Ö",D1="ö",E1="⌽",S1="‾",F1="⏞",T1="⎴",R1="⏜",L1="¶",z1="∥",I1="∥",B1="⫳",M1="⫽",N1="∂",P1="∂",O1="П",U1="п",V1="%",$1=".",G1="‰",H1="⊥",j1="‱",Z1="𝔓",J1="𝔭",Y1="Φ",W1="φ",Q1="ϕ",K1="ℳ",X1="☎",nq="Π",rq="π",tq="⋔",oq="ϖ",eq="ℏ",sq="ℎ",cq="ℏ",iq="⨣",aq="⊞",lq="⨢",uq="+",pq="∔",fq="⨥",hq="⩲",dq="±",mq="±",gq="⨦",bq="⨧",_q="±",kq="ℌ",xq="⨕",vq="𝕡",yq="ℙ",Cq="£",wq="⪷",Aq="⪻",qq="≺",Dq="≼",Eq="⪷",Sq="≺",Fq="≼",Tq="≺",Rq="⪯",Lq="≼",zq="≾",Iq="⪯",Bq="⪹",Mq="⪵",Nq="⋨",Pq="⪯",Oq="⪳",Uq="≾",Vq="′",$q="″",Gq="ℙ",Hq="⪹",jq="⪵",Zq="⋨",Jq="∏",Yq="∏",Wq="⌮",Qq="⌒",Kq="⌓",Xq="∝",nD="∝",rD="∷",tD="∝",oD="≾",eD="⊰",sD="𝒫",cD="𝓅",iD="Ψ",aD="ψ",lD=" ",uD="𝔔",pD="𝔮",fD="⨌",hD="𝕢",dD="ℚ",mD="⁗",gD="𝒬",bD="𝓆",_D="ℍ",kD="⨖",xD="?",vD="≟",yD='"',CD='"',wD="⇛",AD="∽̱",qD="Ŕ",DD="ŕ",ED="√",SD="⦳",FD="⟩",TD="⟫",RD="⦒",LD="⦥",zD="⟩",ID="»",BD="⥵",MD="⇥",ND="⤠",PD="⤳",OD="→",UD="↠",VD="⇒",$D="⤞",GD="↪",HD="↬",jD="⥅",ZD="⥴",JD="⤖",YD="↣",WD="↝",QD="⤚",KD="⤜",XD="∶",nE="ℚ",rE="⤍",tE="⤏",oE="⤐",eE="❳",sE="}",cE="]",iE="⦌",aE="⦎",lE="⦐",uE="Ř",pE="ř",fE="Ŗ",hE="ŗ",dE="⌉",mE="}",gE="Р",bE="р",_E="⤷",kE="⥩",xE="”",vE="”",yE="↳",CE="ℜ",wE="ℛ",AE="ℜ",qE="ℝ",DE="ℜ",EE="▭",SE="®",FE="®",TE="∋",RE="⇋",LE="⥯",zE="⥽",IE="⌋",BE="𝔯",ME="ℜ",NE="⥤",PE="⇁",OE="⇀",UE="⥬",VE="Ρ",$E="ρ",GE="ϱ",HE="⟩",jE="⇥",ZE="→",JE="→",YE="⇒",WE="⇄",QE="↣",KE="⌉",XE="⟧",nS="⥝",rS="⥕",tS="⇂",oS="⌋",eS="⇁",sS="⇀",cS="⇄",iS="⇌",aS="⇉",lS="↝",uS="↦",pS="⊢",fS="⥛",hS="⋌",dS="⧐",mS="⊳",gS="⊵",bS="⥏",_S="⥜",kS="⥔",xS="↾",vS="⥓",yS="⇀",CS="˚",wS="≓",AS="⇄",qS="⇌",DS="‏",ES="⎱",SS="⎱",FS="⫮",TS="⟭",RS="⇾",LS="⟧",zS="⦆",IS="𝕣",BS="ℝ",MS="⨮",NS="⨵",PS="⥰",OS=")",US="⦔",VS="⨒",$S="⇉",GS="⇛",HS="›",jS="𝓇",ZS="ℛ",JS="↱",YS="↱",WS="]",QS="’",KS="’",XS="⋌",nF="⋊",rF="▹",tF="⊵",oF="▸",eF="⧎",sF="⧴",cF="⥨",iF="℞",aF="Ś",lF="ś",uF="‚",pF="⪸",fF="Š",hF="š",dF="⪼",mF="≻",gF="≽",bF="⪰",_F="⪴",kF="Ş",xF="ş",vF="Ŝ",yF="ŝ",CF="⪺",wF="⪶",AF="⋩",qF="⨓",DF="≿",EF="С",SF="с",FF="⊡",TF="⋅",RF="⩦",LF="⤥",zF="↘",IF="⇘",BF="↘",MF="§",NF=";",PF="⤩",OF="∖",UF="∖",VF="✶",$F="𝔖",GF="𝔰",HF="⌢",jF="♯",ZF="Щ",JF="щ",YF="Ш",WF="ш",QF="↓",KF="←",XF="∣",nT="∥",rT="→",tT="↑",oT="­",eT="Σ",sT="σ",cT="ς",iT="ς",aT="∼",lT="⩪",uT="≃",pT="≃",fT="⪞",hT="⪠",dT="⪝",mT="⪟",gT="≆",bT="⨤",_T="⥲",kT="←",xT="∘",vT="∖",yT="⨳",CT="⧤",wT="∣",AT="⌣",qT="⪪",DT="⪬",ET="⪬︀",ST="Ь",FT="ь",TT="⌿",RT="⧄",LT="/",zT="𝕊",IT="𝕤",BT="♠",MT="♠",NT="∥",PT="⊓",OT="⊓︀",UT="⊔",VT="⊔︀",$T="√",GT="⊏",HT="⊑",jT="⊏",ZT="⊑",JT="⊐",YT="⊒",WT="⊐",QT="⊒",KT="□",XT="□",n2="⊓",r2="⊏",t2="⊑",o2="⊐",e2="⊒",s2="⊔",c2="▪",i2="□",a2="▪",l2="→",u2="𝒮",p2="𝓈",f2="∖",h2="⌣",d2="⋆",m2="⋆",g2="☆",b2="★",_2="ϵ",k2="ϕ",x2="¯",v2="⊂",y2="⋐",C2="⪽",w2="⫅",A2="⊆",q2="⫃",D2="⫁",E2="⫋",S2="⊊",F2="⪿",T2="⥹",R2="⊂",L2="⋐",z2="⊆",I2="⫅",B2="⊆",M2="⊊",N2="⫋",P2="⫇",O2="⫕",U2="⫓",V2="⪸",$2="≻",G2="≽",H2="≻",j2="⪰",Z2="≽",J2="≿",Y2="⪰",W2="⪺",Q2="⪶",K2="⋩",X2="≿",nR="∋",rR="∑",tR="∑",oR="♪",eR="¹",sR="²",cR="³",iR="⊃",aR="⋑",lR="⪾",uR="⫘",pR="⫆",fR="⊇",hR="⫄",dR="⊃",mR="⊇",gR="⟉",bR="⫗",_R="⥻",kR="⫂",xR="⫌",vR="⊋",yR="⫀",CR="⊃",wR="⋑",AR="⊇",qR="⫆",DR="⊋",ER="⫌",SR="⫈",FR="⫔",TR="⫖",RR="⤦",LR="↙",zR="⇙",IR="↙",BR="⤪",MR="ß",NR=" ",PR="⌖",OR="Τ",UR="τ",VR="⎴",$R="Ť",GR="ť",HR="Ţ",jR="ţ",ZR="Т",JR="т",YR="⃛",WR="⌕",QR="𝔗",KR="𝔱",XR="∴",nL="∴",rL="∴",tL="Θ",oL="θ",eL="ϑ",sL="ϑ",cL="≈",iL="∼",aL="  ",lL=" ",uL=" ",pL="≈",fL="∼",hL="Þ",dL="þ",mL="˜",gL="∼",bL="≃",_L="≅",kL="≈",xL="⨱",vL="⊠",yL="×",CL="⨰",wL="∭",AL="⤨",qL="⌶",DL="⫱",EL="⊤",SL="𝕋",FL="𝕥",TL="⫚",RL="⤩",LL="‴",zL="™",IL="™",BL="▵",ML="▿",NL="◃",PL="⊴",OL="≜",UL="▹",VL="⊵",$L="◬",GL="≜",HL="⨺",jL="⃛",ZL="⨹",JL="⧍",YL="⨻",WL="⏢",QL="𝒯",KL="𝓉",XL="Ц",nz="ц",rz="Ћ",tz="ћ",oz="Ŧ",ez="ŧ",sz="≬",cz="↞",iz="↠",az="Ú",lz="ú",uz="↑",pz="↟",fz="⇑",hz="⥉",dz="Ў",mz="ў",gz="Ŭ",bz="ŭ",_z="Û",kz="û",xz="У",vz="у",yz="⇅",Cz="Ű",wz="ű",Az="⥮",qz="⥾",Dz="𝔘",Ez="𝔲",Sz="Ù",Fz="ù",Tz="⥣",Rz="↿",Lz="↾",zz="▀",Iz="⌜",Bz="⌜",Mz="⌏",Nz="◸",Pz="Ū",Oz="ū",Uz="¨",Vz="_",$z="⏟",Gz="⎵",Hz="⏝",jz="⋃",Zz="⊎",Jz="Ų",Yz="ų",Wz="𝕌",Qz="𝕦",Kz="⤒",Xz="↑",nI="↑",rI="⇑",tI="⇅",oI="↕",eI="↕",sI="⇕",cI="⥮",iI="↿",aI="↾",lI="⊎",uI="↖",pI="↗",fI="υ",hI="ϒ",dI="ϒ",mI="Υ",gI="υ",bI="↥",_I="⊥",kI="⇈",xI="⌝",vI="⌝",yI="⌎",CI="Ů",wI="ů",AI="◹",qI="𝒰",DI="𝓊",EI="⋰",SI="Ũ",FI="ũ",TI="▵",RI="▴",LI="⇈",zI="Ü",II="ü",BI="⦧",MI="⦜",NI="ϵ",PI="ϰ",OI="∅",UI="ϕ",VI="ϖ",$I="∝",GI="↕",HI="⇕",jI="ϱ",ZI="ς",JI="⊊︀",YI="⫋︀",WI="⊋︀",QI="⫌︀",KI="ϑ",XI="⊲",nB="⊳",rB="⫨",tB="⫫",oB="⫩",eB="В",sB="в",cB="⊢",iB="⊨",aB="⊩",lB="⊫",uB="⫦",pB="⊻",fB="∨",hB="⋁",dB="≚",mB="⋮",gB="|",bB="‖",_B="|",kB="‖",xB="∣",vB="|",yB="❘",CB="≀",wB=" ",AB="𝔙",qB="𝔳",DB="⊲",EB="⊂⃒",SB="⊃⃒",FB="𝕍",TB="𝕧",RB="∝",LB="⊳",zB="𝒱",IB="𝓋",BB="⫋︀",MB="⊊︀",NB="⫌︀",PB="⊋︀",OB="⊪",UB="⦚",VB="Ŵ",$B="ŵ",GB="⩟",HB="∧",jB="⋀",ZB="≙",JB="℘",YB="𝔚",WB="𝔴",QB="𝕎",KB="𝕨",XB="℘",n3="≀",r3="≀",t3="𝒲",o3="𝓌",e3="⋂",s3="◯",c3="⋃",i3="▽",a3="𝔛",l3="𝔵",u3="⟷",p3="⟺",f3="Ξ",h3="ξ",d3="⟵",m3="⟸",g3="⟼",b3="⋻",_3="⨀",k3="𝕏",x3="𝕩",v3="⨁",y3="⨂",C3="⟶",w3="⟹",A3="𝒳",q3="𝓍",D3="⨆",E3="⨄",S3="△",F3="⋁",T3="⋀",R3="Ý",L3="ý",z3="Я",I3="я",B3="Ŷ",M3="ŷ",N3="Ы",P3="ы",O3="¥",U3="𝔜",V3="𝔶",$3="Ї",G3="ї",H3="𝕐",j3="𝕪",Z3="𝒴",J3="𝓎",Y3="Ю",W3="ю",Q3="ÿ",K3="Ÿ",X3="Ź",nM="ź",rM="Ž",tM="ž",oM="З",eM="з",sM="Ż",cM="ż",iM="ℨ",aM="​",lM="Ζ",uM="ζ",pM="𝔷",fM="ℨ",hM="Ж",dM="ж",mM="⇝",gM="𝕫",bM="ℤ",_M="𝒵",kM="𝓏",xM="‍",vM="‌",yM={Aacute:ot,aacute:et,Abreve:st,abreve:ct,ac:it,acd:at,acE:lt,Acirc:ut,acirc:pt,acute:ft,Acy:ht,acy:dt,AElig:mt,aelig:gt,af:bt,Afr:_t,afr:kt,Agrave:xt,agrave:vt,alefsym:yt,aleph:Ct,Alpha:wt,alpha:At,Amacr:qt,amacr:Dt,amalg:Et,amp:St,AMP:Ft,andand:Tt,And:Rt,and:Lt,andd:zt,andslope:It,andv:Bt,ang:Mt,ange:Nt,angle:Pt,angmsdaa:Ot,angmsdab:Ut,angmsdac:Vt,angmsdad:$t,angmsdae:Gt,angmsdaf:Ht,angmsdag:jt,angmsdah:Zt,angmsd:Jt,angrt:Yt,angrtvb:Wt,angrtvbd:Qt,angsph:Kt,angst:Xt,angzarr:no,Aogon:ro,aogon:to,Aopf:oo,aopf:eo,apacir:so,ap:co,apE:io,ape:ao,apid:lo,apos:uo,ApplyFunction:po,approx:fo,approxeq:ho,Aring:mo,aring:go,Ascr:bo,ascr:_o,Assign:ko,ast:xo,asymp:vo,asympeq:yo,Atilde:Co,atilde:wo,Auml:Ao,auml:qo,awconint:Do,awint:Eo,backcong:So,backepsilon:Fo,backprime:To,backsim:Ro,backsimeq:Lo,Backslash:zo,Barv:Io,barvee:Bo,barwed:Mo,Barwed:No,barwedge:Po,bbrk:Oo,bbrktbrk:Uo,bcong:Vo,Bcy:$o,bcy:Go,bdquo:Ho,becaus:jo,because:Zo,Because:Jo,bemptyv:Yo,bepsi:Wo,bernou:Qo,Bernoullis:Ko,Beta:Xo,beta:ne,beth:re,between:te,Bfr:oe,bfr:ee,bigcap:se,bigcirc:ce,bigcup:ie,bigodot:ae,bigoplus:le,bigotimes:ue,bigsqcup:pe,bigstar:fe,bigtriangledown:he,bigtriangleup:de,biguplus:me,bigvee:ge,bigwedge:be,bkarow:_e,blacklozenge:ke,blacksquare:xe,blacktriangle:ve,blacktriangledown:ye,blacktriangleleft:Ce,blacktriangleright:we,blank:Ae,blk12:qe,blk14:De,blk34:Ee,block:Se,bne:Fe,bnequiv:Te,bNot:Re,bnot:Le,Bopf:ze,bopf:Ie,bot:Be,bottom:Me,bowtie:Ne,boxbox:Pe,boxdl:Oe,boxdL:Ue,boxDl:Ve,boxDL:$e,boxdr:Ge,boxdR:He,boxDr:je,boxDR:Ze,boxh:Je,boxH:Ye,boxhd:We,boxHd:Qe,boxhD:Ke,boxHD:Xe,boxhu:ns,boxHu:rs,boxhU:ts,boxHU:os,boxminus:es,boxplus:ss,boxtimes:cs,boxul:is,boxuL:as,boxUl:ls,boxUL:us,boxur:ps,boxuR:fs,boxUr:hs,boxUR:ds,boxv:ms,boxV:gs,boxvh:bs,boxvH:_s,boxVh:ks,boxVH:xs,boxvl:vs,boxvL:ys,boxVl:Cs,boxVL:ws,boxvr:As,boxvR:qs,boxVr:Ds,boxVR:Es,bprime:Ss,breve:Fs,Breve:Ts,brvbar:Rs,bscr:Ls,Bscr:zs,bsemi:Is,bsim:Bs,bsime:Ms,bsolb:Ns,bsol:Ps,bsolhsub:Os,bull:Us,bullet:Vs,bump:$s,bumpE:Gs,bumpe:Hs,Bumpeq:js,bumpeq:Zs,Cacute:Js,cacute:Ys,capand:Ws,capbrcup:Qs,capcap:Ks,cap:Xs,Cap:nc,capcup:rc,capdot:tc,CapitalDifferentialD:oc,caps:ec,caret:sc,caron:cc,Cayleys:ic,ccaps:ac,Ccaron:lc,ccaron:uc,Ccedil:pc,ccedil:fc,Ccirc:hc,ccirc:dc,Cconint:mc,ccups:gc,ccupssm:bc,Cdot:_c,cdot:kc,cedil:xc,Cedilla:vc,cemptyv:yc,cent:Cc,centerdot:wc,CenterDot:Ac,cfr:qc,Cfr:Dc,CHcy:Ec,chcy:Sc,check:Fc,checkmark:Tc,Chi:Rc,chi:Lc,circ:zc,circeq:Ic,circlearrowleft:Bc,circlearrowright:Mc,circledast:Nc,circledcirc:Pc,circleddash:Oc,CircleDot:Uc,circledR:Vc,circledS:$c,CircleMinus:Gc,CirclePlus:Hc,CircleTimes:jc,cir:Zc,cirE:Jc,cire:Yc,cirfnint:Wc,cirmid:Qc,cirscir:Kc,ClockwiseContourIntegral:Xc,CloseCurlyDoubleQuote:ni,CloseCurlyQuote:ri,clubs:ti,clubsuit:oi,colon:ei,Colon:si,Colone:ci,colone:ii,coloneq:ai,comma:li,commat:ui,comp:pi,compfn:fi,complement:hi,complexes:di,cong:mi,congdot:gi,Congruent:bi,conint:_i,Conint:ki,ContourIntegral:xi,copf:vi,Copf:yi,coprod:Ci,Coproduct:wi,copy:Ai,COPY:qi,copysr:Di,CounterClockwiseContourIntegral:Ei,crarr:Si,cross:Fi,Cross:Ti,Cscr:Ri,cscr:Li,csub:zi,csube:Ii,csup:Bi,csupe:Mi,ctdot:Ni,cudarrl:Pi,cudarrr:Oi,cuepr:Ui,cuesc:Vi,cularr:$i,cularrp:Gi,cupbrcap:Hi,cupcap:ji,CupCap:Zi,cup:Ji,Cup:Yi,cupcup:Wi,cupdot:Qi,cupor:Ki,cups:Xi,curarr:na,curarrm:ra,curlyeqprec:ta,curlyeqsucc:oa,curlyvee:ea,curlywedge:sa,curren:ca,curvearrowleft:ia,curvearrowright:aa,cuvee:la,cuwed:ua,cwconint:pa,cwint:fa,cylcty:ha,dagger:da,Dagger:ma,daleth:ga,darr:ba,Darr:_a,dArr:ka,dash:xa,Dashv:va,dashv:ya,dbkarow:Ca,dblac:wa,Dcaron:Aa,dcaron:qa,Dcy:Da,dcy:Ea,ddagger:Sa,ddarr:Fa,DD:Ta,dd:Ra,DDotrahd:La,ddotseq:za,deg:Ia,Del:Ba,Delta:Ma,delta:Na,demptyv:Pa,dfisht:Oa,Dfr:Ua,dfr:Va,dHar:$a,dharl:Ga,dharr:Ha,DiacriticalAcute:ja,DiacriticalDot:Za,DiacriticalDoubleAcute:Ja,DiacriticalGrave:Ya,DiacriticalTilde:Wa,diam:Qa,diamond:Ka,Diamond:Xa,diamondsuit:nl,diams:rl,die:tl,DifferentialD:ol,digamma:el,disin:sl,div:cl,divide:il,divideontimes:al,divonx:ll,DJcy:ul,djcy:pl,dlcorn:fl,dlcrop:hl,dollar:dl,Dopf:ml,dopf:gl,Dot:bl,dot:_l,DotDot:kl,doteq:xl,doteqdot:vl,DotEqual:yl,dotminus:Cl,dotplus:wl,dotsquare:Al,doublebarwedge:ql,DoubleContourIntegral:Dl,DoubleDot:El,DoubleDownArrow:Sl,DoubleLeftArrow:Fl,DoubleLeftRightArrow:Tl,DoubleLeftTee:Rl,DoubleLongLeftArrow:Ll,DoubleLongLeftRightArrow:zl,DoubleLongRightArrow:Il,DoubleRightArrow:Bl,DoubleRightTee:Ml,DoubleUpArrow:Nl,DoubleUpDownArrow:Pl,DoubleVerticalBar:Ol,DownArrowBar:Ul,downarrow:Vl,DownArrow:$l,Downarrow:Gl,DownArrowUpArrow:Hl,DownBreve:jl,downdownarrows:Zl,downharpoonleft:Jl,downharpoonright:Yl,DownLeftRightVector:Wl,DownLeftTeeVector:Ql,DownLeftVectorBar:Kl,DownLeftVector:Xl,DownRightTeeVector:nu,DownRightVectorBar:ru,DownRightVector:tu,DownTeeArrow:ou,DownTee:eu,drbkarow:su,drcorn:cu,drcrop:iu,Dscr:au,dscr:lu,DScy:uu,dscy:pu,dsol:fu,Dstrok:hu,dstrok:du,dtdot:mu,dtri:gu,dtrif:bu,duarr:_u,duhar:ku,dwangle:xu,DZcy:vu,dzcy:yu,dzigrarr:Cu,Eacute:wu,eacute:Au,easter:qu,Ecaron:Du,ecaron:Eu,Ecirc:Su,ecirc:Fu,ecir:Tu,ecolon:Ru,Ecy:Lu,ecy:zu,eDDot:Iu,Edot:Bu,edot:Mu,eDot:Nu,ee:Pu,efDot:Ou,Efr:Uu,efr:Vu,eg:$u,Egrave:Gu,egrave:Hu,egs:ju,egsdot:Zu,el:Ju,Element:Yu,elinters:Wu,ell:Qu,els:Ku,elsdot:Xu,Emacr:np,emacr:rp,empty:tp,emptyset:op,EmptySmallSquare:ep,emptyv:sp,EmptyVerySmallSquare:cp,emsp13:ip,emsp14:ap,emsp:lp,ENG:up,eng:pp,ensp:fp,Eogon:hp,eogon:dp,Eopf:mp,eopf:gp,epar:bp,eparsl:_p,eplus:kp,epsi:xp,Epsilon:vp,epsilon:yp,epsiv:Cp,eqcirc:wp,eqcolon:Ap,eqsim:qp,eqslantgtr:Dp,eqslantless:Ep,Equal:Sp,equals:Fp,EqualTilde:Tp,equest:Rp,Equilibrium:Lp,equiv:zp,equivDD:Ip,eqvparsl:Bp,erarr:Mp,erDot:Np,escr:Pp,Escr:Op,esdot:Up,Esim:Vp,esim:$p,Eta:Gp,eta:Hp,ETH:jp,eth:Zp,Euml:Jp,euml:Yp,euro:Wp,excl:Qp,exist:Kp,Exists:Xp,expectation:nf,exponentiale:rf,ExponentialE:tf,fallingdotseq:of,Fcy:ef,fcy:sf,female:cf,ffilig:af,fflig:lf,ffllig:uf,Ffr:pf,ffr:ff,filig:hf,FilledSmallSquare:df,FilledVerySmallSquare:mf,fjlig:gf,flat:bf,fllig:_f,fltns:kf,fnof:xf,Fopf:vf,fopf:yf,forall:Cf,ForAll:wf,fork:Af,forkv:qf,Fouriertrf:Df,fpartint:Ef,frac12:Sf,frac13:Ff,frac14:Tf,frac15:Rf,frac16:Lf,frac18:zf,frac23:If,frac25:Bf,frac34:Mf,frac35:Nf,frac38:Pf,frac45:Of,frac56:Uf,frac58:Vf,frac78:$f,frasl:Gf,frown:Hf,fscr:jf,Fscr:Zf,gacute:Jf,Gamma:Yf,gamma:Wf,Gammad:Qf,gammad:Kf,gap:Xf,Gbreve:nh,gbreve:rh,Gcedil:th,Gcirc:oh,gcirc:eh,Gcy:sh,gcy:ch,Gdot:ih,gdot:ah,ge:lh,gE:uh,gEl:ph,gel:fh,geq:hh,geqq:dh,geqslant:mh,gescc:gh,ges:bh,gesdot:_h,gesdoto:kh,gesdotol:xh,gesl:vh,gesles:yh,Gfr:Ch,gfr:wh,gg:Ah,Gg:qh,ggg:Dh,gimel:Eh,GJcy:Sh,gjcy:Fh,gla:Th,gl:Rh,glE:Lh,glj:zh,gnap:Ih,gnapprox:Bh,gne:Mh,gnE:Nh,gneq:Ph,gneqq:Oh,gnsim:Uh,Gopf:Vh,gopf:$h,grave:Gh,GreaterEqual:Hh,GreaterEqualLess:jh,GreaterFullEqual:Zh,GreaterGreater:Jh,GreaterLess:Yh,GreaterSlantEqual:Wh,GreaterTilde:Qh,Gscr:Kh,gscr:Xh,gsim:nd,gsime:rd,gsiml:td,gtcc:od,gtcir:ed,gt:sd,GT:cd,Gt:id,gtdot:ad,gtlPar:ld,gtquest:ud,gtrapprox:pd,gtrarr:fd,gtrdot:hd,gtreqless:dd,gtreqqless:md,gtrless:gd,gtrsim:bd,gvertneqq:_d,gvnE:kd,Hacek:xd,hairsp:vd,half:yd,hamilt:Cd,HARDcy:wd,hardcy:Ad,harrcir:qd,harr:Dd,hArr:Ed,harrw:Sd,Hat:Fd,hbar:Td,Hcirc:Rd,hcirc:Ld,hearts:zd,heartsuit:Id,hellip:Bd,hercon:Md,hfr:Nd,Hfr:Pd,HilbertSpace:Od,hksearow:Ud,hkswarow:Vd,hoarr:$d,homtht:Gd,hookleftarrow:Hd,hookrightarrow:jd,hopf:Zd,Hopf:Jd,horbar:Yd,HorizontalLine:Wd,hscr:Qd,Hscr:Kd,hslash:Xd,Hstrok:nm,hstrok:rm,HumpDownHump:tm,HumpEqual:om,hybull:em,hyphen:sm,Iacute:cm,iacute:im,ic:am,Icirc:lm,icirc:um,Icy:pm,icy:fm,Idot:hm,IEcy:dm,iecy:mm,iexcl:gm,iff:bm,ifr:_m,Ifr:km,Igrave:xm,igrave:vm,ii:ym,iiiint:Cm,iiint:wm,iinfin:Am,iiota:qm,IJlig:Dm,ijlig:Em,Imacr:Sm,imacr:Fm,image:Tm,ImaginaryI:Rm,imagline:Lm,imagpart:zm,imath:Im,Im:Bm,imof:Mm,imped:Nm,Implies:Pm,incare:Om,in:"∈",infin:Um,infintie:Vm,inodot:$m,intcal:Gm,int:Hm,Int:jm,integers:Zm,Integral:Jm,intercal:Ym,Intersection:Wm,intlarhk:Qm,intprod:Km,InvisibleComma:Xm,InvisibleTimes:ng,IOcy:rg,iocy:tg,Iogon:og,iogon:eg,Iopf:sg,iopf:cg,Iota:ig,iota:ag,iprod:lg,iquest:ug,iscr:pg,Iscr:fg,isin:hg,isindot:dg,isinE:mg,isins:gg,isinsv:bg,isinv:_g,it:kg,Itilde:xg,itilde:vg,Iukcy:yg,iukcy:Cg,Iuml:wg,iuml:Ag,Jcirc:qg,jcirc:Dg,Jcy:Eg,jcy:Sg,Jfr:Fg,jfr:Tg,jmath:Rg,Jopf:Lg,jopf:zg,Jscr:Ig,jscr:Bg,Jsercy:Mg,jsercy:Ng,Jukcy:Pg,jukcy:Og,Kappa:Ug,kappa:Vg,kappav:$g,Kcedil:Gg,kcedil:Hg,Kcy:jg,kcy:Zg,Kfr:Jg,kfr:Yg,kgreen:Wg,KHcy:Qg,khcy:Kg,KJcy:Xg,kjcy:n0,Kopf:r0,kopf:t0,Kscr:o0,kscr:e0,lAarr:s0,Lacute:c0,lacute:i0,laemptyv:a0,lagran:l0,Lambda:u0,lambda:p0,lang:f0,Lang:h0,langd:d0,langle:m0,lap:g0,Laplacetrf:b0,laquo:_0,larrb:k0,larrbfs:x0,larr:v0,Larr:y0,lArr:C0,larrfs:w0,larrhk:A0,larrlp:q0,larrpl:D0,larrsim:E0,larrtl:S0,latail:F0,lAtail:T0,lat:R0,late:L0,lates:z0,lbarr:I0,lBarr:B0,lbbrk:M0,lbrace:N0,lbrack:P0,lbrke:O0,lbrksld:U0,lbrkslu:V0,Lcaron:$0,lcaron:G0,Lcedil:H0,lcedil:j0,lceil:Z0,lcub:J0,Lcy:Y0,lcy:W0,ldca:Q0,ldquo:K0,ldquor:X0,ldrdhar:nb,ldrushar:rb,ldsh:tb,le:ob,lE:eb,LeftAngleBracket:sb,LeftArrowBar:cb,leftarrow:ib,LeftArrow:ab,Leftarrow:lb,LeftArrowRightArrow:ub,leftarrowtail:pb,LeftCeiling:fb,LeftDoubleBracket:hb,LeftDownTeeVector:db,LeftDownVectorBar:mb,LeftDownVector:gb,LeftFloor:bb,leftharpoondown:_b,leftharpoonup:kb,leftleftarrows:xb,leftrightarrow:vb,LeftRightArrow:yb,Leftrightarrow:Cb,leftrightarrows:wb,leftrightharpoons:Ab,leftrightsquigarrow:qb,LeftRightVector:Db,LeftTeeArrow:Eb,LeftTee:Sb,LeftTeeVector:Fb,leftthreetimes:Tb,LeftTriangleBar:Rb,LeftTriangle:Lb,LeftTriangleEqual:zb,LeftUpDownVector:Ib,LeftUpTeeVector:Bb,LeftUpVectorBar:Mb,LeftUpVector:Nb,LeftVectorBar:Pb,LeftVector:Ob,lEg:Ub,leg:Vb,leq:$b,leqq:Gb,leqslant:Hb,lescc:jb,les:Zb,lesdot:Jb,lesdoto:Yb,lesdotor:Wb,lesg:Qb,lesges:Kb,lessapprox:Xb,lessdot:n_,lesseqgtr:r_,lesseqqgtr:t_,LessEqualGreater:o_,LessFullEqual:e_,LessGreater:s_,lessgtr:c_,LessLess:i_,lesssim:a_,LessSlantEqual:l_,LessTilde:u_,lfisht:p_,lfloor:f_,Lfr:h_,lfr:d_,lg:m_,lgE:g_,lHar:b_,lhard:__,lharu:k_,lharul:x_,lhblk:v_,LJcy:y_,ljcy:C_,llarr:w_,ll:A_,Ll:q_,llcorner:D_,Lleftarrow:E_,llhard:S_,lltri:F_,Lmidot:T_,lmidot:R_,lmoustache:L_,lmoust:z_,lnap:I_,lnapprox:B_,lne:M_,lnE:N_,lneq:P_,lneqq:O_,lnsim:U_,loang:V_,loarr:$_,lobrk:G_,longleftarrow:H_,LongLeftArrow:j_,Longleftarrow:Z_,longleftrightarrow:J_,LongLeftRightArrow:Y_,Longleftrightarrow:W_,longmapsto:Q_,longrightarrow:K_,LongRightArrow:X_,Longrightarrow:nk,looparrowleft:rk,looparrowright:tk,lopar:ok,Lopf:ek,lopf:sk,loplus:ck,lotimes:ik,lowast:ak,lowbar:lk,LowerLeftArrow:uk,LowerRightArrow:pk,loz:fk,lozenge:hk,lozf:dk,lpar:mk,lparlt:gk,lrarr:bk,lrcorner:_k,lrhar:kk,lrhard:xk,lrm:vk,lrtri:yk,lsaquo:Ck,lscr:wk,Lscr:Ak,lsh:qk,Lsh:Dk,lsim:Ek,lsime:Sk,lsimg:Fk,lsqb:Tk,lsquo:Rk,lsquor:Lk,Lstrok:zk,lstrok:Ik,ltcc:Bk,ltcir:Mk,lt:Nk,LT:Pk,Lt:Ok,ltdot:Uk,lthree:Vk,ltimes:$k,ltlarr:Gk,ltquest:Hk,ltri:jk,ltrie:Zk,ltrif:Jk,ltrPar:Yk,lurdshar:Wk,luruhar:Qk,lvertneqq:Kk,lvnE:Xk,macr:nx,male:rx,malt:tx,maltese:ox,Map:"⤅",map:ex,mapsto:sx,mapstodown:cx,mapstoleft:ix,mapstoup:ax,marker:lx,mcomma:ux,Mcy:px,mcy:fx,mdash:hx,mDDot:dx,measuredangle:mx,MediumSpace:gx,Mellintrf:bx,Mfr:_x,mfr:kx,mho:xx,micro:vx,midast:yx,midcir:Cx,mid:wx,middot:Ax,minusb:qx,minus:Dx,minusd:Ex,minusdu:Sx,MinusPlus:Fx,mlcp:Tx,mldr:Rx,mnplus:Lx,models:zx,Mopf:Ix,mopf:Bx,mp:Mx,mscr:Nx,Mscr:Px,mstpos:Ox,Mu:Ux,mu:Vx,multimap:$x,mumap:Gx,nabla:Hx,Nacute:jx,nacute:Zx,nang:Jx,nap:Yx,napE:Wx,napid:Qx,napos:Kx,napprox:Xx,natural:nv,naturals:rv,natur:tv,nbsp:ov,nbump:ev,nbumpe:sv,ncap:cv,Ncaron:iv,ncaron:av,Ncedil:lv,ncedil:uv,ncong:pv,ncongdot:fv,ncup:hv,Ncy:dv,ncy:mv,ndash:gv,nearhk:bv,nearr:_v,neArr:kv,nearrow:xv,ne:vv,nedot:yv,NegativeMediumSpace:Cv,NegativeThickSpace:wv,NegativeThinSpace:Av,NegativeVeryThinSpace:qv,nequiv:Dv,nesear:Ev,nesim:Sv,NestedGreaterGreater:Fv,NestedLessLess:Tv,NewLine:Rv,nexist:Lv,nexists:zv,Nfr:Iv,nfr:Bv,ngE:Mv,nge:Nv,ngeq:Pv,ngeqq:Ov,ngeqslant:Uv,nges:Vv,nGg:$v,ngsim:Gv,nGt:Hv,ngt:jv,ngtr:Zv,nGtv:Jv,nharr:Yv,nhArr:Wv,nhpar:Qv,ni:Kv,nis:Xv,nisd:ny,niv:ry,NJcy:ty,njcy:oy,nlarr:ey,nlArr:sy,nldr:cy,nlE:iy,nle:ay,nleftarrow:ly,nLeftarrow:uy,nleftrightarrow:py,nLeftrightarrow:fy,nleq:hy,nleqq:dy,nleqslant:my,nles:gy,nless:by,nLl:_y,nlsim:ky,nLt:xy,nlt:vy,nltri:yy,nltrie:Cy,nLtv:wy,nmid:Ay,NoBreak:qy,NonBreakingSpace:Dy,nopf:Ey,Nopf:Sy,Not:Fy,not:Ty,NotCongruent:Ry,NotCupCap:Ly,NotDoubleVerticalBar:zy,NotElement:Iy,NotEqual:By,NotEqualTilde:My,NotExists:Ny,NotGreater:Py,NotGreaterEqual:Oy,NotGreaterFullEqual:Uy,NotGreaterGreater:Vy,NotGreaterLess:$y,NotGreaterSlantEqual:Gy,NotGreaterTilde:Hy,NotHumpDownHump:jy,NotHumpEqual:Zy,notin:Jy,notindot:Yy,notinE:Wy,notinva:Qy,notinvb:Ky,notinvc:Xy,NotLeftTriangleBar:nC,NotLeftTriangle:rC,NotLeftTriangleEqual:tC,NotLess:oC,NotLessEqual:eC,NotLessGreater:sC,NotLessLess:cC,NotLessSlantEqual:iC,NotLessTilde:aC,NotNestedGreaterGreater:lC,NotNestedLessLess:uC,notni:pC,notniva:fC,notnivb:hC,notnivc:dC,NotPrecedes:mC,NotPrecedesEqual:gC,NotPrecedesSlantEqual:bC,NotReverseElement:_C,NotRightTriangleBar:kC,NotRightTriangle:xC,NotRightTriangleEqual:vC,NotSquareSubset:yC,NotSquareSubsetEqual:CC,NotSquareSuperset:wC,NotSquareSupersetEqual:AC,NotSubset:qC,NotSubsetEqual:DC,NotSucceeds:EC,NotSucceedsEqual:SC,NotSucceedsSlantEqual:FC,NotSucceedsTilde:TC,NotSuperset:RC,NotSupersetEqual:LC,NotTilde:zC,NotTildeEqual:IC,NotTildeFullEqual:BC,NotTildeTilde:MC,NotVerticalBar:NC,nparallel:PC,npar:OC,nparsl:UC,npart:VC,npolint:$C,npr:GC,nprcue:HC,nprec:jC,npreceq:ZC,npre:JC,nrarrc:YC,nrarr:WC,nrArr:QC,nrarrw:KC,nrightarrow:XC,nRightarrow:nw,nrtri:rw,nrtrie:tw,nsc:ow,nsccue:ew,nsce:sw,Nscr:cw,nscr:iw,nshortmid:aw,nshortparallel:lw,nsim:uw,nsime:pw,nsimeq:fw,nsmid:hw,nspar:dw,nsqsube:mw,nsqsupe:gw,nsub:bw,nsubE:_w,nsube:kw,nsubset:xw,nsubseteq:vw,nsubseteqq:yw,nsucc:Cw,nsucceq:ww,nsup:Aw,nsupE:qw,nsupe:Dw,nsupset:Ew,nsupseteq:Sw,nsupseteqq:Fw,ntgl:Tw,Ntilde:Rw,ntilde:Lw,ntlg:zw,ntriangleleft:Iw,ntrianglelefteq:Bw,ntriangleright:Mw,ntrianglerighteq:Nw,Nu:Pw,nu:Ow,num:Uw,numero:Vw,numsp:$w,nvap:Gw,nvdash:Hw,nvDash:jw,nVdash:Zw,nVDash:Jw,nvge:Yw,nvgt:Ww,nvHarr:Qw,nvinfin:Kw,nvlArr:Xw,nvle:nA,nvlt:rA,nvltrie:tA,nvrArr:oA,nvrtrie:eA,nvsim:sA,nwarhk:cA,nwarr:iA,nwArr:aA,nwarrow:lA,nwnear:uA,Oacute:pA,oacute:fA,oast:hA,Ocirc:dA,ocirc:mA,ocir:gA,Ocy:bA,ocy:_A,odash:kA,Odblac:xA,odblac:vA,odiv:yA,odot:CA,odsold:wA,OElig:AA,oelig:qA,ofcir:DA,Ofr:EA,ofr:SA,ogon:FA,Ograve:TA,ograve:RA,ogt:LA,ohbar:zA,ohm:IA,oint:BA,olarr:MA,olcir:NA,olcross:PA,oline:OA,olt:UA,Omacr:VA,omacr:$A,Omega:GA,omega:HA,Omicron:jA,omicron:ZA,omid:JA,ominus:YA,Oopf:WA,oopf:QA,opar:KA,OpenCurlyDoubleQuote:XA,OpenCurlyQuote:n1,operp:r1,oplus:t1,orarr:o1,Or:e1,or:s1,ord:c1,order:i1,orderof:a1,ordf:l1,ordm:u1,origof:p1,oror:f1,orslope:h1,orv:d1,oS:m1,Oscr:g1,oscr:b1,Oslash:_1,oslash:k1,osol:x1,Otilde:v1,otilde:y1,otimesas:C1,Otimes:w1,otimes:A1,Ouml:q1,ouml:D1,ovbar:E1,OverBar:S1,OverBrace:F1,OverBracket:T1,OverParenthesis:R1,para:L1,parallel:z1,par:I1,parsim:B1,parsl:M1,part:N1,PartialD:P1,Pcy:O1,pcy:U1,percnt:V1,period:$1,permil:G1,perp:H1,pertenk:j1,Pfr:Z1,pfr:J1,Phi:Y1,phi:W1,phiv:Q1,phmmat:K1,phone:X1,Pi:nq,pi:rq,pitchfork:tq,piv:oq,planck:eq,planckh:sq,plankv:cq,plusacir:iq,plusb:aq,pluscir:lq,plus:uq,plusdo:pq,plusdu:fq,pluse:hq,PlusMinus:dq,plusmn:mq,plussim:gq,plustwo:bq,pm:_q,Poincareplane:kq,pointint:xq,popf:vq,Popf:yq,pound:Cq,prap:wq,Pr:Aq,pr:qq,prcue:Dq,precapprox:Eq,prec:Sq,preccurlyeq:Fq,Precedes:Tq,PrecedesEqual:Rq,PrecedesSlantEqual:Lq,PrecedesTilde:zq,preceq:Iq,precnapprox:Bq,precneqq:Mq,precnsim:Nq,pre:Pq,prE:Oq,precsim:Uq,prime:Vq,Prime:$q,primes:Gq,prnap:Hq,prnE:jq,prnsim:Zq,prod:Jq,Product:Yq,profalar:Wq,profline:Qq,profsurf:Kq,prop:Xq,Proportional:nD,Proportion:rD,propto:tD,prsim:oD,prurel:eD,Pscr:sD,pscr:cD,Psi:iD,psi:aD,puncsp:lD,Qfr:uD,qfr:pD,qint:fD,qopf:hD,Qopf:dD,qprime:mD,Qscr:gD,qscr:bD,quaternions:_D,quatint:kD,quest:xD,questeq:vD,quot:yD,QUOT:CD,rAarr:wD,race:AD,Racute:qD,racute:DD,radic:ED,raemptyv:SD,rang:FD,Rang:TD,rangd:RD,range:LD,rangle:zD,raquo:ID,rarrap:BD,rarrb:MD,rarrbfs:ND,rarrc:PD,rarr:OD,Rarr:UD,rArr:VD,rarrfs:$D,rarrhk:GD,rarrlp:HD,rarrpl:jD,rarrsim:ZD,Rarrtl:JD,rarrtl:YD,rarrw:WD,ratail:QD,rAtail:KD,ratio:XD,rationals:nE,rbarr:rE,rBarr:tE,RBarr:oE,rbbrk:eE,rbrace:sE,rbrack:cE,rbrke:iE,rbrksld:aE,rbrkslu:lE,Rcaron:uE,rcaron:pE,Rcedil:fE,rcedil:hE,rceil:dE,rcub:mE,Rcy:gE,rcy:bE,rdca:_E,rdldhar:kE,rdquo:xE,rdquor:vE,rdsh:yE,real:CE,realine:wE,realpart:AE,reals:qE,Re:DE,rect:EE,reg:SE,REG:FE,ReverseElement:TE,ReverseEquilibrium:RE,ReverseUpEquilibrium:LE,rfisht:zE,rfloor:IE,rfr:BE,Rfr:ME,rHar:NE,rhard:PE,rharu:OE,rharul:UE,Rho:VE,rho:$E,rhov:GE,RightAngleBracket:HE,RightArrowBar:jE,rightarrow:ZE,RightArrow:JE,Rightarrow:YE,RightArrowLeftArrow:WE,rightarrowtail:QE,RightCeiling:KE,RightDoubleBracket:XE,RightDownTeeVector:nS,RightDownVectorBar:rS,RightDownVector:tS,RightFloor:oS,rightharpoondown:eS,rightharpoonup:sS,rightleftarrows:cS,rightleftharpoons:iS,rightrightarrows:aS,rightsquigarrow:lS,RightTeeArrow:uS,RightTee:pS,RightTeeVector:fS,rightthreetimes:hS,RightTriangleBar:dS,RightTriangle:mS,RightTriangleEqual:gS,RightUpDownVector:bS,RightUpTeeVector:_S,RightUpVectorBar:kS,RightUpVector:xS,RightVectorBar:vS,RightVector:yS,ring:CS,risingdotseq:wS,rlarr:AS,rlhar:qS,rlm:DS,rmoustache:ES,rmoust:SS,rnmid:FS,roang:TS,roarr:RS,robrk:LS,ropar:zS,ropf:IS,Ropf:BS,roplus:MS,rotimes:NS,RoundImplies:PS,rpar:OS,rpargt:US,rppolint:VS,rrarr:$S,Rrightarrow:GS,rsaquo:HS,rscr:jS,Rscr:ZS,rsh:JS,Rsh:YS,rsqb:WS,rsquo:QS,rsquor:KS,rthree:XS,rtimes:nF,rtri:rF,rtrie:tF,rtrif:oF,rtriltri:eF,RuleDelayed:sF,ruluhar:cF,rx:iF,Sacute:aF,sacute:lF,sbquo:uF,scap:pF,Scaron:fF,scaron:hF,Sc:dF,sc:mF,sccue:gF,sce:bF,scE:_F,Scedil:kF,scedil:xF,Scirc:vF,scirc:yF,scnap:CF,scnE:wF,scnsim:AF,scpolint:qF,scsim:DF,Scy:EF,scy:SF,sdotb:FF,sdot:TF,sdote:RF,searhk:LF,searr:zF,seArr:IF,searrow:BF,sect:MF,semi:NF,seswar:PF,setminus:OF,setmn:UF,sext:VF,Sfr:$F,sfr:GF,sfrown:HF,sharp:jF,SHCHcy:ZF,shchcy:JF,SHcy:YF,shcy:WF,ShortDownArrow:QF,ShortLeftArrow:KF,shortmid:XF,shortparallel:nT,ShortRightArrow:rT,ShortUpArrow:tT,shy:oT,Sigma:eT,sigma:sT,sigmaf:cT,sigmav:iT,sim:aT,simdot:lT,sime:uT,simeq:pT,simg:fT,simgE:hT,siml:dT,simlE:mT,simne:gT,simplus:bT,simrarr:_T,slarr:kT,SmallCircle:xT,smallsetminus:vT,smashp:yT,smeparsl:CT,smid:wT,smile:AT,smt:qT,smte:DT,smtes:ET,SOFTcy:ST,softcy:FT,solbar:TT,solb:RT,sol:LT,Sopf:zT,sopf:IT,spades:BT,spadesuit:MT,spar:NT,sqcap:PT,sqcaps:OT,sqcup:UT,sqcups:VT,Sqrt:$T,sqsub:GT,sqsube:HT,sqsubset:jT,sqsubseteq:ZT,sqsup:JT,sqsupe:YT,sqsupset:WT,sqsupseteq:QT,square:KT,Square:XT,SquareIntersection:n2,SquareSubset:r2,SquareSubsetEqual:t2,SquareSuperset:o2,SquareSupersetEqual:e2,SquareUnion:s2,squarf:c2,squ:i2,squf:a2,srarr:l2,Sscr:u2,sscr:p2,ssetmn:f2,ssmile:h2,sstarf:d2,Star:m2,star:g2,starf:b2,straightepsilon:_2,straightphi:k2,strns:x2,sub:v2,Sub:y2,subdot:C2,subE:w2,sube:A2,subedot:q2,submult:D2,subnE:E2,subne:S2,subplus:F2,subrarr:T2,subset:R2,Subset:L2,subseteq:z2,subseteqq:I2,SubsetEqual:B2,subsetneq:M2,subsetneqq:N2,subsim:P2,subsub:O2,subsup:U2,succapprox:V2,succ:$2,succcurlyeq:G2,Succeeds:H2,SucceedsEqual:j2,SucceedsSlantEqual:Z2,SucceedsTilde:J2,succeq:Y2,succnapprox:W2,succneqq:Q2,succnsim:K2,succsim:X2,SuchThat:nR,sum:rR,Sum:tR,sung:oR,sup1:eR,sup2:sR,sup3:cR,sup:iR,Sup:aR,supdot:lR,supdsub:uR,supE:pR,supe:fR,supedot:hR,Superset:dR,SupersetEqual:mR,suphsol:gR,suphsub:bR,suplarr:_R,supmult:kR,supnE:xR,supne:vR,supplus:yR,supset:CR,Supset:wR,supseteq:AR,supseteqq:qR,supsetneq:DR,supsetneqq:ER,supsim:SR,supsub:FR,supsup:TR,swarhk:RR,swarr:LR,swArr:zR,swarrow:IR,swnwar:BR,szlig:MR,Tab:NR,target:PR,Tau:OR,tau:UR,tbrk:VR,Tcaron:$R,tcaron:GR,Tcedil:HR,tcedil:jR,Tcy:ZR,tcy:JR,tdot:YR,telrec:WR,Tfr:QR,tfr:KR,there4:XR,therefore:nL,Therefore:rL,Theta:tL,theta:oL,thetasym:eL,thetav:sL,thickapprox:cL,thicksim:iL,ThickSpace:aL,ThinSpace:lL,thinsp:uL,thkap:pL,thksim:fL,THORN:hL,thorn:dL,tilde:mL,Tilde:gL,TildeEqual:bL,TildeFullEqual:_L,TildeTilde:kL,timesbar:xL,timesb:vL,times:yL,timesd:CL,tint:wL,toea:AL,topbot:qL,topcir:DL,top:EL,Topf:SL,topf:FL,topfork:TL,tosa:RL,tprime:LL,trade:zL,TRADE:IL,triangle:BL,triangledown:ML,triangleleft:NL,trianglelefteq:PL,triangleq:OL,triangleright:UL,trianglerighteq:VL,tridot:$L,trie:GL,triminus:HL,TripleDot:jL,triplus:ZL,trisb:JL,tritime:YL,trpezium:WL,Tscr:QL,tscr:KL,TScy:XL,tscy:nz,TSHcy:rz,tshcy:tz,Tstrok:oz,tstrok:ez,twixt:sz,twoheadleftarrow:cz,twoheadrightarrow:iz,Uacute:az,uacute:lz,uarr:uz,Uarr:pz,uArr:fz,Uarrocir:hz,Ubrcy:dz,ubrcy:mz,Ubreve:gz,ubreve:bz,Ucirc:_z,ucirc:kz,Ucy:xz,ucy:vz,udarr:yz,Udblac:Cz,udblac:wz,udhar:Az,ufisht:qz,Ufr:Dz,ufr:Ez,Ugrave:Sz,ugrave:Fz,uHar:Tz,uharl:Rz,uharr:Lz,uhblk:zz,ulcorn:Iz,ulcorner:Bz,ulcrop:Mz,ultri:Nz,Umacr:Pz,umacr:Oz,uml:Uz,UnderBar:Vz,UnderBrace:$z,UnderBracket:Gz,UnderParenthesis:Hz,Union:jz,UnionPlus:Zz,Uogon:Jz,uogon:Yz,Uopf:Wz,uopf:Qz,UpArrowBar:Kz,uparrow:Xz,UpArrow:nI,Uparrow:rI,UpArrowDownArrow:tI,updownarrow:oI,UpDownArrow:eI,Updownarrow:sI,UpEquilibrium:cI,upharpoonleft:iI,upharpoonright:aI,uplus:lI,UpperLeftArrow:uI,UpperRightArrow:pI,upsi:fI,Upsi:hI,upsih:dI,Upsilon:mI,upsilon:gI,UpTeeArrow:bI,UpTee:_I,upuparrows:kI,urcorn:xI,urcorner:vI,urcrop:yI,Uring:CI,uring:wI,urtri:AI,Uscr:qI,uscr:DI,utdot:EI,Utilde:SI,utilde:FI,utri:TI,utrif:RI,uuarr:LI,Uuml:zI,uuml:II,uwangle:BI,vangrt:MI,varepsilon:NI,varkappa:PI,varnothing:OI,varphi:UI,varpi:VI,varpropto:$I,varr:GI,vArr:HI,varrho:jI,varsigma:ZI,varsubsetneq:JI,varsubsetneqq:YI,varsupsetneq:WI,varsupsetneqq:QI,vartheta:KI,vartriangleleft:XI,vartriangleright:nB,vBar:rB,Vbar:tB,vBarv:oB,Vcy:eB,vcy:sB,vdash:cB,vDash:iB,Vdash:aB,VDash:lB,Vdashl:uB,veebar:pB,vee:fB,Vee:hB,veeeq:dB,vellip:mB,verbar:gB,Verbar:bB,vert:_B,Vert:kB,VerticalBar:xB,VerticalLine:vB,VerticalSeparator:yB,VerticalTilde:CB,VeryThinSpace:wB,Vfr:AB,vfr:qB,vltri:DB,vnsub:EB,vnsup:SB,Vopf:FB,vopf:TB,vprop:RB,vrtri:LB,Vscr:zB,vscr:IB,vsubnE:BB,vsubne:MB,vsupnE:NB,vsupne:PB,Vvdash:OB,vzigzag:UB,Wcirc:VB,wcirc:$B,wedbar:GB,wedge:HB,Wedge:jB,wedgeq:ZB,weierp:JB,Wfr:YB,wfr:WB,Wopf:QB,wopf:KB,wp:XB,wr:n3,wreath:r3,Wscr:t3,wscr:o3,xcap:e3,xcirc:s3,xcup:c3,xdtri:i3,Xfr:a3,xfr:l3,xharr:u3,xhArr:p3,Xi:f3,xi:h3,xlarr:d3,xlArr:m3,xmap:g3,xnis:b3,xodot:_3,Xopf:k3,xopf:x3,xoplus:v3,xotime:y3,xrarr:C3,xrArr:w3,Xscr:A3,xscr:q3,xsqcup:D3,xuplus:E3,xutri:S3,xvee:F3,xwedge:T3,Yacute:R3,yacute:L3,YAcy:z3,yacy:I3,Ycirc:B3,ycirc:M3,Ycy:N3,ycy:P3,yen:O3,Yfr:U3,yfr:V3,YIcy:$3,yicy:G3,Yopf:H3,yopf:j3,Yscr:Z3,yscr:J3,YUcy:Y3,yucy:W3,yuml:Q3,Yuml:K3,Zacute:X3,zacute:nM,Zcaron:rM,zcaron:tM,Zcy:oM,zcy:eM,Zdot:sM,zdot:cM,zeetrf:iM,ZeroWidthSpace:aM,Zeta:lM,zeta:uM,zfr:pM,Zfr:fM,ZHcy:hM,zhcy:dM,zigrarr:mM,zopf:gM,Zopf:bM,Zscr:_M,zscr:kM,zwj:xM,zwnj:vM};var Fr=yM,zn=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,J={},jn={};function CM(t){var n,r,o=jn[t];if(o)return o;for(o=jn[t]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n"u"&&(r=!0),c=CM(n),o=0,e=t.length;o=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&i<=57343)){a+=encodeURIComponent(t[o]+t[o+1]),o++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[o])}return a}ln.defaultChars=";/?:@&=+$,-_.!~*'()#";ln.componentChars="-_.!~*'()";var wM=ln,Zn={};function AM(t){var n,r,o=Zn[t];if(o)return o;for(o=Zn[t]=[],n=0;n<128;n++)r=String.fromCharCode(n),o.push(r);for(n=0;n=55296&&u<=57343?p+="���":p+=String.fromCharCode(u),e+=6;continue}if((i&248)===240&&e+91114111?p+="����":(u-=65536,p+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),e+=9;continue}p+="�"}return p})}un.defaultChars=";/?:@&=+$,#";un.componentChars="";var qM=un,DM=function(n){var r="";return r+=n.protocol||"",r+=n.slashes?"//":"",r+=n.auth?n.auth+"@":"",n.hostname&&n.hostname.indexOf(":")!==-1?r+="["+n.hostname+"]":r+=n.hostname||"",r+=n.port?":"+n.port:"",r+=n.pathname||"",r+=n.search||"",r+=n.hash||"",r};function cn(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var EM=/^([a-z0-9.+-]+:)/i,SM=/:[0-9]*$/,FM=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,TM=["<",">",'"',"`"," ","\r",` `," "],RM=["{","}","|","\\","^","`"].concat(TM),LM=["'"].concat(RM),Jn=["%","/","?",";","#"].concat(LM),Yn=["/","?","#"],zM=255,Wn=/^[+a-z0-9A-Z_-]{0,63}$/,IM=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qn={javascript:!0,"javascript:":!0},Kn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function BM(t,n){if(t&&t instanceof cn)return t;var r=new cn;return r.parse(t,n),r}cn.prototype.parse=function(t,n){var r,o,e,s,i,c=t;if(c=c.trim(),!n&&t.split("#").length===1){var a=FM.exec(c);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=EM.exec(c);if(l&&(l=l[0],e=l.toLowerCase(),this.protocol=l,c=c.substr(l.length)),(n||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=c.substr(0,2)==="//",i&&!(l&&Qn[l])&&(c=c.substr(2),this.slashes=!0)),!Qn[l]&&(i||l&&!Kn[l])){var u=-1;for(r=0;r127?k+="x":k+=x[d];if(!k.match(Wn)){var y=m.slice(0,r),C=m.slice(r+1),_=x.match(IM);_&&(y.push(_[1]),C.unshift(_[2])),C.length&&(c=C.join(".")+c),this.hostname=y.join(".");break}}}}this.hostname.length>zM&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=c.indexOf("#");D!==-1&&(this.hash=c.substr(D),c=c.slice(0,D));var F=c.indexOf("?");return F!==-1&&(this.search=c.substr(F),c=c.slice(0,F)),c&&(this.pathname=c),Kn[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this};cn.prototype.parseHost=function(t){var n=SM.exec(t);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t)};var MM=BM;J.encode=wM;J.decode=qM;J.format=DM;J.parse=MM;var O={},_n,Xn;function Tr(){return Xn||(Xn=1,_n=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),_n}var kn,nr;function Rr(){return nr||(nr=1,kn=/[\0-\x1F\x7F-\x9F]/),kn}var xn,rr;function NM(){return rr||(rr=1,xn=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),xn}var vn,tr;function Lr(){return tr||(tr=1,vn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),vn}var or;function PM(){return or||(or=1,O.Any=Tr(),O.Cc=Rr(),O.Cf=NM(),O.P=zn,O.Z=Lr()),O}(function(t){function n(g){return Object.prototype.toString.call(g)}function r(g){return n(g)==="[object String]"}var o=Object.prototype.hasOwnProperty;function e(g,S){return o.call(g,S)}function s(g){var S=Array.prototype.slice.call(arguments,1);return S.forEach(function(A){if(A){if(typeof A!="object")throw new TypeError(A+"must be object");Object.keys(A).forEach(function(N){g[N]=A[N]})}}),g}function i(g,S,A){return[].concat(g.slice(0,S),A,g.slice(S+1))}function c(g){return!(g>=55296&&g<=57343||g>=64976&&g<=65007||(g&65535)===65535||(g&65535)===65534||g>=0&&g<=8||g===11||g>=14&&g<=31||g>=127&&g<=159||g>1114111)}function a(g){if(g>65535){g-=65536;var S=55296+(g>>10),A=56320+(g&1023);return String.fromCharCode(S,A)}return String.fromCharCode(g)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+u.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=Fr;function b(g,S){var A=0;return e(f,S)?f[S]:S.charCodeAt(0)===35&&h.test(S)&&(A=S[1].toLowerCase()==="x"?parseInt(S.slice(2),16):parseInt(S.slice(1),10),c(A))?a(A):g}function m(g){return g.indexOf("\\")<0?g:g.replace(l,"$1")}function x(g){return g.indexOf("\\")<0&&g.indexOf("&")<0?g:g.replace(p,function(S,A,N){return A||b(S,N)})}var k=/[&<>"]/,d=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function y(g){return v[g]}function C(g){return k.test(g)?g.replace(d,y):g}var _=/[.?*+^$[\]\\(){}|-]/g;function D(g){return g.replace(_,"\\$&")}function F(g){switch(g){case 9:case 32:return!0}return!1}function $(g){if(g>=8192&&g<=8202)return!0;switch(g){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var w=zn;function E(g){return w.test(g)}function Q(g){switch(g){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(g){return g=g.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(g=g.replace(/ẞ/g,"ß")),g.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=J,t.lib.ucmicro=PM(),t.assign=s,t.isString=r,t.has=e,t.unescapeMd=m,t.unescapeAll=x,t.isValidEntityCode=c,t.fromCodePoint=a,t.escapeHtml=C,t.arrayReplaceAt=i,t.isSpace=F,t.isWhiteSpace=$,t.isMdAsciiPunct=Q,t.isPunctChar=E,t.escapeRE=D,t.normalizeReference=G})(q);var pn={},OM=function(n,r,o){var e,s,i,c,a=-1,l=n.posMax,u=n.pos;for(n.pos=r+1,e=1;n.pos32))return a;if(e===41){if(s===0)break;s--}r++}return c===r||s!==0||(a.str=er(n.slice(c,r)),a.lines=i,a.pos=r,a.ok=!0),a},VM=q.unescapeAll,$M=function(n,r,o){var e,s,i=0,c=r,a={ok:!1,pos:0,lines:0,str:""};if(r>=o||(s=n.charCodeAt(r),s!==34&&s!==39&&s!==40))return a;for(r++,s===40&&(s=41);r"+V(t[n].content)+""};B.code_block=function(t,n,r,o,e){var s=t[n];return""+V(t[n].content)+` `};B.fence=function(t,n,r,o,e){var s=t[n],i=s.info?HM(s.info).trim():"",c="",a="",l,u,p,h,f;return i&&(p=i.split(/(\s+)/g),c=p[0],a=p.slice(2).join("")),r.highlight?l=r.highlight(s.content,c,a)||V(s.content):l=V(s.content),l.indexOf("")},closeTagString:function(m){return"")},isFirstSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.previousSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.previousSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isLastSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.nextSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.nextSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isList:function(m){return!!m&&0<=["UL","OL"].indexOf(m.tagName)},isLink:function(m){return!!m&&m.nodeType===Node.ELEMENT_NODE&&m.tagName.toLowerCase()==="a"},isElement:E,contents:s,isVoid:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((m.tagName||"").toLowerCase())},hasFocus:function(m){return m===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&!!(E(m)||m.type||m.href||~m.tabIndex)},isEditable:function(m){return(!m.getAttribute||m.getAttribute("contenteditable")!=="false")&&["STYLE","SCRIPT"].indexOf(m.tagName)<0},isDeletable:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&m.getAttribute("class")&&0<=(m.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(m,C){return m instanceof r&&(m=m.get(0)),m&&m.classList&&m.classList.contains(C)},filter:function(m){return e.browser.msie?m:{acceptNode:m}}}},Object.assign(t.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var r,s,d,u,b=e.$;function E(x){if(x.nodeType===Node.ELEMENT_NODE&&x.getAttribute("class")&&0<=x.getAttribute("class").indexOf("fr-marker"))return!1;var v,A=e.node.contents(x),l=[];for(v=0;v");if(x.nodeType===Node.TEXT_NODE)return v?x.textContent.replace(/&/g,"&").replace(//g,">"):x.textContent.replace(/&/g,"&").replace(//g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(x.nodeType!==Node.ELEMENT_NODE||x.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(x.tagName))return x.outerHTML;if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="svg"){var A=document.createElement("div"),l=x.cloneNode(!0);return A.appendChild(l),A.innerHTML}if(x.tagName==="IFRAME")return x.outerHTML.replace(/</g,"<").replace(/>/g,">");var i=x.childNodes;if(i.length===0)return x.outerHTML;for(var a="",p=0;p)<[^<]*)*<\/script>/gi,function(c){return m.push(c),"[FROALA.EDITOR.SCRIPT ".concat(m.length-1,"]")})).replace(/)<[^<]*)*<\/noscript>/gi,function(c){return m.push(c),"[FROALA.EDITOR.NOSCRIPT ".concat(m.length-1,"]")})).replace(/")})).replace(/":c;var ie=O(e.html.extractNodeAttrs(h,"head")),D=O(e.html.extractNodeAttrs(h,"body"));return"".concat(M,"").concat(c,"").concat(p,"")}return p}(l,i,x))}function B(x){var v=e.doc.createElement("DIV");return v.innerText=x,v.textContent}function I(x){for(var v=e.node.contents(x),A=0;A")},closeTagString:function(m){return"")},isFirstSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.previousSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.previousSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isLastSibling:function g(m,C){C===void 0&&(C=!0);for(var O=m.nextSibling;O&&C&&e.node.hasClass(O,"fr-marker");)O=O.nextSibling;return!O||O.nodeType===Node.TEXT_NODE&&O.textContent===""&&g(O)},isList:function(m){return!!m&&0<=["UL","OL"].indexOf(m.tagName)},isLink:function(m){return!!m&&m.nodeType===Node.ELEMENT_NODE&&m.tagName.toLowerCase()==="a"},isElement:E,contents:s,isVoid:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((m.tagName||"").toLowerCase())},hasFocus:function(m){return m===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&!!(E(m)||m.type||m.href||~m.tabIndex)},isEditable:function(m){return(!m.getAttribute||m.getAttribute("contenteditable")!=="false")&&["STYLE","SCRIPT"].indexOf(m.tagName)<0},isDeletable:function(m){return m&&m.nodeType===Node.ELEMENT_NODE&&m.getAttribute("class")&&0<=(m.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(m,C){return m instanceof r&&(m=m.get(0)),m&&m.classList&&m.classList.contains(C)},filter:function(m){return e.browser.msie?m:{acceptNode:m}}}},Object.assign(t.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var r,s,d,u,b=e.$;function E(x){if(x.nodeType===Node.ELEMENT_NODE&&x.getAttribute("class")&&0<=x.getAttribute("class").indexOf("fr-marker"))return!1;var v,A=e.node.contents(x),l=[];for(v=0;v");if(x.nodeType===Node.TEXT_NODE)return v?x.textContent.replace(/&/g,"&").replace(//g,">"):x.textContent.replace(/&/g,"&").replace(//g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(x.nodeType!==Node.ELEMENT_NODE||x.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(x.tagName))return x.outerHTML;if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="svg"){var A=document.createElement("div"),l=x.cloneNode(!0);return A.appendChild(l),A.innerHTML}if(x.tagName==="IFRAME")return x.outerHTML.replace(/</g,"<").replace(/>/g,">");var i=x.childNodes;if(i.length===0)return x.outerHTML;for(var a="",p=0;p)<[^<]*)*<\/script>/gi,function(c){return m.push(c),"[FROALA.EDITOR.SCRIPT ".concat(m.length-1,"]")})).replace(/)<[^<]*)*<\/noscript>/gi,function(c){return m.push(c),"[FROALA.EDITOR.NOSCRIPT ".concat(m.length-1,"]")})).replace(/")})).replace(/":c;var ie=O(e.html.extractNodeAttrs(h,"head")),D=O(e.html.extractNodeAttrs(h,"body"));return"".concat(M,"").concat(c,"").concat(p,"")}return p}(l,i,x))}function B(x){var v=e.doc.createElement("DIV");return v.innerText=x,v.textContent}function I(x){for(var v=e.node.contents(x),A=0;A"))}(i),i.nodeType===Node.ELEMENT_NODE&&(i.getAttribute("data-fr-src")&&i.getAttribute("data-fr-src").indexOf("blob:")!==0&&i.setAttribute("data-fr-src",e.helpers.sanitizeURL(B(i.getAttribute("data-fr-src")))),i.getAttribute("href")&&i.setAttribute("href",e.helpers.sanitizeURL(B(i.getAttribute("href")))),i.getAttribute("src")&&i.setAttribute("src",e.helpers.sanitizeURL(B(i.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(i.tagName)&&(i.innerHTML=i.innerHTML.trim())),!e.opts.pasteAllowLocalImages&&i.nodeType===Node.ELEMENT_NODE&&i.tagName==="IMG"&&i.getAttribute("data-fr-src")&&i.getAttribute("data-fr-src").indexOf("file://")===0)return i.parentNode.removeChild(i),!1;if(i.nodeType===Node.ELEMENT_NODE&&t.HTML5Map[i.tagName]&&e.node.attributes(i)===""){var a=t.HTML5Map[i.tagName],p="<".concat(a,">").concat(i.innerHTML,"");i.insertAdjacentHTML("beforebegin",p),(i=i.previousSibling).parentNode.removeChild(i.nextSibling)}if(e.opts.htmlAllowComments||i.nodeType!==Node.COMMENT_NODE)if(i.tagName&&i.tagName.match(s))i.tagName=="STYLE"&&e.helpers.isMac()&&function(){for(var D,_=i.innerHTML.trim(),Q=[],re=/{([^}]+)}/g;D=re.exec(_);)Q.push(D[1]);for(var q=function(H){var W=_.substring(0,_.indexOf("{")).trim();i.parentNode.querySelectorAll(W).forEach(function(T){T.removeAttribute("class"),T.setAttribute("style",Q[H])}),_=_.substring(_.indexOf("}")+1)},ae=0;_.indexOf("{")!=-1;ae++)q(ae)}(),i.parentNode.removeChild(i);else if(i.tagName&&!i.tagName.match(r))i.tagName==="svg"?i.parentNode.removeChild(i):e.browser.safari&&i.tagName==="path"&&i.parentNode&&i.parentNode.tagName==="svg"||(i.outerHTML=i.innerHTML);else{var c=i.attributes;if(c)for(var h=c.length-1;0<=h;h--){var M=c[h],N=M.nodeName.match(d),ie=null;M.nodeName==="style"&&e.opts.htmlAllowedStyleProps.length&&(ie=M.value.match(u)),N&&ie?M.value=C(ie.join(";")):N&&(M.nodeName!=="style"||ie)||i.removeAttribute(M.nodeName)}}else i.data.indexOf("[FROALA.EDITOR")!==0&&i.parentNode.removeChild(i)})(x)}return{_init:function(){e.opts.fullPage&&b.merge(e.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(v,A,l,i){A===void 0&&(A=[]),l===void 0&&(l=[]);var a,p=b.merge([],e.opts.htmlAllowedTags);for(a=0;a").concat(v[l].innerHTML,""));A&&e.selection.restore()}},tables:function(){(function(){for(var A=e.el.querySelectorAll("tr"),l=0;l ul, ol > ol, ul > ol, ol > ul"),l=0;l"))}}(),function(){for(var A=e.el.querySelectorAll("li > ul, li > ol"),l=0;l ul, li > ol"),l=0;l");else if(i.previousSibling&&i.previousSibling.tagName==="BR"){for(var a=i.previousSibling.previousSibling;a&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;a&&a.tagName!=="BR"&&b(i.previousSibling).remove()}}}(),function(){for(var A=e.el.querySelectorAll("li:empty"),l=0;l/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^".concat(t.LinkRegExHTTP).concat(t.LinkRegExEnd,"$"),"gi").test(O))},getAlignment:function(O){O.css||(O=s(O));var U=(O.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(U)<0){if(!r){var y=s('
..
'));s("body").first().append(y);var B=y.find("#s1").get(0).getBoundingClientRect().left,I=y.find("#s2").get(0).getBoundingClientRect().left;y.remove(),r=B=(window.innerHeight||document.documentElement.clientHeight)}}},t.MODULES.events=function(e){var r,s=e.$,d={};function u(A,l,i){y(A,l,i)}function b(A){if(A===void 0&&(A=!0),!e.$wp||(e.helpers.isIOS()&&e.$win.get(0).focus(),e.core.hasFocus()))return!1;if(!e.core.hasFocus()&&A){var l=e.$win.scrollTop();if(e.browser.msie&&e.$box&&e.$box.css("position","fixed"),e.browser.msie&&e.$wp&&e.$wp.css("overflow","visible"),e.browser.msie&&e.$sc&&e.$sc.css("position","fixed"),m(),e.el.focus(),e.events.trigger("focus"),g(),e.browser.msie&&e.$sc&&e.$sc.css("position",""),e.browser.msie&&e.$box&&e.$box.css("position",""),e.browser.msie&&e.$wp&&e.$wp.css("overflow","auto"),l!==e.$win.scrollTop()&&e.$win.scrollTop(l),!e.selection.info(e.el).atStart)return!1}if(!e.core.hasFocus()||0").concat(U,"")),U}var d={bold:function(){E("bold","strong")},subscript:function(){e.format.is("sup")&&e.format.remove("sup"),E("subscript","sub")},superscript:function(){e.format.is("sub")&&e.format.remove("sub"),E("superscript","sup")},italic:function(){E("italic","em")},strikeThrough:function(){E("strikeThrough","s")},underline:function(){E("underline","u")},undo:function(){e.undo.run()},redo:function(){e.undo.redo()},indent:function(){g(1)},outdent:function(){g(-1)},show:function(){e.opts.toolbarInline&&e.toolbar.showInline(null,!0)},insertHR:function(){e.selection.remove();var U="";e.core.isEmpty()&&(U=s(U="
")),e.html.insert('
'.concat(U));var y,B=e.$el.find("hr#fr-just").length?e.$el.find("hr#fr-just"):e.$el.find(".fr-just");if(B.removeAttr("id"),B.removeAttr("class"),B.next().length===0){var I=e.html.defaultTag();I?B.after(r(e.doc.createElement(I)).append("
").get(0)):B.after("
")}B.prev().is("hr")?y=e.selection.setAfter(B.get(0),!1):B.next().is("hr")?y=e.selection.setBefore(B.get(0),!1):e.selection.setAfter(B.get(0),!1)||e.selection.setBefore(B.get(0),!1),y||y===void 0||(U=s(U="".concat(t.MARKERS,"
")),B.after(U)),e.selection.restore()},clearFormatting:function(){e.format.remove()},selectAll:function(){e.doc.execCommand("selectAll",!1,!1)},moreText:function(U){u(U)},moreParagraph:function(U){u(U)},moreRich:function(U){u(U)},moreMisc:function(U){u(U)}};function u(U){(function(B){var I=e.$tb.find('.fr-more-toolbar[data-name="'.concat(B.attr("data-group-name"),'"]'));e.$tb.find(".fr-open").not(B).removeClass("fr-open"),B.toggleClass("fr-open"),e.$tb.find(".fr-more-toolbar").removeClass("fr-overflow-visible"),e.$tb.find(".fr-expanded").not(I).length?(e.$tb.find(".fr-expanded").toggleClass("fr-expanded"),I.toggleClass("fr-expanded")):(I.toggleClass("fr-expanded"),e.$box.toggleClass("fr-toolbar-open"),e.$tb.toggleClass("fr-toolbar-open"))})(e.$tb.find("[data-cmd=".concat(U,"]"))),e.toolbar.setMoreToolbarsHeight()}function b(U,y){if(e.events.trigger("commands.before",r.merge([U],y||[]))!==!1){var B=t.COMMANDS[U]&&t.COMMANDS[U].callback||d[U],I=!0,x=!1;t.COMMANDS[U]&&(typeof t.COMMANDS[U].focus<"u"&&(I=t.COMMANDS[U].focus),typeof t.COMMANDS[U].accessibilityFocus<"u"&&(x=t.COMMANDS[U].accessibilityFocus)),(!e.core.hasFocus()&&I&&!e.popups.areVisible()||!e.core.hasFocus()&&x&&e.accessibility.hasFocus())&&e.events.focus(!0),t.COMMANDS[U]&&t.COMMANDS[U].undo!==!1&&(e.$el.find(".fr-marker").length&&(e.events.disableBlur(),e.selection.restore()),e.undo.saveStep()),B&&B.apply(e,r.merge([U],y||[])),e.events.trigger("commands.after",r.merge([U],y||[])),t.COMMANDS[U]&&t.COMMANDS[U].undo!==!1&&e.undo.saveStep()}}function E(U,y){e.format.toggle(y)}function g(U){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var y=e.selection.blocks(),B=0;B").concat(t.MARKERS,"
").concat(U):O?"".concat(y,"<").concat(O,">").concat(t.MARKERS,"
").concat(U):"".concat(y+t.MARKERS,"
").concat(U);["UL","OL"].indexOf(B.tagName)<0||B.parentNode&&B.parentNode.tagName==="LI";)B=B.parentNode;r(g).replaceWith('');var x=e.node.openTagString(B)+r(B).html()+e.node.closeTagString(B);x=x.replace(/<\/span>/g,I),r(B).replaceWith(x),e.$el.find("li:empty").remove()}else if(C&&m||!e.node.isEmpty(g,!0)){for(var v="
",A=b.parentNode;A&&A.tagName!=="LI";)v=e.node.openTagString(A)+v+e.node.closeTagString(A),A=A.parentNode;r(g).before("
  • ".concat(v,"
  • ")),r(b).remove()}else if(C){E=d(g);for(var l="".concat(t.MARKERS,"
    "),i=b.parentNode;i&&i.tagName!=="LI";)l=e.node.openTagString(i)+l+e.node.closeTagString(i),i=i.parentNode;E.parentNode&&E.parentNode.tagName==="LI"?r(E.parentNode).after("
  • ".concat(l,"
  • ")):O?r(E).after("<".concat(O,">").concat(l,"")):r(E).after(l),r(g).remove()}else(E=d(g)).parentNode&&E.parentNode.tagName==="LI"?m?r(E.parentNode).before("".concat(e.node.openTagString(g)+t.MARKERS,"
    ")):r(E.parentNode).after("".concat(e.node.openTagString(g)+t.MARKERS,"
    ")):O?r(E).before("<".concat(O,">").concat(t.MARKERS,"
    ")):r(E).before("".concat(t.MARKERS,"
    ")),r(g).remove()},_middleEnter:function(b){for(var E=s(b),g="",m=b,C="",O="",U=!1;m!==E;){var y=(m=m.parentNode).tagName==="A"&&e.cursor.isAtEnd(b,m)?"fr-to-remove":"";U||m==E||e.node.isBlock(m)||(U=!0,C+=t.INVISIBLE_SPACE),C=e.node.openTagString(r(m).clone().addClass(y).get(0))+C,O=e.node.closeTagString(m)+O}g=O+g+C+t.MARKERS+(e.opts.keepFormatOnDelete?t.INVISIBLE_SPACE:""),r(b).replaceWith('');var B=e.node.openTagString(E)+r(E).html()+e.node.closeTagString(E);B=B.replace(/<\/span>/g,g),r(E).replaceWith(B)},_endEnter:function(b){for(var E=s(b),g=t.MARKERS,m="",C=b,O=!1;C!==E;)if(!(C=C.parentNode).classList.contains("fr-img-space-wrap")&&!C.classList.contains("fr-img-space-wrap2")){var U=C.tagName==="A"&&e.cursor.isAtEnd(b,C)?"fr-to-remove":"";O||C===E||e.node.isBlock(C)||(O=!0,m+=t.INVISIBLE_SPACE),m=e.node.openTagString(r(C).clone().addClass(U).get(0))+m,g+=e.node.closeTagString(C)}var y=m+g;r(b).remove(),r(E).after(y)},_backspace:function(b){var E=s(b),g=E.previousSibling;if(g){g=r(g).find(e.html.blockTagsQuery()).get(-1)||g,r(b).replaceWith(t.MARKERS);var m=e.node.contents(g);m.length&&m[m.length-1].tagName==="BR"&&r(m[m.length-1]).remove(),r(E).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===E&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))});for(var C,O=e.node.contents(E)[0];O&&!e.node.isList(O);)C=O.nextSibling,r(g).append(O),O=C;for(g=E.previousSibling;O;)C=O.nextSibling,r(g).append(O),O=C;1<(m=e.node.contents(g)).length&&m[m.length-1].tagName==="BR"&&r(m[m.length-1]).remove(),r(E).remove()}else{var U=d(E);if(r(b).replaceWith(t.MARKERS),U.parentNode&&U.parentNode.tagName==="LI"){var y=U.previousSibling;e.node.isBlock(y)?(r(E).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===E&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))}),r(y).append(r(E).html())):r(U).before(r(E).html())}else{var B=e.html.defaultTag();B&&r(E).find(e.html.blockTagsQuery()).length===0?r(U).before("<".concat(B,">").concat(r(E).html(),"")):r(U).before(r(E).html())}r(E).remove(),e.html.wrap(),r(U).find("li").length===0&&r(U).remove()}},_del:function(b){var E,g=s(b),m=g.nextSibling;if(m){(E=e.node.contents(m)).length&&E[0].tagName==="BR"&&r(E[0]).remove(),r(m).find(e.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode===m&&r(this).replaceWith(r(this).html()+(e.node.isEmpty(this)?"":"
    "))});for(var C,O=b,U=e.node.contents(m)[0];U&&!e.node.isList(U);)C=U.nextSibling,r(O).after(U),O=U,U=C;for(;U;)C=U.nextSibling,r(g).append(U),U=C;r(b).replaceWith(t.MARKERS),r(m).remove()}else{for(var y=g;!y.nextSibling&&y!==e.el;)y=y.parentNode;if(y===e.el)return!1;if(y=y.nextSibling,e.node.isBlock(y))t.NO_DELETE_TAGS.indexOf(y.tagName)<0&&(r(b).replaceWith(t.MARKERS),(E=e.node.contents(g)).length&&E[E.length-1].tagName==="BR"&&r(E[E.length-1]).remove(),r(g).append(r(y).html()),r(y).remove());else for((E=e.node.contents(g)).length&&E[E.length-1].tagName==="BR"&&r(E[E.length-1]).remove(),r(b).replaceWith(t.MARKERS);y&&!e.node.isBlock(y)&&y.tagName!=="BR";)r(g).append(r(y)),y=y.nextSibling}}}},t.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],t.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],t.MODULES.cursor=function(e){var r=e.$;function s(I){return!!I&&(!!e.node.isBlock(I)||(I.nextSibling&&I.nextSibling.nodeType===Node.TEXT_NODE&&I.nextSibling.textContent.replace(/\u200b/g,"").length===0?s(I.nextSibling):!(I.nextSibling&&(!I.previousSibling||I.nextSibling.tagName!=="BR"||I.nextSibling.nextSibling))&&s(I.parentNode)))}function d(I){return!!I&&(!!e.node.isBlock(I)||(I.previousSibling&&I.previousSibling.nodeType===Node.TEXT_NODE&&I.previousSibling.textContent.replace(/\u200b/g,"").length===0?d(I.previousSibling):!I.previousSibling&&(!(I.previousSibling||!e.node.hasClass(I.parentNode,"fr-inner"))||d(I.parentNode))))}function u(I,x){return!!I&&I!==e.$wp.get(0)&&(I.previousSibling&&I.previousSibling.nodeType===Node.TEXT_NODE&&I.previousSibling.textContent.replace(/\u200b/g,"").length===0?u(I.previousSibling,x):!I.previousSibling&&(I.parentNode===x||u(I.parentNode,x)))}function b(I,x){return!!I&&I!==e.$wp.get(0)&&(I.nextSibling&&I.nextSibling.nodeType===Node.TEXT_NODE&&I.nextSibling.textContent.replace(/\u200b/g,"").length===0?b(I.nextSibling,x):!(I.nextSibling&&(!I.previousSibling||I.nextSibling.tagName!=="BR"||I.nextSibling.nextSibling))&&(I.parentNode===x||b(I.parentNode,x)))}function E(I){return 0=e.opts.tabSpaces&&A.substr(A.length-e.opts.tabSpaces,A.length-1).replace(/ /g,"").replace(new RegExp(t.UNICODE_NBSP,"g"),"").length===0&&(l=A.length-e.opts.tabSpaces+1),v.textContent=A.substring(0,l-g(A)),e.opts.htmlUntouched&&!I.nextSibling&&v.textContent.length&&v.textContent[v.textContent.length-1]===" "&&(v.textContent=v.textContent.substring(0,v.textContent.length-1)+t.UNICODE_NBSP);var i=A.length!==v.textContent.length;if(v.textContent.length===0)if(i&&e.opts.keepFormatOnDelete)r(v).after(t.INVISIBLE_SPACE+t.MARKERS);else if(A.length!==0&&e.node.isBlock(v.parentNode))r(v).after(t.MARKERS);else if((v.parentNode.childNodes.length!=2||v.parentNode!=I.parentNode)&&v.parentNode.childNodes.length!=1||e.node.isBlock(v.parentNode)||e.node.isElement(v.parentNode)||!e.node.isDeletable(v.parentNode)){for(;!e.node.isElement(v.parentNode)&&e.node.isEmpty(v.parentNode)&&t.NO_DELETE_TAGS.indexOf(v.parentNode.tagName)<0;){var a=v;v=v.parentNode,a.parentNode.removeChild(a)}r(v).after(t.MARKERS),e.node.isElement(v.parentNode)&&!I.nextSibling&&v.previousSibling&&v.previousSibling.tagName==="BR"&&r(I).after("
    "),v.parentNode.removeChild(v)}else r(v.parentNode).after(t.MARKERS),r(v.parentNode).remove();else r(v).after(t.MARKERS)}else e.node.isDeletable(v)?(r(v).after(t.MARKERS),r(v).remove()):I.nextSibling&&I.nextSibling.tagName==="BR"&&e.node.isVoid(v)&&v.tagName!=="BR"?(r(I.nextSibling).remove(),r(I).replaceWith(t.MARKERS)):e.events.trigger("node.remove",[r(v)])!==!1&&(r(v).after(t.MARKERS),r(v).remove())}else if(t.NO_DELETE_TAGS.indexOf(v.tagName)<0&&(e.node.isEditable(v)||e.node.isDeletable(v)))if(e.node.isDeletable(v))r(I).replaceWith(t.MARKERS),r(v).remove();else if(e.node.isEmpty(v)&&!e.node.isList(v))r(v).remove(),r(I).replaceWith(t.MARKERS);else{for(e.node.isList(v)&&(v=r(v).find("li").last().get(0)),(x=e.node.contents(v))&&x[x.length-1].tagName==="BR"&&r(x[x.length-1]).remove(),x=e.node.contents(v);x&&e.node.isBlock(x[x.length-1]);)v=x[x.length-1],x=e.node.contents(v);r(v).append(t.MARKERS);for(var p=I;!p.previousSibling;)p=p.parentNode;for(;p&&p.tagName!=="BR"&&!e.node.isBlock(p);){var c=p;p=p.nextSibling,r(v).append(c)}p&&p.tagName==="BR"&&r(p).remove(),r(I).remove()}else I.nextSibling&&I.nextSibling.tagName==="BR"&&r(I.nextSibling).remove();return!0}function C(I){var x=0"))}),r(v).append(e.node.contents(a.get(0))),a.remove(),r(i).find("li").length===0&&r(i).remove())}else{if((l=e.node.contents(i)).length&&l[0].tagName==="BR"&&r(l[0]).remove(),i.tagName!=="BLOCKQUOTE"&&v.tagName==="BLOCKQUOTE")for(l=e.node.contents(v);l.length&&e.node.isBlock(l[l.length-1]);)v=l[l.length-1],l=e.node.contents(v);else if(i.tagName==="BLOCKQUOTE"&&v.tagName!=="BLOCKQUOTE")for(l=e.node.contents(i);l.length&&e.node.isBlock(l[0]);)i=l[0],l=e.node.contents(i);r(I).replaceWith(t.MARKERS),r(v).append(i.innerHTML),r(i).remove()}else{for(r(I).replaceWith(t.MARKERS);i&&i.tagName!=="BR"&&!e.node.isBlock(i)&&e.node.isEditable(i);){var p=i;i=i.nextSibling,r(v).append(p)}i&&i.tagName==="BR"&&e.node.isEditable(i)&&r(i).remove()}}}function O(I){for(var x,v=I;!v.nextSibling;)if(v=v.parentNode,e.node.isElement(v))return!1;if((v=v.nextSibling).tagName==="BR"&&e.node.isEditable(v)){if(v.nextSibling){if(e.node.isBlock(v.nextSibling)&&e.node.isEditable(v.nextSibling)){if(!(t.NO_DELETE_TAGS.indexOf(v.nextSibling.tagName)<0))return void r(v).remove();v=v.nextSibling,r(v.previousSibling).remove()}}else if(s(v)){E(I)?e.cursorLists._del(I):e.node.deepestParent(v)&&((!e.node.isEmpty(e.node.blockParent(v))||(e.node.blockParent(v).nextSibling&&t.NO_DELETE_TAGS.indexOf(e.node.blockParent(v).nextSibling.tagName))<0)&&r(v).remove(),C(I));return}}if(!e.node.isBlock(v)&&e.node.isEditable(v)){for(x=e.node.contents(v);v.nodeType!==Node.TEXT_NODE&&x.length&&!e.node.isDeletable(v)&&e.node.isEditable(v);)v=x[0],x=e.node.contents(v);v.nodeType===Node.TEXT_NODE?(r(v).before(t.MARKERS),v.textContent.length&&(v.textContent=v.textContent.substring(g(v.textContent,!0),v.textContent.length))):(e.node.isDeletable(v)||e.events.trigger("node.remove",[r(v)])!==!1)&&(r(v).before(t.MARKERS),r(v).remove()),r(I).remove()}else if(t.NO_DELETE_TAGS.indexOf(v.tagName)<0&&(e.node.isEditable(v)||e.node.isDeletable(v)))if(e.node.isDeletable(v))r(I).replaceWith(t.MARKERS),r(v).remove();else if(e.node.isList(v))I.previousSibling?(r(v).find("li").first().prepend(I),e.cursorLists._backspace(I)):(r(v).find("li").first().prepend(t.MARKERS),r(I).remove());else if((x=e.node.contents(v))&&x[0].tagName==="BR"&&r(x[0]).remove(),x&&v.tagName==="BLOCKQUOTE"){var A=x[0];for(r(I).before(t.MARKERS);A&&A.tagName!=="BR";){var l=A;A=A.nextSibling,r(I).before(l)}A&&A.tagName==="BR"&&r(A).remove()}else r(I).after(r(v).html()).after(t.MARKERS),r(v).remove()}function U(){for(var I=e.el.querySelectorAll("blockquote:empty"),x=0;x"+t.MARKERS):A?r(l).after("<".concat(A,">").concat(t.MARKERS,"
    ")):r(l).after("".concat(t.MARKERS,"
    ")),r(I).remove()):B(I,x,v),!1;if(l===null)(A=e.html.defaultTag())&&e.node.isElement(I.parentNode)?r(I).replaceWith("<".concat(A,">").concat(t.MARKERS,"
    ")):!I.previousSibling||r(I.previousSibling).is("br")||I.nextSibling?r(I).replaceWith("
    ".concat(t.MARKERS)):r(I).replaceWith("
    ".concat(t.MARKERS,"
    "));else{var i=I,a="";l.tagName!="PRE"||I.nextSibling||(x=!0),e.node.isBlock(l)&&!x||(a="
    ");var p,c="",h="",M="",N="";(A=e.html.defaultTag())&&e.node.isBlock(l)&&(M="<".concat(A,">"),N=""),l.tagName===A.toUpperCase()&&(M=e.node.openTagString(r(l).clone().removeAttr("id").get(0))));do if(i=i.parentNode,!x||i!==l||x&&!e.node.isBlock(l))if(c+=e.node.closeTagString(i),i===l&&e.node.isBlock(l))h=M+h;else{var ie=(i.tagName==="A"||e.node.hasClass(i,"fa"))&&b(I,i)?"fr-to-remove":"";h=e.node.openTagString(r(i).clone().addClass(ie).get(0))+h}while(i!==l);a=c+a+h+(I.parentNode===l&&e.node.isBlock(l)?"":t.INVISIBLE_SPACE)+t.MARKERS,e.node.isBlock(l)&&!r(l).find("*").last().is("br")&&r(l).append("
    "),r(I).after(''),r(I).remove(),l.nextSibling&&!e.node.isBlock(l.nextSibling)||e.node.isBlock(l)||r(l).after("
    "),p=(p=!x&&e.node.isBlock(l)?e.node.openTagString(l)+r(l).html()+N:e.node.openTagString(l)+r(l).html()+e.node.closeTagString(l)).replace(/<\/span>/g,a),r(l).replaceWith(p)}}function B(I,x,v){var A=e.node.deepestParent(I,[],!v);if(A===null)e.html.defaultTag()&&I.parentNode===e.el?r(I).replaceWith("<".concat(e.html.defaultTag(),">").concat(t.MARKERS,"
    ")):(I.nextSibling&&!e.node.isBlock(I.nextSibling)||r(I).after("
    "),r(I).replaceWith("
    ".concat(t.MARKERS)));else if(I.previousSibling&&I.previousSibling.tagName=="IMG"||I.nextSibling&&I.nextSibling.tagName=="IMG")r(I).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{var l=I,i="";A.tagName==="PRE"&&(x=!0),e.node.isBlock(A)&&!x||(i="
    ");var a="",p="";do{var c=l;if(l=l.parentNode,A.tagName==="BLOCKQUOTE"&&e.node.isEmpty(c)&&!e.node.hasClass(c,"fr-marker")&&r(c).contains(I)&&r(c).after(I),A.tagName!=="BLOCKQUOTE"||!b(I,l)&&!u(I,l))if(!x||l!==A||x&&!e.node.isBlock(A)){a+=e.node.closeTagString(l);var h=l.tagName=="A"&&b(I,l)||e.node.hasClass(l,"fa")?"fr-to-remove":"";p=e.node.openTagString(r(l).clone().addClass(h).removeAttr("id").get(0))+p}else A.tagName=="BLOCKQUOTE"&&x&&(p=a="")}while(l!==A);var M=A===I.parentNode&&e.node.isBlock(A)||I.nextSibling;if(A.tagName==="BLOCKQUOTE")if(I.previousSibling&&e.node.isBlock(I.previousSibling)&&I.nextSibling&&I.nextSibling.tagName==="BR"&&(r(I.nextSibling).after(I),I.nextSibling&&I.nextSibling.tagName==="BR"&&r(I.nextSibling).remove()),x)i=a+i+t.MARKERS+p;else{var N=e.html.defaultTag();i="".concat(a+i+(N?"<".concat(N,">"):"")+t.MARKERS,"
    ").concat(N?""):"").concat(p)}else i=a+i+p+(M?"":t.INVISIBLE_SPACE)+t.MARKERS;r(I).replaceWith('');var ie=e.node.openTagString(A)+r(A).html()+e.node.closeTagString(A);ie=ie.replace(/<\/span>/g,i),r(A).replaceWith(ie)}}return{enter:function(x){var v=e.markers.insert();if(!v)return!0;for(var A=v.parentNode;A&&!e.node.isElement(A);){if(A.getAttribute("contenteditable")==="false")return r(v).replaceWith(t.MARKERS),e.selection.restore(),!1;if(A.getAttribute("contenteditable")==="true")break;A=A.parentNode}e.el.normalize();var l=!1;0").concat(t.MARKERS,"
    ")):r(M).before("".concat(t.MARKERS,"
    ")),r(a).remove(),!1}else b(a,M)?y(a,p,!0):B(a,p,!0);if(M===null)(h=e.html.defaultTag())&&e.node.isElement(a.parentNode)?r(a).replaceWith("<".concat(h,">").concat(t.MARKERS,"
    ")):r(a).replaceWith("
    ".concat(t.MARKERS));else{if(e.node.isBlock(M))if(M.tagName==="PRE"&&(p=!0),p)r(a).remove(),r(M).prepend("
    ".concat(t.MARKERS));else if(a.nextSibling&&a.nextSibling.tagName=="IMG"||a.nextSibling&&a.nextSibling.nextElementSibling&&a.nextSibling.nextElementSibling=="IMG")r(a).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{if(e.node.isEmpty(M,!0))return y(a,p,c);if(e.opts.keepFormatOnDelete){for(var N=a,ie=t.INVISIBLE_SPACE;N!==M&&!e.node.isElement(N);)N=N.parentNode,ie=e.node.openTagString(N)+ie+e.node.closeTagString(N);r(M).before(ie)}else r(M).before("".concat(e.node.openTagString(r(M).clone().removeAttr("id").get(0)),"
    ").concat(e.node.closeTagString(M)))}else r(M).before("
    ");r(a).remove()}}(v,x,l):e.cursorLists._startEnter(v):!E(v)||x||l?B(v,x,l):e.cursorLists._middleEnter(v),function(){e.$el.find(".fr-to-remove").each(function(){for(var a=e.node.contents(this),p=0;p div").first(),O=C.find("> a"),e.opts.direction==="rtl"&&C.css("left","auto").css("right",0).attr("direction","rtl"),i++}function g(a){for(var p=[l("9qqG-7amjlwq=="),l("KA3B3C2A6D1D5H5H1A3=="),l("3B9B3B5F3C4G3E3=="),l("QzbzvxyB2yA-9m=="),l("ji1kacwmgG5bc=="),l("nmA-13aogi1A3c1jd=="),l("BA9ggq=="),l("emznbjbH3fij=="),l("tkC-22d1qC-13sD1wzF-7=="),l("tA3jjf=="),l("1D1brkm==")],c=0;cthis.length)&&(M=this.length),this.substring(M-h.length,M)===h}),a.endsWith(p[c]))return!0;return!1}function m(){var a=l(I),p=l("tzgatD-13eD1dtdrvmF3c1nrC-7saQcdav==").split(".");return window.parent.document.querySelector(a)&&window[p[1]][p[2]]}var C,O,U=e.$,y="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2FC1A3NB2IF1HE1TH4WB8eB-11zVG2F3I3yYB5ZG4CB2DA15CC5AD3F1A1KG1oLA10B1A6wQF1H3vgale2C4F4XA2qc2A5D5B3pepmriKB3OE1HD1fUC10pjD-11E-11TB4YJ3bC-16zE-11yc1B2CE2BC3jhjKC1pdA-21OA6C1D5B-8vF4QA11pD6sqf1C3lldA-16BD4A2H3qoEA7bB-16rmNH5H1F1vSB7RE2A3TH4YC5A5b1A4d1B3whepyAC3AA2zknC3mbgf1SC4WH4PD8TC5ZB2C3H3jb2A5ZA2EF2aoFC5qqHC4B1H1zeGA7UA5RF4TA29TA6ZC4d1C3hyWA10A3rBB2E3decorationRD3QC10UD3E6E6ZD2F3F3fme2E5uxxrEC9C3E4fB-11azhHB1LD7D6VF4VVTPC6b1C4TYG3qzDD6B3B3AH4I2H2kxbHE1JD1yihfd1QD6WB1D4mhrc1B5rvFG3A14A7cDA2OC1AA1JB5zC-16KA6WB4C-8wvlTB5A5lkZB2C2C7zynBD2D2bI-7C-21d1HE2cubyvPC8A6VB3aroxxZE4C4F4e1I2BE1WjdifH1H4A14NA1GB1YG-10tWA3A14A9sVA2C5XH2A29b2A6gsleGG2jaED2D-13fhE1OA8NjwytyTD4e1sc1D-16ZC3B5C-9e1C2FB6EFF5B2C2JH4E1C2tdLE5A3UG4G-7b2D3B4fA-9oh1G3kqvB4AG3ibnjcAC6D2B1cDA9KC2QA6bRC4VA30RB8hYB2A4A-8h1A21A2B2==",B="7D4YH4fkhHB3pqDC3H2E1fkMD1IB1NF1D3QD9wB5rxqlh1A8c2B4ZA3FD2AA6FB5EB3jJG4D2J-7aC-21GB6PC5RE4TC11QD6XC4XE3XH3mlvnqjbaOA2OC2BE6A1fmI-7ujwbc1G5f1F3e1C11mXF4owBG3E1yD1E4F1D2D-8B-8C-7yC-22HD1MF5UE4cWA3D8D6a1B2C3H3a3I3sZA4B3A2akfwEB3xHD5D1F1wIC11pA-16xdxtVI2C9A6YC4a1A2F3B2GA6B4C3lsjyJB1eMA1D-11MF5PE4ja1D3D7byrf1C3e1C7D-16lwqAF3H2A1B-21wNE1MA1OG1HB2A-16tSE5UD4RB3icRA4F-10wtwzBB3E1C3CC2DA8LA2LA1EB1kdH-8uVB7decorg1J2B7B6qjrqGI2J1C6ijehIB1hkemC-13hqkrH4H-7QD6XF5XF3HLNAC3CB2aD2CD2KB10B4ycg1A-8KA4H4B11jVB5TC4yqpB-21pd1E4pedzGB6MD5B3ncB-7MA4LD2JB6PD5uH-8TB9C7YD5XD2E3I3jmiDB3zeimhLD8E2F2JC1H-9ivkPC5lG-10SB1D3H3A-21rc1A3d1E3fsdqwfGA2KA1OrC-22LA6D1B4afUB16SC7AitC-8qYA11fsxcajGA15avjNE2A-9h1hDB16B9tPC1C5F5UC1G3B8d2A5d1D4RnHJ3C3JB5D3ucMG1yzD-17hafjC-8VD3yWC6e1YD2H3ZE2C8C5oBA3H3D2vFA4WzJC4C2i1A-65fNB8afWA1H4A26mvkC-13ZB3E3h1A21BC4eFB2GD2AA5ghqND2A2B2==",I="MekC-11nB-8tIzpD7pewxvzC6mD-16xerg1==",x="AA15A8B6C4B5A2E2B3B1A7==",v="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2EE1MA2ND1KD1IE4cA-21pSD2D5ve1G3h1A8b1E5ZC3CD2FA16mC5OC5E1hpnG1NA10B1D7hkUD4I-7b2C3C5nXD2E3F3whidEC2EH3GI2mJE2E2bxci1WA10VC7pllSG2F3A7xd1A4ZC3DB2aaeGA2DE4H2E1j1ywD-13FD1A3VE4WA3D8C6wuc1A2hf1B5B7vnrrjA1B9ic1mpbD1oMB1iSB7rWC4RI4G-7upB6jd1A2F3H2EA4FD3kDF4A2moc1anJD1TD4VI4b2C7oeQF4c1E3XC7ZA3C3G3uDB2wGB6D1JC4D1JD4C1hTE6QC5pH4pD3C-22D7c1A3textAA4gdlB2mpozkmhNC1mrxA3yWA5edhg1I2H3B7ozgmvAI3I2B5GD1LD2RSNH1KA1XA5SB4PA3sA9tlmC-9tnf1G3nd1coBH4I2I2JC3C-16LE6A1tnUA3vbwQB1G3f1A20a3A8a1C6pxAB2eniuE1F3kH2lnjB2hB-16XA5PF1G4zwtYA5B-11mzTG2B9pHB3BE2hGH3B3B2cMD5C1F1wzPA8E7VG5H5vD3H-7C8tyvsVF2I1G2A5fE3bg1mgajoyxMA4fhuzSD8aQB2B4g1A20ukb1A4B3F3GG2CujjanIC1ObiB11SD1C5pWC1D4YB8YE5FE-11jXE2F-7jB4CC2G-10uLH4E1C2tA-13yjUH5d1H1A7sWD5E4hmjF-7pykafoGA16hDD4joyD-8OA33B3C2tC7cRE4SA31a1B8d1e2A4F4g1A2A22CC5zwlAC2C1A12==",A=function(){for(var a=0,p=document.domain,c=p.split("."),h="_gd".concat(new Date().getTime());a")}(y)),e.selection.restore();else{var x;e.selection.save(),b(e.$el.find('.fr-marker[data-type="true"]').length&&e.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,y,B);do for(x=e.$el.find("".concat(d(y,B)," > ").concat(d(y,B))),I=0;I
    '),A=a.html().replace(/<\/span>/,l+e.node.closeTagString(a.get(0))+i+p+l+e.node.openTagString(a.get(0))+i),a.replaceWith(e.node.openTagString(a.get(0))+A+e.node.closeTagString(a.get(0))),!0}return!1}function m(y,B){B===void 0&&(B={}),B.style&&delete B.style;var I=e.selection.isCollapsed();e.selection.save();for(var x=!0;x;){x=!1;for(var v=e.$el.find(".fr-marker"),A=0;A')){if(e.node.isEmpty(a.get(0)))i=r(e.doc.createElement("span")).attr("style","".concat(y,": ").concat(B,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),a.replaceWith(i);else{var p={};p["style*"]="".concat(y,":"),g(x,"span",p,!0),x=e.$el.find(".fr-marker"),B?(i=r(e.doc.createElement("span")).attr("style","".concat(y,": ").concat(B,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),x.replaceWith(i)):x.replaceWith(t.INVISIBLE_SPACE+t.MARKERS)}e.html.cleanEmptyTags()}else e.node.isEmpty(a.get(0))&&a.is("span")?(x.replaceWith(t.MARKERS),a.css(y,B)):(i=r('').concat(t.INVISIBLE_SPACE).concat(t.MARKERS,"")),x.replaceWith(i));i&&O(i,y,B)}else{if(e.selection.save(),B===null||y==="color"&&0").concat(p);y.replaceWith('');var ie=l.get(0).outerHTML;r(l.get(0)).replaceWith(ie.replace(/<\/span>/g,function(){return N}))}}function U(y,B){B===void 0&&(B={}),B.style&&delete B.style;var I=e.selection.ranges(0),x=I.startContainer;if(x.nodeType===Node.ELEMENT_NODE&&0"),t.END_MARKER='"),t.MARKERS=t.START_MARKER+t.END_MARKER,t.MODULES.markers=function(e){var r=e.$;function s(){if(!e.$wp)return null;try{var u=e.selection.ranges(0),b=u.commonAncestorContainer;if(b!==e.el&&!e.$el.contains(b))return null;var E=u.cloneRange(),g=u.cloneRange();E.collapse(!0);var m=r(e.doc.createElement("SPAN")).addClass("fr-marker").attr("style","display: none; line-height: 0;").html(t.INVISIBLE_SPACE).get(0);if(E.insertNode(m),m=e.$el.find("span.fr-marker").get(0)){for(var C=m.nextSibling;C&&C.nodeType===Node.TEXT_NODE&&C.textContent.length===0;)r(C).remove(),C=e.$el.find("span.fr-marker").get(0).nextSibling;return e.selection.clear(),e.selection.get().addRange(g),m}return null}catch{}}function d(){e.$el.find(".fr-marker").remove()}return{place:function(b,E,g){var m,C,O;try{var U=b.cloneRange();if(U.collapse(E),U.insertNode(function(I,x){var v=r(e.doc.createElement("SPAN"));return v.addClass("fr-marker").attr("data-id",x).attr("data-type",I).attr("style","display: ".concat(e.browser.safari?"none":"inline-block","; line-height: 0;")).html(t.INVISIBLE_SPACE),v.get(0)}(E,g)),E===!0)for(O=(m=e.$el.find('span.fr-marker[data-type="true"][data-id="'.concat(g,'"]')).get(0)).nextSibling;O&&O.nodeType===Node.TEXT_NODE&&O.textContent.length===0;)r(O).remove(),O=m.nextSibling;if(E===!0&&!b.collapsed){for(;!e.node.isElement(m.parentNode)&&!O;)r(m.parentNode).after(m),O=m.nextSibling;if(O&&O.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(O)&&O.tagName!=="HR"){for(C=[O];O=C[0],(C=e.node.contents(O))[0]&&e.node.isBlock(C[0]););r(O).prepend(r(m))}}if(E===!1&&!b.collapsed){if((O=(m=e.$el.find('span.fr-marker[data-type="false"][data-id="'.concat(g,'"]')).get(0)).previousSibling)&&O.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(O)&&O.tagName!=="HR"){for(C=[O];O=C[C.length-1],(C=e.node.contents(O))[C.length-1]&&e.node.isBlock(C[C.length-1]););r(O).append(r(m))}(m.parentNode&&0<=["TD","TH"].indexOf(m.parentNode.tagName)||!m.previousSibling&&e.node.isBlock(m.parentElement))&&m.parentNode.previousSibling&&!m.previousSibling&&r(m.parentNode.previousSibling).append(m)}var y=e.$el.find('span.fr-marker[data-type="'.concat(E,'"][data-id="').concat(g,'"]')).get(0);return y&&(y.style.display="none"),y}catch{return null}},insert:s,split:function(){e.selection.isCollapsed()||e.selection.remove();var b=e.$el.find(".fr-marker").get(0);if(b||(b=s()),!b)return null;var E=e.node.deepestParent(b);if(E||(E=e.node.blockParent(b))&&E.tagName!=="LI"&&(E=null),E)if(e.node.isBlock(E)&&e.node.isEmpty(E))E.tagName!=="LI"||E.parentNode.firstElementChild!==E||e.node.isEmpty(E.parentNode)?r(E).replaceWith(''):r(E).append('');else if(e.cursor.isAtStart(b,E))r(E).before(''),r(b).remove();else if(e.cursor.isAtEnd(b,E))r(E).after(''),r(b).remove();else{for(var g=b,m="",C="";g=g.parentNode,m+=e.node.closeTagString(g),C=e.node.openTagString(g)+C,g!==E;);r(b).replaceWith('');var O=e.node.openTagString(E)+r(E).html()+e.node.closeTagString(E);O=O.replace(/<\/span>/g,"".concat(m,'').concat(C)),r(E).replaceWith(O)}return e.$el.find(".fr-marker").get(0)},insertAtPoint:function(b){var E,g=b.clientX,m=b.clientY;d();var C=null;if(typeof e.doc.caretPositionFromPoint<"u"?(E=e.doc.caretPositionFromPoint(g,m),(C=e.doc.createRange()).setStart(E.offsetNode,E.offset),C.setEnd(E.offsetNode,E.offset)):typeof e.doc.caretRangeFromPoint<"u"&&(E=e.doc.caretRangeFromPoint(g,m),(C=e.doc.createRange()).setStart(E.startContainer,E.startOffset),C.setEnd(E.startContainer,E.startOffset)),C!==null&&typeof e.win.getSelection<"u"){var O=e.win.getSelection();O.removeAllRanges(),O.addRange(C)}else if(typeof e.doc.body.createTextRange<"u")try{(C=e.doc.body.createTextRange()).moveToPoint(g,m);var U=C.duplicate();U.moveToPoint(g,m),C.setEndPoint("EndToEnd",U),C.select()}catch{return!1}s()},remove:d}},t.MODULES.selection=function(e){var r=e.$;function s(){var l="";return e.win.getSelection?l=e.win.getSelection():e.doc.getSelection?l=e.doc.getSelection():e.doc.selection&&(l=e.doc.selection.createRange().text),l.toString()}function d(){return e.win.getSelection?e.win.getSelection():e.doc.getSelection?e.doc.getSelection():e.doc.selection.createRange()}function u(l){var i=d(),a=[];if(i&&i.getRangeAt&&i.rangeCount){a=[];for(var p=0;p'.concat(t.INVISIBLE_SPACE,"").concat(a[i].innerHTML));var p=!1,c=U(e.el);for(c.atStart&&c.atEnd&&(p=!0),a=e.el.querySelectorAll(".fr-mk"),i=0;i"):r(X).find(".fr-inner").filter(I).html("
    "):(r(X).empty(),r(X).attr("data-del-cell",!0)):0"),e.spaces.normalize());var T=e.$el.find(".fr-marker").last().get(0),S=e.$el.find(".fr-marker").first().get(0);T!==void 0&&S!==void 0&&!T.nextSibling&&S.previousSibling&&S.previousSibling.tagName==="BR"&&e.node.isElement(T.parentNode)&&e.node.isElement(S.parentNode)&&e.$el.append("
    "),m()},blocks:function(){var i,a,p=[],c=d();if(x()&&c.rangeCount){var h=u();for(i=0;i"))}function d(){e.$wp.removeClass("show-placeholder")}function u(){if(!e.$wp)return!1;e.core.isEmpty()?s():d()}return{_init:function(){if(!e.$wp)return!1;e.events.on("init input keydown keyup contentChanged initialized",u)},show:s,hide:d,refresh:u,isVisible:function(){return!e.$wp||e.node.hasClass(e.$wp.get(0),"show-placeholder")}}},t.UNICODE_NBSP=String.fromCharCode(160),t.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],t.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],Object.assign(t.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line","hr"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),t.MODULES.html=function(e){var r=e.$;function s(){return e.opts.enter===t.ENTER_P?"p":e.opts.enter===t.ENTER_DIV?"div":e.opts.enter===t.ENTER_BR?null:void 0}function d(D,_){return!(!D||D===e.el)&&(_?["PRE","SCRIPT","STYLE"].indexOf(D.tagName)!=-1||d(D.parentNode,_):["PRE","SCRIPT","STYLE"].indexOf(D.tagName)!==-1)}function u(D){var _,Q=[],re=[];if(D){var q=e.el.querySelectorAll(".fr-marker");for(_=0;_";return _&&(Q="")),Q}function B(D){var _=D.parentNode;if(_&&(e.node.isBlock(_)||e.node.isElement(_))&&["TD","TH"].indexOf(_.tagName)<0){for(var Q=D.previousSibling,re=D.nextSibling;Q&&(Q.nodeType===Node.TEXT_NODE&&Q.textContent.replace(/\n|\r/g,"").length===0||e.node.hasClass(Q,"fr-tmp"));)Q=Q.previousSibling;if(re)return!1;Q&&_&&Q.tagName!=="BR"&&!e.node.isBlock(Q)&&!re&&0<_.textContent.replace(/\u200B/g,"").length&&0").concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("<".concat(s(),">
    "))):e.el.querySelector("*:not(.fr-marker):not(br)")||(e.core.hasFocus()?(e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("
    ")))}function v(D,_){return U(D,"<".concat(_,"[^>]*?>([\\w\\W]*)"),1)}function A(D,_){var Q=r("
    ]*?)>"),1)||"",">"));return e.node.rawAttributes(Q.get(0))}function l(D){return(U(D,"]*?)>",0)||"").replace(/\n/g," ").replace(/ {2,}/g," ")}function i(D,_){e.opts.htmlExecuteScripts?D.html(_):D.get(0).innerHTML=_}function a(D){var _;(_=/:not\(([^)]*)\)/g).test(D)&&(D=D.replace(_," $1 "));var Q=100*(D.match(/(#[^\s+>~.[:]+)/g)||[]).length+10*(D.match(/(\[[^]]+\])/g)||[]).length+10*(D.match(/(\.[^\s+>~.[:]+)/g)||[]).length+10*(D.match(/(:[\w-]+\([^)]*\))/gi)||[]).length+10*(D.match(/(:[^\s+>~.[:]+)/g)||[]).length+(D.match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;return Q+=((D=(D=D.replace(/[*\s+>~]/g," ")).replace(/[#.]/g," ")).match(/([^\s+>~.[:]+)/g)||[]).length}function p(D){if(e.events.trigger("html.processGet",[D]),D&&D.getAttribute&&D.getAttribute("class")===""&&D.removeAttribute("class"),D&&D.getAttribute&&D.getAttribute("style")===""&&D.removeAttribute("style"),D&&D.nodeType===Node.ELEMENT_NODE){var _,Q=D.querySelectorAll('[class=""],[style=""]');for(_=0;_")}},cleanEmptyTags:E,cleanWhiteTags:N,cleanBlankSpaces:O,blocks:function(){return e.$el.get(0).querySelectorAll(b())},getDoctype:y,set:function(_){var Q=e.clean.html((_||"").trim(),[],[],e.opts.fullPage);if(e.opts.fullPage){var re=v(Q,"body")||(0<=Q.indexOf("",se=A(Q,"head"),H=r("
    ");H.append(ae).contents().each(function(){(this.nodeType===Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)});var W=H.html().trim();ae=r("
    ").append(ae).contents().map(function(){return this.nodeType===Node.COMMENT_NODE?""):0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var T=l(Q),S=A(Q,"html");i(e.$el,"".concat(W,` `).concat(re)),e.node.clearAttributes(e.el),e.$el.attr(q),e.$el.addClass("fr-view"),e.$el.attr("spellcheck",e.opts.spellcheck),e.$el.attr("dir",e.opts.direction),i(e.$head,ae),e.node.clearAttributes(e.$head.get(0)),e.$head.attr(se),e.node.clearAttributes(e.$html.get(0)),e.$html.attr(S),e.iframe_document.doctype.parentNode.replaceChild(function(K,V){var j=K.match(//i);return j?V.implementation.createDocumentType(j[1],j[3],j[4]):V.implementation.createDocumentType("html")}(T,e.iframe_document),e.iframe_document.doctype)}else i(e.$el,Q);var L=e.edit.isDisabled();e.edit.on(),e.core.injectStyle(e.opts.iframeDefaultStyle+e.opts.iframeStyle),I(),e.opts.useClasses||(e.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),e.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),L&&e.edit.off(),e.events.trigger("html.set"),e.events.trigger("charCounter.update")},syncInputs:h,get:function(_,Q){if(!e.$wp)return e.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var re="";e.events.trigger("html.beforeGet");var q,ae,se=[],H={},W=[];if(h(),!e.opts.useClasses&&!Q){var T=new RegExp("^".concat(e.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(q=0;q=H[j[ae]][ve]&&(H[j[ae]][ve]=X,fe[ne].trim().length))){var Ee=fe[ne].trim().split(":");Ee.splice(0,1),W.push([j[ae],ve.trim(),Ee.join(":").trim(),X])}}}}}}for(W.sort(c),q=0;q").concat(e.$html.find("head").get(0).outerHTML,""));else if(_===void 0&&(_=!1),e.opts.fullPage){re=y(e.iframe_document),e.$el.removeClass("fr-view");var Oe=e.opts.heightMin,De=e.opts.height,Re=e.opts.heightMax;e.opts.heightMin=null,e.opts.height=null,e.opts.heightMax=null,e.size.refresh(),re+="").concat(e.$html.html(),""),e.opts.heightMin=Oe,e.opts.height=De,e.opts.heightMax=Re,e.size.refresh(),e.$el.addClass("fr-view")}else re=e.$el.html();if(!e.opts.useClasses&&!Q)for(q=0;q(?:[\w\W]*?)<\/style>/g,"")).replace(/]*)data-fr-style="true"([^>]*)>/g,"")).replace(/(?:[\w\W]*?)<\/style>/g,"")).replace(/((?:[\w\W]*?))<\/body>/g,"$3")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,'$6')).replace(/((?:[\w\W]*?))<\/body>/g,"$3")),e.opts.htmlSimpleAmpersand&&(re=re.replace(/&/gi,"&")),e.events.trigger("html.afterGet"),_||(re=re.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),re=e.clean.invisibleSpaces(re),re=e.clean.exec(re,p);var Se=e.events.chainTrigger("html.get",re);return typeof Se=="string"&&(re=Se),re=(re=re.replace(/(?:[\w\W]*?)<\/pre>/g,function(Ne){return Ne.replace(/
    /g,` -`)})).replace(/ ".concat(e.html.defaultTag())),L=S.length-1;0<=L;L--){var R=S[L];e.node.isBlock(R.previousSibling)||(R.previousSibling&&!e.node.isEmpty(R)&&r("
    ").insertAfter(R.previousSibling),R.outerHTML=R.innerHTML)}return T.innerHTML}(q)),!(ae=e.markers.split()))return!1;ae.outerHTML=q}else ae.outerHTML=q}else e.el.innerHTML+=q}I(),e.keys.positionCaret(),e.events.trigger("html.inserted")},wrap:C,unwrap:function(){e.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&r(this).before("
    "),r(this).attr("data-empty")||!this.nextSibling||e.node.isBlock(this.nextSibling)&&!r(this.nextSibling).hasClass("fr-temp-div")?r(this).replaceWith(r(this).html()):r(this).replaceWith("".concat(r(this).html(),"
    "))}),e.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return r(this).attr("class")===""}).removeAttr("class")},escapeEntities:function(_){return _.replace(//gi,">").replace(/"/gi,""").replace(/'/gi,"'")},checkIfEmpty:x,extractNode:v,extractNodeAttrs:A,extractDoctype:l,cleanBRs:function(){for(var _=e.el.getElementsByTagName("br"),Q=0;Q<_.length;Q++)B(_[Q])},_init:function(){e.$wp&&(e.events.on("mouseup",ie),e.events.on("keydown",ie),e.events.on("contentChanged",x))},_setHtml:i}},t.ENTER_P=0,t.ENTER_DIV=1,t.ENTER_BR=2,t.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},Object.assign(t.DEFAULTS,{enter:t.ENTER_P,multiLine:!0,tabSpaces:0}),t.MODULES.keys=function(e){var r,s,d,u=e.$,b=!1;function E(N){if(e.selection.isCollapsed())if(["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&e.cursor.backspace(),e.helpers.isIOS()){var ie=e.selection.ranges(0);ie.deleteContents(),ie.insertNode(document.createTextNode("​")),e.selection.get().modify("move","forward","character")}else["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&N.preventDefault(),N.stopPropagation();else N.preventDefault(),N.stopPropagation(),e.selection.remove();e.placeholder.refresh()}function g(N){["INPUT","BUTTON","TEXTAREA"].indexOf(N.target&&N.target.tagName)<0&&N.preventDefault(),N.stopPropagation(),e.selection.text()===""&&e.selection.element().tagName!="IMG"?e.cursor.del():e.selection.remove(),e.placeholder.refresh()}function m(){if(e.browser.mozilla&&e.selection.isCollapsed()&&!b){var N=e.selection.ranges(0),ie=N.startContainer,D=N.startOffset;ie&&ie.nodeType===Node.TEXT_NODE&&D<=ie.textContent.length&&0").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore(),e.placeholder.refresh(),e.button.bulkRefresh(),e.undo.saveStep()},0)}function O(){b=!1}function U(){b=!1}function y(){var N=e.html.defaultTag();N?e.$el.html("<".concat(N,">").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()}function B(N,ie){if((-1/g,"")).length<1?N.parentElement.insertAdjacentHTML("afterbegin"," "):D!=" "&&D!=" "&&ie.key=="Backspace"?E(ie):D!=" "&&D!=" "&&ie.key=="Delete"&&g(ie),!0}if(u(N).is("p")){var _=N.innerHTML.replace(/
    /g,"");return _.length<1?N.insertAdjacentHTML("afterbegin"," "):_!=" "&&_!=" "&&ie.key=="Backspace"?E(ie):_!=" "&&_!=" "&&ie.key=="Delete"&&g(ie),!0}}return!1}function I(N){var ie=e.selection.element();if(ie&&0<=["INPUT","TEXTAREA"].indexOf(ie.tagName)||N&&l(N.which))return!0;e.events.disableBlur();var D=N.which;if(D===16)return!0;if((r=D)===t.KEYCODE.IME)return b=!0;b=!1;var _=i(D)&&!A(N)&&!N.altKey,Q=D===t.KEYCODE.BACKSPACE||D===t.KEYCODE.DELETE;if((e.selection.isFull()&&!e.opts.keepFormatOnDelete&&!e.placeholder.isVisible()||Q&&e.placeholder.isVisible()&&e.opts.keepFormatOnDelete)&&(_||Q)&&(y(),!i(D)))return N.preventDefault(),!0;if(D===t.KEYCODE.ENTER)N.shiftKey||ie.classList.contains("fr-inner")||ie.parentElement.classList.contains("fr-inner")?function(q){q.preventDefault(),q.stopPropagation(),e.opts.multiLine&&(e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter(!0))}(N):function(q){e.opts.multiLine?(e.helpers.isIOS()||(q.preventDefault(),q.stopPropagation()),e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter()):(q.preventDefault(),q.stopPropagation())}(N);else if(D===t.KEYCODE.BACKSPACE&&(N.metaKey||N.ctrlKey))(function(){setTimeout(function(){e.events.disableBlur(),e.events.focus()},0)})();else if(D!==t.KEYCODE.BACKSPACE||A(N)||N.altKey)if(D!==t.KEYCODE.DELETE||A(N)||N.altKey||N.shiftKey)D===t.KEYCODE.SPACE?function(q){var ae=e.selection.element();if(!e.helpers.isMobile()&&ae&&ae.tagName==="A"){q.preventDefault(),q.stopPropagation(),e.selection.isCollapsed()||e.selection.remove();var se=e.markers.insert();if(se){var H=se.previousSibling;!se.nextSibling&&se.parentNode&&se.parentNode.tagName==="A"?(se.parentNode.insertAdjacentHTML("afterend"," ".concat(t.MARKERS)),se.parentNode.removeChild(se)):(H&&H.nodeType===Node.TEXT_NODE&&H.textContent.length===1&&H.textContent.charCodeAt(0)===160?H.textContent+=" ":se.insertAdjacentHTML("beforebegin"," "),se.outerHTML=t.MARKERS),e.selection.restore()}}}(N):D===t.KEYCODE.TAB?function(q){if(0e.$wp.offset().top-e.helpers.scrollTop()+e.$wp.height()-20&&e.$wp.scrollTop(N+e.$wp.scrollTop()-(e.$wp.height()+e.$wp.offset().top)+e.helpers.scrollTop()+20)):(N=e.position.getBoundingRect().top,e.opts.toolbarBottom&&(N+=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(N-=e.helpers.scrollTop()),e.opts.iframe&&(N+=e.$iframe.offset().top,N-=e.helpers.scrollTop()),(N+=e.opts.toolbarStickyOffset)>e.o_win.innerHeight-20&&u(e.o_win).scrollTop(N+e.helpers.scrollTop()-e.o_win.innerHeight+20),N=e.position.getBoundingRect().top,e.opts.toolbarBottom||(N-=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(N-=e.helpers.scrollTop()),e.opts.iframe&&(N+=e.$iframe.offset().top,N-=e.helpers.scrollTop()),N<100&&u(e.o_win).scrollTop(N+e.helpers.scrollTop()-100))}function v(N){var ie=e.selection.element();if(ie&&0<=["INPUT","TEXTAREA"].indexOf(ie.tagName)||(N&&N.which===0&&r&&(N.which=r),e.helpers.isAndroid()&&e.browser.mozilla))return!0;if(b)return!1;if(N&&e.helpers.isIOS()&&N.which===t.KEYCODE.ENTER&&e.doc.execCommand("undo"),!e.selection.isCollapsed()||N&&(N.which===t.KEYCODE.META||N.which===t.KEYCODE.CTRL)||N&&l(N.which))return!0;if(N&&!e.helpers.isIOS()&&(N.which===t.KEYCODE.ENTER||N.which===t.KEYCODE.BACKSPACE||37<=N.which&&N.which<=40&&!e.browser.msie))try{x()}catch{}var D=e.selection.element();(function(Q){if(!Q)return!1;var re=Q.innerHTML;return!!((re=re.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(re)&&0=t.KEYCODE.ARROW_LEFT&&N<=t.KEYCODE.ARROW_DOWN)return!0}function i(N){if(N>=t.KEYCODE.ZERO&&N<=t.KEYCODE.NINE||N>=t.KEYCODE.NUM_ZERO&&N<=t.KEYCODE.NUM_MULTIPLY||N>=t.KEYCODE.A&&N<=t.KEYCODE.Z||e.browser.webkit&&N===0)return!0;switch(N){case t.KEYCODE.SPACE:case t.KEYCODE.QUESTION_MARK:case t.KEYCODE.NUM_PLUS:case t.KEYCODE.NUM_MINUS:case t.KEYCODE.NUM_PERIOD:case t.KEYCODE.NUM_DIVISION:case t.KEYCODE.SEMICOLON:case t.KEYCODE.FF_SEMICOLON:case t.KEYCODE.DASH:case t.KEYCODE.EQUALS:case t.KEYCODE.FF_EQUALS:case t.KEYCODE.COMMA:case t.KEYCODE.PERIOD:case t.KEYCODE.SLASH:case t.KEYCODE.APOSTROPHE:case t.KEYCODE.SINGLE_QUOTE:case t.KEYCODE.OPEN_SQUARE_BRACKET:case t.KEYCODE.BACKSLASH:case t.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function a(N){var ie=N.which;if(A(N)||37<=ie&&ie<=40||!i(ie)&&ie!==t.KEYCODE.DELETE&&ie!==t.KEYCODE.BACKSPACE&&ie!==t.KEYCODE.ENTER&&ie!==t.KEYCODE.IME)return!0;s||(d=e.snapshot.get(),e.undo.canDo()||e.undo.saveStep()),clearTimeout(s),s=setTimeout(function(){s=null,e.undo.saveStep()},Math.max(250,e.opts.typingTimer))}function p(N){var ie=N.which;if(A(N)||37<=ie&&ie<=40)return!0;d&&s?(e.undo.saveStep(d),d=null):ie!==void 0&&ie!==0||d||s||e.undo.saveStep()}function c(N){if(N&&N.tagName==="BR")return!1;try{return(N.textContent||"").length===0&&N.querySelector&&!N.querySelector(":scope > br")||N.childNodes&&N.childNodes.length===1&&N.childNodes[0].getAttribute&&(N.childNodes[0].getAttribute("contenteditable")==="false"||e.node.hasClass(N.childNodes[0],"fr-img-caption"))}catch{return!1}}function h(N){var ie=e.el.childNodes,D=e.html.defaultTag(),_=e.node.blockParent(e.selection.blocks()[0]);return _&&_.tagName=="TR"&&_.getAttribute("contenteditable")==null&&(_=_.closest("table")),!e.node.isEditable(N.target)||_&&_.getAttribute("contenteditable")==="false"?e.toolbar.disable():e.toolbar.enable(),!(!N.target||N.target===e.el)||ie.length===0||void(ie[0].offsetHeight+ie[0].offsetTop<=N.offsetY?c(ie[ie.length-1])&&(D?e.$el.append("<".concat(D,">").concat(t.MARKERS,"
    ")):e.$el.append("".concat(t.MARKERS,"
    ")),e.selection.restore(),x()):N.offsetY<=10&&c(ie[0])&&(D?e.$el.prepend("<".concat(D,">").concat(t.MARKERS,"
    ")):e.$el.prepend("".concat(t.MARKERS,"
    ")),e.selection.restore(),x()))}function M(){s&&clearTimeout(s)}return{_init:function(){e.events.on("keydown",a),e.events.on("input",m),e.events.on("mousedown",U),e.events.on("keyup input",p),e.events.on("keypress",O),e.events.on("keydown",I),e.events.on("keyup",v),e.events.on("destroy",M),e.events.on("html.inserted",v),e.events.on("cut",C),e.opts.multiLine&&e.events.on("click",h)},ctrlKey:A,isCharacter:i,isArrow:l,forceUndo:function(){s&&(clearTimeout(s),e.undo.saveStep(),d=null)},isIME:function(){return b},isBrowserAction:function(ie){var D=ie.which;return A(ie)||D===t.KEYCODE.F5},positionCaret:x}},Object.assign(t.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),t.MODULES.paste=function(e){var r,s,d,u,b=e.$;function E(l,i){try{e.win.localStorage.setItem("fr-copied-html",l),e.win.localStorage.setItem("fr-copied-text",i)}catch{}}function g(l){var i=e.html.getSelected();E(i,b(e.doc.createElement("div")).html(i).text()),l.type==="cut"&&(e.undo.saveStep(),setTimeout(function(){e.selection.save(),e.html.wrap(),e.selection.restore(),e.events.focus(),e.undo.saveStep()},0))}var m=!1;function C(l){if(l.target.nodeName==="INPUT"&&l.target.type==="text")return!0;if(e.edit.isDisabled()||O(l.target)||m)return!1;if(l.originalEvent&&(l=l.originalEvent),e.events.trigger("paste.before",[l])===!1)return l.preventDefault(),!1;if(l&&l.clipboardData&&l.clipboardData.getData){var i="",a=l.clipboardData.types;if(e.helpers.isArray(a))for(var p=0;p
    '),e.browser.webkit||e.browser.mozilla?(d.css("top",e.$sc.scrollTop()),e.$el.after(d)):e.browser.edge&&e.opts.iframe?e.$el.append(d):e.$box.after(d),e.events.on("destroy",function(){d.remove()}));var h;e.helpers.isIOS()&&e.$sc&&(h=e.$sc.scrollTop()),e.opts.iframe&&e.$el.attr("contenteditable","false"),d.focus(),e.helpers.isIOS()&&e.$sc&&e.$sc.scrollTop(h),e.win.setTimeout(y,1)}(),!1}function O(l){return l&&l.contentEditable==="false"}function U(l){if(l.originalEvent&&(l=l.originalEvent),O(l.target))return!1;if(l&&l.dataTransfer&&l.dataTransfer.getData){var i="",a=l.dataTransfer.types;if(e.helpers.isArray(a))for(var p=0;p")),r!==""){e.keys.forceUndo(),u=e.snapshot.get(),e.selection.save(),e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var c=e.markers.insertAtPoint(l);if(e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),e.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),e.selection.restore(),e.selection.remove(),e.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),c!==!1){var h=e.el.querySelector(".fr-marker");return b(h).replaceWith(t.MARKERS),e.selection.restore(),y(),l.preventDefault&&(l.stopPropagation(),l.preventDefault()),!1}}else r=null}}function y(){e.opts.iframe&&e.$el.attr("contenteditable","true"),e.browser.edge&&e.opts.iframe&&e.$box.after(d),u||(e.keys.forceUndo(),u=e.snapshot.get()),r||(r=d.get(0).innerHTML,e.selection.restore(),e.events.enableBlur());var l=r.match(/(class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),i=e.events.chainTrigger("paste.beforeCleanup",r);i&&typeof i=="string"&&(r=i),(!l||l&&e.events.trigger("paste.wordPaste",[r])!==!1)&&I(r,l)}function B(l){for(var i="",a=0;a++]*(]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),l=(l=M+l.replace(/[.\s\S\w\W<>]*]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var N=!1;0<=l.indexOf('id="docs-internal-guid')&&(l=l.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),N=!0),0<=l.indexOf('content="Sheets"')&&(l=l.replace(/width:0px;/g,""));var ie=!1;if(!i)if((ie=function(K){var V=null;try{V=e.win.localStorage.getItem("fr-copied-text")}catch{}return!(!V||b("
    ").html(K).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!==V.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(l))&&(l=e.win.localStorage.getItem("fr-copied-html")),ie)l=e.clean.html(l,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs);else{var D=e.opts.htmlAllowedStyleProps;e.opts.htmlAllowedStyleProps=e.opts.pasteAllowedStyleProps,e.opts.htmlAllowComments=!1,l=(l=(l=l.replace(/\s*<\/span>/g,B(e.opts.tabSpaces||4))).replace(/(\t*)<\/span>/g,function(R,K){return B(K.length*(e.opts.tabSpaces||4))})).replace(/\t/g,B(e.opts.tabSpaces||4)),l=e.clean.html(l,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs),e.opts.htmlAllowedStyleProps=D,e.opts.htmlAllowComments=!0,l=(l=(l=v(l)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!i||e.wordPaste&&a||((l=l.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("")===0&&(l="".concat(l,"
    ")),l=v(l=function(K){var V;K=(K=(K=(K=(K=(K=(K=(K=(K=(K=(K=(K=(K=(K=(K=K.replace(/([\s\S]*?)<\/p>/gi,"
    • $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
    1. $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
      $5")).replace(/([\s\S]*?)<\/p>/gi,"
        $5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5
    ")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)([\s\S]*?)/gi,"")).replace(/([\s\S]*?)/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(//gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var j,X=["style","script","applet","embed","noframes","noscript"];for(V=0;V"),"gi");K=K.replace(fe,"")}for(K=(K=(K=K.replace(/ /gi," ")).replace(/]*)><\/td>/g,"
    ")).replace(/]*)><\/th>/g,"
    ");(K=(j=K).replace(/<[^/>][^>]*><\/[^>]+>/gi,""))!==j;);K=(K=K.replace(/]*)>/gi,'
  • ')).replace(/]*)>/gi,""),K=(K=(K=e.clean.html(K,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs)).replace(/(.[^<]+)<\/a>/gi,"$1")).replace(/
    */g,"
    ");var ne=e.o_doc.createElement("div");ne.innerHTML=K;var ve=ne.querySelectorAll("li[data-indent]");for(V=0;V ul, :scope > ol");Ae||(Ae=document.createElement("ul"),be.appendChild(Ae)),Ae.appendChild(Ee)}else Ee.removeAttribute("data-indent")}return e.html.cleanBlankSpaces(ne),K=ne.innerHTML}(l))),e.opts.pastePlain&&!ie&&(l=function(K){var V,j=null,X=e.doc.createElement("div");X.innerHTML=K;var fe=X.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(V=0;V").concat(j.innerHTML,"");for(V=(fe=X.querySelectorAll("*:not(".concat("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not("),")"))).length-1;0<=V;V--)(j=fe[V]).outerHTML=j.innerHTML;return function ne(ve){for(var Ee=e.node.contents(ve),be=0;be")?(e.html.cleanBlankSpaces(Q),e.spaces.normalize(Q,!0)):e.spaces.normalize(Q);var re=Q.getElementsByTagName("span");for(p=re.length-1;0<=p;p--){var q=re[p];q.attributes.length===0&&(q.outerHTML=q.innerHTML)}if(e.opts.linkAlwaysBlank===!0){var ae=Q.getElementsByTagName("a");for(p=ae.length-1;0<=p;p--){var se=ae[p];se.getAttribute("target")||se.setAttribute("target","_blank")}}var H=e.selection.element(),W=!1;if(H&&b(H).parentsUntil(e.el,"ul, ol").length&&(W=!0),W){var T=Q.children;T.length===1&&0<=["OL","UL"].indexOf(T[0].tagName)&&(T[0].outerHTML=T[0].innerHTML)}if(!N){var S=Q.getElementsByTagName("br");for(p=S.length-1;0<=p;p--){var L=S[p];e.node.isBlock(L.previousSibling)&&L.parentNode.removeChild(L)}}if(e.opts.enter===t.ENTER_BR)for(p=(c=Q.querySelectorAll("p, div")).length-1;0<=p;p--)(h=c[p]).attributes.length===0&&(h.outerHTML=h.innerHTML+(h.nextSibling&&!e.node.isEmpty(h)?"
    ":""));else if(e.opts.enter===t.ENTER_DIV)for(p=(c=Q.getElementsByTagName("p")).length-1;0<=p;p--)(h=c[p]).attributes.length===0&&(h.outerHTML="
    ".concat(h.innerHTML,"
    "));else e.opts.enter===t.ENTER_P&&Q.childNodes.length===1&&Q.childNodes[0].tagName==="P"&&Q.childNodes[0].attributes.length===0&&(Q.childNodes[0].outerHTML=Q.childNodes[0].innerHTML);l=Q.innerHTML,ie&&(l=function(K){var V,j=e.o_doc.createElement("div");j.innerHTML=K;for(var X=j.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(t.VOID_ELEMENTS.join("):not("),"):not(").concat(e.opts.htmlAllowedEmptyTags.join("):not("),")"));X.length;){for(V=0;V div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));p.length;){var c=p[p.length-1];if(e.html.defaultTag()&&e.html.defaultTag()!=="div")c.querySelector(e.html.blockTagsQuery())?c.outerHTML=c.innerHTML:c.outerHTML="<".concat(e.html.defaultTag(),">").concat(c.innerHTML,"");else{var h=c.querySelectorAll("*");!h.length||h[h.length-1].tagName!=="BR"&&c.innerText.length===0||!h.length||h[h.length-1].tagName!=="BR"||h[h.length-1].nextSibling?c.outerHTML=c.innerHTML+(c.nextSibling?"
    ":""):c.outerHTML=c.innerHTML}p=x(Array.prototype.slice.call(a.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(p=x(Array.prototype.slice.call(a.querySelectorAll("div:not([style])")));p.length;){for(i=0;ie.undo_index;)e.undo_stack.pop()}function u(){e.undo_index=0,e.undo_stack=[]}function b(){e.undo_stack=[]}return{_init:function(){u(),e.events.on("initialized",function(){s=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",r),e.events.on("destroy",b)},run:function(){if(1'.concat(u,""));for(var b=0;b'));E.get(0).addEventListener("load",e.size.syncIframe),e.$head.append(E)}}},hasFocus:function(){return e.browser.mozilla&&e.helpers.isMobile()?e.selection.inEditor():e.node.hasFocus(e.el)||0 span").css("width")),ie=e.helpers.getPX(M.css("paddingLeft")),D=e.helpers.getPX(M.css("paddingRight"));M.css("width",N*e.opts.colorsStep+ie+D)}return e.button.bindCommands(h,!1),h}function x(i){var a=d[i];return{_windowResize:function(){var p=a.data("instance")||e;!p.helpers.isMobile()&&a.isVisible()&&(p.events.disableBlur(),p.popups.hide(i),p.events.enableBlur())},_inputFocus:function(p){var c=a.data("instance")||e,h=r(p.currentTarget);if(h.is("input:file")&&h.closest(".fr-layer").addClass("fr-input-focus"),p.preventDefault(),p.stopPropagation(),setTimeout(function(){c.events.enableBlur()},100),c.helpers.isMobile()){var M=r(c.o_win).scrollTop();setTimeout(function(){r(c.o_win).scrollTop(M)},0)}},_inputBlur:function(p){var c=a.data("instance")||e,h=r(p.currentTarget);h.is("input:file")&&h.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!==this&&r(this).isVisible()&&(c.events.blurActive()&&c.events.trigger("blur"),c.events.enableBlur())},_editorKeydown:function(p){var c=a.data("instance")||e;c.keys.ctrlKey(p)||p.which===t.KEYCODE.ALT||p.which===t.KEYCODE.ESC||(g(i)&&a.findVisible(".fr-back").length?c.button.exec(a.findVisible(".fr-back").first()):p.which!==t.KEYCODE.ALT&&c.popups.hide(i))},_preventFocus:function(p){var c=a.data("instance")||e,h=p.originalEvent?p.originalEvent.target||p.originalEvent.originalTarget:null;p.type==="mouseup"||r(h).is(":focus")||c.events.disableBlur(),p.type!=="mouseup"||r(h).hasClass("fr-command")||0').concat(Q.attr("placeholder"),"")),Q.attr("placeholder",""))}}(M),e.events.$on(M,"focus",b),e.events.$on(M,"blur change",E),e.events.$on(c,"click",".fr-checkbox + label",A),e.accessibility.registerPopup(a),e.helpers.isIOS()&&e.events.$on(c,"touchend","label",function(){r("#".concat(r(this).attr("for"))).prop("checked",function(N,ie){return!ie})},!0),e.events.$on(r(e.o_win),"resize",h._windowResize,!0),c},get:function(a){var p=d[a];return p&&!p.data("inst".concat(e.id))&&v(x(a),a),p},show:function(a,p,c,h,M){if(g(a)||(m()&&0 .fr-dropdown-wrapper").css("height",""),N.next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),d[a].data("instance",e),e.$tb&&e.$tb.data("instance",e);var ie=g(a);d[a].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var D=d[a].data("container");if(function(q,ae){ae.isVisible()||(ae=e.$sc),ae.contains([d[q].get(0)])||ae.append(d[q])}(a,D),e.opts.toolbarInline&&D&&e.$tb&&D.get(0)===e.$tb.get(0)&&(u(a,e.$sc),c=e.$tb.offset().top-e.helpers.getPX(e.$tb.css("margin-top")),p=e.$tb.offset().left+e.$tb.outerWidth()/2,e.node.hasClass(e.$tb.get(0),"fr-above")&&c&&(c+=e.$tb.outerHeight()),h=0),D=d[a].data("container"),e.opts.iframe&&!h&&!ie){var _=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),Q=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"));p&&(p-=e.$iframe.offset().left+Q),c&&(c-=e.$iframe.offset().top+_)}D.is(e.$tb)?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):d[a].css("zIndex",(e.opts.zIndex||1)+4),e.opts.toolbarBottom&&D&&e.$tb&&D.get(0)===e.$tb.get(0)&&(d[a].addClass("fr-above"),c&&(c-=d[a].outerHeight())),M&&(p-=d[a].width()/2),p+d[a].outerWidth()>e.$sc.offset().left+e.$sc.width()&&(p-=p+d[a].outerWidth()-e.$sc.offset().left-e.$sc.width()),p button.fr-command").first());if(0r(e.o_win).width()&&(E=r(e.o_win).width()-e.$tooltip.outerWidth()),b===void 0&&(b=e.opts.toolbarBottom),u.offset().top-r(window).scrollTop()+u.outerHeight()+10>=r(window).height()&&(b=!0);var g=b?u.offset().top-e.$tooltip.height():u.offset().top+u.outerHeight();e.$tooltip.css("position",""),e.$tooltip.css("left",E),e.$tooltip.css("top",Math.ceil(g)),r(e.o_doc).find("body").first().css("position")!=="static"?(e.$tooltip.css("margin-left",-r(e.o_doc).find("body").first().offset().left),e.$tooltip.css("margin-top",-r(e.o_doc).find("body").first().offset().top)):(e.$tooltip.css("margin-left",""),e.$tooltip.css("margin-top",""))}}return{hide:s,to:d,bind:function(b,E,g){e.opts.tooltips&&!e.helpers.isMobile()&&(e.events.$on(b,"mouseover",E,function(m){e.node.hasClass(m.currentTarget,"fr-disabled")||e.edit.isDisabled()||d(r(m.currentTarget),g)},!0),e.events.$on(b,"mouseout ".concat(e._mousedown," ").concat(e._mouseup),E,function(){s()},!0))}}},t.TOOLBAR_VISIBLE_BUTTONS=3,t.MODULES.button=function(e){var r=e.$,s=[];(e.opts.toolbarInline||e.opts.toolbarContainer)&&(e.shared.buttons||(e.shared.buttons=[]),s=e.shared.buttons);var d=[];function u(i,a,p){for(var c=r(),h=0;h .fr-dropdown-wrapper");if(!p){var D=i.data("cmd");a.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),t.COMMANDS[D]&&t.COMMANDS[D].refreshOnShow&&t.COMMANDS[D].refreshOnShow.apply(h,[i,a]),a.css("left",i.offset().left-i.parents(".fr-btn-wrap, .fr-toolbar, .fr-buttons").offset().left-(e.opts.direction==="rtl"?a.width()-i.outerWidth():0)),a.addClass("test-height"),M=a.outerHeight(),N=e.helpers.getPX(ie.css("max-height")),a.removeClass("test-height"),a.css("top","").css("bottom","");var _=i.outerHeight()/10;if(!e.opts.toolbarBottom&&a.offset().top+i.outerHeight()+Me.$sc.offset().left+e.$sc.width()&&a.css("margin-left",-(a.offset().left+a.outerWidth()-e.$sc.offset().left-e.$sc.width())),a.offset().left .fr-dropdown-wrapper").css("height",""),c.prev(".fr-expanded").removeClass("fr-expanded"),c.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),i.parents(".fr-popup").length!==0||e.opts.toolbarInline||(e.node.hasClass(i.get(0),"fr-active")?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):e.$tb.css("zIndex",""));var q=a.find("a.fr-command.fr-active").first();e.helpers.isMobile()||(q.length?(e.accessibility.focusToolbarElement(q),ie.scrollTop(Math.abs(q.parents(".fr-dropdown-content").offset().top-q.offset().top)-q.offset().top)):(e.accessibility.focusToolbarElement(i),ie.scrollTop(0)))}function g(i){i.addClass("fr-blink"),setTimeout(function(){i.removeClass("fr-blink")},500);for(var a=i.data("cmd"),p=[];i.data("param".concat(p.length+1))!==void 0;)p.push(i.data("param".concat(p.length+1)));var c=b(".fr-dropdown.fr-active");c.length&&(c.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),c.prev(".fr-expanded").removeClass("fr-expanded"),c.parents(".fr-toolbar:not(.fr-inline)").css("zIndex","")),i.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(a,p)}function m(i){var a=i.parents(".fr-popup, .fr-toolbar").data("instance");if(i.parents(".fr-popup").length===0&&i.data("popup")&&!i.hasClass("fr-btn-active-popup")&&i.addClass("fr-btn-active-popup"),i.parents(".fr-popup").length!==0||i.data("popup")||a.popups.hideAll(),a.popups.areVisible()&&!a.popups.areVisible(a)){for(var p=0;p .fr-dropdown-wrapper").css("height",""),a.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),a.prev().removeClass("fr-expanded"))}function U(i){i.preventDefault(),i.stopPropagation()}function y(i){if(i.stopPropagation(),!e.helpers.isMobile())return!1}function B(i){var a=1').concat(e.language.translate(M||a.title),"")}else h=e.icon.create(a.icon||i),h+=''.concat(e.language.translate(a.title)||"","");var N=a.popup?' data-popup="true"':"",ie=a.modal?' data-modal="true"':"",D=e.shortcuts.get("".concat(i,"."));D=D?" (".concat(D,")"):"";var _="".concat(i,"-").concat(e.id),Q="dropdown-menu-".concat(_),re='");if(a.type==="dropdown"||a.type==="options"){var q='
    "}return a.hasOptions&&a.hasOptions.apply(e)&&(re='
    '.concat(re," ").concat(B(i+"Options",Object.assign({},a,{type:"options",hasOptions:!1}),p),"
    ")),re}function I(i){var a=e.$tb&&e.$tb.data("instance")||e;if(e.events.trigger("buttons.refresh")===!1)return!0;setTimeout(function(){for(var p=a.selection.inEditor()&&a.core.hasFocus(),c=0;c
  • ':M==="-"&&(c+=''))}return c},buildGroup:function(a){var p="",c="";for(var h in a){var M=a[h];if(M.buttons){for(var N="",ie="",D=0,_="left",Q=t.TOOLBAR_VISIBLE_BUTTONS,re=0;re
    ':q=="-"&&(N+='')),!ae||ae&&typeof ae.plugin<"u"&&e.opts.pluginsEnabled.indexOf(ae.plugin)<0||(a[h].align!==void 0&&(_=a[h].align),a[h].buttonsVisible!==void 0&&(Q=a[h].buttonsVisible),a.showMoreButtons&&Q<=D?ie+=B(q,ae,!0):N+=B(q,ae,!0),D++)}if(a.showMoreButtons&&Q').concat(N,"
    "),a.showMoreButtons&&0').concat(ie,""))}}return e.opts.toolbarBottom?"".concat(c,'
    ').concat(p):"".concat(p,'
    ').concat(c)},bindCommands:function(a,p){e.events.bindClick(a,".fr-command:not(.fr-disabled)",C),e.events.$on(a,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu",U,!0),e.events.$on(a,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu .fr-dropdown-wrapper",y,!0);var c=a.get(0).ownerDocument,h="defaultView"in c?c.defaultView:c.parentWindow;function M(N){(!N||N.type===e._mouseup&&N.target!==r("html").get(0)||N.type==="keydown"&&(e.keys.isCharacter(N.which)&&!e.keys.ctrlKey(N)||N.which===t.KEYCODE.ESC))&&O(a)}e.events.$on(r(h),"".concat(e._mouseup," resize keydown"),M,!0),e.opts.iframe&&e.events.$on(e.$win,e._mouseup,M,!0),e.node.hasClass(a.get(0),"fr-popup")?r.merge(d,a.find(".fr-btn").toArray()):r.merge(s,a.find(".fr-btn").toArray()),e.tooltip.bind(a,".fr-btn, .fr-title",p)},refresh:function(a){var p,c=a.parents(".fr-popup, .fr-toolbar").data("instance")||e,h=a.data("cmd");e.node.hasClass(a.get(0),"fr-dropdown")?p=a.next():(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)),t.COMMANDS[h]&&t.COMMANDS[h].refresh?t.COMMANDS[h].refresh.apply(c,[a,p]):e.refresh[h]&&c.refresh[h](a,p)},bulkRefresh:x,exec:g,click:m,hideActiveDropdowns:O,addButtons:function(a){for(var p=0;p
    '}],t}return Le.prototype.render=function(){return We.createElement(Qe,{config:this.props.config,model:this.props.model,onModelChange:this.props.onModelChange})},Le}(We.Component);export{et as default}; + */(function(Ie,Le){(function(o,t){t($e)})(ke,function(o){o=o&&o.hasOwnProperty("default")?o.default:o,o.LANGUAGE.zh_cn={translation:{"Type something":"输入内容",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Insert:"插入",Delete:"删除",Cancel:"取消",OK:"确定",Back:"后退",Remove:"删除",More:"更多",Update:"更新",Style:"样式","Font Family":"字体","Font Size":"字号",Colors:"颜色",Background:"背景",Text:"字体","HEX Color":"十六进制颜色","Paragraph Format":"段落格式",Normal:"正文",Code:"代码","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Paragraph Style":"段落样式","Inline Style":"内联样式",Align:"对齐方式","Align Left":"左对齐","Align Center":"居中","Align Right":"右对齐","Align Justify":"两端对齐",None:"无","Ordered List":"编号","Unordered List":"项目符号","Decrease Indent":"减少缩进量","Increase Indent":"增加缩进量","Insert Link":"插入超链接","Open in new tab":"在新标签页中打开","Open Link":"打开超链接","Edit Link":"编辑超链接",Unlink:"删除超链接","Choose Link":"选择超链接","Insert Image":"插入图片","Upload Image":"上传图片","By URL":"通过 URL",Browse:"浏览","Drop image":"拖入图片","or click":"或点击","Manage Images":"管理图片",Loading:"加载中",Deleting:"删除中",Tags:"标签","Are you sure? Image will be deleted.":"图片将会被删除,是否确认?",Replace:"替换",Uploading:"上传中","Loading image":"图片加载中",Display:"显示",Inline:"嵌入型","Break Text":"上下型环绕","Alternative Text":"替换文字","Change Size":"改变大小",Width:"宽度",Height:"高度","Something went wrong. Please try again.":"发生错误,请重试。","Image Caption":"图片标题","Advanced Edit":"高级编辑","Insert Video":"插入视频","Embedded Code":"嵌入代码","Paste in a video URL":"粘贴视频网址","Drop video":"拖入视频","Your browser does not support HTML5 video.":"您的浏览器不支持 HTML5 视频。","Upload Video":"上传视频","Insert Table":"插入表格","Table Header":"表头","Remove Table":"删除表格","Table Style":"表格样式","Horizontal Align":"水平对齐方式",Row:"行","Insert row above":"在上方插入","Insert row below":"在下方插入","Delete row":"删除行",Column:"列","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cell:"单元格","Merge cells":"合并单元格","Horizontal split":"水平分割","Vertical split":"垂直分割","Cell Background":"单元格背景","Vertical Align":"垂直对齐方式",Top:"靠上",Middle:"居中",Bottom:"靠下","Align Top":"靠上对齐","Align Middle":"居中对齐","Align Bottom":"靠下对齐","Cell Style":"单元格样式","Upload File":"上传文件","Drop file":"拖入文件",Emoticons:"表情符号","Grinning face":"露齿笑脸","Grinning face with smiling eyes":"露齿笑到眯起眼","Face with tears of joy":"笑哭","Smiling face with open mouth":"张嘴微笑","Smiling face with open mouth and smiling eyes":"眯眼张嘴微笑","Smiling face with open mouth and cold sweat":"带冷汗的张嘴微笑","Smiling face with open mouth and tightly-closed eyes":"紧闭双眼张嘴微笑","Smiling face with halo":"带光环微笑","Smiling face with horns":"带牛角的微笑","Winking face":"眨眼","Smiling face with smiling eyes":"眯眼微笑","Face savoring delicious food":"馋","Relieved face":"如释重负","Smiling face with heart-shaped eyes":"桃心眼微笑","Smiling face with sunglasses":"戴太阳镜微笑","Smirking face":"得意地笑","Neutral face":"中性脸","Expressionless face":"面无表情","Unamused face":"不高兴","Face with cold sweat":"冷汗","Pensive face":"沉思","Confused face":"迷惑","Confounded face":"困惑","Kissing face":"嘴巴嘟嘟","Face throwing a kiss":"飞吻","Kissing face with smiling eyes":"眯眼接吻","Kissing face with closed eyes":"闭眼接吻","Face with stuck out tongue":"吐舌","Face with stuck out tongue and winking eye":"眨眼吐舌","Face with stuck out tongue and tightly-closed eyes":"眯眼吐舌","Disappointed face":"失望","Worried face":"担心","Angry face":"生气","Pouting face":"撅嘴","Crying face":"大哭","Persevering face":"坚强","Face with look of triumph":"扬眉吐气","Disappointed but relieved face":"失望","Frowning face with open mouth":"皱眉","Anguished face":"痛苦","Fearful face":"害怕","Weary face":"疲惫","Sleepy face":"困了","Tired face":"累了","Grimacing face":"扭曲脸","Loudly crying face":"大哭","Face with open mouth":"张开嘴","Hushed face":"安静","Face with open mouth and cold sweat":"冷汗","Face screaming in fear":"害怕尖叫","Astonished face":"惊讶","Flushed face":"脸红","Sleeping face":"熟睡","Dizzy face":"眩晕","Face without mouth":"没有嘴的脸","Face with medical mask":"口罩脸",Break:"换行",Subscript:"下标",Superscript:"上标",Fullscreen:"全屏","Insert Horizontal Line":"插入水平线","Clear Formatting":"清除格式",Save:"保存",Undo:"撤消",Redo:"恢复","Select All":"全选","Code View":"代码视图",Quote:"引用",Increase:"增加引用级别",Decrease:"减少引用级别","Quick Insert":"快速插入","Special Characters":"特殊字符",Latin:"拉丁字母",Greek:"希腊字母",Cyrillic:"西里尔字母",Punctuation:"标点",Currency:"货币",Arrows:"箭头",Math:"数学",Misc:"杂项",Print:"打印","Spell Checker":"拼写检查器",Help:"帮助",Shortcuts:"快捷键","Inline Editor":"内联编辑器","Show the editor":"显示编辑器","Common actions":"常用操作",Copy:"复制",Cut:"剪切",Paste:"粘贴","Basic Formatting":"基本格式","Increase quote level":"增加引用级别","Decrease quote level":"减少引用级别","Image / Video":"图像/视频","Resize larger":"放大","Resize smaller":"缩小",Table:"表格","Select table cell":"选择单元格","Extend selection one cell":"增加选中的单元格","Extend selection one row":"增加选中的行",Navigation:"导航","Focus popup / toolbar":"焦点弹出/工具栏","Return focus to previous position":"将焦点返回到上一个位置","Embed URL":"嵌入网址","Paste in a URL to embed":"粘贴要嵌入的网址","The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?":"粘贴的内容来自微软 Word 文档。你想保留还是清除格式?",Keep:"保留",Clean:"清除","Word Paste Detected":"检测到粘贴自 Word 的内容",Characters:"字数统计","More Text":" 更多文字","More Paragraph":"更多段落","More Rich":"更多丰富","More Misc":"更多杂项"},direction:"ltr"}})})();var je=function(Ie){ze(Le,Ie);function Le(o){var t=Ie.call(this,o)||this;return t.listeningEvents=[],t.element=null,t.editor=null,t.config={immediateReactModelUpdate:!1,reactIgnoreAttrs:null},t.editorInitialized=!1,t.INNER_HTML_ATTR="innerHTML",t.oldModel=null,t}return Le.prototype.componentDidMount=function(){this.createEditor()},Le.prototype.componentWillUnmount=function(){this.destroyEditor()},Le.prototype.componentDidUpdate=function(){JSON.stringify(this.oldModel)!=JSON.stringify(this.props.model)&&this.setContent()},Le.prototype.clone=function(o){var t=this;if(!o)return o;var n=[Number,String,Boolean],f;if(n.forEach(function(Y){o instanceof Y&&(f=Y(o))}),typeof f>"u")if(Object.prototype.toString.call(o)==="[object Array]")f=[],o.forEach(function(Y,ce,ue){f[ce]=t.clone(Y)});else if(typeof o=="object")if(o.nodeType&&typeof o.cloneNode=="function")f=o.cloneNode(!0);else if(o.prototype)f=o;else if(o instanceof Date)f=new Date(o);else{f={};for(var G in o)f[G]=t.clone(o[G])}else f=o;return f},Le.prototype.createEditor=function(){var o=this;this.editorInitialized||(this.config=this.clone(this.props.config||this.config),this.config=qe({},this.config),this.element=this.el,this.props.model&&(this.element.innerHTML=this.props.model),this.setContent(),this.registerEvent("initialized",this.config.events&&this.config.events.initialized),this.config.events||(this.config.events={}),this.config.events.initialized=function(){o.editorInitialized=!0,o.initListeners()},this.editor=new Ge(this.element,this.config))},Le.prototype.setContent=function(){var o=this;(this.props.model||this.props.model=="")&&(this.oldModel=this.props.model,this.editorInitialized?this.setNormalTagContent():(this._initEvents||(this._initEvents=[]),this._initEvents.push(function(){return o.setNormalTagContent()})))},Le.prototype.setNormalTagContent=function(){var o=this;o.editor.html&&o.editor.html.set(o.props.model||""),o.editorInitialized&&o.editor.undo&&(o.editor.undo.reset(),o.editor.undo.saveStep())},Le.prototype.destroyEditor=function(){this.element&&(this.editor.destroy&&this.editor.destroy(),this.listeningEvents.length=0,this.element=null,this.editorInitialized=!1,this._initEvents=[])},Le.prototype.getEditor=function(){return this.element?this.editor:null},Le.prototype.updateModel=function(){if(this.props.onModelChange){var o="",t=this.editor.html.get();typeof t=="string"&&(o=t),this.oldModel=o,this.props.onModelChange(o)}},Le.prototype.initListeners=function(){var o=this;if(this.editor.events.on("contentChanged",function(){o.updateModel()}),this.config.immediateReactModelUpdate&&this.editor.events.on("keyup",function(){o.updateModel()}),this._initEvents)for(var t=0;t
    '}],t}return Le.prototype.render=function(){return We.createElement(je,{config:this.props.config,model:this.props.model,onModelChange:this.props.onModelChange})},Le}(We.Component);export{Qe as default}; diff --git a/admin-views/dist/assets/RichText-d8e63044.js.gz b/admin-views/dist/assets/RichText-d8e63044.js.gz new file mode 100644 index 00000000..a6216ad8 Binary files /dev/null and b/admin-views/dist/assets/RichText-d8e63044.js.gz differ diff --git a/admin-views/dist/assets/Tinymce-0e9d2b18.js b/admin-views/dist/assets/Tinymce-bc39ae84.js similarity index 99% rename from admin-views/dist/assets/Tinymce-0e9d2b18.js rename to admin-views/dist/assets/Tinymce-bc39ae84.js index 2ac0fd80..1782c83e 100644 --- a/admin-views/dist/assets/Tinymce-0e9d2b18.js +++ b/admin-views/dist/assets/Tinymce-bc39ae84.js @@ -1,4 +1,4 @@ -import{e as hq,w as bq,R as kW,ah as yq,ai as vq,H as kq,h as QZ}from"./index-79ae6e73.js";var eq={exports:{}};(function(es){(function(){var Do=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},So=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},Ln=function(e,n){var o=Array.prototype.slice.call(e);return o.sort(n)},uo=function(e,n){return ho(function(o,r){return e.eq(n(o),n(r))})},ho=function(e){return{eq:e}},Fn=ho(function(e,n){return e===n}),nt=Fn,pn=function(e){return ho(function(n,o){if(n.length!==o.length)return!1;for(var r=n.length,c=0;c{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},It=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&jt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},tn=e=>n=>It(n)===e,ot=e=>n=>typeof n===e,Ot=e=>n=>e===n,xt=(e,n)=>dt(e)&&jt(e,n,(o,r)=>cn(o)===r),j=tn("string"),dt=tn("object"),Mo=e=>xt(e,Object),gt=tn("array"),U=Ot(null),at=ot("boolean"),bn=Ot(void 0),Zt=e=>e==null,Pe=e=>!Zt(e),ie=ot("function"),Ro=ot("number"),Ce=(e,n)=>{if(gt(e)){for(let o=0,r=e.length;o{},T=(e,n)=>(...o)=>e(n.apply(null,o)),un=(e,n)=>o=>e(n(o)),st=e=>()=>e,Bn=e=>e,Yt=(e,n)=>e===n;function Xe(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const fo=e=>n=>!e(n),Zo=e=>()=>{throw new Error(e)},wt=e=>e(),fn=e=>{e()},De=st(!1),lt=st(!0);class F{constructor(n,o){this.tag=n,this.value=o}static some(n){return new F(!0,n)}static none(){return F.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?F.some(n(this.value)):F.none()}bind(n){return this.tag?n(this.value):F.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:F.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Pe(n)?F.some(n):F.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}F.singletonNone=new F(!1);const qo=Array.prototype.slice,Qn=Array.prototype.indexOf,ft=Array.prototype.push,mt=(e,n)=>Qn.call(e,n),on=(e,n)=>{const o=mt(e,n);return o===-1?F.none():F.some(o)},X=(e,n)=>mt(e,n)>-1,be=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},Fe=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(Me(e,(r,c)=>{o=n(o,r,c)}),o),Q=(e,n,o)=>(ae(e,(r,c)=>{o=n(o,r,c)}),o),Se=(e,n,o)=>{for(let r=0,c=e.length;rSe(e,n,De),zt=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;o$n(ve(e,n)),Rn=(e,n)=>{for(let o=0,r=e.length;o{const n=qo.call(e,0);return n.reverse(),n},Po=(e,n)=>qe(e,o=>!X(n,o)),qn=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=qo.call(e,0);return o.sort(n),o},to=(e,n)=>n>=0&&nto(e,0),bo=e=>to(e,e.length-1),as=ie(Array.from)?Array.from:e=>qo.call(e),Rs=(e,n)=>{for(let o=0;o{const o=[],r=ie(n)?c=>be(o,u=>n(u,c)):c=>X(o,c);for(let c=0,u=e.length;c{const o=Yo(e);for(let r=0,c=o.length;rkr(e,(o,r)=>({k:r,v:n(o,r)})),kr=(e,n)=>{const o={};return Tt(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},Vr=e=>(n,o)=>{e[o]=n},qr=(e,n,o,r)=>{Tt(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},Xr=(e,n)=>{const o={},r={};return qr(e,n,Vr(o),Vr(r)),{t:o,f:r}},_s=(e,n)=>{const o={};return qr(e,n,Vr(o),Oe),o},ia=(e,n)=>{const o=[];return Tt(e,(r,c)=>{o.push(n(r,c))}),o},Ur=e=>ia(e,Bn),Cs=(e,n)=>Kn(e,n)?F.from(e[n]):F.none(),Kn=(e,n)=>oa.call(e,n),ar=(e,n)=>Kn(e,n)&&e[n]!==void 0&&e[n]!==null,Ee=(e,n,o=_o)=>En(o).eq(e,n),Ge=e=>{const n={};return ae(e,o=>{n[o]={}}),Yo(n)},Wt=e=>e.length!==void 0,kn=Array.isArray,Eo=e=>{if(kn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,Wt(e)){for(let r=0,c=e.length;r{const o=[];return Xo(e,(r,c)=>{o.push(n(r,c,e))}),o},Gs=(e,n)=>{const o=[];return Xo(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},cr=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=bn(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],Ye=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},Sn=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),k=c||!u&&m&&r("(min-device-width:768px)"),E=u||m&&!k,D=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,N=!E&&!k&&!D;return{isiPad:st(c),isiPhone:st(u),isTablet:st(k),isPhone:st(E),isTouch:st(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:st(D),isDesktop:st(N)}},Yn=(e,n)=>{for(let o=0;o{const o=Yn(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return mo(r(1),r(2))},Ks=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?ke():xo(e,o)},ke=()=>mo(0,0),mo=(e,n)=>({major:e,minor:n}),fe={nu:mo,detect:Ks,unknown:ke},ge=(e,n)=>Rs(n.brands,o=>{const r=o.brand.toLowerCase();return Ie(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:fe.nu(parseInt(o.version,10),0)}))}),yt=(e,n)=>{const o=String(n).toLowerCase();return Ie(e,r=>r.search(o))},_t=(e,n)=>yt(e,n).map(o=>{const r=fe.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>yt(e,n).map(o=>{const r=fe.detect(o.versionRegexes,n);return{current:o.name,version:r}}),xn=(e,n)=>e.substring(n),_n=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,wn=(e,n)=>no(e,n)?xn(e,n.length):e,On=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?bn(r)?!0:c+n.length<=r:!1},no=(e,n)=>_n(e,n,0),ds=(e,n)=>_n(e,n,e.length-n.length),Hs=e=>n=>n.replace(e,""),va=Hs(/^\s+|\s+$/g),Gr=Hs(/^\s+/g),oc=Hs(/\s+$/g),yo=e=>e.length>0,os=e=>!yo(e),Us=(e,n)=>n<=0?"":new Array(n+1).join(e),ka=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?F.none():F.some(o)},la=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Jr=e=>n=>On(n,e),js=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>On(e,"edge/")&&On(e,"chrome")&&On(e,"safari")&&On(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,la],search:e=>On(e,"chrome")&&!On(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>On(e,"msie")||On(e,"trident")},{name:"Opera",versionRegexes:[la,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Jr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Jr("firefox")},{name:"Safari",versionRegexes:[la,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(On(e,"safari")||On(e,"mobile/"))&&On(e,"applewebkit")}],du=[{name:"Windows",search:Jr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>On(e,"iphone")||On(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Jr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Jr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Jr("linux"),versionRegexes:[]},{name:"Solaris",search:Jr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Jr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Jr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],mi={browsers:st(js),oses:st(du)},fs="Edge",Oa="Chromium",za="IE",Mr="Opera",Ki="Firefox",sc="Safari",Da=()=>Sc({current:void 0,version:fe.unknown()}),Sc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(fs),isChromium:r(Oa),isIE:r(za),isOpera:r(Mr),isFirefox:r(Ki),isSafari:r(sc)}},xc={unknown:Da,nu:Sc,edge:st(fs),chromium:st(Oa),ie:st(za),opera:st(Mr),firefox:st(Ki),safari:st(sc)},Ic="Windows",Ni="iOS",Yi="Android",qa="Linux",Kc="macOS",gi="Solaris",Xi="FreeBSD",pi="ChromeOS",Z=()=>pe({current:void 0,version:fe.unknown()}),pe=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(Ic),isiOS:r(Ni),isAndroid:r(Yi),isMacOS:r(Kc),isLinux:r(qa),isSolaris:r(gi),isFreeBSD:r(Xi),isChromeOS:r(pi)}},Ae={unknown:Z,nu:pe,windows:st(Ic),ios:st(Ni),android:st(Yi),linux:st(qa),macos:st(Kc),solaris:st(gi),freebsd:st(Xi),chromeos:st(pi)},Rt={detect:(e,n,o)=>{const r=mi.browsers(),c=mi.oses(),u=n.bind(k=>ge(r,k)).orThunk(()=>_t(r,e)).fold(xc.unknown,xc.nu),m=Xt(c,e).fold(Ae.unknown,Ae.nu),b=Sn(m,u,e,o);return{browser:u,os:m,deviceType:b}}},eo=e=>window.matchMedia(e).matches;let ps=Ye(()=>Rt.detect(navigator.userAgent,F.from(navigator.userAgentData),eo));const Ys=()=>ps(),$s=navigator.userAgent,hr=Ys(),cs=hr.browser,_r=hr.os,Yc=hr.deviceType,hi=$s.indexOf("Windows Phone")!==-1,nn={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:cs.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!cs.isIE(),windowsPhone:hi,browser:{current:cs.current,version:cs.version,isChromium:cs.isChromium,isEdge:cs.isEdge,isFirefox:cs.isFirefox,isIE:cs.isIE,isOpera:cs.isOpera,isSafari:cs.isSafari},os:{current:_r.current,version:_r.version,isAndroid:_r.isAndroid,isChromeOS:_r.isChromeOS,isFreeBSD:_r.isFreeBSD,isiOS:_r.isiOS,isLinux:_r.isLinux,isMacOS:_r.isMacOS,isSolaris:_r.isSolaris,isWindows:_r.isWindows},deviceType:{isDesktop:Yc.isDesktop,isiPad:Yc.isiPad,isiPhone:Yc.isiPhone,isPhone:Yc.isPhone,isTablet:Yc.isTablet,isTouch:Yc.isTouch,isWebView:Yc.isWebView}},fu=/^\s*|\s*$/g,br=e=>Zt(e)?"":(""+e).replace(fu,""),B=(e,n)=>n?n==="array"&&kn(e)?!0:typeof e===n:e!==void 0,Y=(e,n,o={})=>{const r=j(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},se=Kn,Ke=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(en(c,n,o,r),!0)))},Et={trim:br,isArray:kn,is:B,toArray:Eo,makeMap:Y,each:Xo,map:wr,grep:Gs,inArray:cr,hasOwn:se,extend:Ke,walk:en,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rgt(e)?e:e===""?[]:wr(e.split(n||","),br),_addCacheSuffix:e=>{const n=nn.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Ws=(e,n,o=Yt)=>e.exists(r=>o(r,n)),Ga=(e,n,o=Yt)=>sa(e,n,o).getOr(e.isNone()&&n.isNone()),zr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?F.some(o(e.getOrDie(),n.getOrDie())):F.none(),Mi=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?F.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):F.none(),q=(e,n)=>e?F.some(n):F.none(),ue=typeof window<"u"?window:Function("return this;")(),Be=(e,n)=>{let o=n??ue;for(let r=0;r{const o=e.split(".");return Be(o,n)},ln=(e,n)=>ht(e,n),Jo=(e,n)=>{const o=ln(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},Cr=Object.getPrototypeOf,wa=e=>Jo("HTMLElement",e),ts=e=>{const n=ht("ownerDocument.defaultView",e);return dt(e)&&(wa(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Cr(e).constructor.name))},Kr=8,Br=9,ra=11,Ka=1,$l=3,Xs=e=>e.dom.nodeName.toLowerCase(),or=e=>e.dom.nodeType,Ra=e=>n=>or(n)===e,ep=e=>or(e)===Kr||Xs(e)==="#comment",Pr=e=>rc(e)&&ts(e.dom),rc=Ra(Ka),Ya=Ra($l),tp=Ra(Br),Vm=Ra(ra),Ji=e=>n=>rc(n)&&Xs(n)===e,md=(e,n,o)=>{if(j(o)||at(o)||Ro(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},ir=(e,n,o)=>{md(e.dom,n,o)},bi=(e,n)=>{const o=e.dom;Tt(n,(r,c)=>{md(o,c,r)})},Fa=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},hl=(e,n)=>F.from(Fa(e,n)),aa=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Yr=(e,n)=>{e.dom.removeAttribute(n)},Bi=e=>{const n=e.dom.attributes;return n==null||n.length===0},gd=e=>Q(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),Pi=(e,n)=>{const o=Fa(e,n);return o===void 0||o===""?[]:o.split(" ")},mu=(e,n,o)=>{const c=Pi(e,n).concat([o]);return ir(e,n,c.join(" ")),!0},Il=(e,n,o)=>{const r=qe(Pi(e,n),c=>c!==o);return r.length>0?ir(e,n,r.join(" ")):Yr(e,n),!1},Na=e=>e.dom.classList!==void 0,tf=e=>Pi(e,"class"),bc=(e,n)=>mu(e,"class",n),bl=(e,n)=>Il(e,"class",n),yl=(e,n)=>X(tf(e),n)?bl(e,n):bc(e,n),Lu=(e,n)=>{Na(e)?e.dom.classList.add(n):bc(e,n)},gu=e=>{(Na(e)?e.dom.classList:tf(e)).length===0&&Yr(e,"class")},Ll=(e,n)=>{Na(e)?e.dom.classList.remove(n):bl(e,n),gu(e)},Um=(e,n)=>{const o=Na(e)?e.dom.classList.toggle(n):yl(e,n);return gu(e),o},Hl=(e,n)=>Na(e)&&e.dom.classList.contains(n),jm=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return Hu(r.childNodes[0])},nf=(e,n)=>{const r=(n||document).createElement(e);return Hu(r)},Wm=(e,n)=>{const r=(n||document).createTextNode(e);return Hu(r)},Hu=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},le={fromHtml:jm,fromTag:nf,fromText:Wm,fromDom:Hu,fromPoint:(e,n,o)=>F.from(e.dom.elementFromPoint(n,o)).map(Hu)},pu=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},Fi=(e,n)=>{const o=e.dom;if(o.nodeType!==Ka)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},em=e=>e.nodeType!==Ka&&e.nodeType!==Br&&e.nodeType!==ra||e.childElementCount===0,yy=(e,n)=>{const o=n===void 0?document:n.dom;return em(o)?[]:ve(o.querySelectorAll(e),le.fromDom)},op=(e,n)=>{const o=n===void 0?document:n.dom;return em(o)?F.none():F.from(o.querySelector(e)).map(le.fromDom)},Ns=(e,n)=>e.dom===n.dom,$a=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},Qi=e=>le.fromDom(e.dom.ownerDocument),yi=e=>tp(e)?e:Qi(e),tm=e=>le.fromDom(yi(e).dom.documentElement),hu=e=>le.fromDom(yi(e).dom.defaultView),Lc=e=>F.from(e.dom.parentNode).map(le.fromDom),pd=e=>F.from(e.dom.parentElement).map(le.fromDom),Zm=(e,n)=>{const o=ie(n)?n:De;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=le.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},qm=e=>{const n=o=>qe(o,r=>!Ns(e,r));return Lc(e).map(Ia).map(n).getOr([])},vi=e=>F.from(e.dom.previousSibling).map(le.fromDom),of=e=>F.from(e.dom.nextSibling).map(le.fromDom),Gm=e=>An(pu(e,vi)),Xc=e=>pu(e,of),Ia=e=>ve(e.dom.childNodes,le.fromDom),bu=(e,n)=>{const o=e.dom.childNodes;return F.from(o[n]).map(le.fromDom)},hd=e=>bu(e,0),ki=e=>bu(e,e.dom.childNodes.length-1),Hc=e=>e.dom.childNodes.length,sf=e=>e.dom.hasChildNodes(),sp=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return le.fromDom(n)},rf=e=>Vm(e)&&Pe(e.dom.host),Km=ie(Element.prototype.attachShadow)&&ie(Node.prototype.getRootNode),af=st(Km),$i=Km?e=>le.fromDom(e.dom.getRootNode()):yi,rp=e=>rf(e)?e:sp(yi(e)),vy=e=>rf(e)?e:le.fromDom(yi(e).dom.body),ap=e=>{const n=$i(e);return rf(n)?F.some(n):F.none()},Ym=e=>le.fromDom(e.dom.host),cf=e=>{if(af()&&Pe(e.target)){const n=le.fromDom(e.target);if(rc(n)&&nm(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return mn(o)}}return F.from(e.target)},nm=e=>Pe(e.dom.shadowRoot),bd=e=>{const n=Ya(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return ap(le.fromDom(n)).fold(()=>o.body.contains(n),un(bd,Ym))};var yr=(e,n,o,r,c)=>e(o,r)?F.some(o):ie(c)&&c(o)?F.none():n(o,r,c);const Fr=(e,n,o)=>{let r=e.dom;const c=ie(o)?o:De;for(;r.parentNode;){r=r.parentNode;const u=le.fromDom(r);if(n(u))return F.some(u);if(c(u))break}return F.none()},Vc=(e,n,o)=>yr((c,u)=>u(c),Fr,e,n,o),Xm=(e,n)=>{const o=e.dom;return o.parentNode?Jm(le.fromDom(o.parentNode),r=>!Ns(e,r)&&n(r)):F.none()},Jm=(e,n)=>{const o=c=>n(le.fromDom(c));return Ie(e.dom.childNodes,o).map(le.fromDom)},Xa=(e,n)=>{const o=r=>{for(let c=0;cFr(e,r=>Fi(r,n),o),Tc=(e,n)=>op(n,e),vl=(e,n,o)=>yr((c,u)=>Fi(c,u),Vu,e,n,o),om=e=>vl(e,"[contenteditable]"),Fo=(e,n=!1)=>bd(e)?e.dom.isContentEditable:om(e).fold(st(n),o=>Uc(o)==="true"),Uc=e=>e.dom.contentEditable,yu=e=>e.style!==void 0&&ie(e.style.getPropertyValue),yd=(e,n,o)=>{if(!j(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);yu(e)&&e.style.setProperty(n,o)},Qm=(e,n)=>{yu(e)&&e.style.removeProperty(n)},x=(e,n,o)=>{const r=e.dom;yd(r,n,o)},R=(e,n)=>{const o=e.dom;Tt(n,(r,c)=>{yd(o,c,r)})},H=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!bd(e)?ce(o,n):c},ce=(e,n)=>yu(e)?e.style.getPropertyValue(n):"",me=(e,n)=>{const o=e.dom,r=ce(o,n);return F.from(r).filter(c=>c.length>0)},Dt=e=>{const n={},o=e.dom;if(yu(o))for(let r=0;r{const o=e.dom;Qm(o,n),Ws(hl(e,"style").map(va),"")&&Yr(e,"style")},Nn=e=>e.dom.offsetWidth,Xn=(e,n)=>{Lc(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},io=(e,n)=>{of(e).fold(()=>{Lc(e).each(c=>{Vs(c,n)})},r=>{Xn(r,n)})},Sr=(e,n)=>{hd(e).fold(()=>{Vs(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},Vs=(e,n)=>{e.dom.appendChild(n.dom)},Ii=(e,n)=>{Xn(e,n),Vs(n,e)},vd=(e,n)=>{ae(n,(o,r)=>{const c=r===0?e:n[r-1];io(c,o)})},sr=(e,n)=>{ae(n,o=>{Vs(e,o)})},vu=e=>{e.dom.textContent="",ae(Ia(e),n=>{Es(n)})},Es=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Jc=e=>{const n=Ia(e);n.length>0&&vd(e,n),Es(e)},lf=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,Ia(le.fromDom(r))},kd=e=>ve(e,le.fromDom),Qo=e=>e.dom.innerHTML,uf=(e,n)=>{const r=Qi(e).dom,c=le.fromDom(r.createDocumentFragment()),u=lf(n,r);sr(c,u),vu(e),Vs(e,c)},xh=e=>{const n=le.fromTag("div"),o=le.fromDom(e.dom.cloneNode(!0));return Vs(n,o),Qo(n)},Th=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),y_=e=>{const n=le.fromDom(cf(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=T(r,o);return Th(n,e.clientX,e.clientY,o,r,c,e)},ky=(e,n)=>o=>{e(o)&&n(y_(o))},cp=(e,n,o,r,c)=>{const u=ky(o,r);return e.dom.addEventListener(n,u,c),{unbind:Xe(eg,e,n,u,c)}},Eh=(e,n,o,r)=>cp(e,n,o,r,!1),eg=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},df=(e,n)=>({left:e,top:n,translate:(r,c)=>df(e+r,n+c)}),sm=df,wy=e=>{const n=e.getBoundingClientRect();return sm(n.left,n.top)},kl=(e,n)=>e!==void 0?e:n!==void 0?n:0,Hv=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return sm(o.offsetLeft,o.offsetTop);const u=kl(r==null?void 0:r.pageYOffset,c.scrollTop),m=kl(r==null?void 0:r.pageXOffset,c.scrollLeft),b=kl(c.clientTop,o.clientTop),k=kl(c.clientLeft,o.clientLeft);return rm(e).translate(m-k,u-b)},rm=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?sm(r.offsetLeft,r.offsetTop):bd(e)?wy(n):sm(0,0)},el=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return sm(o,r)},Ah=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},Oh=(e,n)=>{Ys().browser.isSafari()&&ie(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},zh=e=>{const n=e===void 0?window:e;return Ys().browser.isFirefox()?F.none():F.from(n.visualViewport)},ip=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),Dh=e=>{const n=e===void 0?window:e,o=n.document,r=el(le.fromDom(o));return zh(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return ip(r.left,r.top,u,m)},c=>ip(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},Rh=(e,n)=>qe(Ia(e),n),Nh=(e,n)=>{let o=[];return ae(Ia(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(Nh(r,n))}),o},La=(e,n)=>yy(n,e),Vv=(e,n,o)=>Vu(e,n,o).isSome();class vr{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Jn=e=>n=>!!n&&n.nodeType===e,ku=e=>!!e&&!Object.getPrototypeOf(e),gn=Jn(1),ff=e=>{const n=e.toLowerCase();return o=>Pe(o)&&o.nodeName.toLowerCase()===n},wl=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return X(n,r)}return!1}},Uu=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(gn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>gn(n)&&n.hasAttribute(e),am=(e,n)=>o=>gn(o)&&o.getAttribute(e)===n,wu=e=>gn(e)&&e.hasAttribute("data-mce-bogus"),Ja=e=>gn(e)&&e.getAttribute("data-mce-bogus")==="all",tl=e=>gn(e)&&e.tagName==="TABLE",tg=e=>n=>!!(gn(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),lp=wl(["textarea","input"]),Bt=Jn(3),Mh=Jn(4),mf=Jn(7),ju=Jn(8),_l=Jn(9),up=Jn(11),Qr=ff("br"),jr=ff("img"),Qa=tg("true"),As=tg("false"),_u=wl(["td","th"]),ac=wl(["td","th","caption"]),Cl=wl(["video","audio","object","embed"]),cc=ff("li"),yc=ff("details"),dp=ff("summary"),vt="\uFEFF",fr=" ",Bh=e=>e===vt,ua=e=>e.replace(/\uFEFF/g,""),fp=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?F.from(u.dom.nodeValue):F.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Ya,"text"),wi=e=>fp.get(e),_y=e=>fp.getOption(e),Wu=(e,n)=>fp.set(e,n),Cy=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Li=["td","th"],Is=["thead","tbody","tfoot"],Cu=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],gf=["h1","h2","h3","h4","h5","h6"],vc=["li","dd","dt"],Ph=["ul","ol","dl"],pf=["pre","script","textarea","style"],Sy=["pre"].concat(gf),_a=e=>{let n;return o=>(n=n||qn(e,lt),Kn(n,Xs(o)))},Hi=_a(Cy),$e=e=>Xs(e)==="table",jc=e=>rc(e)&&!Hi(e),_i=e=>rc(e)&&Xs(e)==="br",Vi=_a(Cu),Ui=_a(Ph),Ca=_a(vc),Ha=_a(Is),cm=_a(Li),Ci=_a(pf),Fh=_a(Sy),po=e=>Fh(e)||jc(e),w=e=>{const n=[];let o=e.dom;for(;o;)n.push(le.fromDom(o)),o=o.lastChild;return n},S=e=>{const n=La(e,"br"),o=qe(w(e).slice(-1),_i);n.length===o.length&&ae(o,Es)},L=()=>{const e=le.fromTag("br");return ir(e,"data-mce-bogus","1"),e},G=e=>{vu(e),Vs(e,L())},we=e=>{ki(e).each(n=>{vi(n).each(o=>{Hi(e)&&_i(n)&&Hi(o)&&Es(n)})})},Qe=vt,Pt=Bh,qt=ua,vo=gn,Ao=Bt,xr=e=>(Ao(e)&&(e=e.parentNode),vo(e)&&e.hasAttribute("data-mce-caret")),ks=e=>Ao(e)&&Pt(e.data),Ps=e=>xr(e)||ks(e),ei=e=>e.firstChild!==e.lastChild||!Qr(e.firstChild),nl=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(Qe),u=e.parentNode;if(n){const m=e.previousSibling;if(Ao(m)){if(Ps(m))return m;if(_d(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(Ao(m)){if(Ps(m))return m;if(hf(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},Sl=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset())===Qe||e.isAtStart()&&ks(n.previousSibling):!1},Su=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset()-1)===Qe||e.isAtEnd()&&ks(n.nextSibling):!1},Zu=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(L().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},hf=e=>Ao(e)&&e.data[0]===Qe,_d=e=>Ao(e)&&e.data[e.data.length-1]===Qe,bf=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];wu(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},yf=e=>e&&e.hasAttribute("data-mce-caret")?(bf(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,da=e=>xr(e.startContainer),ji=Qa,ng=As,vf=Qr,Ms=Bt,Zs=wl(["script","style","textarea"]),Va=wl(["img","input","textarea","hr","iframe","video","audio","object","embed"]),ti=wl(["table"]),$h=Ps,ic=e=>$h(e)?!1:Ms(e)?!Zs(e.parentNode):Va(e)||vf(e)||ti(e)||Cd(e),Ec=e=>gn(e)&&e.getAttribute("unselectable")==="true",Cd=e=>!Ec(e)&&ng(e),xu=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Cd(o))return!1;if(ji(o))return!0}return!0},hT=e=>Cd(e)?!Q(as(e.getElementsByTagName("*")),(n,o)=>n||ji(o),!1):!1,og=e=>Va(e)||hT(e),sg=(e,n)=>ic(e)&&xu(e,n),im=/^[ \t\r\n]*$/,lm=e=>im.test(e),mp=e=>{for(const n of e)if(!Bh(n))return!1;return!0},Uv=e=>" \f \v".indexOf(e)!==-1,jv=e=>e===` +import{e as hq,w as bq,R as kW,ah as yq,ai as vq,H as kq,h as QZ}from"./index-16176cf1.js";var eq={exports:{}};(function(es){(function(){var Do=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},So=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},Ln=function(e,n){var o=Array.prototype.slice.call(e);return o.sort(n)},uo=function(e,n){return ho(function(o,r){return e.eq(n(o),n(r))})},ho=function(e){return{eq:e}},Fn=ho(function(e,n){return e===n}),nt=Fn,pn=function(e){return ho(function(n,o){if(n.length!==o.length)return!1;for(var r=n.length,c=0;c{var r;return o(e,n.prototype)?!0:((r=e.constructor)===null||r===void 0?void 0:r.name)===n.name},It=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&jt(e,String,(o,r)=>r.isPrototypeOf(o))?"string":n},tn=e=>n=>It(n)===e,ot=e=>n=>typeof n===e,Ot=e=>n=>e===n,xt=(e,n)=>dt(e)&&jt(e,n,(o,r)=>cn(o)===r),j=tn("string"),dt=tn("object"),Mo=e=>xt(e,Object),gt=tn("array"),U=Ot(null),at=ot("boolean"),bn=Ot(void 0),Zt=e=>e==null,Pe=e=>!Zt(e),ie=ot("function"),Ro=ot("number"),Ce=(e,n)=>{if(gt(e)){for(let o=0,r=e.length;o{},T=(e,n)=>(...o)=>e(n.apply(null,o)),un=(e,n)=>o=>e(n(o)),st=e=>()=>e,Bn=e=>e,Yt=(e,n)=>e===n;function Xe(e,...n){return(...o)=>{const r=n.concat(o);return e.apply(null,r)}}const fo=e=>n=>!e(n),Zo=e=>()=>{throw new Error(e)},wt=e=>e(),fn=e=>{e()},De=st(!1),lt=st(!0);class F{constructor(n,o){this.tag=n,this.value=o}static some(n){return new F(!0,n)}static none(){return F.singletonNone}fold(n,o){return this.tag?o(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?F.some(n(this.value)):F.none()}bind(n){return this.tag?n(this.value):F.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:F.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return Pe(n)?F.some(n):F.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}F.singletonNone=new F(!1);const qo=Array.prototype.slice,Qn=Array.prototype.indexOf,ft=Array.prototype.push,mt=(e,n)=>Qn.call(e,n),on=(e,n)=>{const o=mt(e,n);return o===-1?F.none():F.some(o)},X=(e,n)=>mt(e,n)>-1,be=(e,n)=>{for(let o=0,r=e.length;o{const o=e.length,r=new Array(o);for(let c=0;c{for(let o=0,r=e.length;o{for(let o=e.length-1;o>=0;o--){const r=e[o];n(r,o)}},Fe=(e,n)=>{const o=[],r=[];for(let c=0,u=e.length;c{const o=[];for(let r=0,c=e.length;r(Me(e,(r,c)=>{o=n(o,r,c)}),o),Q=(e,n,o)=>(ae(e,(r,c)=>{o=n(o,r,c)}),o),Se=(e,n,o)=>{for(let r=0,c=e.length;rSe(e,n,De),zt=(e,n)=>{for(let o=0,r=e.length;o{const n=[];for(let o=0,r=e.length;o$n(ve(e,n)),Rn=(e,n)=>{for(let o=0,r=e.length;o{const n=qo.call(e,0);return n.reverse(),n},Po=(e,n)=>qe(e,o=>!X(n,o)),qn=(e,n)=>{const o={};for(let r=0,c=e.length;r{const o=qo.call(e,0);return o.sort(n),o},to=(e,n)=>n>=0&&nto(e,0),bo=e=>to(e,e.length-1),as=ie(Array.from)?Array.from:e=>qo.call(e),Rs=(e,n)=>{for(let o=0;o{const o=[],r=ie(n)?c=>be(o,u=>n(u,c)):c=>X(o,c);for(let c=0,u=e.length;c{const o=Yo(e);for(let r=0,c=o.length;rkr(e,(o,r)=>({k:r,v:n(o,r)})),kr=(e,n)=>{const o={};return Tt(e,(r,c)=>{const u=n(r,c);o[u.k]=u.v}),o},Vr=e=>(n,o)=>{e[o]=n},qr=(e,n,o,r)=>{Tt(e,(c,u)=>{(n(c,u)?o:r)(c,u)})},Xr=(e,n)=>{const o={},r={};return qr(e,n,Vr(o),Vr(r)),{t:o,f:r}},_s=(e,n)=>{const o={};return qr(e,n,Vr(o),Oe),o},ia=(e,n)=>{const o=[];return Tt(e,(r,c)=>{o.push(n(r,c))}),o},Ur=e=>ia(e,Bn),Cs=(e,n)=>Kn(e,n)?F.from(e[n]):F.none(),Kn=(e,n)=>oa.call(e,n),ar=(e,n)=>Kn(e,n)&&e[n]!==void 0&&e[n]!==null,Ee=(e,n,o=_o)=>En(o).eq(e,n),Ge=e=>{const n={};return ae(e,o=>{n[o]={}}),Yo(n)},Wt=e=>e.length!==void 0,kn=Array.isArray,Eo=e=>{if(kn(e))return e;{const n=[];for(let o=0,r=e.length;o{if(!e)return!1;if(o=o||e,Wt(e)){for(let r=0,c=e.length;r{const o=[];return Xo(e,(r,c)=>{o.push(n(r,c,e))}),o},Gs=(e,n)=>{const o=[];return Xo(e,(r,c)=>{(!n||n(r,c,e))&&o.push(r)}),o},cr=(e,n)=>{if(e){for(let o=0,r=e.length;o{let c=bn(o)?e[0]:o;for(let u=0;u{for(let r=0,c=e.length;re[e.length-1],Ye=e=>{let n=!1,o;return(...r)=>(n||(n=!0,o=e.apply(null,r)),o)},Sn=(e,n,o,r)=>{const c=e.isiOS()&&/ipad/i.test(o)===!0,u=e.isiOS()&&!c,m=e.isiOS()||e.isAndroid(),b=m||r("(pointer:coarse)"),k=c||!u&&m&&r("(min-device-width:768px)"),E=u||m&&!k,D=n.isSafari()&&e.isiOS()&&/safari/i.test(o)===!1,N=!E&&!k&&!D;return{isiPad:st(c),isiPhone:st(u),isTablet:st(k),isPhone:st(E),isTouch:st(b),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:st(D),isDesktop:st(N)}},Yn=(e,n)=>{for(let o=0;o{const o=Yn(e,n);if(!o)return{major:0,minor:0};const r=c=>Number(n.replace(o,"$"+c));return mo(r(1),r(2))},Ks=(e,n)=>{const o=String(n).toLowerCase();return e.length===0?ke():xo(e,o)},ke=()=>mo(0,0),mo=(e,n)=>({major:e,minor:n}),fe={nu:mo,detect:Ks,unknown:ke},ge=(e,n)=>Rs(n.brands,o=>{const r=o.brand.toLowerCase();return Ie(e,c=>{var u;return r===((u=c.brand)===null||u===void 0?void 0:u.toLowerCase())}).map(c=>({current:c.name,version:fe.nu(parseInt(o.version,10),0)}))}),yt=(e,n)=>{const o=String(n).toLowerCase();return Ie(e,r=>r.search(o))},_t=(e,n)=>yt(e,n).map(o=>{const r=fe.detect(o.versionRegexes,n);return{current:o.name,version:r}}),Xt=(e,n)=>yt(e,n).map(o=>{const r=fe.detect(o.versionRegexes,n);return{current:o.name,version:r}}),xn=(e,n)=>e.substring(n),_n=(e,n,o)=>n===""||e.length>=n.length&&e.substr(o,o+n.length)===n,wn=(e,n)=>no(e,n)?xn(e,n.length):e,On=(e,n,o=0,r)=>{const c=e.indexOf(n,o);return c!==-1?bn(r)?!0:c+n.length<=r:!1},no=(e,n)=>_n(e,n,0),ds=(e,n)=>_n(e,n,e.length-n.length),Hs=e=>n=>n.replace(e,""),va=Hs(/^\s+|\s+$/g),Gr=Hs(/^\s+/g),oc=Hs(/\s+$/g),yo=e=>e.length>0,os=e=>!yo(e),Us=(e,n)=>n<=0?"":new Array(n+1).join(e),ka=(e,n=10)=>{const o=parseInt(e,n);return isNaN(o)?F.none():F.some(o)},la=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Jr=e=>n=>On(n,e),js=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>On(e,"edge/")&&On(e,"chrome")&&On(e,"safari")&&On(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,la],search:e=>On(e,"chrome")&&!On(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>On(e,"msie")||On(e,"trident")},{name:"Opera",versionRegexes:[la,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Jr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Jr("firefox")},{name:"Safari",versionRegexes:[la,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(On(e,"safari")||On(e,"mobile/"))&&On(e,"applewebkit")}],du=[{name:"Windows",search:Jr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>On(e,"iphone")||On(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Jr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Jr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Jr("linux"),versionRegexes:[]},{name:"Solaris",search:Jr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Jr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Jr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],mi={browsers:st(js),oses:st(du)},fs="Edge",Oa="Chromium",za="IE",Mr="Opera",Ki="Firefox",sc="Safari",Da=()=>Sc({current:void 0,version:fe.unknown()}),Sc=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isEdge:r(fs),isChromium:r(Oa),isIE:r(za),isOpera:r(Mr),isFirefox:r(Ki),isSafari:r(sc)}},xc={unknown:Da,nu:Sc,edge:st(fs),chromium:st(Oa),ie:st(za),opera:st(Mr),firefox:st(Ki),safari:st(sc)},Ic="Windows",Ni="iOS",Yi="Android",qa="Linux",Kc="macOS",gi="Solaris",Xi="FreeBSD",pi="ChromeOS",Z=()=>pe({current:void 0,version:fe.unknown()}),pe=e=>{const n=e.current,o=e.version,r=c=>()=>n===c;return{current:n,version:o,isWindows:r(Ic),isiOS:r(Ni),isAndroid:r(Yi),isMacOS:r(Kc),isLinux:r(qa),isSolaris:r(gi),isFreeBSD:r(Xi),isChromeOS:r(pi)}},Ae={unknown:Z,nu:pe,windows:st(Ic),ios:st(Ni),android:st(Yi),linux:st(qa),macos:st(Kc),solaris:st(gi),freebsd:st(Xi),chromeos:st(pi)},Rt={detect:(e,n,o)=>{const r=mi.browsers(),c=mi.oses(),u=n.bind(k=>ge(r,k)).orThunk(()=>_t(r,e)).fold(xc.unknown,xc.nu),m=Xt(c,e).fold(Ae.unknown,Ae.nu),b=Sn(m,u,e,o);return{browser:u,os:m,deviceType:b}}},eo=e=>window.matchMedia(e).matches;let ps=Ye(()=>Rt.detect(navigator.userAgent,F.from(navigator.userAgentData),eo));const Ys=()=>ps(),$s=navigator.userAgent,hr=Ys(),cs=hr.browser,_r=hr.os,Yc=hr.deviceType,hi=$s.indexOf("Windows Phone")!==-1,nn={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:cs.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!cs.isIE(),windowsPhone:hi,browser:{current:cs.current,version:cs.version,isChromium:cs.isChromium,isEdge:cs.isEdge,isFirefox:cs.isFirefox,isIE:cs.isIE,isOpera:cs.isOpera,isSafari:cs.isSafari},os:{current:_r.current,version:_r.version,isAndroid:_r.isAndroid,isChromeOS:_r.isChromeOS,isFreeBSD:_r.isFreeBSD,isiOS:_r.isiOS,isLinux:_r.isLinux,isMacOS:_r.isMacOS,isSolaris:_r.isSolaris,isWindows:_r.isWindows},deviceType:{isDesktop:Yc.isDesktop,isiPad:Yc.isiPad,isiPhone:Yc.isiPhone,isPhone:Yc.isPhone,isTablet:Yc.isTablet,isTouch:Yc.isTouch,isWebView:Yc.isWebView}},fu=/^\s*|\s*$/g,br=e=>Zt(e)?"":(""+e).replace(fu,""),B=(e,n)=>n?n==="array"&&kn(e)?!0:typeof e===n:e!==void 0,Y=(e,n,o={})=>{const r=j(e)?e.split(n||","):e||[];let c=r.length;for(;c--;)o[r[c]]={};return o},se=Kn,Ke=(e,...n)=>{for(let o=0;on.call(r,c,u,o)===!1?!1:(en(c,n,o,r),!0)))},Et={trim:br,isArray:kn,is:B,toArray:Eo,makeMap:Y,each:Xo,map:wr,grep:Gs,inArray:cr,hasOwn:se,extend:Ke,walk:en,resolve:(e,n=window)=>{const o=e.split(".");for(let r=0,c=o.length;rgt(e)?e:e===""?[]:wr(e.split(n||","),br),_addCacheSuffix:e=>{const n=nn.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Ws=(e,n,o=Yt)=>e.exists(r=>o(r,n)),Ga=(e,n,o=Yt)=>sa(e,n,o).getOr(e.isNone()&&n.isNone()),zr=e=>{const n=[],o=r=>{n.push(r)};for(let r=0;re.isSome()&&n.isSome()?F.some(o(e.getOrDie(),n.getOrDie())):F.none(),Mi=(e,n,o,r)=>e.isSome()&&n.isSome()&&o.isSome()?F.some(r(e.getOrDie(),n.getOrDie(),o.getOrDie())):F.none(),q=(e,n)=>e?F.some(n):F.none(),ue=typeof window<"u"?window:Function("return this;")(),Be=(e,n)=>{let o=n??ue;for(let r=0;r{const o=e.split(".");return Be(o,n)},ln=(e,n)=>ht(e,n),Jo=(e,n)=>{const o=ln(e,n);if(o==null)throw new Error(e+" not available on this browser");return o},Cr=Object.getPrototypeOf,wa=e=>Jo("HTMLElement",e),ts=e=>{const n=ht("ownerDocument.defaultView",e);return dt(e)&&(wa(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Cr(e).constructor.name))},Kr=8,Br=9,ra=11,Ka=1,$l=3,Xs=e=>e.dom.nodeName.toLowerCase(),or=e=>e.dom.nodeType,Ra=e=>n=>or(n)===e,ep=e=>or(e)===Kr||Xs(e)==="#comment",Pr=e=>rc(e)&&ts(e.dom),rc=Ra(Ka),Ya=Ra($l),tp=Ra(Br),Vm=Ra(ra),Ji=e=>n=>rc(n)&&Xs(n)===e,md=(e,n,o)=>{if(j(o)||at(o)||Ro(o))e.setAttribute(n,o+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple")},ir=(e,n,o)=>{md(e.dom,n,o)},bi=(e,n)=>{const o=e.dom;Tt(n,(r,c)=>{md(o,c,r)})},Fa=(e,n)=>{const o=e.dom.getAttribute(n);return o===null?void 0:o},hl=(e,n)=>F.from(Fa(e,n)),aa=(e,n)=>{const o=e.dom;return o&&o.hasAttribute?o.hasAttribute(n):!1},Yr=(e,n)=>{e.dom.removeAttribute(n)},Bi=e=>{const n=e.dom.attributes;return n==null||n.length===0},gd=e=>Q(e.dom.attributes,(n,o)=>(n[o.name]=o.value,n),{}),Pi=(e,n)=>{const o=Fa(e,n);return o===void 0||o===""?[]:o.split(" ")},mu=(e,n,o)=>{const c=Pi(e,n).concat([o]);return ir(e,n,c.join(" ")),!0},Il=(e,n,o)=>{const r=qe(Pi(e,n),c=>c!==o);return r.length>0?ir(e,n,r.join(" ")):Yr(e,n),!1},Na=e=>e.dom.classList!==void 0,tf=e=>Pi(e,"class"),bc=(e,n)=>mu(e,"class",n),bl=(e,n)=>Il(e,"class",n),yl=(e,n)=>X(tf(e),n)?bl(e,n):bc(e,n),Lu=(e,n)=>{Na(e)?e.dom.classList.add(n):bc(e,n)},gu=e=>{(Na(e)?e.dom.classList:tf(e)).length===0&&Yr(e,"class")},Ll=(e,n)=>{Na(e)?e.dom.classList.remove(n):bl(e,n),gu(e)},Um=(e,n)=>{const o=Na(e)?e.dom.classList.toggle(n):yl(e,n);return gu(e),o},Hl=(e,n)=>Na(e)&&e.dom.classList.contains(n),jm=(e,n)=>{const r=(n||document).createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1){const c="HTML does not have a single root node";throw console.error(c,e),new Error(c)}return Hu(r.childNodes[0])},nf=(e,n)=>{const r=(n||document).createElement(e);return Hu(r)},Wm=(e,n)=>{const r=(n||document).createTextNode(e);return Hu(r)},Hu=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},le={fromHtml:jm,fromTag:nf,fromText:Wm,fromDom:Hu,fromPoint:(e,n,o)=>F.from(e.dom.elementFromPoint(n,o)).map(Hu)},pu=(e,n)=>{const o=[],r=u=>(o.push(u),n(u));let c=n(e);do c=c.bind(r);while(c.isSome());return o},Fi=(e,n)=>{const o=e.dom;if(o.nodeType!==Ka)return!1;{const r=o;if(r.matches!==void 0)return r.matches(n);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(n);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(n);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},em=e=>e.nodeType!==Ka&&e.nodeType!==Br&&e.nodeType!==ra||e.childElementCount===0,yy=(e,n)=>{const o=n===void 0?document:n.dom;return em(o)?[]:ve(o.querySelectorAll(e),le.fromDom)},op=(e,n)=>{const o=n===void 0?document:n.dom;return em(o)?F.none():F.from(o.querySelector(e)).map(le.fromDom)},Ns=(e,n)=>e.dom===n.dom,$a=(e,n)=>{const o=e.dom,r=n.dom;return o===r?!1:o.contains(r)},Qi=e=>le.fromDom(e.dom.ownerDocument),yi=e=>tp(e)?e:Qi(e),tm=e=>le.fromDom(yi(e).dom.documentElement),hu=e=>le.fromDom(yi(e).dom.defaultView),Lc=e=>F.from(e.dom.parentNode).map(le.fromDom),pd=e=>F.from(e.dom.parentElement).map(le.fromDom),Zm=(e,n)=>{const o=ie(n)?n:De;let r=e.dom;const c=[];for(;r.parentNode!==null&&r.parentNode!==void 0;){const u=r.parentNode,m=le.fromDom(u);if(c.push(m),o(m)===!0)break;r=u}return c},qm=e=>{const n=o=>qe(o,r=>!Ns(e,r));return Lc(e).map(Ia).map(n).getOr([])},vi=e=>F.from(e.dom.previousSibling).map(le.fromDom),of=e=>F.from(e.dom.nextSibling).map(le.fromDom),Gm=e=>An(pu(e,vi)),Xc=e=>pu(e,of),Ia=e=>ve(e.dom.childNodes,le.fromDom),bu=(e,n)=>{const o=e.dom.childNodes;return F.from(o[n]).map(le.fromDom)},hd=e=>bu(e,0),ki=e=>bu(e,e.dom.childNodes.length-1),Hc=e=>e.dom.childNodes.length,sf=e=>e.dom.hasChildNodes(),sp=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return le.fromDom(n)},rf=e=>Vm(e)&&Pe(e.dom.host),Km=ie(Element.prototype.attachShadow)&&ie(Node.prototype.getRootNode),af=st(Km),$i=Km?e=>le.fromDom(e.dom.getRootNode()):yi,rp=e=>rf(e)?e:sp(yi(e)),vy=e=>rf(e)?e:le.fromDom(yi(e).dom.body),ap=e=>{const n=$i(e);return rf(n)?F.some(n):F.none()},Ym=e=>le.fromDom(e.dom.host),cf=e=>{if(af()&&Pe(e.target)){const n=le.fromDom(e.target);if(rc(n)&&nm(n)&&e.composed&&e.composedPath){const o=e.composedPath();if(o)return mn(o)}}return F.from(e.target)},nm=e=>Pe(e.dom.shadowRoot),bd=e=>{const n=Ya(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const o=n.ownerDocument;return ap(le.fromDom(n)).fold(()=>o.body.contains(n),un(bd,Ym))};var yr=(e,n,o,r,c)=>e(o,r)?F.some(o):ie(c)&&c(o)?F.none():n(o,r,c);const Fr=(e,n,o)=>{let r=e.dom;const c=ie(o)?o:De;for(;r.parentNode;){r=r.parentNode;const u=le.fromDom(r);if(n(u))return F.some(u);if(c(u))break}return F.none()},Vc=(e,n,o)=>yr((c,u)=>u(c),Fr,e,n,o),Xm=(e,n)=>{const o=e.dom;return o.parentNode?Jm(le.fromDom(o.parentNode),r=>!Ns(e,r)&&n(r)):F.none()},Jm=(e,n)=>{const o=c=>n(le.fromDom(c));return Ie(e.dom.childNodes,o).map(le.fromDom)},Xa=(e,n)=>{const o=r=>{for(let c=0;cFr(e,r=>Fi(r,n),o),Tc=(e,n)=>op(n,e),vl=(e,n,o)=>yr((c,u)=>Fi(c,u),Vu,e,n,o),om=e=>vl(e,"[contenteditable]"),Fo=(e,n=!1)=>bd(e)?e.dom.isContentEditable:om(e).fold(st(n),o=>Uc(o)==="true"),Uc=e=>e.dom.contentEditable,yu=e=>e.style!==void 0&&ie(e.style.getPropertyValue),yd=(e,n,o)=>{if(!j(o))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);yu(e)&&e.style.setProperty(n,o)},Qm=(e,n)=>{yu(e)&&e.style.removeProperty(n)},x=(e,n,o)=>{const r=e.dom;yd(r,n,o)},R=(e,n)=>{const o=e.dom;Tt(n,(r,c)=>{yd(o,c,r)})},H=(e,n)=>{const o=e.dom,c=window.getComputedStyle(o).getPropertyValue(n);return c===""&&!bd(e)?ce(o,n):c},ce=(e,n)=>yu(e)?e.style.getPropertyValue(n):"",me=(e,n)=>{const o=e.dom,r=ce(o,n);return F.from(r).filter(c=>c.length>0)},Dt=e=>{const n={},o=e.dom;if(yu(o))for(let r=0;r{const o=e.dom;Qm(o,n),Ws(hl(e,"style").map(va),"")&&Yr(e,"style")},Nn=e=>e.dom.offsetWidth,Xn=(e,n)=>{Lc(e).each(r=>{r.dom.insertBefore(n.dom,e.dom)})},io=(e,n)=>{of(e).fold(()=>{Lc(e).each(c=>{Vs(c,n)})},r=>{Xn(r,n)})},Sr=(e,n)=>{hd(e).fold(()=>{Vs(e,n)},r=>{e.dom.insertBefore(n.dom,r.dom)})},Vs=(e,n)=>{e.dom.appendChild(n.dom)},Ii=(e,n)=>{Xn(e,n),Vs(n,e)},vd=(e,n)=>{ae(n,(o,r)=>{const c=r===0?e:n[r-1];io(c,o)})},sr=(e,n)=>{ae(n,o=>{Vs(e,o)})},vu=e=>{e.dom.textContent="",ae(Ia(e),n=>{Es(n)})},Es=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Jc=e=>{const n=Ia(e);n.length>0&&vd(e,n),Es(e)},lf=(e,n)=>{const r=(n||document).createElement("div");return r.innerHTML=e,Ia(le.fromDom(r))},kd=e=>ve(e,le.fromDom),Qo=e=>e.dom.innerHTML,uf=(e,n)=>{const r=Qi(e).dom,c=le.fromDom(r.createDocumentFragment()),u=lf(n,r);sr(c,u),vu(e),Vs(e,c)},xh=e=>{const n=le.fromTag("div"),o=le.fromDom(e.dom.cloneNode(!0));return Vs(n,o),Qo(n)},Th=(e,n,o,r,c,u,m)=>({target:e,x:n,y:o,stop:r,prevent:c,kill:u,raw:m}),y_=e=>{const n=le.fromDom(cf(e).getOr(e.target)),o=()=>e.stopPropagation(),r=()=>e.preventDefault(),c=T(r,o);return Th(n,e.clientX,e.clientY,o,r,c,e)},ky=(e,n)=>o=>{e(o)&&n(y_(o))},cp=(e,n,o,r,c)=>{const u=ky(o,r);return e.dom.addEventListener(n,u,c),{unbind:Xe(eg,e,n,u,c)}},Eh=(e,n,o,r)=>cp(e,n,o,r,!1),eg=(e,n,o,r)=>{e.dom.removeEventListener(n,o,r)},df=(e,n)=>({left:e,top:n,translate:(r,c)=>df(e+r,n+c)}),sm=df,wy=e=>{const n=e.getBoundingClientRect();return sm(n.left,n.top)},kl=(e,n)=>e!==void 0?e:n!==void 0?n:0,Hv=e=>{const n=e.dom.ownerDocument,o=n.body,r=n.defaultView,c=n.documentElement;if(o===e.dom)return sm(o.offsetLeft,o.offsetTop);const u=kl(r==null?void 0:r.pageYOffset,c.scrollTop),m=kl(r==null?void 0:r.pageXOffset,c.scrollLeft),b=kl(c.clientTop,o.clientTop),k=kl(c.clientLeft,o.clientLeft);return rm(e).translate(m-k,u-b)},rm=e=>{const n=e.dom,r=n.ownerDocument.body;return r===n?sm(r.offsetLeft,r.offsetTop):bd(e)?wy(n):sm(0,0)},el=e=>{const n=e!==void 0?e.dom:document,o=n.body.scrollLeft||n.documentElement.scrollLeft,r=n.body.scrollTop||n.documentElement.scrollTop;return sm(o,r)},Ah=(e,n,o)=>{const c=(o!==void 0?o.dom:document).defaultView;c&&c.scrollTo(e,n)},Oh=(e,n)=>{Ys().browser.isSafari()&&ie(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},zh=e=>{const n=e===void 0?window:e;return Ys().browser.isFirefox()?F.none():F.from(n.visualViewport)},ip=(e,n,o,r)=>({x:e,y:n,width:o,height:r,right:e+o,bottom:n+r}),Dh=e=>{const n=e===void 0?window:e,o=n.document,r=el(le.fromDom(o));return zh(n).fold(()=>{const c=n.document.documentElement,u=c.clientWidth,m=c.clientHeight;return ip(r.left,r.top,u,m)},c=>ip(Math.max(c.pageLeft,r.left),Math.max(c.pageTop,r.top),c.width,c.height))},Rh=(e,n)=>qe(Ia(e),n),Nh=(e,n)=>{let o=[];return ae(Ia(e),r=>{n(r)&&(o=o.concat([r])),o=o.concat(Nh(r,n))}),o},La=(e,n)=>yy(n,e),Vv=(e,n,o)=>Vu(e,n,o).isSome();class vr{constructor(n,o){this.node=n,this.rootNode=o,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,o,r,c){if(n){if(!c&&n[o])return n[o];if(n!==this.rootNode){let u=n[r];if(u)return u;for(let m=n.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(u=m[r],u)return u}}}findPreviousNode(n,o){if(n){const r=n.previousSibling;if(this.rootNode&&r===this.rootNode)return;if(r){if(!o){for(let u=r.lastChild;u;u=u.lastChild)if(!u.lastChild)return u}return r}const c=n.parentNode;if(c&&c!==this.rootNode)return c}}}const Jn=e=>n=>!!n&&n.nodeType===e,ku=e=>!!e&&!Object.getPrototypeOf(e),gn=Jn(1),ff=e=>{const n=e.toLowerCase();return o=>Pe(o)&&o.nodeName.toLowerCase()===n},wl=e=>{const n=e.map(o=>o.toLowerCase());return o=>{if(o&&o.nodeName){const r=o.nodeName.toLowerCase();return X(n,r)}return!1}},Uu=(e,n)=>{const o=n.toLowerCase().split(" ");return r=>{if(gn(r)){const c=r.ownerDocument.defaultView;if(c)for(let u=0;un=>gn(n)&&n.hasAttribute(e),am=(e,n)=>o=>gn(o)&&o.getAttribute(e)===n,wu=e=>gn(e)&&e.hasAttribute("data-mce-bogus"),Ja=e=>gn(e)&&e.getAttribute("data-mce-bogus")==="all",tl=e=>gn(e)&&e.tagName==="TABLE",tg=e=>n=>!!(gn(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),lp=wl(["textarea","input"]),Bt=Jn(3),Mh=Jn(4),mf=Jn(7),ju=Jn(8),_l=Jn(9),up=Jn(11),Qr=ff("br"),jr=ff("img"),Qa=tg("true"),As=tg("false"),_u=wl(["td","th"]),ac=wl(["td","th","caption"]),Cl=wl(["video","audio","object","embed"]),cc=ff("li"),yc=ff("details"),dp=ff("summary"),vt="\uFEFF",fr=" ",Bh=e=>e===vt,ua=e=>e.replace(/\uFEFF/g,""),fp=((e,n)=>{const o=u=>{if(!e(u))throw new Error("Can only get "+n+" value of a "+n+" node");return r(u).getOr("")},r=u=>e(u)?F.from(u.dom.nodeValue):F.none();return{get:o,getOption:r,set:(u,m)=>{if(!e(u))throw new Error("Can only set raw "+n+" value of a "+n+" node");u.dom.nodeValue=m}}})(Ya,"text"),wi=e=>fp.get(e),_y=e=>fp.getOption(e),Wu=(e,n)=>fp.set(e,n),Cy=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Li=["td","th"],Is=["thead","tbody","tfoot"],Cu=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],gf=["h1","h2","h3","h4","h5","h6"],vc=["li","dd","dt"],Ph=["ul","ol","dl"],pf=["pre","script","textarea","style"],Sy=["pre"].concat(gf),_a=e=>{let n;return o=>(n=n||qn(e,lt),Kn(n,Xs(o)))},Hi=_a(Cy),$e=e=>Xs(e)==="table",jc=e=>rc(e)&&!Hi(e),_i=e=>rc(e)&&Xs(e)==="br",Vi=_a(Cu),Ui=_a(Ph),Ca=_a(vc),Ha=_a(Is),cm=_a(Li),Ci=_a(pf),Fh=_a(Sy),po=e=>Fh(e)||jc(e),w=e=>{const n=[];let o=e.dom;for(;o;)n.push(le.fromDom(o)),o=o.lastChild;return n},S=e=>{const n=La(e,"br"),o=qe(w(e).slice(-1),_i);n.length===o.length&&ae(o,Es)},L=()=>{const e=le.fromTag("br");return ir(e,"data-mce-bogus","1"),e},G=e=>{vu(e),Vs(e,L())},we=e=>{ki(e).each(n=>{vi(n).each(o=>{Hi(e)&&_i(n)&&Hi(o)&&Es(n)})})},Qe=vt,Pt=Bh,qt=ua,vo=gn,Ao=Bt,xr=e=>(Ao(e)&&(e=e.parentNode),vo(e)&&e.hasAttribute("data-mce-caret")),ks=e=>Ao(e)&&Pt(e.data),Ps=e=>xr(e)||ks(e),ei=e=>e.firstChild!==e.lastChild||!Qr(e.firstChild),nl=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(Qe),u=e.parentNode;if(n){const m=e.previousSibling;if(Ao(m)){if(Ps(m))return m;if(_d(m))return m.splitText(m.data.length-1)}u==null||u.insertBefore(c,e)}else{const m=e.nextSibling;if(Ao(m)){if(Ps(m))return m;if(hf(m))return m.splitText(1),m}e.nextSibling?u==null||u.insertBefore(c,e.nextSibling):u==null||u.appendChild(c)}return c},Sl=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset())===Qe||e.isAtStart()&&ks(n.previousSibling):!1},Su=e=>{const n=e.container();return Bt(n)?n.data.charAt(e.offset()-1)===Qe||e.isAtEnd()&&ks(n.nextSibling):!1},Zu=(e,n,o)=>{var r;const u=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement(e);u.setAttribute("data-mce-caret",o?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(L().dom);const m=n.parentNode;return o?m==null||m.insertBefore(u,n):n.nextSibling?m==null||m.insertBefore(u,n.nextSibling):m==null||m.appendChild(u),u},hf=e=>Ao(e)&&e.data[0]===Qe,_d=e=>Ao(e)&&e.data[e.data.length-1]===Qe,bf=e=>{var n;const o=e.getElementsByTagName("br"),r=o[o.length-1];wu(r)&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))},yf=e=>e&&e.hasAttribute("data-mce-caret")?(bf(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,da=e=>xr(e.startContainer),ji=Qa,ng=As,vf=Qr,Ms=Bt,Zs=wl(["script","style","textarea"]),Va=wl(["img","input","textarea","hr","iframe","video","audio","object","embed"]),ti=wl(["table"]),$h=Ps,ic=e=>$h(e)?!1:Ms(e)?!Zs(e.parentNode):Va(e)||vf(e)||ti(e)||Cd(e),Ec=e=>gn(e)&&e.getAttribute("unselectable")==="true",Cd=e=>!Ec(e)&&ng(e),xu=(e,n)=>{for(let o=e.parentNode;o&&o!==n;o=o.parentNode){if(Cd(o))return!1;if(ji(o))return!0}return!0},hT=e=>Cd(e)?!Q(as(e.getElementsByTagName("*")),(n,o)=>n||ji(o),!1):!1,og=e=>Va(e)||hT(e),sg=(e,n)=>ic(e)&&xu(e,n),im=/^[ \t\r\n]*$/,lm=e=>im.test(e),mp=e=>{for(const n of e)if(!Bh(n))return!1;return!0},Uv=e=>" \f \v".indexOf(e)!==-1,jv=e=>e===` `||e==="\r",fa=(e,n)=>n=0?jv(e[n]):!1,xy=(e,n=4,o=!0,r=!0)=>{const c=Us(" ",n),u=e.replace(/\t/g,c);return Q(u,(b,k)=>Uv(k)||k===fr?b.pcIsSpace||b.str===""&&o||b.str.length===u.length-1&&r||fa(u,b.str.length+1)?{pcIsSpace:!1,str:b.str+fr}:{pcIsSpace:!0,str:b.str+" "}:{pcIsSpace:jv(k),str:b.str+k},{pcIsSpace:!1,str:""}).str},qu=(e,n)=>{const o=le.fromDom(n),r=le.fromDom(e);return Vv(r,"pre,code",Xe(Ns,o))},um=(e,n)=>Bt(e)&&lm(e.data)&&!qu(e,n),rg=e=>gn(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),Sd=(e,n)=>ic(e)&&!um(e,n)||rg(e)||ol(e),ol=Qc("data-mce-bookmark"),Ih=Qc("data-mce-bogus"),Lh=am("data-mce-bogus","all"),bT=(e,n)=>{let o=0;if(Sd(e,e))return!1;{let r=e.firstChild;if(!r)return!0;const c=new vr(r,e);do{if(n){if(Lh(r)){r=c.next(!0);continue}if(Ih(r)){r=c.next();continue}}if(Qr(r)){o++,r=c.next();continue}if(Sd(r,e))return!1;r=c.next()}while(r);return o<=1}},ma=(e,n=!0)=>bT(e.dom,n),ag="data-mce-block",dm=e=>qe(Yo(e),n=>!/[A-Z]/.test(n)),Ty=e=>dm(e).join(","),Hh=(e,n)=>Pe(n.querySelector(e))?(n.setAttribute(ag,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(ag),!1),kf=(e,n)=>{const o=Ty(e.getTransparentElements()),r=Ty(e.getBlockElements());return qe(n.querySelectorAll(o),c=>Hh(r,c))},Gu=(e,n)=>{var o;const r=n?"lastChild":"firstChild";for(let c=e[r];c;c=c[r])if(ma(le.fromDom(c))){(o=c.parentNode)===null||o===void 0||o.removeChild(c);return}},Vl=(e,n)=>{const o=document.createRange(),r=e.parentNode;if(r){o.setStartBefore(e),o.setEndBefore(n);const c=o.extractContents();Gu(c,!0),o.setStartAfter(n),o.setEndAfter(e);const u=o.extractContents();Gu(u,!1),ma(le.fromDom(c))||r.insertBefore(c,e),ma(le.fromDom(n))||r.insertBefore(n,e),ma(le.fromDom(u))||r.insertBefore(u,e),r.removeChild(e)}},cg=(e,n,o)=>{const r=e.getBlockElements(),c=le.fromDom(n),u=b=>Xs(b)in r,m=b=>Ns(b,c);ae(kd(o),b=>{Fr(b,u,m).each(k=>{const E=Rh(b,D=>u(D)&&!e.isValidChild(Xs(k),Xs(D)));if(E.length>0){const D=pd(k);ae(E,N=>{Fr(N,u,m).each(I=>{Vl(I.dom,N.dom)})}),D.each(N=>kf(e,N.dom))}})})},fm=(e,n,o)=>{ae([...o,...mm(e,n)?[n]:[]],r=>ae(La(le.fromDom(r),r.nodeName.toLowerCase()),c=>{Zv(e,c.dom)&&Jc(c)}))},Ey=(e,n)=>{const o=kf(e,n);cg(e,n,o),fm(e,n,o)},Ay=(e,n)=>{if(zy(e,n)){const o=Ty(e.getBlockElements());Hh(o,n)}},Wv=(e,n,o)=>{const r=u=>Ns(u,le.fromDom(n)),c=Zm(le.fromDom(o),r);to(c,c.length-2).filter(rc).fold(()=>Ey(e,n),u=>Ey(e,u.dom))},gp=e=>e.hasAttribute(ag),Oy=(e,n)=>Kn(e.getTransparentElements(),n),zy=(e,n)=>gn(n)&&Oy(e,n.nodeName),mm=(e,n)=>zy(e,n)&&gp(n),Zv=(e,n)=>zy(e,n)&&!gp(n),Ds=(e,n)=>n.type===1&&Oy(e,n.name)&&j(n.attr(ag)),oo=Ys().browser,gm=e=>Ie(e,rc),Dy=e=>oo.isFirefox()&&Xs(e)==="table"?gm(Ia(e)).filter(n=>Xs(n)==="caption").bind(n=>gm(Xc(n)).map(o=>{const r=o.dom.offsetTop,c=n.dom.offsetTop,u=n.dom.offsetHeight;return r<=c?-u:0})).getOr(0):0,Vh=(e,n)=>e.children&&X(e.children,n),yT=(e,n,o)=>{let r=0,c=0;const u=e.ownerDocument;if(o=o||e,n){if(o===e&&n.getBoundingClientRect&&H(le.fromDom(e),"position")==="static"){const b=n.getBoundingClientRect();return r=b.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,c=b.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:r,y:c}}let m=n;for(;m&&m!==o&&m.nodeType&&!Vh(m,o);){const b=m;r+=b.offsetLeft||0,c+=b.offsetTop||0,m=b.offsetParent}for(m=n.parentNode;m&&m!==o&&m.nodeType&&!Vh(m,o);)r-=m.scrollLeft||0,c-=m.scrollTop||0,m=m.parentNode;c+=Dy(le.fromDom(n))}return{x:r,y:c}},qv=(e,n={})=>{let o=0;const r={},c=le.fromDom(e),u=yi(c),m=K=>{n.referrerPolicy=K},b=K=>{n.contentCssCors=K},k=K=>{Vs(rp(c),K)},E=K=>{const ne=rp(c);Tc(ne,"#"+K).each(Es)},D=K=>Cs(r,K).getOrThunk(()=>({id:"mce-u"+o++,passed:[],failed:[],count:0})),N=K=>new Promise((ne,Te)=>{let ze;const Re=Et._addCacheSuffix(K),Ve=D(Re);r[Re]=Ve,Ve.count++;const St=(tt,Nt)=>{ae(tt,fn),Ve.status=Nt,Ve.passed=[],Ve.failed=[],ze&&(ze.onload=null,ze.onerror=null,ze=null)},Kt=()=>St(Ve.passed,2),rn=()=>St(Ve.failed,3);if(ne&&Ve.passed.push(ne),Te&&Ve.failed.push(Te),Ve.status===1)return;if(Ve.status===2){Kt();return}if(Ve.status===3){rn();return}Ve.status=1;const et=le.fromTag("link",u.dom);bi(et,{rel:"stylesheet",type:"text/css",id:Ve.id}),n.contentCssCors&&ir(et,"crossOrigin","anonymous"),n.referrerPolicy&&ir(et,"referrerpolicy",n.referrerPolicy),ze=et.dom,ze.onload=Kt,ze.onerror=rn,k(et),ir(et,"href",Re)}),I=K=>Promise.allSettled(ve(K,Te=>N(Te).then(st(Te)))).then(Te=>{const ze=Fe(Te,Re=>Re.status==="fulfilled");return ze.fail.length>0?Promise.reject(ve(ze.fail,Re=>Re.reason)):ve(ze.pass,Re=>Re.value)}),ee=K=>{const ne=Et._addCacheSuffix(K);Cs(r,ne).each(Te=>{--Te.count===0&&(delete r[ne],E(Te.id))})};return{load:N,loadAll:I,unload:ee,unloadAll:K=>{ae(K,ne=>{ee(ne)})},_setReferrerPolicy:m,_setContentCssCors:b}},Gv=(()=>{const e=new WeakMap;return{forElement:(o,r)=>{const u=$i(o).dom;return F.from(e.get(u)).getOrThunk(()=>{const m=qv(u,r);return e.set(u,m),m})}}})(),Ry=e=>e.nodeName.toLowerCase()==="span",Kv=(e,n)=>Pe(e)&&(Sd(e,n)||jc(le.fromDom(e))),kt=(e,n)=>{const o=new vr(e,n).prev(!1),r=new vr(e,n).next(!1),c=bn(o)||Kv(o,n),u=bn(r)||Kv(r,n);return c&&u},Ny=e=>Ry(e)&&e.getAttribute("data-mce-type")==="bookmark",vT=(e,n)=>Bt(e)&&e.data.length>0&&kt(e,n),My=e=>gn(e)?e.childNodes.length>0:!1,kT=e=>up(e)||_l(e),pm=(e,n,o)=>{var r;const c=o||n;if(gn(n)&&Ny(n))return n;const u=n.childNodes;for(let m=u.length-1;m>=0;m--)pm(e,u[m],c);if(gn(n)){const m=n.childNodes;m.length===1&&Ny(m[0])&&((r=n.parentNode)===null||r===void 0||r.insertBefore(m[0],n))}return!kT(n)&&!Sd(n,c)&&!My(n)&&!vT(n,c)&&e.remove(n),n},Yv=Et.makeMap,xd=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,By=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ig=/[<>&\"\']/g,Or=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Td={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},wf={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Tu={"<":"<",">":">","&":"&",""":'"',"'":"'"},Xv=e=>{const n=le.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},Py=(e,n)=>{const o={};if(e){const r=e.split(",");n=n||10;for(let c=0;ce.replace(n?xd:By,o=>wf[o]||o),wT=e=>(""+e).replace(ig,n=>wf[n]||n),Jv=(e,n)=>e.replace(n?xd:By,o=>o.length>1?"&#"+((o.charCodeAt(0)-55296)*1024+(o.charCodeAt(1)-56320)+65536)+";":wf[o]||"&#"+o.charCodeAt(0)+";"),Qv=(e,n,o)=>{const r=o||_f;return e.replace(n?xd:By,c=>wf[c]||r[c]||c)},bm={encodeRaw:v_,encodeAllRaw:wT,encodeNumeric:Jv,encodeNamed:Qv,getEncodeFunc:(e,n)=>{const o=Py(n)||_f,r=(m,b)=>m.replace(b?xd:By,k=>wf[k]!==void 0?wf[k]:o[k]!==void 0?o[k]:k.length>1?"&#"+((k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320)+65536)+";":"&#"+k.charCodeAt(0)+";"),c=(m,b)=>Qv(m,b,o),u=Yv(e.replace(/\+/g,","));return u.named&&u.numeric?r:u.named?n?c:Qv:u.numeric?Jv:v_},decode:e=>e.replace(Or,(n,o)=>o?(o.charAt(0).toLowerCase()==="x"?o=parseInt(o.substr(1),16):o=parseInt(o,10),o>65535?(o-=65536,String.fromCharCode(55296+(o>>10),56320+(o&1023))):Td[o]||String.fromCharCode(o)):Tu[n]||_f[n]||Xv(n))},lc=(e,n)=>(e=Et.trim(e),e?e.split(n||" "):[]),e0=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),Tn=e=>{const n=/^(~)?(.+)$/;return Dn(lc(e,","),o=>{const r=n.exec(o);if(r){const c=r[1]==="~",u=c?"span":"div",m=r[2];return[{inline:c,cloneName:u,name:m}]}else return[]})},t0=e=>{let n,o,r,c;if(n="id accesskey class dir lang style tabindex title role",o="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"){const u="a ins del canvas map";n+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",o+=" article aside details dialog figure main header footer hgroup section nav "+u,r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"}return e!=="html5-strict"&&(n+=" xml:lang",r=[r,"acronym applet basefont big font strike tt"].join(" "),o=[o,"center dir isindex noframes"].join(" "),c=[o,r].join(" ")),c=c||[o,r].join(" "),{globalAttributes:n,blockContent:o,phrasingContent:r,flowContent:c}},_T=e=>{const{globalAttributes:n,phrasingContent:o,flowContent:r}=t0(e),c={},u=(b,k="",E="")=>{const D=lc(E),N=lc(b);let I=N.length;for(;I--;){const ee=lc([n,k].join(" "));c[N[I]]={attributes:qn(ee,st({})),attributesOrder:ee,children:qn(D,st({}))}}},m=(b,k)=>{const E=lc(b),D=lc(k);let N=E.length;for(;N--;){const I=c[E[N]];for(let ee=0,oe=D.length;ee{u(E,"",o)}),ae(lc("center dir isindex noframes"),E=>{u(E,"",r)})),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),u("dd div","",r),u("address dt caption","",e==="html4"?o:r),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),u("blockquote","cite",r),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",r),u("dl","","dt dd"),u("a","href target rel media hreflang type",e==="html4"?o:r),u("q","cite",o),u("ins del","cite datetime",r),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",r),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),u("param","name value"),u("map","name",[r,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",r),u("th","colspan rowspan headers scope abbr",r),u("form","accept-charset action autocomplete enctype method name novalidate target",r),u("fieldset","disabled form name",[r,"legend"].join(" ")),u("label","form for",o),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?r:o),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[r,"li"].join(" ")),u("noscript","",r),e!=="html4"&&(u("wbr"),u("ruby","",[o,"rt rp"].join(" ")),u("figcaption","",r),u("mark rt rp summary bdi","",o),u("canvas","width height",r),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[o,"option"].join(" ")),u("article section nav aside main header footer","",r),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[r,"figcaption"].join(" ")),u("time","datetime",o),u("dialog","open",r),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",o),u("progress","value max",o),u("meter","value min max low high optimum",o),u("details","open",[r,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),e!=="html5-strict"&&(m("script","language xml:space"),m("style","xml:space"),m("object","declare classid code codebase codetype archive standby align border hspace vspace"),m("embed","align name hspace vspace"),m("param","valuetype type"),m("a","charset name rev shape coords"),m("br","clear"),m("applet","codebase archive code object alt name width height align hspace vspace"),m("img","name longdesc align border hspace vspace"),m("iframe","longdesc frameborder marginwidth marginheight scrolling align"),m("font basefont","size color face"),m("input","usemap align"),m("select"),m("textarea"),m("h1 h2 h3 h4 h5 h6 div p legend caption","align"),m("ul","type compact"),m("li","type"),m("ol dl menu dir","compact"),m("pre","width xml:space"),m("hr","align noshade size width"),m("isindex","prompt"),m("table","summary width frame rules cellspacing cellpadding align bgcolor"),m("col","width align char charoff valign"),m("colgroup","width align char charoff valign"),m("thead","align char charoff valign"),m("tr","align char charoff valign bgcolor"),m("th","axis align char charoff valign nowrap bgcolor width height"),m("form","accept"),m("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),m("tfoot","align char charoff valign"),m("tbody","align char charoff valign"),m("area","nohref"),m("body","background bgcolor text link vlink alink")),e!=="html4"&&(m("input button select textarea","autofocus"),m("input textarea","placeholder"),m("a","download"),m("link script img","crossorigin"),m("img","loading"),m("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&ae([c.video,c.audio],b=>{delete b.children.audio,delete b.children.video}),ae(lc("a form meter progress dfn"),b=>{c[b]&&delete c[b].children[b]}),delete c.caption.children.table,delete c.script,c},n0=e=>e==="-"?"remove":"add",k_=e=>{const n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return Dn(lc(e,","),o=>{const r=n.exec(o);if(r){const c=r[1],u=c?n0(c):"replace",m=r[2],b=lc(r[3],"|");return[{operation:u,name:m,validChildren:b}]}else return[]})},CT=(e,n)=>{const o=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,r=/[*?+]/,{attributes:c,attributesOrder:u}=n;return ae(lc(e,"|"),m=>{const b=o.exec(m);if(b){const k={},E=b[1],D=b[2].replace(/[\\:]:/g,":"),N=b[3],I=b[4];if(E==="!"&&(n.attributesRequired=n.attributesRequired||[],n.attributesRequired.push(D),k.required=!0),E==="-"){delete c[D],u.splice(Et.inArray(u,D),1);return}if(N&&(N==="="?(n.attributesDefault=n.attributesDefault||[],n.attributesDefault.push({name:D,value:I}),k.defaultValue=I):N==="~"?(n.attributesForced=n.attributesForced||[],n.attributesForced.push({name:D,value:I}),k.forcedValue=I):N==="<"&&(k.validValues=Et.makeMap(I,"?"))),r.test(D)){const ee=k;n.attributePatterns=n.attributePatterns||[],ee.pattern=e0(D),n.attributePatterns.push(ee)}else c[D]||u.push(D),c[D]=k}})},Cf=(e,n)=>{Tt(e.attributes,(o,r)=>{n.attributes[r]=o}),n.attributesOrder.push(...e.attributesOrder)},ym=(e,n)=>{const o=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return Dn(lc(n,","),r=>{const c=o.exec(r);if(c){const u=c[1],m=c[2],b=c[3],k=c[4],E=c[5],D={attributes:{},attributesOrder:[]};if(e.each(N=>Cf(N,D)),u==="#"?D.paddEmpty=!0:u==="-"&&(D.removeEmpty=!0),k==="!"&&(D.removeEmptyAttrs=!0),E&&CT(E,D),b&&(D.outputName=m),m==="@")if(e.isNone())e=F.some(D);else return[];return[b?{name:m,element:D,aliasName:b}:{name:m,element:D}]}else return[]})},Sf={},Uh=Et.makeMap,xl=Et.each,Fy=Et.extend,w_=Et.explode,pp=(e,n={})=>{const o=Uh(e," ",Uh(e.toUpperCase()," "));return Fy(o,n)},Ul=e=>pp("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),o0=(e,n)=>{if(e){const o={};return j(e)&&(e={"*":e}),xl(e,(r,c)=>{o[c]=o[c.toUpperCase()]=n==="map"?Uh(r,/[, ]/):w_(r,/[, ]/)}),o}else return},Ku=(e={})=>{var n;const o={},r={};let c=[];const u={},m={},b=(Mn,ss,ur)=>{const Nr=e[Mn];if(Nr)return Uh(Nr,/[, ]/,Uh(Nr.toUpperCase(),/[, ]/));{let gr=Sf[Mn];return gr||(gr=pp(ss,ur),Sf[Mn]=gr),gr}},k=(n=e.schema)!==null&&n!==void 0?n:"html5",E=_T(k);e.verify_html===!1&&(e.valid_elements="*[*]");const D=o0(e.valid_styles),N=o0(e.invalid_styles,"map"),I=o0(e.valid_classes,"map"),ee=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),oe=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),K=b("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),ne=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Te="td th iframe video audio object script code",ze=b("non_empty_elements",Te+" pre",K),Re=b("move_caret_before_on_enter_elements",Te+" table",K),Ve=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),St=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",Ve),Kt=b("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),rn=b("transparent_elements","a ins del canvas map");xl("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),Mn=>{m[Mn]=new RegExp("]*>","gi")});const et=Mn=>{const ss=F.from(o["@"]),ur=/[*?+]/;ae(ym(ss,Mn??""),({name:Nr,element:gr,aliasName:Pc})=>{if(Pc&&(o[Pc]=gr),ur.test(Nr)){const fd=gr;fd.pattern=e0(Nr),c.push(fd)}else o[Nr]=gr})},tt=Mn=>{c=[],ae(Yo(o),ss=>{delete o[ss]}),et(Mn)},Nt=Mn=>{delete Sf.text_block_elements,delete Sf.block_elements,ae(Tn(Mn??""),({inline:ss,name:ur,cloneName:Nr})=>{if(r[ur]=r[Nr],u[ur]=Nr,ze[ur.toUpperCase()]={},ze[ur]={},ss||(St[ur.toUpperCase()]={},St[ur]={}),!o[ur]){let gr=o[Nr];gr=Fy({},gr),delete gr.removeEmptyAttrs,delete gr.removeEmpty,o[ur]=gr}Tt(r,(gr,Pc)=>{gr[Nr]&&(r[Pc]=gr=Fy({},r[Pc]),gr[ur]=gr[Nr])})})},jn=Mn=>{ae(k_(Mn??""),({operation:ss,name:ur,validChildren:Nr})=>{const gr=ss==="replace"?{"#comment":{}}:r[ur];ae(Nr,Pc=>{ss==="remove"?delete gr[Pc]:gr[Pc]={}}),r[ur]=gr})},ro=Mn=>{const ss=o[Mn];if(ss)return ss;let ur=c.length;for(;ur--;){const Nr=c[ur];if(Nr.pattern.test(Mn))return Nr}};e.valid_elements?(tt(e.valid_elements),xl(E,(Mn,ss)=>{r[ss]=Mn.children})):(xl(E,(Mn,ss)=>{o[ss]={attributes:Mn.attributes,attributesOrder:Mn.attributesOrder},r[ss]=Mn.children}),xl(lc("strong/b em/i"),Mn=>{const ss=lc(Mn,"/");o[ss[1]].outputName=ss[0]}),xl(Kt,(Mn,ss)=>{o[ss]&&(e.padd_empty_block_inline_children&&(o[ss].paddInEmptyBlock=!0),o[ss].removeEmpty=!0)}),xl(lc("ol ul blockquote a table tbody"),Mn=>{o[Mn]&&(o[Mn].removeEmpty=!0)}),xl(lc("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),Mn=>{o[Mn]&&(o[Mn].paddEmpty=!0)}),xl(lc("span"),Mn=>{o[Mn].removeEmptyAttrs=!0})),Nt(e.custom_elements),jn(e.valid_children),et(e.extended_valid_elements),jn("+ol[ul|ol],+ul[ul|ol]"),xl({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(Mn,ss)=>{o[ss]&&(o[ss].parentsRequired=lc(Mn))}),e.invalid_elements&&xl(w_(e.invalid_elements),Mn=>{o[Mn]&&delete o[Mn]}),ro("span")||et("span[!data-mce-type|*]");const Uo=st(D),ls=st(N),tr=st(I),Ss=st(ne),ca=st(St),fi=st(Ve),hc=st(Kt),Lt=st(Object.seal(K)),Hn=st(oe),Bs=st(ze),Os=st(Re),Vn=st(ee),Wn=st(rn),Vt=st(Object.seal(m)),Co=(Mn,ss)=>{const ur=r[Mn.toLowerCase()];return!!(ur&&ur[ss.toLowerCase()])},ms=(Mn,ss)=>{const ur=ro(Mn);if(ur)if(ss){if(ur.attributes[ss])return!0;const Nr=ur.attributePatterns;if(Nr){let gr=Nr.length;for(;gr--;)if(Nr[gr].pattern.test(ss))return!0}}else return!0;return!1},nr=st(u);return{type:k,children:r,elements:o,getValidStyles:Uo,getValidClasses:tr,getBlockElements:ca,getInvalidStyles:ls,getVoidElements:Lt,getTextBlockElements:fi,getTextInlineElements:hc,getBoolAttrs:Ss,getElementRule:ro,getSelfClosingElements:Hn,getNonEmptyElements:Bs,getMoveCaretBeforeOnEnterElements:Os,getWhitespaceElements:Vn,getTransparentElements:Wn,getSpecialElements:Vt,isValidChild:Co,isValid:ms,getCustomElements:nr,addValidElements:et,setValidElements:tt,addCustomElements:Nt,addValidChildren:jn}},$y=(e={},n)=>{const o=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,r=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={};let m,b;const k=vt;n&&(m=n.getValidStyles(),b=n.getInvalidStyles());const E=(`\\" \\' \\; \\: ; : `+k).split(" ");for(let N=0;N{const I={};let ee=!1;const oe=e.url_converter,K=e.url_converter_scope||D,ne=(et,tt,Nt)=>{const jn=I[et+"-top"+tt];if(!jn)return;const ro=I[et+"-right"+tt];if(!ro)return;const Uo=I[et+"-bottom"+tt];if(!Uo)return;const ls=I[et+"-left"+tt];if(!ls)return;const tr=[jn,ro,Uo,ls];let Ss=tr.length-1;for(;Ss--&&tr[Ss]===tr[Ss+1];);Ss>-1&&Nt||(I[et+tt]=Ss===-1?tr[0]:tr.join(" "),delete I[et+"-top"+tt],delete I[et+"-right"+tt],delete I[et+"-bottom"+tt],delete I[et+"-left"+tt])},Te=et=>{const tt=I[et];if(!tt)return;const Nt=tt.indexOf(",")>-1?[tt]:tt.split(" ");let jn=Nt.length;for(;jn--;)if(Nt[jn]!==Nt[0])return!1;return I[et]=Nt[0],!0},ze=(et,tt,Nt,jn)=>{Te(tt)&&Te(Nt)&&Te(jn)&&(I[et]=I[tt]+" "+I[Nt]+" "+I[jn],delete I[tt],delete I[Nt],delete I[jn])},Re=et=>(ee=!0,u[et]),Ve=(et,tt)=>(ee&&(et=et.replace(/\uFEFF[0-9]/g,Nt=>u[Nt])),tt||(et=et.replace(/\\([\'\";:])/g,"$1")),et),St=et=>String.fromCharCode(parseInt(et.slice(1),16)),Kt=et=>et.replace(/\\[0-9a-f]+/gi,St),rn=(et,tt,Nt,jn,ro,Uo)=>{if(ro=ro||Uo,ro)return ro=Ve(ro),"'"+ro.replace(/\'/g,"\\'")+"'";if(tt=Ve(tt||Nt||jn||""),!e.allow_script_urls){const ls=tt.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ls)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(ls))return""}return oe&&(tt=oe.call(K,tt,"style")),"url('"+tt.replace(/\'/g,"\\'")+"')"};if(N){N=N.replace(/[\u0000-\u001F]/g,""),N=N.replace(/\\[\"\';:\uFEFF]/g,Re).replace(/\"[^\"]+\"|\'[^\']+\'/g,tt=>tt.replace(/[;:]/g,Re));let et;for(;et=r.exec(N);){r.lastIndex=et.index+et[0].length;let tt=et[1].replace(c,"").toLowerCase(),Nt=et[2].replace(c,"");if(tt&&Nt){if(tt=Kt(tt),Nt=Kt(Nt),tt.indexOf(k)!==-1||tt.indexOf('"')!==-1||!e.allow_script_urls&&(tt==="behavior"||/expression\s*\(|\/\*|\*\//.test(Nt)))continue;tt==="font-weight"&&Nt==="700"?Nt="bold":(tt==="color"||tt==="background-color")&&(Nt=Nt.toLowerCase()),Nt=Nt.replace(o,rn),I[tt]=ee?Ve(Nt,!0):Nt}}ne("border","",!0),ne("border","-width"),ne("border","-color"),ne("border","-style"),ne("padding",""),ne("margin",""),ze("border","border-width","border-style","border-color"),I.border==="medium none"&&delete I.border,I["border-image"]==="none"&&delete I["border-image"]}return I},serialize:(N,I)=>{let ee="";const oe=(ne,Te)=>{const ze=Te[ne];if(ze)for(let Re=0,Ve=ze.length;Re0?" ":"")+St+": "+Kt+";")}},K=(ne,Te)=>{if(!b||!Te)return!0;let ze=b["*"];return ze&&ze[ne]?!1:(ze=b[Te],!(ze&&ze[ne]))};return I&&m?(oe("*",m),oe(I,m)):Tt(N,(ne,Te)=>{ne&&K(Te,I)&&(ee+=(ee.length>0?" ":"")+Te+": "+ne+";")}),ee}};return D},ST={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},__=e=>e instanceof Event||ie(e.initEvent),vm=e=>e.isDefaultPrevented===lt||e.isDefaultPrevented===De,Eu=e=>Zt(e.preventDefault)||__(e),Wi=(e,n)=>{const o=n??{};for(const r in e)Kn(ST,r)||(o[r]=e[r]);return Pe(e.composedPath)&&(o.composedPath=()=>e.composedPath()),Pe(e.getModifierState)&&(o.getModifierState=r=>e.getModifierState(r)),o},Iy=(e,n,o,r)=>{var c;const u=Wi(n,r);return u.type=e,Zt(u.target)&&(u.target=(c=u.srcElement)!==null&&c!==void 0?c:o),Eu(n)&&(u.preventDefault=()=>{u.defaultPrevented=!0,u.isDefaultPrevented=lt,ie(n.preventDefault)&&n.preventDefault()},u.stopPropagation=()=>{u.cancelBubble=!0,u.isPropagationStopped=lt,ie(n.stopPropagation)&&n.stopPropagation()},u.stopImmediatePropagation=()=>{u.isImmediatePropagationStopped=lt,u.stopPropagation()},vm(u)||(u.isDefaultPrevented=u.defaultPrevented===!0?lt:De,u.isPropagationStopped=u.cancelBubble===!0?lt:De,u.isImmediatePropagationStopped=De)),u},xT="mce-data-",TT=/^(?:mouse|contextmenu)|click/,Ly=(e,n,o,r)=>{e.addEventListener(n,o,r||!1)},sl=(e,n,o,r)=>{e.removeEventListener(n,o,r||!1)},Hy=e=>Pe(e)&&TT.test(e.type),hp=(e,n)=>{const o=Iy(e.type,e,document,n);if(Hy(e)&&bn(e.pageX)&&!bn(e.clientX)){const r=o.target.ownerDocument||document,c=r.documentElement,u=r.body,m=o;m.pageX=e.clientX+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),m.pageY=e.clientY+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}return o},C_=(e,n,o)=>{const r=e.document,c={type:"ready"};if(o.domLoaded){n(c);return}const u=()=>r.readyState==="complete"||r.readyState==="interactive"&&r.body,m=()=>{sl(e,"DOMContentLoaded",m),sl(e,"load",m),o.domLoaded||(o.domLoaded=!0,n(c)),e=null};u()?m():Ly(e,"DOMContentLoaded",m),o.domLoaded||Ly(e,"load",m)};class Ed{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=xT+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,o,r,c){const u=this;let m;const b=window,k=I=>{u.executeHandlers(hp(I||b.event),E)};if(!n||Bt(n)||ju(n))return r;let E;n[u.expando]?E=n[u.expando]:(E=u.count++,n[u.expando]=E,u.events[E]={}),c=c||n;const D=o.split(" ");let N=D.length;for(;N--;){let I=D[N],ee=k,oe=!1,K=!1;if(I==="DOMContentLoaded"&&(I="ready"),u.domLoaded&&I==="ready"&&n.readyState==="complete"){r.call(c,hp({type:I}));continue}!u.hasFocusIn&&(I==="focusin"||I==="focusout")&&(oe=!0,K=I==="focusin"?"focus":"blur",ee=ne=>{const Te=hp(ne||b.event);Te.type=Te.type==="focus"?"focusin":"focusout",u.executeHandlers(Te,E)}),m=u.events[E][I],m?I==="ready"&&u.domLoaded?r(hp({type:I})):m.push({func:r,scope:c}):(u.events[E][I]=m=[{func:r,scope:c}],m.fakeName=K,m.capture=oe,m.nativeHandler=ee,I==="ready"?C_(n,ee,u):Ly(n,K||I,ee,oe))}return n=m=null,r}unbind(n,o,r){if(!n||Bt(n)||ju(n))return this;const c=n[this.expando];if(c){let u=this.events[c];if(o){const m=o.split(" ");let b=m.length;for(;b--;){const k=m[b],E=u[k];if(E){if(r){let D=E.length;for(;D--;)if(E[D].func===r){const N=E.nativeHandler,I=E.fakeName,ee=E.capture,oe=E.slice(0,D).concat(E.slice(D+1));oe.nativeHandler=N,oe.fakeName=I,oe.capture=ee,u[k]=oe}}(!r||E.length===0)&&(delete u[k],sl(n,E.fakeName||k,E.nativeHandler,E.capture))}}}else Tt(u,(m,b)=>{sl(n,m.fakeName||b,m.nativeHandler,m.capture)}),u={};for(const m in u)if(Kn(u,m))return this;delete this.events[c];try{delete n[this.expando]}catch{n[this.expando]=null}}return this}fire(n,o,r){return this.dispatch(n,o,r)}dispatch(n,o,r){if(!n||Bt(n)||ju(n))return this;const c=hp({type:o,target:n},r);do{const u=n[this.expando];u&&this.executeHandlers(c,u),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!c.isPropagationStopped());return this}clean(n){if(!n||Bt(n)||ju(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const o=n.getElementsByTagName("*");let r=o.length;for(;r--;)n=o[r],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,o){const r=this.events[o],c=r&&r[n.type];if(c)for(let u=0,m=c.length;u{Zt(o)||o===""?Yr(e,n):ir(e,n,o)},jh=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),bp=(e,n)=>{let o=0;if(e)for(let r=e.nodeType,c=e.previousSibling;c;c=c.previousSibling){const u=c.nodeType;n&&Bt(c)&&(u===r||!c.data.length)||(o++,r=u)}return o},a0=(e,n)=>{const o=Fa(n,"style"),r=e.serialize(e.parse(o),Xs(n));km(n,lg,r)},c0=(e,n)=>Ro(e)?Kn(r0,n)?e+"":e+"px":e,x_=(e,n,o)=>{const r=jh(n);Zt(o)||o===""?co(e,r):x(e,r,c0(o,r))},ET=(e,n,o)=>{const r=n.keep_values,c={set:(m,b,k)=>{const E=le.fromDom(m);ie(n.url_converter)&&Pe(b)&&(b=n.url_converter.call(n.url_converter_scope||o(),String(b),k,m));const D="data-mce-"+k;km(E,D,b),km(E,k,b)},get:(m,b)=>{const k=le.fromDom(m);return Fa(k,"data-mce-"+b)||Fa(k,b)}},u={style:{set:(m,b)=>{const k=le.fromDom(m);r&&km(k,lg,b),Yr(k,"style"),j(b)&&R(k,e.parse(b))},get:m=>{const b=le.fromDom(m),k=Fa(b,lg)||Fa(b,"style");return e.serialize(e.parse(k),Xs(b))}}};return r&&(u.href=u.src=c),u},qs=(e,n={})=>{const o={},r=window,c={};let u=0;const m=!0,b=!0,k=Gv.forElement(le.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),E=[],D=n.schema?n.schema:Ku({}),N=$y({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),I=n.ownEvents?new Ed:Ed.Event,ee=D.getBlockElements(),oe=je=>j(je)?Kn(ee,je):gn(je)&&(Kn(ee,je.nodeName)||mm(D,je)),K=je=>je&&e&&j(je)?e.getElementById(je):je,ne=je=>{const Ze=K(je);return Pe(Ze)?le.fromDom(Ze):null},Te=(je,Ze,Ht="")=>{let Ft;const ao=ne(je);if(Pe(ao)&&rc(ao)){const zs=gy[Ze];zs&&zs.get?Ft=zs.get(ao.dom,Ze):Ft=Fa(ao,Ze)}return Pe(Ft)?Ft:Ht},ze=je=>{const Ze=K(je);return Zt(Ze)?[]:Ze.attributes},Re=(je,Ze,Ht)=>{Hn(je,Ft=>{if(gn(Ft)){const ao=le.fromDom(Ft),zs=Ht===""?null:Ht,Hr=Fa(ao,Ze),Fc=gy[Ze];Fc&&Fc.set?Fc.set(ao.dom,zs,Ze):km(ao,Ze,zs),Hr!==zs&&n.onSetAttrib&&n.onSetAttrib({attrElm:ao.dom,attrName:Ze,attrValue:zs})}})},Ve=(je,Ze)=>je.cloneNode(Ze),St=()=>n.root_element||e.body,Kt=je=>{const Ze=Dh(je);return{x:Ze.x,y:Ze.y,w:Ze.width,h:Ze.height}},rn=(je,Ze)=>yT(e.body,K(je),Ze),et=(je,Ze,Ht)=>{Hn(je,Ft=>{const ao=le.fromDom(Ft);x_(ao,Ze,Ht),n.update_styles&&a0(N,ao)})},tt=(je,Ze)=>{Hn(je,Ht=>{const Ft=le.fromDom(Ht);Tt(Ze,(ao,zs)=>{x_(Ft,zs,ao)}),n.update_styles&&a0(N,Ft)})},Nt=(je,Ze,Ht)=>{const Ft=K(je);if(!(Zt(Ft)||!gn(Ft)))return Ht?H(le.fromDom(Ft),jh(Ze)):(Ze=Ze.replace(/-(\D)/g,(ao,zs)=>zs.toUpperCase()),Ze==="float"&&(Ze="cssFloat"),Ft.style?Ft.style[Ze]:void 0)},jn=je=>{const Ze=K(je);if(!Ze)return{w:0,h:0};let Ht=Nt(Ze,"width"),Ft=Nt(Ze,"height");return(!Ht||Ht.indexOf("px")===-1)&&(Ht="0"),(!Ft||Ft.indexOf("px")===-1)&&(Ft="0"),{w:parseInt(Ht,10)||Ze.offsetWidth||Ze.clientWidth,h:parseInt(Ft,10)||Ze.offsetHeight||Ze.clientHeight}},ro=je=>{const Ze=K(je),Ht=rn(Ze),Ft=jn(Ze);return{x:Ht.x,y:Ht.y,w:Ft.w,h:Ft.h}},Uo=(je,Ze)=>{if(!je)return!1;const Ht=gt(je)?je:[je];return be(Ht,Ft=>Fi(le.fromDom(Ft),Ze))},ls=(je,Ze,Ht,Ft)=>{const ao=[];let zs=K(je);Ft=Ft===void 0;const Hr=Ht||(St().nodeName!=="BODY"?St().parentNode:null);if(j(Ze))if(Ze==="*")Ze=gn;else{const Fc=Ze;Ze=$c=>Uo($c,Fc)}for(;zs&&!(zs===Hr||Zt(zs.nodeType)||_l(zs)||up(zs));){if(!Ze||Ze(zs))if(Ft)ao.push(zs);else return[zs];zs=zs.parentNode}return Ft?ao:null},tr=(je,Ze,Ht)=>{const Ft=ls(je,Ze,Ht,!1);return Ft&&Ft.length>0?Ft[0]:null},Ss=(je,Ze,Ht)=>{let Ft=Ze;if(je){j(Ze)&&(Ft=ao=>Uo(ao,Ze));for(let ao=je[Ht];ao;ao=ao[Ht])if(ie(Ft)&&Ft(ao))return ao}return null},ca=(je,Ze)=>Ss(je,Ze,"nextSibling"),fi=(je,Ze)=>Ss(je,Ze,"previousSibling"),hc=je=>ie(je.querySelectorAll),Lt=(je,Ze)=>{var Ht,Ft;const ao=(Ft=(Ht=K(Ze))!==null&&Ht!==void 0?Ht:n.root_element)!==null&&Ft!==void 0?Ft:e;return hc(ao)?as(ao.querySelectorAll(je)):[]},Hn=function(je,Ze,Ht){const Ft=Ht??this;if(gt(je)){const ao=[];return s0(je,(zs,Hr)=>{const Fc=K(zs);Fc&&ao.push(Ze.call(Ft,Fc,Hr))}),ao}else{const ao=K(je);return ao?Ze.call(Ft,ao):!1}},Bs=(je,Ze)=>{Hn(je,Ht=>{Tt(Ze,(Ft,ao)=>{Re(Ht,ao,Ft)})})},Os=(je,Ze)=>{Hn(je,Ht=>{const Ft=le.fromDom(Ht);uf(Ft,Ze)})},Vn=(je,Ze,Ht,Ft,ao)=>Hn(je,zs=>{const Hr=j(Ze)?e.createElement(Ze):Ze;return Pe(Ht)&&Bs(Hr,Ht),Ft&&(!j(Ft)&&Ft.nodeType?Hr.appendChild(Ft):j(Ft)&&Os(Hr,Ft)),ao?Hr:zs.appendChild(Hr)}),Wn=(je,Ze,Ht)=>Vn(e.createElement(je),je,Ze,Ht,!0),Vt=bm.decode,Co=bm.encodeAllRaw,ms=(je,Ze,Ht="")=>{let Ft="<"+je;for(const ao in Ze)ar(Ze,ao)&&(Ft+=" "+ao+'="'+Co(Ze[ao])+'"');return os(Ht)&&Kn(D.getVoidElements(),je)?Ft+" />":Ft+">"+Ht+""},nr=je=>{const Ze=e.createElement("div"),Ht=e.createDocumentFragment();Ht.appendChild(Ze),je&&(Ze.innerHTML=je);let Ft;for(;Ft=Ze.firstChild;)Ht.appendChild(Ft);return Ht.removeChild(Ze),Ht},Mn=(je,Ze)=>Hn(je,Ht=>{const Ft=le.fromDom(Ht);return Ze&&ae(Ia(Ft),ao=>{Ya(ao)&&ao.dom.length===0?Es(ao):Xn(Ft,ao)}),Es(Ft),Ft.dom}),ss=je=>Hn(je,Ze=>{const Ht=Ze.attributes;for(let Ft=Ht.length-1;Ft>=0;Ft--)Ze.removeAttributeNode(Ht.item(Ft))}),ur=je=>N.parse(je),Nr=(je,Ze)=>N.serialize(je,Ze),gr=je=>{if(Jd!==qs.DOM&&e===document){if(o[je])return;o[je]=!0}let Ze=e.getElementById("mceDefaultStyles");if(!Ze){Ze=e.createElement("style"),Ze.id="mceDefaultStyles",Ze.type="text/css";const Ht=e.head;Ht.firstChild?Ht.insertBefore(Ze,Ht.firstChild):Ht.appendChild(Ze)}Ze.styleSheet?Ze.styleSheet.cssText+=je:Ze.appendChild(e.createTextNode(je))},Pc=je=>{je||(je=""),ae(je.split(","),Ze=>{c[Ze]=!0,k.load(Ze).catch(Oe)})},fd=(je,Ze,Ht)=>{Hn(je,Ft=>{if(gn(Ft)){const ao=le.fromDom(Ft),zs=Ze.split(" ");ae(zs,Hr=>{Pe(Ht)?(Ht?Lu:Ll)(ao,Hr):Um(ao,Hr)})}})},iu=(je,Ze)=>{fd(je,Ze,!0)},Yd=(je,Ze)=>{fd(je,Ze,!1)},Jf=(je,Ze)=>{const Ht=ne(je),Ft=Ze.split(" ");return Pe(Ht)&&Rn(Ft,ao=>Hl(Ht,ao))},Kg=je=>{Hn(je,Ze=>co(le.fromDom(Ze),"display"))},kh=je=>{Hn(je,Ze=>x(le.fromDom(Ze),"display","none"))},Yg=je=>{const Ze=ne(je);return Pe(Ze)&&Ws(me(Ze,"display"),"none")},a_=je=>(je||"mce_")+u++,iT=je=>{const Ze=ne(je);return Pe(Ze)?gn(Ze.dom)?Ze.dom.outerHTML:xh(Ze):""},c_=(je,Ze)=>{Hn(je,Ht=>{gn(Ht)&&(Ht.outerHTML=Ze)})},i_=(je,Ze)=>{const Ht=K(Ze);return Hn(je,Ft=>{const ao=Ht==null?void 0:Ht.parentNode,zs=Ht==null?void 0:Ht.nextSibling;return ao&&(zs?ao.insertBefore(Ft,zs):ao.appendChild(Ft)),Ft})},l_=(je,Ze,Ht)=>Hn(Ze,Ft=>{var ao;const zs=gt(Ze)?je.cloneNode(!0):je;return Ht&&s0(S_(Ft.childNodes),Hr=>{zs.appendChild(Hr)}),(ao=Ft.parentNode)===null||ao===void 0||ao.replaceChild(zs,Ft),Ft}),u_=(je,Ze)=>{if(je.nodeName!==Ze.toUpperCase()){const Ht=Wn(Ze);return s0(ze(je),Ft=>{Re(Ht,Ft.nodeName,Te(je,Ft.nodeName))}),l_(Ht,je,!0),Ht}else return je},d_=(je,Ze)=>{let Ht=je;for(;Ht;){let Ft=Ze;for(;Ft&&Ht!==Ft;)Ft=Ft.parentNode;if(Ht===Ft)break;Ht=Ht.parentNode}return!Ht&&je.ownerDocument?je.ownerDocument.documentElement:Ht},Xd=je=>{if(gn(je)){const Ze=je.nodeName.toLowerCase()==="a"&&!Te(je,"href")&&Te(je,"id");if(Te(je,"name")||Te(je,"data-mce-bookmark")||Ze)return!0}return!1},my=(je,Ze,Ht)=>{let Ft=0;if(Xd(je))return!1;const ao=je.firstChild;if(ao){const zs=new vr(ao,je),Hr=D?D.getWhitespaceElements():{},Fc=Ze||(D?D.getNonEmptyElements():null);let $c=ao;do{if(gn($c)){const p_=$c.getAttribute("data-mce-bogus");if(p_){$c=zs.next(p_==="all");continue}const $v=$c.nodeName.toLowerCase();if(Fc&&Fc[$v]){if($v==="br"){Ft++,$c=zs.next();continue}return!1}if(Xd($c))return!1}if(ju($c)||Bt($c)&&!lm($c.data)&&(!(Ht!=null&&Ht.includeZwsp)||!mp($c.data))||Bt($c)&&$c.parentNode&&Hr[$c.parentNode.nodeName]&&lm($c.data))return!1;$c=zs.next()}while($c)}return Ft<=1},wh=()=>e.createRange(),Xg=(je,Ze,Ht)=>{let Ft=wh(),ao,zs;if(je&&Ze&&je.parentNode&&Ze.parentNode){const Hr=je.parentNode;return Ft.setStart(Hr,bp(je)),Ft.setEnd(Ze.parentNode,bp(Ze)),ao=Ft.extractContents(),Ft=wh(),Ft.setStart(Ze.parentNode,bp(Ze)+1),Ft.setEnd(Hr,bp(je)+1),zs=Ft.extractContents(),Hr.insertBefore(pm(Jd,ao),je),Ht?Hr.insertBefore(Ht,je):Hr.insertBefore(Ze,je),Hr.insertBefore(pm(Jd,zs),je),Mn(je),Ht||Ze}else return},f_=(je,Ze,Ht,Ft)=>{if(gt(je)){let ao=je.length;const zs=[];for(;ao--;)zs[ao]=f_(je[ao],Ze,Ht,Ft);return zs}else return n.collect&&(je===e||je===r)&&E.push([je,Ze,Ht,Ft]),I.bind(je,Ze,Ht,Ft||Jd)},m_=(je,Ze,Ht)=>{if(gt(je)){let Ft=je.length;const ao=[];for(;Ft--;)ao[Ft]=m_(je[Ft],Ze,Ht);return ao}else{if(E.length>0&&(je===e||je===r)){let Ft=E.length;for(;Ft--;){const[ao,zs,Hr]=E[Ft];je===ao&&(!Ze||Ze===zs)&&(!Ht||Ht===Hr)&&I.unbind(ao,zs,Hr)}}return I.unbind(je,Ze,Ht)}},Qf=(je,Ze,Ht)=>I.dispatch(je,Ze,Ht),Jg=(je,Ze,Ht)=>I.dispatch(je,Ze,Ht),g_=je=>{if(je&&gn(je)){const Ze=je.getAttribute("data-mce-contenteditable");return Ze&&Ze!=="inherit"?Ze:je.contentEditable!=="inherit"?je.contentEditable:null}else return null},Jd={doc:e,settings:n,win:r,files:c,stdMode:m,boxModel:b,styleSheetLoader:k,boundEvents:E,styles:N,schema:D,events:I,isBlock:oe,root:null,clone:Ve,getRoot:St,getViewPort:Kt,getRect:ro,getSize:jn,getParent:tr,getParents:ls,get:K,getNext:ca,getPrev:fi,select:Lt,is:Uo,add:Vn,create:Wn,createHTML:ms,createFragment:nr,remove:Mn,setStyle:et,getStyle:Nt,setStyles:tt,removeAllAttribs:ss,setAttrib:Re,setAttribs:Bs,getAttrib:Te,getPos:rn,parseStyle:ur,serializeStyle:Nr,addStyle:gr,loadCSS:Pc,addClass:iu,removeClass:Yd,hasClass:Jf,toggleClass:fd,show:Kg,hide:kh,isHidden:Yg,uniqueId:a_,setHTML:Os,getOuterHTML:iT,setOuterHTML:c_,decode:Vt,encode:Co,insertAfter:i_,replace:l_,rename:u_,findCommonAncestor:d_,run:Hn,getAttribs:ze,isEmpty:my,createRng:wh,nodeIndex:bp,split:Xg,bind:f_,unbind:m_,fire:Jg,dispatch:Qf,getContentEditable:g_,getContentEditableParent:je=>{const Ze=St();let Ht=null;for(let Ft=je;Ft&&Ft!==Ze&&(Ht=g_(Ft),Ht===null);Ft=Ft.parentNode);return Ht},isEditable:je=>{if(Pe(je)){const Ze=gn(je)?je:je.parentElement;return Pe(Ze)&&Fo(le.fromDom(Ze))}else return!1},destroy:()=>{if(E.length>0){let je=E.length;for(;je--;){const[Ze,Ht,Ft]=E[je];I.unbind(Ze,Ht,Ft)}}Tt(c,(je,Ze)=>{k.unload(Ze),delete c[Ze]})},isChildOf:(je,Ze)=>je===Ze||Ze.contains(je),dumpRng:je=>"startContainer: "+je.startContainer.nodeName+", startOffset: "+je.startOffset+", endContainer: "+je.endContainer.nodeName+", endOffset: "+je.endOffset},gy=ET(N,n,st(Jd));return Jd};qs.DOM=qs(document),qs.nodeIndex=bp;const i0=qs.DOM,T_=0,E_=1,Wh=2,AT=3;class Ad{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((o,r)=>{const c=i0;let u;const m=()=>{c.remove(E),u&&(u.onerror=u.onload=u=null)},b=()=>{m(),o()},k=()=>{m(),r("Failed to load script: "+n)},E=c.uniqueId();u=document.createElement("script"),u.id=E,u.type="text/javascript",u.src=Et._addCacheSuffix(n),this.settings.referrerPolicy&&c.setAttrib(u,"referrerpolicy",this.settings.referrerPolicy),u.onload=b,u.onerror=k,(document.getElementsByTagName("head")[0]||document.body).appendChild(u)})}isDone(n){return this.states[n]===Wh}markDone(n){this.states[n]=Wh}add(n){const o=this;return o.queue.push(n),o.states[n]===void 0&&(o.states[n]=T_),new Promise((c,u)=>{o.scriptLoadedCallbacks[n]||(o.scriptLoadedCallbacks[n]=[]),o.scriptLoadedCallbacks[n].push({resolve:c,reject:u})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const o=this,r=(k,E)=>{Cs(o.scriptLoadedCallbacks,E).each(D=>{ae(D,N=>N[k](E))}),delete o.scriptLoadedCallbacks[E]},c=k=>{const E=qe(k,D=>D.status==="rejected");return E.length>0?Promise.reject(Dn(E,({reason:D})=>gt(D)?D:[D])):Promise.resolve()},u=k=>Promise.allSettled(ve(k,E=>o.states[E]===Wh?(r("resolve",E),Promise.resolve()):o.states[E]===AT?(r("reject",E),Promise.reject(E)):(o.states[E]=E_,o.loadScript(E).then(()=>{o.states[E]=Wh,r("resolve",E);const D=o.queue;return D.length>0?(o.queue=[],u(D).then(c)):Promise.resolve()},()=>(o.states[E]=AT,r("reject",E),Promise.reject(E)))))),m=k=>(o.loading=!0,u(k).then(E=>{o.loading=!1;const D=o.queueLoadedCallbacks.shift();return F.from(D).each(fn),c(E)})),b=Ge(n);return o.loading?new Promise((k,E)=>{o.queueLoadedCallbacks.push(()=>{m(b).then(k,E)})}):m(b)}}Ad.ScriptLoader=new Ad;const Ma=e=>{let n=e;return{get:()=>n,set:c=>{n=c}}},Zh=(e,n)=>{const o=e.indexOf(n);return o!==-1&&e.indexOf(n,o+1)>o},yp=e=>dt(e)&&Kn(e,"raw"),A_=e=>gt(e)&&e.length>1,qh={},l0=Ma("en"),ga=()=>Cs(qh,l0.get()),jl={getData:()=>Lo(qh,e=>({...e})),setCode:e=>{e&&l0.set(e)},getCode:()=>l0.get(),add:(e,n)=>{let o=qh[e];o||(qh[e]=o={});const r=ve(Yo(n),c=>c.toLowerCase());Tt(n,(c,u)=>{const m=u.toLowerCase();m!==u&&Zh(r,m)?(Kn(n,m)||(o[m]=c),o[u]=c):o[m]=c})},translate:e=>{const n=ga().getOr({}),o=m=>ie(m)?Object.prototype.toString.call(m):r(m)?"":""+m,r=m=>m===""||m===null||m===void 0,c=m=>{const b=o(m);return Kn(n,b)?o(n[b]):Cs(n,b.toLowerCase()).map(o).getOr(b)},u=m=>m.replace(/{context:\w+}$/,"");if(r(e))return"";if(yp(e))return o(e.raw);if(A_(e)){const m=e.slice(1),b=c(e[0]).replace(/\{([0-9]+)\}/g,(k,E)=>Kn(m,E)?o(m[E]):k);return u(b)}return u(c(e))},isRtl:()=>ga().bind(e=>Cs(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>Kn(qh,e)},pa=()=>{const e=[],n={},o={},r=[],c=(K,ne)=>{const Te=qe(r,ze=>ze.name===K&&ze.state===ne);ae(Te,ze=>ze.resolve())},u=K=>Kn(n,K),m=K=>Kn(o,K),b=K=>{if(o[K])return o[K].instance},k=(K,ne)=>{const Te=jl.getCode(),ze=","+(ne||"")+",";!Te||ne&&ze.indexOf(","+Te+",")===-1||Ad.ScriptLoader.add(n[K]+"/langs/"+Te+".js")},E=(K,ne)=>{pa.languageLoad!==!1&&(u(K)?k(K,ne):oe(K,"loaded").then(()=>k(K,ne)))},D=(K,ne)=>(e.push(ne),o[K]={instance:ne},c(K,"added"),ne),N=K=>{delete n[K],delete o[K]},I=(K,ne)=>j(ne)?j(K)?{prefix:"",resource:ne,suffix:""}:{prefix:K.prefix,resource:ne,suffix:K.suffix}:ne,ee=(K,ne)=>{if(n[K])return Promise.resolve();let Te=j(ne)?ne:ne.prefix+ne.resource+ne.suffix;Te.indexOf("/")!==0&&Te.indexOf("://")===-1&&(Te=pa.baseURL+"/"+Te),n[K]=Te.substring(0,Te.lastIndexOf("/"));const ze=()=>(c(K,"loaded"),Promise.resolve());return o[K]?ze():Ad.ScriptLoader.add(Te).then(ze)},oe=(K,ne="added")=>ne==="added"&&m(K)||ne==="loaded"&&u(K)?Promise.resolve():new Promise(Te=>{r.push({name:K,state:ne,resolve:Te})});return{items:e,urls:n,lookup:o,get:b,requireLangPack:E,add:D,remove:N,createUrl:I,load:ee,waitFor:oe}};pa.languageLoad=!0,pa.baseURL="",pa.PluginManager=pa(),pa.ThemeManager=pa(),pa.ModelManager=pa();const Sa=e=>{const n=Ma(F.none()),o=()=>n.get().each(e);return{clear:()=>{o(),n.set(F.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(F.some(b))}}},zT=e=>{const n=Ma(F.none()),o=()=>n.get().each(b=>clearInterval(b));return{clear:()=>{o(),n.set(F.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:b=>{o(),n.set(F.some(setInterval(b,e)))}}},Yu=()=>{const e=Sa(Oe);return{...e,on:o=>e.get().each(o)}},Gh=(e,n)=>{let o=null;return{cancel:()=>{U(o)||(clearTimeout(o),o=null)},throttle:(...u)=>{U(o)&&(o=setTimeout(()=>{o=null,e.apply(null,u)},n))}}},Vy=(e,n)=>{let o=null;const r=()=>{U(o)||(clearTimeout(o),o=null)};return{cancel:r,throttle:(...u)=>{r(),o=setTimeout(()=>{o=null,e.apply(null,u)},n)}}},Wl=st("mce-annotation"),al=st("data-mce-annotation"),ug=st("data-mce-annotation-uid"),vp=st("data-mce-annotation-active"),Kh=st("data-mce-annotation-classes"),Yh=st("data-mce-annotation-attrs"),O_=e=>n=>Ns(n,e),d0=(e,n)=>{const o=e.selection.getRng(),r=le.fromDom(o.startContainer),c=le.fromDom(e.getBody()),u=n.fold(()=>"."+Wl(),k=>`[${al()}="${k}"]`),m=bu(r,o.startOffset).getOr(r);return vl(m,u,O_(c)).bind(k=>hl(k,`${ug()}`).bind(E=>hl(k,`${al()}`).map(D=>{const N=D_(e,E);return{uid:E,name:D,elements:N}})))},DT=e=>rc(e)&&Hl(e,Wl()),z_=(e,n)=>aa(e,"data-mce-bogus")||Vv(e,'[data-mce-bogus="all"]',O_(n)),D_=(e,n)=>{const o=le.fromDom(e.getBody()),r=La(o,`[${ug()}="${n}"]`);return qe(r,c=>!z_(c,o))},f0=(e,n)=>{const o=le.fromDom(e.getBody()),r=La(o,`[${al()}="${n}"]`),c={};return ae(r,u=>{if(!z_(u,o)){const m=Fa(u,ug()),b=Cs(c,m).getOr([]);c[m]=b.concat([u])}}),c},R_=(e,n)=>{const o=Ma({}),r=()=>({listeners:[],previous:Yu()}),c=(N,I)=>{u(N,ee=>(I(ee),ee))},u=(N,I)=>{const ee=o.get(),oe=Cs(ee,N).getOrThunk(r),K=I(oe);ee[N]=K,o.set(ee)},m=(N,I,ee)=>{c(N,oe=>{ae(oe.listeners,K=>K(!0,N,{uid:I,nodes:ve(ee,ne=>ne.dom)}))})},b=N=>{c(N,I=>{ae(I.listeners,ee=>ee(!1,N))})},k=(N,I)=>{ae(D_(e,N),ee=>{I?ir(ee,vp(),"true"):Yr(ee,vp())})},E=Vy(()=>{const N=Gn(n.getNames());ae(N,I=>{u(I,ee=>{const oe=ee.previous.get();return d0(e,F.some(I)).fold(()=>{oe.each(K=>{b(I),ee.previous.clear(),k(K,!1)})},({uid:K,name:ne,elements:Te})=>{Ws(oe,K)||(oe.each(ze=>k(ze,!1)),m(ne,K,Te),ee.previous.set(K),k(K,!0))}),{previous:ee.previous,listeners:ee.listeners}})})},30);return e.on("remove",()=>{E.cancel()}),e.on("NodeChange",()=>{E.throttle()}),{addListener:(N,I)=>{u(N,ee=>({previous:ee.previous,listeners:ee.listeners.concat([I])}))}}},FO=(e,n)=>{const o=al(),r=u=>F.from(u.attr(o)).bind(n.lookup),c=u=>{var m,b;u.attr(ug(),null),u.attr(al(),null),u.attr(vp(),null);const k=F.from(u.attr(Yh())).map(I=>I.split(",")).getOr([]),E=F.from(u.attr(Kh())).map(I=>I.split(",")).getOr([]);ae(k,I=>u.attr(I,null));const D=(b=(m=u.attr("class"))===null||m===void 0?void 0:m.split(" "))!==null&&b!==void 0?b:[],N=Po(D,[Wl()].concat(E));u.attr("class",N.length>0?N.join(" "):null),u.attr(Kh(),null),u.attr(Yh(),null)};e.serializer.addTempAttr(vp()),e.serializer.addAttributeFilter(o,u=>{for(const m of u)r(m).each(b=>{b.persistent===!1&&(m.name==="span"?m.unwrap():c(m))})})},Uy=()=>{const e={};return{register:(c,u)=>{e[c]={name:c,settings:u}},lookup:c=>Cs(e,c).map(u=>u.settings),getNames:()=>Yo(e)}};let N_=0;const $r=e=>{const o=new Date().getTime(),r=Math.floor(Math.random()*1e9);return N_++,e+"_"+r+N_+String(o)},m0=(e,n)=>{ae(n,o=>{Lu(e,o)})},g0=(e,n)=>{ae(n,o=>{Ll(e,o)})},M_=(e,n)=>le.fromDom(e.dom.cloneNode(n)),Tf=e=>M_(e,!1),Ac=e=>M_(e,!0),xi=(e,n)=>{const o=le.fromTag(n),r=gd(e);return bi(o,r),o},B_=(e,n)=>{const o=xi(e,n);io(e,o);const r=Ia(e);return sr(o,r),Es(e),o},p0=(e,n,o=De)=>{const r=new vr(e,n),c=u=>{let m;do m=r[u]();while(m&&!Bt(m)&&!o(m));return F.from(m).filter(Bt)};return{current:()=>F.from(r.current()).filter(Bt),next:()=>c("next"),prev:()=>c("prev"),prev2:()=>c("prev2")}},wm=(e,n)=>{const o=n||(m=>e.isBlock(m)||Qr(m)||As(m)),r=(m,b,k,E)=>{if(Bt(m)){const D=E(m,b,m.data);if(D!==-1)return F.some({container:m,offset:D})}return k().bind(D=>r(D.container,D.offset,k,E))};return{backwards:(m,b,k,E)=>{const D=p0(m,E??e.getRoot(),o);return r(m,b,()=>D.prev().map(N=>({container:N,offset:N.length})),k).getOrNull()},forwards:(m,b,k,E)=>{const D=p0(m,E??e.getRoot(),o);return r(m,b,()=>D.next().map(N=>({container:N,offset:0})),k).getOrNull()}}},dg=Math.round,fg=e=>e?{left:dg(e.left),top:dg(e.top),bottom:dg(e.bottom),right:dg(e.right),width:dg(e.width),height:dg(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},jy=(e,n)=>(e=fg(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),Ef=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,Wy=(e,n,o)=>e>=0&&e<=Math.min(n.height,o.height)/2,Wr=(e,n)=>{const o=Math.min(n.height/2,e.height/2);return e.bottom-on.bottom?!1:Wy(n.top-e.bottom,e,n)},cl=(e,n)=>e.top>n.bottom?!0:e.bottomn>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom,RT=e=>Q(e,(n,o)=>n.fold(()=>F.some(o),r=>{const c=Math.min(o.left,r.left),u=Math.min(o.top,r.top),m=Math.max(o.right,r.right),b=Math.max(o.bottom,r.bottom);return F.some({top:u,right:m,bottom:b,left:c,width:m-c,height:b-u})}),F.none()),h0=(e,n,o)=>{const r=Math.max(Math.min(n,e.left+e.width),e.left),c=Math.max(Math.min(o,e.top+e.height),e.top);return Math.sqrt((n-r)*(n-r)+(o-c)*(o-c))},NT=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),mg=(e,n,o)=>Math.min(Math.max(e,n),o),wp=e=>{const n=e.startContainer,o=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===o+1?n.childNodes[o]:null},Zl=(e,n)=>{if(gn(e)&&e.hasChildNodes()){const o=e.childNodes,r=mg(n,0,o.length-1);return o[r]}else return e},b0=(e,n)=>{if(!(n<0&&gn(e)&&e.hasChildNodes()))return Zl(e,n)},P_=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),F_=e=>j(e)&&e.charCodeAt(0)>=768&&P_.test(e),MT=(...e)=>n=>{for(let o=0;on=>{for(let o=0;oe?e.createRange():qs.DOM.createRng(),hs=e=>j(e)&&/[\r\n\t ]/.test(e),Ti=e=>!!e.setStart&&!!e.setEnd,Of=e=>{const n=e.startContainer,o=e.startOffset;if(hs(e.toString())&&L_(n.parentNode)&&Bt(n)){const r=n.data;if(hs(r[o-1])||hs(r[o+1]))return!0}return!1},v0=e=>{const n=e.ownerDocument,o=_p(n),r=n.createTextNode(fr),c=e.parentNode;c.insertBefore(r,e),o.setStart(r,0),o.setEnd(r,1);const u=fg(o.getBoundingClientRect());return c.removeChild(r),u},Dr=e=>{const n=e.startContainer,o=e.endContainer,r=e.startOffset,c=e.endOffset;if(n===o&&Bt(o)&&r===0&&c===1){const u=e.cloneRange();return u.setEndAfter(o),zf(u)}else return null},k0=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,zf=e=>{var n;let o;const r=e.getClientRects();return r.length>0?o=fg(r[0]):o=fg(e.getBoundingClientRect()),!Ti(e)&&Af(e)&&k0(o)?v0(e):k0(o)&&Ti(e)&&(n=Dr(e))!==null&&n!==void 0?n:o},xa=(e,n)=>{const o=jy(e,n);return o.width=1,o.right=o.left+1,o},Od=e=>{const n=[],o=m=>{m.height!==0&&(n.length>0&&Ef(m,n[n.length-1])||n.push(m))},r=(m,b)=>{const k=_p(m.ownerDocument);if(b0&&(k.setStart(m,b-1),k.setEnd(m,b),Of(k)||o(xa(zf(k),!1))),b{const r=()=>(Gy(e),n===0),c=()=>Gy(e)?n>=e.data.length:n>=e.childNodes.length,u=()=>{const D=_p(e.ownerDocument);return D.setStart(e,n),D.setEnd(e,n),D},m=()=>(o||(o=Od(ct(e,n))),o),b=()=>m().length>0,k=D=>D&&e===D.container()&&n===D.offset(),E=D=>il(e,D?n-1:n);return{container:st(e),offset:st(n),toRange:u,getClientRects:m,isVisible:b,isAtStart:r,isAtEnd:c,isEqual:k,getNode:E}};ct.fromRangeStart=e=>ct(e.startContainer,e.startOffset),ct.fromRangeEnd=e=>ct(e.endContainer,e.endOffset),ct.after=e=>ct(e.parentNode,Ky(e)+1),ct.before=e=>ct(e.parentNode,Ky(e)),ct.isAbove=(e,n)=>sa(mn(n.getClientRects()),bo(e.getClientRects()),Wr).getOr(!1),ct.isBelow=(e,n)=>sa(bo(n.getClientRects()),mn(e.getClientRects()),cl).getOr(!1),ct.isAtStart=e=>e?e.isAtStart():!1,ct.isAtEnd=e=>e?e.isAtEnd():!1,ct.isTextPosition=e=>e?Bt(e.container()):!1,ct.isElementPosition=e=>!ct.isTextPosition(e);const Yy=(e,n)=>{Bt(n)&&n.data.length===0&&e.remove(n)},BT=(e,n,o)=>{n.insertNode(o),Yy(e,o.previousSibling),Yy(e,o.nextSibling)},Xy=(e,n,o)=>{const r=F.from(o.firstChild),c=F.from(o.lastChild);n.insertNode(o),r.each(u=>Yy(e,u.previousSibling)),c.each(u=>Yy(e,u.nextSibling))},zd=(e,n,o)=>{up(o)?Xy(e,n,o):BT(e,n,o)},Tl=Bt,Xh=wu,Jy=qs.nodeIndex,w0=e=>{const n=e.parentNode;return Xh(n)?w0(n):n},Qy=e=>e?de(e.childNodes,(n,o)=>(Xh(o)&&o.nodeName!=="BR"?n=n.concat(Qy(o)):n.push(o),n),[]):[],H_=(e,n)=>{let o=e;for(;(o=o.previousSibling)&&Tl(o);)n+=o.data.length;return n},_m=e=>n=>e===n,ql=e=>{let n,o;n=Qy(w0(e)),o=re(n,_m(e),e),n=n.slice(0,o+1);const r=de(n,(c,u,m)=>(Tl(u)&&Tl(n[m-1])&&c++,c),0);return n=Gs(n,wl([e.nodeName])),o=re(n,_m(e),e),o-r},Zi=e=>(Tl(e)?"text()":e.nodeName.toLowerCase())+"["+ql(e)+"]",Oc=(e,n,o)=>{const r=[];for(let c=n.parentNode;c&&c!==e&&!(o&&o(c));c=c.parentNode)r.push(c);return r},V_=(e,n)=>{let o=[],r=n.container(),c=n.offset(),u;if(Tl(r))u=H_(r,c);else{const b=r.childNodes;c>=b.length?(u="after",c=b.length-1):u="before",r=b[c]}o.push(Zi(r));let m=Oc(e,r);return m=Gs(m,fo(wu)),o=o.concat(wr(m,b=>Zi(b))),o.reverse().join("/")+","+u},Cm=(e,n,o)=>{let r=Qy(e);return r=Gs(r,(c,u)=>!Tl(c)||!Tl(r[u-1])),r=Gs(r,wl([n])),r[o]},U_=(e,n)=>{let o=e,r=0;for(;Tl(o);){const c=o.data.length;if(n>=r&&n<=r+c){e=o,n=n-r;break}if(!Tl(o.nextSibling)){e=o,n=c;break}r+=c,o=o.nextSibling}return Tl(e)&&n>e.data.length&&(n=e.data.length),ct(e,n)},Jh=(e,n)=>{if(!n)return null;const o=n.split(","),r=o[0].split("/"),c=o.length>1?o[1]:"before",u=de(r,(m,b)=>{const k=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(b);return k?(k[1]==="text()"&&(k[1]="#text"),Cm(m,k[1],parseInt(k[2],10))):null},e);if(!u)return null;if(!Tl(u)&&u.parentNode){let m;return c==="after"?m=Jy(u)+1:m=Jy(u),ct(u.parentNode,m)}return U_(u,parseInt(c,10))},pg=As,_0=(e,n,o)=>{let r=e(n.data.slice(0,o)).length;for(let c=n.previousSibling;c&&Bt(c);c=c.previousSibling)r+=e(c.data).length;return r},e1=(e,n,o,r,c)=>{const u=c?r.startContainer:r.endContainer;let m=c?r.startOffset:r.endOffset;const b=[],k=e.getRoot();if(Bt(u))b.push(o?_0(n,u,m):m);else{let E=0;const D=u.childNodes;m>=D.length&&D.length&&(E=1,m=Math.max(0,D.length-1)),b.push(e.nodeIndex(D[m],o)+E)}for(let E=u;E&&E!==k;E=E.parentNode)b.push(e.nodeIndex(E,o));return b},j_=(e,n,o,r)=>{const c=n.dom,u=e1(c,e,o,r,!0),m=n.isForward(),b=da(r)?{isFakeCaret:!0}:{};if(n.isCollapsed())return{start:u,forward:m,...b};{const k=e1(c,e,o,r,!1);return{start:u,end:k,forward:m,...b}}},t1=(e,n,o)=>{let r=0;return Et.each(e.select(n),c=>{if(c.getAttribute("data-mce-bogus")!=="all"){if(c===o)return!1;r++;return}}),r},C0=(e,n)=>{let o=n?e.startContainer:e.endContainer,r=n?e.startOffset:e.endOffset;if(gn(o)&&o.nodeName==="TR"){const c=o.childNodes;o=c[Math.min(n?r:r-1,c.length-1)],o&&(r=n?0:o.childNodes.length,n?e.setStart(o,r):e.setEnd(o,r))}},Ua=e=>(C0(e,!0),C0(e,!1),e),kc=(e,n)=>{if(gn(e)&&(e=Zl(e,n),pg(e)))return e;if(Ps(e)){Bt(e)&&xr(e)&&(e=e.parentNode);let o=e.previousSibling;if(pg(o)||(o=e.nextSibling,pg(o)))return o}},qi=e=>kc(e.startContainer,e.startOffset)||kc(e.endContainer,e.endOffset),Ir=(e,n,o)=>{const r=o.getNode(),c=o.getRng();if(r.nodeName==="IMG"||pg(r)){const m=r.nodeName;return{name:m,index:t1(o.dom,m,r)}}const u=qi(c);if(u){const m=u.tagName;return{name:m,index:t1(o.dom,m,u)}}return j_(e,o,n,c)},wc=e=>{const n=e.getRng();return{start:V_(e.dom.getRoot(),ct.fromRangeStart(n)),end:V_(e.dom.getRoot(),ct.fromRangeEnd(n)),forward:e.isForward()}},uc=e=>({rng:e.getRng(),forward:e.isForward()}),n1=(e,n,o)=>{const r={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return o?e.create("span",r,""):e.create("span",r)},o1=(e,n)=>{const o=e.dom;let r=e.getRng();const c=o.uniqueId(),u=e.isCollapsed(),m=e.getNode(),b=m.nodeName,k=e.isForward();if(b==="IMG")return{name:b,index:t1(o,b,m)};const E=Ua(r.cloneRange());if(!u){E.collapse(!1);const N=n1(o,c+"_end",n);zd(o,E,N)}r=Ua(r),r.collapse(!0);const D=n1(o,c+"_start",n);return zd(o,r,D),e.moveToBookmark({id:c,keep:!0,forward:k}),{id:c,forward:k}},W_=(e,n,o=!1)=>n===2?Ir(qt,o,e):n===3?wc(e):n?uc(e):o1(e,!1),s1=Xe(Ir,Bn,!0),S0=e=>{const n=u=>u(e),o=st(e),r=()=>c,c={tag:!0,inner:e,fold:(u,m)=>m(e),isValue:lt,isError:De,map:u=>zc.value(u(e)),mapError:r,bind:n,exists:n,forall:n,getOr:o,or:r,getOrThunk:o,orThunk:r,getOrDie:o,each:u=>{u(e)},toOptional:()=>F.some(e)};return c},x0=e=>{const n=()=>o,o={tag:!1,inner:e,fold:(r,c)=>r(e),isValue:De,isError:lt,map:n,mapError:r=>zc.error(r(e)),bind:n,exists:De,forall:lt,getOr:Bn,or:Bn,getOrThunk:wt,orThunk:wt,getOrDie:Zo(String(e)),each:Oe,toOptional:F.none};return o},zc={value:S0,error:x0,fromOption:(e,n)=>e.fold(()=>x0(n),S0)},Df={generate:e=>{if(!gt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],o={};return ae(e,(r,c)=>{const u=Yo(r);if(u.length!==1)throw new Error("one and only one name per case");const m=u[0],b=r[m];if(o[m]!==void 0)throw new Error("duplicate key detected:"+m);if(m==="cata")throw new Error("cannot have a case named cata (sorry)");if(!gt(b))throw new Error("case arguments must be an array");n.push(m),o[m]=(...k)=>{const E=k.length;if(E!==b.length)throw new Error("Wrong number of arguments to case "+m+". Expected "+b.length+" ("+b+"), got "+E);return{fold:(...N)=>{if(N.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+N.length);return N[c].apply(null,k)},match:N=>{const I=Yo(N);if(n.length!==I.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+` Actual: `+I.join(","));if(!Rn(n,oe=>X(I,oe)))throw new Error("Not all branches were specified when using match. Specified: "+I.join(", ")+` Required: `+n.join(", "));return N[m].apply(null,k)},log:N=>{console.log(N,{constructors:n,constructor:m,params:k})}}}}),o}};Df.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const PT=e=>{const n=[],o=[];return ae(e,r=>{r.fold(c=>{n.push(c)},c=>{o.push(c)})}),{errors:n,values:o}},FT=e=>e.type==="inline-command"||e.type==="inline-format",$T=e=>e.type==="block-command"||e.type==="block-format",T0=e=>{const n=r=>zc.error({message:r,pattern:e}),o=(r,c,u)=>{if(e.format!==void 0){let m;if(gt(e.format)){if(!Rn(e.format,j))return n(r+" pattern has non-string items in the `format` array");m=e.format}else if(j(e.format))m=[e.format];else return n(r+" pattern has non-string `format` parameter");return zc.value(c(m))}else return e.cmd!==void 0?j(e.cmd)?zc.value(u(e.cmd,e.value)):n(r+" pattern has non-string `cmd` parameter"):n(r+" pattern is missing both `format` and `cmd` parameters")};if(!dt(e))return n("Raw pattern is not an object");if(!j(e.start))return n("Raw pattern is missing `start` parameter");if(e.end!==void 0){if(!j(e.end))return n("Inline pattern has non-string `end` parameter");if(e.start.length===0&&e.end.length===0)return n("Inline pattern has empty `start` and `end` parameters");let r=e.start,c=e.end;return c.length===0&&(c=r,r=""),o("Inline",u=>({type:"inline-format",start:r,end:c,format:u}),(u,m)=>({type:"inline-command",start:r,end:c,cmd:u,value:m}))}else return e.replacement!==void 0?j(e.replacement)?e.start.length===0?n("Replacement pattern has empty `start` parameter"):zc.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter"):e.start.length===0?n("Block pattern has empty `start` parameter"):o("Block",r=>({type:"block-format",start:e.start,format:r[0]}),(r,c)=>({type:"block-command",start:e.start,cmd:r,value:c}))},q_=e=>qe(e,$T),G_=e=>qe(e,FT),r1=(e,n)=>({inlinePatterns:G_(e),blockPatterns:q_(e),dynamicPatternsLookup:n}),K_=e=>{const n=PT(ve(e,T0));return ae(n.errors,o=>console.error(o.message,o.pattern)),n.values},Y_=e=>n=>{const o=e(n);return K_(o)},$t=Ys().deviceType,IT=$t.isTouch(),_c=qs.DOM,LT=e=>{const n=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return Q(n,(o,r)=>{const c=r.split("="),u=c[0],m=c.length>1?c[1]:u;return o[va(u)]=va(m),o},{})},E0=e=>xt(e,RegExp),yn=e=>n=>n.options.get(e),Wc=e=>j(e)||dt(e),X_=(e,n="")=>o=>{const r=j(o);if(r)if(o.indexOf("=")!==-1){const c=LT(o);return{value:Cs(c,e.id).getOr(n),valid:r}}else return{value:o,valid:r};else return{valid:!1,message:"Must be a string."}},J_=e=>{const n=e.options.register;n("id",{processor:"string",default:e.id}),n("selector",{processor:"string"}),n("target",{processor:"object"}),n("suffix",{processor:"string"}),n("cache_suffix",{processor:"string"}),n("base_url",{processor:"string"}),n("referrer_policy",{processor:"string",default:""}),n("language_load",{processor:"boolean",default:!0}),n("inline",{processor:"boolean",default:!1}),n("iframe_attrs",{processor:"object",default:{}}),n("doctype",{processor:"string",default:""}),n("document_base_url",{processor:"string",default:e.documentBaseUrl}),n("body_id",{processor:X_(e,"tinymce"),default:"tinymce"}),n("body_class",{processor:X_(e),default:""}),n("content_security_policy",{processor:"string",default:""}),n("br_in_pre",{processor:"boolean",default:!0}),n("forced_root_block",{processor:o=>{const r=j(o)&&yo(o);return r?{value:o,valid:r}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),n("forced_root_block_attrs",{processor:"object",default:{}}),n("newline_behavior",{processor:o=>{const r=X(["block","linebreak","invert","default"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),n("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),n("no_newline_selector",{processor:"string",default:""}),n("keep_styles",{processor:"boolean",default:!0}),n("end_container_on_empty_block",{processor:o=>at(o)?{valid:!0,value:o}:j(o)?{valid:!0,value:o}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),n("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),n("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),n("font_size_classes",{processor:"string",default:""}),n("automatic_uploads",{processor:"boolean",default:!0}),n("images_reuse_filename",{processor:"boolean",default:!1}),n("images_replace_blob_uris",{processor:"boolean",default:!0}),n("icons",{processor:"string",default:""}),n("icons_url",{processor:"string",default:""}),n("images_upload_url",{processor:"string",default:""}),n("images_upload_base_path",{processor:"string",default:""}),n("images_upload_credentials",{processor:"boolean",default:!1}),n("images_upload_handler",{processor:"function"}),n("language",{processor:"string",default:"en"}),n("language_url",{processor:"string",default:""}),n("entity_encoding",{processor:"string",default:"named"}),n("indent",{processor:"boolean",default:!0}),n("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_use_margin",{processor:"boolean",default:!1}),n("indentation",{processor:"string",default:"40px"}),n("content_css",{processor:o=>{const r=o===!1||j(o)||Ce(o,j);return r?j(o)?{value:ve(o.split(","),va),valid:r}:gt(o)?{value:o,valid:r}:o===!1?{value:[],valid:r}:{value:o,valid:r}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:u2(e)?[]:["default"]}),n("content_style",{processor:"string"}),n("content_css_cors",{processor:"boolean",default:!1}),n("font_css",{processor:o=>{const r=j(o)||Ce(o,j);return r?{value:gt(o)?o:ve(o.split(","),va),valid:r}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),n("inline_boundaries",{processor:"boolean",default:!0}),n("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),n("object_resizing",{processor:o=>{const r=at(o)||j(o);return r?o===!1||$t.isiPhone()||$t.isiPad()?{value:"",valid:r}:{value:o===!0?"table,img,figure.image,div,video,iframe":o,valid:r}:{valid:!1,message:"Must be boolean or a string"}},default:!IT}),n("resize_img_proportional",{processor:"boolean",default:!0}),n("event_root",{processor:"object"}),n("service_message",{processor:"string"}),n("theme",{processor:o=>o===!1||j(o)||ie(o),default:"silver"}),n("theme_url",{processor:"string"}),n("formats",{processor:"object"}),n("format_empty_lines",{processor:"boolean",default:!1}),n("format_noneditable_selector",{processor:"string",default:""}),n("preview_styles",{processor:o=>{const r=o===!1||j(o);return r?{value:o===!1?"":o,valid:r}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),n("custom_ui_selector",{processor:"string",default:""}),n("hidden_input",{processor:"boolean",default:!0}),n("submit_patch",{processor:"boolean",default:!0}),n("encoding",{processor:"string"}),n("add_form_submit_trigger",{processor:"boolean",default:!0}),n("add_unload_trigger",{processor:"boolean",default:!0}),n("custom_undo_redo_levels",{processor:"number",default:0}),n("disable_nodechange",{processor:"boolean",default:!1}),n("readonly",{processor:"boolean",default:!1}),n("editable_root",{processor:"boolean",default:!0}),n("plugins",{processor:"string[]",default:[]}),n("external_plugins",{processor:"object"}),n("forced_plugins",{processor:"string[]"}),n("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),n("model_url",{processor:"string"}),n("block_unsupported_drop",{processor:"boolean",default:!0}),n("visual",{processor:"boolean",default:!0}),n("visual_table_class",{processor:"string",default:"mce-item-table"}),n("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),n("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),n("setup",{processor:"function"}),n("init_instance_callback",{processor:"function"}),n("url_converter",{processor:"function",default:e.convertURL}),n("url_converter_scope",{processor:"object",default:e}),n("urlconverter_callback",{processor:"function"}),n("allow_conditional_comments",{processor:"boolean",default:!1}),n("allow_html_data_urls",{processor:"boolean",default:!1}),n("allow_svg_data_urls",{processor:"boolean"}),n("allow_html_in_named_anchor",{processor:"boolean",default:!1}),n("allow_script_urls",{processor:"boolean",default:!1}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),n("fix_list_elements",{processor:"boolean",default:!1}),n("preserve_cdata",{processor:"boolean",default:!1}),n("remove_trailing_brs",{processor:"boolean",default:!0}),n("pad_empty_with_br",{processor:"boolean",default:!1}),n("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),n("element_format",{processor:"string",default:"html"}),n("entities",{processor:"string"}),n("schema",{processor:"string",default:"html5"}),n("convert_urls",{processor:"boolean",default:!0}),n("relative_urls",{processor:"boolean",default:!0}),n("remove_script_host",{processor:"boolean",default:!0}),n("custom_elements",{processor:"string"}),n("extended_valid_elements",{processor:"string"}),n("invalid_elements",{processor:"string"}),n("invalid_styles",{processor:Wc}),n("valid_children",{processor:"string"}),n("valid_classes",{processor:Wc}),n("valid_elements",{processor:"string"}),n("valid_styles",{processor:Wc}),n("verify_html",{processor:"boolean",default:!0}),n("auto_focus",{processor:o=>j(o)||o===!0}),n("browser_spellcheck",{processor:"boolean",default:!1}),n("protect",{processor:"array"}),n("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),n("deprecation_warnings",{processor:"boolean",default:!0}),n("a11y_advanced_options",{processor:"boolean",default:!1}),n("api_key",{processor:"string"}),n("paste_block_drop",{processor:"boolean",default:!1}),n("paste_data_images",{processor:"boolean",default:!0}),n("paste_preprocess",{processor:"function"}),n("paste_postprocess",{processor:"function"}),n("paste_webkit_styles",{processor:"string",default:"none"}),n("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),n("paste_merge_formats",{processor:"boolean",default:!0}),n("smart_paste",{processor:"boolean",default:!0}),n("paste_as_text",{processor:"boolean",default:!1}),n("paste_tab_spaces",{processor:"number",default:4}),n("text_patterns",{processor:o=>Ce(o,dt)||o===!1?{value:K_(o===!1?[]:o),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),n("text_patterns_lookup",{processor:o=>ie(o)?{value:Y_(o),valid:!0}:{valid:!1,message:"Must be a single function"},default:o=>[]}),n("noneditable_class",{processor:"string",default:"mceNonEditable"}),n("editable_class",{processor:"string",default:"mceEditable"}),n("noneditable_regexp",{processor:o=>Ce(o,E0)?{value:o,valid:!0}:E0(o)?{value:[o],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),n("table_tab_navigation",{processor:"boolean",default:!0}),n("highlight_on_focus",{processor:"boolean",default:!1}),n("xss_sanitization",{processor:"boolean",default:!0}),n("details_initial_state",{processor:o=>{const r=X(["inherited","collapsed","expanded"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("details_serialized_state",{processor:o=>{const r=X(["inherited","collapsed","expanded"],o);return r?{value:o,valid:r}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("init_content_sync",{processor:"boolean",default:!1}),n("newdocument_content",{processor:"string",default:""}),e.on("ScriptsLoaded",()=>{n("directionality",{processor:"string",default:jl.isRtl()?"rtl":void 0}),n("placeholder",{processor:"string",default:_c.getAttrib(e.getElement(),"placeholder")})})},Gl=yn("iframe_attrs"),a1=yn("doctype"),Cp=yn("document_base_url"),Xu=yn("body_id"),Kl=yn("body_class"),hg=yn("content_security_policy"),Au=yn("br_in_pre"),ni=yn("forced_root_block"),Sp=yn("forced_root_block_attrs"),A0=yn("newline_behavior"),Q_=yn("br_newline_selector"),e2=yn("no_newline_selector"),O0=yn("keep_styles"),HT=yn("end_container_on_empty_block"),z0=yn("automatic_uploads"),t2=yn("images_reuse_filename"),VT=yn("images_replace_blob_uris"),n2=yn("icons"),UT=yn("icons_url"),jT=yn("images_upload_url"),D0=yn("images_upload_base_path"),WT=yn("images_upload_credentials"),o2=yn("images_upload_handler"),ZT=yn("content_css_cors"),xp=yn("referrer_policy"),s2=yn("language"),qT=yn("language_url"),r2=yn("indent_use_margin"),GT=yn("indentation"),a2=yn("content_css"),c1=yn("content_style"),Sm=yn("font_css"),Tp=yn("directionality"),Rr=yn("inline_boundaries_selector"),R0=yn("object_resizing"),Ei=yn("resize_img_proportional"),Ep=yn("placeholder"),ec=yn("event_root"),c2=yn("service_message"),Dd=yn("theme"),KT=yn("theme_url"),i1=yn("model"),i2=yn("model_url"),Qh=yn("inline_boundaries"),YT=yn("formats"),XT=yn("preview_styles"),JT=yn("format_empty_lines"),eb=yn("format_noneditable_selector"),l2=yn("custom_ui_selector"),u2=yn("inline"),bg=yn("hidden_input"),QT=yn("submit_patch"),eE=yn("add_form_submit_trigger"),tE=yn("add_unload_trigger"),d2=yn("custom_undo_redo_levels"),N0=yn("disable_nodechange"),Rf=yn("readonly"),f2=yn("editable_root"),m2=yn("content_css_cors"),l1=yn("plugins"),nE=yn("external_plugins"),Nf=yn("block_unsupported_drop"),u1=yn("visual"),d1=yn("visual_table_class"),tb=yn("visual_anchor_class"),g2=yn("iframe_aria_text"),Rd=yn("setup"),f1=yn("init_instance_callback"),p2=yn("urlconverter_callback"),Ju=yn("auto_focus"),xm=yn("browser_spellcheck"),M0=yn("protect"),h2=yn("paste_block_drop"),m1=yn("paste_data_images"),oE=yn("paste_preprocess"),b2=yn("paste_postprocess"),sE=yn("newdocument_content"),rE=yn("paste_webkit_styles"),y2=yn("paste_remove_styles_if_webkit"),v2=yn("paste_merge_formats"),k2=yn("smart_paste"),aE=yn("paste_as_text"),cE=yn("paste_tab_spaces"),iE=yn("allow_html_data_urls"),w2=yn("text_patterns"),B0=yn("text_patterns_lookup"),P0=yn("noneditable_class"),lE=yn("editable_class"),uE=yn("noneditable_regexp"),g1=yn("preserve_cdata"),_2=yn("highlight_on_focus"),p1=yn("xss_sanitization"),nb=yn("init_content_sync"),h1=e=>e.options.isSet("text_patterns_lookup"),F0=e=>Et.explode(e.options.get("font_size_style_values")),C2=e=>Et.explode(e.options.get("font_size_classes")),S2=e=>e.options.get("encoding")==="xml",$0=e=>Et.explode(e.options.get("images_file_types")),dE=yn("table_tab_navigation"),x2=yn("details_initial_state"),ob=yn("details_serialized_state"),fE=gn,b1=Bt,T2=e=>{const n=e.parentNode;n&&n.removeChild(e)},E2=e=>{const n=qt(e);return{count:e.length-n.length,text:n}},A2=e=>{let n;for(;(n=e.data.lastIndexOf(Qe))!==-1;)e.deleteData(n,1)},y1=(e,n)=>(ja(e),n),mE=(e,n)=>{const o=E2(e.data.substr(0,n.offset())),r=E2(e.data.substr(n.offset()));return(o.text+r.text).length>0?(A2(e),ct(e,n.offset()-o.count)):n},sb=(e,n)=>{const o=n.container(),r=on(as(o.childNodes),e).map(c=>cb1(e)&&n.container()===e?mE(e,n):y1(e,n),pE=(e,n)=>n.container()===e.parentNode?sb(e,n):y1(e,n),O2=(e,n)=>ct.isTextPosition(n)?gE(e,n):pE(e,n),ja=e=>{fE(e)&&Ps(e)&&(ei(e)?e.removeAttribute("data-mce-caret"):T2(e)),b1(e)&&(A2(e),e.data.length===0&&T2(e))},hE=As,Ap=Cl,bE=_u,rb="*[contentEditable=false],video,audio,embed,object",I0=(e,n,o)=>{const r=jy(n.getBoundingClientRect(),o);let c,u;if(e.tagName==="BODY"){const b=e.ownerDocument.documentElement;c=e.scrollLeft||b.scrollLeft,u=e.scrollTop||b.scrollTop}else{const b=e.getBoundingClientRect();c=e.scrollLeft-b.left,u=e.scrollTop-b.top}r.left+=c,r.right+=c,r.top+=u,r.bottom+=u,r.width=1;let m=n.offsetWidth-n.clientWidth;return m>0&&(o&&(m*=-1),r.left+=m,r.right+=m),r},yE=e=>{var n,o;const r=La(le.fromDom(e),rb);for(let c=0;c{const c=Yu();let u,m;const b=ni(e),k=e.dom,E=(K,ne)=>{let Te;if(D(),bE(ne))return null;if(o(ne)){const ze=Zu(b,ne,K),Re=I0(n,ne,K);k.setStyle(ze,"top",Re.top),m=ze;const Ve=k.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});k.setStyles(Ve,{...Re}),k.add(n,Ve),c.set({caret:Ve,element:ne,before:K}),K&&k.addClass(Ve,"mce-visual-caret-before"),N(),Te=ne.ownerDocument.createRange(),Te.setStart(ze,0),Te.setEnd(ze,0)}else return m=nl(ne,K),Te=ne.ownerDocument.createRange(),Tm(m.nextSibling)?(Te.setStart(m,0),Te.setEnd(m,0)):(Te.setStart(m,1),Te.setEnd(m,1)),Te;return Te},D=()=>{yE(n),m&&(ja(m),m=null),c.on(K=>{k.remove(K.caret),c.clear()}),u&&(clearInterval(u),u=void 0)},N=()=>{u=setInterval(()=>{c.on(K=>{r()?k.toggleClass(K.caret,"mce-visual-caret-hidden"):k.addClass(K.caret,"mce-visual-caret-hidden")})},500)};return{show:E,hide:D,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{c.on(K=>{const ne=I0(n,K.element,K.before);k.setStyles(K.caret,{...ne})})},destroy:()=>clearInterval(u)}},L0=()=>nn.browser.isFirefox(),Tm=e=>hE(e)||Ap(e),Op=e=>(Tm(e)||tl(e)&&L0())&&pd(le.fromDom(e)).exists(Fo),Ai=Qa,yg=As,z2=Cl,D2=Uu("display","block table table-cell table-caption list-item"),H0=Ps,V0=xr,U0=gn,kE=Bt,ab=ic,v1=e=>e>0,Em=e=>e<0,cb=(e,n)=>{let o;for(;o=e(n);)if(!V0(o))return o;return null},Qu=(e,n,o,r,c)=>{const u=new vr(e,r),m=yg(e)||V0(e);let b;if(Em(n)){if(m&&(b=cb(u.prev.bind(u),!0),o(b)))return b;for(;b=cb(u.prev.bind(u),c);)if(o(b))return b}if(v1(n)){if(m&&(b=cb(u.next.bind(u),!0),o(b)))return b;for(;b=cb(u.next.bind(u),c);)if(o(b))return b}return null},wE=(e,n)=>{const o=c=>Ai(c.dom),r=c=>c.dom===n;return Fr(le.fromDom(e),o,r).map(c=>c.dom).getOr(n)},Nd=(e,n)=>{for(;e&&e!==n;){if(D2(e))return e;e=e.parentNode}return null},Ou=(e,n,o)=>Nd(e.container(),o)===Nd(n.container(),o),zp=(e,n)=>{if(!n)return F.none();const o=n.container(),r=n.offset();return U0(o)?F.from(o.childNodes[r+e]):F.none()},j0=(e,n)=>{var o;const c=((o=n.ownerDocument)!==null&&o!==void 0?o:document).createRange();return e?(c.setStartBefore(n),c.setEndBefore(n)):(c.setStartAfter(n),c.setEndAfter(n)),c},Dp=(e,n,o)=>Nd(n,e)===Nd(o,e),Mf=(e,n,o)=>{const r=e?"previousSibling":"nextSibling";let c=o;for(;c&&c!==n;){let u=c[r];if(u&&H0(u)&&(u=u[r]),yg(u)||z2(u)){if(Dp(n,u,c))return u;break}if(ab(u))break;c=c.parentNode}return null},Rp=Xe(j0,!0),vg=Xe(j0,!1),W0=(e,n,o)=>{let r;const c=Xe(Mf,!0,n),u=Xe(Mf,!1,n),m=o.startContainer,b=o.startOffset;if(xr(m)){const k=kE(m)?m.parentNode:m,E=k.getAttribute("data-mce-caret");if(E==="before"&&(r=k.nextSibling,Op(r)))return Rp(r);if(E==="after"&&(r=k.previousSibling,Op(r)))return vg(r)}if(!o.collapsed)return o;if(Bt(m)){if(H0(m)){if(e===1){if(r=u(m),r)return Rp(r);if(r=c(m),r)return vg(r)}if(e===-1){if(r=c(m),r)return vg(r);if(r=u(m),r)return Rp(r)}return o}if(_d(m)&&b>=m.data.length-1)return e===1&&(r=u(m),r)?Rp(r):o;if(hf(m)&&b<=1)return e===-1&&(r=c(m),r)?vg(r):o;if(b===m.data.length)return r=u(m),r?Rp(r):o;if(b===0)return r=c(m),r?vg(r):o}return o},R2=(e,n)=>zp(e?0:-1,n).filter(yg),kg=(e,n,o)=>{const r=W0(e,n,o);return e===-1?ct.fromRangeStart(r):ct.fromRangeEnd(r)},wg=e=>F.from(e.getNode()).map(le.fromDom),N2=e=>F.from(e.getNode(!0)).map(le.fromDom),k1=(e,n)=>{let o=n;for(;o=e(o);)if(o.isVisible())return o;return o},Np=(e,n)=>{const o=Ou(e,n);return!o&&Qr(e.getNode())?!0:o};var dc;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(dc||(dc={}));const _E=As,ed=Bt,Z0=gn,Mp=Qr,_g=ic,q0=og,w1=sg,CE=(e,n)=>{const o=[];let r=e;for(;r&&r!==n;)o.push(r),r=r.parentNode;return o},M2=(e,n)=>e.hasChildNodes()&&n{if(v1(e)){if(_g(n.previousSibling)&&!ed(n.previousSibling))return ct.before(n);if(ed(n))return ct(n,0)}if(Em(e)){if(_g(n.nextSibling)&&!ed(n.nextSibling))return ct.after(n);if(ed(n))return ct(n,n.data.length)}return Em(e)?Mp(n)?ct.before(n):ct.after(n):ct.before(n)},B2=(e,n)=>{const o=n.nextSibling;return o&&_g(o)?ed(o)?ct(o,0):ct.before(o):P2(dc.Forwards,ct.after(n),e)},P2=(e,n,o)=>{let r,c,u,m;if(!Z0(o)||!n)return null;if(n.isEqual(ct.after(o))&&o.lastChild){if(m=ct.after(o.lastChild),Em(e)&&_g(o.lastChild)&&Z0(o.lastChild))return Mp(o.lastChild)?ct.before(o.lastChild):m}else m=n;const b=m.container();let k=m.offset();if(ed(b)){if(Em(e)&&k>0)return ct(b,--k);if(v1(e)&&k0&&(c=M2(b,k-1),_g(c)))return!q0(c)&&(u=Qu(c,e,w1,c),u)?ed(u)?ct(u,u.data.length):ct.after(u):ed(c)?ct(c,c.data.length):ct.before(c);if(v1(e)&&k({next:n=>P2(dc.Forwards,n,e),prev:n=>P2(dc.Backwards,n,e)}),IO=(e,n,o)=>{const r=e?ct.before(o):ct.after(o);return El(e,n,r)},lb=e=>Qr(e)?ct.before(e):ct.after(e),F2=e=>ct.isTextPosition(e)?e.offset()===0:ic(e.getNode()),Zc=e=>{if(ct.isTextPosition(e)){const n=e.container();return e.offset()===n.data.length}else return ic(e.getNode(!0))},_1=(e,n)=>!ct.isTextPosition(e)&&!ct.isTextPosition(n)&&e.getNode()===n.getNode(!0),Cg=e=>!ct.isTextPosition(e)&&Qr(e.getNode()),Sg=(e,n,o)=>e?!_1(n,o)&&!Cg(n)&&Zc(n)&&F2(o):!_1(o,n)&&F2(n)&&Zc(o),El=(e,n,o)=>{const r=Am(n);return F.from(e?r.next(o):r.prev(o))},Om=(e,n,o)=>El(e,n,o).bind(r=>Ou(o,r,n)&&Sg(e,o,r)?El(e,n,r):F.some(r)),G0=(e,n,o,r)=>Om(e,n,o).bind(c=>r(c)?G0(e,n,c,r):F.some(c)),Bp=(e,n)=>{const o=e?n.firstChild:n.lastChild;return Bt(o)?F.some(ct(o,e?0:o.data.length)):o?ic(o)?F.some(e?ct.before(o):lb(o)):IO(e,n,o):F.none()},Gi=Xe(El,!0),oi=Xe(El,!1),ha=Xe(Bp,!0),Al=Xe(Bp,!1),C1="_mce_caret",Dc=e=>gn(e)&&e.id===C1,zm=(e,n)=>{let o=n;for(;o&&o!==e;){if(Dc(o))return o;o=o.parentNode}return null},Pp=e=>j(e.start),ub=e=>Kn(e,"rng"),K0=e=>Kn(e,"id"),Y0=e=>Kn(e,"name"),Bf=e=>Et.isArray(e.start),db=e=>!Y0(e)&&at(e.forward)?e.forward:!0,td=(e,n)=>(gn(n)&&e.isBlock(n)&&!n.innerHTML&&(n.innerHTML='
    '),n),SE=(e,n)=>{const o=F.from(Jh(e.getRoot(),n.start)),r=F.from(Jh(e.getRoot(),n.end));return sa(o,r,(c,u)=>{const m=e.createRng();return m.setStart(c.container(),c.offset()),m.setEnd(u.container(),u.offset()),{range:m,forward:db(n)}})},X0=(e,n)=>{var o;const c=((o=e.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(Qe);e.appendChild(c),n.setStart(c,0),n.setEnd(c,0)},$2=e=>!e.hasChildNodes(),LO=(e,n)=>Al(e).fold(De,o=>(n.setStart(o.container(),o.offset()),n.setEnd(o.container(),o.offset()),!0)),I2=(e,n,o)=>$2(n)&&zm(e,n)?(X0(n,o),!0):!1,L2=(e,n,o,r)=>{const c=o[n?"start":"end"],u=e.getRoot();if(c){let m=u,b=c[0];for(let k=c.length-1;m&&k>=1;k--){const E=m.childNodes;if(I2(u,m,r))return!0;if(c[k]>E.length-1)return I2(u,m,r)?!0:LO(m,r);m=E[c[k]]}Bt(m)&&(b=Math.min(c[0],m.data.length)),gn(m)&&(b=Math.min(c[0],m.childNodes.length)),n?r.setStart(m,b):r.setEnd(m,b)}return!0},J0=e=>Bt(e)&&e.data.length>0,Q0=(e,n,o)=>{const r=e.get(o.id+"_"+n),c=r==null?void 0:r.parentNode,u=o.keep;if(r&&c){let m,b;if(n==="start"?u?r.hasChildNodes()?(m=r.firstChild,b=1):J0(r.nextSibling)?(m=r.nextSibling,b=0):J0(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)+1):(m=c,b=e.nodeIndex(r)):u?r.hasChildNodes()?(m=r.firstChild,b=1):J0(r.previousSibling)?(m=r.previousSibling,b=r.previousSibling.data.length):(m=c,b=e.nodeIndex(r)):(m=c,b=e.nodeIndex(r)),!u){const k=r.previousSibling,E=r.nextSibling;Et.each(Et.grep(r.childNodes),N=>{Bt(N)&&(N.data=N.data.replace(/\uFEFF/g,""))});let D;for(;D=e.get(o.id+"_"+n);)e.remove(D,!0);if(Bt(E)&&Bt(k)&&!nn.browser.isOpera()){const N=k.data.length;k.appendData(E.data),e.remove(E),m=k,b=N}}return F.some(ct(m,b))}else return F.none()},ek=(e,n)=>{const o=e.createRng();return L2(e,!0,n,o)&&L2(e,!1,n,o)?F.some({range:o,forward:db(n)}):F.none()},H2=(e,n)=>{const o=Q0(e,"start",n),r=Q0(e,"end",n);return sa(o,r.or(o),(c,u)=>{const m=e.createRng();return m.setStart(td(e,c.container()),c.offset()),m.setEnd(td(e,u.container()),u.offset()),{range:m,forward:db(n)}})},V2=(e,n)=>F.from(e.select(n.name)[n.index]).map(o=>{const r=e.createRng();return r.selectNode(o),{range:r,forward:!0}}),U2=(e,n)=>{const o=e.dom;if(n){if(Bf(n))return ek(o,n);if(Pp(n))return SE(o,n);if(K0(n))return H2(o,n);if(Y0(n))return V2(o,n);if(ub(n))return F.some({range:n.rng,forward:db(n)})}return F.none()},xE=(e,n,o)=>W_(e,n,o),TE=(e,n)=>{U2(e,n).each(({range:o,forward:r})=>{e.setRng(o,r)})},Ol=e=>gn(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark",is=(e=>n=>e===n)(fr),Yl=e=>e!==""&&` \f diff --git a/admin-views/dist/assets/Tinymce-0e9d2b18.js.gz b/admin-views/dist/assets/Tinymce-bc39ae84.js.gz similarity index 99% rename from admin-views/dist/assets/Tinymce-0e9d2b18.js.gz rename to admin-views/dist/assets/Tinymce-bc39ae84.js.gz index 20d613a0..73c97d94 100644 Binary files a/admin-views/dist/assets/Tinymce-0e9d2b18.js.gz and b/admin-views/dist/assets/Tinymce-bc39ae84.js.gz differ diff --git a/admin-views/dist/assets/codemirror-45cadb7f.js b/admin-views/dist/assets/codemirror-45cadb7f.js new file mode 100644 index 00000000..c5a0dc02 --- /dev/null +++ b/admin-views/dist/assets/codemirror-45cadb7f.js @@ -0,0 +1,24 @@ +import{o as uu}from"./index-16176cf1.js";var Dn={exports:{}},Ko;function cu(){return Ko||(Ko=1,function(_o,fu){(function(re,Lr){_o.exports=Lr()})(uu,function(){var re=navigator.userAgent,Lr=navigator.platform,He=/gecko\/\d/i.test(re),Nn=/MSIE \d/.test(re),An=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),kr=/Edge\/(\d+)/.exec(re),A=Nn||An||kr,E=A&&(Nn?document.documentMode||6:+(kr||An)[1]),ie=!kr&&/WebKit\//.test(re),Xo=ie&&/Qt\/\d+\.\d+/.test(re),Ge=!kr&&/Chrome\/(\d+)/.exec(re),On=Ge&&+Ge[1],Ce=/Opera\//.test(re),Tr=/Apple Computer/.test(navigator.vendor),Yo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),qo=/PhantomJS/.test(re),Ut=Tr&&(/Mobile\/\w+/.test(re)||navigator.maxTouchPoints>2),Mr=/Android/.test(re),Kt=Ut||Mr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),ye=Ut||/Mac/.test(Lr),Zo=/\bCrOS\b/.test(re),Qo=/win/i.test(Lr),et=Ce&&re.match(/Version\/(\d*\.\d*)/);et&&(et=Number(et[1])),et&&et>=15&&(Ce=!1,ie=!0);var Wn=ye&&(Xo||Ce&&(et==null||et<12.11)),ci=He||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var tt=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ue(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function pe(e,t){return Ue(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=pi(this.onTimeout,this)};_e.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},_e.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function yi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||jo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&mi(e)?!0:t.test(e):mi(e)}function En(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Vo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bi(e){return e.charCodeAt(0)>=768&&Vo.test(e)}function In(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function $o(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var qt=null;function Zt(e,t,i){var r;qt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:qt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:qt=n)}return r??qt}var ea=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=xi(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ve(this,t,i)}}function oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ci(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Qt(e){oe(e),zn(e)}function wi(e){return e.target||e.srcElement}function Gn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ye&&e.ctrlKey&&t==1&&(t=3),t}var ta=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Si;function ra(e){if(Si==null){var t=k("span","​");pe(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Si=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Si?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Li;function ia(e){if(Li!=null)return Li;var t=pe(e,document.createTextNode("AخA")),i=rt(t,0,1).getBoundingClientRect(),r=rt(t,1,2).getBoundingClientRect();return Ue(e),!i||i.left==i.right?!1:Li=r.right-i.right<3}var ki=` + +b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(` +`,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},na=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},la=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ti=null;function oa(e){if(Ti!=null)return Ti;var t=pe(e,k("span","x")),i=t.getBoundingClientRect(),r=rt(t,0,1).getBoundingClientRect();return Ti=Math.abs(i.left-r.left)>1}var Mi={},Ct={};function aa(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Mi[e]=t}function sa(e,t){Ct[e]=t}function Hr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=Pn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Hr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Hr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Di(e,t){t=Hr(t);var i=Mi[t.name];if(!i)return Di(e,"text/plain");var r=i(e,t);if(wt.hasOwnProperty(t.name)){var n=wt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var wt={};function ua(e,t){var i=wt.hasOwnProperty(e)?wt[e]:wt[e]={};nt(t,i)}function lt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ni(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Un(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.post},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t=e.first&&ti?g(i,w(e,i).text.length):fa(t,w(e,t.line).text.length)}function fa(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function _n(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ne.fromSaved=function(e,t,i){return t instanceof Er?new Ne(e,lt(e.mode,t.state),i,t.lookAhead):new Ne(e,lt(e.mode,t),i)},Ne.prototype.save=function(e){var t=e!==!1?lt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(t,this.maxLookAhead):t};function Xn(e,t,i,r){var n=[e.state.modeGen],l={};jn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,jn(e,t.text,f.mode,i,function(c,p){for(var v=h;dc&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;ve.options.maxHighlightLength&<(e.doc.mode,r.state),l=Xn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function jt(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Ne(r,!0,t);var l=ha(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Ne.fromSaved(r,o,l):new Ne(r,Un(r.mode),l);return r.iter(l,t,function(s){Fi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Zn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Qn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=jt(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&Fi(e,t,r,f.pos),f.pos=t.length,h=null):h=Jn(Pi(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;so;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Er?u.lookAhead:0)<=l.modeFrontier))return a;var f=be(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function ca(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Er)||r+n.lookAhead=t:l.to>t);(r||(r=[])).push(new Ir(o,l.from,s?null:l.to))}}return r}function ma(e,t,i){var r;if(e)for(var n=0;n=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var C=0;C0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function el(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||Ii(r,l.marker)<0)&&(r=l.marker)}return r}function nl(e,t,i,r,n){var l=w(e,t),o=Pe&&l.markedSpans;if(o)for(var a=0;a=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Se(e){for(var t;t=il(e);)e=t.find(-1,!0).line;return e}function Ca(e){for(var t;t=zr(e);)e=t.find(1,!0).line;return e}function wa(e){for(var t,i;t=zr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ri(e,t){var i=w(e,t),r=Se(i);return i==r?t:H(r)}function ll(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Xe(e,i))return t;for(;r=zr(i);)i=r.find(1,!0).line;return H(i)+1}function Xe(e,t){var i=Pe&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var St=function(e,t,i){this.text=e,tl(this,t),this.height=i?i(this):1};St.prototype.lineNo=function(){return H(this)},xt(St);function Sa(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),el(e),tl(e,i);var n=r?r(e):1;n!=e.height&&De(e,n)}function La(e){e.parent=null,el(e)}var ka={},Ta={};function ol(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ta:ka;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function al(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Da,ia(e.display.measure)&&(o=Fe(l,e.doc.direction))&&(r.addToken=Aa(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Oa(l,r,Yn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=di(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=di(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ra(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=di(r.pre.className,r.textClass||"")),r}function Ma(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Da(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Na(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",yi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==` +`?(v=f.appendChild(k("span",d[0]=="\r"?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),A&&E<9?f.appendChild(k("span",[v])):f.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,i||r||n||u||l||o){var x=i||"";r&&(x+=r),n&&(x+=n);var b=k("span",[f],x,l);if(o)for(var C in o)o.hasOwnProperty(C)&&C!="style"&&C!="class"&&b.setAttribute(C,o[C]);return e.content.appendChild(b)}e.content.appendChild(f)}}function Na(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;nu&&h.from<=u));d++);if(h.to>=f)return e(i,r,n,l,o,a,s);e(i,r.slice(0,h.to-u),n,l,null,a,s),l=null,r=r.slice(h.to-u),u=h.to}}}function sl(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Oa(e,t,i){var r=e.markedSpans,n=e.text,l=0;if(!r){for(var o=1;os||N.collapsed&&S.to==s&&S.from==s)){if(S.to!=null&&S.to!=s&&c>S.to&&(c=S.to,v=""),N.className&&(p+=" "+N.className),N.css&&(d=(d?d+";":"")+N.css),N.startStyle&&S.from==s&&(y+=" "+N.startStyle),N.endStyle&&S.to==c&&(C||(C=[])).push(N.endStyle,S.to),N.title&&((x||(x={})).title=N.title),N.attributes)for(var P in N.attributes)(x||(x={}))[P]=N.attributes[P];N.collapsed&&(!m||Ii(m.marker,N)<0)&&(m=S)}else S.from>s&&c>S.from&&(c=S.from)}if(C)for(var J=0;J=a)break;for(var de=Math.min(a,c);;){if(f){var ue=s+f.length;if(!m){var K=ue>de?f.slice(0,de-s):f;t.addToken(t,K,h?h+p:p,y,s+K.length==c?v:"",d,x)}if(ue>=de){f=f.slice(de-s),s=de;break}s=ue,y=""}f=n.slice(l,l=i[u++]),h=ol(i[u++],t.cm.options)}}}function ul(e,t,i){this.line=t,this.rest=wa(t),this.size=this.rest?H(W(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Xe(e,t)}function Ur(e,t,i){for(var r=[],n,l=t;l2&&l.push((s.bottom+u.top)/2-i.top)}}l.push(i.bottom-i.top)}}function gl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;ri)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function Ua(e,t){t=Se(t);var i=H(t),r=e.display.externalMeasured=new ul(e.doc,t,i);r.lineN=i;var n=r.built=al(e,r);return r.text=n.pre,pe(e.display.lineMeasure,n.pre),r}function yl(e,t,i,r){return Oe(e,kt(e,t),i,r)}function _i(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(l=s-a,n=l-1,t>=s&&(o="right")),n!=null){if(r=e[u+2],a==s&&i==(r.insertLeft?"left":"right")&&(o=i),i=="left"&&n==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],o="left";if(i=="right"&&n==s-a)for(;u=0&&(i=e[n]).left==i.right;n--);return i}function _a(e,t,i,r){var n=bl(t.map,i,r),l=n.node,o=n.start,a=n.end,s=n.collapse,u;if(l.nodeType==3){for(var f=0;f<4;f++){for(;o&&bi(t.line.text.charAt(n.coverStart+o));)--o;for(;n.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=l.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=l.getBoundingClientRect()}if(A&&E<9&&!o&&(!u||!u.left&&!u.right)){var d=l.parentNode.getClientRects()[0];d?u={left:d.left,right:d.left+Mt(e.display),top:d.top,bottom:d.bottom}:u=ml}for(var c=u.top-t.rect.top,p=u.bottom-t.rect.top,v=(c+p)/2,y=t.view.measure.heights,m=0;m=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return o(u=="before"?s-1:s,u=="before");function f(p,v,y){var m=a[v],x=m.level==1;return o(y?p-1:p,x!=y)}var h=Zt(a,s,u),d=qt,c=f(s,h,u=="before");return d!=null&&(c.other=f(s,d,u!="before")),c}function kl(e,t){var i=0;t=D(e.doc,t),e.options.lineWrapping||(i=Mt(e.display)*t.ch);var r=w(e.doc,t.line),n=Ee(r)+Kr(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Yi(e,t,i,r,n){var l=g(e,t,i);return l.xRel=n,r&&(l.outside=r),l}function qi(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Yi(r.first,0,null,-1,-1);var n=at(r,i),l=r.first+r.size-1;if(n>l)return Yi(r.first+r.size-1,w(r,l).text.length,null,1,1);t<0&&(t=0);for(var o=w(r,n);;){var a=Ya(e,o,n,t,i),s=xa(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==n)return u;o=w(r,n=u.line)}}function Tl(e,t,i,r){r-=Xi(t);var n=t.text.length,l=Yt(function(o){return Oe(e,i,o-1).bottom<=r},n,0);return n=Yt(function(o){return Oe(e,i,o).top>r},l,n),{begin:l,end:n}}function Ml(e,t,i,r){i||(i=kt(e,t));var n=_r(e,t,Oe(e,i,r),"line").top;return Tl(e,t,i,n)}function Zi(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function Ya(e,t,i,r,n){n-=Ee(t);var l=kt(e,t),o=Xi(t),a=0,s=t.text.length,u=!0,f=Fe(t,e.doc.direction);if(f){var h=(e.options.lineWrapping?Za:qa)(e,t,i,l,f,r,n);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var d=null,c=null,p=Yt(function(L){var S=Oe(e,l,L);return S.top+=o,S.bottom+=o,Zi(S,r,n,!1)?(S.top<=n&&S.left<=r&&(d=L,c=S),!0):!1},a,s),v,y,m=!1;if(c){var x=r-c.left=C.bottom?1:0}return p=In(t.text,p,1),Yi(i,p,y,m,r-v)}function qa(e,t,i,r,n,l,o){var a=Yt(function(h){var d=n[h],c=d.level!=1;return Zi(Le(e,g(i,c?d.to:d.from,c?"before":"after"),"line",t,r),l,o,!0)},0,n.length-1),s=n[a];if(a>0){var u=s.level!=1,f=Le(e,g(i,u?s.from:s.to,u?"after":"before"),"line",t,r);Zi(f,l,o,!0)&&f.top>o&&(s=n[a-1])}return s}function Za(e,t,i,r,n,l,o){var a=Tl(e,t,r,o),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var f=null,h=null,d=0;d=u||c.to<=s)){var p=c.level!=1,v=Oe(e,r,p?Math.min(u,c.to)-1:Math.max(s,c.from)).right,y=vy)&&(f=c,h=y)}}return f||(f=n[n.length-1]),f.fromu&&(f={from:f.from,to:u,level:f.level}),f}var ut;function Tt(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ut==null){ut=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ut.appendChild(document.createTextNode("x")),ut.appendChild(k("br"));ut.appendChild(document.createTextNode("x"))}pe(e.measure,ut);var i=ut.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Ue(e.measure),i||1}function Mt(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),i=k("pre",[t],"CodeMirror-line-like");pe(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Qi(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,l=t.gutters.firstChild,o=0;l;l=l.nextSibling,++o){var a=e.display.gutterSpecs[o].className;i[a]=l.offsetLeft+l.clientLeft+n,r[a]=l.clientWidth}return{fixedPos:Ji(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ji(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dl(e){var t=Tt(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Mt(e.display)-3);return function(n){if(Xe(e.doc,n))return 0;var l=0;if(n.widgets)for(var o=0;o0&&(u=w(e.doc,s.line).text).length==s.ch){var f=be(u,u.length,e.options.tabSize)-u.length;s=g(s.line,Math.max(0,Math.round((l-vl(e.display).left)/Mt(e.display))-f))}return s}function ht(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;rt)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Pe&&Ri(e.doc,t)n.viewFrom?qe(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)qe(e);else if(t<=n.viewFrom){var l=Yr(e,i,i+r,1);l?(n.view=n.view.slice(l.index),n.viewFrom=l.lineN,n.viewTo+=r):qe(e)}else if(i>=n.viewTo){var o=Yr(e,t,t,-1);o?(n.view=n.view.slice(0,o.index),n.viewTo=o.lineN):qe(e)}else{var a=Yr(e,t,t,-1),s=Yr(e,i,i+r,1);a&&s?(n.view=n.view.slice(0,a.index).concat(Ur(e,a.lineN,s.lineN)).concat(n.view.slice(s.index)),n.viewTo+=r):qe(e)}var u=n.externalMeasured;u&&(i=n.lineN&&t=r.viewTo)){var l=r.view[ht(e,t)];if(l.node!=null){var o=l.changes||(l.changes=[]);$(o,i)==-1&&o.push(i)}}}function qe(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Yr(e,t,i,r){var n=ht(e,t),l,o=e.display.view;if(!Pe||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var a=e.display.viewFrom,s=0;s0){if(n==o.length-1)return null;l=a+o[n].size-t,n++}else l=a-t;t+=l,i+=l}for(;Ri(e.doc,i)!=i;){if(n==(r<0?0:o.length-1))return null;i+=r*o[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function Qa(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Ur(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Ur(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,ht(e,i)))),r.viewTo=i}function Nl(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||s.to().line0?o:e.defaultCharWidth())+"px"}if(r.other){var a=i.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function Ja(e,t,i){var r=e.display,n=e.doc,l=document.createDocumentFragment(),o=vl(e.display),a=o.left,s=Math.max(r.sizerWidth,st(e)-r.sizer.offsetLeft)-o.right,u=n.direction=="ltr";function f(b,C,L,S){C<0&&(C=0),C=Math.round(C),S=Math.round(S),l.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+b+`px; + top: `+C+"px; width: "+(L??s-b)+`px; + height: `+(S-C)+"px"))}function h(b,C,L){var S=w(n,b),N=S.text.length,P,J;function R(K,fe){return Xr(e,g(b,K),"div",S,fe)}function de(K,fe,V){var X=Ml(e,S,null,K),_=fe=="ltr"==(V=="after")?"left":"right",B=V=="after"?X.begin:X.end-(/\s/.test(S.text.charAt(X.end-1))?2:1);return R(B,_)[_]}var ue=Fe(S,n.direction);return $o(ue,C||0,L??N,function(K,fe,V,X){var _=V=="ltr",B=R(K,_?"left":"right"),he=R(fe-1,_?"right":"left"),zt=C==null&&K==0,$e=L==null&&fe==N,te=X==0,We=!ue||X==ue.length-1;if(he.top-B.top<=3){var j=(u?zt:$e)&&te,Tn=(u?$e:zt)&&We,ze=j?a:(_?B:he).left,gt=Tn?s:(_?he:B).right;f(ze,B.top,gt-ze,B.bottom)}else{var yt,le,Gt,Mn;_?(yt=u&&zt&&te?a:B.left,le=u?s:de(K,V,"before"),Gt=u?a:de(fe,V,"after"),Mn=u&&$e&&We?s:he.right):(yt=u?de(K,V,"before"):a,le=!u&&zt&&te?s:B.right,Gt=!u&&$e&&We?a:he.left,Mn=u?de(fe,V,"after"):s),f(yt,B.top,le-yt,B.bottom),B.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Dt(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ol(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||tn(e))}function en(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Dt(e))},100)}function tn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(G(e,"focus",e,t),e.state.focused=!0,it(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),ie&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),$i(e))}function Dt(e,t){e.state.delayingBlurEvent||(e.state.focused&&(G(e,"blur",e,t),e.state.focused=!1,tt(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Zr(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,l=0,o=0;o.005||c<-.005)&&(ne.display.sizerWidth){var v=Math.ceil(f/Mt(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function Wl(e){if(e.widgets)for(var t=0;t=o&&(l=at(t,Ee(w(t,s))-e.wrapper.clientHeight),o=s)}return{from:l,to:Math.max(o,l+1)}}function ja(e,t){if(!Y(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,l=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(n=!1),n!=null&&!qo){var o=k("div","​",null,`position: absolute; + top: `+(t.top-i.viewOffset-Kr(e.display))+`px; + height: `+(t.bottom-t.top+Ae(e)+i.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(n),e.display.lineSpace.removeChild(o)}}}function Va(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?g(t.line,t.ch+1,"before"):t,t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var o=!1,a=Le(e,t),s=!i||i==t?a:Le(e,i);n={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=rn(e,n),f=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(lr(e,u.scrollTop),Math.abs(e.doc.scrollTop-f)>1&&(o=!0)),u.scrollLeft!=null&&(ct(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return n}function $a(e,t){var i=rn(e,t);i.scrollTop!=null&&lr(e,i.scrollTop),i.scrollLeft!=null&&ct(e,i.scrollLeft)}function rn(e,t){var i=e.display,r=Tt(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=Ki(e),o={};t.bottom-t.top>l&&(t.bottom=t.top+l);var a=e.doc.height+Ui(i),s=t.topa-r;if(t.topn+l){var f=Math.min(t.top,(u?a:t.bottom)-l);f!=n&&(o.scrollTop=f)}var h=e.options.fixedGutter?0:i.gutters.offsetWidth,d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-h,c=st(e)-i.gutters.offsetWidth,p=t.right-t.left>c;return p&&(t.right=t.left+c),t.left<10?o.scrollLeft=0:t.leftc+d-3&&(o.scrollLeft=t.right+(p?0:10)-c),o}function nn(e,t){t!=null&&(Jr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Nt(e){Jr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function nr(e,t,i){(t!=null||i!=null)&&Jr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function es(e,t){Jr(e),e.curOp.scrollToPos=t}function Jr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=kl(e,t.from),r=kl(e,t.to);Hl(e,i,r,t.margin)}}function Hl(e,t,i,r){var n=rn(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});nr(e,n.scrollLeft,n.scrollTop)}function lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(He||on(e,{top:t}),Fl(e,t,!0),He&&on(e),sr(e,100))}function Fl(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ct(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Bl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function or(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ui(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+Ae(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var dt=function(e,t,i){this.cm=i;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),T(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),T(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&E<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};dt.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},dt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},dt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},dt.prototype.zeroWidthHack=function(){var e=ye&&!Yo?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new _e,this.disableVert=new _e},dt.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},dt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ar=function(){};ar.prototype.update=function(){return{bottom:0,right:0}},ar.prototype.setScrollLeft=function(){},ar.prototype.setScrollTop=function(){},ar.prototype.clear=function(){};function At(e,t){t||(t=or(e));var i=e.display.barWidth,r=e.display.barHeight;Pl(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),Pl(e,or(e)),i=e.display.barWidth,r=e.display.barHeight}function Pl(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var El={native:dt,null:ar};function Il(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&tt(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new El[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),T(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?ct(e,t):lr(e,t)},e),e.display.scrollbars.addClass&&it(e.display.wrapper,e.display.scrollbars.addClass)}var ts=0;function pt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ts,markArrays:null},Wa(e.curOp)}function vt(e){var t=e.curOp;t&&Fa(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ns(e){e.updatedDisplay=e.mustUpdate&&ln(e.cm,e.update)}function ls(e){var t=e.cm,i=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=or(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=yl(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+Ae(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-st(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function os(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var i=+new Date+e.options.workTime,r=jt(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var o=l.styles,a=l.text.length>e.options.maxHighlightLength?lt(t.mode,r.state):null,s=Xn(e,l,r,!0);a&&(r.state=a),l.styles=s.styles;var u=l.styleClasses,f=s.classes;f?l.styleClasses=f:u&&(l.styleClasses=null);for(var h=!o||o.length!=l.styles.length||u!=f&&(!u||!f||u.bgClass!=f.bgClass||u.textClass!=f.textClass),d=0;!h&&di)return sr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&ce(e,function(){for(var l=0;l=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Nl(e)==0)return!1;zl(e)&&(qe(e),t.dims=Qi(e));var n=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFromo&&i.viewTo-o<20&&(o=Math.min(n,i.viewTo)),Pe&&(l=Ri(e.doc,l),o=ll(e.doc,o));var a=l!=i.viewFrom||o!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Qa(e,l,o),i.viewOffset=Ee(w(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var s=Nl(e);if(!a&&s==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var u=fs(e);return s>4&&(i.lineDiv.style.display="none"),cs(e,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,hs(u),Ue(i.cursorDiv),Ue(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,a&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,sr(e,400)),i.updateLineNumbers=null,!0}function Rl(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==st(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Ui(e.display)-Ki(e),i.top)}),t.visible=Qr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Qr(e.display,e.doc,i));if(!ln(e,t))break;Zr(e);var n=or(e);ir(e),At(e,n),sn(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function on(e,t){var i=new jr(e,t);if(ln(e,i)){Zr(e),Rl(e,i);var r=or(e);ir(e),At(e,r),sn(e,r),i.finish()}}function cs(e,t,i){var r=e.display,n=e.options.lineNumbers,l=r.lineDiv,o=l.firstChild;function a(p){var v=p.nextSibling;return ie&&ye&&e.display.currentWheelTarget==p?p.style.display="none":p.parentNode.removeChild(p),v}for(var s=r.view,u=r.viewFrom,f=0;f-1&&(c=!1),fl(e,h,u,i)),c&&(Ue(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Oi(e.options,u)))),o=h.node.nextSibling}u+=h.size}for(;o;)o=a(o)}function an(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",q(e,"gutterChanged",e)}function sn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ae(e)+"px"}function Bl(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ji(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,l=r+"px",o=0;o=105&&(n.wrapper.style.clipPath="inset(0px)"),n.wrapper.setAttribute("translate","no"),A&&E<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),!ie&&!(He&&Kt)&&(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=un(r.gutters,r.lineNumbers),Gl(n),i.init(n)}var Vr=0,Re=null;A?Re=-.53:He?Re=15:Ge?Re=-.7:Tr&&(Re=-1/3);function Ul(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function ps(e){var t=Ul(e);return t.x*=Re,t.y*=Re,t}function Kl(e,t){Ge&&On==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Ul(t),r=i.x,n=i.y,l=Re;t.deltaMode===0&&(r=t.deltaX,n=t.deltaY,l=1);var o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||n&&u){if(n&&ye&&ie){e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d=0&&M(e,r.to())<=0)return i}return-1};var O=function(e,t){this.anchor=e,this.head=t};O.prototype.from=function(){return Pr(this.anchor,this.head)},O.prototype.to=function(){return Fr(this.anchor,this.head)},O.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ke(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(d,c){return M(d.from(),c.from())}),i=$(t,n);for(var l=1;l0:s>=0){var u=Pr(a.from(),o.from()),f=Fr(a.to(),o.to()),h=a.empty()?o.from()==o.head:a.from()==a.head;l<=i&&--i,t.splice(--l,2,new O(h?f:u,h?u:f))}}return new ge(t,i)}function Ze(e,t){return new ge([new O(e,t||e)],0)}function Qe(e){return e.text?g(e.from.line+e.text.length-1,W(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function _l(e,t){if(M(e,t.from)<0)return e;if(M(e,t.to)<=0)return Qe(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Qe(t).ch-t.to.ch),g(i,r)}function fn(e,t){for(var i=[],r=0;r1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}q(e,"change",e,t)}function Je(e,t,i){function r(n,l,o){if(n.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),W(e.done)}function Jl(e,t,i,r){var n=e.history;n.undone.length=0;var l=+new Date,o,a;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=ys(n,n.lastOp==r)))a=W(o.changes),M(t.from,t.to)==0&&M(t.from,a.to)==0?a.to=Qe(t):o.changes.push(dn(e,t));else{var s=W(n.done);for((!s||!s.ranges)&&ei(e.sel,n.done),o={changes:[dn(e,t)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=l,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,a||G(e,"historyAdded")}function ms(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function bs(e,t,i,r){var n=e.history,l=r&&r.origin;i==n.lastSelOp||l&&n.lastSelOrigin==l&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==l||ms(e,l,W(n.done),t))?n.done[n.done.length-1]=t:ei(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=l,n.lastSelOp=i,r&&r.clearRedo!==!1&&Ql(n.undone)}function ei(e,t){var i=W(t);i&&i.ranges&&i.equals(e)||t.push(e)}function jl(e,t,i,r){var n=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(o){o.markedSpans&&((n||(n=t["spans_"+e.id]={}))[l]=o.markedSpans),++l})}function xs(e){if(!e)return null;for(var t,i=0;i-1&&(W(a)[h]=u[h],delete u[h])}}return r}function pn(e,t,i,r){if(r){var n=e.anchor;if(i){var l=M(t,n)<0;l!=M(i,n)<0?(n=t,t=i):l!=M(t,i)<0&&(t=i)}return new O(n,t)}else return new O(i||t,t)}function ti(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),ee(e,new ge([pn(e.sel.primary(),t,i,n)],0),r)}function $l(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:a.to>t.ch))){if(n&&(G(s,"beforeCursorEnter"),s.explicitlyCleared))if(l.markedSpans){--o;continue}else break;if(!s.atomic)continue;if(i){var h=s.find(r<0?1:-1),d=void 0;if((r<0?f:u)&&(h=lo(e,h,-r,h&&h.line==t.line?l:null)),h&&h.line==t.line&&(d=M(h,i))&&(r<0?d<0:d>0))return Wt(e,h,t,r,n)}var c=s.find(r<0?-1:1);return(r<0?u:f)&&(c=lo(e,c,r,c.line==t.line?l:null)),c?Wt(e,c,t,r,n):null}}return t}function ii(e,t,i,r,n){var l=r||1,o=Wt(e,t,i,l,n)||!n&&Wt(e,t,i,l,!0)||Wt(e,t,i,-l,n)||!n&&Wt(e,t,i,-l,!0);return o||(e.cantEdit=!0,g(e.first,0))}function lo(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?D(e,g(t.line-1)):null:i>0&&t.ch==(r||w(e,t.line)).text.length?t.line=0;--n)so(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else so(e,t)}}function so(e,t){if(!(t.text.length==1&&t.text[0]==""&&M(t.from,t.to)==0)){var i=fn(e,t);Jl(e,t,i,e.cm?e.cm.curOp.id:NaN),hr(e,t,i,Ei(e,t));var r=[];Je(e,function(n,l){!l&&$(r,n.history)==-1&&(co(n.history,t),r.push(n.history)),hr(n,t,null,Ei(n,t))})}}function ni(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,l,o=e.sel,a=t=="undo"?n.done:n.undone,s=t=="undo"?n.undone:n.done,u=0;u=0;--c){var p=d(c);if(p)return p.v}}}}function uo(e,t){if(t!=0&&(e.first+=t,e.sel=new ge(Or(e.sel.ranges,function(n){return new O(g(n.anchor.line+t,n.anchor.ch),g(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){ae(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())){if(t.from.linel&&(t={from:t.from,to:g(l,w(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ot(e,t.from,t.to),i||(i=fn(e,t)),e.cm?Ss(e.cm,t,r):cn(e,t,r),ri(e,i,Me),e.cantEdit&&ii(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ss(e,t,i){var r=e.doc,n=e.display,l=t.from,o=t.to,a=!1,s=l.line;e.options.lineWrapping||(s=H(Se(w(r,l.line))),r.iter(s,o.line+1,function(c){if(c==n.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Bn(e),cn(r,t,i,Dl(e)),e.options.lineWrapping||(r.iter(s,l.line+t.text.length,function(c){var p=Gr(c);p>n.maxLineLength&&(n.maxLine=c,n.maxLineLength=p,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ca(r,l.line),sr(e,400);var u=t.text.length-(o.line-l.line)-1;t.full?ae(e):l.line==o.line&&t.text.length==1&&!Yl(e.doc,t)?Ye(e,l.line,"text"):ae(e,l.line,o.line+1,u);var f=xe(e,"changes"),h=xe(e,"change");if(h||f){var d={from:l,to:o,text:t.text,removed:t.removed,origin:t.origin};h&&q(e,"change",e,d),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Ft(e,t,i,r,n){var l;r||(r=i),M(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Ht(e,{from:i,to:r,text:t,origin:n})}function fo(e,t,i,r){i1||!(this.children[0]instanceof dr))){var a=[];this.collapse(a),this.children=[new dr(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=n.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=f,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&ae(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&io(e.doc)),e&&q(e,"markerCleared",e,this,r,n),t&&vt(e),this.parent&&this.parent.clear()}},je.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n0||o==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=bt("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(nl(e,t.line,t,i,l)||t.line!=i.line&&nl(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");pa()}l.addToHistory&&Jl(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,i.line+1,function(h){s&&l.collapsed&&!s.options.lineWrapping&&Se(h)==s.display.maxLine&&(u=!0),l.collapsed&&a!=t.line&&De(h,0),ga(h,new Ir(l,a==t.line?t.ch:null,a==i.line?i.ch:null),e.cm&&e.cm.curOp),++a}),l.collapsed&&e.iter(t.line,i.line+1,function(h){Xe(e,h)&&De(h,0)}),l.clearOnEnter&&T(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(da(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++vo,l.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),l.collapsed)ae(s,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var f=t.line;f<=i.line;f++)Ye(s,f,"text");l.atomic&&io(s.doc),q(s,"markerAdded",s,l)}return l}var gr=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;s--)Ht(this,r[s]);a?to(this,a):this.cm&&Nt(this.cm)}),undo:Q(function(){ni(this,"undo")}),redo:Q(function(){ni(this,"redo")}),undoSelection:Q(function(){ni(this,"undo",!0)}),redoSelection:Q(function(){ni(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=D(this,e),t=D(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(l){var o=l.markedSpans;if(o)for(var a=0;a=s.to||s.from==null&&n!=e.line||s.from!=null&&n==t.line&&s.from>=t.ch)&&(!i||i(s.marker))&&r.push(s.marker.parent||s.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=l,++i}),D(this,g(i,t))},indexFromPos:function(e){e=D(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),ri(t.doc,Ze(i,i)),h)for(var d=0;d=0;a--)Ft(e.doc,"",r[a].from,r[a].to,"+delete");Nt(e)})}function gn(e,t,i){var r=In(e.text,t+i,i);return r<0||r>e.text.length?null:r}function yn(e,t,i){var r=gn(e,t.ch,i);return r==null?null:new g(t.line,r,i<0?"after":"before")}function mn(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var l=Fe(i,t.doc.direction);if(l){var o=n<0?W(l):l[0],a=n<0==(o.level==1),s=a?"after":"before",u;if(o.level>0||t.doc.direction=="rtl"){var f=kt(t,i);u=n<0?i.text.length-1:0;var h=Oe(t,f,u).top;u=Yt(function(d){return Oe(t,f,d).top==h},n<0==(o.level==1)?o.from:o.to-1,u),s=="before"&&(u=gn(i,u,1))}else u=n<0?o.to:o.from;return new g(r,u,s)}}return new g(r,n<0?i.text.length:0,n<0?"before":"after")}function Is(e,t,i,r){var n=Fe(t,e.doc.direction);if(!n)return yn(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=Zt(n,i.ch,i.sticky),o=n[l];if(e.doc.direction=="ltr"&&o.level%2==0&&(r>0?o.to>i.ch:o.from=o.from&&d>=f.begin)){var c=h?"before":"after";return new g(i.line,d,c)}}var p=function(m,x,b){for(var C=function(P,J){return J?new g(i.line,a(P,1),"before"):new g(i.line,P,"after")};m>=0&&m0==(L.level!=1),N=S?b.begin:a(b.end,-1);if(L.from<=N&&N0?f.end:a(f.begin,-1);return y!=null&&!(r>0&&y==t.text.length)&&(v=p(r>0?0:n.length-1,r,u(y)),v)?v:null}var br={selectAll:oo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Me)},killLine:function(e){return It(e,function(t){if(t.empty()){var i=w(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)n=new g(n.line,n.ch+1),e.replaceRange(l.charAt(n.ch-1)+l.charAt(n.ch-2),g(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var o=w(e.doc,n.line-1).text;o&&(n=new g(n.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),g(n.line-1,o.length-1),n,"+transpose"))}}i.push(new O(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return ce(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&M(t,this.pos)==0&&i==this.button};var Cr,wr;function _s(e,t){var i=+new Date;return wr&&wr.compare(i,e,t)?(Cr=wr=null,"triple"):Cr&&Cr.compare(i,e,t)?(wr=new xn(i,e,t),Cr=null,"double"):(Cr=new xn(i,e,t),wr=null,"single")}function Oo(e){var t=this,i=t.display;if(!(Y(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Ie(i,e)){ie||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!Cn(t,e)){var r=ft(t,e),n=Gn(e),l=r?_s(r,n):"single";Dr(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Xs(t,n,r,l,e))&&(n==1?r?qs(t,r,l,e):wi(e)==i.scroller&&oe(e):n==2?(r&&ti(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(ci?t.display.input.onContextMenu(e):en(t)))}}}function Xs(e,t,i,r,n){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,xr(e,wo(l,n),n,function(o){if(typeof o=="string"&&(o=br[o]),!o)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=o(e,i)!=Nr}finally{e.state.suppressEdits=!1}return a})}function Ys(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var l=Zo?i.shiftKey&&i.metaKey:i.altKey;n.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=ye?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(ye?i.altKey:i.ctrlKey)),n}function qs(e,t,i,r){A?setTimeout(pi(Ol,e),0):e.curOp.focus=me(we(e));var n=Ys(e,i,r),l=e.doc.sel,o;e.options.dragDrop&&ta&&!e.isReadOnly()&&i=="single"&&(o=l.contains(t))>-1&&(M((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(M(o.to(),t)>0||t.xRel<0)?Zs(e,r,t,n):Qs(e,r,t,n)}function Zs(e,t,i,r){var n=e.display,l=!1,o=Z(e,function(u){ie&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:en(e)),ve(n.wrapper.ownerDocument,"mouseup",o),ve(n.wrapper.ownerDocument,"mousemove",a),ve(n.scroller,"dragstart",s),ve(n.scroller,"drop",o),l||(oe(u),r.addNew||ti(e.doc,i,null,null,r.extend),ie&&!Tr||A&&E==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),a=function(u){l=l||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return l=!0};ie&&(n.scroller.draggable=!0),e.state.draggingText=o,o.copy=!r.moveOnDrag,T(n.wrapper.ownerDocument,"mouseup",o),T(n.wrapper.ownerDocument,"mousemove",a),T(n.scroller,"dragstart",s),T(n.scroller,"drop",o),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function Wo(e,t,i){if(i=="char")return new O(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new O(g(t.line,0),D(e.doc,g(t.line+1,0)));var r=i(e,t);return new O(r.from,r.to)}function Qs(e,t,i,r){A&&en(e);var n=e.display,l=e.doc;oe(t);var o,a,s=l.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=l.sel.contains(i),a>-1?o=u[a]:o=new O(i,i)):(o=l.sel.primary(),a=l.sel.primIndex),r.unit=="rectangle")r.addNew||(o=new O(i,i)),i=ft(e,t,!0,!0),a=-1;else{var f=Wo(e,i,r.unit);r.extend?o=pn(o,f.anchor,f.head,r.extend):o=f}r.addNew?a==-1?(a=u.length,ee(l,ke(e,u.concat([o]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ee(l,ke(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=l.sel):vn(l,a,o,vi):(a=0,ee(l,new ge([o],0),vi),s=l.sel);var h=i;function d(b){if(M(h,b)!=0)if(h=b,r.unit=="rectangle"){for(var C=[],L=e.options.tabSize,S=be(w(l,i.line).text,i.ch,L),N=be(w(l,b.line).text,b.ch,L),P=Math.min(S,N),J=Math.max(S,N),R=Math.min(i.line,b.line),de=Math.min(e.lastLine(),Math.max(i.line,b.line));R<=de;R++){var ue=w(l,R).text,K=gi(ue,P,L);P==J?C.push(new O(g(R,K),g(R,K))):ue.length>K&&C.push(new O(g(R,K),g(R,gi(ue,J,L))))}C.length||C.push(new O(i,i)),ee(l,ke(e,s.ranges.slice(0,a).concat(C),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(b)}else{var fe=o,V=Wo(e,b,r.unit),X=fe.anchor,_;M(V.anchor,X)>0?(_=V.head,X=Pr(fe.from(),V.anchor)):(_=V.anchor,X=Fr(fe.to(),V.head));var B=s.ranges.slice(0);B[a]=Js(e,new O(D(l,X),_)),ee(l,ke(e,B,a),vi)}}var c=n.wrapper.getBoundingClientRect(),p=0;function v(b){var C=++p,L=ft(e,b,!0,r.unit=="rectangle");if(L)if(M(L,h)!=0){e.curOp.focus=me(we(e)),d(L);var S=Qr(n,l);(L.line>=S.to||L.linec.bottom?20:0;N&&setTimeout(Z(e,function(){p==C&&(n.scroller.scrollTop+=N,v(b))}),50)}}function y(b){e.state.selectingText=!1,p=1/0,b&&(oe(b),n.input.focus()),ve(n.wrapper.ownerDocument,"mousemove",m),ve(n.wrapper.ownerDocument,"mouseup",x),l.history.lastSelOrigin=null}var m=Z(e,function(b){b.buttons===0||!Gn(b)?y(b):v(b)}),x=Z(e,y);e.state.selectingText=x,T(n.wrapper.ownerDocument,"mousemove",m),T(n.wrapper.ownerDocument,"mouseup",x)}function Js(e,t){var i=t.anchor,r=t.head,n=w(e.doc,i.line);if(M(i,r)==0&&i.sticky==r.sticky)return t;var l=Fe(n);if(!l)return t;var o=Zt(l,i.ch,i.sticky),a=l[o];if(a.from!=i.ch&&a.to!=i.ch)return t;var s=o+(a.from==i.ch==(a.level!=1)?0:1);if(s==0||s==l.length)return t;var u;if(r.line!=i.line)u=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var f=Zt(l,r.ch,r.sticky),h=f-o||(r.ch-i.ch)*(a.level==1?-1:1);f==s-1||f==s?u=h<0:u=h>0}var d=l[s+(u?-1:0)],c=u==(d.level==1),p=c?d.from:d.to,v=c?"after":"before";return i.ch==p&&i.sticky==v?t:new O(new g(i.line,p,v),r)}function Ho(e,t,i,r){var n,l;if(t.touches)n=t.touches[0].clientX,l=t.touches[0].clientY;else try{n=t.clientX,l=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&oe(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(l>a.bottom||!xe(e,i))return Ci(t);l-=a.top-o.viewOffset;for(var s=0;s=n){var f=at(e.doc,l),h=e.display.gutterSpecs[s];return G(e,i,e,f,h.className,t),Ci(t)}}}function Cn(e,t){return Ho(e,t,"gutterClick",!0)}function Fo(e,t){Ie(e.display,t)||js(e,t)||Y(e,t,"contextmenu")||ci||e.display.input.onContextMenu(t)}function js(e,t){return xe(e,"gutterContextMenu")?Ho(e,t,"gutterContextMenu",!1):!1}function Po(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),rr(e)}var Rt={toString:function(){return"CodeMirror.Init"}},Eo={},si={};function Vs(e){var t=e.optionHandlers;function i(r,n,l,o){e.defaults[r]=n,l&&(t[r]=o?function(a,s,u){u!=Rt&&l(a,s,u)}:l)}e.defineOption=i,e.Init=Rt,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,hn(r)},!0),i("indentUnit",2,hn,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){fr(r),rr(r),ae(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var l=[],o=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var f=s.text.indexOf(n,u);if(f==-1)break;u=f+n.length,l.push(g(o,f))}o++});for(var a=l.length-1;a>=0;a--)Ft(r.doc,n,l[a],g(l[a].line,l[a].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,l){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),l!=Rt&&r.refresh()}),i("specialCharPlaceholder",Ma,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",Kt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!Qo),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Po(r),ur(r)},!0),i("keyMap","default",function(r,n,l){var o=oi(n),a=l!=Rt&&oi(l);a&&a.detach&&a.detach(r,o),o.attach&&o.attach(r,a||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,eu,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=un(n,r.options.lineNumbers),ur(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?Ji(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return At(r)},!0),i("scrollbarStyle","native",function(r){Il(r),At(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=un(r.options.gutters,n),ur(r)},!0),i("firstLineNumber",1,ur,!0),i("lineNumberFormatter",function(r){return r},ur,!0),i("showCursorWhenSelecting",!1,ir,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(Dt(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,$s),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,ir,!0),i("singleCursorHeightPerLine",!0,ir,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,fr,!0),i("addModeClass",!1,fr,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,fr,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function $s(e,t,i){var r=i&&i!=Rt;if(!t!=!r){var n=e.display.dragFunctions,l=t?T:ve;l(e.display.scroller,"dragstart",n.start),l(e.display.scroller,"dragenter",n.enter),l(e.display.scroller,"dragover",n.over),l(e.display.scroller,"dragleave",n.leave),l(e.display.scroller,"drop",n.drop)}}function eu(e){e.options.lineWrapping?(it(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(tt(e.display.wrapper,"CodeMirror-wrap"),zi(e)),ji(e),ae(e),rr(e),setTimeout(function(){return At(e)},100)}function I(e,t){var i=this;if(!(this instanceof I))return new I(e,t);this.options=t=t?nt(t):{},nt(Eo,t,!1);var r=t.value;typeof r=="string"?r=new se(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new I.inputStyles[t.inputStyle](this),l=this.display=new ds(e,r,n,t);l.wrapper.CodeMirror=this,Po(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Il(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new _e,keySeq:null,specialChars:null},t.autofocus&&!Kt&&l.input.focus(),A&&E<11&&setTimeout(function(){return i.display.input.reset(!0)},20),tu(this),Ws(),pt(this),this.curOp.forceUpdate=!0,ql(this,r),t.autofocus&&!Kt||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&tn(i)},20):Dt(this);for(var o in si)si.hasOwnProperty(o)&&si[o](this,t[o],Rt);zl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}T(t.scroller,"touchstart",function(s){if(!Y(e,s)&&!l(s)&&!Cn(e,s)){t.input.ensurePolled(),clearTimeout(i);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),T(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),T(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Ie(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var f=e.coordsChar(t.activeTouch,"page"),h;!u.prev||o(u,u.prev)?h=new O(f,f):!u.prev.prev||o(u,u.prev.prev)?h=e.findWordAt(f):h=new O(g(f.line,0),D(e.doc,g(f.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),oe(s)}n()}),T(t.scroller,"touchcancel",n),T(t.scroller,"scroll",function(){t.scroller.clientHeight&&(lr(e,t.scroller.scrollTop),ct(e,t.scroller.scrollLeft,!0),G(e,"scroll",e))}),T(t.scroller,"mousewheel",function(s){return Kl(e,s)}),T(t.scroller,"DOMMouseScroll",function(s){return Kl(e,s)}),T(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Y(e,s)||Qt(s)},over:function(s){Y(e,s)||(Os(e,s),Qt(s))},start:function(s){return As(e,s)},drop:Z(e,Ns),leave:function(s){Y(e,s)||mo(e)}};var a=t.input.getField();T(a,"keyup",function(s){return No.call(e,s)}),T(a,"keydown",Z(e,Do)),T(a,"keypress",Z(e,Ao)),T(a,"focus",function(s){return tn(e,s)}),T(a,"blur",function(s){return Dt(e,s)})}var wn=[];I.defineInitHook=function(e){return wn.push(e)};function Sr(e,t,i,r){var n=e.doc,l;i==null&&(i="add"),i=="smart"&&(n.mode.indent?l=jt(e,t).state:i="prev");var o=e.options.tabSize,a=w(n,t),s=be(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],f;if(!r&&!/\S/.test(a.text))f=0,i="not";else if(i=="smart"&&(f=n.mode.indent(l,a.text.slice(u.length),a.text),f==Nr||f>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?f=be(w(n,t-1).text,null,o):f=0:i=="add"?f=s+e.options.indentUnit:i=="subtract"?f=s-e.options.indentUnit:typeof i=="number"&&(f=s+i),f=Math.max(0,f);var h="",d=0;if(e.options.indentWithTabs)for(var c=Math.floor(f/o);c;--c)d+=o,h+=" ";if(do,s=ki(t),u=null;if(a&&r.ranges.length>1)if(Te&&Te.text.join(` +`)==t){if(r.ranges.length%Te.text.length==0){u=[];for(var f=0;f=0;d--){var c=r.ranges[d],p=c.from(),v=c.to();c.empty()&&(i&&i>0?p=g(p.line,p.ch-i):e.state.overwrite&&!a?v=g(v.line,Math.min(w(l,v.line).text.length,v.ch+W(s).length)):a&&Te&&Te.lineWise&&Te.text.join(` +`)==s.join(` +`)&&(p=v=g(p.line,0)));var y={from:p,to:v,text:u?u[d%u.length]:s,origin:n||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Ht(e.doc,y),q(e,"inputRead",e,y)}t&&!a&&Ro(e,t),Nt(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Io(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&ce(t,function(){return Sn(t,i,0,null,"paste")}),!0}function Ro(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var l=e.getModeAt(n.head),o=!1;if(l.electricChars){for(var a=0;a-1){o=Sr(e,n.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(w(e.doc,n.head.line).text.slice(0,n.head.ch))&&(o=Sr(e,n.head.line,"smart"));o&&q(e,"electricInput",e,n.head.line)}}}function Bo(e){for(var t=[],i=[],r=0;rl&&(Sr(this,a.head.line,r,!0),l=a.head.line,o==this.doc.sel.primIndex&&Nt(this));else{var s=a.from(),u=a.to(),f=Math.max(l,s.line);l=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=f;h0&&vn(this.doc,o,new O(s,d[o].to()),Me)}}}),getTokenAt:function(r,n){return Qn(this,r,n)},getLineTokens:function(r,n){return Qn(this,g(r),n,!0)},getTokenTypeAt:function(r){r=D(this.doc,r);var n=Yn(this,w(this.doc,r.line)),l=0,o=(n.length-1)/2,a=r.ch,s;if(a==0)s=n[2];else for(;;){var u=l+o>>1;if((u?n[u*2-1]:0)>=a)o=u;else if(n[u*2+1]s&&(r=s,o=!0),a=w(this.doc,r)}else a=r;return _r(this,a,{top:0,left:0},n||"page",l||o).top+(o?this.doc.height-Ee(a):0)},defaultTextHeight:function(){return Tt(this.display)},defaultCharWidth:function(){return Mt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,l,o,a){var s=this.display;r=Le(this,D(this.doc,r));var u=r.bottom,f=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),s.sizer.appendChild(n),o=="over")u=r.top;else if(o=="above"||o=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),d=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(o=="above"||r.bottom+n.offsetHeight>h)&&r.top>n.offsetHeight?u=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=h&&(u=r.bottom),f+n.offsetWidth>d&&(f=d-n.offsetWidth)}n.style.top=u+"px",n.style.left=n.style.right="",a=="right"?(f=s.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(a=="left"?f=0:a=="middle"&&(f=(s.sizer.clientWidth-n.offsetWidth)/2),n.style.left=f+"px"),l&&$a(this,{left:f,top:u,right:f+n.offsetWidth,bottom:u+n.offsetHeight})},triggerOnKeyDown:ne(Do),triggerOnKeyPress:ne(Ao),triggerOnKeyUp:No,triggerOnMouseDown:ne(Oo),execCommand:function(r){if(br.hasOwnProperty(r))return br[r].call(null,this)},triggerElectric:ne(function(r){Ro(this,r)}),findPosH:function(r,n,l,o){var a=1;n<0&&(a=-1,n=-n);for(var s=D(this.doc,r),u=0;u0&&f(l.charAt(o-1));)--o;for(;a.5||this.options.lineWrapping)&&ji(this),G(this,"refresh",this)}),swapDoc:ne(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),ql(this,r),rr(this),this.display.input.reset(),nr(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,q(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xt(e),e.registerHelper=function(r,n,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=l},e.registerGlobalHelper=function(r,n,l,o){e.registerHelper(r,n,o),i[r]._global.push({pred:l,val:o})}}function kn(e,t,i,r,n){var l=t,o=i,a=w(e,t.line),s=n&&e.direction=="rtl"?-i:i;function u(){var x=t.line+s;return x=e.first+e.size?!1:(t=new g(x,t.ch,t.sticky),a=w(e,x))}function f(x){var b;if(r=="codepoint"){var C=a.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(C))b=null;else{var L=i>0?C>=55296&&C<56320:C>=56320&&C<57343;b=new g(t.line,Math.max(0,Math.min(a.text.length,t.ch+i*(L?2:1))),-i)}}else n?b=Is(e.cm,a,t,i):b=yn(a,t,i);if(b==null)if(!x&&u())t=mn(n,e.cm,a,t.line,s);else return!1;else t=b;return!0}if(r=="char"||r=="codepoint")f();else if(r=="column")f(!0);else if(r=="word"||r=="group")for(var h=null,d=r=="group",c=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(i<0&&!f(!p));p=!1){var v=a.text.charAt(t.ch)||` +`,y=Wr(v,c)?"w":d&&v==` +`?"n":!d||/\s/.test(v)?null:"p";if(d&&!p&&!y&&(y="s"),h&&h!=y){i<0&&(i=1,f(),t.sticky="after");break}if(y&&(h=y),i>0&&!f(!p))break}var m=ii(e,t,l,o,!0);return Wi(l,m)&&(m.hitSide=!0),m}function Go(e,t,i,r){var n=e.doc,l=t.left,o;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Dr(e).innerHeight||n(e).documentElement.clientHeight),s=Math.max(a-.5*Tt(e.display),3);o=(i>0?t.bottom:t.top)+i*s}else r=="line"&&(o=i>0?t.bottom+3:t.top-3);for(var u;u=qi(e,l,o),!!u.outside;){if(i<0?o<=0:o>=n.height){u.hitSide=!0;break}o+=i*5}return u}var F=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};F.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,Ln(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(a){for(var s=a.target;s;s=s.parentNode){if(s==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}T(n,"paste",function(a){!l(a)||Y(r,a)||Io(a,r)||E<=11&&setTimeout(Z(r,function(){return t.updateFromDOM()}),20)}),T(n,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),T(n,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),T(n,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),T(n,"touchstart",function(){return i.forceCompositionEnd()}),T(n,"input",function(){t.composing||t.readFromDOMSoon()});function o(a){if(!(!l(a)||Y(r,a))){if(r.somethingSelected())ui({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=Bo(r);ui({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Me),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Te.text.join(` +`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var f=zo(),h=f.firstChild;Ln(h),r.display.lineSpace.insertBefore(f,r.display.lineSpace.firstChild),h.value=Te.text.join(` +`);var d=me(n.ownerDocument);_t(h),setTimeout(function(){r.display.lineSpace.removeChild(f),d.focus(),d==n&&i.showPrimarySelection()},50)}}T(n,"copy",o),T(n,"cut",o)},F.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},F.prototype.prepareSelection=function(){var e=Al(this.cm,!1);return e.focus=me(this.div.ownerDocument)==this.div,e},F.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},F.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},F.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line=t.display.viewFrom&&Uo(t,r)||{node:a[0].measure.map[2],offset:0},u=n.linee.firstLine()&&(r=g(r.line-1,w(e.doc,r.line-1).length)),n.ch==w(e.doc,n.line).text.length&&n.linet.viewTo-1)return!1;var l,o,a;r.line==t.viewFrom||(l=ht(e,r.line))==0?(o=H(t.view[0].line),a=t.view[0].node):(o=H(t.view[l].line),a=t.view[l-1].node.nextSibling);var s=ht(e,n.line),u,f;if(s==t.view.length-1?(u=t.viewTo-1,f=t.lineDiv.lastChild):(u=H(t.view[s+1].line)-1,f=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(nu(e,a,f,o,u)),d=ot(e.doc,g(o,0),g(u,w(e.doc,u).text.length));h.length>1&&d.length>1;)if(W(h)==W(d))h.pop(),d.pop(),u--;else if(h[0]==d[0])h.shift(),d.shift(),o++;else break;for(var c=0,p=0,v=h[0],y=d[0],m=Math.min(v.length,y.length);cr.ch&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)c--,p++;h[h.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(c).replace(/\u200b+$/,"");var L=g(o,c),S=g(u,d.length?W(d).length-p:0);if(h.length>1||h[0]||M(L,S))return Ft(e.doc,h,L,S,"+input"),!0},F.prototype.ensurePolled=function(){this.forceCompositionEnd()},F.prototype.reset=function(){this.forceCompositionEnd()},F.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},F.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},F.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&ce(this.cm,function(){return ae(e.cm)})},F.prototype.setUneditable=function(e){e.contentEditable="false"},F.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Z(this.cm,Sn)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},F.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},F.prototype.onContextMenu=function(){},F.prototype.resetPosition=function(){},F.prototype.needsContentAttribute=!0;function Uo(e,t){var i=_i(e,t.line);if(!i||i.hidden)return null;var r=w(e.doc,t.line),n=gl(i,r,t.line),l=Fe(r,e.doc.direction),o="left";if(l){var a=Zt(l,t.ch);o=a%2?"right":"left"}var s=bl(n.map,t.ch,o);return s.offset=s.collapse=="right"?s.end:s.start,s}function iu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Bt(e,t){return t&&(e.bad=!0),e}function nu(e,t,i,r,n){var l="",o=!1,a=e.doc.lineSeparator(),s=!1;function u(c){return function(p){return p.id==c}}function f(){o&&(l+=a,s&&(l+=a),o=s=!1)}function h(c){c&&(f(),l+=c)}function d(c){if(c.nodeType==1){var p=c.getAttribute("cm-text");if(p){h(p);return}var v=c.getAttribute("cm-marker"),y;if(v){var m=e.findMarks(g(r,0),g(n+1,0),u(+v));m.length&&(y=m[0].find(0))&&h(ot(e.doc,y.from,y.to).join(a));return}if(c.getAttribute("contenteditable")=="false")return;var x=/^(pre|div|p|li|table|br)$/i.test(c.nodeName);if(!/^br$/i.test(c.nodeName)&&c.textContent.length==0)return;x&&f();for(var b=0;b=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),T(n,"paste",function(o){Y(r,o)||Io(o,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function l(o){if(!Y(r,o)){if(r.somethingSelected())ui({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=Bo(r);ui({lineWise:!0,text:a.text}),o.type=="cut"?r.setSelections(a.ranges,null,Me):(i.prevInput="",n.value=a.text.join(` +`),_t(n))}else return;o.type=="cut"&&(r.state.cutIncoming=+new Date)}}T(n,"cut",l),T(n,"copy",l),T(e.scroller,"paste",function(o){if(!(Ie(e,o)||Y(r,o))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var a=new Event("paste");a.clipboardData=o.clipboardData,n.dispatchEvent(a)}}),T(e.lineSpace,"selectstart",function(o){Ie(e,o)||oe(o)}),T(n,"compositionstart",function(){var o=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:o,range:r.markText(o,r.getCursor("to"),{className:"CodeMirror-composing"})}}),T(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},z.prototype.createField=function(e){this.wrapper=zo(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ln(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},z.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},z.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=Al(e);if(e.options.moveInputWithCursor){var n=Le(e,i.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+o.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+o.left-l.left))}return r},z.prototype.showSelection=function(e){var t=this.cm,i=t.display;pe(i.cursorDiv,e.cursors),pe(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},z.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&_t(this.textarea),A&&E>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",A&&E>=9&&(this.hasSelection=null));this.resetting=!1}},z.prototype.getField=function(){return this.textarea},z.prototype.supportsTouch=function(){return!1},z.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Kt||me(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},z.prototype.blur=function(){this.textarea.blur()},z.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},z.prototype.receivedFocus=function(){this.slowPoll()},z.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},z.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},z.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||na(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(A&&E>=9&&this.hasSelection===n||ye&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=n.charCodeAt(0);if(l==8203&&!r&&(r="​"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(r.length,n.length);o1e3||n.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},z.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},z.prototype.onKeyPress=function(){A&&E>=9&&(this.hasSelection=null),this.fastPoll()},z.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=ft(i,e),o=r.scroller.scrollTop;if(!l||Ce)return;var a=i.options.resetSelectionOnContextMenu;a&&i.doc.sel.contains(l)==-1&&Z(i,ee)(i.doc,Ze(l),Me);var s=n.style.cssText,u=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",n.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+`px; + z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;ie&&(h=n.ownerDocument.defaultView.scrollY),r.input.focus(),ie&&n.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=c,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function d(){if(n.selectionStart!=null){var v=i.somethingSelected(),y="​"+(v?n.value:"");n.value="⇚",n.value=y,t.prevInput=v?"":"​",n.selectionStart=1,n.selectionEnd=y.length,r.selForContextMenu=i.doc.sel}}function c(){if(t.contextMenuPending==c&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,n.style.cssText=s,A&&E<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=o),n.selectionStart!=null)){(!A||A&&E<9)&&d();var v=0,y=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="​"?Z(i,oo)(i):v++<10?r.detectingSelectAll=setTimeout(y,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(y,200)}}if(A&&E>=9&&d(),ci){Qt(e);var p=function(){ve(window,"mouseup",p),setTimeout(c,20)};T(window,"mouseup",p)}else setTimeout(c,50)},z.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},z.prototype.setUneditable=function(){},z.prototype.needsContentAttribute=!1;function ou(e,t){if(t=t?nt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=me(e.ownerDocument);t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(T(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;n=l.submit;try{var o=l.submit=function(){r(),l.submit=n,l.submit(),l.submit=o}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var a=I(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function au(e){e.off=ve,e.on=T,e.wheelEventPixels=ps,e.Doc=se,e.splitLines=ki,e.countColumn=be,e.findColumn=gi,e.isWordChar=mi,e.Pass=Nr,e.signal=G,e.Line=St,e.changeEnd=Qe,e.scrollbarModel=El,e.Pos=g,e.cmpPos=M,e.modes=Mi,e.mimeModes=Ct,e.resolveMode=Hr,e.getMode=Di,e.modeExtensions=wt,e.extendMode=ua,e.copyState=lt,e.startState=Un,e.innerMode=Ni,e.commands=br,e.keyMap=Be,e.keyName=So,e.isModifierKey=Co,e.lookupKey=Et,e.normalizeKeyMap=Es,e.StringStream=U,e.SharedTextMarker=gr,e.TextMarker=je,e.LineWidget=vr,e.e_preventDefault=oe,e.e_stopPropagation=zn,e.e_stop=Qt,e.addClass=it,e.contains=Ke,e.rmClass=tt,e.keyNames=Ve}Vs(I),ru(I);var su="iter insert remove copy getEditor constructor".split(" ");for(var hi in se.prototype)se.prototype.hasOwnProperty(hi)&&$(su,hi)<0&&(I.prototype[hi]=function(e){return function(){return e.apply(this.doc,arguments)}}(se.prototype[hi]));return xt(se),I.inputStyles={textarea:z,contenteditable:F},I.defineMode=function(e){!I.defaults.mode&&e!="null"&&(I.defaults.mode=e),aa.apply(this,arguments)},I.defineMIME=sa,I.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),I.defineMIME("text/plain","null"),I.defineExtension=function(e,t){I.prototype[e]=t},I.defineDocExtension=function(e,t){se.prototype[e]=t},I.fromTextArea=ou,au(I),I.version="5.65.15",I})}(Dn)),Dn.exports}export{cu as r}; diff --git a/admin-views/dist/assets/codemirror-45cadb7f.js.gz b/admin-views/dist/assets/codemirror-45cadb7f.js.gz new file mode 100644 index 00000000..23b783e7 Binary files /dev/null and b/admin-views/dist/assets/codemirror-45cadb7f.js.gz differ diff --git a/admin-views/dist/assets/codemirror-46ebe3e9.js b/admin-views/dist/assets/codemirror-46ebe3e9.js deleted file mode 100644 index b2931b2d..00000000 --- a/admin-views/dist/assets/codemirror-46ebe3e9.js +++ /dev/null @@ -1,24 +0,0 @@ -import{e as fu,o as hu}from"./index-79ae6e73.js";function cu(_t,pi){for(var X=0;XDe[oe]})}}}return Object.freeze(Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"}))}var _o={exports:{}};(function(_t,pi){(function(X,De){_t.exports=De()})(hu,function(){var X=navigator.userAgent,De=navigator.platform,oe=/gecko\/\d/i.test(X),bt=/MSIE \d/.test(X),On=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),Mr=/Edge\/(\d+)/.exec(X),A=bt||On||Mr,E=A&&(bt?document.documentMode||6:+(Mr||On)[1]),ie=!Mr&&/WebKit\//.test(X),Yo=ie&&/Qt\/\d+\.\d+/.test(X),Ue=!Mr&&/Chrome\/(\d+)/.exec(X),Wn=Ue&&+Ue[1],we=/Opera\//.test(X),Dr=/Apple Computer/.test(navigator.vendor),qo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Zo=/PhantomJS/.test(X),Xt=Dr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Nr=/Android/.test(X),Yt=Xt||Nr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Xt||/Mac/.test(De),Qo=/\bCrOS\b/.test(X),Jo=/win/i.test(De),tt=we&&X.match(/Version\/(\d*\.\d*)/);tt&&(tt=Number(tt[1])),tt&&tt>=15&&(we=!1,ie=!0);var Hn=me&&(Yo||we&&(tt==null||tt<12.11)),vi=oe||A&&E>=9;function xt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var rt=function(e,t){var i=e.className,r=xt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ke(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ke(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=yi(this.onTimeout,this)};Xe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Xe.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Wr=[""];function xi(e){for(;Wr.length<=e;)Wr.push(W(Wr)+" ");return Wr[e]}function W(e){return e[e.length-1]}function Hr(e,t){for(var i=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Vo.test(e))}function Fr(e,t){return t?t.source.indexOf("\\w")>-1&&Ci(e)?!0:t.test(e):Ci(e)}function In(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var $o=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function wi(e){return e.charCodeAt(0)>=768&&$o.test(e)}function Bn(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function ea(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;lt||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Jt=null;function jt(e,t,i){var r;Jt=null;for(var n=0;nt)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Jt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Jt=n)}return r??Jt}var ta=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Si(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function wt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Gn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Li(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Vt(e){ae(e),Gn(e)}function ki(e){return e.target||e.srcElement}function Un(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var ra=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Ti;function ia(e){if(Ti==null){var t=k("span","​");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ti=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Ti?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Mi;function na(e){if(Mi!=null)return Mi;var t=ve(e,document.createTextNode("AخA")),i=it(t,0,1).getBoundingClientRect(),r=it(t,1,2).getBoundingClientRect();return Ke(e),!i||i.left==i.right?!1:Mi=r.right-i.right<3}var Di=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(` -`,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},la=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},oa=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ni=null;function aa(e){if(Ni!=null)return Ni;var t=ve(e,k("span","x")),i=t.getBoundingClientRect(),r=it(t,0,1).getBoundingClientRect();return Ni=Math.abs(i.left-r.left)>1}var Ai={},St={};function sa(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ai[e]=t}function ua(e,t){St[e]=t}function Pr(e){if(typeof e=="string"&&St.hasOwnProperty(e))e=St[e];else if(e&&typeof e.name=="string"&&St.hasOwnProperty(e.name)){var t=St[e.name];typeof t=="string"&&(t={name:t}),e=En(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Oi(e,t){t=Pr(t);var i=Ai[t.name];if(!i)return Oi(e,"text/plain");var r=i(e,t);if(Lt.hasOwnProperty(t.name)){var n=Lt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Lt={};function fa(e,t){var i=Lt.hasOwnProperty(e)?Lt[e]:Lt[e]={};lt(t,i)}function ot(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Wi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Kn(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.post},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t=e.first&&ti?g(i,w(e,i).text.length):ha(t,w(e,t.line).text.length)}function ha(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function Xn(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oe.fromSaved=function(e,t,i){return t instanceof Br?new Oe(e,ot(e.mode,t.state),i,t.lookAhead):new Oe(e,ot(e.mode,t),i)},Oe.prototype.save=function(e){var t=e!==!1?ot(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Br(t,this.maxLookAhead):t};function Yn(e,t,i,r){var n=[e.state.modeGen],l={};Vn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,Vn(e,t.text,f.mode,i,function(c,p){for(var v=h;dc&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;ve.options.maxHighlightLength&&ot(e.doc.mode,r.state),l=Yn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function er(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Oe(r,!0,t);var l=ca(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Oe.fromSaved(r,o,l):new Oe(r,Kn(r.mode),l);return r.iter(l,t,function(s){Ii(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Qn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Jn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=er(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&Ii(e,t,r,f.pos),f.pos=t.length,h=null):h=jn(Bi(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;so;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Br?u.lookAhead:0)<=l.modeFrontier))return a;var f=xe(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function da(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Br)||r+n.lookAhead=t:l.to>t);(r||(r=[])).push(new Rr(o,l.from,s?null:l.to))}}return r}function ba(e,t,i){var r;if(e)for(var n=0;n=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var C=0;C0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function tl(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||zi(r,l.marker)<0)&&(r=l.marker)}return r}function ll(e,t,i,r,n){var l=w(e,t),o=Ee&&l.markedSpans;if(o)for(var a=0;a=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Le(e){for(var t;t=nl(e);)e=t.find(-1,!0).line;return e}function wa(e){for(var t;t=Ur(e);)e=t.find(1,!0).line;return e}function Sa(e){for(var t,i;t=Ur(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Gi(e,t){var i=w(e,t),r=Le(i);return i==r?t:H(r)}function ol(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Ye(e,i))return t;for(;r=Ur(i);)i=r.find(1,!0).line;return H(i)+1}function Ye(e,t){var i=Ee&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var kt=function(e,t,i){this.text=e,rl(this,t),this.height=i?i(this):1};kt.prototype.lineNo=function(){return H(this)},wt(kt);function La(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),tl(e),rl(e,i);var n=r?r(e):1;n!=e.height&&Ae(e,n)}function ka(e){e.parent=null,tl(e)}var Ta={},Ma={};function al(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ma:Ta;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function sl(e,t){var i=Ct("span",null,null,ie?"padding-right: .1px":null),r={pre:Ct("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Na,na(e.display.measure)&&(o=Pe(l,e.doc.direction))&&(r.addToken=Oa(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Wa(l,r,qn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=gi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=gi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ia(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=gi(r.pre.className,r.textClass||"")),r}function Da(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Na(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Aa(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",xi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==` -`?(v=f.appendChild(k("span",d[0]=="\r"?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),A&&E<9?f.appendChild(k("span",[v])):f.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,i||r||n||u||l||o){var x=i||"";r&&(x+=r),n&&(x+=n);var b=k("span",[f],x,l);if(o)for(var C in o)o.hasOwnProperty(C)&&C!="style"&&C!="class"&&b.setAttribute(C,o[C]);return e.content.appendChild(b)}e.content.appendChild(f)}}function Aa(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;nu&&h.from<=u));d++);if(h.to>=f)return e(i,r,n,l,o,a,s);e(i,r.slice(0,h.to-u),n,l,null,a,s),l=null,r=r.slice(h.to-u),u=h.to}}}function ul(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function Wa(e,t,i){var r=e.markedSpans,n=e.text,l=0;if(!r){for(var o=1;os||N.collapsed&&S.to==s&&S.from==s)){if(S.to!=null&&S.to!=s&&c>S.to&&(c=S.to,v=""),N.className&&(p+=" "+N.className),N.css&&(d=(d?d+";":"")+N.css),N.startStyle&&S.from==s&&(y+=" "+N.startStyle),N.endStyle&&S.to==c&&(C||(C=[])).push(N.endStyle,S.to),N.title&&((x||(x={})).title=N.title),N.attributes)for(var P in N.attributes)(x||(x={}))[P]=N.attributes[P];N.collapsed&&(!m||zi(m.marker,N)<0)&&(m=S)}else S.from>s&&c>S.from&&(c=S.from)}if(C)for(var j=0;j=a)break;for(var pe=Math.min(a,c);;){if(f){var fe=s+f.length;if(!m){var K=fe>pe?f.slice(0,pe-s):f;t.addToken(t,K,h?h+p:p,y,s+K.length==c?v:"",d,x)}if(fe>=pe){f=f.slice(pe-s),s=pe;break}s=fe,y=""}f=n.slice(l,l=i[u++]),h=al(i[u++],t.cm.options)}}}function fl(e,t,i){this.line=t,this.rest=Sa(t),this.size=this.rest?H(W(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Ye(e,t)}function _r(e,t,i){for(var r=[],n,l=t;l2&&l.push((s.bottom+u.top)/2-i.top)}}l.push(i.bottom-i.top)}}function yl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;ri)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function Ka(e,t){t=Le(t);var i=H(t),r=e.display.externalMeasured=new fl(e.doc,t,i);r.lineN=i;var n=r.built=sl(e,r);return r.text=n.pre,ve(e.display.lineMeasure,n.pre),r}function ml(e,t,i,r){return He(e,Mt(e,t),i,r)}function qi(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(l=s-a,n=l-1,t>=s&&(o="right")),n!=null){if(r=e[u+2],a==s&&i==(r.insertLeft?"left":"right")&&(o=i),i=="left"&&n==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],o="left";if(i=="right"&&n==s-a)for(;u=0&&(i=e[n]).left==i.right;n--);return i}function Xa(e,t,i,r){var n=xl(t.map,i,r),l=n.node,o=n.start,a=n.end,s=n.collapse,u;if(l.nodeType==3){for(var f=0;f<4;f++){for(;o&&wi(t.line.text.charAt(n.coverStart+o));)--o;for(;n.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=l.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=l.getBoundingClientRect()}if(A&&E<9&&!o&&(!u||!u.left&&!u.right)){var d=l.parentNode.getClientRects()[0];d?u={left:d.left,right:d.left+Nt(e.display),top:d.top,bottom:d.bottom}:u=bl}for(var c=u.top-t.rect.top,p=u.bottom-t.rect.top,v=(c+p)/2,y=t.view.measure.heights,m=0;m=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return o(u=="before"?s-1:s,u=="before");function f(p,v,y){var m=a[v],x=m.level==1;return o(y?p-1:p,x!=y)}var h=jt(a,s,u),d=Jt,c=f(s,h,u=="before");return d!=null&&(c.other=f(s,d,u!="before")),c}function Tl(e,t){var i=0;t=D(e.doc,t),e.options.lineWrapping||(i=Nt(e.display)*t.ch);var r=w(e.doc,t.line),n=Ie(r)+Xr(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Qi(e,t,i,r,n){var l=g(e,t,i);return l.xRel=n,r&&(l.outside=r),l}function Ji(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Qi(r.first,0,null,-1,-1);var n=st(r,i),l=r.first+r.size-1;if(n>l)return Qi(r.first+r.size-1,w(r,l).text.length,null,1,1);t<0&&(t=0);for(var o=w(r,n);;){var a=qa(e,o,n,t,i),s=Ca(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==n)return u;o=w(r,n=u.line)}}function Ml(e,t,i,r){r-=Zi(t);var n=t.text.length,l=Qt(function(o){return He(e,i,o-1).bottom<=r},n,0);return n=Qt(function(o){return He(e,i,o).top>r},l,n),{begin:l,end:n}}function Dl(e,t,i,r){i||(i=Mt(e,t));var n=Yr(e,t,He(e,i,r),"line").top;return Ml(e,t,i,n)}function ji(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function qa(e,t,i,r,n){n-=Ie(t);var l=Mt(e,t),o=Zi(t),a=0,s=t.text.length,u=!0,f=Pe(t,e.doc.direction);if(f){var h=(e.options.lineWrapping?Qa:Za)(e,t,i,l,f,r,n);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var d=null,c=null,p=Qt(function(L){var S=He(e,l,L);return S.top+=o,S.bottom+=o,ji(S,r,n,!1)?(S.top<=n&&S.left<=r&&(d=L,c=S),!0):!1},a,s),v,y,m=!1;if(c){var x=r-c.left=C.bottom?1:0}return p=Bn(t.text,p,1),Qi(i,p,y,m,r-v)}function Za(e,t,i,r,n,l,o){var a=Qt(function(h){var d=n[h],c=d.level!=1;return ji(ke(e,g(i,c?d.to:d.from,c?"before":"after"),"line",t,r),l,o,!0)},0,n.length-1),s=n[a];if(a>0){var u=s.level!=1,f=ke(e,g(i,u?s.from:s.to,u?"after":"before"),"line",t,r);ji(f,l,o,!0)&&f.top>o&&(s=n[a-1])}return s}function Qa(e,t,i,r,n,l,o){var a=Ml(e,t,r,o),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var f=null,h=null,d=0;d=u||c.to<=s)){var p=c.level!=1,v=He(e,r,p?Math.min(u,c.to)-1:Math.max(s,c.from)).right,y=vy)&&(f=c,h=y)}}return f||(f=n[n.length-1]),f.fromu&&(f={from:f.from,to:u,level:f.level}),f}var ft;function Dt(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ft==null){ft=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ft.appendChild(document.createTextNode("x")),ft.appendChild(k("br"));ft.appendChild(document.createTextNode("x"))}ve(e.measure,ft);var i=ft.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Ke(e.measure),i||1}function Nt(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),i=k("pre",[t],"CodeMirror-line-like");ve(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Vi(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,l=t.gutters.firstChild,o=0;l;l=l.nextSibling,++o){var a=e.display.gutterSpecs[o].className;i[a]=l.offsetLeft+l.clientLeft+n,r[a]=l.clientWidth}return{fixedPos:$i(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function $i(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Nl(e){var t=Dt(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Nt(e.display)-3);return function(n){if(Ye(e.doc,n))return 0;var l=0;if(n.widgets)for(var o=0;o0&&(u=w(e.doc,s.line).text).length==s.ch){var f=xe(u,u.length,e.options.tabSize)-u.length;s=g(s.line,Math.max(0,Math.round((l-gl(e.display).left)/Nt(e.display))-f))}return s}function ct(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;rt)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)Ee&&Gi(e.doc,t)n.viewFrom?Ze(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)Ze(e);else if(t<=n.viewFrom){var l=Zr(e,i,i+r,1);l?(n.view=n.view.slice(l.index),n.viewFrom=l.lineN,n.viewTo+=r):Ze(e)}else if(i>=n.viewTo){var o=Zr(e,t,t,-1);o?(n.view=n.view.slice(0,o.index),n.viewTo=o.lineN):Ze(e)}else{var a=Zr(e,t,t,-1),s=Zr(e,i,i+r,1);a&&s?(n.view=n.view.slice(0,a.index).concat(_r(e,a.lineN,s.lineN)).concat(n.view.slice(s.index)),n.viewTo+=r):Ze(e)}var u=n.externalMeasured;u&&(i=n.lineN&&t=r.viewTo)){var l=r.view[ct(e,t)];if(l.node!=null){var o=l.changes||(l.changes=[]);ee(o,i)==-1&&o.push(i)}}}function Ze(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zr(e,t,i,r){var n=ct(e,t),l,o=e.display.view;if(!Ee||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var a=e.display.viewFrom,s=0;s0){if(n==o.length-1)return null;l=a+o[n].size-t,n++}else l=a-t;t+=l,i+=l}for(;Gi(e.doc,i)!=i;){if(n==(r<0?0:o.length-1))return null;i+=r*o[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function Ja(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=_r(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=_r(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,ct(e,i)))),r.viewTo=i}function Al(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||s.to().line0?o:e.defaultCharWidth())+"px"}if(r.other){var a=i.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Qr(e,t){return e.top-t.top||e.left-t.left}function ja(e,t,i){var r=e.display,n=e.doc,l=document.createDocumentFragment(),o=gl(e.display),a=o.left,s=Math.max(r.sizerWidth,ut(e)-r.sizer.offsetLeft)-o.right,u=n.direction=="ltr";function f(b,C,L,S){C<0&&(C=0),C=Math.round(C),S=Math.round(S),l.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+b+`px; - top: `+C+"px; width: "+(L??s-b)+`px; - height: `+(S-C)+"px"))}function h(b,C,L){var S=w(n,b),N=S.text.length,P,j;function B(K,he){return qr(e,g(b,K),"div",S,he)}function pe(K,he,$){var Y=Dl(e,S,null,K),_=he=="ltr"==($=="after")?"left":"right",R=$=="after"?Y.begin:Y.end-(/\s/.test(S.text.charAt(Y.end-1))?2:1);return B(R,_)[_]}var fe=Pe(S,n.direction);return ea(fe,C||0,L??N,function(K,he,$,Y){var _=$=="ltr",R=B(K,_?"left":"right"),ce=B(he-1,_?"right":"left"),Ut=C==null&&K==0,et=L==null&&he==N,re=Y==0,Fe=!fe||Y==fe.length-1;if(ce.top-R.top<=3){var V=(u?Ut:et)&&re,Nn=(u?et:Ut)&&Fe,Ge=V?a:(_?R:ce).left,yt=Nn?s:(_?ce:R).right;f(Ge,R.top,yt-Ge,R.bottom)}else{var mt,le,Kt,An;_?(mt=u&&Ut&&re?a:R.left,le=u?s:pe(K,$,"before"),Kt=u?a:pe(he,$,"after"),An=u&&et&&Fe?s:ce.right):(mt=u?pe(K,$,"before"):a,le=!u&&Ut&&re?s:R.right,Kt=!u&&et&&Fe?a:ce.left,An=u?pe(he,$,"after"):s),f(mt,R.top,le-mt,R.bottom),R.bottom0?t.blinker=setInterval(function(){e.hasFocus()||At(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Wl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ln(e))}function nn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&At(e))},100)}function ln(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(G(e,"focus",e,t),e.state.focused=!0,nt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),ie&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),rn(e))}function At(e,t){e.state.delayingBlurEvent||(e.state.focused&&(G(e,"blur",e,t),e.state.focused=!1,rt(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jr(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,l=0,o=0;o.005||c<-.005)&&(ne.display.sizerWidth){var v=Math.ceil(f/Nt(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function Hl(e){if(e.widgets)for(var t=0;t=o&&(l=st(t,Ie(w(t,s))-e.wrapper.clientHeight),o=s)}return{from:l,to:Math.max(o,l+1)}}function Va(e,t){if(!q(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,l=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(n=!1),n!=null&&!Zo){var o=k("div","​",null,`position: absolute; - top: `+(t.top-i.viewOffset-Xr(e.display))+`px; - height: `+(t.bottom-t.top+We(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(n),e.display.lineSpace.removeChild(o)}}}function $a(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?g(t.line,t.ch+1,"before"):t,t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var o=!1,a=ke(e,t),s=!i||i==t?a:ke(e,i);n={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=on(e,n),f=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(sr(e,u.scrollTop),Math.abs(e.doc.scrollTop-f)>1&&(o=!0)),u.scrollLeft!=null&&(dt(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return n}function es(e,t){var i=on(e,t);i.scrollTop!=null&&sr(e,i.scrollTop),i.scrollLeft!=null&&dt(e,i.scrollLeft)}function on(e,t){var i=e.display,r=Dt(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=Yi(e),o={};t.bottom-t.top>l&&(t.bottom=t.top+l);var a=e.doc.height+Xi(i),s=t.topa-r;if(t.topn+l){var f=Math.min(t.top,(u?a:t.bottom)-l);f!=n&&(o.scrollTop=f)}var h=e.options.fixedGutter?0:i.gutters.offsetWidth,d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-h,c=ut(e)-i.gutters.offsetWidth,p=t.right-t.left>c;return p&&(t.right=t.left+c),t.left<10?o.scrollLeft=0:t.leftc+d-3&&(o.scrollLeft=t.right+(p?0:10)-c),o}function an(e,t){t!=null&&(Vr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ot(e){Vr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ar(e,t,i){(t!=null||i!=null)&&Vr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function ts(e,t){Vr(e),e.curOp.scrollToPos=t}function Vr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Tl(e,t.from),r=Tl(e,t.to);Fl(e,i,r,t.margin)}}function Fl(e,t,i,r){var n=on(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});ar(e,n.scrollLeft,n.scrollTop)}function sr(e,t){Math.abs(e.doc.scrollTop-t)<2||(oe||un(e,{top:t}),Pl(e,t,!0),oe&&un(e),hr(e,100))}function Pl(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function dt(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,zl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ur(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Xi(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+We(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var pt=function(e,t,i){this.cm=i;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),T(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),T(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&E<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pt.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},pt.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pt.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pt.prototype.zeroWidthHack=function(){var e=me&&!qo?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Xe,this.disableVert=new Xe},pt.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},pt.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fr=function(){};fr.prototype.update=function(){return{bottom:0,right:0}},fr.prototype.setScrollLeft=function(){},fr.prototype.setScrollTop=function(){},fr.prototype.clear=function(){};function Wt(e,t){t||(t=ur(e));var i=e.display.barWidth,r=e.display.barHeight;El(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),El(e,ur(e)),i=e.display.barWidth,r=e.display.barHeight}function El(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Il={native:pt,null:fr};function Bl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&rt(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Il[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),T(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?dt(e,t):sr(e,t)},e),e.display.scrollbars.addClass&&nt(e.display.wrapper,e.display.scrollbars.addClass)}var rs=0;function vt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++rs,markArrays:null},Ha(e.curOp)}function gt(e){var t=e.curOp;t&&Pa(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new $r(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ls(e){e.updatedDisplay=e.mustUpdate&&sn(e.cm,e.update)}function os(e){var t=e.cm,i=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=ur(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ml(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+We(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function as(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var i=+new Date+e.options.workTime,r=er(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var o=l.styles,a=l.text.length>e.options.maxHighlightLength?ot(t.mode,r.state):null,s=Yn(e,l,r,!0);a&&(r.state=a),l.styles=s.styles;var u=l.styleClasses,f=s.classes;f?l.styleClasses=f:u&&(l.styleClasses=null);for(var h=!o||o.length!=l.styles.length||u!=f&&(!u||!f||u.bgClass!=f.bgClass||u.textClass!=f.textClass),d=0;!h&&di)return hr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&de(e,function(){for(var l=0;l=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Al(e)==0)return!1;Gl(e)&&(Ze(e),t.dims=Vi(e));var n=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFromo&&i.viewTo-o<20&&(o=Math.min(n,i.viewTo)),Ee&&(l=Gi(e.doc,l),o=ol(e.doc,o));var a=l!=i.viewFrom||o!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Ja(e,l,o),i.viewOffset=Ie(w(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var s=Al(e);if(!a&&s==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var u=hs(e);return s>4&&(i.lineDiv.style.display="none"),ds(e,i.updateLineNumbers,t.dims),s>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,cs(u),Ke(i.cursorDiv),Ke(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,a&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,hr(e,400)),i.updateLineNumbers=null,!0}function Rl(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==ut(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Xi(e.display)-Yi(e),i.top)}),t.visible=jr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=jr(e.display,e.doc,i));if(!sn(e,t))break;Jr(e);var n=ur(e);or(e),Wt(e,n),hn(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function un(e,t){var i=new $r(e,t);if(sn(e,i)){Jr(e),Rl(e,i);var r=ur(e);or(e),Wt(e,r),hn(e,r),i.finish()}}function ds(e,t,i){var r=e.display,n=e.options.lineNumbers,l=r.lineDiv,o=l.firstChild;function a(p){var v=p.nextSibling;return ie&&me&&e.display.currentWheelTarget==p?p.style.display="none":p.parentNode.removeChild(p),v}for(var s=r.view,u=r.viewFrom,f=0;f-1&&(c=!1),hl(e,h,u,i)),c&&(Ke(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Fi(e.options,u)))),o=h.node.nextSibling}u+=h.size}for(;o;)o=a(o)}function fn(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Z(e,"gutterChanged",e)}function hn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+We(e)+"px"}function zl(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=$i(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,l=r+"px",o=0;o=105&&(n.wrapper.style.clipPath="inset(0px)"),n.wrapper.setAttribute("translate","no"),A&&E<8&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),!ie&&!(oe&&Yt)&&(n.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.reportedViewFrom=n.reportedViewTo=t.first,n.view=[],n.renderedView=null,n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.nativeBarWidth=n.barHeight=n.barWidth=0,n.scrollbarsClipped=!1,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.alignWidgets=!1,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null,n.activeTouch=null,n.gutterSpecs=cn(r.gutters,r.lineNumbers),Ul(n),i.init(n)}var ei=0,Re=null;A?Re=-.53:oe?Re=15:Ue?Re=-.7:Dr&&(Re=-1/3);function Kl(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function vs(e){var t=Kl(e);return t.x*=Re,t.y*=Re,t}function _l(e,t){Ue&&Wn==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Kl(t),r=i.x,n=i.y,l=Re;t.deltaMode===0&&(r=t.deltaX,n=t.deltaY,l=1);var o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||n&&u){if(n&&me&&ie){e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d=0&&M(e,r.to())<=0)return i}return-1};var O=function(e,t){this.anchor=e,this.head=t};O.prototype.from=function(){return Ir(this.anchor,this.head)},O.prototype.to=function(){return Er(this.anchor,this.head)},O.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Te(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(d,c){return M(d.from(),c.from())}),i=ee(t,n);for(var l=1;l0:s>=0){var u=Ir(a.from(),o.from()),f=Er(a.to(),o.to()),h=a.empty()?o.from()==o.head:a.from()==a.head;l<=i&&--i,t.splice(--l,2,new O(h?f:u,h?u:f))}}return new ye(t,i)}function Qe(e,t){return new ye([new O(e,t||e)],0)}function Je(e){return e.text?g(e.from.line+e.text.length-1,W(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Xl(e,t){if(M(e,t.from)<0)return e;if(M(e,t.to)<=0)return Je(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Je(t).ch-t.to.ch),g(i,r)}function dn(e,t){for(var i=[],r=0;r1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}Z(e,"change",e,t)}function je(e,t,i){function r(n,l,o){if(n.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),W(e.done)}function jl(e,t,i,r){var n=e.history;n.undone.length=0;var l=+new Date,o,a;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=ms(n,n.lastOp==r)))a=W(o.changes),M(t.from,t.to)==0&&M(t.from,a.to)==0?a.to=Je(t):o.changes.push(gn(e,t));else{var s=W(n.done);for((!s||!s.ranges)&&ri(e.sel,n.done),o={changes:[gn(e,t)],generation:n.generation},n.done.push(o);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=l,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,a||G(e,"historyAdded")}function bs(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xs(e,t,i,r){var n=e.history,l=r&&r.origin;i==n.lastSelOp||l&&n.lastSelOrigin==l&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==l||bs(e,l,W(n.done),t))?n.done[n.done.length-1]=t:ri(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=l,n.lastSelOp=i,r&&r.clearRedo!==!1&&Jl(n.undone)}function ri(e,t){var i=W(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Vl(e,t,i,r){var n=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(o){o.markedSpans&&((n||(n=t["spans_"+e.id]={}))[l]=o.markedSpans),++l})}function Cs(e){if(!e)return null;for(var t,i=0;i-1&&(W(a)[h]=u[h],delete u[h])}}return r}function yn(e,t,i,r){if(r){var n=e.anchor;if(i){var l=M(t,n)<0;l!=M(i,n)<0?(n=t,t=i):l!=M(t,i)<0&&(t=i)}return new O(n,t)}else return new O(i||t,t)}function ii(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),te(e,new ye([yn(e.sel.primary(),t,i,n)],0),r)}function eo(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:a.to>t.ch))){if(n&&(G(s,"beforeCursorEnter"),s.explicitlyCleared))if(l.markedSpans){--o;continue}else break;if(!s.atomic)continue;if(i){var h=s.find(r<0?1:-1),d=void 0;if((r<0?f:u)&&(h=oo(e,h,-r,h&&h.line==t.line?l:null)),h&&h.line==t.line&&(d=M(h,i))&&(r<0?d<0:d>0))return Ft(e,h,t,r,n)}var c=s.find(r<0?-1:1);return(r<0?u:f)&&(c=oo(e,c,r,c.line==t.line?l:null)),c?Ft(e,c,t,r,n):null}}return t}function li(e,t,i,r,n){var l=r||1,o=Ft(e,t,i,l,n)||!n&&Ft(e,t,i,l,!0)||Ft(e,t,i,-l,n)||!n&&Ft(e,t,i,-l,!0);return o||(e.cantEdit=!0,g(e.first,0))}function oo(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?D(e,g(t.line-1)):null:i>0&&t.ch==(r||w(e,t.line)).text.length?t.line=0;--n)uo(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(!(t.text.length==1&&t.text[0]==""&&M(t.from,t.to)==0)){var i=dn(e,t);jl(e,t,i,e.cm?e.cm.curOp.id:NaN),pr(e,t,i,Ri(e,t));var r=[];je(e,function(n,l){!l&&ee(r,n.history)==-1&&(po(n.history,t),r.push(n.history)),pr(n,t,null,Ri(n,t))})}}function oi(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,l,o=e.sel,a=t=="undo"?n.done:n.undone,s=t=="undo"?n.undone:n.done,u=0;u=0;--c){var p=d(c);if(p)return p.v}}}}function fo(e,t){if(t!=0&&(e.first+=t,e.sel=new ye(Hr(e.sel.ranges,function(n){return new O(g(n.anchor.line+t,n.anchor.ch),g(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){se(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())){if(t.from.linel&&(t={from:t.from,to:g(l,w(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=at(e,t.from,t.to),i||(i=dn(e,t)),e.cm?Ls(e.cm,t,r):vn(e,t,r),ni(e,i,Ne),e.cantEdit&&li(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ls(e,t,i){var r=e.doc,n=e.display,l=t.from,o=t.to,a=!1,s=l.line;e.options.lineWrapping||(s=H(Le(w(r,l.line))),r.iter(s,o.line+1,function(c){if(c==n.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&zn(e),vn(r,t,i,Nl(e)),e.options.lineWrapping||(r.iter(s,l.line+t.text.length,function(c){var p=Kr(c);p>n.maxLineLength&&(n.maxLine=c,n.maxLineLength=p,n.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),da(r,l.line),hr(e,400);var u=t.text.length-(o.line-l.line)-1;t.full?se(e):l.line==o.line&&t.text.length==1&&!ql(e.doc,t)?qe(e,l.line,"text"):se(e,l.line,o.line+1,u);var f=Ce(e,"changes"),h=Ce(e,"change");if(h||f){var d={from:l,to:o,text:t.text,removed:t.removed,origin:t.origin};h&&Z(e,"change",e,d),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Et(e,t,i,r,n){var l;r||(r=i),M(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Pt(e,{from:i,to:r,text:t,origin:n})}function ho(e,t,i,r){i1||!(this.children[0]instanceof gr))){var a=[];this.collapse(a),this.children=[new gr(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=n.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=f,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&se(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&Z(e,"markerCleared",e,this,r,n),t&>(e),this.parent&&this.parent.clear()}},Ve.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n0||o==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=Ct("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(ll(e,t.line,t,i,l)||t.line!=i.line&&ll(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");va()}l.addToHistory&&jl(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,i.line+1,function(h){s&&l.collapsed&&!s.options.lineWrapping&&Le(h)==s.display.maxLine&&(u=!0),l.collapsed&&a!=t.line&&Ae(h,0),ya(h,new Rr(l,a==t.line?t.ch:null,a==i.line?i.ch:null),e.cm&&e.cm.curOp),++a}),l.collapsed&&e.iter(t.line,i.line+1,function(h){Ye(e,h)&&Ae(h,0)}),l.clearOnEnter&&T(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(pa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++go,l.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),l.collapsed)se(s,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var f=t.line;f<=i.line;f++)qe(s,f,"text");l.atomic&&no(s.doc),Z(s,"markerAdded",s,l)}return l}var br=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;s--)Pt(this,r[s]);a?ro(this,a):this.cm&&Ot(this.cm)}),undo:J(function(){oi(this,"undo")}),redo:J(function(){oi(this,"redo")}),undoSelection:J(function(){oi(this,"undo",!0)}),redoSelection:J(function(){oi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=D(this,e),t=D(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(l){var o=l.markedSpans;if(o)for(var a=0;a=s.to||s.from==null&&n!=e.line||s.from!=null&&n==t.line&&s.from>=t.ch)&&(!i||i(s.marker))&&r.push(s.marker.parent||s.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=l,++i}),D(this,g(i,t))},indexFromPos:function(e){e=D(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),ni(t.doc,Qe(i,i)),h)for(var d=0;d=0;a--)Et(e.doc,"",r[a].from,r[a].to,"+delete");Ot(e)})}function bn(e,t,i){var r=Bn(e.text,t+i,i);return r<0||r>e.text.length?null:r}function xn(e,t,i){var r=bn(e,t.ch,i);return r==null?null:new g(t.line,r,i<0?"after":"before")}function Cn(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var l=Pe(i,t.doc.direction);if(l){var o=n<0?W(l):l[0],a=n<0==(o.level==1),s=a?"after":"before",u;if(o.level>0||t.doc.direction=="rtl"){var f=Mt(t,i);u=n<0?i.text.length-1:0;var h=He(t,f,u).top;u=Qt(function(d){return He(t,f,d).top==h},n<0==(o.level==1)?o.from:o.to-1,u),s=="before"&&(u=bn(i,u,1))}else u=n<0?o.to:o.from;return new g(r,u,s)}}return new g(r,n<0?i.text.length:0,n<0?"before":"after")}function Bs(e,t,i,r){var n=Pe(t,e.doc.direction);if(!n)return xn(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=jt(n,i.ch,i.sticky),o=n[l];if(e.doc.direction=="ltr"&&o.level%2==0&&(r>0?o.to>i.ch:o.from=o.from&&d>=f.begin)){var c=h?"before":"after";return new g(i.line,d,c)}}var p=function(m,x,b){for(var C=function(P,j){return j?new g(i.line,a(P,1),"before"):new g(i.line,P,"after")};m>=0&&m0==(L.level!=1),N=S?b.begin:a(b.end,-1);if(L.from<=N&&N0?f.end:a(f.begin,-1);return y!=null&&!(r>0&&y==t.text.length)&&(v=p(r>0?0:n.length-1,r,u(y)),v)?v:null}var wr={selectAll:ao,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ne)},killLine:function(e){return Rt(e,function(t){if(t.empty()){var i=w(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)n=new g(n.line,n.ch+1),e.replaceRange(l.charAt(n.ch-1)+l.charAt(n.ch-2),g(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var o=w(e.doc,n.line-1).text;o&&(n=new g(n.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),g(n.line-1,o.length-1),n,"+transpose"))}}i.push(new O(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return de(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&M(t,this.pos)==0&&i==this.button};var Lr,kr;function Xs(e,t){var i=+new Date;return kr&&kr.compare(i,e,t)?(Lr=kr=null,"triple"):Lr&&Lr.compare(i,e,t)?(kr=new Sn(i,e,t),Lr=null,"double"):(Lr=new Sn(i,e,t),kr=null,"single")}function Wo(e){var t=this,i=t.display;if(!(q(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Be(i,e)){ie||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!Ln(t,e)){var r=ht(t,e),n=Un(e),l=r?Xs(r,n):"single";Ar(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Ys(t,n,r,l,e))&&(n==1?r?Zs(t,r,l,e):ki(e)==i.scroller&&ae(e):n==2?(r&&ii(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(vi?t.display.input.onContextMenu(e):nn(t)))}}}function Ys(e,t,i,r,n){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,Sr(e,So(l,n),n,function(o){if(typeof o=="string"&&(o=wr[o]),!o)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=o(e,i)!=Or}finally{e.state.suppressEdits=!1}return a})}function qs(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var l=Qo?i.shiftKey&&i.metaKey:i.altKey;n.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=me?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(me?i.altKey:i.ctrlKey)),n}function Zs(e,t,i,r){A?setTimeout(yi(Wl,e),0):e.curOp.focus=be(Se(e));var n=qs(e,i,r),l=e.doc.sel,o;e.options.dragDrop&&ra&&!e.isReadOnly()&&i=="single"&&(o=l.contains(t))>-1&&(M((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(M(o.to(),t)>0||t.xRel<0)?Qs(e,r,t,n):Js(e,r,t,n)}function Qs(e,t,i,r){var n=e.display,l=!1,o=Q(e,function(u){ie&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:nn(e)),ge(n.wrapper.ownerDocument,"mouseup",o),ge(n.wrapper.ownerDocument,"mousemove",a),ge(n.scroller,"dragstart",s),ge(n.scroller,"drop",o),l||(ae(u),r.addNew||ii(e.doc,i,null,null,r.extend),ie&&!Dr||A&&E==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),a=function(u){l=l||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return l=!0};ie&&(n.scroller.draggable=!0),e.state.draggingText=o,o.copy=!r.moveOnDrag,T(n.wrapper.ownerDocument,"mouseup",o),T(n.wrapper.ownerDocument,"mousemove",a),T(n.scroller,"dragstart",s),T(n.scroller,"drop",o),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function Ho(e,t,i){if(i=="char")return new O(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new O(g(t.line,0),D(e.doc,g(t.line+1,0)));var r=i(e,t);return new O(r.from,r.to)}function Js(e,t,i,r){A&&nn(e);var n=e.display,l=e.doc;ae(t);var o,a,s=l.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=l.sel.contains(i),a>-1?o=u[a]:o=new O(i,i)):(o=l.sel.primary(),a=l.sel.primIndex),r.unit=="rectangle")r.addNew||(o=new O(i,i)),i=ht(e,t,!0,!0),a=-1;else{var f=Ho(e,i,r.unit);r.extend?o=yn(o,f.anchor,f.head,r.extend):o=f}r.addNew?a==-1?(a=u.length,te(l,Te(e,u.concat([o]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(te(l,Te(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=l.sel):mn(l,a,o,mi):(a=0,te(l,new ye([o],0),mi),s=l.sel);var h=i;function d(b){if(M(h,b)!=0)if(h=b,r.unit=="rectangle"){for(var C=[],L=e.options.tabSize,S=xe(w(l,i.line).text,i.ch,L),N=xe(w(l,b.line).text,b.ch,L),P=Math.min(S,N),j=Math.max(S,N),B=Math.min(i.line,b.line),pe=Math.min(e.lastLine(),Math.max(i.line,b.line));B<=pe;B++){var fe=w(l,B).text,K=bi(fe,P,L);P==j?C.push(new O(g(B,K),g(B,K))):fe.length>K&&C.push(new O(g(B,K),g(B,bi(fe,j,L))))}C.length||C.push(new O(i,i)),te(l,Te(e,s.ranges.slice(0,a).concat(C),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(b)}else{var he=o,$=Ho(e,b,r.unit),Y=he.anchor,_;M($.anchor,Y)>0?(_=$.head,Y=Ir(he.from(),$.anchor)):(_=$.anchor,Y=Er(he.to(),$.head));var R=s.ranges.slice(0);R[a]=js(e,new O(D(l,Y),_)),te(l,Te(e,R,a),mi)}}var c=n.wrapper.getBoundingClientRect(),p=0;function v(b){var C=++p,L=ht(e,b,!0,r.unit=="rectangle");if(L)if(M(L,h)!=0){e.curOp.focus=be(Se(e)),d(L);var S=jr(n,l);(L.line>=S.to||L.linec.bottom?20:0;N&&setTimeout(Q(e,function(){p==C&&(n.scroller.scrollTop+=N,v(b))}),50)}}function y(b){e.state.selectingText=!1,p=1/0,b&&(ae(b),n.input.focus()),ge(n.wrapper.ownerDocument,"mousemove",m),ge(n.wrapper.ownerDocument,"mouseup",x),l.history.lastSelOrigin=null}var m=Q(e,function(b){b.buttons===0||!Un(b)?y(b):v(b)}),x=Q(e,y);e.state.selectingText=x,T(n.wrapper.ownerDocument,"mousemove",m),T(n.wrapper.ownerDocument,"mouseup",x)}function js(e,t){var i=t.anchor,r=t.head,n=w(e.doc,i.line);if(M(i,r)==0&&i.sticky==r.sticky)return t;var l=Pe(n);if(!l)return t;var o=jt(l,i.ch,i.sticky),a=l[o];if(a.from!=i.ch&&a.to!=i.ch)return t;var s=o+(a.from==i.ch==(a.level!=1)?0:1);if(s==0||s==l.length)return t;var u;if(r.line!=i.line)u=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var f=jt(l,r.ch,r.sticky),h=f-o||(r.ch-i.ch)*(a.level==1?-1:1);f==s-1||f==s?u=h<0:u=h>0}var d=l[s+(u?-1:0)],c=u==(d.level==1),p=c?d.from:d.to,v=c?"after":"before";return i.ch==p&&i.sticky==v?t:new O(new g(i.line,p,v),r)}function Fo(e,t,i,r){var n,l;if(t.touches)n=t.touches[0].clientX,l=t.touches[0].clientY;else try{n=t.clientX,l=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ae(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(l>a.bottom||!Ce(e,i))return Li(t);l-=a.top-o.viewOffset;for(var s=0;s=n){var f=st(e.doc,l),h=e.display.gutterSpecs[s];return G(e,i,e,f,h.className,t),Li(t)}}}function Ln(e,t){return Fo(e,t,"gutterClick",!0)}function Po(e,t){Be(e.display,t)||Vs(e,t)||q(e,t,"contextmenu")||vi||e.display.input.onContextMenu(t)}function Vs(e,t){return Ce(e,"gutterContextMenu")?Fo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lr(e)}var zt={toString:function(){return"CodeMirror.Init"}},Io={},fi={};function $s(e){var t=e.optionHandlers;function i(r,n,l,o){e.defaults[r]=n,l&&(t[r]=o?function(a,s,u){u!=zt&&l(a,s,u)}:l)}e.defineOption=i,e.Init=zt,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,pn(r)},!0),i("indentUnit",2,pn,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){dr(r),lr(r),se(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var l=[],o=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var f=s.text.indexOf(n,u);if(f==-1)break;u=f+n.length,l.push(g(o,f))}o++});for(var a=l.length-1;a>=0;a--)Et(r.doc,n,l[a],g(l[a].line,l[a].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,l){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),l!=zt&&r.refresh()}),i("specialCharPlaceholder",Da,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",Yt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!Jo),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Eo(r),cr(r)},!0),i("keyMap","default",function(r,n,l){var o=si(n),a=l!=zt&&si(l);a&&a.detach&&a.detach(r,o),o.attach&&o.attach(r,a||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,tu,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=cn(n,r.options.lineNumbers),cr(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?$i(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Wt(r)},!0),i("scrollbarStyle","native",function(r){Bl(r),Wt(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=cn(r.options.gutters,n),cr(r)},!0),i("firstLineNumber",1,cr,!0),i("lineNumberFormatter",function(r){return r},cr,!0),i("showCursorWhenSelecting",!1,or,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(At(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,eu),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,or,!0),i("singleCursorHeightPerLine",!0,or,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,dr,!0),i("addModeClass",!1,dr,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,dr,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function eu(e,t,i){var r=i&&i!=zt;if(!t!=!r){var n=e.display.dragFunctions,l=t?T:ge;l(e.display.scroller,"dragstart",n.start),l(e.display.scroller,"dragenter",n.enter),l(e.display.scroller,"dragover",n.over),l(e.display.scroller,"dragleave",n.leave),l(e.display.scroller,"drop",n.drop)}}function tu(e){e.options.lineWrapping?(nt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(rt(e.display.wrapper,"CodeMirror-wrap"),Ki(e)),en(e),se(e),lr(e),setTimeout(function(){return Wt(e)},100)}function I(e,t){var i=this;if(!(this instanceof I))return new I(e,t);this.options=t=t?lt(t):{},lt(Io,t,!1);var r=t.value;typeof r=="string"?r=new ue(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new I.inputStyles[t.inputStyle](this),l=this.display=new ps(e,r,n,t);l.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Xe,keySeq:null,specialChars:null},t.autofocus&&!Yt&&l.input.focus(),A&&E<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ru(this),Hs(),vt(this),this.curOp.forceUpdate=!0,Zl(this,r),t.autofocus&&!Yt||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&ln(i)},20):At(this);for(var o in fi)fi.hasOwnProperty(o)&&fi[o](this,t[o],zt);Gl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}T(t.scroller,"touchstart",function(s){if(!q(e,s)&&!l(s)&&!Ln(e,s)){t.input.ensurePolled(),clearTimeout(i);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),T(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),T(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Be(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var f=e.coordsChar(t.activeTouch,"page"),h;!u.prev||o(u,u.prev)?h=new O(f,f):!u.prev.prev||o(u,u.prev.prev)?h=e.findWordAt(f):h=new O(g(f.line,0),D(e.doc,g(f.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),ae(s)}n()}),T(t.scroller,"touchcancel",n),T(t.scroller,"scroll",function(){t.scroller.clientHeight&&(sr(e,t.scroller.scrollTop),dt(e,t.scroller.scrollLeft,!0),G(e,"scroll",e))}),T(t.scroller,"mousewheel",function(s){return _l(e,s)}),T(t.scroller,"DOMMouseScroll",function(s){return _l(e,s)}),T(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){q(e,s)||Vt(s)},over:function(s){q(e,s)||(Ws(e,s),Vt(s))},start:function(s){return Os(e,s)},drop:Q(e,As),leave:function(s){q(e,s)||bo(e)}};var a=t.input.getField();T(a,"keyup",function(s){return Ao.call(e,s)}),T(a,"keydown",Q(e,No)),T(a,"keypress",Q(e,Oo)),T(a,"focus",function(s){return ln(e,s)}),T(a,"blur",function(s){return At(e,s)})}var kn=[];I.defineInitHook=function(e){return kn.push(e)};function Tr(e,t,i,r){var n=e.doc,l;i==null&&(i="add"),i=="smart"&&(n.mode.indent?l=er(e,t).state:i="prev");var o=e.options.tabSize,a=w(n,t),s=xe(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],f;if(!r&&!/\S/.test(a.text))f=0,i="not";else if(i=="smart"&&(f=n.mode.indent(l,a.text.slice(u.length),a.text),f==Or||f>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?f=xe(w(n,t-1).text,null,o):f=0:i=="add"?f=s+e.options.indentUnit:i=="subtract"?f=s-e.options.indentUnit:typeof i=="number"&&(f=s+i),f=Math.max(0,f);var h="",d=0;if(e.options.indentWithTabs)for(var c=Math.floor(f/o);c;--c)d+=o,h+=" ";if(do,s=Di(t),u=null;if(a&&r.ranges.length>1)if(Me&&Me.text.join(` -`)==t){if(r.ranges.length%Me.text.length==0){u=[];for(var f=0;f=0;d--){var c=r.ranges[d],p=c.from(),v=c.to();c.empty()&&(i&&i>0?p=g(p.line,p.ch-i):e.state.overwrite&&!a?v=g(v.line,Math.min(w(l,v.line).text.length,v.ch+W(s).length)):a&&Me&&Me.lineWise&&Me.text.join(` -`)==s.join(` -`)&&(p=v=g(p.line,0)));var y={from:p,to:v,text:u?u[d%u.length]:s,origin:n||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Pt(e.doc,y),Z(e,"inputRead",e,y)}t&&!a&&Ro(e,t),Ot(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Bo(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&de(t,function(){return Tn(t,i,0,null,"paste")}),!0}function Ro(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var l=e.getModeAt(n.head),o=!1;if(l.electricChars){for(var a=0;a-1){o=Tr(e,n.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(w(e.doc,n.head.line).text.slice(0,n.head.ch))&&(o=Tr(e,n.head.line,"smart"));o&&Z(e,"electricInput",e,n.head.line)}}}function zo(e){for(var t=[],i=[],r=0;rl&&(Tr(this,a.head.line,r,!0),l=a.head.line,o==this.doc.sel.primIndex&&Ot(this));else{var s=a.from(),u=a.to(),f=Math.max(l,s.line);l=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=f;h0&&mn(this.doc,o,new O(s,d[o].to()),Ne)}}}),getTokenAt:function(r,n){return Jn(this,r,n)},getLineTokens:function(r,n){return Jn(this,g(r),n,!0)},getTokenTypeAt:function(r){r=D(this.doc,r);var n=qn(this,w(this.doc,r.line)),l=0,o=(n.length-1)/2,a=r.ch,s;if(a==0)s=n[2];else for(;;){var u=l+o>>1;if((u?n[u*2-1]:0)>=a)o=u;else if(n[u*2+1]s&&(r=s,o=!0),a=w(this.doc,r)}else a=r;return Yr(this,a,{top:0,left:0},n||"page",l||o).top+(o?this.doc.height-Ie(a):0)},defaultTextHeight:function(){return Dt(this.display)},defaultCharWidth:function(){return Nt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,l,o,a){var s=this.display;r=ke(this,D(this.doc,r));var u=r.bottom,f=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),s.sizer.appendChild(n),o=="over")u=r.top;else if(o=="above"||o=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),d=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(o=="above"||r.bottom+n.offsetHeight>h)&&r.top>n.offsetHeight?u=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=h&&(u=r.bottom),f+n.offsetWidth>d&&(f=d-n.offsetWidth)}n.style.top=u+"px",n.style.left=n.style.right="",a=="right"?(f=s.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(a=="left"?f=0:a=="middle"&&(f=(s.sizer.clientWidth-n.offsetWidth)/2),n.style.left=f+"px"),l&&es(this,{left:f,top:u,right:f+n.offsetWidth,bottom:u+n.offsetHeight})},triggerOnKeyDown:ne(No),triggerOnKeyPress:ne(Oo),triggerOnKeyUp:Ao,triggerOnMouseDown:ne(Wo),execCommand:function(r){if(wr.hasOwnProperty(r))return wr[r].call(null,this)},triggerElectric:ne(function(r){Ro(this,r)}),findPosH:function(r,n,l,o){var a=1;n<0&&(a=-1,n=-n);for(var s=D(this.doc,r),u=0;u0&&f(l.charAt(o-1));)--o;for(;a.5||this.options.lineWrapping)&&en(this),G(this,"refresh",this)}),swapDoc:ne(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),Zl(this,r),lr(this),this.display.input.reset(),ar(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Z(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(e),e.registerHelper=function(r,n,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=l},e.registerGlobalHelper=function(r,n,l,o){e.registerHelper(r,n,o),i[r]._global.push({pred:l,val:o})}}function Dn(e,t,i,r,n){var l=t,o=i,a=w(e,t.line),s=n&&e.direction=="rtl"?-i:i;function u(){var x=t.line+s;return x=e.first+e.size?!1:(t=new g(x,t.ch,t.sticky),a=w(e,x))}function f(x){var b;if(r=="codepoint"){var C=a.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(C))b=null;else{var L=i>0?C>=55296&&C<56320:C>=56320&&C<57343;b=new g(t.line,Math.max(0,Math.min(a.text.length,t.ch+i*(L?2:1))),-i)}}else n?b=Bs(e.cm,a,t,i):b=xn(a,t,i);if(b==null)if(!x&&u())t=Cn(n,e.cm,a,t.line,s);else return!1;else t=b;return!0}if(r=="char"||r=="codepoint")f();else if(r=="column")f(!0);else if(r=="word"||r=="group")for(var h=null,d=r=="group",c=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(i<0&&!f(!p));p=!1){var v=a.text.charAt(t.ch)||` -`,y=Fr(v,c)?"w":d&&v==` -`?"n":!d||/\s/.test(v)?null:"p";if(d&&!p&&!y&&(y="s"),h&&h!=y){i<0&&(i=1,f(),t.sticky="after");break}if(y&&(h=y),i>0&&!f(!p))break}var m=li(e,t,l,o,!0);return Pi(l,m)&&(m.hitSide=!0),m}function Uo(e,t,i,r){var n=e.doc,l=t.left,o;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Ar(e).innerHeight||n(e).documentElement.clientHeight),s=Math.max(a-.5*Dt(e.display),3);o=(i>0?t.bottom:t.top)+i*s}else r=="line"&&(o=i>0?t.bottom+3:t.top-3);for(var u;u=Ji(e,l,o),!!u.outside;){if(i<0?o<=0:o>=n.height){u.hitSide=!0;break}o+=i*5}return u}var F=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};F.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,Mn(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(a){for(var s=a.target;s;s=s.parentNode){if(s==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}T(n,"paste",function(a){!l(a)||q(r,a)||Bo(a,r)||E<=11&&setTimeout(Q(r,function(){return t.updateFromDOM()}),20)}),T(n,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),T(n,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),T(n,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),T(n,"touchstart",function(){return i.forceCompositionEnd()}),T(n,"input",function(){t.composing||t.readFromDOMSoon()});function o(a){if(!(!l(a)||q(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=zo(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ne),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Me.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var f=Go(),h=f.firstChild;Mn(h),r.display.lineSpace.insertBefore(f,r.display.lineSpace.firstChild),h.value=Me.text.join(` -`);var d=be(n.ownerDocument);qt(h),setTimeout(function(){r.display.lineSpace.removeChild(f),d.focus(),d==n&&i.showPrimarySelection()},50)}}T(n,"copy",o),T(n,"cut",o)},F.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},F.prototype.prepareSelection=function(){var e=Ol(this.cm,!1);return e.focus=be(this.div.ownerDocument)==this.div,e},F.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},F.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},F.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line=t.display.viewFrom&&Ko(t,r)||{node:a[0].measure.map[2],offset:0},u=n.linee.firstLine()&&(r=g(r.line-1,w(e.doc,r.line-1).length)),n.ch==w(e.doc,n.line).text.length&&n.linet.viewTo-1)return!1;var l,o,a;r.line==t.viewFrom||(l=ct(e,r.line))==0?(o=H(t.view[0].line),a=t.view[0].node):(o=H(t.view[l].line),a=t.view[l-1].node.nextSibling);var s=ct(e,n.line),u,f;if(s==t.view.length-1?(u=t.viewTo-1,f=t.lineDiv.lastChild):(u=H(t.view[s+1].line)-1,f=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(lu(e,a,f,o,u)),d=at(e.doc,g(o,0),g(u,w(e.doc,u).text.length));h.length>1&&d.length>1;)if(W(h)==W(d))h.pop(),d.pop(),u--;else if(h[0]==d[0])h.shift(),d.shift(),o++;else break;for(var c=0,p=0,v=h[0],y=d[0],m=Math.min(v.length,y.length);cr.ch&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)c--,p++;h[h.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(c).replace(/\u200b+$/,"");var L=g(o,c),S=g(u,d.length?W(d).length-p:0);if(h.length>1||h[0]||M(L,S))return Et(e.doc,h,L,S,"+input"),!0},F.prototype.ensurePolled=function(){this.forceCompositionEnd()},F.prototype.reset=function(){this.forceCompositionEnd()},F.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},F.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},F.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&de(this.cm,function(){return se(e.cm)})},F.prototype.setUneditable=function(e){e.contentEditable="false"},F.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Q(this.cm,Tn)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},F.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},F.prototype.onContextMenu=function(){},F.prototype.resetPosition=function(){},F.prototype.needsContentAttribute=!0;function Ko(e,t){var i=qi(e,t.line);if(!i||i.hidden)return null;var r=w(e.doc,t.line),n=yl(i,r,t.line),l=Pe(r,e.doc.direction),o="left";if(l){var a=jt(l,t.ch);o=a%2?"right":"left"}var s=xl(n.map,t.ch,o);return s.offset=s.collapse=="right"?s.end:s.start,s}function nu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Gt(e,t){return t&&(e.bad=!0),e}function lu(e,t,i,r,n){var l="",o=!1,a=e.doc.lineSeparator(),s=!1;function u(c){return function(p){return p.id==c}}function f(){o&&(l+=a,s&&(l+=a),o=s=!1)}function h(c){c&&(f(),l+=c)}function d(c){if(c.nodeType==1){var p=c.getAttribute("cm-text");if(p){h(p);return}var v=c.getAttribute("cm-marker"),y;if(v){var m=e.findMarks(g(r,0),g(n+1,0),u(+v));m.length&&(y=m[0].find(0))&&h(at(e.doc,y.from,y.to).join(a));return}if(c.getAttribute("contenteditable")=="false")return;var x=/^(pre|div|p|li|table|br)$/i.test(c.nodeName);if(!/^br$/i.test(c.nodeName)&&c.textContent.length==0)return;x&&f();for(var b=0;b=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),T(n,"paste",function(o){q(r,o)||Bo(o,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function l(o){if(!q(r,o)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=zo(r);hi({lineWise:!0,text:a.text}),o.type=="cut"?r.setSelections(a.ranges,null,Ne):(i.prevInput="",n.value=a.text.join(` -`),qt(n))}else return;o.type=="cut"&&(r.state.cutIncoming=+new Date)}}T(n,"cut",l),T(n,"copy",l),T(e.scroller,"paste",function(o){if(!(Be(e,o)||q(r,o))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var a=new Event("paste");a.clipboardData=o.clipboardData,n.dispatchEvent(a)}}),T(e.lineSpace,"selectstart",function(o){Be(e,o)||ae(o)}),T(n,"compositionstart",function(){var o=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:o,range:r.markText(o,r.getCursor("to"),{className:"CodeMirror-composing"})}}),T(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},z.prototype.createField=function(e){this.wrapper=Go(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Mn(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},z.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},z.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=Ol(e);if(e.options.moveInputWithCursor){var n=ke(e,i.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+o.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+o.left-l.left))}return r},z.prototype.showSelection=function(e){var t=this.cm,i=t.display;ve(i.cursorDiv,e.cursors),ve(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},z.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&qt(this.textarea),A&&E>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",A&&E>=9&&(this.hasSelection=null));this.resetting=!1}},z.prototype.getField=function(){return this.textarea},z.prototype.supportsTouch=function(){return!1},z.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Yt||be(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},z.prototype.blur=function(){this.textarea.blur()},z.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},z.prototype.receivedFocus=function(){this.slowPoll()},z.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},z.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},z.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||la(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(A&&E>=9&&this.hasSelection===n||me&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=n.charCodeAt(0);if(l==8203&&!r&&(r="​"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(r.length,n.length);o1e3||n.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},z.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},z.prototype.onKeyPress=function(){A&&E>=9&&(this.hasSelection=null),this.fastPoll()},z.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=ht(i,e),o=r.scroller.scrollTop;if(!l||we)return;var a=i.options.resetSelectionOnContextMenu;a&&i.doc.sel.contains(l)==-1&&Q(i,te)(i.doc,Qe(l),Ne);var s=n.style.cssText,u=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",n.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+`px; - z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;ie&&(h=n.ownerDocument.defaultView.scrollY),r.input.focus(),ie&&n.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=c,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function d(){if(n.selectionStart!=null){var v=i.somethingSelected(),y="​"+(v?n.value:"");n.value="⇚",n.value=y,t.prevInput=v?"":"​",n.selectionStart=1,n.selectionEnd=y.length,r.selForContextMenu=i.doc.sel}}function c(){if(t.contextMenuPending==c&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,n.style.cssText=s,A&&E<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=o),n.selectionStart!=null)){(!A||A&&E<9)&&d();var v=0,y=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="​"?Q(i,ao)(i):v++<10?r.detectingSelectAll=setTimeout(y,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(y,200)}}if(A&&E>=9&&d(),vi){Vt(e);var p=function(){ge(window,"mouseup",p),setTimeout(c,20)};T(window,"mouseup",p)}else setTimeout(c,50)},z.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},z.prototype.setUneditable=function(){},z.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?lt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=be(e.ownerDocument);t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=a.getValue()}var n;if(e.form&&(T(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;n=l.submit;try{var o=l.submit=function(){r(),l.submit=n,l.submit(),l.submit=o}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var a=I(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function su(e){e.off=ge,e.on=T,e.wheelEventPixels=vs,e.Doc=ue,e.splitLines=Di,e.countColumn=xe,e.findColumn=bi,e.isWordChar=Ci,e.Pass=Or,e.signal=G,e.Line=kt,e.changeEnd=Je,e.scrollbarModel=Il,e.Pos=g,e.cmpPos=M,e.modes=Ai,e.mimeModes=St,e.resolveMode=Pr,e.getMode=Oi,e.modeExtensions=Lt,e.extendMode=fa,e.copyState=ot,e.startState=Kn,e.innerMode=Wi,e.commands=wr,e.keyMap=ze,e.keyName=Lo,e.isModifierKey=wo,e.lookupKey=Bt,e.normalizeKeyMap=Is,e.StringStream=U,e.SharedTextMarker=br,e.TextMarker=Ve,e.LineWidget=mr,e.e_preventDefault=ae,e.e_stopPropagation=Gn,e.e_stop=Vt,e.addClass=nt,e.contains=_e,e.rmClass=rt,e.keyNames=$e}$s(I),iu(I);var uu="iter insert remove copy getEditor constructor".split(" ");for(var di in ue.prototype)ue.prototype.hasOwnProperty(di)&&ee(uu,di)<0&&(I.prototype[di]=function(e){return function(){return e.apply(this.doc,arguments)}}(ue.prototype[di]));return wt(ue),I.inputStyles={textarea:z,contenteditable:F},I.defineMode=function(e){!I.defaults.mode&&e!="null"&&(I.defaults.mode=e),sa.apply(this,arguments)},I.defineMIME=ua,I.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),I.defineMIME("text/plain","null"),I.defineExtension=function(e,t){I.prototype[e]=t},I.defineDocExtension=function(e,t){ue.prototype[e]=t},I.fromTextArea=au,su(I),I.version="5.65.15",I})})(_o);var Xo=_o.exports;const du=fu(Xo),vu=cu({__proto__:null,default:du},[Xo]);export{Xo as a,vu as c}; diff --git a/admin-views/dist/assets/codemirror-46ebe3e9.js.gz b/admin-views/dist/assets/codemirror-46ebe3e9.js.gz deleted file mode 100644 index 21b2ad50..00000000 Binary files a/admin-views/dist/assets/codemirror-46ebe3e9.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/codemirror-ab4af607.js b/admin-views/dist/assets/codemirror-ab4af607.js new file mode 100644 index 00000000..fedc22f9 --- /dev/null +++ b/admin-views/dist/assets/codemirror-ab4af607.js @@ -0,0 +1 @@ +import{e as a}from"./index-16176cf1.js";import{r as f}from"./codemirror-45cadb7f.js";function s(o,c){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=f();const m=a(n),d=s({__proto__:null,default:m},[n]);export{d as c}; diff --git a/admin-views/dist/assets/cssMode-af79a824.js b/admin-views/dist/assets/cssMode-4c5c8a45.js similarity index 99% rename from admin-views/dist/assets/cssMode-af79a824.js rename to admin-views/dist/assets/cssMode-4c5c8a45.js index 4d276bbb..7641cc1f 100644 --- a/admin-views/dist/assets/cssMode-af79a824.js +++ b/admin-views/dist/assets/cssMode-4c5c8a45.js @@ -1,4 +1,4 @@ -import{e as x,R as Me,l as v,a as T,U as Pe}from"./editor.main-7fdd10fa.js";import"./index-79ae6e73.js";var Fe=2*60*1e3,je=function(){function n(t){var a=this;this._defaults=t,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return a._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return a._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(this._worker){var t=Date.now()-this._lastUsedTime;t>Fe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;fFe&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=x.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var t=this,a=[],r=0;r0&&(s.arguments=i),s}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.title)&&u.string(e.command)}n.is=a})(P||(P={}));var A;(function(n){function t(i,o){return{range:i,newText:o}}n.replace=t;function a(i,o){return{range:{start:i,end:i},newText:o}}n.insert=a;function r(i){return{range:i,newText:""}}n.del=r;function e(i){var o=i;return u.objectLiteral(o)&&u.string(o.newText)&&m.is(o.range)}n.is=e})(A||(A={}));var R;(function(n){function t(r,e,i){var o={label:r};return e!==void 0&&(o.needsConfirmation=e),i!==void 0&&(o.description=i),o}n.create=t;function a(r){var e=r;return e!==void 0&&u.objectLiteral(e)&&u.string(e.label)&&(u.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(u.string(e.description)||e.description===void 0)}n.is=a})(R||(R={}));var _;(function(n){function t(a){var r=a;return typeof r=="string"}n.is=t})(_||(_={}));var E;(function(n){function t(i,o,s){return{range:i,newText:o,annotationId:s}}n.replace=t;function a(i,o,s){return{range:{start:i,end:i},newText:o,annotationId:s}}n.insert=a;function r(i,o){return{range:i,newText:"",annotationId:o}}n.del=r;function e(i){var o=i;return A.is(o)&&(R.is(o.annotationId)||_.is(o.annotationId))}n.is=e})(E||(E={}));var V;(function(n){function t(r,e){return{textDocument:r,edits:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&O.is(e.textDocument)&&Array.isArray(e.edits)}n.is=a})(V||(V={}));var L;(function(n){function t(r,e,i){var o={kind:"create",uri:r};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="create"&&u.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(L||(L={}));var S;(function(n){function t(r,e,i,o){var s={kind:"rename",oldUri:r,newUri:e};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}n.create=t;function a(r){var e=r;return e&&e.kind==="rename"&&u.string(e.oldUri)&&u.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||u.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||u.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(S||(S={}));var F;(function(n){function t(r,e,i){var o={kind:"delete",uri:r};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(o.options=e),i!==void 0&&(o.annotationId=i),o}n.create=t;function a(r){var e=r;return e&&e.kind==="delete"&&u.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||u.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||u.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||_.is(e.annotationId))}n.is=a})(F||(F={}));var q;(function(n){function t(a){var r=a;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(e){return u.string(e.kind)?L.is(e)||S.is(e)||F.is(e):V.is(e)}))}n.is=t})(q||(q={}));var W=function(){function n(t,a){this.edits=t,this.changeAnnotations=a}return n.prototype.insert=function(t,a,r){var e,i;if(r===void 0?e=A.insert(t,a):_.is(r)?(i=r,e=E.insert(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.insert(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.replace=function(t,a,r){var e,i;if(r===void 0?e=A.replace(t,a):_.is(r)?(i=r,e=E.replace(t,a,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),e=E.replace(t,a,i)),this.edits.push(e),i!==void 0)return i},n.prototype.delete=function(t,a){var r,e;if(a===void 0?r=A.del(t):_.is(a)?(e=a,r=E.del(t,a)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(a),r=E.del(t,e)),this.edits.push(r),e!==void 0)return e},n.prototype.add=function(t){this.edits.push(t)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ae=function(){function n(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(t,a){var r;if(_.is(t)?r=t:(r=this.nextId(),a=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(a===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=a,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(t){var a=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ae(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(V.is(r)){var e=new W(r.edits,a._changeAnnotations);a._textEditChanges[r.textDocument.uri]=e}})):t.changes&&Object.keys(t.changes).forEach(function(r){var e=new W(t.changes[r]);a._textEditChanges[r]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(t){if(O.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a={uri:t.uri,version:t.version},r=this._textEditChanges[a.uri];if(!r){var e=[],i={textDocument:a,edits:e};this._workspaceEdit.documentChanges.push(i),r=new W(e,this._changeAnnotations),this._textEditChanges[a.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var e=[];this._workspaceEdit.changes[t]=e,r=new W(e),this._textEditChanges[t]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=L.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=L.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n.prototype.renameFile=function(t,a,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;R.is(r)||_.is(r)?i=r:e=r;var o,s;if(i===void 0?o=S.create(t,a,e):(s=_.is(i)?i:this._changeAnnotations.manage(i),o=S.create(t,a,e,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},n.prototype.deleteFile=function(t,a,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;R.is(a)||_.is(a)?e=a:r=a;var i,o;if(e===void 0?i=F.create(t,r):(o=_.is(e)?e:this._changeAnnotations.manage(e),i=F.create(t,r,o)),this._workspaceEdit.documentChanges.push(i),o!==void 0)return o},n})();var oe;(function(n){function t(r){return{uri:r}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)}n.is=a})(oe||(oe={}));var ue;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.integer(e.version)}n.is=a})(ue||(ue={}));var O;(function(n){function t(r,e){return{uri:r,version:e}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&(e.version===null||u.integer(e.version))}n.is=a})(O||(O={}));var se;(function(n){function t(r,e,i,o){return{uri:r,languageId:e,version:i,text:o}}n.create=t;function a(r){var e=r;return u.defined(e)&&u.string(e.uri)&&u.string(e.languageId)&&u.integer(e.version)&&u.string(e.text)}n.is=a})(se||(se={}));var j;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(j||(j={}));(function(n){function t(a){var r=a;return r===n.PlainText||r===n.Markdown}n.is=t})(j||(j={}));var Q;(function(n){function t(a){var r=a;return u.objectLiteral(a)&&j.is(r.kind)&&u.string(r.value)}n.is=t})(Q||(Q={}));var l;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(l||(l={}));var G;(function(n){n.PlainText=1,n.Snippet=2})(G||(G={}));var ce;(function(n){n.Deprecated=1})(ce||(ce={}));var de;(function(n){function t(r,e,i){return{newText:r,insert:e,replace:i}}n.create=t;function a(r){var e=r;return e&&u.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=a})(de||(de={}));var fe;(function(n){n.asIs=1,n.adjustIndentation=2})(fe||(fe={}));var ge;(function(n){function t(a){return{label:a}}n.create=t})(ge||(ge={}));var le;(function(n){function t(a,r){return{items:a||[],isIncomplete:!!r}}n.create=t})(le||(le={}));var z;(function(n){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=t;function a(r){var e=r;return u.string(e)||u.objectLiteral(e)&&u.string(e.language)&&u.string(e.value)}n.is=a})(z||(z={}));var he;(function(n){function t(a){var r=a;return!!r&&u.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||u.typedArray(r.contents,z.is))&&(a.range===void 0||m.is(a.range))}n.is=t})(he||(he={}));var ve;(function(n){function t(a,r){return r?{label:a,documentation:r}:{label:a}}n.create=t})(ve||(ve={}));var pe;(function(n){function t(a,r){for(var e=[],i=2;i=0;f--){var p=c[f],b=i.offsetAt(p.range.start),d=i.offsetAt(p.range.end);if(d<=g)s=s.substring(0,b)+p.newText+s.substring(d,s.length);else throw new Error("Overlapping edit");g=b}return s}n.applyEdits=r;function e(i,o){if(i.length<=1)return i;var s=i.length/2|0,c=i.slice(0,s),g=i.slice(s);e(c,o),e(g,o);for(var f=0,p=0,b=0;f0&&t.push(a.length),this._lineOffsets=t}return this._lineOffsets},n.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var a=this.getLineOffsets(),r=0,e=a.length;if(e===0)return k.create(0,t);for(;rt?e=i:r=i+1}var o=r-1;return k.create(o,t-a[o])},n.prototype.offsetAt=function(t){var a=this.getLineOffsets();if(t.line>=a.length)return this._content.length;if(t.line<0)return 0;var r=a[t.line],e=t.line+1"u"}n.undefined=r;function e(d){return d===!0||d===!1}n.boolean=e;function i(d){return t.call(d)==="[object String]"}n.string=i;function o(d){return t.call(d)==="[object Number]"}n.number=o;function s(d,y,N){return t.call(d)==="[object Number]"&&y<=d&&d<=N}n.numberRange=s;function c(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}n.integer=c;function g(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}n.uinteger=g;function f(d){return t.call(d)==="[object Function]"}n.func=f;function p(d){return d!==null&&typeof d=="object"}n.objectLiteral=p;function b(d,y){return Array.isArray(d)&&d.every(y)}n.typedArray=b})(u||(u={}));var We=function(){function n(t,a,r){var e=this;this._languageId=t,this._worker=a,this._disposables=[],this._listener=Object.create(null);var i=function(s){var c=s.getLanguageId();if(c===e._languageId){var g;e._listener[s.uri.toString()]=s.onDidChangeContent(function(){window.clearTimeout(g),g=window.setTimeout(function(){return e._doValidate(s.uri,c)},500)}),e._doValidate(s.uri,c)}},o=function(s){x.setModelMarkers(s,e._languageId,[]);var c=s.uri.toString(),g=e._listener[c];g&&(g.dispose(),delete e._listener[c])};this._disposables.push(x.onDidCreateModel(i)),this._disposables.push(x.onWillDisposeModel(o)),this._disposables.push(x.onDidChangeModelLanguage(function(s){o(s.model),i(s.model)})),r.onDidChange(function(s){x.getModels().forEach(function(c){c.getLanguageId()===e._languageId&&(o(c),i(c))})}),this._disposables.push({dispose:function(){for(var s in e._listener)e._listener[s].dispose()}}),x.getModels().forEach(i)}return n.prototype.dispose=function(){this._disposables.forEach(function(t){return t&&t.dispose()}),this._disposables=[]},n.prototype._doValidate=function(t,a){this._worker(t).then(function(r){return r.doValidation(t.toString())}).then(function(r){var e=r.map(function(o){return He(t,o)}),i=x.getModel(t);i&&i.getLanguageId()===a&&x.setModelMarkers(i,a,e)}).then(void 0,function(r){console.error(r)})},n}();function Ue(n){switch(n){case I.Error:return T.Error;case I.Warning:return T.Warning;case I.Information:return T.Info;case I.Hint:return T.Hint;default:return T.Info}}function He(n,t){var a=typeof t.code=="number"?String(t.code):t.code;return{severity:Ue(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:a,source:t.source}}function C(n){if(n)return{character:n.column-1,line:n.lineNumber-1}}function Ve(n){if(n)return{start:{line:n.startLineNumber-1,character:n.startColumn-1},end:{line:n.endLineNumber-1,character:n.endColumn-1}}}function w(n){if(n)return new Me(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Oe(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function ze(n){var t=v.CompletionItemKind;switch(n){case l.Text:return t.Text;case l.Method:return t.Method;case l.Function:return t.Function;case l.Constructor:return t.Constructor;case l.Field:return t.Field;case l.Variable:return t.Variable;case l.Class:return t.Class;case l.Interface:return t.Interface;case l.Module:return t.Module;case l.Property:return t.Property;case l.Unit:return t.Unit;case l.Value:return t.Value;case l.Enum:return t.Enum;case l.Keyword:return t.Keyword;case l.Snippet:return t.Snippet;case l.Color:return t.Color;case l.File:return t.File;case l.Reference:return t.Reference}return t.Property}function J(n){if(n)return{range:w(n.range),text:n.newText}}function Xe(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}var $e=function(){function n(t){this._worker=t}return Object.defineProperty(n.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),n.prototype.provideCompletionItems=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.doComplete(i.toString(),C(a))}).then(function(o){if(o){var s=t.getWordUntilPosition(a),c=new Me(a.lineNumber,s.startColumn,a.lineNumber,s.endColumn),g=o.items.map(function(f){var p={label:f.label,insertText:f.insertText||f.label,sortText:f.sortText,filterText:f.filterText,documentation:f.documentation,detail:f.detail,command:Xe(f.command),range:c,kind:ze(f.kind)};return f.textEdit&&(Oe(f.textEdit)?p.range={insert:w(f.textEdit.insert),replace:w(f.textEdit.replace)}:p.range=w(f.textEdit.range),p.insertText=f.textEdit.newText),f.additionalTextEdits&&(p.additionalTextEdits=f.additionalTextEdits.map(J)),f.insertTextFormat===G.Snippet&&(p.insertTextRules=v.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:g}}})},n}();function Be(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function Te(n){return typeof n=="string"?{value:n}:Be(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+` `+n.value+"\n```\n"}}function qe(n){if(n)return Array.isArray(n)?n.map(Te):[Te(n)]}var Qe=function(){function n(t){this._worker=t}return n.prototype.provideHover=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.doHover(e.toString(),C(a))}).then(function(i){if(i)return{range:w(i.range),contents:qe(i.contents)}})},n}();function Ge(n){switch(n){case M.Read:return v.DocumentHighlightKind.Read;case M.Write:return v.DocumentHighlightKind.Write;case M.Text:return v.DocumentHighlightKind.Text}return v.DocumentHighlightKind.Text}var Je=function(){function n(t){this._worker=t}return n.prototype.provideDocumentHighlights=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDocumentHighlights(e.toString(),C(a))}).then(function(i){if(i)return i.map(function(o){return{range:w(o.range),kind:Ge(o.kind)}})})},n}();function Le(n){return{uri:Pe.parse(n.uri),range:w(n.range)}}var Ye=function(){function n(t){this._worker=t}return n.prototype.provideDefinition=function(t,a,r){var e=t.uri;return this._worker(e).then(function(i){return i.findDefinition(e.toString(),C(a))}).then(function(i){if(i)return[Le(i)]})},n}(),Ze=function(){function n(t){this._worker=t}return n.prototype.provideReferences=function(t,a,r,e){var i=t.uri;return this._worker(i).then(function(o){return o.findReferences(i.toString(),C(a))}).then(function(o){if(o)return o.map(Le)})},n}();function Ke(n){if(!(!n||!n.changes)){var t=[];for(var a in n.changes)for(var r=Pe.parse(a),e=0,i=n.changes[a];eY[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*! +import{ct as Rt,e as Lt}from"./index-16176cf1.js";import{h as Bt}from"./index-a466bea1.js";function Xt(J,rt){for(var $=0;$Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*! * wordcloud2.js * http://timdream.org/wordcloud2.js/ * diff --git a/admin-views/dist/assets/echarts-wordcloud-c98a70fd.js.gz b/admin-views/dist/assets/echarts-wordcloud-c98a70fd.js.gz new file mode 100644 index 00000000..bf5259ab Binary files /dev/null and b/admin-views/dist/assets/echarts-wordcloud-c98a70fd.js.gz differ diff --git a/admin-views/dist/assets/editor.main-7fdd10fa.js b/admin-views/dist/assets/editor.main-6a1a59b6.js similarity index 99% rename from admin-views/dist/assets/editor.main-7fdd10fa.js rename to admin-views/dist/assets/editor.main-6a1a59b6.js index debaaba5..8014ad2f 100644 --- a/admin-views/dist/assets/editor.main-7fdd10fa.js +++ b/admin-views/dist/assets/editor.main-6a1a59b6.js @@ -1,4 +1,4 @@ -import{aB as ce}from"./index-79ae6e73.js";function IB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return IB(e,t)}var Fw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,WD=!1,gm,Bw=m_,EB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const NB=typeof((Fw=qi==null?void 0:qi.versions)===null||Fw===void 0?void 0:Fw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!NB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,WD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Bw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Bw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Bw=t||m_,EB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Tu=SR,lr=WD,TB=Na,qS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||WD?2:tb?1:3;let VI=!0,HI=!1;function yR(){if(!HI){HI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,VI=new Uint16Array(s.buffer)[0]===512+1}return VI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function AB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=AB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const RB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=RB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=MB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function MB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class OB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Au{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class _h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends _h{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function GS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends _h{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return GS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends _h{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends _h{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends _h{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class sf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function PB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class FB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class BB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function WB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function VB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class HB extends Au{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class zB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class UB extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class zn extends pi{constructor(){super(44,"fontLigatures",zn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?zn.OFF:e==="true"?zn.ON:e:e?zn.ON:zn.OFF}}zn.OFF='"liga" off, "calt" off';zn.ON='"liga" on, "calt" on';class $B extends Au{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class jB extends _h{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class KB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class qB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Nc extends Au{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Nc.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Nc.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,ht=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,ht=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(ht=t.stableFitMaxMinimapScale),u=Math.min(ht,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const ht=Nc._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);ht.renderMinimap!==0&&ht.minimapLeft===0&&(_e+=ht.minimapWidth,De+=ht.minimapWidth,we+=ht.minimapWidth,Se+=ht.minimapWidth);const Sn=Tt-ht.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:ht,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class GB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class ZB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class YB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +import{aB as ce}from"./index-16176cf1.js";function IB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function p(s,e,...t){return IB(e,t)}var Fw;const m_="en";let tb=!1,ib=!1,__=!1,wR=!1,SR=!1,WD=!1,gm,Bw=m_,EB,Na;const Et=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Et.vscode<"u"&&typeof Et.vscode.process<"u"?qi=Et.vscode.process:typeof process<"u"&&(qi=process);const NB=typeof((Fw=qi==null?void 0:qi.versions)===null||Fw===void 0?void 0:Fw.electron)=="string"&&qi.type==="renderer";if(typeof navigator=="object"&&!NB)Na=navigator.userAgent,tb=Na.indexOf("Windows")>=0,ib=Na.indexOf("Macintosh")>=0,WD=(Na.indexOf("Macintosh")>=0||Na.indexOf("iPad")>=0||Na.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,__=Na.indexOf("Linux")>=0,SR=!0,gm=navigator.language,Bw=gm;else if(typeof qi=="object"){tb=qi.platform==="win32",ib=qi.platform==="darwin",__=qi.platform==="linux",__&&qi.env.SNAP&&qi.env.SNAP_REVISION,gm=m_,Bw=m_;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];gm=e.locale,Bw=t||m_,EB=e._translationsConfigFile}catch{}wR=!0}else console.error("Unable to resolve platform.");const Ai=tb,Me=ib,Cn=__,uo=wR,Tu=SR,lr=WD,TB=Na,qS=function(){if(Et.setImmediate)return Et.setImmediate.bind(Et);if(typeof Et.postMessage=="function"&&!Et.importScripts){let t=[];Et.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let o=0,r=t.length;o{const o=++i;t.push({id:o,callback:n}),Et.postMessage({vscodeSetImmediateId:o},"*")}}if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Ms=ib||WD?2:tb?1:3;let VI=!0,HI=!1;function yR(){if(!HI){HI=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,VI=new Uint16Array(s.buffer)[0]===512+1}return VI}const LR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function AB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of LR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DR=AB();function nb(s){let e=DR;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const RB={maxLen:1e3,windowSize:15,timeBudget:150};function sb(s,e,t,i,n=RB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),sb(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const h=r-n.windowSize*d;e.lastIndex=Math.max(0,h);const c=MB(e,t,r,a);if(!c&&l||(l=c,h<=0))break;a=h}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function MB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ta=8;class xR{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class OB{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class kR{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class pi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class Au{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class _h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function pe(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ze extends _h{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return pe(e,this.defaultValue)}}function GS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class St extends _h{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return GS(e,t,i,n)}validate(e){return St.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class er extends _h{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class kn extends _h{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return kn.string(e,this.defaultValue)}}function mn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class ti extends _h{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return mn(e,this.defaultValue,this._allowedValues)}}class sf extends pi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function PB(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class FB extends pi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),p("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:p("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class BB extends pi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:pe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:pe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function WB(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(wi||(wi={}));function VB(s){switch(s){case"line":return wi.Line;case"block":return wi.Block;case"underline":return wi.Underline;case"line-thin":return wi.LineThin;case"block-outline":return wi.BlockOutline;case"underline-thin":return wi.UnderlineThin}}class HB extends Au{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}class zB extends ze{constructor(){super(32,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class UB extends pi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Me},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:pe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":mn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":mn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:pe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:pe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:pe(t.loop,this.defaultValue.loop)}}}class zn extends pi{constructor(){super(44,"fontLigatures",zn.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?zn.OFF:e==="true"?zn.ON:e:e?zn.ON:zn.OFF}}zn.OFF='"liga" off, "calt" off';zn.ON='"liga" on, "calt" on';class $B extends Au{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class jB extends _h{constructor(){super(45,"fontSize",Hi.fontSize,{type:"number",minimum:6,maximum:100,default:Hi.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){let t=er.float(e,this.defaultValue);return t===0?Hi.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Zo extends pi{constructor(){super(46,"fontWeight",Hi.fontWeight,{anyOf:[{type:"number",minimum:Zo.MINIMUM_VALUE,maximum:Zo.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Zo.SUGGESTION_VALUES}],default:Hi.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(St.clampedInt(e,Hi.fontWeight,Zo.MINIMUM_VALUE,Zo.MAXIMUM_VALUE))}}Zo.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Zo.MINIMUM_VALUE=1;Zo.MAXIMUM_VALUE=1e3;class KB extends pi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:mn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:mn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:mn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:mn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:mn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:mn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:kn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:kn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:kn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:kn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:kn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class qB extends pi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),delay:St.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:pe(t.sticky,this.defaultValue.sticky),above:pe(t.above,this.defaultValue.above)}}}class Nc extends Au{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return Nc.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,C=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,w=c?2:3;let y=Math.floor(o*n);const k=y/o;let L=!1,D=!1,N=w*u,B=u/o,O=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:we,extraLinesBeyondLastLine:Se,desiredRatio:Tt,minimapLineCount:bt}=Nc.computeContainedMinimapLineCount({viewLineCount:C,scrollBeyondLastLine:h,height:n,lineHeight:l,pixelRatio:o});if(C/bt>1)L=!0,D=!0,u=1,N=1,B=u/o;else{let Pt=!1,ht=u+1;if(g==="fit"){const Sn=Math.ceil((C+Se)*N);v&&a&&b<=t.stableFitRemainingWidth?(Pt=!0,ht=t.stableFitMaxMinimapScale):Pt=Sn>y}if(g==="fill"||Pt){L=!0;const Sn=u;N=Math.min(l*o,Math.max(1,Math.floor(1/Tt))),v&&a&&b<=t.stableFitRemainingWidth&&(ht=t.stableFitMaxMinimapScale),u=Math.min(ht,Math.max(1,Math.floor(N/w))),u>Sn&&(O=Math.min(2,u/Sn)),B=u/o/O,y=Math.ceil(Math.max(we,C+Se)*N),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const $=Math.floor(f*B),K=Math.min($,Math.max(0,Math.floor((b-_-2)*B/(d+B)))+Ta);let le=Math.floor(o*K);const de=le/o;le=Math.floor(le*O);const _e=c?1:2,De=m==="left"?0:i-K-_;return{renderMinimap:_e,minimapLeft:De,minimapWidth:K,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:le,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:de,minimapCanvasOuterHeight:k}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,h=t.viewLineCount,c=e.get(121),u=c==="inherit"?e.get(120):c,f=u==="inherit"?e.get(116):u,g=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,C=e.get(49),b=e.get(59).renderType!==0,v=e.get(60),w=e.get(93),y=e.get(64),k=e.get(91),L=k.verticalScrollbarSize,D=k.verticalHasArrows,N=k.arrowSize,B=k.horizontalScrollbarSize,O=e.get(57),$=e.get(37);let K;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const Xs=parseFloat(O.substr(0,O.length-2));K=St.clampedInt(Xs*a,0,0,1e3)}else K=St.clampedInt(O,0,0,1e3);$&&(K+=16);let le=0;if(b){const Xs=Math.max(r,v);le=Math.round(Xs*l)}let de=0;C&&(de=o);let _e=0,De=_e+de,we=De+le,Se=we+K;const Tt=i-de-le-K;let bt=!1,xt=!1,Pt=-1;m!==2&&(u==="inherit"&&_?(bt=!0,xt=!0):f==="on"||f==="bounded"?xt=!0:f==="wordWrapColumn"&&(Pt=g));const ht=Nc._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:h,remainingWidth:Tt,isViewportWrapping:xt},t.memory||new kR);ht.renderMinimap!==0&&ht.minimapLeft===0&&(_e+=ht.minimapWidth,De+=ht.minimapWidth,we+=ht.minimapWidth,Se+=ht.minimapWidth);const Sn=Tt-ht.minimapWidth,No=Math.max(1,Math.floor((Sn-L-2)/a)),xr=D?N:0;return xt&&(Pt=Math.max(1,No),f==="bounded"&&(Pt=Math.min(Pt,g))),{width:i,height:n,glyphMarginLeft:_e,glyphMarginWidth:de,lineNumbersLeft:De,lineNumbersWidth:le,decorationsLeft:we,decorationsWidth:K,contentLeft:Se,contentWidth:Sn,minimap:ht,viewportColumn:No,isWordWrapMinified:bt,isViewportWrapping:xt,wrappingColumn:Pt,verticalScrollbarWidth:L,horizontalScrollbarHeight:B,overviewRuler:{top:xr,width:L,height:n-2*xr,right:0}}}}class GB extends pi{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class ZB extends pi{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),fontSize:St.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:kn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class YB extends er{constructor(){super(58,"lineHeight",Hi.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class XB extends pi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),size:mn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:mn(t.side,this.defaultValue.side,["right","left"]),showSlider:mn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:pe(t.renderCharacters,this.defaultValue.renderCharacters),scale:St.clampedInt(t.scale,1,1,3),maxColumn:St.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function QB(s){return s==="ctrlCmd"?Me?"metaKey":"ctrlKey":"altKey"}class JB extends pi{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:St.clampedInt(t.top,0,0,1e3),bottom:St.clampedInt(t.bottom,0,0,1e3)}}}class e5 extends pi{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),cycle:pe(t.cycle,this.defaultValue.cycle)}}}class t5 extends Au{constructor(){super(127)}compute(e,t,i){return e.pixelRatio}}class i5 extends pi{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:p("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:pe(t.other,this.defaultValue.other),comments:pe(t.comments,this.defaultValue.comments),strings:pe(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class n5 extends pi{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function VD(s){const e=s.get(86);return e==="editable"?s.get(80):e!=="on"}class s5 extends pi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if(typeof i=="number")t.push({column:St.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:St.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function zI(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let o5=class extends pi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=St.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=St.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:St.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:zI(t.vertical,this.defaultValue.vertical),horizontal:zI(t.horizontal,this.defaultValue.horizontal),useShadows:pe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:pe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:pe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:pe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:pe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:St.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:St.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:pe(t.scrollByPage,this.defaultValue.scrollByPage)}}};class r5 extends pi{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:pe(t.enabled,this.defaultValue.enabled),mode:mn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class a5 extends pi{constructor(){const e={enabled:Gi.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:pe(e.enabled,this.defaultValue.enabled)}}}class l5 extends pi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:UI(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:UI(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:pe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:pe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:pe(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function UI(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class d5 extends pi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:mn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:pe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:pe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:pe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:pe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:pe(t.showIcons,this.defaultValue.showIcons),showStatusBar:pe(t.showStatusBar,this.defaultValue.showStatusBar),preview:pe(t.preview,this.defaultValue.preview),previewMode:mn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:pe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:pe(t.showMethods,this.defaultValue.showMethods),showFunctions:pe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:pe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:pe(t.showDeprecated,this.defaultValue.showDeprecated),showFields:pe(t.showFields,this.defaultValue.showFields),showVariables:pe(t.showVariables,this.defaultValue.showVariables),showClasses:pe(t.showClasses,this.defaultValue.showClasses),showStructs:pe(t.showStructs,this.defaultValue.showStructs),showInterfaces:pe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:pe(t.showModules,this.defaultValue.showModules),showProperties:pe(t.showProperties,this.defaultValue.showProperties),showEvents:pe(t.showEvents,this.defaultValue.showEvents),showOperators:pe(t.showOperators,this.defaultValue.showOperators),showUnits:pe(t.showUnits,this.defaultValue.showUnits),showValues:pe(t.showValues,this.defaultValue.showValues),showConstants:pe(t.showConstants,this.defaultValue.showConstants),showEnums:pe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:pe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:pe(t.showKeywords,this.defaultValue.showKeywords),showWords:pe(t.showWords,this.defaultValue.showWords),showColors:pe(t.showColors,this.defaultValue.showColors),showFiles:pe(t.showFiles,this.defaultValue.showFiles),showReferences:pe(t.showReferences,this.defaultValue.showReferences),showFolders:pe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:pe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:pe(t.showSnippets,this.defaultValue.showSnippets),showUsers:pe(t.showUsers,this.defaultValue.showUsers),showIssues:pe(t.showIssues,this.defaultValue.showIssues)}}}class h5 extends pi{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:pe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class c5 extends Au{constructor(){super(128,[80])}compute(e,t,i){return t.get(80)?!0:e.tabFocusMode}}function u5(s){switch(s){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class f5 extends Au{constructor(){super(130,[129])}compute(e,t,i){const n=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}const g5="Consolas, 'Courier New', monospace",p5="Menlo, Monaco, 'Courier New', monospace",m5="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Hi={fontFamily:Me?p5:Cn?m5:g5,fontWeight:"normal",fontSize:Me?12:14,lineHeight:0,letterSpacing:0},Gi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},mc=[];function Q(s){return mc[s.id]=s,s}const Do={acceptSuggestionOnCommitCharacter:Q(new ze(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Q(new ti(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Q(new FB),accessibilityPageSize:Q(new St(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:Q(new kn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:Q(new ti(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Q(new ti(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Q(new ti(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Q(new ti(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Q(new sf(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],PB,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Q(new ze(10,"automaticLayout",!1)),autoSurround:Q(new ti(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Q(new a5),bracketPairGuides:Q(new l5),stickyTabStops:Q(new ze(103,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Q(new ze(14,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Q(new kn(15,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Q(new St(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:Q(new ze(17,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:Q(new ze(18,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Q(new BB),contextmenu:Q(new ze(20,"contextmenu",!0)),copyWithSyntaxHighlighting:Q(new ze(21,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Q(new sf(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],WB,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Q(new ze(23,"cursorSmoothCaretAnimation",!1,{description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Q(new sf(24,"cursorStyle",wi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],VB,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Q(new St(25,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Q(new ti(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Q(new St(27,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Q(new ze(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:Q(new ze(29,"disableMonospaceOptimizations",!1)),domReadOnly:Q(new ze(30,"domReadOnly",!1)),dragAndDrop:Q(new ze(31,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Q(new zB),extraEditorClassName:Q(new kn(33,"extraEditorClassName","")),fastScrollSensitivity:Q(new er(34,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Q(new UB),fixedOverflowWidgets:Q(new ze(36,"fixedOverflowWidgets",!1)),folding:Q(new ze(37,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Q(new ti(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Q(new ze(39,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Q(new ze(40,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:Q(new ze(41,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Q(new kn(42,"fontFamily",Hi.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:Q(new $B),fontLigatures2:Q(new zn),fontSize:Q(new jB),fontWeight:Q(new Zo),formatOnPaste:Q(new ze(47,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Q(new ze(48,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Q(new ze(49,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Q(new KB),hideCursorInOverviewRuler:Q(new ze(51,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Q(new qB),inDiffEditor:Q(new ze(53,"inDiffEditor",!1)),letterSpacing:Q(new er(55,"letterSpacing",Hi.letterSpacing,s=>er.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Q(new GB),lineDecorationsWidth:Q(new _h(57,"lineDecorationsWidth",10)),lineHeight:Q(new YB),lineNumbers:Q(new n5),lineNumbersMinChars:Q(new St(60,"lineNumbersMinChars",5,1,300)),linkedEditing:Q(new ze(61,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:Q(new ze(62,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Q(new ti(63,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:Q(new XB),mouseStyle:Q(new ti(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Q(new er(66,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Q(new ze(67,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Q(new ze(68,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Q(new sf(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],QB,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Q(new ti(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:Q(new ze(71,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Q(new ze(72,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Q(new St(73,"overviewRulerLanes",3,0,3)),padding:Q(new JB),parameterHints:Q(new e5),peekWidgetDefaultFocus:Q(new ti(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Q(new ze(77,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Q(new i5),quickSuggestionsDelay:Q(new St(79,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Q(new ze(80,"readOnly",!1)),renameOnType:Q(new ze(81,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Q(new ze(82,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Q(new ze(83,"renderFinalNewline",!0,{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Q(new ti(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Q(new ze(85,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Q(new ti(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Q(new ti(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Q(new St(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:Q(new ze(89,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Q(new s5),scrollbar:Q(new o5),scrollBeyondLastColumn:Q(new St(92,"scrollBeyondLastColumn",5,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Q(new ze(93,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Q(new ze(94,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Q(new ze(95,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Cn})),selectionHighlight:Q(new ze(96,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Q(new ze(97,"selectOnLineNumbers",!0)),showFoldingControls:Q(new ti(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Q(new ze(99,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:Q(new ze(124,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Q(new ZB),snippetSuggestions:Q(new ti(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Q(new h5),smoothScrolling:Q(new ze(102,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Q(new St(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Q(new d5),inlineSuggest:Q(new r5),suggestFontSize:Q(new St(106,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:Q(new St(107,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:Q(new ze(108,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Q(new ti(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Q(new ti(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:Q(new St(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:Q(new ti(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Q(new ze(113,"useShadowDOM",!0)),useTabStops:Q(new ze(114,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:Q(new kn(115,"wordSeparators",LR,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Q(new ti(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Q(new kn(117,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Q(new kn(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Q(new St(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Q(new ti(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Q(new ti(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:Q(new sf(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],u5,{enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:Q(new ti(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:p("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:Q(new HB),pixelRatio:Q(new t5),tabFocusMode:Q(new c5),layoutInfo:Q(new Nc),wrappingInfo:Q(new f5)};class _5{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+` @@ -615,7 +615,7 @@ ${e.toString()}`}}class SC{constructor(e=new qg,t=!1,i){this._activeInstantiatio `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+=` `,this.value+=t,this.value+="\n```\n",this}}function hg(s){return L2(s)?!s.value:Array.isArray(s)?s.every(hg):!0}function L2(s){return s instanceof ma?!0:s&&typeof s=="object"?typeof s.value=="string"&&(typeof s.isTrusted=="boolean"||s.isTrusted===void 0)&&(typeof s.supportThemeIcons=="boolean"||s.supportThemeIcons===void 0):!1}function xG(s){return s.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}function rS(s){return s&&s.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function kG(s){const e=[],t=s.split("|").map(n=>n.trim());s=t[0];const i=t[1];if(i){const n=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),r=n?n[1]:"",a=o?o[1]:"",l=isFinite(parseInt(a)),d=isFinite(parseInt(r));l&&e.push(`width="${a}"`),d&&e.push(`height="${r}"`)}return{href:s,dimensions:e}}var vL=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function IG(s,e){Gs(e)?s.title=e:e!=null&&e.markdownNotSupportedFallback?s.title=e.markdownNotSupportedFallback:s.removeAttribute("title")}class EG{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return vL(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(e===void 0||Gs(e)||e instanceof HTMLElement)n=e;else if(!Wf(e.markdown))n=(i=e.markdown)!==null&&i!==void 0?i:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(p("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new ln;const o=this._cancellationTokenSource.token;if(n=yield e.markdown(o),this.isDisposed||o.isCancellationRequested)return}this.show(n,t)})}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}i==null||i.dispose()}hasContent(e){return e?L2(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,t;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(t=this._cancellationTokenSource)===null||t===void 0||t.dispose(!0),this._cancellationTokenSource=void 0}}function NG(s,e,t){let i,n;const o=(h,c)=>{var u;h&&(n==null||n.dispose(),n=void 0),c&&(i==null||i.dispose(),i=void 0),(u=s.onDidHideHover)===null||u===void 0||u.call(s)},r=(h,c,u)=>new hn(()=>vL(this,void 0,void 0,function*(){(!n||n.isDisposed)&&(n=new EG(s,u||e,h>0),yield n.update(t,c))}),h),a=()=>{if(i)return;const h=new X,c=g=>o(!1,g.fromElement===e);h.add(q(e,ue.MOUSE_LEAVE,c,!0));const u=()=>o(!0,!0);h.add(q(e,ue.MOUSE_DOWN,u,!0));const f={targetElements:[e],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const g=m=>f.x=m.x+10;h.add(q(e,ue.MOUSE_MOVE,g,!0))}h.add(r(s.delay,!1,f)),i=h},l=q(e,ue.MOUSE_OVER,a,!0);return{show:h=>{o(!1,!0),r(0,h)},hide:()=>{o(!0,!0)},update:h=>vL(this,void 0,void 0,function*(){t=h,yield n==null?void 0:n.update(t)}),dispose:()=>{l.dispose(),o(!0,!0)}}}class aS{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class Xk extends H{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new aS(U(e,Y(".monaco-icon-label")))),this.labelContainer=U(this.domNode.element,Y(".monaco-icon-label-container"));const i=U(this.labelContainer,Y("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new aS(U(this.labelContainer,Y("span.monaco-icon-description-container")))),t!=null&&t.supportHighlights||t!=null&&t.supportIcons?this.nameNode=new RG(i,!!t.supportIcons):this.nameNode=new TG(i),t!=null&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new Cl(U(this.descriptionContainer.element,Y("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new aS(U(this.descriptionContainer.element,Y("span.label-description")))),this.hoverDelegate=t==null?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover(i!=null&&i.descriptionTitle?this.labelContainer:this.element,i==null?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof Cl?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,i==null?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(i==null?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(!this.hoverDelegate)IG(e,t);else{const n=NG(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class TG{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:i,end:i+n.length},r=t.map(a=>Bi.intersect(o,a)).filter(a=>!Bi.isEmpty(a)).map(({start:a,end:l})=>({start:a-i,end:l-i}));return i=o.end+e.length,r})}class RG{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&po(this.options,t)))if(this.label=e,this.options=t,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new Cl(U(this.container,Y("a.label-name",{id:t==null?void 0:t.domId})),this.supportIcons)),this.singleLabel.set(e,t==null?void 0:t.matches,void 0,t==null?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(t==null?void 0:t.separator)||"/",n=AG(e,i,t==null?void 0:t.matches);for(let o=0;o{const s=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:s,collatorIsNumeric:s.resolvedOptions().numeric}});function MG(s,e,t=!1){const i=s||"",n=e||"",o=UT.value.collator.compare(i,n);return UT.value.collatorIsNumeric&&o===0&&i!==n?in.length)return 1}return 0}var D2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},FG=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Ho=Y;class BG{constructor(e){this.hidden=!1,this._onChecked=new M,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Qp{get templateId(){return Qp.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=U(e,Ho(".quick-input-list-entry"));const i=U(t.entry,Ho("label.quick-input-list-label"));t.toDisposeTemplate.push(ii(i,ue.CLICK,d=>{t.checkbox.offsetParent||d.preventDefault()})),t.checkbox=U(i,Ho("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(ii(t.checkbox,ue.CHANGE,d=>{t.element.checked=t.checkbox.checked}));const n=U(i,Ho(".quick-input-list-rows")),o=U(n,Ho(".quick-input-list-row")),r=U(n,Ho(".quick-input-list-row"));t.label=new Xk(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=U(o,Ho(".quick-input-list-entry-keybinding"));t.keybinding=new Qk(a,Ms);const l=U(r,Ho(".quick-input-list-label-meta"));return t.detail=new Cl(l,!0),t.separator=U(t.entry,Ho(".quick-input-list-separator")),t.actionBar=new pa(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(d=>i.checkbox.checked=d));const{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,a=Object.create(null);a.matches=n||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=o||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,r),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((d,h)=>{let c=d.iconClass||(d.iconPath?bL(d.iconPath):void 0);d.alwaysVisible&&(c=c?`${c} always-visible`:"always-visible");const u=new Us(`id-${h}`,"",c,!0,()=>FG(this,void 0,void 0,function*(){e.fireButtonTriggered({button:d,item:e.item})}));return u.tooltip=d.tooltip||"",u}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=qe(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=qe(e.toDisposeElement),e.toDisposeTemplate=qe(e.toDisposeTemplate)}}Qp.ID="listelement";class WG{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Qp.ID}}var qt;(function(s){s[s.First=1]="First",s[s.Second=2]="Second",s[s.Last=3]="Last",s[s.Next=4]="Next",s[s.Previous=5]="Previous",s[s.NextPage=6]="NextPage",s[s.PreviousPage=7]="PreviousPage"})(qt||(qt={}));class Jk{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new M,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new M,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new M,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new M,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new M,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new M,this.onKeyDown=this._onKeyDown.event,this._onLeave=new M,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=U(this.parent,Ho(".quick-input-list"));const n=new WG,o=new HG;this.list=i.createList("QuickInput",this.container,n,[new Qp],{identityProvider:{getId:r=>r.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(r=>{const a=new Ot(r);switch(a.keyCode){case 10:this.toggleCheckbox();break;case 31:(Me?r.metaKey:r.ctrlKey)&&this.list.setFocus(tn(this.list.length));break;case 16:const l=this.list.getFocus();l.length===1&&l[0]===0&&this._onLeave.fire();break;case 18:const d=this.list.getFocus();d.length===1&&d[0]===this.list.length-1&&this._onLeave.fire();break}this._onKeyDown.fire(a)})),this.disposables.push(this.list.onMouseDown(r=>{r.browserEvent.button!==2&&r.browserEvent.preventDefault()})),this.disposables.push(q(this.container,ue.CLICK,r=>{(r.x||r.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(r=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(r=>{typeof r.index=="number"&&(r.browserEvent.preventDefault(),this.list.setSelection([r.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return he.map(this.list.onDidChangeFocus,e=>e.elements.map(t=>t.item))}get onDidChangeSelection(){return he.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(t=>t.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=qe(this.elementDisposables);const t=i=>this.fireButtonTriggered(i);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if(n.type!=="separator"){const d=o&&e[o-1],h=n.label&&n.label.replace(/\r?\n/g," "),c=n.meta&&n.meta.replace(/\r?\n/g," "),u=n.description&&n.description.replace(/\r?\n/g," "),f=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[h,u,f].map(m=>HW(m)).filter(m=>!!m).join(", ");i.push(new BG({index:o,item:n,saneLabel:h,saneMeta:c,saneAriaLabel:g,saneDescription:u,saneDetail:f,labelHighlights:(r=n.highlights)===null||r===void 0?void 0:r.label,descriptionHighlights:(a=n.highlights)===null||a===void 0?void 0:a.description,detailHighlights:(l=n.highlights)===null||l===void 0?void 0:l.detail,checked:!1,separator:d&&d.type==="separator"?d:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(i=>i.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),e.length>0){const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const i of this.elements)i.checked=t.has(i.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===qt.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=qt.First),e===qt.Previous&&this.list.getFocus()[0]===0&&(e=qt.Last),e===qt.Second&&this.list.length<2&&(e=qt.First),e){case qt.First:this.list.focusFirst();break;case qt.Second:this.list.focusNth(1);break;case qt.Last:this.list.focusLast();break;case qt.Next:this.list.focusNext();break;case qt.Previous:this.list.focusPrevious();break;case qt.NextPage:this.list.focusNextPage();break;case qt.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];typeof t=="number"&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${Math.floor(e/44)*44}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(i=>{i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!1;const n=i.index&&this.inputElements[i.index-1];i.separator=n&&n.type==="separator"?n:void 0});else{let i;this.elements.forEach(n=>{const o=this.matchOnLabel?qn(Um(e,zm(n.saneLabel))):void 0,r=this.matchOnDescription?qn(Um(e,zm(n.saneDescription||""))):void 0,a=this.matchOnDetail?qn(Um(e,zm(n.saneDetail||""))):void 0,l=this.matchOnMeta?qn(Um(e,zm(n.saneMeta||""))):void 0;if(o||r||a||l?(n.labelHighlights=o,n.descriptionHighlights=r,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const d=n.index&&this.inputElements[n.index-1];i=d&&d.type==="separator"?d:i,i&&!n.hidden&&(n.separator=i,i=void 0)}})}const t=this.elements.filter(i=>!i.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((n,o)=>VG(n,o,i))}return this.elementsToIndexes=t.reduce((i,n,o)=>(i.set(n.item,o),i),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=qe(this.elementDisposables),this.disposables=qe(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}D2([si],Jk.prototype,"onDidChangeFocus",null);D2([si],Jk.prototype,"onDidChangeSelection",null);function VG(s,e,t){const i=s.labelHighlights||[],n=e.labelHighlights||[];return i.length&&!n.length?-1:!i.length&&n.length?1:i.length===0&&n.length===0?0:OG(s.saneLabel,e.saneLabel,t)}class HG{getWidgetAriaLabel(){return p("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var $T=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const Bn=Y,zG=Zs("quick-input-back",ie.arrowLeft),wL={iconClass:zG.classNames,tooltip:p("quickInput.back","Back"),handle:-1};class qv extends H{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=qv.noPromptMessage,this._severity=Wt.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new M),this.onDidHideEmitter=this._register(new M),this.onDisposeEmitter=this._register(new M),this.visibleDisposables=this._register(new X),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!lr;this._ignoreFocusOut=e&&!lr,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{this.buttons.indexOf(e)!==-1&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=rp.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText=" ");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new hn,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const n=this.buttons.filter(r=>r===wL);this.ui.leftActionBar.push(n.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||bL(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const o=this.buttons.filter(r=>r!==wL);this.ui.rightActionBar.push(o.map((r,a)=>{const l=new Us(`id-${a}`,"",r.iconClass||bL(r.iconPath),!0,()=>$T(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(r)}));return l.tooltip=r.tooltip||"",l}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,al(this.ui.message,...Od(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?p("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Wt.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}qv.noPromptMessage=p("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ap extends qv{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new M),this.onWillAcceptEmitter=this._register(new M),this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?eo.NONE:eo.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new M),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new M),this.onDidTriggerItemButtonEmitter=this._register(new M),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?mG:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(qt.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(qt.Next),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(qt.Previous):this.ui.list.focus(qt.Last),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 12:this.ui.list.focus(qt.NextPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 11:this.ui.list.focus(qt.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),rt.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.First),rt.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(qt.Last),rt.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&zs(e,this._activeItems,(t,i)=>t===i)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(i,n)=>i===n)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&t.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&zs(e,this._selectedItems,(t,i)=>t===i)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return q(this.ui.container,ue.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Ot(e),i=t.keyCode;this._quickNavigate.keybindings.some(r=>{const[a,l]=r.getParts();return l?!1:a.shiftKey&&i===4?!(t.ctrlKey||t.altKey||t.metaKey):!!(a.altKey&&i===6||a.ctrlKey&&i===5||a.metaKey&&i===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);const i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||ap.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case eo.NONE:this._itemActivation=eo.FIRST;break;case eo.SECOND:this.ui.list.focus(qt.Second),this._itemActivation=eo.FIRST;break;case eo.LAST:this.ui.list.focus(qt.Last),this._itemActivation=eo.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(qt.First)),this.keepScrollPosition&&(this.scrollTop=e)}}ap.DEFAULT_ARIA_LABEL=p("quickInputBox.ariaLabel","Type to narrow down results.");class Gv extends H{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new M),this.onDidCustomEmitter=this._register(new M),this.onDidTriggerButtonEmitter=this._register(new M),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new M),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new M),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(q(window,ue.KEY_DOWN,e,!0)),this._register(q(window,ue.KEY_UP,e,!0)),this._register(q(window,ue.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=U(this.parentElement,Bn(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Xn(e),i=U(e,Bn(".quick-input-titlebar")),n=this._register(new pa(i));n.domNode.classList.add("quick-input-left-action-bar");const o=U(i,Bn(".quick-input-title")),r=this._register(new pa(i));r.domNode.classList.add("quick-input-right-action-bar");const a=U(e,Bn(".quick-input-description")),l=U(e,Bn(".quick-input-header")),d=U(l,Bn("input.quick-input-check-all"));d.type="checkbox",this._register(ii(d,ue.CHANGE,B=>{const O=d.checked;L.setAllVisibleChecked(O)})),this._register(q(d,ue.CLICK,B=>{(B.x||B.y)&&f.setFocus()}));const h=U(l,Bn(".quick-input-description")),c=U(l,Bn(".quick-input-and-message")),u=U(c,Bn(".quick-input-filter")),f=this._register(new DG(u));f.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U(u,Bn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const m=new _L(g,{countFormat:p({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),_=U(u,Bn(".quick-input-count"));_.setAttribute("aria-live","polite");const C=new _L(_,{countFormat:p({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),b=U(l,Bn(".quick-input-action")),v=new WT(b);v.label=p("ok","OK"),this._register(v.onDidClick(B=>{this.onDidAcceptEmitter.fire()}));const w=U(l,Bn(".quick-input-action")),y=new WT(w);y.label=p("custom","Custom"),this._register(y.onDidClick(B=>{this.onDidCustomEmitter.fire()}));const k=U(c,Bn(`#${this.idPrefix}message.quick-input-message`)),L=this._register(new Jk(e,this.idPrefix+"list",this.options));this._register(L.onChangedAllVisibleChecked(B=>{d.checked=B})),this._register(L.onChangedVisibleCount(B=>{m.setCount(B)})),this._register(L.onChangedCheckedCount(B=>{C.setCount(B)})),this._register(L.onLeave(()=>{setTimeout(()=>{f.setFocus(),this.controller instanceof ap&&this.controller.canSelectMany&&L.clearFocus()},0)})),this._register(L.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const D=new gG(e);D.getContainer().classList.add("quick-input-progress");const N=Zc(e);return this._register(N),this._register(q(e,ue.FOCUS,B=>{this.previousFocusElement=B.relatedTarget instanceof HTMLElement?B.relatedTarget:void 0},!0)),this._register(N.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(rp.Blur),this.previousFocusElement=void 0})),this._register(q(e,ue.FOCUS,B=>{f.setFocus()})),this._register(q(e,ue.KEY_DOWN,B=>{const O=new Ot(B);switch(O.keyCode){case 3:rt.stop(B,!0),this.onDidAcceptEmitter.fire();break;case 9:rt.stop(B,!0),this.hide(rp.Gesture);break;case 2:if(!O.altKey&&!O.ctrlKey&&!O.metaKey){const $=[".action-label.codicon"];e.classList.contains("show-checkboxes")?$.push("input"):$.push("input[type=text]"),this.getUI().list.isDisplayed()&&$.push(".monaco-list");const K=e.querySelectorAll($.join(", "));O.shiftKey&&O.target===K[0]?(rt.stop(B,!0),K[K.length-1].focus()):!O.shiftKey&&O.target===K[K.length-1]&&(rt.stop(B,!0),K[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:a,description2:h,rightActionBar:r,checkAll:d,filterContainer:u,inputBox:f,visibleCountContainer:g,visibleCount:m,countContainer:_,count:C,okContainer:b,ok:v,message:k,customButtonContainer:w,customButton:y,list:L,progressBar:D,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:B=>this.show(B),hide:()=>this.hide(),setVisibilities:B=>this.setVisibilities(B),setComboboxAccessibility:B=>this.setComboboxAccessibility(B),setEnabled:B=>this.setEnabled(B),setContextKey:B=>this.options.setContextKey(B)},this.updateStyles(),this.ui}pick(e,t={},i=Oe.None){return new Promise((n,o)=>{let r=h=>{r=n,t.onKeyMods&&t.onKeyMods(a.keyMods),n(h)};if(i.isCancellationRequested){r(void 0);return}const a=this.createQuickPick();let l;const d=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const h=a.activeItems[0];h&&(r(h),a.hide())}}),a.onDidChangeActive(h=>{const c=h[0];c&&t.onDidFocus&&t.onDidFocus(c)}),a.onDidChangeSelection(h=>{if(!a.canSelectMany){const c=h[0];c&&(r(c),a.hide())}}),a.onDidTriggerItemButton(h=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},h),{removeItem:()=>{const c=a.items.indexOf(h.item);if(c!==-1){const u=a.items.slice(),f=u.splice(c,1),g=a.activeItems.filter(_=>_!==f[0]),m=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=u,g&&(a.activeItems=g),a.keepScrollPosition=m}}}))),a.onDidChangeValue(h=>{l&&!h&&(a.activeItems.length!==1||a.activeItems[0]!==l)&&(a.activeItems=[l])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{qe(d),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=t.matchOnLabel===void 0||t.matchOnLabel,a.autoFocusOnList=t.autoFocusOnList===void 0||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([h,c])=>{l=c,a.busy=!1,a.items=h,a.canSelectMany&&(a.selectedItems=h.filter(u=>u.type!=="separator"&&u.picked)),l&&(a.activeItems=[l])}),a.show(),Promise.resolve(e).then(void 0,h=>{o(h),a.hide()})})}createQuickPick(){const e=this.getUI();return new ap(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Wt.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),al(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();wL.tooltip=n?p("quickInput.backWithKeybinding","Back ({0})",n):p("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(!((t=this.ui)===null||t===void 0)&&t.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(this.dimension.width*.62,Gv.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const a=r.join(` `);a!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=a)}}}Gv.MAX_WIDTH=600;var SL;(function(s){s[s.PRESERVE=0]="PRESERVE",s[s.LAST=1]="LAST"})(SL||(SL={}));const Ah={Quickaccess:"workbench.contributions.quickaccess"};class UG{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((t,i)=>i.prefix.length-t.prefix.length),Ve(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return wh([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(i=>e.startsWith(i.prefix))||void 0||this.defaultProvider}}Xt.add(Ah.Quickaccess,new UG);const Ml=Je("quickInputService");var $G=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let yL=class extends H{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Xt.as(Ah.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=a==null?void 0:a.descriptor;if(a&&r&&l===r){e!==r.prefix&&!(i!=null&&i.preserveValue)&&(a.picker.value=e),this.adjustValueSelection(a.picker,r,i);return}if(r&&!(i!=null&&i.preserveValue)){let g;if(a&&l&&l!==r){const m=a.value.substr(l.prefix.length);m&&(g=`${r.prefix}${m}`)}if(!g){const m=o==null?void 0:o.defaultFilterValue;m===SL.LAST?g=this.lastAcceptedPickerValues.get(r):typeof m=="string"&&(g=`${r.prefix}${m}`)}typeof g=="string"&&(e=g)}const d=new X,h=d.add(this.quickInputService.createQuickPick());h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=r==null?void 0:r.placeholder,h.quickNavigate=i==null?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,(typeof(i==null?void 0:i.itemActivation)=="number"||i!=null&&i.quickNavigateConfiguration)&&(h.itemActivation=(n=i==null?void 0:i.itemActivation)!==null&&n!==void 0?n:eo.SECOND),h.contextKey=r==null?void 0:r.contextKey,h.filterValue=g=>g.substring(r?r.prefix.length:0),r!=null&&r.placeholder&&(h.ariaLabel=r==null?void 0:r.placeholder);let c,u;t&&(c=new Promise(g=>u=g),d.add(ha(h.onWillAccept)(g=>{g.veto(),h.hide()}))),d.add(this.registerPickerListeners(h,o,r,e));const f=d.add(new ln);if(o&&d.add(o.provide(h,f.token)),ha(h.onDidHide)(()=>{h.selectedItems.length===0&&f.cancel(),d.dispose(),u==null||u(h.selectedItems)}),h.show(),t)return c}adjustValueSelection(e,t,i){var n;let o;i!=null&&i.preserveValue?o=[e.value.length,e.value.length]:o=[(n=t==null?void 0:t.prefix.length)!==null&&n!==void 0?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n){const o=new X,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Ve(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(a=>{const[l]=this.getOrInstantiateProvider(a);l!==t?this.show(a,{preserveValue:!0}):r.value=a})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};yL=$G([jT(0,Ml),jT(1,Ge)],yL);var jG=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_f=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let LL=class extends b8{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(yL))),this._quickAccess}createController(e=this.layoutService,t){var i,n;const o={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>e.focus(),createList:(a,l,d,h,c)=>this.instantiationService.createInstance(cL,a,l,d,h,c),styles:this.computeStyles()},r=this._register(new Gv(Object.assign(Object.assign({},o),t)));return r.layout(e.dimension,(n=(i=e.offset)===null||i===void 0?void 0:i.top)!==null&&n!==void 0?n:0),this._register(e.onDidLayout(a=>{var l,d;return r.layout(a,(d=(l=e.offset)===null||l===void 0?void 0:l.top)!==null&&d!==void 0?d:0)})),this._register(r.onShow(()=>this.resetContextKeys())),this._register(r.onHide(()=>this.resetContextKeys())),r}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new re(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),!(t&&t.get())&&(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=Oe.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},io(this.theme,{quickInputBackground:cN,quickInputForeground:u9,quickInputTitleBackground:f9,contrastBorder:Zt,widgetShadow:gl})),inputBox:io(this.theme,{inputForeground:Gx,inputBackground:qx,inputBorder:Zx,inputValidationInfoBackground:Yx,inputValidationInfoForeground:Xx,inputValidationInfoBorder:Qx,inputValidationWarningBackground:AO,inputValidationWarningForeground:RO,inputValidationWarningBorder:MO,inputValidationErrorBackground:OO,inputValidationErrorForeground:PO,inputValidationErrorBorder:FO}),countBadge:io(this.theme,{badgeBackground:Qf,badgeForeground:Jf,badgeBorder:Zt}),button:io(this.theme,{buttonForeground:n9,buttonBackground:ky,buttonHoverBackground:s9,buttonBorder:Zt}),progressBar:io(this.theme,{progressBarBackground:o9}),keybindingLabel:io(this.theme,{keybindingLabelBackground:m9,keybindingLabelForeground:_9,keybindingLabelBorder:b9,keybindingLabelBottomBorder:C9,keybindingLabelShadow:gl}),list:io(this.theme,{listBackground:cN,listInactiveFocusForeground:T_,listInactiveSelectionIconForeground:A_,listInactiveFocusBackground:R_,listFocusOutline:Xi,listInactiveFocusOutline:Xi,pickerGroupBorder:p9,pickerGroupForeground:g9})}}};LL=jG([_f(0,Ge),_f(1,ve),_f(2,Dt),_f(3,Pn),_f(4,Wv)],LL);var x2=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ad=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let DL=class extends LL{constructor(e,t,i,n,o,r){super(t,i,n,o,r),this.host=void 0;const a=fu.get(e);this.host={_serviceBrand:void 0,get container(){return a.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};DL=x2([ad(1,Ge),ad(2,ve),ad(3,Dt),ad(4,Pn),ad(5,Wv)],DL);let xL=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(DL,e);this.mapEditorToService.set(e,t),ha(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=Oe.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}};xL=x2([ad(0,Ge),ad(1,tt)],xL);class fu{constructor(e){this.editor=e,this.widget=new Zv(this.editor)}static get(e){return e.getContribution(fu.ID)}dispose(){this.widget.dispose()}}fu.ID="editor.controller.quickInput";class Zv{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Zv.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Zv.ID="editor.contrib.quickInputWidget";nt(fu.ID,fu);var it;(function(s){const e=new qg;class t{constructor(l,d){this._serviceId=l,this._factory=d,this._value=null}get id(){return this._serviceId}get(l){if(!this._value){if(l&&(this._value=l[this._serviceId.toString()]),this._value||(this._value=this._factory(l)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");e.set(this._serviceId,this._value)}return this._value}}s.LazyStaticService=t;let i=[];function n(a,l){let d=new t(a,l);return i.push(d),d}function o(a){let l=new qg;for(const[h,c]of TV())l.set(h,c);for(let h in a)a.hasOwnProperty(h)&&l.set(Je(h),a[h]);i.forEach(h=>l.set(h.id,h.get(a)));let d=new SC(l,!0);return l.set(Ge,d),[l,d]}s.init=o,s.instantiationService=n(Ge,()=>new SC(e,!0));const r=new aO;s.configurationService=n(Ht,()=>r),s.resourceConfigurationService=n(_x,()=>new c8(r)),s.resourcePropertiesService=n(OM,()=>new by(r)),s.contextService=n(iO,()=>new Cv),s.labelService=n(qp,()=>new g8),s.telemetryService=n(Nl,()=>new u8),s.dialogService=n(Kp,()=>new d8),s.notificationService=n(ni,()=>new bv),s.markerService=n(Xp,()=>new rd),s.modeService=n(Qi,a=>new Jg),s.standaloneThemeService=n(Ih,()=>new sK),s.logService=n(Cr,()=>new iH(new tH)),s.undoRedoService=n(Wp,a=>new TC(s.dialogService.get(a),s.notificationService.get(a))),s.languageConfigurationService=n(Pp,a=>new Ib(s.configurationService.get(a),s.modeService.get(a))),s.modelService=n(ri,a=>new bC(s.configurationService.get(a),s.resourcePropertiesService.get(a),s.standaloneThemeService.get(a),s.logService.get(a),s.undoRedoService.get(a),s.modeService.get(a),s.languageConfigurationService.get(a))),s.markerDecorationsService=n(Tx,a=>new pL(s.modelService.get(a),s.markerService.get(a))),s.contextKeyService=n(ve,a=>new Zy(s.configurationService.get(a))),s.codeEditorService=n(tt,a=>new mC(null,s.contextKeyService.get(a),s.standaloneThemeService.get(a))),s.editorProgressService=n(Ca,()=>new _v),s.storageService=n(yr,()=>new iG),s.editorWorkerService=n(Ys,a=>new hy(s.modelService.get(a),s.resourceConfigurationService.get(a),s.logService.get(a)))})(it||(it={}));class KG extends H{constructor(e,t){super();const[i,n]=it.init(t);this._serviceCollection=i,this._instantiationService=n;const o=this.get(Ht),r=this.get(ni),a=this.get(Nl),l=this.get(Dt),d=this.get(Cr),h=this.get(ve);let c=(_,C)=>{let b=null;return t&&(b=t[_.toString()]),b||(b=C()),this._serviceCollection.set(_,b),b};c(Pn,()=>new mL(h,o)),c(Ss,()=>new dL(l));let u=c(Yt,()=>new h8(this._instantiationService)),f=c(Nt,()=>this._register(new rO(h,u,a,r,d,e))),g=c(Wv,()=>new p8(it.codeEditorService.get(tt),e));c(Ml,()=>new xL(n,it.codeEditorService.get(tt)));let m=c(Tl,()=>this._register(new nL(g)));c(Rl,()=>new rG),c(Al,()=>{const _=new iL(a,r,m,f,l);return _.configure({blockMouse:!1}),this._register(_)}),c(Lh,()=>new fL(u)),c(Dx,()=>new f8(it.modelService.get(ri)))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}function k2(s,e,t){let i=new KG(s,e),n=null;i.has(Jn)||(n=new _y(it.modelService.get()),i.set(Jn,n)),i.has(Co)||i.set(Co,new Z1(i.get(tt),i.get(Yt)));let o=t(i);return n&&n.setEditor(o),o}function qG(s,e,t){return k2(s,t||{},i=>new $y(s,e,i,i.get(Ge),i.get(tt),i.get(Yt),i.get(ve),i.get(Nt),i.get(Tl),i.get(Ih),i.get(ni),i.get(Ht),i.get(Pn),i.get(ri),i.get(Qi)))}function GG(s){return it.codeEditorService.get().onCodeEditorAdd(e=>{s(e)})}function ZG(s,e,t){return k2(s,t||{},i=>new jy(s,e,i,i.get(Ge),i.get(ve),i.get(Nt),i.get(Tl),i.get(Ys),i.get(tt),i.get(Ih),i.get(ni),i.get(Ht),i.get(Al),i.get(Ca),i.get(Rl)))}function YG(s,e){return new uW(s,e)}function XG(s,e,t){return IP(it.modelService.get(),it.modeService.get(),s,e,t)}function QG(s,e){it.modelService.get().setMode(s,it.modeService.get().create(e))}function JG(s,e,t){s&&it.markerService.get().changeOne(e,s.uri,t)}function eZ(s){return it.markerService.get().read(s)}function tZ(s){return it.markerService.get().onMarkerChanged(s)}function iZ(s){return it.modelService.get().getModel(s)}function nZ(){return it.modelService.get().getModels()}function sZ(s){return it.modelService.get().onModelAdded(s)}function oZ(s){return it.modelService.get().onModelRemoved(s)}function rZ(s){return it.modelService.get().onModelModeChanged(e=>{s({model:e.model,oldLanguage:e.oldModeId})})}function aZ(s){return aH(it.modelService.get(),s)}function lZ(s,e){const t=it.standaloneThemeService.get();return t.registerEditorContainer(s),Lx.colorizeElement(t,it.modeService.get(),s,e)}function dZ(s,e,t){return it.standaloneThemeService.get().registerEditorContainer(document.body),Lx.colorize(it.modeService.get(),s,e,t)}function hZ(s,e,t=4){return it.standaloneThemeService.get().registerEditorContainer(document.body),Lx.colorizeModelLine(s,e,t)}function cZ(s){let e=Rt.get(s);return e||{getInitialState:()=>Op,tokenize:(t,i,n,o)=>CM(s,t,n,o)}}function uZ(s,e){it.modeService.get().triggerMode(e);let i=cZ(e),n=cr(s),o=[],r=i.getInitialState();for(let a=0,l=n.length;a=100){i=i-100;let n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw pt(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw pt(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!kH(s,Ba(s,n,"",[],""))))throw pt(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){let i=[];for(let n=0,o=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=kL(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=IL(e,this.name,t)}}function yZ(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");let t={};t.languageId=s,t.includeLF=Xm(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=Xm(e.ignoreCase,!1),t.unicode=Xm(e.unicode,!1),t.tokenPostfix=KT(e.tokenPostfix,"."+t.languageId),t.defaultToken=KT(e.defaultToken,"source"),t.usesEmbedded=!1;let i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const d of l){let h=d.include;if(h){if(typeof h!="string")throw pt(t,"an 'include' attribute must be a string at: "+r);if(h[0]==="@"&&(h=h.substr(1)),!e.tokenizer[h])throw pt(t,"include target '"+h+"' is not defined at: "+r);n(r+"."+h,a,e.tokenizer[h])}else{const c=new SZ(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(c.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")c.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[2],c.setAction(i,u)}else throw pt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else c.setAction(i,d[1]);else{if(!d.regex)throw pt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(c.name=d.name),d.matchOnlyAtStart&&(c.matchOnlyAtLineStart=Xm(d.matchOnlyAtLineStart,!1)),c.setRegex(i,d.regex),c.setAction(i,d.action)}a.push(c)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw pt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(let r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw pt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw pt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Xa(t,a.open),close:Xa(t,a.close)});else throw pt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function LZ(s){Rd.registerLanguage(s)}function DZ(){let s=[];return s=s.concat(Rd.getLanguages()),s}function xZ(s){return it.modeService.get().languageIdCodec.encodeLanguageId(s)}function kZ(s,e){let t=it.modeService.get().onDidEncounterLanguage(i=>{i===s&&(t.dispose(),e())});return t}function IZ(s,e){const t=it.modeService.get().validateLanguageId(s);if(!t)throw new Error(`Cannot set configuration for unknown language ${s}`);return Qe.register(t,e,100)}class EZ{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if(typeof this._actual.tokenize=="function")return lp.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new KC(n.tokens,n.endState)}}class lp{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let r=0,a=e.length;r0&&r[a-1]===f)continue;let g=u.startIndex;h===0?g=0:gNZ(n)?new EZ(t,n):new lp(t,n,it.modeService.get(),it.standaloneThemeService.get());return I2(e)?Rt.registerPromise(s,e.then(n=>i(n))):Rt.register(s,i(e))}function RZ(s,e){const t=i=>NH(it.modeService.get(),it.standaloneThemeService.get(),s,yZ(s,i));return I2(e)?Rt.registerPromise(s,e.then(i=>t(i))):Rt.register(s,t(e))}function MZ(s,e){return vb.register(s,e)}function OZ(s,e){return wb.register(s,e)}function PZ(s,e){return Ld.register(s,e)}function FZ(s,e){return Sg.register(s,{provideHover:(t,i,n)=>{let o=t.getWordAtPosition(i);return Promise.resolve(e.provideHover(t,i,n)).then(r=>{if(r)return!r.range&&o&&(r.range=new S(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),r.range||(r.range=new S(i.lineNumber,i.column,i.lineNumber,i.column)),r})}})}function BZ(s,e){return Vs.register(s,e)}function WZ(s,e){return Qc.register(s,e)}function VZ(s,e){return Sb.register(s,e)}function HZ(s,e){return yg.register(s,e)}function zZ(s,e){return Lb.register(s,e)}function UZ(s,e){return Db.register(s,e)}function $Z(s,e){return Zr.register(s,e)}function jZ(s,e,t){return ar.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(i,n,o,r)=>{let a=it.markerService.get().read({resource:i.uri}).filter(l=>S.areIntersectingOrTouching(l,n));return e.provideCodeActions(i,n,{markers:a,only:o.only},r)},resolveCodeAction:e.resolveCodeAction})}function KZ(s,e){return Vf.register(s,e)}function qZ(s,e){return ao.register(s,e)}function GZ(s,e){return xb.register(s,e)}function ZZ(s,e){return Lg.register(s,e)}function YZ(s,e){return ro.register(s,e)}function XZ(s,e){return Jc.register(s,e)}function QZ(s,e){return ey.register(s,e)}function JZ(s,e){return yb.register(s,e)}function eY(s,e){return ev.register(s,e)}function tY(s,e){return eu.register(s,e)}function iY(s,e){return tv.register(s,e)}function nY(s,e){return ux.register(s,e)}function sY(s,e){return za.register(s,e)}function oY(){return{register:LZ,getLanguages:DZ,onLanguage:kZ,getEncodedLanguageId:xZ,setLanguageConfiguration:IZ,setColorMap:TZ,setTokensProvider:AZ,setMonarchTokensProvider:RZ,registerReferenceProvider:MZ,registerRenameProvider:OZ,registerCompletionItemProvider:YZ,registerSignatureHelpProvider:PZ,registerHoverProvider:FZ,registerDocumentSymbolProvider:BZ,registerDocumentHighlightProvider:WZ,registerLinkedEditingRangeProvider:VZ,registerDefinitionProvider:HZ,registerImplementationProvider:zZ,registerTypeDefinitionProvider:UZ,registerCodeLensProvider:$Z,registerCodeActionProvider:jZ,registerDocumentFormattingEditProvider:KZ,registerDocumentRangeFormattingEditProvider:qZ,registerOnTypeFormattingEditProvider:GZ,registerLinkProvider:ZZ,registerColorProvider:XZ,registerFoldingRangeProvider:QZ,registerDeclarationProvider:JZ,registerSelectionRangeProvider:eY,registerDocumentSemanticTokensProvider:tY,registerDocumentRangeSemanticTokensProvider:iY,registerInlineCompletionsProvider:nY,registerInlayHintsProvider:sY,DocumentHighlightKind:h1,CompletionItemKind:s1,CompletionItemTag:o1,CompletionItemInsertTextRule:n1,SymbolKind:T1,SymbolTag:A1,IndentAction:p1,CompletionTriggerKind:r1,SignatureHelpTriggerKind:N1,InlayHintKind:m1,InlineCompletionTriggerKind:_1,FoldingRangeKind:vo}}class gu{static _handleEolEdits(e,t){let i,n=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&n.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=gu._handleEolEdits(e,t);n.length===1&&gu._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(o=>Vt.replace(S.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",n.map(o=>Vt.replaceMove(S.lift(o.range),o.text))),i&&e.pushUndoStop()}}class lS{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var yo=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function eI(s){if(s=s.filter(n=>n.range),!s.length)return;let{range:e}=s[0];for(let n=1;n0&&S.areIntersectingOrTouching(l[d-1],g)?l[d-1]=S.fromPositions(l[d-1].getStartPosition(),g.getEndPosition()):d=l.push(g);const h=g=>yo(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),c=(g,m)=>{if(!g.length||!m.length)return!1;const _=g.reduce((C,b)=>S.plusRange(C,b.range),g[0].range);if(!m.some(C=>S.intersectRanges(_,C.range)))return!1;for(let C of g)for(let b of m)if(S.intersectRanges(C.range,b.range))return!0;return!1},u=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield h(g))}for(let g=0;g({text:_.text,range:S.lift(_.range),forceMoveMarkers:!0})),_=>{for(const{range:C}of _)if(S.areIntersectingOrTouching(C,m))return[new ne(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)];return null})}return!0})}function aY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ge),r=ur(e)?e.getModel():e,a=E2(r),l=yield eh.select(a,r,t);l&&(i.report(l),yield o.invokeFunction(lY,l,e,t,n))})}function lY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ys);let r,a;ur(t)?(r=t.getModel(),a=new Zg(t,5,void 0,n)):(r=t,a=new Sk(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(ur(t))gu.execute(t,l,i!==2),i!==2&&(eI(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,h=new ne(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([h],l.map(c=>({text:c.text,range:S.lift(c.range),forceMoveMarkers:!0})),c=>{for(const{range:u}of c)if(S.areIntersectingOrTouching(u,h))return[new ne(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function dY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=ao.ordered(e);for(const r of o){let a=yield Promise.resolve(r.provideDocumentRangeFormattingEdits(e,t,i,n)).catch(Di);if(Tn(a))return yield s.computeMoreMinimalEdits(e.uri,a)}})}function hY(s,e,t,i){return yo(this,void 0,void 0,function*(){const n=E2(e);for(const o of n){let r=yield Promise.resolve(o.provideDocumentFormattingEdits(e,t,i)).catch(Di);if(Tn(r))return yield s.computeMoreMinimalEdits(e.uri,r)}})}function T2(s,e,t,i,n){const o=xb.ordered(e);return o.length===0||o[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(o[0].provideOnTypeFormattingEdits(e,t,i,n,Oe.None)).catch(Di).then(r=>s.computeMoreMinimalEdits(e.uri,r))}$e.registerCommand("_executeFormatRangeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n]=e;ut(me.isUri(t)),ut(S.isIRange(i));const o=s.get(Jn),r=s.get(Ys),a=yield o.createModelReference(t);try{return dY(r,a.object.textEditorModel,S.lift(i),n,Oe.None)}finally{a.dispose()}})});$e.registerCommand("_executeFormatDocumentProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i]=e;ut(me.isUri(t));const n=s.get(Jn),o=s.get(Ys),r=yield n.createModelReference(t);try{return hY(o,r.object.textEditorModel,i,Oe.None)}finally{r.dispose()}})});$e.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n,o]=e;ut(me.isUri(t)),ut(F.isIPosition(i)),ut(typeof n=="string");const r=s.get(Jn),a=s.get(Ys),l=yield r.createModelReference(t);try{return T2(a,l.object.textEditorModel,F.lift(i),n,o)}finally{l.dispose()}})});var dS;Do.wrappingIndent.defaultValue=0;Do.glyphMargin.defaultValue=!1;Do.autoIndent.defaultValue=3;Do.overviewRulerLanes.defaultValue=2;eh.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const un=FR();un.editor=_Z();un.languages=oY();const cY=un.CancellationTokenSource,pu=un.Emitter,uY=un.KeyCode,fY=un.KeyMod,gY=un.Position,pY=un.Range,mY=un.Selection,_Y=un.SelectionDirection,bY=un.MarkerSeverity,CY=un.MarkerTag,vY=un.Uri,wY=un.Token,SY=un.editor,on=un.languages;(!((dS=Et.MonacoEnvironment)===null||dS===void 0)&&dS.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=un);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var yY="4.4.4",EL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(EL||(EL={}));var NL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(NL||(NL={}));var TL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(TL||(TL={}));var dp;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(dp||(dp={}));var AL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(AL||(AL={}));var A2=function(){function s(e,t,i,n){this._onDidChange=new pu,this._onDidExtraLibsChange=new pu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),s.prototype.getExtraLibs=function(){return this._extraLibs},s.prototype.addExtraLib=function(e,t){var i=this,n;if(typeof t>"u"?n="ts:extralib-"+Math.random().toString(36).substring(2,15):n=t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var r=i._extraLibs[n];r&&r.version===o&&(delete i._extraLibs[n],i._removedExtraLibs[n]=o,i._fireOnDidExtraLibsChangeSoon())}}},s.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;iimport("./tsMode-da85fe51.js"),["assets/tsMode-da85fe51.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}on.onLanguage("typescript",function(){return Yv().then(function(s){return s.setupTypeScript(R2)})});on.onLanguage("javascript",function(){return Yv().then(function(s){return s.setupJavaScript(M2)})});var tI=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),s.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),iI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},nI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},O2=new tI("css",iI,nI),P2=new tI("scss",iI,nI),F2=new tI("less",iI,nI);on.css={cssDefaults:O2,lessDefaults:F2,scssDefaults:P2};function sI(){return ce(()=>import("./cssMode-af79a824.js"),["assets/cssMode-af79a824.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}on.onLanguage("less",function(){sI().then(function(s){return s.setupMode(F2)})});on.onLanguage("scss",function(){sI().then(function(s){return s.setupMode(P2)})});on.onLanguage("css",function(){sI().then(function(s){return s.setupMode(O2)})});var kY=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),s.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),IY={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},EY={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B2=new kY("json",IY,EY);on.json={jsonDefaults:B2};function NY(){return ce(()=>import("./jsonMode-b56dc9e1.js"),["assets/jsonMode-b56dc9e1.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}on.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});on.onLanguage("json",function(){NY().then(function(s){return s.setupMode(B2)})});var TY=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},AY=globalThis&&globalThis.__generator||function(s,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(d){return function(h){return l([d,h])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]import("./htmlMode-847305fb.js"),["assets/htmlMode-847305fb.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}function Jv(s,e,t){var i=this;e===void 0&&(e=Xv),t===void 0&&(t=Qv(s));var n=new RY(s,e,t),o,r=on.onLanguage(s,function(){return TY(i,void 0,void 0,function(){return AY(this,function(a){switch(a.label){case 0:return[4,BY()];case 1:return o=a.sent().setupMode(n),[2]}})})});return{defaults:n,dispose:function(){r.dispose(),o==null||o.dispose(),o=void 0}}}var z2={},hS={},WY=function(){function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(i,n){t._lazyLoadPromiseResolve=i,t._lazyLoadPromiseReject=n})}return s.getOrCreate=function(e){return hS[e]||(hS[e]=new s(e)),hS[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,z2[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},s}();function fe(s){var e=s.id;z2[e]=s,on.register(s);var t=WY.getOrCreate(e);on.setMonarchTokensProvider(e,t.whenLoaded().then(function(i){return i.language})),on.onLanguage(e,function(){t.load().then(function(i){on.setLanguageConfiguration(e,i.conf)})})}fe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return ce(()=>import("./abap-ffbe9c82.js"),[])}});fe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return ce(()=>import("./apex-9370f1bb.js"),[])}});fe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return ce(()=>import("./azcli-714c239b.js"),[])}});fe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return ce(()=>import("./bat-7eb152e5.js"),[])}});fe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return ce(()=>import("./bicep-0e2809f7.js"),[])}});fe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return ce(()=>import("./cameligo-91a865e0.js"),[])}});fe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return ce(()=>import("./clojure-7e0f8eaa.js"),[])}});fe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return ce(()=>import("./coffee-af1c6ca9.js"),[])}});fe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return ce(()=>import("./csharp-d087d64c.js"),[])}});fe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return ce(()=>import("./csp-13ea92a6.js"),[])}});fe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return ce(()=>import("./css-e979702d.js"),[])}});fe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return ce(()=>import("./dart-0a096fe0.js"),[])}});fe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return ce(()=>import("./dockerfile-af4eb422.js"),[])}});fe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return ce(()=>import("./ecl-8f5b983c.js"),[])}});fe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return ce(()=>import("./elixir-82a0fd91.js"),[])}});fe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return ce(()=>import("./flow9-47a350b0.js"),[])}});fe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return ce(()=>import("./fsharp-de5183ae.js"),[])}});fe({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return ce(()=>import("./go-a9169306.js"),[])}});fe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return ce(()=>import("./graphql-e84c0b6e.js"),[])}});fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return ce(()=>import("./handlebars-9d3fe668.js"),["assets/handlebars-9d3fe668.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return ce(()=>import("./hcl-3a006f6b.js"),[])}});fe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return ce(()=>import("./html-998373ea.js"),["assets/html-998373ea.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return ce(()=>import("./ini-53b87513.js"),[])}});fe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return ce(()=>import("./java-58c1a618.js"),[])}});fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return ce(()=>import("./javascript-2449901d.js"),["assets/javascript-2449901d.js","assets/typescript-d139fdbb.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return ce(()=>import("./julia-5f2fc018.js"),[])}});fe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return ce(()=>import("./kotlin-2e32535a.js"),[])}});fe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return ce(()=>import("./less-00089e91.js"),[])}});fe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return ce(()=>import("./lexon-22a22ba3.js"),[])}});fe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return ce(()=>import("./lua-04a273a9.js"),[])}});fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return ce(()=>import("./liquid-aa137884.js"),["assets/liquid-aa137884.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return ce(()=>import("./m3-b6e0b0fd.js"),[])}});fe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return ce(()=>import("./markdown-c2ea92f4.js"),[])}});fe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return ce(()=>import("./mips-daa25bd4.js"),[])}});fe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return ce(()=>import("./msdax-c6fa6f2f.js"),[])}});fe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return ce(()=>import("./mysql-788d9472.js"),[])}});fe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return ce(()=>import("./objective-c-9e968999.js"),[])}});fe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return ce(()=>import("./pascal-e017ea4d.js"),[])}});fe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return ce(()=>import("./pascaligo-bf7e3de8.js"),[])}});fe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return ce(()=>import("./perl-2762c71f.js"),[])}});fe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return ce(()=>import("./pgsql-cb741fab.js"),[])}});fe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return ce(()=>import("./php-df365951.js"),[])}});fe({id:"pla",extensions:[".pla"],loader:function(){return ce(()=>import("./pla-6c133053.js"),[])}});fe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ce(()=>import("./postiats-b245e70f.js"),[])}});fe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return ce(()=>import("./powerquery-6b7a9cc4.js"),[])}});fe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return ce(()=>import("./powershell-50bb8773.js"),[])}});fe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return ce(()=>import("./protobuf-0ee314a2.js"),[])}});fe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ce(()=>import("./pug-409e523c.js"),[])}});fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return ce(()=>import("./python-e51cebae.js"),["assets/python-e51cebae.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return ce(()=>import("./qsharp-9951b04a.js"),[])}});fe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return ce(()=>import("./r-c34a576e.js"),[])}});fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return ce(()=>import("./razor-c68b189a.js"),["assets/razor-c68b189a.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return ce(()=>import("./redis-1a5ba628.js"),[])}});fe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return ce(()=>import("./redshift-2c383c33.js"),[])}});fe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return ce(()=>import("./restructuredtext-4a10ef1d.js"),[])}});fe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return ce(()=>import("./ruby-944f56a1.js"),[])}});fe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return ce(()=>import("./rust-b0440aa9.js"),[])}});fe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return ce(()=>import("./sb-f3b34295.js"),[])}});fe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return ce(()=>import("./scala-7c17b334.js"),[])}});fe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return ce(()=>import("./scheme-f75b8a9a.js"),[])}});fe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return ce(()=>import("./scss-833c0e23.js"),[])}});fe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return ce(()=>import("./shell-4657d8a1.js"),[])}});fe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return ce(()=>import("./solidity-62f35cba.js"),[])}});fe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return ce(()=>import("./sophia-94cd0024.js"),[])}});fe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return ce(()=>import("./sparql-23f0115e.js"),[])}});fe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return ce(()=>import("./sql-9ac813b8.js"),[])}});fe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return ce(()=>import("./st-4d0d15a1.js"),[])}});fe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return ce(()=>import("./swift-11c0de91.js"),[])}});fe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return ce(()=>import("./tcl-838585b9.js"),[])}});fe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return ce(()=>import("./twig-1b470482.js"),[])}});fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return ce(()=>import("./typescript-d139fdbb.js"),["assets/typescript-d139fdbb.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return ce(()=>import("./vb-2f676a0c.js"),[])}});fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-a726d1f4.js"),["assets/xml-a726d1f4.js","assets/index-79ae6e73.js","assets/index-6e446ef4.css"])}});fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return ce(()=>import("./yaml-e83d14b1.js"),[])}});var VY=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HY=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ew=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const tw=new re("selectionAnchorSet",!1);let _a=class U2{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=tw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(U2.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:ne.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new ma().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ei(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ne.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};_a.ID="editor.contrib.selectionAnchorController";_a=VY([HY(1,ve)],_a);class zY extends oe{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2080),weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).setSelectionAnchor()})}}class UY extends oe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:tw})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).goToSelectionAnchor()})}}class $Y extends oe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:tw,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2089),weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).selectFromAnchorToCursor()})}}class jY extends oe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:tw,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).cancelSelectionAnchor()})}}nt(_a.ID,_a);ee(zY);ee(UY);ee($Y);ee(jY);const KY=R("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class qY extends oe{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=bo.get(t);i&&i.jumpToBracket()}}class GY extends oe{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=bo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class ZY{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class bo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Lt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(bo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ne(r.lineNumber,r.column,r.lineNumber,r.column):new ne(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.matchBracket(o);if(!r&&(r=t.findEnclosingBrackets(o),!r)){const d=t.findNextBracket(o);d&&d.range&&(r=t.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(S.compareRangesUsingStarts);const[d,h]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition(),h.containsPosition(o)){const c=a;a=l,l=c}}a&&l&&i.push(new ne(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let c=0,u=e.length;c1&&o.sort(F.compare);let a=[],l=0,d=0,h=n.length;for(let c=0,u=o.length;c{const t=s.getColor(M6);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(ZO);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});ps.appendMenuItem(ae.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class YY{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new S(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,o,i,o),a)}else{const r=new S(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ne(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ne(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class $2 extends oe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new YY(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class XY extends $2{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:E.writable})}}class QY extends $2{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:E.writable})}}ee(XY);ee(QY);class JY extends oe{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let h=l===d?r.getPosition():Xe.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),c=Xe.leftPosition(i,h),u=Xe.leftPosition(i,c),f=i.getValueInRange(S.fromPositions(u,c)),g=i.getValueInRange(S.fromPositions(c,h)),m=S.fromPositions(u,h);n.push(new xi(m,g+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(JY);var eX=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const th="9_cutcopypaste",tX=uo||document.queryCommandSupported("cut"),j2=uo||document.queryCommandSupported("copy"),iX=typeof navigator.clipboard>"u"||rn?document.queryCommandSupported("paste"):!0;function oI(s){return s.register(),s}const nX=tX?oI(new Ou({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:uo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,sX=j2?oI(new Ou({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:uo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ps.appendMenuItem(ae.MenubarEditMenu,{submenu:ae.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});ps.appendMenuItem(ae.EditorContext,{submenu:ae.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:th,order:3});const cS=iX?oI(new Ou({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:uo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class oX extends oe{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Ay.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Ay.forceCopyWithSyntaxHighlighting=!1)}}function K2(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(tt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}K2(nX,"cut");K2(sX,"copy");cS&&(cS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(tt),i=s.get(Rl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Tu?(()=>eX(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bg.INSTANCE.get(r);let l=!1,d=null,h=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,h=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:h})}}))():!0:!1}),cS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));j2&&ee(oX);class AC{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class We{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+We.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new We(this.value+We.sep+e)}}We.sep=".";We.None=new We("@@none@@");We.Empty=new We("");We.QuickFix=new We("quickfix");We.Refactor=new We("refactor");We.Source=new We("source");We.SourceOrganizeImports=We.Source.append("organizeImports");We.SourceFixAll=We.Source.append("fixAll");function rX(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>q2(e,t,s.include))||!s.includeSourceActions&&We.Source.contains(e))}function aX(s,e){const t=e.kind?new We(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>q2(t,i,s.include))||!s.includeSourceActions&&t&&We.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function q2(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Jo{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Jo(t.kind,t.apply,!1):new Jo(Jo.getKindFromUser(e,t.kind),Jo.getApplyFromUser(e,t.apply),Jo.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new We(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var rI=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const G2="editor.action.codeAction",Z2="editor.action.refactor",Y2="editor.action.sourceAction",aI="editor.action.organizeImports",lI="editor.action.fixAll";class X2{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return rI(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Di(n)}i&&(this.action.edit=i.edit)}return this})}}class dI extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(dI.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Tn(e.diagnostics)?Tn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Tn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&We.QuickFix.contains(new We(e.kind))&&!!e.isPreferred)}}const YT={actions:[],documentation:void 0};function hI(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new Sk(s,n),d=lX(s,r),h=new X,c=d.map(f=>rI(this,void 0,void 0,function*(){try{i.report(f);const g=yield f.provideCodeActions(s,e,a,l.token);if(g&&h.add(g),l.token.isCancellationRequested)return YT;const m=((g==null?void 0:g.actions)||[]).filter(C=>C&&aX(r,C)),_=dX(f,m,r.include);return{actions:m.map(C=>new X2(C,f)),documentation:_}}catch(g){if(br(g))throw g;return Di(g),YT}})),u=ar.onDidChange(()=>{const f=ar.all(s);zs(f,d)||l.cancel()});return Promise.all(c).then(f=>{const g=Cx(f.map(_=>_.actions)),m=wh(f.map(_=>_.documentation));return new dI(g,m,h)}).finally(()=>{u.dispose(),l.dispose()})}function lX(s,e){return ar.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>rX(e,new We(i))):!0)}function dX(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new We(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new We(n.kind)))return o.command}}$e.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return rI(this,void 0,void 0,function*(){if(!(e instanceof me))throw fo();const o=s.get(ri).getModel(e);if(!o)throw fo();const r=ne.isISelection(t)?ne.liftSelection(t):S.isIRange(t)?o.validateRange(t):void 0;if(!r)throw fo();const a=typeof i=="string"?new We(i):void 0,l=yield hI(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},kh.None,Oe.None),d=[],h=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let c=0;cc.action)}finally{setTimeout(()=>l.dispose(),100)}})});var hX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cX=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let is=class RL{constructor(e,t){this._messageWidget=new dn,this._messageListeners=new X,this._editor=e,this._visible=RL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(RL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ei(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new XT(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new hn(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new S(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(XT.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new re("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));is=hX([cX(1,ve)],is);const uX=Mi.bindToContribution(is.get);J(new uX({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let XT=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};nt(is.ID,is);st((s,e)=>{const t=s.getColor(Qx);if(t){let o=s.type===gs.HIGH_CONTRAST?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${o}px solid ${t}; }`)}const i=s.getColor(Yx);i&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const n=s.getColor(Xx);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${n}; }`)});var fX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},gX=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class JT extends Us{constructor(e,t){super(e.command?e.command.id:e.title,pX(e.title),void 0,!e.disabled,t),this.action=e}}function pX(s){return s.replace(/\r\n|\r|\n/g," ")}let ML=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new dn),this._keybindingResolver=new iw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return gX(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Ru();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=F.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof JT?l(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=h=>new JT(h.action,()=>this._delegate.onSelectCodeAction(h)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const h of ar.all(d))h._getAdditionalMenuItems&&l.push(...h._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(c=>c.action)));return l.length&&a.push(new $s,...l.map(h=>r(new X2({title:h.title,command:h},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Ii(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};ML=fX([QT(2,Al),QT(3,Nt)],ML);class iw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new AC(()=>this._keybindingProvider.getKeybindings().filter(t=>iw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===aI?i={kind:We.SourceOrganizeImports.value}:t.command===lI&&(i={kind:We.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Jo.fromUser(i,{kind:We.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new We(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}iw.codeActionCommands=[Z2,G2,Y2,aI,lI];var mX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_X=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ug;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(ug||(ug={}));let RC=class Q2 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=ug.Hidden,this._domNode=document.createElement("div"),this._domNode.className=ie.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),lt.ignoreTarget(this._domNode),this._register(r3(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=Ii(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{if((o.buttons&1)!==1)return;this.hide();const r=new Dh;r.startMonitoring(o.target,o.buttons,Pu,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),h=o.getLineContent(r),c=Rn.computeIndentLevel(h,l),u=d.spaceWidth*c>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=r;if(!u){if(r>1&&!f(r-1))g-=1;else if(!f(r+1))g+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new ug.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:Q2._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=ug.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...ie.lightBulb.classNamesArray),this._domNode.classList.add(...ie.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...ie.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...ie.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};RC._posPref=[0];RC=mX([_X(3,Nt)],RC);st((s,e)=>{var t;const i=(t=s.getColor(ms))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(R9);n&&e.addRule(` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:Xa(t,a.open),close:Xa(t,a.close)});else throw pt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function LZ(s){Rd.registerLanguage(s)}function DZ(){let s=[];return s=s.concat(Rd.getLanguages()),s}function xZ(s){return it.modeService.get().languageIdCodec.encodeLanguageId(s)}function kZ(s,e){let t=it.modeService.get().onDidEncounterLanguage(i=>{i===s&&(t.dispose(),e())});return t}function IZ(s,e){const t=it.modeService.get().validateLanguageId(s);if(!t)throw new Error(`Cannot set configuration for unknown language ${s}`);return Qe.register(t,e,100)}class EZ{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if(typeof this._actual.tokenize=="function")return lp.adaptTokenize(this._languageId,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new KC(n.tokens,n.endState)}}class lp{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._modeService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){let n=[],o=0;for(let r=0,a=e.length;r0&&r[a-1]===f)continue;let g=u.startIndex;h===0?g=0:gNZ(n)?new EZ(t,n):new lp(t,n,it.modeService.get(),it.standaloneThemeService.get());return I2(e)?Rt.registerPromise(s,e.then(n=>i(n))):Rt.register(s,i(e))}function RZ(s,e){const t=i=>NH(it.modeService.get(),it.standaloneThemeService.get(),s,yZ(s,i));return I2(e)?Rt.registerPromise(s,e.then(i=>t(i))):Rt.register(s,t(e))}function MZ(s,e){return vb.register(s,e)}function OZ(s,e){return wb.register(s,e)}function PZ(s,e){return Ld.register(s,e)}function FZ(s,e){return Sg.register(s,{provideHover:(t,i,n)=>{let o=t.getWordAtPosition(i);return Promise.resolve(e.provideHover(t,i,n)).then(r=>{if(r)return!r.range&&o&&(r.range=new S(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),r.range||(r.range=new S(i.lineNumber,i.column,i.lineNumber,i.column)),r})}})}function BZ(s,e){return Vs.register(s,e)}function WZ(s,e){return Qc.register(s,e)}function VZ(s,e){return Sb.register(s,e)}function HZ(s,e){return yg.register(s,e)}function zZ(s,e){return Lb.register(s,e)}function UZ(s,e){return Db.register(s,e)}function $Z(s,e){return Zr.register(s,e)}function jZ(s,e,t){return ar.register(s,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,provideCodeActions:(i,n,o,r)=>{let a=it.markerService.get().read({resource:i.uri}).filter(l=>S.areIntersectingOrTouching(l,n));return e.provideCodeActions(i,n,{markers:a,only:o.only},r)},resolveCodeAction:e.resolveCodeAction})}function KZ(s,e){return Vf.register(s,e)}function qZ(s,e){return ao.register(s,e)}function GZ(s,e){return xb.register(s,e)}function ZZ(s,e){return Lg.register(s,e)}function YZ(s,e){return ro.register(s,e)}function XZ(s,e){return Jc.register(s,e)}function QZ(s,e){return ey.register(s,e)}function JZ(s,e){return yb.register(s,e)}function eY(s,e){return ev.register(s,e)}function tY(s,e){return eu.register(s,e)}function iY(s,e){return tv.register(s,e)}function nY(s,e){return ux.register(s,e)}function sY(s,e){return za.register(s,e)}function oY(){return{register:LZ,getLanguages:DZ,onLanguage:kZ,getEncodedLanguageId:xZ,setLanguageConfiguration:IZ,setColorMap:TZ,setTokensProvider:AZ,setMonarchTokensProvider:RZ,registerReferenceProvider:MZ,registerRenameProvider:OZ,registerCompletionItemProvider:YZ,registerSignatureHelpProvider:PZ,registerHoverProvider:FZ,registerDocumentSymbolProvider:BZ,registerDocumentHighlightProvider:WZ,registerLinkedEditingRangeProvider:VZ,registerDefinitionProvider:HZ,registerImplementationProvider:zZ,registerTypeDefinitionProvider:UZ,registerCodeLensProvider:$Z,registerCodeActionProvider:jZ,registerDocumentFormattingEditProvider:KZ,registerDocumentRangeFormattingEditProvider:qZ,registerOnTypeFormattingEditProvider:GZ,registerLinkProvider:ZZ,registerColorProvider:XZ,registerFoldingRangeProvider:QZ,registerDeclarationProvider:JZ,registerSelectionRangeProvider:eY,registerDocumentSemanticTokensProvider:tY,registerDocumentRangeSemanticTokensProvider:iY,registerInlineCompletionsProvider:nY,registerInlayHintsProvider:sY,DocumentHighlightKind:h1,CompletionItemKind:s1,CompletionItemTag:o1,CompletionItemInsertTextRule:n1,SymbolKind:T1,SymbolTag:A1,IndentAction:p1,CompletionTriggerKind:r1,SignatureHelpTriggerKind:N1,InlayHintKind:m1,InlineCompletionTriggerKind:_1,FoldingRangeKind:vo}}class gu{static _handleEolEdits(e,t){let i,n=[];for(let o of t)typeof o.eol=="number"&&(i=o.eol),o.range&&typeof o.text=="string"&&n.push(o);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=gu._handleEolEdits(e,t);n.length===1&&gu._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map(o=>Vt.replace(S.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",n.map(o=>Vt.replaceMove(S.lift(o.range),o.text))),i&&e.pushUndoStop()}}class lS{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var yo=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};function eI(s){if(s=s.filter(n=>n.range),!s.length)return;let{range:e}=s[0];for(let n=1;n0&&S.areIntersectingOrTouching(l[d-1],g)?l[d-1]=S.fromPositions(l[d-1].getStartPosition(),g.getEndPosition()):d=l.push(g);const h=g=>yo(this,void 0,void 0,function*(){return(yield e.provideDocumentRangeFormattingEdits(r,g,r.getFormattingOptions(),a.token))||[]}),c=(g,m)=>{if(!g.length||!m.length)return!1;const _=g.reduce((C,b)=>S.plusRange(C,b.range),g[0].range);if(!m.some(C=>S.intersectRanges(_,C.range)))return!1;for(let C of g)for(let b of m)if(S.intersectRanges(C.range,b.range))return!0;return!1},u=[],f=[];try{for(let g of l){if(a.token.isCancellationRequested)return!0;f.push(yield h(g))}for(let g=0;g({text:_.text,range:S.lift(_.range),forceMoveMarkers:!0})),_=>{for(const{range:C}of _)if(S.areIntersectingOrTouching(C,m))return[new ne(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn)];return null})}return!0})}function aY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ge),r=ur(e)?e.getModel():e,a=E2(r),l=yield eh.select(a,r,t);l&&(i.report(l),yield o.invokeFunction(lY,l,e,t,n))})}function lY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=s.get(Ys);let r,a;ur(t)?(r=t.getModel(),a=new Zg(t,5,void 0,n)):(r=t,a=new Sk(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(ur(t))gu.execute(t,l,i!==2),i!==2&&(eI(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,h=new ne(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([h],l.map(c=>({text:c.text,range:S.lift(c.range),forceMoveMarkers:!0})),c=>{for(const{range:u}of c)if(S.areIntersectingOrTouching(u,h))return[new ne(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function dY(s,e,t,i,n){return yo(this,void 0,void 0,function*(){const o=ao.ordered(e);for(const r of o){let a=yield Promise.resolve(r.provideDocumentRangeFormattingEdits(e,t,i,n)).catch(Di);if(Tn(a))return yield s.computeMoreMinimalEdits(e.uri,a)}})}function hY(s,e,t,i){return yo(this,void 0,void 0,function*(){const n=E2(e);for(const o of n){let r=yield Promise.resolve(o.provideDocumentFormattingEdits(e,t,i)).catch(Di);if(Tn(r))return yield s.computeMoreMinimalEdits(e.uri,r)}})}function T2(s,e,t,i,n){const o=xb.ordered(e);return o.length===0||o[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(o[0].provideOnTypeFormattingEdits(e,t,i,n,Oe.None)).catch(Di).then(r=>s.computeMoreMinimalEdits(e.uri,r))}$e.registerCommand("_executeFormatRangeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n]=e;ut(me.isUri(t)),ut(S.isIRange(i));const o=s.get(Jn),r=s.get(Ys),a=yield o.createModelReference(t);try{return dY(r,a.object.textEditorModel,S.lift(i),n,Oe.None)}finally{a.dispose()}})});$e.registerCommand("_executeFormatDocumentProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i]=e;ut(me.isUri(t));const n=s.get(Jn),o=s.get(Ys),r=yield n.createModelReference(t);try{return hY(o,r.object.textEditorModel,i,Oe.None)}finally{r.dispose()}})});$e.registerCommand("_executeFormatOnTypeProvider",function(s,...e){return yo(this,void 0,void 0,function*(){const[t,i,n,o]=e;ut(me.isUri(t)),ut(F.isIPosition(i)),ut(typeof n=="string");const r=s.get(Jn),a=s.get(Ys),l=yield r.createModelReference(t);try{return T2(a,l.object.textEditorModel,F.lift(i),n,o)}finally{l.dispose()}})});var dS;Do.wrappingIndent.defaultValue=0;Do.glyphMargin.defaultValue=!1;Do.autoIndent.defaultValue=3;Do.overviewRulerLanes.defaultValue=2;eh.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const un=FR();un.editor=_Z();un.languages=oY();const cY=un.CancellationTokenSource,pu=un.Emitter,uY=un.KeyCode,fY=un.KeyMod,gY=un.Position,pY=un.Range,mY=un.Selection,_Y=un.SelectionDirection,bY=un.MarkerSeverity,CY=un.MarkerTag,vY=un.Uri,wY=un.Token,SY=un.editor,on=un.languages;(!((dS=Et.MonacoEnvironment)===null||dS===void 0)&&dS.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=un);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var yY="4.4.4",EL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(EL||(EL={}));var NL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(NL||(NL={}));var TL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(TL||(TL={}));var dp;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(dp||(dp={}));var AL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(AL||(AL={}));var A2=function(){function s(e,t,i,n){this._onDidChange=new pu,this._onDidExtraLibsChange=new pu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),s.prototype.getExtraLibs=function(){return this._extraLibs},s.prototype.addExtraLib=function(e,t){var i=this,n;if(typeof t>"u"?n="ts:extralib-"+Math.random().toString(36).substring(2,15):n=t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var r=i._extraLibs[n];r&&r.version===o&&(delete i._extraLibs[n],i._removedExtraLibs[n]=o,i._fireOnDidExtraLibsChangeSoon())}}},s.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var i=0,n=e;iimport("./tsMode-58511820.js"),["assets/tsMode-58511820.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}on.onLanguage("typescript",function(){return Yv().then(function(s){return s.setupTypeScript(R2)})});on.onLanguage("javascript",function(){return Yv().then(function(s){return s.setupJavaScript(M2)})});var tI=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),s.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),iI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},nI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},O2=new tI("css",iI,nI),P2=new tI("scss",iI,nI),F2=new tI("less",iI,nI);on.css={cssDefaults:O2,lessDefaults:F2,scssDefaults:P2};function sI(){return ce(()=>import("./cssMode-4c5c8a45.js"),["assets/cssMode-4c5c8a45.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}on.onLanguage("less",function(){sI().then(function(s){return s.setupMode(F2)})});on.onLanguage("scss",function(){sI().then(function(s){return s.setupMode(P2)})});on.onLanguage("css",function(){sI().then(function(s){return s.setupMode(O2)})});var kY=function(){function s(e,t,i){this._onDidChange=new pu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),s.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},s}(),IY={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},EY={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B2=new kY("json",IY,EY);on.json={jsonDefaults:B2};function NY(){return ce(()=>import("./jsonMode-acd8c18f.js"),["assets/jsonMode-acd8c18f.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}on.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});on.onLanguage("json",function(){NY().then(function(s){return s.setupMode(B2)})});var TY=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},AY=globalThis&&globalThis.__generator||function(s,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(d){return function(h){return l([d,h])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(o=d[0]&2?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]import("./htmlMode-7eaef2f7.js"),["assets/htmlMode-7eaef2f7.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}function Jv(s,e,t){var i=this;e===void 0&&(e=Xv),t===void 0&&(t=Qv(s));var n=new RY(s,e,t),o,r=on.onLanguage(s,function(){return TY(i,void 0,void 0,function(){return AY(this,function(a){switch(a.label){case 0:return[4,BY()];case 1:return o=a.sent().setupMode(n),[2]}})})});return{defaults:n,dispose:function(){r.dispose(),o==null||o.dispose(),o=void 0}}}var z2={},hS={},WY=function(){function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(i,n){t._lazyLoadPromiseResolve=i,t._lazyLoadPromiseReject=n})}return s.getOrCreate=function(e){return hS[e]||(hS[e]=new s(e)),hS[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,z2[this._languageId].loader().then(function(t){return e._lazyLoadPromiseResolve(t)},function(t){return e._lazyLoadPromiseReject(t)})),this._lazyLoadPromise},s}();function fe(s){var e=s.id;z2[e]=s,on.register(s);var t=WY.getOrCreate(e);on.setMonarchTokensProvider(e,t.whenLoaded().then(function(i){return i.language})),on.onLanguage(e,function(){t.load().then(function(i){on.setLanguageConfiguration(e,i.conf)})})}fe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return ce(()=>import("./abap-ffbe9c82.js"),[])}});fe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return ce(()=>import("./apex-9370f1bb.js"),[])}});fe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return ce(()=>import("./azcli-714c239b.js"),[])}});fe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return ce(()=>import("./bat-7eb152e5.js"),[])}});fe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return ce(()=>import("./bicep-0e2809f7.js"),[])}});fe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return ce(()=>import("./cameligo-91a865e0.js"),[])}});fe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return ce(()=>import("./clojure-7e0f8eaa.js"),[])}});fe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return ce(()=>import("./coffee-af1c6ca9.js"),[])}});fe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return ce(()=>import("./cpp-d3907575.js"),[])}});fe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return ce(()=>import("./csharp-d087d64c.js"),[])}});fe({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return ce(()=>import("./csp-13ea92a6.js"),[])}});fe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return ce(()=>import("./css-e979702d.js"),[])}});fe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return ce(()=>import("./dart-0a096fe0.js"),[])}});fe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return ce(()=>import("./dockerfile-af4eb422.js"),[])}});fe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return ce(()=>import("./ecl-8f5b983c.js"),[])}});fe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return ce(()=>import("./elixir-82a0fd91.js"),[])}});fe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return ce(()=>import("./flow9-47a350b0.js"),[])}});fe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return ce(()=>import("./fsharp-de5183ae.js"),[])}});fe({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return ce(()=>import("./go-a9169306.js"),[])}});fe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return ce(()=>import("./graphql-e84c0b6e.js"),[])}});fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return ce(()=>import("./handlebars-bcd406fd.js"),["assets/handlebars-bcd406fd.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return ce(()=>import("./hcl-3a006f6b.js"),[])}});fe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return ce(()=>import("./html-a03c14d4.js"),["assets/html-a03c14d4.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return ce(()=>import("./ini-53b87513.js"),[])}});fe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return ce(()=>import("./java-58c1a618.js"),[])}});fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return ce(()=>import("./javascript-36e3f62b.js"),["assets/javascript-36e3f62b.js","assets/typescript-90cac577.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return ce(()=>import("./julia-5f2fc018.js"),[])}});fe({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return ce(()=>import("./kotlin-2e32535a.js"),[])}});fe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return ce(()=>import("./less-00089e91.js"),[])}});fe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return ce(()=>import("./lexon-22a22ba3.js"),[])}});fe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return ce(()=>import("./lua-04a273a9.js"),[])}});fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return ce(()=>import("./liquid-14a10679.js"),["assets/liquid-14a10679.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return ce(()=>import("./m3-b6e0b0fd.js"),[])}});fe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return ce(()=>import("./markdown-c2ea92f4.js"),[])}});fe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return ce(()=>import("./mips-daa25bd4.js"),[])}});fe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return ce(()=>import("./msdax-c6fa6f2f.js"),[])}});fe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return ce(()=>import("./mysql-788d9472.js"),[])}});fe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return ce(()=>import("./objective-c-9e968999.js"),[])}});fe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return ce(()=>import("./pascal-e017ea4d.js"),[])}});fe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return ce(()=>import("./pascaligo-bf7e3de8.js"),[])}});fe({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return ce(()=>import("./perl-2762c71f.js"),[])}});fe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return ce(()=>import("./pgsql-cb741fab.js"),[])}});fe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return ce(()=>import("./php-df365951.js"),[])}});fe({id:"pla",extensions:[".pla"],loader:function(){return ce(()=>import("./pla-6c133053.js"),[])}});fe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ce(()=>import("./postiats-b245e70f.js"),[])}});fe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return ce(()=>import("./powerquery-6b7a9cc4.js"),[])}});fe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return ce(()=>import("./powershell-50bb8773.js"),[])}});fe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return ce(()=>import("./protobuf-0ee314a2.js"),[])}});fe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return ce(()=>import("./pug-409e523c.js"),[])}});fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return ce(()=>import("./python-9b2c3467.js"),["assets/python-9b2c3467.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return ce(()=>import("./qsharp-9951b04a.js"),[])}});fe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return ce(()=>import("./r-c34a576e.js"),[])}});fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return ce(()=>import("./razor-d4bc0ee2.js"),["assets/razor-d4bc0ee2.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return ce(()=>import("./redis-1a5ba628.js"),[])}});fe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return ce(()=>import("./redshift-2c383c33.js"),[])}});fe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return ce(()=>import("./restructuredtext-4a10ef1d.js"),[])}});fe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return ce(()=>import("./ruby-944f56a1.js"),[])}});fe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return ce(()=>import("./rust-b0440aa9.js"),[])}});fe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return ce(()=>import("./sb-f3b34295.js"),[])}});fe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return ce(()=>import("./scala-7c17b334.js"),[])}});fe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return ce(()=>import("./scheme-f75b8a9a.js"),[])}});fe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return ce(()=>import("./scss-833c0e23.js"),[])}});fe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return ce(()=>import("./shell-4657d8a1.js"),[])}});fe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return ce(()=>import("./solidity-62f35cba.js"),[])}});fe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return ce(()=>import("./sophia-94cd0024.js"),[])}});fe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return ce(()=>import("./sparql-23f0115e.js"),[])}});fe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return ce(()=>import("./sql-9ac813b8.js"),[])}});fe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return ce(()=>import("./st-4d0d15a1.js"),[])}});fe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return ce(()=>import("./swift-11c0de91.js"),[])}});fe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return ce(()=>import("./systemverilog-416dd7b8.js"),[])}});fe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return ce(()=>import("./tcl-838585b9.js"),[])}});fe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return ce(()=>import("./twig-1b470482.js"),[])}});fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return ce(()=>import("./typescript-90cac577.js"),["assets/typescript-90cac577.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return ce(()=>import("./vb-2f676a0c.js"),[])}});fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-d099dea7.js"),["assets/xml-d099dea7.js","assets/index-16176cf1.js","assets/index-db1fda39.css"])}});fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return ce(()=>import("./yaml-e83d14b1.js"),[])}});var VY=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HY=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ew=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const tw=new re("selectionAnchorSet",!1);let _a=class U2{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=tw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(U2.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:ne.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new ma().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ei(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(ne.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};_a.ID="editor.contrib.selectionAnchorController";_a=VY([HY(1,ve)],_a);class zY extends oe{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2080),weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).setSelectionAnchor()})}}class UY extends oe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:tw})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).goToSelectionAnchor()})}}class $Y extends oe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:tw,kbOpts:{kbExpr:E.editorTextFocus,primary:mi(2089,2089),weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).selectFromAnchorToCursor()})}}class jY extends oe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:tw,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return ew(this,void 0,void 0,function*(){_a.get(t).cancelSelectionAnchor()})}}nt(_a.ID,_a);ee(zY);ee(UY);ee($Y);ee(jY);const KY=R("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class qY extends oe{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=bo.get(t);i&&i.jumpToBracket()}}class GY extends oe{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=bo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class ZY{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class bo extends H{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new Lt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(bo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ne(r.lineNumber,r.column,r.lineNumber,r.column):new ne(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.matchBracket(o);if(!r&&(r=t.findEnclosingBrackets(o),!r)){const d=t.findNextBracket(o);d&&d.range&&(r=t.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(S.compareRangesUsingStarts);const[d,h]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition(),h.containsPosition(o)){const c=a;a=l,l=c}}a&&l&&i.push(new ne(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let c=0,u=e.length;c1&&o.sort(F.compare);let a=[],l=0,d=0,h=n.length;for(let c=0,u=o.length;c{const t=s.getColor(M6);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(ZO);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});ps.appendMenuItem(ae.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class YY{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new S(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,o,i,o),a)}else{const r=new S(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new S(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ne(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ne(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class $2 extends oe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new YY(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class XY extends $2{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:p("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:E.writable})}}class QY extends $2{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:p("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:E.writable})}}ee(XY);ee(QY);class JY extends oe{constructor(){super({id:"editor.action.transposeLetters",label:p("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:E.writable,kbOpts:{kbExpr:E.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let h=l===d?r.getPosition():Xe.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),c=Xe.leftPosition(i,h),u=Xe.leftPosition(i,c),f=i.getValueInRange(S.fromPositions(u,c)),g=i.getValueInRange(S.fromPositions(c,h)),m=S.fromPositions(u,h);n.push(new xi(m,g+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(JY);var eX=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const th="9_cutcopypaste",tX=uo||document.queryCommandSupported("cut"),j2=uo||document.queryCommandSupported("copy"),iX=typeof navigator.clipboard>"u"||rn?document.queryCommandSupported("paste"):!0;function oI(s){return s.register(),s}const nX=tX?oI(new Ou({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:uo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.cutLabel","Cut"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,sX=j2?oI(new Ou({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:uo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.copyLabel","Copy"),order:2},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.copyLabel","Copy"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ps.appendMenuItem(ae.MenubarEditMenu,{submenu:ae.MenubarCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});ps.appendMenuItem(ae.EditorContext,{submenu:ae.EditorContextCopy,title:{value:p("copy as","Copy As"),original:"Copy As"},group:th,order:3});const cS=iX?oI(new Ou({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:uo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:ae.MenubarEditMenu,group:"2_ccp",title:p({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:ae.EditorContext,group:th,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:ae.CommandPalette,group:"",title:p("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:ae.SimpleEditorContext,group:th,title:p("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class oX extends oe{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:p("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Ay.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Ay.forceCopyWithSyntaxHighlighting=!1)}}function K2(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(tt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}K2(nX,"cut");K2(sX,"copy");cS&&(cS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(tt),i=s.get(Rl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Tu?(()=>eX(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bg.INSTANCE.get(r);let l=!1,d=null,h=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,h=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:h})}}))():!0:!1}),cS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));j2&&ee(oX);class AC{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class We{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+We.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new We(this.value+We.sep+e)}}We.sep=".";We.None=new We("@@none@@");We.Empty=new We("");We.QuickFix=new We("quickfix");We.Refactor=new We("refactor");We.Source=new We("source");We.SourceOrganizeImports=We.Source.append("organizeImports");We.SourceFixAll=We.Source.append("fixAll");function rX(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>q2(e,t,s.include))||!s.includeSourceActions&&We.Source.contains(e))}function aX(s,e){const t=e.kind?new We(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>q2(t,i,s.include))||!s.includeSourceActions&&t&&We.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function q2(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Jo{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Jo(t.kind,t.apply,!1):new Jo(Jo.getKindFromUser(e,t.kind),Jo.getApplyFromUser(e,t.apply),Jo.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new We(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var rI=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const G2="editor.action.codeAction",Z2="editor.action.refactor",Y2="editor.action.sourceAction",aI="editor.action.organizeImports",lI="editor.action.fixAll";class X2{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return rI(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Di(n)}i&&(this.action.edit=i.edit)}return this})}}class dI extends H{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(dI.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Tn(e.diagnostics)?Tn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Tn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&We.QuickFix.contains(new We(e.kind))&&!!e.isPreferred)}}const YT={actions:[],documentation:void 0};function hI(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new Sk(s,n),d=lX(s,r),h=new X,c=d.map(f=>rI(this,void 0,void 0,function*(){try{i.report(f);const g=yield f.provideCodeActions(s,e,a,l.token);if(g&&h.add(g),l.token.isCancellationRequested)return YT;const m=((g==null?void 0:g.actions)||[]).filter(C=>C&&aX(r,C)),_=dX(f,m,r.include);return{actions:m.map(C=>new X2(C,f)),documentation:_}}catch(g){if(br(g))throw g;return Di(g),YT}})),u=ar.onDidChange(()=>{const f=ar.all(s);zs(f,d)||l.cancel()});return Promise.all(c).then(f=>{const g=Cx(f.map(_=>_.actions)),m=wh(f.map(_=>_.documentation));return new dI(g,m,h)}).finally(()=>{u.dispose(),l.dispose()})}function lX(s,e){return ar.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>rX(e,new We(i))):!0)}function dX(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new We(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new We(n.kind)))return o.command}}$e.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return rI(this,void 0,void 0,function*(){if(!(e instanceof me))throw fo();const o=s.get(ri).getModel(e);if(!o)throw fo();const r=ne.isISelection(t)?ne.liftSelection(t):S.isIRange(t)?o.validateRange(t):void 0;if(!r)throw fo();const a=typeof i=="string"?new We(i):void 0,l=yield hI(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},kh.None,Oe.None),d=[],h=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let c=0;cc.action)}finally{setTimeout(()=>l.dispose(),100)}})});var hX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cX=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let is=class RL{constructor(e,t){this._messageWidget=new dn,this._messageListeners=new X,this._editor=e,this._visible=RL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(RL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ei(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new XT(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new hn(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new S(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(XT.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(p("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};is.ID="editor.contrib.messageController";is.MESSAGE_VISIBLE=new re("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));is=hX([cX(1,ve)],is);const uX=Mi.bindToContribution(is.get);J(new uX({id:"leaveEditorMessage",precondition:is.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let XT=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};nt(is.ID,is);st((s,e)=>{const t=s.getColor(Qx);if(t){let o=s.type===gs.HIGH_CONTRAST?2:1;e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${t}; }`),e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${o}px solid ${t}; }`)}const i=s.getColor(Yx);i&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const n=s.getColor(Xx);n&&e.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${n}; }`)});var fX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QT=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},gX=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(h){try{d(i.next(h))}catch(c){r(c)}}function l(h){try{d(i.throw(h))}catch(c){r(c)}}function d(h){h.done?o(h.value):n(h.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class JT extends Us{constructor(e,t){super(e.command?e.command.id:e.title,pX(e.title),void 0,!e.disabled,t),this.action=e}}function pX(s){return s.replace(/\r\n|\r|\n/g," ")}let ML=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new dn),this._keybindingResolver=new iw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return gX(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Ru();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=F.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof JT?l(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=h=>new JT(h.action,()=>this._delegate.onSelectCodeAction(h)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const h of ar.all(d))h._getAdditionalMenuItems&&l.push(...h._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(c=>c.action)));return l.length&&a.push(new $s,...l.map(h=>r(new X2({title:h.title,command:h},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Ii(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};ML=fX([QT(2,Al),QT(3,Nt)],ML);class iw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new AC(()=>this._keybindingProvider.getKeybindings().filter(t=>iw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===aI?i={kind:We.SourceOrganizeImports.value}:t.command===lI&&(i={kind:We.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Jo.fromUser(i,{kind:We.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new We(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}iw.codeActionCommands=[Z2,G2,Y2,aI,lI];var mX=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_X=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},ug;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(ug||(ug={}));let RC=class Q2 extends H{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=ug.Hidden,this._domNode=document.createElement("div"),this._domNode.className=ie.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),lt.ignoreTarget(this._domNode),this._register(r3(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=Ii(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{if((o.buttons&1)!==1)return;this.hide();const r=new Dh;r.startMonitoring(o.target,o.buttons,Pu,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),h=o.getLineContent(r),c=Rn.computeIndentLevel(h,l),u=d.spaceWidth*c>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let g=r;if(!u){if(r>1&&!f(r-1))g-=1;else if(!f(r+1))g+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new ug.Showing(e,t,i,{position:{lineNumber:g,column:1},preference:Q2._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=ug.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...ie.lightBulb.classNamesArray),this._domNode.classList.add(...ie.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=p("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...ie.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...ie.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=p("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=p("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};RC._posPref=[0];RC=mX([_X(3,Nt)],RC);st((s,e)=>{var t;const i=(t=s.getColor(ms))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(R9);n&&e.addRule(` .monaco-editor .contentWidgets ${ie.lightBulb.cssSelector} { color: ${n}; background-color: ${i}; diff --git a/admin-views/dist/assets/editor.main-6a1a59b6.js.gz b/admin-views/dist/assets/editor.main-6a1a59b6.js.gz new file mode 100644 index 00000000..dc85efad Binary files /dev/null and b/admin-views/dist/assets/editor.main-6a1a59b6.js.gz differ diff --git a/admin-views/dist/assets/editor.main-7fdd10fa.js.gz b/admin-views/dist/assets/editor.main-7fdd10fa.js.gz deleted file mode 100644 index c2119d16..00000000 Binary files a/admin-views/dist/assets/editor.main-7fdd10fa.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/exceljs.min-7dc74d6e.js b/admin-views/dist/assets/exceljs.min-6d3bd066.js similarity index 99% rename from admin-views/dist/assets/exceljs.min-7dc74d6e.js rename to admin-views/dist/assets/exceljs.min-6d3bd066.js index 8f8b4756..3edf1518 100644 --- a/admin-views/dist/assets/exceljs.min-7dc74d6e.js +++ b/admin-views/dist/assets/exceljs.min-6d3bd066.js @@ -1,4 +1,4 @@ -import{e as Ve,o as Kt,t as De}from"./index-79ae6e73.js";function qe(Ee,Fe){for(var s=0;sT[S]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var $e={exports:{}};/*! ExcelJS 19-10-2023 */(function(Ee,Fe){(function(s){Ee.exports=s()})(function(){return function s(T,S,m){function o(t,e){if(!S[t]){if(!T[t]){var l=typeof De=="function"&&De;if(!e&&l)return l(t,!0);if(a)return a(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=S[t]={exports:{}};T[t][0].call(i.exports,function(c){return o(T[t][1][c]||c)},i,i.exports,s,T,S,m)}return S[t].exports}for(var a=typeof De=="function"&&De,r=0;r{const d=this.workbook.addWorksheet(c.sheetName),f=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const L=f.reduce((P,D)=>{if(P)return P;const $=t(A,D,!0);return $.isValid()?$:null},null);if(L)return new Date(L.valueOf());const j=n[A];return j!==void 0?j:A},_=o.parse(c.parserOptions).on("data",A=>{d.addRow(A.map(w))}).on("end",()=>{_.emit("worksheet",d)});_.on("worksheet",h).on("error",u),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,c){return new Promise((h,u)=>{c=c||{};const d=this.workbook.getWorksheet(c.sheetName||c.sheetId),f=o.format(c.formatterOptions);i.on("finish",()=>{h()}),f.on("error",u),f.pipe(i);const{dateFormat:w,dateUTC:_}=c,A=c.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return w?_?t.utc(j).format(w):t(j).format(w):_?t.utc(j).format():t(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let L=1;d&&d.eachRow((j,P)=>{if(N)for(;L++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=m.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof o||r==null?r:new o(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}T.exports=o},{"../utils/col-cache":19}],3:[function(s,T,S){const m=s("../utils/col-cache"),o=s("../utils/under-dash"),a=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,h){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,m.validateAddress(h),this._address=h,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,h){const u=i&&i.numFmt||c&&c.numFmt;u&&(h.numFmt=u);const d=i&&i.font||c&&c.font;d&&(h.font=d);const f=i&&i.alignment||c&&c.alignment;f&&(h.alignment=f);const w=i&&i.border||c&&c.border;w&&(h.border=w);const _=i&&i.fill||c&&c.fill;_&&(h.fill=_);const A=i&&i.protection||c&&c.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(h=>{c.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=a.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.Types.Number}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.Types.Date}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const n={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(n.tooltip=this.model.tooltip),n}set value(n){this.model={text:n.text,hyperlink:n.hyperlink},n.tooltip&&(this.model.tooltip=n.tooltip)}get text(){return this.model.text}set text(n){this.model.text=n}get hyperlink(){return this.model.hyperlink}set hyperlink(n){this.model.hyperlink=n}get type(){return e.Types.Hyperlink}get effectiveType(){return e.Types.Hyperlink}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=h=>{const u=n[h];u&&(i[h]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?a.ValueType.Null:n instanceof String||typeof n=="string"?a.ValueType.String:typeof n=="number"?a.ValueType.Number:n instanceof Date?a.ValueType.Date:n.text&&n.hyperlink?a.ValueType.Hyperlink:n.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(n){this.model.address=n}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:n}=this.cell,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(this._master&&this._master.releaseMergeRef(),n.addMergeRef(),this._master=n):this._master.value=n}isMergedTo(n){return n===this._master}get master(){return this._master}get type(){return e.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.Types.SharedString}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}toString(){return this.model.value.richText.map(n=>n.text).join("")}get type(){return e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.Types.Boolean}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.Types.Error}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const h=this.types[n];if(!h)throw new Error("Could not create Value of type "+n);return new h(i,c)}};T.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&m.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==o.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(h,u){return h.min-u.min});c{l.removeCellEx(e)})}forEach(e){m.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return m.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,h;function u(f,w){const _=e.findCellAt(n,f,l.col);return!(!_||!_.mark)&&(i[w]=f,_.mark=!1,!0)}for(h=l.row-1;u(h,"top");h--);for(h=l.row+1;u(h,"bottom");h++);function d(f,w){const _=[];for(h=i.top;h<=i.bottom;h++){const A=e.findCellAt(n,h,f);if(!A||!A.mark)return!1;_.push(A)}i[w]=f;for(let A=0;A<_.length;A++)_[A].mark=!1;return!0}for(c=l.col-1;d(c,"left");c--);for(c=l.col+1;d(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=o.n2l(c)+i))})}spliceRows(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return m.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new a;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,T,S){T.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(s,T,S){const m=s("../utils/col-cache"),o=s("./anchor");T.exports=class{constructor(a,r){this.worksheet=a,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:r,imageId:t,range:e,hyperlinks:l}=a;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=m.decode(e);this.range={tl:new o(this.worksheet,{col:n.left,row:n.top},-1),br:new o(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,e.tl,0),br:e.br&&new o(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,T,S){const m=s("../utils/under-dash");class o{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return m.deepMerge({},o.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new o;return t.model=r,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},T.exports=o},{"../utils/under-dash":26}],10:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=m.decodeAddress(r),c=m.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=m.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||rthis.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=m.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottomthis.bottom)&&!(r.rightthis.right)}contains(r){const t=m.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(m.encodeAddress(e,t),e,t)}}T.exports=o},{"../utils/col-cache":19}],11:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache"),r=s("./cell");T.exports=class{constructor(t,e){this._worksheet=t,this._number=e,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:a.l2n(t)}return this._cells[t-1]||this.getCellEx({address:a.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c0)for(d=u;d>=l;d--)f=this._cells[d-1],f?(w=this.getCell(d+h),w.value=f.value,w.style=f.style,w._comment=f._comment):this._cells[d+h-1]=void 0;for(d=0;d{l&&l.type!==o.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==o.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return m.some(this._cells,t=>t&&t.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=a.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:a.encodeAddress(i,c),$col$row:`$${a.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}T.exports=class{constructor(a,r){this.worksheet=a,r&&(this.table=r,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,r=(h,u,d)=>{h[u]===void 0&&(h[u]=d)};r(a,"headerRow",!0),r(a,"totalsRow",!1),r(a,"style",{}),r(a.style,"theme","TableStyleMedium2"),r(a.style,"showFirstColumn",!1),r(a.style,"showLastColumn",!1),r(a.style,"showRowStripes",!1),r(a.style,"showColumnStripes",!1);const t=(h,u)=>{if(!h)throw new Error(u)};t(a.ref,"Table must have ref"),t(a.columns,"Table must have column definitions"),t(a.rows,"Table must have row definitions"),a.tl=m.decodeAddress(a.ref);const{row:e,col:l}=a.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;a.autoFilterRef=m.encode(e,l,e+i-1,l+n-1),a.tableRef=m.encode(e,l,e+c-1,l+n-1),a.columns.forEach((h,u)=>{t(h.name,`Column ${u} must have a name`),u===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,c)=>{c&&Object.keys(c).forEach(h=>{i[h]=c[h]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const{style:u,name:d}=c,f=i.getCell(l+h);f.value=d,a(f,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((h,u)=>{const d=c.getCell(l+u);d.value=h,a(d,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const u=i.getCell(l+h);if(h===0)u.value=c.totalsRowLabel;else{const d=this.getFormula(c);u.value=d?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}a(u,c.style)})}}load(a){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=a.getRow(t+l++);n.forEach((c,h)=>{i.getCell(e+h).value=c})}),r.totalsRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{const h=n.getCell(e+c);c===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,r)}getColumn(a){const r=this.table.columns[a];return new o(this,r,a)}addColumn(a,r,t){this.cacheState(),t===void 0?(this.table.columns.push(a),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,a),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(a){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,r),this.table.rows.forEach(t=>{t.splice(a,r)})}_assign(a,r,t){this.cacheState(),a[r]=t}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(s,T,S){const m=s("./worksheet"),o=s("./defined-names"),a=s("../xlsx/xlsx"),r=s("../csv/csv");T.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t(u&&u.orderNo)>h?u.orderNo:h,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new m(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new m({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,T,S){const m=s("../utils/under-dash"),o=s("../utils/col-cache"),a=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:h}=s("../utils/copy-style");T.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},u.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new a;return this._rows.forEach(d=>{if(d){const f=d.dimensions;f&&u.expand(d.number,f.min,d.number,f.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,_)=>{const A=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(w,A)},0);let d=1;const f=this._columns=[];u.forEach(w=>{const _=new t(this,d++,!1);f.push(_),_.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,d){this._keys[u]=d}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){m.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const d=this._keys[u];if(d)return d;u=o.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let d=this._columns.length+1;for(;d<=u;)this._columns.push(new t(this,d++))}return this._columns[u-1]}spliceColumns(u,d){const f=this._rows.length;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A0)for(let P=0;P{D.push(B[P]||null)});const $=this.getRow(P+1);$.splice.apply($,D)}else this._rows.forEach(P=>{P&&P.splice(u,d)});const N=_.length-d,L=u+d,j=this._columns.length;if(N<0)for(let P=u+_.length;P<=j;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=j;P>=L;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P{u=Math.max(u,d.cellCount)}),u}get actualColumnCount(){const u=[];let d=0;return this.eachRow(f=>{f.eachCell(w=>{let{col:_}=w;u[_]||(u[_]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const u=this._rows;let d=u.length;for(;d>0&&u[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,d){return this._rows.slice(u-1,u-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let d=this._rows[u-1];return d||(d=this._rows[u-1]=new r(this,u)),d}getRows(u,d){if(d<1)return;const f=[];for(let w=u;w1&&arguments[1]!==void 0?arguments[1]:"n";const f=this._nextRow,w=this.getRow(f);return w.values=u,this._setStyleOption(f,d[0]==="i"?d:"n"),w}addRows(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const f=[];return u.forEach(w=>{f.push(this.addRow(w,d))}),f}insertRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,d),this._setStyleOption(u,f),this.getRow(u)}insertRows(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...d),f!=="n")for(let w=0;w1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,d[1]==="+"):d[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,d[1]==="+")}_copyStyle(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),_=this.getRow(d);_.style=h(w.style),w.eachCell({includeEmpty:f},(A,N)=>{_.getCell(N).style=h(A.style)}),_.height=w.height}duplicateRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],_=new Array(d).fill(w.values);this.spliceRows(u+1,f?0:d,..._);for(let A=0;A{N.getCell(j).style=L.style})}}spliceRows(u,d){const f=u+d;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A{$.getCell(x).style=B.style}),this._rows[P-1]=void 0}else this._rows[P+L-1]=void 0;else if(L>0)for(P=j;P>=f;P--)if(D=this._rows[P-1],D){const $=this.getRow(P+L);$.values=D.values,$.style=D.style,$.height=D.height,D.eachCell({includeEmpty:!0},(B,x)=>{if($.getCell(x).style=B.style,B._value.constructor.name==="MergeValue"){const M=this.getRow(B._row._number+N).getCell(x),v=B._value._master,p=this.getRow(v._row._number+N).getCell(v._column._number);M.merge(p)}})}else this._rows[P+L-1]=void 0;for(P=0;P{f&&f.hasValues&&d(f,f.number)})}getSheetValues(){const u=[];return this._rows.forEach(d=>{d&&(u[d.number]=d.values)}),u}findCell(u,d){const f=o.getAddress(u,d),w=this._rows[f.row-1];return w?w.findCell(f.col):void 0}getCell(u,d){const f=o.getAddress(u,d);return this.getRow(f.row).getCellEx(f)}mergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const f=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let _=u.left;_<=u.right;_++)(w>u.top||_>u.left)&&this.getCell(w,_).merge(f,d);this._merges[f.address]=u}_unMergeMaster(u){const d=this._merges[u.address];if(d){for(let f=d.top;f<=d.bottom;f++)for(let w=d.left;w<=d.right;w++)this.getCell(f,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f3&&arguments[3]!==void 0?arguments[3]:"shared";const _=o.decode(u),{top:A,left:N,bottom:L,right:j}=_,P=j-N+1,D=o.encodeAddress(A,N),$=w==="shared";let B;B=typeof f=="function"?f:Array.isArray(f)?Array.isArray(f[0])?(M,v)=>f[M-A][v-N]:(M,v)=>f[(M-A)*P+(v-N)]:()=>{};let x=!0;for(let M=A;M<=L;M++)for(let v=N;v<=j;v++)x?(this.getCell(M,v).value={shareType:w,formula:d,ref:u,result:B(M,v)},x=!1):this.getCell(M,v).value=$?{sharedFormula:D,result:B(M,v)}:B(M,v)}addImage(u,d){const f={type:"image",imageId:u,range:d};this._media.push(new l(this,f))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const d={type:"background",imageId:u};this._media.push(new l(this,d))}getBackgroundImageId(){const u=this._media.find(d=>d.type==="background");return u&&u.imageId}protect(u,d){return new Promise(f=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!u&&"spinCount"in d&&delete this.sheetProtection.spinCount),f()})}unprotect(){this.sheetProtection=null}addTable(u){const d=new n(this,u);return this.tables[u.name]=d,d}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const d=u.rows=[],f=u.dimensions=new a;return this._rows.forEach(w=>{const _=w&&w.model;_&&(f.expand(_.number,_.min,_.number,_.max),d.push(_))}),u.merges=[],m.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(d=>{const f=new r(this,d.number);this._rows[f.number-1]=f,f.model=d})}_parseMergeCells(u){m.each(u.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(d=>new l(this,d)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((d,f)=>{const w=new n;return w.model=f,d[f.name]=w,d},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(s,T,S){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const m={Workbook:s("./doc/workbook")},o=s("./doc/enums");Object.keys(o).forEach(a=>{m[a]=o[a]}),T.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(s,T,S){const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");S.bufferToString=function(o){return typeof o=="string"?o:m?m.decode(o):o.toString()}},{}],17:[function(s,T,S){const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=s("buffer");S.stringToBuffer=function(a){return typeof a!="string"?a:m?o.from(m.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(s,T,S){const m=s("./under-dash"),o=s("./col-cache");T.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,r,t){const e=this.sheets[a],l=e&&e[r];return l&&l[t]}addCellEx(a){if(a.top)for(let r=a.top;r<=a.bottom;r++)for(let t=a.left;t<=a.right;t++)this.getCellAt(a.sheetName,r,t);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,r){const t=this.findSheet(a,r),e=this.findSheetRow(t,a,r);return this.findRowCell(e,a,r)}getCellAt(a,r,t){const e=this.sheets[a]||(this.sheets[a]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:a,address:o.n2l(t)+r,row:r,col:t})}removeCellEx(a){const r=this.findSheet(a);if(!r)return;const t=this.findSheetRow(r,a);t&&delete t[a.col]}forEachInSheet(a,r){const t=this.sheets[a];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(a){m.each(this.sheets,(r,t)=>{this.forEachInSheet(t,a)})}map(a){const r=[];return this.forEach(t=>{r.push(a(t))}),r}findSheet(a,r){const t=a.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(a,r,t){const{row:e}=r;return a&&a[e]?a[e]:t?a[e]=[]:void 0}findRowCell(a,r,t){const{col:e}=r;return a&&a[e]?a[e]:t?a[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(a,r,t,e){const l=this.sheets[a];if(l){const n=[];for(let i=0;i{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,T,S){const m=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let r,t,e,l,n,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!m.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const r=a.length<5&&this._hash[a];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,d=0;d=65&&u<=90)t=!0,e+=a[d],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=a[d],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const h={address:a=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,r){if(r){const t=this.n2l(r)+a;return this.decodeAddress(t)}return this.decodeAddress(a)},decode(a){const r=a.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const r=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const h=Math.min(i.row,c.row),u=Math.min(i.col,c.col),d=Math.max(i.row,c.row),f=Math.max(i.col,c.col);return i=this.n2l(u)+h,c=this.n2l(f)+d,{top:h,left:u,bottom:d,right:f,sheetName:t,tl:{address:i,col:u,row:h,$col$row:`$${this.n2l(u)}$${h}`,sheetName:t},br:{address:c,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(a,r)=>o.n2l(r)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,r){const[t,e,,l,n]=a,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};T.exports=o},{}],20:[function(s,T,S){const m=(a,r)=>({...a,...r.reduce((t,e)=>(a[e]&&(t[e]={...a[e]}),t),{})}),o=function(a,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[t]&&(r[t]=m(a[t],e))};S.copyStyle=a=>{if(!a)return a;if(r=a,Object.keys(r).length===0)return{};var r;const t={...a};return o(a,t,"font",["color"]),o(a,t,"alignment"),o(a,t,"protection"),a.border&&(o(a,t,"border"),o(a.border,t.border,"top",["color"]),o(a.border,t.border,"left",["color"]),o(a.border,t.border,"bottom",["color"]),o(a.border,t.border,"right",["color"]),o(a.border,t.border,"diagonal",["color"])),a.fill&&(o(a,t,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(t.fill.stops=a.fill.stops.map(e=>m(e,["color"])))),t}},{}],21:[function(s,T,S){(function(m){(function(){const o=s("crypto"),a={hash(r){const t=o.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;no.randomBytes(r)};T.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,T,S){const{SaxesParser:m}=s("saxes"),{PassThrough:o}=s("readable-stream"),{bufferToString:a}=s("./browser-buffer-decode");T.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new o));const t=new m;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(a(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,T,S){const m=s("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;T.exports={slideFormula:function(r,t,e){const l=m.decode(t),n=m.decode(e);return r.replace(o,(i,c,h,u,d)=>{if(d)return i;const f=a.exec(u);if(f){const w=f[1],_=f[2].toUpperCase(),A=f[3],N=f[4];if(_.length>3||_.length===3&&_>"XFD")return i;let L=m.l2n(_),j=parseInt(N,10);return w||(L+=n.col-l.col),A||(j+=n.row-l.row),(c||"")+(w||"")+m.n2l(L)+(A||"")+j}return i})}}},{"./col-cache":19}],24:[function(s,T,S){(function(m,o){(function(){const a=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,d){this._data=u,this._encoding=d}get length(){return this.toBuffer().length}copy(u,d,f,w){return this.toBuffer().copy(u,d,f,w)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){return this._data._buf.copy(u,d,f,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){this._data.copy(u,d,f,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=o.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let d;return u===0?null:u===void 0||u>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=o.alloc(u),this.buffer.copy(d,0,this.iRead,u),this.iRead+=u,d)}write(u,d,f){const w=Math.min(f,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,d,d+w),this.iWrite+=w,w}}const c=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(u){return new Promise(d=>{u.write(h.toBuffer(),()=>{d()})})}))},_writeToBuffers(h){let u=0;const d=h.length;for(;u1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(f),m.nextTick(d)):(await this._pipe(f),d());else this.paused||this.emit("data",f.toBuffer()),this._writeToBuffers(f),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,u,d){const f=w=>{w?d(w):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,u,f):f()},read(h){let u;if(h){for(u=[];h&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],f=d.read(h);h-=f.length,u.push(f),d.eod&&d.full&&this.buffers.shift()}return o.concat(u)}return u=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],o.concat(u)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(u=>u!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),T.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,T,S){(function(m){(function(){T.exports=class{constructor(o){this._buf=m.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,T,S){const{toString:m}=Object.prototype,o=/["&<>]/,a={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((h,u)=>{const d=t[u];return a.isEqual(h,d)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const h of c)if(!t.hasOwnProperty(h))return!1;return a.every(r,(h,u)=>{const d=t[u];return a.isEqual(h,d)});default:return r===t}},escapeHtml(r){const t=o.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>rt?1:0,isUndefined:r=>m.call(r)==="[object Undefined]",isObject:r=>m.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,h){e=r[h],n=Array.isArray(c),a.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&a.isObject(e)?e:{},r[h]=a.deepMerge(l,c)):a.isUndefined(c)||(r[h]=c)}for(let c=0;c&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{m.setImmediate?o(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(h=>{Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(n,h))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{c[h]=Object.getOwnPropertyDescriptor(i,h)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,h=l.index;for(;h=11&&u!==13)){i="";break}continue}c!==h&&(n+=e.substring(c,h)),c=h+1,i&&(n+=i)}return c!==h?n+e.substring(c,h):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{a.access(e,a.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};T.exports=t}).call(this)}).call(this,typeof Kt<"u"?Kt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,T,S){const m=s("./under-dash"),o=s("./utils");function a(e,l,n){e.push(` ${l}="${o.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];m.each(l,(i,c)=>{i!==void 0&&a(n,c,i)}),e.push(n.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const n=this._xml;n.push(" +import{e as Ve,o as Kt,t as De}from"./index-16176cf1.js";function qe(Ee,Fe){for(var s=0;sT[S]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var $e={exports:{}};/*! ExcelJS 19-10-2023 */(function(Ee,Fe){(function(s){Ee.exports=s()})(function(){return function s(T,S,m){function o(t,e){if(!S[t]){if(!T[t]){var l=typeof De=="function"&&De;if(!e&&l)return l(t,!0);if(a)return a(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=S[t]={exports:{}};T[t][0].call(i.exports,function(c){return o(T[t][1][c]||c)},i,i.exports,s,T,S,m)}return S[t].exports}for(var a=typeof De=="function"&&De,r=0;r{const d=this.workbook.addWorksheet(c.sheetName),f=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const L=f.reduce((P,D)=>{if(P)return P;const $=t(A,D,!0);return $.isValid()?$:null},null);if(L)return new Date(L.valueOf());const j=n[A];return j!==void 0?j:A},_=o.parse(c.parserOptions).on("data",A=>{d.addRow(A.map(w))}).on("end",()=>{_.emit("worksheet",d)});_.on("worksheet",h).on("error",u),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,c){return new Promise((h,u)=>{c=c||{};const d=this.workbook.getWorksheet(c.sheetName||c.sheetId),f=o.format(c.formatterOptions);i.on("finish",()=>{h()}),f.on("error",u),f.pipe(i);const{dateFormat:w,dateUTC:_}=c,A=c.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return w?_?t.utc(j).format(w):t(j).format(w):_?t.utc(j).format():t(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let L=1;d&&d.eachRow((j,P)=>{if(N)for(;L++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=m.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof o||r==null?r:new o(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}T.exports=o},{"../utils/col-cache":19}],3:[function(s,T,S){const m=s("../utils/col-cache"),o=s("../utils/under-dash"),a=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,h){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,m.validateAddress(h),this._address=h,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,h){const u=i&&i.numFmt||c&&c.numFmt;u&&(h.numFmt=u);const d=i&&i.font||c&&c.font;d&&(h.font=d);const f=i&&i.alignment||c&&c.alignment;f&&(h.alignment=f);const w=i&&i.border||c&&c.border;w&&(h.border=w);const _=i&&i.fill||c&&c.fill;_&&(h.fill=_);const A=i&&i.protection||c&&c.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(h=>{c.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=a.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.Types.Number}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.Types.Date}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const n={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(n.tooltip=this.model.tooltip),n}set value(n){this.model={text:n.text,hyperlink:n.hyperlink},n.tooltip&&(this.model.tooltip=n.tooltip)}get text(){return this.model.text}set text(n){this.model.text=n}get hyperlink(){return this.model.hyperlink}set hyperlink(n){this.model.hyperlink=n}get type(){return e.Types.Hyperlink}get effectiveType(){return e.Types.Hyperlink}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=h=>{const u=n[h];u&&(i[h]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?a.ValueType.Null:n instanceof String||typeof n=="string"?a.ValueType.String:typeof n=="number"?a.ValueType.Number:n instanceof Date?a.ValueType.Date:n.text&&n.hyperlink?a.ValueType.Hyperlink:n.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(n){this.model.address=n}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:n}=this.cell,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(this._master&&this._master.releaseMergeRef(),n.addMergeRef(),this._master=n):this._master.value=n}isMergedTo(n){return n===this._master}get master(){return this._master}get type(){return e.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.Types.SharedString}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}toString(){return this.model.value.richText.map(n=>n.text).join("")}get type(){return e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.Types.Boolean}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.Types.Error}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const h=this.types[n];if(!h)throw new Error("Could not create Value of type "+n);return new h(i,c)}};T.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&m.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==o.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(h,u){return h.min-u.min});c{l.removeCellEx(e)})}forEach(e){m.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return m.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,h;function u(f,w){const _=e.findCellAt(n,f,l.col);return!(!_||!_.mark)&&(i[w]=f,_.mark=!1,!0)}for(h=l.row-1;u(h,"top");h--);for(h=l.row+1;u(h,"bottom");h++);function d(f,w){const _=[];for(h=i.top;h<=i.bottom;h++){const A=e.findCellAt(n,h,f);if(!A||!A.mark)return!1;_.push(A)}i[w]=f;for(let A=0;A<_.length;A++)_[A].mark=!1;return!0}for(c=l.col-1;d(c,"left");c--);for(c=l.col+1;d(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=o.n2l(c)+i))})}spliceRows(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return m.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new a;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,T,S){T.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(s,T,S){const m=s("../utils/col-cache"),o=s("./anchor");T.exports=class{constructor(a,r){this.worksheet=a,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:r,imageId:t,range:e,hyperlinks:l}=a;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=m.decode(e);this.range={tl:new o(this.worksheet,{col:n.left,row:n.top},-1),br:new o(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,e.tl,0),br:e.br&&new o(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,T,S){const m=s("../utils/under-dash");class o{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return m.deepMerge({},o.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new o;return t.model=r,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},T.exports=o},{"../utils/under-dash":26}],10:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=m.decodeAddress(r),c=m.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=m.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||rthis.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=m.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottomthis.bottom)&&!(r.rightthis.right)}contains(r){const t=m.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(m.encodeAddress(e,t),e,t)}}T.exports=o},{"../utils/col-cache":19}],11:[function(s,T,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache"),r=s("./cell");T.exports=class{constructor(t,e){this._worksheet=t,this._number=e,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:a.l2n(t)}return this._cells[t-1]||this.getCellEx({address:a.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c0)for(d=u;d>=l;d--)f=this._cells[d-1],f?(w=this.getCell(d+h),w.value=f.value,w.style=f.style,w._comment=f._comment):this._cells[d+h-1]=void 0;for(d=0;d{l&&l.type!==o.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==o.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return m.some(this._cells,t=>t&&t.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=a.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:a.encodeAddress(i,c),$col$row:`$${a.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,T,S){const m=s("../utils/col-cache");class o{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}T.exports=class{constructor(a,r){this.worksheet=a,r&&(this.table=r,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,r=(h,u,d)=>{h[u]===void 0&&(h[u]=d)};r(a,"headerRow",!0),r(a,"totalsRow",!1),r(a,"style",{}),r(a.style,"theme","TableStyleMedium2"),r(a.style,"showFirstColumn",!1),r(a.style,"showLastColumn",!1),r(a.style,"showRowStripes",!1),r(a.style,"showColumnStripes",!1);const t=(h,u)=>{if(!h)throw new Error(u)};t(a.ref,"Table must have ref"),t(a.columns,"Table must have column definitions"),t(a.rows,"Table must have row definitions"),a.tl=m.decodeAddress(a.ref);const{row:e,col:l}=a.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;a.autoFilterRef=m.encode(e,l,e+i-1,l+n-1),a.tableRef=m.encode(e,l,e+c-1,l+n-1),a.columns.forEach((h,u)=>{t(h.name,`Column ${u} must have a name`),u===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,c)=>{c&&Object.keys(c).forEach(h=>{i[h]=c[h]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const{style:u,name:d}=c,f=i.getCell(l+h);f.value=d,a(f,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((h,u)=>{const d=c.getCell(l+u);d.value=h,a(d,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const u=i.getCell(l+h);if(h===0)u.value=c.totalsRowLabel;else{const d=this.getFormula(c);u.value=d?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}a(u,c.style)})}}load(a){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=a.getRow(t+l++);n.forEach((c,h)=>{i.getCell(e+h).value=c})}),r.totalsRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{const h=n.getCell(e+c);c===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,r)}getColumn(a){const r=this.table.columns[a];return new o(this,r,a)}addColumn(a,r,t){this.cacheState(),t===void 0?(this.table.columns.push(a),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,a),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(a){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,r),this.table.rows.forEach(t=>{t.splice(a,r)})}_assign(a,r,t){this.cacheState(),a[r]=t}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(s,T,S){const m=s("./worksheet"),o=s("./defined-names"),a=s("../xlsx/xlsx"),r=s("../csv/csv");T.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t(u&&u.orderNo)>h?u.orderNo:h,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new m(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new m({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,T,S){const m=s("../utils/under-dash"),o=s("../utils/col-cache"),a=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:h}=s("../utils/copy-style");T.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},u.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new a;return this._rows.forEach(d=>{if(d){const f=d.dimensions;f&&u.expand(d.number,f.min,d.number,f.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,_)=>{const A=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(w,A)},0);let d=1;const f=this._columns=[];u.forEach(w=>{const _=new t(this,d++,!1);f.push(_),_.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,d){this._keys[u]=d}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){m.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const d=this._keys[u];if(d)return d;u=o.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let d=this._columns.length+1;for(;d<=u;)this._columns.push(new t(this,d++))}return this._columns[u-1]}spliceColumns(u,d){const f=this._rows.length;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A0)for(let P=0;P{D.push(B[P]||null)});const $=this.getRow(P+1);$.splice.apply($,D)}else this._rows.forEach(P=>{P&&P.splice(u,d)});const N=_.length-d,L=u+d,j=this._columns.length;if(N<0)for(let P=u+_.length;P<=j;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=j;P>=L;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P{u=Math.max(u,d.cellCount)}),u}get actualColumnCount(){const u=[];let d=0;return this.eachRow(f=>{f.eachCell(w=>{let{col:_}=w;u[_]||(u[_]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const u=this._rows;let d=u.length;for(;d>0&&u[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,d){return this._rows.slice(u-1,u-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let d=this._rows[u-1];return d||(d=this._rows[u-1]=new r(this,u)),d}getRows(u,d){if(d<1)return;const f=[];for(let w=u;w1&&arguments[1]!==void 0?arguments[1]:"n";const f=this._nextRow,w=this.getRow(f);return w.values=u,this._setStyleOption(f,d[0]==="i"?d:"n"),w}addRows(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const f=[];return u.forEach(w=>{f.push(this.addRow(w,d))}),f}insertRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,d),this._setStyleOption(u,f),this.getRow(u)}insertRows(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...d),f!=="n")for(let w=0;w1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,d[1]==="+"):d[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,d[1]==="+")}_copyStyle(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),_=this.getRow(d);_.style=h(w.style),w.eachCell({includeEmpty:f},(A,N)=>{_.getCell(N).style=h(A.style)}),_.height=w.height}duplicateRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],_=new Array(d).fill(w.values);this.spliceRows(u+1,f?0:d,..._);for(let A=0;A{N.getCell(j).style=L.style})}}spliceRows(u,d){const f=u+d;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A{$.getCell(x).style=B.style}),this._rows[P-1]=void 0}else this._rows[P+L-1]=void 0;else if(L>0)for(P=j;P>=f;P--)if(D=this._rows[P-1],D){const $=this.getRow(P+L);$.values=D.values,$.style=D.style,$.height=D.height,D.eachCell({includeEmpty:!0},(B,x)=>{if($.getCell(x).style=B.style,B._value.constructor.name==="MergeValue"){const M=this.getRow(B._row._number+N).getCell(x),v=B._value._master,p=this.getRow(v._row._number+N).getCell(v._column._number);M.merge(p)}})}else this._rows[P+L-1]=void 0;for(P=0;P{f&&f.hasValues&&d(f,f.number)})}getSheetValues(){const u=[];return this._rows.forEach(d=>{d&&(u[d.number]=d.values)}),u}findCell(u,d){const f=o.getAddress(u,d),w=this._rows[f.row-1];return w?w.findCell(f.col):void 0}getCell(u,d){const f=o.getAddress(u,d);return this.getRow(f.row).getCellEx(f)}mergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const f=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let _=u.left;_<=u.right;_++)(w>u.top||_>u.left)&&this.getCell(w,_).merge(f,d);this._merges[f.address]=u}_unMergeMaster(u){const d=this._merges[u.address];if(d){for(let f=d.top;f<=d.bottom;f++)for(let w=d.left;w<=d.right;w++)this.getCell(f,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f3&&arguments[3]!==void 0?arguments[3]:"shared";const _=o.decode(u),{top:A,left:N,bottom:L,right:j}=_,P=j-N+1,D=o.encodeAddress(A,N),$=w==="shared";let B;B=typeof f=="function"?f:Array.isArray(f)?Array.isArray(f[0])?(M,v)=>f[M-A][v-N]:(M,v)=>f[(M-A)*P+(v-N)]:()=>{};let x=!0;for(let M=A;M<=L;M++)for(let v=N;v<=j;v++)x?(this.getCell(M,v).value={shareType:w,formula:d,ref:u,result:B(M,v)},x=!1):this.getCell(M,v).value=$?{sharedFormula:D,result:B(M,v)}:B(M,v)}addImage(u,d){const f={type:"image",imageId:u,range:d};this._media.push(new l(this,f))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const d={type:"background",imageId:u};this._media.push(new l(this,d))}getBackgroundImageId(){const u=this._media.find(d=>d.type==="background");return u&&u.imageId}protect(u,d){return new Promise(f=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!u&&"spinCount"in d&&delete this.sheetProtection.spinCount),f()})}unprotect(){this.sheetProtection=null}addTable(u){const d=new n(this,u);return this.tables[u.name]=d,d}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const d=u.rows=[],f=u.dimensions=new a;return this._rows.forEach(w=>{const _=w&&w.model;_&&(f.expand(_.number,_.min,_.number,_.max),d.push(_))}),u.merges=[],m.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(d=>{const f=new r(this,d.number);this._rows[f.number-1]=f,f.model=d})}_parseMergeCells(u){m.each(u.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(d=>new l(this,d)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((d,f)=>{const w=new n;return w.model=f,d[f.name]=w,d},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(s,T,S){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const m={Workbook:s("./doc/workbook")},o=s("./doc/enums");Object.keys(o).forEach(a=>{m[a]=o[a]}),T.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(s,T,S){const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");S.bufferToString=function(o){return typeof o=="string"?o:m?m.decode(o):o.toString()}},{}],17:[function(s,T,S){const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=s("buffer");S.stringToBuffer=function(a){return typeof a!="string"?a:m?o.from(m.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(s,T,S){const m=s("./under-dash"),o=s("./col-cache");T.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,r,t){const e=this.sheets[a],l=e&&e[r];return l&&l[t]}addCellEx(a){if(a.top)for(let r=a.top;r<=a.bottom;r++)for(let t=a.left;t<=a.right;t++)this.getCellAt(a.sheetName,r,t);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,r){const t=this.findSheet(a,r),e=this.findSheetRow(t,a,r);return this.findRowCell(e,a,r)}getCellAt(a,r,t){const e=this.sheets[a]||(this.sheets[a]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:a,address:o.n2l(t)+r,row:r,col:t})}removeCellEx(a){const r=this.findSheet(a);if(!r)return;const t=this.findSheetRow(r,a);t&&delete t[a.col]}forEachInSheet(a,r){const t=this.sheets[a];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(a){m.each(this.sheets,(r,t)=>{this.forEachInSheet(t,a)})}map(a){const r=[];return this.forEach(t=>{r.push(a(t))}),r}findSheet(a,r){const t=a.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(a,r,t){const{row:e}=r;return a&&a[e]?a[e]:t?a[e]=[]:void 0}findRowCell(a,r,t){const{col:e}=r;return a&&a[e]?a[e]:t?a[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(a,r,t,e){const l=this.sheets[a];if(l){const n=[];for(let i=0;i{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,T,S){const m=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let r,t,e,l,n,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!m.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const r=a.length<5&&this._hash[a];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,d=0;d=65&&u<=90)t=!0,e+=a[d],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=a[d],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const h={address:a=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,r){if(r){const t=this.n2l(r)+a;return this.decodeAddress(t)}return this.decodeAddress(a)},decode(a){const r=a.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const r=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const h=Math.min(i.row,c.row),u=Math.min(i.col,c.col),d=Math.max(i.row,c.row),f=Math.max(i.col,c.col);return i=this.n2l(u)+h,c=this.n2l(f)+d,{top:h,left:u,bottom:d,right:f,sheetName:t,tl:{address:i,col:u,row:h,$col$row:`$${this.n2l(u)}$${h}`,sheetName:t},br:{address:c,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(a,r)=>o.n2l(r)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,r){const[t,e,,l,n]=a,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};T.exports=o},{}],20:[function(s,T,S){const m=(a,r)=>({...a,...r.reduce((t,e)=>(a[e]&&(t[e]={...a[e]}),t),{})}),o=function(a,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[t]&&(r[t]=m(a[t],e))};S.copyStyle=a=>{if(!a)return a;if(r=a,Object.keys(r).length===0)return{};var r;const t={...a};return o(a,t,"font",["color"]),o(a,t,"alignment"),o(a,t,"protection"),a.border&&(o(a,t,"border"),o(a.border,t.border,"top",["color"]),o(a.border,t.border,"left",["color"]),o(a.border,t.border,"bottom",["color"]),o(a.border,t.border,"right",["color"]),o(a.border,t.border,"diagonal",["color"])),a.fill&&(o(a,t,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(t.fill.stops=a.fill.stops.map(e=>m(e,["color"])))),t}},{}],21:[function(s,T,S){(function(m){(function(){const o=s("crypto"),a={hash(r){const t=o.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;no.randomBytes(r)};T.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,T,S){const{SaxesParser:m}=s("saxes"),{PassThrough:o}=s("readable-stream"),{bufferToString:a}=s("./browser-buffer-decode");T.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new o));const t=new m;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(a(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,T,S){const m=s("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;T.exports={slideFormula:function(r,t,e){const l=m.decode(t),n=m.decode(e);return r.replace(o,(i,c,h,u,d)=>{if(d)return i;const f=a.exec(u);if(f){const w=f[1],_=f[2].toUpperCase(),A=f[3],N=f[4];if(_.length>3||_.length===3&&_>"XFD")return i;let L=m.l2n(_),j=parseInt(N,10);return w||(L+=n.col-l.col),A||(j+=n.row-l.row),(c||"")+(w||"")+m.n2l(L)+(A||"")+j}return i})}}},{"./col-cache":19}],24:[function(s,T,S){(function(m,o){(function(){const a=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,d){this._data=u,this._encoding=d}get length(){return this.toBuffer().length}copy(u,d,f,w){return this.toBuffer().copy(u,d,f,w)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){return this._data._buf.copy(u,d,f,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){this._data.copy(u,d,f,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=o.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let d;return u===0?null:u===void 0||u>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=o.alloc(u),this.buffer.copy(d,0,this.iRead,u),this.iRead+=u,d)}write(u,d,f){const w=Math.min(f,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,d,d+w),this.iWrite+=w,w}}const c=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(u){return new Promise(d=>{u.write(h.toBuffer(),()=>{d()})})}))},_writeToBuffers(h){let u=0;const d=h.length;for(;u1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(f),m.nextTick(d)):(await this._pipe(f),d());else this.paused||this.emit("data",f.toBuffer()),this._writeToBuffers(f),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,u,d){const f=w=>{w?d(w):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,u,f):f()},read(h){let u;if(h){for(u=[];h&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],f=d.read(h);h-=f.length,u.push(f),d.eod&&d.full&&this.buffers.shift()}return o.concat(u)}return u=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],o.concat(u)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(u=>u!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),T.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,T,S){(function(m){(function(){T.exports=class{constructor(o){this._buf=m.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,T,S){const{toString:m}=Object.prototype,o=/["&<>]/,a={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((h,u)=>{const d=t[u];return a.isEqual(h,d)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const h of c)if(!t.hasOwnProperty(h))return!1;return a.every(r,(h,u)=>{const d=t[u];return a.isEqual(h,d)});default:return r===t}},escapeHtml(r){const t=o.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>rt?1:0,isUndefined:r=>m.call(r)==="[object Undefined]",isObject:r=>m.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,h){e=r[h],n=Array.isArray(c),a.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&a.isObject(e)?e:{},r[h]=a.deepMerge(l,c)):a.isUndefined(c)||(r[h]=c)}for(let c=0;c&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{m.setImmediate?o(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(h=>{Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(n,h))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{c[h]=Object.getOwnPropertyDescriptor(i,h)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,h=l.index;for(;h=11&&u!==13)){i="";break}continue}c!==h&&(n+=e.substring(c,h)),c=h+1,i&&(n+=i)}return c!==h?n+e.substring(c,h):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{a.access(e,a.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};T.exports=t}).call(this)}).call(this,typeof Kt<"u"?Kt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,T,S){const m=s("./under-dash"),o=s("./utils");function a(e,l,n){e.push(` ${l}="${o.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];m.each(l,(i,c)=>{i!==void 0&&a(n,c,i)}),e.push(n.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const n=this._xml;n.push(" `)}openNode(l,n){const i=this.tos,c=this._xml;i&&this.open&&c.push(">"),this._stack.push(l),c.push("<"),c.push(l),r(c,n),this.leaf=!0,this.open=!0}addAttribute(l,n){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n!==void 0&&a(this._xml,l,n)}addAttributes(l){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");r(this._xml,l)}writeText(l){const n=this._xml;this.open&&(n.push(">"),this.open=!1),this.leaf=!1,n.push(o.xmlEncode(l.toString()))}writeXml(l){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(l)}closeNode(){const l=this._stack.pop(),n=this._xml;this.leaf?n.push("/>"):(n.push("")),this.open=!1,this.leaf=!1}leafNode(l,n,i){this.openNode(l,n),i!==void 0&&this.writeText(i),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const l=this._rollbacks.pop();this._xml.length>l.xml&&this._xml.splice(l.xml,this._xml.length-l.xml),this._stack.length>l.stack&&this._stack.splice(l.stack,this._stack.length-l.stack),this.leaf=l.leaf,this.open=l.open}get xml(){return this.closeAll(),this._xml.join("")}}t.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},T.exports=t},{"./under-dash":26,"./utils":27}],29:[function(s,T,S){(function(m){(function(){const o=s("events"),a=s("jszip"),r=s("./stream-buf"),{stringToBuffer:t}=s("./browser-buffer-encode");class e extends o.EventEmitter{constructor(n){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},n),this.zip=new a,this.stream=new r}append(n,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,n,{base64:!0}):(m.browser&&typeof n=="string"&&(n=t(n)),this.zip.file(i.name,n))}async finalize(){const n=await this.zip.generateAsync(this.options);this.stream.end(n),this.emit("finish")}read(n){return this.stream.read(n)}setEncoding(n){return this.stream.setEncoding(n)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(n,i){return this.stream.pipe(n,i)}unpipe(n){return this.stream.unpipe(n)}unshift(n){return this.stream.unshift(n)}wrap(n){return this.stream.wrap(n)}}T.exports={ZipWriter:e}}).call(this)}).call(this,s("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(s,T,S){T.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(s,T,S){T.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(s,T,S){const m=s("../../utils/parse-sax"),o=s("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,e){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof a?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const e of t)for(const{eventType:l,value:n}of e)if(l==="opentag")this.parseOpen(n);else if(l==="text")this.parseText(n);else if(l==="closetag"&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(t){return this.parse(m(t))}get xml(){return this.toXml(this.model)}toXml(t){const e=new o;return this.render(e,t),e.xml}static toAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t.toString()}static toStringAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toStringValue(t,e){return t===void 0?e:t}static toBoolAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t?"1":"0"}static toBoolValue(t,e){return t===void 0?e:t==="1"}static toIntAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toIntValue(t,e){return t===void 0?e:parseInt(t,10)}static toFloatAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toFloatValue(t,e){return t===void 0?e:parseFloat(t)}}T.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/col-cache");function a(t){try{return o.decodeEx(t),!0}catch{return!1}}function r(t){const e=[];let l=!1,n="";return t.split(",").forEach(i=>{if(!i)return;const c=(i.match(/'/g)||[]).length;if(!c)return void(l?n+=i+",":a(i)&&e.push(i));const h=c%2==0;!l&&h&&a(i)?e.push(i):l&&!h?(l=!1,a(n+i)&&e.push(n+i),n=""):(l=!0,n+=i+",")}),e}T.exports=class extends m{render(t,e){t.openNode("definedName",{name:e.name,localSheetId:e.localSheetId}),t.writeText(e.ranges.join(",")),t.closeNode()}parseOpen(t){switch(t.name){case"definedName":return this._parsedName=t.attributes.name,this._parsedLocalSheetId=t.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(t){this._parsedText.push(t)}parseClose(){return this.model={name:this._parsedName,ranges:r(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform");T.exports=class extends o{render(a,r){a.leafNode("sheet",{sheetId:r.id,name:r.name,state:r.state,"r:id":r.rId})}parseOpen(a){return a.name==="sheet"&&(this.model={name:m.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){const r={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(r.visibility=a.visibility),o.leafNode("workbookView",r)}parseOpen(o){if(o.name==="workbookView"){const a=this.model={},r=function(e,l,n){const i=l!==void 0?a[e]=l:n;i!==void 0&&(a[e]=i)},t=function(e,l,n){const i=l!==void 0?a[e]=parseInt(l,10):n;i!==void 0&&(a[e]=i)};return t("x",o.attributes.xWindow,0),t("y",o.attributes.yWindow,0),t("width",o.attributes.windowWidth,25e3),t("height",o.attributes.windowHeight,1e4),r("visibility",o.attributes.visibility,"visible"),t("activeTab",o.attributes.activeTab,void 0),t("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../base-xform"),t=s("../static-xform"),e=s("../list-xform"),l=s("./defined-name-xform"),n=s("./sheet-xform"),i=s("./workbook-view-xform"),c=s("./workbook-properties-xform"),h=s("./workbook-calc-properties-xform");class u extends r{constructor(){super(),this.map={fileVersion:u.STATIC_XFORMS.fileVersion,workbookPr:new c,bookViews:new e({tag:"bookViews",count:!1,childXform:new i}),sheets:new e({tag:"sheets",count:!1,childXform:new n}),definedNames:new e({tag:"definedNames",count:!1,childXform:new l}),calcPr:new h}}prepare(f){f.sheets=f.worksheets;const w=[];let _=0;f.sheets.forEach(A=>{if(A.pageSetup&&A.pageSetup.printArea&&A.pageSetup.printArea.split("&&").forEach(N=>{const L=N.split(":"),j={name:"_xlnm.Print_Area",ranges:[`'${A.name}'!$${L[0]}:$${L[1]}`],localSheetId:_};w.push(j)}),A.pageSetup&&(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){const N=[];if(A.pageSetup.printTitlesColumn){const j=A.pageSetup.printTitlesColumn.split(":");N.push(`'${A.name}'!$${j[0]}:$${j[1]}`)}if(A.pageSetup.printTitlesRow){const j=A.pageSetup.printTitlesRow.split(":");N.push(`'${A.name}'!$${j[0]}:$${j[1]}`)}const L={name:"_xlnm.Print_Titles",ranges:N,localSheetId:_};w.push(L)}_++}),w.length&&(f.definedNames=f.definedNames.concat(w)),(f.media||[]).forEach((A,N)=>{A.name=A.type+(N+1)})}render(f,w){f.openXml(a.StdDocAttributes),f.openNode("workbook",u.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(f),this.map.workbookPr.render(f,w.properties),this.map.bookViews.render(f,w.views),this.map.sheets.render(f,w.sheets),this.map.definedNames.render(f,w.definedNames),this.map.calcPr.render(f,w.calcProperties),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"workbook":return!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(f){const w=(f.workbookRels||[]).reduce((j,P)=>(j[P.Id]=P,j),{}),_=[];let A,N=0;(f.sheets||[]).forEach(j=>{const P=w[j.rId];P&&(A=f.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],A&&(A.name=j.name,A.id=j.id,A.state=j.state,_[N++]=A))});const L=[];m.each(f.definedNames,j=>{if(j.name==="_xlnm.Print_Area"){if(A=_[j.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=o.decodeEx(j.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(j.name==="_xlnm.Print_Titles"){if(A=_[j.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=j.ranges.join(","),D=/\$/g,$=/\$\d+:\$\d+/,B=P.match($);if(B&&B.length){const v=B[0];A.pageSetup.printTitlesRow=v.replace(D,"")}const x=/\$[A-Z]+:\$[A-Z]+/,M=P.match(x);if(M&&M.length){const v=M[0];A.pageSetup.printTitlesColumn=v.replace(D,"")}}}else L.push(j)}),f.definedNames=L,f.media.forEach((j,P)=>{j.index=P})}}u.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},u.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},T.exports=u},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(s,T,S){const m=s("../strings/rich-text-xform"),o=s("../../../utils/utils"),a=s("../base-xform"),r=T.exports=function(t){this.model=t};o.inherits(r,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new m),this._richTextXform},render(t,e){e=e||this.model,t.openNode("comment",{ref:e.ref,authorId:0}),t.openNode("text"),e&&e.note&&e.note.texts&&e.note.texts.forEach(l=>{this.richTextXform.render(t,l)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../../../utils/utils"),a=s("../base-xform"),r=s("./comment-xform"),t=T.exports=function(){this.map={comment:new r}};o.inherits(t,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,l){l=l||this.model,e.openXml(m.StdDocAttributes),e.openNode("comments",t.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),l.comments.forEach(n=>{this.map.comment.render(e,n)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a,r){(a===r[2]||this.tag==="x:SizeWithCells"&&a===r[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"x:Anchor"}getAnchorRect(o){const a=Math.floor(o.left),r=Math.floor(68*(o.left-a)),t=Math.floor(o.top),e=Math.floor(18*(o.top-t)),l=Math.floor(o.right),n=Math.floor(68*(o.right-l)),i=Math.floor(o.bottom);return[a,r,t,e,l,n,i,Math.floor(18*(o.bottom-i))]}getDefaultRect(o){const a=o.col,r=Math.max(o.row-2,0);return[a,6,r,14,a+2,2,r+4,16]}render(o,a){const r=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);o.leafNode("x:Anchor",null,r.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(s,T,S){const m=s("../base-xform"),o=s("./vml-anchor-xform"),a=s("./style/vml-protection-xform"),r=s("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];T.exports=class extends m{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new r({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,l){const{protection:n,editAs:i}=l.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,t),this.map["x:SizeWithCells"].render(e,i,t),this.map["x:Anchor"].render(e,l),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,l.refAddress.row-1),e.leafNode("x:Column",null,l.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),l=Object.keys(e).length;this.model.editAs=t[l],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./vml-shape-xform");class r extends o{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,l){e.openXml(m.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),l.comments.forEach((n,i)=>{this.map["v:shape"].render(e,n,i)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,l){e.anchors.forEach(n=>{n.br?this.map["xdr:twoCellAnchor"].reconcile(n,l):this.map["xdr:oneCellAnchor"].reconcile(n,l)})}}r.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},T.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(s,T,S){const m=s("../base-xform"),o=s("./vml-textbox-xform"),a=s("./vml-client-data-xform");class r extends m{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,l,n){e.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(l,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,l),this.map["x:ClientData"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}r.V_SHAPE_ATTRIBUTES=(t,e)=>({id:"_x0000_s"+(1025+e),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":t.note.margins&&t.note.margins.insetmode}),T.exports=r},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"v:textbox"}conversionUnit(o,a,r){return`${parseFloat(o)*a.toFixed(2)}${r}`}reverseConversionUnit(o){return(o||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(o,a){const r={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:t}=a.note&&a.note.margins;Array.isArray(t)&&(t=t.map(e=>this.conversionUnit(e,10,"mm")).join(",")),t&&(r.inset=t)}o.openNode("v:textbox",r),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(s,T,S){const m=s("./base-xform");T.exports=class extends m{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,a){this.model[o]=a.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,a.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(r=>{o.leafNode("vt:lpstr",void 0,r.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/string-xform"),r=s("./app-heading-pairs-xform"),t=s("./app-titles-of-parts-xform");class e extends o{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new r,TitleOfParts:new t}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("Properties",e.PROPERTY_ATTRIBUTES),n.leafNode("Application",void 0,"Microsoft Excel"),n.leafNode("DocSecurity",void 0,"0"),n.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(n,i.worksheets),this.map.TitleOfParts.render(n,i.worksheets),this.map.Company.render(n,i.company||""),this.map.Manager.render(n,i.manager),n.leafNode("LinksUpToDate",void 0,"false"),n.leafNode("SharedDoc",void 0,"false"),n.leafNode("HyperlinksChanged",void 0,"false"),n.leafNode("AppVersion",void 0,"16.0300"),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Properties":return!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},T.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform");class a extends o{render(t,e){t.openXml(m.StdDocAttributes),t.openNode("Types",a.PROPERTY_ATTRIBUTES);const l={};(e.media||[]).forEach(n=>{if(n.type==="image"){const i=n.extension;l[i]||(l[i]=!0,t.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),e.worksheets.forEach(n=>{const i=`/xl/worksheets/sheet${n.id}.xml`;t.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),e.sharedStrings&&e.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),e.tables&&e.tables.forEach(n=>{t.leafNode("Override",{PartName:"/xl/tables/"+n.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),e.drawings&&e.drawings.forEach(n=>{t.leafNode("Override",{PartName:`/xl/drawings/${n.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),e.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),e.commentRefs.forEach(n=>{let{commentName:i}=n;t.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},T.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/date-xform"),r=s("../simple/string-xform"),t=s("../simple/integer-xform");class e extends o{constructor(){super(),this.map={"dc:creator":new r({tag:"dc:creator"}),"dc:title":new r({tag:"dc:title"}),"dc:subject":new r({tag:"dc:subject"}),"dc:description":new r({tag:"dc:description"}),"dc:identifier":new r({tag:"dc:identifier"}),"dc:language":new r({tag:"dc:language"}),"cp:keywords":new r({tag:"cp:keywords"}),"cp:category":new r({tag:"cp:category"}),"cp:lastModifiedBy":new r({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:e.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new r({tag:"cp:version"}),"cp:contentStatus":new r({tag:"cp:contentStatus"}),"cp:contentType":new r({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:e.DateAttrs,format:e.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:e.DateAttrs,format:e.DateFormat})}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("cp:coreProperties",e.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(n,i.creator),this.map["dc:title"].render(n,i.title),this.map["dc:subject"].render(n,i.subject),this.map["dc:description"].render(n,i.description),this.map["dc:identifier"].render(n,i.identifier),this.map["dc:language"].render(n,i.language),this.map["cp:keywords"].render(n,i.keywords),this.map["cp:category"].render(n,i.category),this.map["cp:lastModifiedBy"].render(n,i.lastModifiedBy),this.map["cp:lastPrinted"].render(n,i.lastPrinted),this.map["cp:revision"].render(n,i.revision),this.map["cp:version"].render(n,i.version),this.map["cp:contentStatus"].render(n,i.contentStatus),this.map["cp:contentType"].render(n,i.contentType),this.map["dcterms:created"].render(n,i.created),this.map["dcterms:modified"].render(n,i.modified),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},T.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{render(o,a){o.leafNode("Relationship",a)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./relationship-xform");class r extends o{constructor(){super(),this.map={Relationship:new a}}render(e,l){l=l||this._values,e.openXml(m.StdDocAttributes),e.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),l.forEach(n=>{this.map.Relationship.render(e,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}r.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},T.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,a){if(o&&o.rId){const r=a.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const t=r[1],e=a.mediaIndex[t];return a.media[e]}}}}},{"../base-xform":32}],57:[function(s,T,S){const m=s("../base-xform"),o=s("./blip-xform");T.exports=class extends m{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,r){a.openNode(this.tag),this.map["a:blip"].render(a,r),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:blip"}render(o,a){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(s,T,S){const m=s("../base-xform"),o=s("./hlink-click-xform"),a=s("./ext-lst-xform");T.exports=class extends m{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(r,t){r.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(r,t),this.map["a:extLst"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(s,T,S){const m=s("../base-xform"),o=s("../simple/integer-xform");T.exports=class extends m{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,r){a.openNode(this.tag),this.map["xdr:col"].render(a,r.nativeCol),this.map["xdr:colOff"].render(a,r.nativeColOff),this.map["xdr:row"].render(a,r.nativeRow),this.map["xdr:rowOff"].render(a,r.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("./two-cell-anchor-xform"),t=s("./one-cell-anchor-xform");class e extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new r,"xdr:oneCellAnchor":new t}}prepare(n){n.anchors.forEach((i,c)=>{i.anchorType=function(h){return(typeof h.range=="string"?m.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:c})})}get tag(){return"xdr:wsDr"}render(n,i){n.openXml(o.StdDocAttributes),n.openNode(this.tag,e.DRAWING_ATTRIBUTES),i.anchors.forEach(c=>{this.map[c.anchorType].render(n,c)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,i){n.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,i):this.map["xdr:oneCellAnchor"].reconcile(c,i)})}}e.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},T.exports=e},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,a){o.openNode(this.tag);const r=Math.floor(9525*a.width),t=Math.floor(9525*a.height);o.addAttribute("cx",r),o.addAttribute("cy",t),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"a:hlinkClick"}render(o,a){a.hyperlinks&&a.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(s,T,S){const m=s("../base-xform"),o=s("./c-nv-pr-xform"),a=s("./c-nv-pic-pr-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(r,t){r.openNode(this.tag),this.map["xdr:cNvPr"].render(r,t),this.map["xdr:cNvPicPr"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(s,T,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./ext-xform"),t=s("./pic-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new r({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,l){this.map["xdr:pic"].prepare(e.picture,l)}render(e,l){e.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,l.range.tl),this.map["xdr:ext"].render(e,l.range.ext),this.map["xdr:pic"].render(e,l.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,l){e.medium=this.reconcilePicture(e.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(s,T,S){const m=s("../base-xform"),o=s("../static-xform"),a=s("./blip-fill-xform"),r=s("./nv-pic-pr-xform"),t=s("./sp-pr");T.exports=class extends m{constructor(){super(),this.map={"xdr:nvPicPr":new r,"xdr:blipFill":new a,"xdr:spPr":new o(t)}}get tag(){return"xdr:pic"}prepare(e,l){e.index=l.index+1}render(e,l){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,l),this.map["xdr:blipFill"].render(e,l),this.map["xdr:spPr"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(s,T,S){T.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(s,T,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./pic-xform");T.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new r,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(t,e){this.map["xdr:pic"].prepare(t.picture,e)}render(t,e){t.openNode(this.tag,{editAs:e.range.editAs||"oneCell"}),this.map["xdr:from"].render(t,e.range.tl),this.map["xdr:to"].render(t,e.range.br),this.map["xdr:pic"].render(t,e.picture),this.map["xdr:clientData"].render(t,{}),t.closeNode()}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(t,e){t.medium=this.reconcilePicture(t.picture,e)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(s,T,S){const m=s("./base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,a){const{childXform:r}=this;o&&o.forEach((t,e)=>{a.index=e,r.prepare(t,a)})}render(o,a){if(this.always||a&&a.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,a&&a.length||0);const{childXform:r}=this;(a||[]).forEach((t,e)=>{r.render(o,t,e)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,a){if(o){const{childXform:r}=this;o.forEach(t=>{r.reconcile(t,a)})}}}},{"./base-xform":32}],72:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../base-xform");T.exports=class extends o{get tag(){return"autoFilter"}render(a,r){if(r)if(typeof r=="string")a.leafNode("autoFilter",{ref:r});else{const t=function(n){return typeof n=="string"?n:m.getAddress(n.row,n.column).address},e=t(r.from),l=t(r.to);e&&l&&a.leafNode("autoFilter",{ref:`${e}:${l}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform"),a=s("../../../doc/range"),r=s("../../../doc/enums"),t=s("../strings/rich-text-xform");function e(l){if(l==null)return r.ValueType.Null;if(l instanceof String||typeof l=="string")return r.ValueType.String;if(typeof l=="number")return r.ValueType.Number;if(typeof l=="boolean")return r.ValueType.Boolean;if(l instanceof Date)return r.ValueType.Date;if(l.text&&l.hyperlink)return r.ValueType.Hyperlink;if(l.formula)return r.ValueType.Formula;if(l.error)return r.ValueType.Error;throw new Error("I could not understand type of value")}T.exports=class extends o{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(l,n){const i=n.styles.addStyleModel(l.style||{},function(c){switch(c.type){case r.ValueType.Formula:return e(c.result);default:return c.type}}(l));switch(i&&(l.styleId=i),l.comment&&n.comments.push({...l.comment,ref:l.address}),l.type){case r.ValueType.String:case r.ValueType.RichText:n.sharedStrings&&(l.ssId=n.sharedStrings.add(l.value));break;case r.ValueType.Date:n.date1904&&(l.date1904=!0);break;case r.ValueType.Hyperlink:n.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=n.sharedStrings.add(l.text)),n.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case r.ValueType.Merge:n.merges.add(l);break;case r.ValueType.Formula:if(n.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=n.siFormulae++),l.formula)n.formulae[l.address]=l;else if(l.sharedFormula){const c=n.formulae[l.sharedFormula];if(!c)throw new Error("Shared Formula master must exist above and or left of clone for cell "+l.address);c.si===void 0?(c.shareType="shared",c.si=n.siFormulae++,c.range=new a(c.address,l.address)):c.range&&c.range.expandToAddress(l.address),l.si=c.si}}}renderFormula(l,n){let i=null;switch(n.shareType){case"shared":i={t:"shared",ref:n.ref||n.range.range,si:n.si};break;case"array":i={t:"array",ref:n.ref};break;default:n.si!==void 0&&(i={t:"shared",si:n.si})}switch(e(n.result)){case r.ValueType.Null:l.leafNode("f",i,n.formula);break;case r.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Number:l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result?1:0);break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result.error);break;case r.ValueType.Date:l.leafNode("f",i,n.formula),l.leafNode("v",null,m.dateToExcel(n.result,n.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,n){if(n.type!==r.ValueType.Null||n.styleId){switch(l.openNode("c"),l.addAttribute("r",n.address),n.styleId&&l.addAttribute("s",n.styleId),n.type){case r.ValueType.Null:break;case r.ValueType.Number:l.leafNode("v",null,n.value);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,n.value?"1":"0");break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,n.value.error);break;case r.ValueType.String:case r.ValueType.RichText:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):n.value&&n.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),n.value.richText.forEach(i=>{this.richTextXForm.render(l,i)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,n.value));break;case r.ValueType.Date:l.leafNode("v",null,m.dateToExcel(n.value,n.date1904));break;case r.ValueType.Hyperlink:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,n.text));break;case r.ValueType.Formula:this.renderFormula(l,n);break;case r.ValueType.Merge:}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){if(this.parser)this.parser.parseText(l);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+l:l:this.model.value=this.model.value?this.model.value+l:l}}parseClose(l){switch(l){case"c":{const{model:n}=this;if(n.formula||n.shareType)n.type=r.ValueType.Formula,n.value&&(this.t==="str"?n.result=m.xmlDecode(n.value):this.t==="b"?n.result=parseInt(n.value,10)!==0:this.t==="e"?n.result={error:n.value}:n.result=parseFloat(n.value),n.value=void 0);else if(n.value!==void 0)switch(this.t){case"s":n.type=r.ValueType.String,n.value=parseInt(n.value,10);break;case"str":n.type=r.ValueType.String,n.value=m.xmlDecode(n.value);break;case"inlineStr":n.type=r.ValueType.String;break;case"b":n.type=r.ValueType.Boolean,n.value=parseInt(n.value,10)!==0;break;case"e":n.type=r.ValueType.Error,n.value={error:n.value};break;default:n.type=r.ValueType.Number,n.value=parseFloat(n.value)}else n.styleId?n.type=r.ValueType.Null:n.type=r.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(l),!0)}}reconcile(l,n){const i=l.styleId&&n.styles&&n.styles.getStyleModel(l.styleId);switch(i&&(l.style=i),l.styleId!==void 0&&(l.styleId=void 0),l.type){case r.ValueType.String:typeof l.value=="number"&&n.sharedStrings&&(l.value=n.sharedStrings.getString(l.value)),l.value.richText&&(l.type=r.ValueType.RichText);break;case r.ValueType.Number:i&&m.isDateFmt(i.numFmt)&&(l.type=r.ValueType.Date,l.value=m.excelToDate(l.value,n.date1904));break;case r.ValueType.Formula:l.result!==void 0&&i&&m.isDateFmt(i.numFmt)&&(l.result=m.excelToDate(l.result,n.date1904)),l.shareType==="shared"&&(l.ref?n.formulae[l.si]=l.address:(l.sharedFormula=n.formulae[l.si],delete l.shareType),delete l.si)}const c=n.hyperlinkMap[l.address];c&&(l.type===r.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=r.ValueType.Hyperlink,l.hyperlink=c);const h=n.commentsMap&&n.commentsMap[l.address];h&&(l.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"x14:cfIcon"}render(o,a){o.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(o){let{attributes:a}=o;this.model={iconSet:a.iconSet,iconId:m.toIntValue(a.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(s,T,S){const{v4:m}=s("uuid"),o=s("../../base-xform"),a=s("../../composite-xform"),r=s("./databar-ext-xform"),t=s("./icon-set-ext-xform"),e={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new r,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?r.isExt(i):!(i.type!=="iconSet"||!i.custom&&!e[i.iconSet])}prepare(i){l.isExt(i)&&(i.x14Id=`{${m()}}`.toUpperCase())}render(i,c){if(l.isExt(c))switch(c.type){case"dataBar":this.renderDataBar(i,c);break;case"iconSet":this.renderIconSet(i,c)}}renderDataBar(i,c){i.openNode(this.tag,{type:"dataBar",id:c.x14Id}),this.databarXform.render(i,c),i.closeNode()}renderIconSet(i,c){i.openNode(this.tag,{type:"iconSet",priority:c.priority,id:c.x14Id||`{${m()}}`}),this.iconSetXform.render(i,c),i.closeNode()}createNewModel(i){let{attributes:c}=i;return{type:c.type,x14Id:c.id,priority:o.toIntValue(c.priority)}}onParserClose(i,c){Object.assign(this.model,c.model)}}T.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(s,T,S){const m=s("../../composite-xform"),o=s("./f-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,r){a.openNode(this.tag,{type:r.type}),r.value!==void 0&&this.fExtXform.render(a,r.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,r){switch(a){case"xm:f":this.model.value=r.model?parseFloat(r.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(s,T,S){const m=s("../../composite-xform"),o=s("./sqref-ext-xform"),a=s("./cf-rule-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(r,t){r.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(r,t){t.rules.some(a.isExt)&&(r.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach(e=>this.cfRule.render(r,e)),this.sqRef.render(r,t.ref),r.closeNode())}createNewModel(){return{rules:[]}}onParserClose(r,t){switch(r){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(s,T,S){const m=s("../../composite-xform"),o=s("./cf-rule-ext-xform"),a=s("./conditional-formatting-ext-xform");T.exports=class extends m{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(r){return r.hasExtContent===void 0&&(r.hasExtContent=r.some(t=>t.rules.some(o.isExt))),r.hasExtContent}prepare(r,t){r.forEach(e=>{this.cfXform.prepare(e,t)})}render(r,t){this.hasContent(t)&&(r.openNode(this.tag),t.forEach(e=>this.cfXform.render(r,e)),r.closeNode())}createNewModel(){return[]}onParserClose(r,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../style/color-xform"),r=s("./cfvo-ext-xform");T.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new r,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(t){return!t.gradient}get tag(){return"x14:dataBar"}render(t,e){t.openNode(this.tag,{minLength:m.toIntAttribute(e.minLength,0,!0),maxLength:m.toIntAttribute(e.maxLength,100,!0),border:m.toBoolAttribute(e.border,!1),gradient:m.toBoolAttribute(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolAttribute(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolAttribute(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toAttribute(e.axisPosition,"auto"),direction:m.toAttribute(e.direction,"leftToRight")}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),this.borderColorXform.render(t,e.borderColor),this.negativeBorderColorXform.render(t,e.negativeBorderColor),this.negativeFillColorXform.render(t,e.negativeFillColor),this.axisColorXform.render(t,e.axisColor),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],minLength:m.toIntValue(e.minLength,0),maxLength:m.toIntValue(e.maxLength,100),border:m.toBoolValue(e.border,!1),gradient:m.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toStringValue(e.axisPosition,"auto"),direction:m.toStringValue(e.direction,"leftToRight")}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"xm:f"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-ext-xform"),r=s("./cf-icon-ext-xform");T.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new r}}get tag(){return"x14:iconSet"}render(t,e){t.openNode(this.tag,{iconSet:m.toStringAttribute(e.iconSet),reverse:m.toBoolAttribute(e.reverse,!1),showValue:m.toBoolAttribute(e.showValue,!0),custom:m.toBoolAttribute(e.icons,!1)}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),e.icons&&e.icons.forEach((l,n)=>{l.iconId=n,this.cfIconXform.render(t,l)}),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],iconSet:m.toStringValue(e.iconSet,"3TrafficLights"),reverse:m.toBoolValue(e.reverse,!1),showValue:m.toBoolValue(e.showValue,!0)}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"xm:sqref"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../../../doc/range"),r=s("./databar-xform"),t=s("./ext-lst-ref-xform"),e=s("./formula-xform"),l=s("./color-scale-xform"),n=s("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},c=u=>{const{type:d,operator:f}=u;switch(d){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:d};default:return{type:d,operator:f}}};class h extends o{constructor(){super(),this.map={dataBar:this.databarXform=new r,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new e,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new n}}get tag(){return"cfRule"}static isPrimitive(d){return d.type!=="iconSet"||!d.custom&&!i[d.iconSet]}render(d,f){switch(f.type){case"expression":this.renderExpression(d,f);break;case"cellIs":this.renderCellIs(d,f);break;case"top10":this.renderTop10(d,f);break;case"aboveAverage":this.renderAboveAverage(d,f);break;case"dataBar":this.renderDataBar(d,f);break;case"colorScale":this.renderColorScale(d,f);break;case"iconSet":this.renderIconSet(d,f);break;case"containsText":this.renderText(d,f);break;case"timePeriod":this.renderTimePeriod(d,f)}}renderExpression(d,f){d.openNode(this.tag,{type:"expression",dxfId:f.dxfId,priority:f.priority}),this.formulaXform.render(d,f.formulae[0]),d.closeNode()}renderCellIs(d,f){d.openNode(this.tag,{type:"cellIs",dxfId:f.dxfId,priority:f.priority,operator:f.operator}),f.formulae.forEach(w=>{this.formulaXform.render(d,w)}),d.closeNode()}renderTop10(d,f){d.leafNode(this.tag,{type:"top10",dxfId:f.dxfId,priority:f.priority,percent:m.toBoolAttribute(f.percent,!1),bottom:m.toBoolAttribute(f.bottom,!1),rank:m.toIntValue(f.rank,10,!0)})}renderAboveAverage(d,f){d.leafNode(this.tag,{type:"aboveAverage",dxfId:f.dxfId,priority:f.priority,aboveAverage:m.toBoolAttribute(f.aboveAverage,!0)})}renderDataBar(d,f){d.openNode(this.tag,{type:"dataBar",priority:f.priority}),this.databarXform.render(d,f),this.extLstRefXform.render(d,f),d.closeNode()}renderColorScale(d,f){d.openNode(this.tag,{type:"colorScale",priority:f.priority}),this.colorScaleXform.render(d,f),d.closeNode()}renderIconSet(d,f){h.isPrimitive(f)&&(d.openNode(this.tag,{type:"iconSet",priority:f.priority}),this.iconSetXform.render(d,f),d.closeNode())}renderText(d,f){d.openNode(this.tag,{type:f.operator,dxfId:f.dxfId,priority:f.priority,operator:m.toStringAttribute(f.operator,"containsText")});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.operator){case"containsText":return`NOT(ISERROR(SEARCH("${_.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}renderTimePeriod(d,f){d.openNode(this.tag,{type:"timePeriod",dxfId:f.dxfId,priority:f.priority,timePeriod:f.timePeriod});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}createNewModel(d){let{attributes:f}=d;return{...c(f),dxfId:m.toIntValue(f.dxfId),priority:m.toIntValue(f.priority),timePeriod:f.timePeriod,percent:m.toBoolValue(f.percent),bottom:m.toBoolValue(f.bottom),rank:m.toIntValue(f.rank),aboveAverage:m.toBoolValue(f.aboveAverage)}}onParserClose(d,f){switch(d){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,f.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(f.model)}}}T.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"cfvo"}render(o,a){o.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(o){this.model={type:o.attributes.type,value:m.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(s,T,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");T.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"colorScale"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),t.color.forEach(e=>{this.colorXform.render(r,e)}),r.closeNode()}createNewModel(r){return{cfvo:[],color:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(s,T,S){const m=s("../../composite-xform"),o=s("./cf-rule-xform");T.exports=class extends m{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,r){r.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:r.ref}),r.rules.forEach(t=>{o.isPrimitive(t)&&(t.ref=r.ref,this.map.cfRule.render(a,t))}),a.closeNode())}createNewModel(a){let{attributes:r}=a;return{ref:r.sqref,rules:[]}}onParserClose(a,r){this.model.rules.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(s,T,S){const m=s("../../base-xform"),o=s("./conditional-formatting-xform");T.exports=class extends m{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,r){let t=a.reduce((e,l)=>Math.max(e,...l.rules.map(n=>n.priority||0)),1);a.forEach(e=>{e.rules.forEach(l=>{l.priority||(l.priority=t++),l.style&&(l.dxfId=r.styles.addDxfStyle(l.style))})})}render(a,r){r.forEach(t=>{this.cfXform.render(a,t)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(!!this.parser.parseClose(a)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(a,r){a.forEach(t=>{t.rules.forEach(e=>{e.dxfId!==void 0&&(e.style=r.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(s,T,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");T.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"dataBar"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),this.colorXform.render(r,t.color),r.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(r,t){switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform");class a extends m{get tag(){return"x14:id"}render(e,l){e.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class r extends o{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,l){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,l.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,l){this.model.x14Id=l.model}}T.exports=class extends o{constructor(){super(),this.map={ext:new r}}get tag(){return"extLst"}render(t,e){t.openNode(this.tag),this.map.ext.render(t,e),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){Object.assign(this.model,e.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(s,T,S){const m=s("../../base-xform");T.exports=class extends m{get tag(){return"formula"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(s,T,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-xform");T.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(r,t){r.openNode(this.tag,{iconSet:m.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:m.toBoolAttribute(t.reverse,!1),showValue:m.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),r.closeNode()}createNewModel(r){let{attributes:t}=r;return{iconSet:m.toStringValue(t.iconSet,"3TrafficLights"),reverse:m.toBoolValue(t.reverse),showValue:m.toBoolValue(t.showValue),cfvo:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(s,T,S){const m=s("../../../utils/utils"),o=s("../base-xform");T.exports=class extends o{get tag(){return"col"}prepare(a,r){const t=r.styles.addStyleModel(a.style||{});t&&(a.styleId=t)}render(a,r){a.openNode("col"),a.addAttribute("min",r.min),a.addAttribute("max",r.max),r.width&&a.addAttribute("width",r.width),r.styleId&&a.addAttribute("style",r.styleId),r.hidden&&a.addAttribute("hidden","1"),r.bestFit&&a.addAttribute("bestFit","1"),r.outlineLevel&&a.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const r=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(r.styleId=parseInt(a.attributes.style,10)),m.parseBoolean(a.attributes.hidden)&&(r.hidden=!0),m.parseBoolean(a.attributes.bestFit)&&(r.bestFit=!0),a.attributes.outlineLevel&&(r.outlineLevel=parseInt(a.attributes.outlineLevel,10)),m.parseBoolean(a.attributes.collapsed)&&(r.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,r){a.styleId&&(a.style=r.styles.getStyleModel(a.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/utils"),a=s("../../../utils/col-cache"),r=s("../base-xform"),t=s("../../../doc/range");function e(n,i,c,h){const u=i[c];u!==void 0?n[c]=u:h!==void 0&&(n[c]=h)}function l(n,i,c,h){const u=i[c];u!==void 0?n[c]=o.parseBoolean(u):h!==void 0&&(n[c]=h)}T.exports=class extends r{get tag(){return"dataValidations"}render(n,i){const c=function(h){const u=m.map(h,(w,_)=>({address:_,dataValidation:w,marked:!1})).sort((w,_)=>m.strcmp(w.address,_.address)),d=m.keyBy(u,"address"),f=(w,_,A)=>{for(let N=0;N<_;N++){const L=a.encodeAddress(w.row+N,A);if(!h[L]||!m.isEqual(h[w.address],h[L]))return!1}return!0};return u.map(w=>{if(!w.marked){const _=a.decodeEx(w.address);if(_.dimensions)return d[_.dimensions].marked=!0,{...w.dataValidation,sqref:w.address};let A=1,N=a.encodeAddress(_.row+A,_.col);for(;h[N]&&m.isEqual(w.dataValidation,h[N]);)A++,N=a.encodeAddress(_.row+A,_.col);let L=1;for(;f(_,A,_.col+L);)L++;for(let j=0;j1||L>1){const j=_.row+(A-1),P=_.col+(L-1);return{...w.dataValidation,sqref:`${w.address}:${a.encodeAddress(j,P)}`}}return{...w.dataValidation,sqref:w.address}}return null}).filter(Boolean)}(i);c.length&&(n.openNode("dataValidations",{count:c.length}),c.forEach(h=>{n.openNode("dataValidation"),h.type!=="any"&&(n.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&n.addAttribute("operator",h.operator),h.allowBlank&&n.addAttribute("allowBlank","1")),h.showInputMessage&&n.addAttribute("showInputMessage","1"),h.promptTitle&&n.addAttribute("promptTitle",h.promptTitle),h.prompt&&n.addAttribute("prompt",h.prompt),h.showErrorMessage&&n.addAttribute("showErrorMessage","1"),h.errorStyle&&n.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&n.addAttribute("errorTitle",h.errorTitle),h.error&&n.addAttribute("error",h.error),n.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((u,d)=>{n.openNode("formula"+(d+1)),h.type==="date"?n.writeText(o.dateToExcel(new Date(u))):n.writeText(u),n.closeNode()}),n.closeNode()}),n.closeNode())}parseOpen(n){switch(n.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=n.attributes.sqref;const i={type:n.attributes.type||"any",formulae:[]};switch(n.attributes.type&&l(i,n.attributes,"allowBlank"),l(i,n.attributes,"showInputMessage"),l(i,n.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:e(i,n.attributes,"operator","between")}return e(i,n.attributes,"promptTitle"),e(i,n.attributes,"prompt"),e(i,n.attributes,"errorStyle"),e(i,n.attributes,"errorTitle"),e(i,n.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(n){this._formula&&this._formula.push(n)}parseClose(n){switch(n){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(i=>{i.includes(":")?new t(i).forEachAddress(c=>{this.model[c]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=o.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"dimension"}render(o,a){a&&o.leafNode("dimension",{ref:a})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"drawing"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(s,T,S){const m=s("../composite-xform"),o=s("./cf-ext/conditional-formattings-ext-xform");class a extends m{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(t){return this.conditionalFormattings.hasContent(t.conditionalFormattings)}prepare(t,e){this.conditionalFormattings.prepare(t.conditionalFormattings,e)}render(t,e){t.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(t,e.conditionalFormattings),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){this.model[t]=e.model}}T.exports=class extends m{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(r,t){this.ext.prepare(r,t)}hasContent(r){return this.ext.hasContent(r)}render(r,t){this.hasContent(t)&&(r.openNode("extLst"),this.ext.render(r,t),r.closeNode())}createNewModel(){return{}}onParserClose(r,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"headerFooter"}render(o,a){if(a){o.addRollback();let r=!1;o.openNode("headerFooter"),a.differentFirst&&(o.addAttribute("differentFirst","1"),r=!0),a.differentOddEven&&(o.addAttribute("differentOddEven","1"),r=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(o.leafNode("oddHeader",null,a.oddHeader),r=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(o.leafNode("oddFooter",null,a.oddFooter),r=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(o.leafNode("evenHeader",null,a.evenHeader),r=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(o.leafNode("evenFooter",null,a.evenFooter),r=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(o.leafNode("firstHeader",null,a.firstHeader),r=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(o.leafNode("firstFooter",null,a.firstFooter),r=!0),r?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"hyperlink"}render(o,a){this.isInternalLink(a)?o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"mergeCell"}render(o,a){o.leafNode("mergeCell",{ref:a})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../doc/range"),a=s("../../../utils/col-cache"),r=s("../../../doc/enums");T.exports=class{constructor(){this.merges={}}add(t){if(this.merges[t.master])this.merges[t.master].expandToAddress(t.address);else{const e=`${t.master}:${t.address}`;this.merges[t.master]=new o(e)}}get mergeCells(){return m.map(this.merges,t=>t.range)}reconcile(t,e){m.each(t,l=>{const n=a.decode(l);for(let i=n.top;i<=n.bottom;i++){const c=e[i-1];for(let h=n.left;h<=n.right;h++){const u=c.cells[h-1];u?u.type===r.ValueType.Merge&&(u.master=n.tl):c.cells[h]={type:r.ValueType.Null,address:a.encodeAddress(i,h)}}}})}getMasterAddress(t){const e=this.hash[t];return e&&e.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(s,T,S){const m=s("../base-xform"),o=a=>a!==void 0;T.exports=class extends m{get tag(){return"outlinePr"}render(a,r){return!(!r||!o(r.summaryBelow)&&!o(r.summaryRight))&&(a.leafNode(this.tag,{summaryBelow:o(r.summaryBelow)?Number(r.summaryBelow):void 0,summaryRight:o(r.summaryRight)?Number(r.summaryRight):void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"brk"}render(o,a){o.leafNode("brk",a)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");T.exports=class extends o{get tag(){return"pageMargins"}render(a,r){if(r){const t={left:r.left,right:r.right,top:r.top,bottom:r.bottom,header:r.header,footer:r.footer};m.some(t,e=>e!==void 0)&&a.leafNode(this.tag,t)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"pageSetUpPr"}render(o,a){return!(!a||!a.fitToPage)&&(o.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(l){return l?"1":void 0}function r(l){switch(l){case"overThenDown":return l;default:return}}function t(l){switch(l){case"atEnd":case"asDisplyed":return l;default:return}}function e(l){switch(l){case"dash":case"blank":case"NA":return l;default:return}}T.exports=class extends o{get tag(){return"pageSetup"}render(l,n){if(n){const i={paperSize:n.paperSize,orientation:n.orientation,horizontalDpi:n.horizontalDpi,verticalDpi:n.verticalDpi,pageOrder:r(n.pageOrder),blackAndWhite:a(n.blackAndWhite),draft:a(n.draft),cellComments:t(n.cellComments),errors:e(n.errors),scale:n.scale,fitToWidth:n.fitToWidth,fitToHeight:n.fitToHeight,firstPageNumber:n.firstPageNumber,useFirstPageNumber:a(n.firstPageNumber),usePrinterDefaults:a(n.usePrinterDefaults),copies:n.copies};m.some(i,c=>c!==void 0)&&l.leafNode(this.tag,i)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:(n=l.attributes.paperSize,n!==void 0?parseInt(n,10):void 0),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}var n}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"picture"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(r){return r?"1":void 0}T.exports=class extends o{get tag(){return"printOptions"}render(r,t){if(t){const e={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};m.some(e,l=>l!==void 0)&&r.leafNode(this.tag,e)}}parseOpen(r){switch(r.name){case this.tag:return this.model={showRowColHeaders:r.attributes.headings==="1",showGridLines:r.attributes.gridLines==="1",horizontalCentered:r.attributes.horizontalCentered==="1",verticalCentered:r.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(s,T,S){const m=s("./page-breaks-xform"),o=s("../list-xform");T.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new m})}render(a,r){if(r&&r.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,r.length),a.addAttribute("manualBreakCount",r.length));const{childXform:t}=this;r.forEach(e=>{t.render(a,e)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./cell-xform");T.exports=class extends m{constructor(r){super(),this.maxItems=r&&r.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(r,t){const e=t.styles.addStyleModel(r.style);e&&(r.styleId=e);const l=this.map.c;r.cells.forEach(n=>{l.prepare(n,t)})}render(r,t,e){r.openNode("row"),r.addAttribute("r",t.number),t.height&&(r.addAttribute("ht",t.height),r.addAttribute("customHeight","1")),t.hidden&&r.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&r.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(r.addAttribute("s",t.styleId),r.addAttribute("customFormat","1")),r.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&r.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&r.addAttribute("collapsed","1");const l=this.map.c;t.cells.forEach(n=>{l.render(r,n,e)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;if(r.name==="row"){this.numRowsSeen+=1;const t=r.attributes.spans?r.attributes.spans.split(":").map(l=>parseInt(l,10)):[void 0,void 0],e=this.model={number:parseInt(r.attributes.r,10),min:t[0],max:t[1],cells:[]};return r.attributes.s&&(e.styleId=parseInt(r.attributes.s,10)),o.parseBoolean(r.attributes.hidden)&&(e.hidden=!0),o.parseBoolean(r.attributes.bestFit)&&(e.bestFit=!0),r.attributes.ht&&(e.height=parseFloat(r.attributes.ht)),r.attributes.outlineLevel&&(e.outlineLevel=parseInt(r.attributes.outlineLevel,10)),o.parseBoolean(r.attributes.collapsed)&&(e.collapsed=!0),!0}return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(r,t){r.style=r.styleId?t.styles.getStyleModel(r.styleId):{},r.styleId!==void 0&&(r.styleId=void 0);const e=this.map.c;r.cells.forEach(l=>{e.reconcile(l,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");T.exports=class extends o{get tag(){return"sheetFormatPr"}render(a,r){if(r){const t={defaultRowHeight:r.defaultRowHeight,outlineLevelRow:r.outlineLevelRow,outlineLevelCol:r.outlineLevelCol,"x14ac:dyDescent":r.dyDescent};r.defaultColWidth&&(t.defaultColWidth=r.defaultColWidth),r.defaultRowHeight&&r.defaultRowHeight===15||(t.customHeight="1"),m.some(t,e=>e!==void 0)&&a.leafNode("sheetFormatPr",t)}}parseOpen(a){return a.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(s,T,S){const m=s("../base-xform"),o=s("../style/color-xform"),a=s("./page-setup-properties-xform"),r=s("./outline-properties-xform");T.exports=class extends m{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new a,outlinePr:new r}}get tag(){return"sheetPr"}render(t,e){if(e){t.addRollback(),t.openNode("sheetPr");let l=!1;l=this.map.tabColor.render(t,e.tabColor)||l,l=this.map.pageSetUpPr.render(t,e.pageSetup)||l,l=this.map.outlinePr.render(t,e.outlineProperties)||l,l?(t.closeNode(),t.commit()):t.rollback()}}parseOpen(t){return this.parser?(this.parser.parseOpen(t),!0):t.name===this.tag?(this.reset(),!0):!!this.map[t.name]&&(this.parser=this.map[t.name],this.parser.parseOpen(t),!0)}parseText(t){return!!this.parser&&(this.parser.parseText(t),!0)}parseClose(t){return this.parser?(this.parser.parseClose(t)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(t,e){return t?e:void 0}function r(t,e){return t===e||void 0}T.exports=class extends o{get tag(){return"sheetProtection"}render(t,e){if(e){const l={sheet:a(e.sheet,"1"),selectLockedCells:e.selectLockedCells===!1?"1":void 0,selectUnlockedCells:e.selectUnlockedCells===!1?"1":void 0,formatCells:a(e.formatCells,"0"),formatColumns:a(e.formatColumns,"0"),formatRows:a(e.formatRows,"0"),insertColumns:a(e.insertColumns,"0"),insertRows:a(e.insertRows,"0"),insertHyperlinks:a(e.insertHyperlinks,"0"),deleteColumns:a(e.deleteColumns,"0"),deleteRows:a(e.deleteRows,"0"),sort:a(e.sort,"0"),autoFilter:a(e.autoFilter,"0"),pivotTables:a(e.pivotTables,"0")};e.sheet&&(l.algorithmName=e.algorithmName,l.hashValue=e.hashValue,l.saltValue=e.saltValue,l.spinCount=e.spinCount,l.objects=a(e.objects===!1,"1"),l.scenarios=a(e.scenarios===!1,"1")),m.some(l,n=>n!==void 0)&&t.leafNode(this.tag,l)}}parseOpen(t){switch(t.name){case this.tag:return this.model={sheet:r(t.attributes.sheet,"1"),objects:t.attributes.objects!=="1"&&void 0,scenarios:t.attributes.scenarios!=="1"&&void 0,selectLockedCells:t.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:t.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:r(t.attributes.formatCells,"0"),formatColumns:r(t.attributes.formatColumns,"0"),formatRows:r(t.attributes.formatRows,"0"),insertColumns:r(t.attributes.insertColumns,"0"),insertRows:r(t.attributes.insertRows,"0"),insertHyperlinks:r(t.attributes.insertHyperlinks,"0"),deleteColumns:r(t.attributes.deleteColumns,"0"),deleteRows:r(t.attributes.deleteRows,"0"),sort:r(t.attributes.sort,"0"),autoFilter:r(t.attributes.autoFilter,"0"),pivotTables:r(t.attributes.pivotTables,"0")},t.attributes.algorithmName&&(this.model.algorithmName=t.attributes.algorithmName,this.model.hashValue=t.attributes.hashValue,this.model.saltValue=t.attributes.saltValue,this.model.spinCount=parseInt(t.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(s,T,S){const m=s("../../../utils/col-cache"),o=s("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};T.exports=class extends o{get tag(){return"sheetView"}prepare(r){switch(r.state){case"frozen":case"split":break;default:r.state="normal"}}render(r,t){r.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const e=function(h,u,d){d&&r.addAttribute(h,u)};let l,n,i,c;switch(e("rightToLeft","1",t.rightToLeft===!0),e("tabSelected","1",t.tabSelected),e("showRuler","0",t.showRuler===!1),e("showRowColHeaders","0",t.showRowColHeaders===!1),e("showGridLines","0",t.showGridLines===!1),e("zoomScale",t.zoomScale,t.zoomScale),e("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),e("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,i=t.ySplit||0,l=t.topLeftCell||m.getAddress(i+1,n+1).address,c=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:l,activePane:c,state:"frozen"}),r.leafNode("selection",{pane:c,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":t.activePane==="topLeft"&&(t.activePane=void 0),r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),r.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&r.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}r.closeNode()}parseOpen(r){switch(r.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(r.attributes.workbookViewId,10),rightToLeft:r.attributes.rightToLeft==="1",tabSelected:r.attributes.tabSelected==="1",showRuler:r.attributes.showRuler!=="0",showRowColHeaders:r.attributes.showRowColHeaders!=="0",showGridLines:r.attributes.showGridLines!=="0",zoomScale:parseInt(r.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(r.attributes.zoomScaleNormal||"100",10),style:r.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(r.attributes.xSplit||"0",10),ySplit:parseInt(r.attributes.ySplit||"0",10),topLeftCell:r.attributes.topLeftCell,activePane:r.attributes.activePane||"topLeft",state:r.attributes.state},!0;case"selection":{const t=r.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:r.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(r){let t,e;switch(r){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(t.activePane=this.pane.activePane),e=this.selections[this.pane.activePane],e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},e=this.selections.topLeft,e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tablePart"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../../rel-type"),t=s("./merges"),e=s("../base-xform"),l=s("../list-xform"),n=s("./row-xform"),i=s("./col-xform"),c=s("./dimension-xform"),h=s("./hyperlink-xform"),u=s("./merge-cell-xform"),d=s("./data-validations-xform"),f=s("./sheet-properties-xform"),w=s("./sheet-format-properties-xform"),_=s("./sheet-view-xform"),A=s("./sheet-protection-xform"),N=s("./page-margins-xform"),L=s("./page-setup-xform"),j=s("./print-options-xform"),P=s("./auto-filter-xform"),D=s("./picture-xform"),$=s("./drawing-xform"),B=s("./table-part-xform"),x=s("./row-breaks-xform"),M=s("./header-footer-xform"),v=s("./cf/conditional-formattings-xform"),p=s("./ext-lst-xform"),b=(y,k)=>{if(!k||!k.length)return y;if(!y||!y.length)return k;const R={},I={};return y.forEach(z=>{R[z.ref]=z,z.rules.forEach(U=>{const{x14Id:q}=U;q&&(I[q]=U)})}),k.forEach(z=>{z.rules.forEach(U=>{const q=I[U.x14Id];q?((O,H)=>{Object.keys(H).forEach(E=>{const C=O[E],F=H[E];C===void 0&&F!==void 0&&(O[E]=F)})})(q,U):R[z.ref]?R[z.ref].rules.push(U):y.push({ref:z.ref,rules:[U]})})}),y};class g extends e{constructor(k){super();const{maxRows:R,maxCols:I,ignoreNodes:z}=k||{};this.ignoreNodes=z||[],this.map={sheetPr:new f,dimension:new c,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new _}),sheetFormatPr:new w,cols:new l({tag:"cols",count:!1,childXform:new i}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new n({maxItems:I}),maxItems:R}),autoFilter:new P,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new u}),rowBreaks:new x,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new N,dataValidations:new d,pageSetup:new L,headerFooter:new M,printOptions:new j,picture:new D,drawing:new $,sheetProtection:new A,tableParts:new l({tag:"tableParts",count:!0,childXform:new B}),conditionalFormatting:new v,extLst:new p}}prepare(k,R){R.merges=new t,k.hyperlinks=R.hyperlinks=[],k.comments=R.comments=[],R.formulae={},R.siFormulae=0,this.map.cols.prepare(k.cols,R),this.map.sheetData.prepare(k.rows,R),this.map.conditionalFormatting.prepare(k.conditionalFormattings,R),k.mergeCells=R.merges.mergeCells;const I=k.rels=[];function z(O){return"rId"+(O.length+1)}if(k.hyperlinks.forEach(O=>{const H=z(I);O.rId=H,I.push({Id:H,Type:r.Hyperlink,Target:O.target,TargetMode:"External"})}),k.comments.length>0){const O={Id:z(I),Type:r.Comments,Target:`../comments${k.id}.xml`};I.push(O);const H={Id:z(I),Type:r.VmlDrawing,Target:`../drawings/vmlDrawing${k.id}.vml`};I.push(H),k.comments.forEach(E=>{E.refAddress=o.decodeAddress(E.ref)}),R.commentRefs.push({commentName:"comments"+k.id,vmlDrawing:"vmlDrawing"+k.id})}const U=[];let q;k.media.forEach(O=>{if(O.type==="background"){const H=z(I);q=R.media[O.imageId],I.push({Id:H,Type:r.Image,Target:`../media/${q.name}.${q.extension}`}),k.background={rId:H},k.image=R.media[O.imageId]}else if(O.type==="image"){let{drawing:H}=k;q=R.media[O.imageId],H||(H=k.drawing={rId:z(I),name:"drawing"+ ++R.drawingsCount,anchors:[],rels:[]},R.drawings.push(H),I.push({Id:H.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${H.name}.xml`}));let E=this.preImageId===O.imageId?U[O.imageId]:U[H.rels.length];E||(E=z(H.rels),U[H.rels.length]=E,H.rels.push({Id:E,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${q.name}.${q.extension}`}));const C={picture:{rId:E},range:O.range};if(O.hyperlinks&&O.hyperlinks.hyperlink){const F=z(H.rels);U[H.rels.length]=F,C.picture.hyperlinks={tooltip:O.hyperlinks.tooltip,rId:F},H.rels.push({Id:F,Type:r.Hyperlink,Target:O.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=O.imageId,H.anchors.push(C)}}),k.tables.forEach(O=>{const H=z(I);O.rId=H,I.push({Id:H,Type:r.Table,Target:"../tables/"+O.target}),O.columns.forEach(E=>{const{style:C}=E;C&&(E.dxfId=R.styles.addDxfStyle(C))})}),this.map.extLst.prepare(k,R)}render(k,R){k.openXml(a.StdDocAttributes),k.openNode("worksheet",g.WORKSHEET_ATTRIBUTES);const I=R.properties?{defaultRowHeight:R.properties.defaultRowHeight,dyDescent:R.properties.dyDescent,outlineLevelCol:R.properties.outlineLevelCol,outlineLevelRow:R.properties.outlineLevelRow}:void 0;R.properties&&R.properties.defaultColWidth&&(I.defaultColWidth=R.properties.defaultColWidth);const z={outlineProperties:R.properties&&R.properties.outlineProperties,tabColor:R.properties&&R.properties.tabColor,pageSetup:R.pageSetup&&R.pageSetup.fitToPage?{fitToPage:R.pageSetup.fitToPage}:void 0},U=R.pageSetup&&R.pageSetup.margins,q={showRowColHeaders:R.pageSetup&&R.pageSetup.showRowColHeaders,showGridLines:R.pageSetup&&R.pageSetup.showGridLines,horizontalCentered:R.pageSetup&&R.pageSetup.horizontalCentered,verticalCentered:R.pageSetup&&R.pageSetup.verticalCentered},O=R.sheetProtection;this.map.sheetPr.render(k,z),this.map.dimension.render(k,R.dimensions),this.map.sheetViews.render(k,R.views),this.map.sheetFormatPr.render(k,I),this.map.cols.render(k,R.cols),this.map.sheetData.render(k,R.rows),this.map.sheetProtection.render(k,O),this.map.autoFilter.render(k,R.autoFilter),this.map.mergeCells.render(k,R.mergeCells),this.map.conditionalFormatting.render(k,R.conditionalFormattings),this.map.dataValidations.render(k,R.dataValidations),this.map.hyperlinks.render(k,R.hyperlinks),this.map.printOptions.render(k,q),this.map.pageMargins.render(k,U),this.map.pageSetup.render(k,R.pageSetup),this.map.headerFooter.render(k,R.headerFooter),this.map.rowBreaks.render(k,R.rowBreaks),this.map.drawing.render(k,R.drawing),this.map.picture.render(k,R.background),this.map.tableParts.render(k,R.tables),this.map.extLst.render(k,R),R.rels&&R.rels.forEach(H=>{H.Type===r.VmlDrawing&&k.leafNode("legacyDrawing",{"r:id":H.Id})}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):k.name==="worksheet"?(m.each(this.map,R=>{R.reset()}),!0):(this.map[k.name]&&!this.ignoreNodes.includes(k.name)&&(this.parser=this.map[k.name],this.parser.parseOpen(k)),!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){if(this.parser)return this.parser.parseClose(k)||(this.parser=void 0),!0;switch(k){case"worksheet":{const R=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(R.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(R.outlineProperties=this.map.sheetPr.model.outlineProperties);const I={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(I,this.map.pageSetup.model,this.map.printOptions.model),U=b(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:R,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:U},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(k,R){const I=(k.relationships||[]).reduce((U,q)=>{if(U[q.Id]=q,q.Type===r.Comments&&(k.comments=R.comments[q.Target].comments),q.Type===r.VmlDrawing&&k.comments&&k.comments.length){const O=R.vmlDrawings[q.Target].comments;k.comments.forEach((H,E)=>{H.note=Object.assign({},H.note,O[E])})}return U},{});if(R.commentsMap=(k.comments||[]).reduce((U,q)=>(q.ref&&(U[q.ref]=q),U),{}),R.hyperlinkMap=(k.hyperlinks||[]).reduce((U,q)=>(q.rId&&(U[q.address]=I[q.rId].Target),U),{}),R.formulae={},k.rows=k.rows&&k.rows.filter(Boolean)||[],k.rows.forEach(U=>{U.cells=U.cells&&U.cells.filter(Boolean)||[]}),this.map.cols.reconcile(k.cols,R),this.map.sheetData.reconcile(k.rows,R),this.map.conditionalFormatting.reconcile(k.conditionalFormattings,R),k.media=[],k.drawing){const U=I[k.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(U){const q=U[1];R.drawings[q].anchors.forEach(O=>{if(O.medium){const H={type:"image",imageId:O.medium.index,range:O.range,hyperlinks:O.picture.hyperlinks};k.media.push(H)}})}}const z=k.background&&I[k.background.rId];if(z){const U=z.Target.split("/media/")[1],q=R.mediaIndex&&R.mediaIndex[U];q!==void 0&&k.media.push({type:"background",imageId:q})}k.tables=(k.tables||[]).map(U=>{const q=I[U.rId];return R.tables[q.Target]}),delete k.relationships,delete k.hyperlinks,delete k.comments}}g.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},T.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,a){a&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=o.parse||function(a){return new Date(a)}}render(o,a){a&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(a)):o.writeText(this._format(a)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,a){(a||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,a){a!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(s,T,S){const m=s("./base-xform"),o=s("../../utils/xml-stream");T.exports=class extends m{constructor(a){super(),this._model=a}render(a){if(!this._xml){const r=new o;(function t(e,l){e.openNode(l.tag,l.$),l.c&&l.c.forEach(n=>{t(e,n)}),l.t&&e.writeText(l.t),e.closeNode()})(r,this._model),this._xml=r.xml}a.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(a){switch(a){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(s,T,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("../base-xform");T.exports=class extends a{constructor(){super(),this.map={r:new o,t:new m}}get tag(){return"rPh"}render(r,t){if(r.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:e}=this.map;t.richText.forEach(l=>{e.render(r,l)})}else t&&this.map.t.render(r,t.text);r.closeNode()}parseOpen(r){const{name:t}=r;return this.parser?(this.parser.parseOpen(r),!0):t===this.tag?(this.model={sb:parseInt(r.attributes.sb,10),eb:parseInt(r.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(s,T,S){const m=s("./text-xform"),o=s("../style/font-xform"),a=s("../base-xform");class r extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new m)}get fontXform(){return this._fontXform||(this._fontXform=new o(r.FONT_OPTIONS))}render(e,l){l=l||this.model,e.openNode("r"),l.font&&this.fontXform.render(e,l.font),this.textXform.render(e,l.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}r.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},T.exports=r},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(s,T,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("./phonetic-text-xform"),r=s("../base-xform");T.exports=class extends r{constructor(t){super(),this.model=t,this.map={r:new o,t:new m,rPh:new a}}get tag(){return"si"}render(t,e){t.openNode(this.tag),e&&e.hasOwnProperty("richText")&&e.richText?e.richText.length?e.richText.forEach(l=>{this.map.r.render(t,l)}):this.map.t.render(t,""):e!=null&&this.map.t.render(t,e),t.closeNode()}parseOpen(t){const{name:e}=t;return this.parser?(this.parser.parseOpen(t),!0):e===this.tag?(this.model={},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(t),!0))}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser){if(!this.parser.parseClose(t)){switch(t){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(t){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./shared-string-xform");T.exports=class extends o{constructor(r){super(),this.model=r||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(r){return this.model.values[r]}add(r){return r.richText?this.addRichText(r):this.addText(r)}addText(r){let t=this.hash[r];return t===void 0&&(t=this.hash[r]=this.model.values.length,this.model.values.push(r)),this.model.count++,t}addRichText(r){const t=this.sharedStringXform.toXml(r);let e=this.rich[t];return e===void 0&&(e=this.rich[t]=this.model.values.length,this.model.values.push(r)),this.model.count++,e}render(r,t){t=t||this._values,r.openXml(m.StdDocAttributes),r.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const e=this.sharedStringXform;t.values.forEach(l=>{e.render(r,l)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(r),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(r){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"t"}render(o,a){o.openNode("t"),/^\s|\n|\s$/.test(a)&&o.addAttribute("xml:space","preserve"),o.writeText(a),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(s,T,S){const m=s("../../../doc/enums"),o=s("../../../utils/utils"),a=s("../base-xform"),r={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),vertical(e){return e==="middle"?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case"vertical":return e;default:return(e=o.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=o.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return m.ReadingOrder.LeftToRight;case"rtl":return m.ReadingOrder.RightToLeft;default:return}}},t={toXml(e){if(e=r.textRotation(e)){if(e==="vertical")return 255;const l=Math.round(e);if(l>=0&&l<=90)return l;if(l<0&&l>=-90)return 90-l}},toModel(e){const l=o.validInt(e);if(l!==void 0){if(l===255)return"vertical";if(l>=0&&l<=90)return l;if(l>90&&l<=180)return 90-l}}};T.exports=class extends a{get tag(){return"alignment"}render(e,l){e.addRollback(),e.openNode("alignment");let n=!1;function i(c,h){h&&(e.addAttribute(c,h),n=!0)}i("horizontal",r.horizontal(l.horizontal)),i("vertical",r.vertical(l.vertical)),i("wrapText",!!r.wrapText(l.wrapText)&&"1"),i("shrinkToFit",!!r.shrinkToFit(l.shrinkToFit)&&"1"),i("indent",r.indent(l.indent)),i("textRotation",t.toXml(l.textRotation)),i("readingOrder",r.readingOrder(l.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const l={};let n=!1;function i(c,h,u){c&&(l[h]=u,n=!0)}i(e.attributes.horizontal,"horizontal",e.attributes.horizontal),i(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical),i(e.attributes.wrapText,"wrapText",o.parseBoolean(e.attributes.wrapText)),i(e.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(e.attributes.shrinkToFit)),i(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),i(e.attributes.textRotation,"textRotation",t.toModel(e.attributes.textRotation)),i(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=n?l:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(s,T,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./color-xform");class r extends m{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,l,n){const i=l&&l.color||n||this.defaultColor;e.openNode(this.name),l&&l.style&&(e.addAttribute("style",l.style),i&&this.map.color.render(e,i)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:l}=e.attributes;return this.model=l?{style:l}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return r.validStyleValues[e]}}r.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((t,e)=>(t[e]=!0,t),{}),T.exports=class extends m{constructor(){super(),this.map={top:new r("top"),left:new r("left"),bottom:new r("bottom"),right:new r("right"),diagonal:new r("diagonal")}}render(t,e){const{color:l}=e;function n(i,c){i&&!i.color&&e.color&&(i={...i,color:e.color}),c.render(t,i,l)}t.openNode("border"),e.diagonal&&e.diagonal.style&&(e.diagonal.up&&t.addAttribute("diagonalUp","1"),e.diagonal.down&&t.addAttribute("diagonalDown","1")),n(e.left,this.map.left),n(e.right,this.map.right),n(e.top,this.map.top),n(e.bottom,this.map.bottom),n(e.diagonal,this.map.diagonal),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(t.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(t.attributes.diagonalDown),!0;default:return this.parser=this.map[t.name],!!this.parser&&(this.parser.parseOpen(t),!0)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;if(t==="border"){const e=this.model={},l=function(n,i,c){i&&(c&&Object.assign(i,c),e[n]=i)};l("left",this.map.left.model),l("right",this.map.right.model),l("top",this.map.top.model),l("bottom",this.map.bottom.model),l("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,a){return!!a&&(o.openNode(this.name),a.argb?o.addAttribute("rgb",a.argb):a.theme!==void 0?(o.addAttribute("theme",a.theme),a.tint!==void 0&&o.addAttribute("tint",a.tint)):a.indexed!==void 0?o.addAttribute("indexed",a.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(s,T,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./border-xform"),r=s("./fill-xform"),t=s("./font-xform"),e=s("./numfmt-xform"),l=s("./protection-xform");T.exports=class extends m{constructor(){super(),this.map={alignment:new o,border:new a,fill:new r,font:new t,numFmt:new e,protection:new l}}get tag(){return"dxf"}render(n,i){if(n.openNode(this.tag),i.font&&this.map.font.render(n,i.font),i.numFmt&&i.numFmtId){const c={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(n,c)}i.fill&&this.map.fill.render(n,i.fill),i.alignment&&this.map.alignment.render(n,i.alignment),i.border&&this.map.border.render(n,i.border),i.protection&&this.map.protection.render(n,i.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n),!0}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(s,T,S){const m=s("../base-xform"),o=s("./color-xform");class a extends m{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(n,i){n.openNode("stop"),n.addAttribute("position",i.position),this.map.color.render(n,i.color),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"stop":return this.model={position:parseFloat(n.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(n),!0;default:return!1}}parseText(){}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class r extends m{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(n,i){n.openNode("patternFill"),n.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(n,i.fgColor),i.bgColor&&this.map.bgColor.render(n,i.bgColor),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"patternFill":return this.model={type:"pattern",pattern:n.attributes.patternType},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.parser.model&&(this.model[n]=this.parser.model),this.parser=void 0),!0)}}class t extends m{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(n,i){switch(n.openNode("gradientFill"),i.gradient){case"angle":n.addAttribute("degree",i.degree);break;case"path":n.addAttribute("type","path"),i.center.left&&(n.addAttribute("left",i.center.left),i.center.right===void 0&&n.addAttribute("right",i.center.left)),i.center.right&&n.addAttribute("right",i.center.right),i.center.top&&(n.addAttribute("top",i.center.top),i.center.bottom===void 0&&n.addAttribute("bottom",i.center.top)),i.center.bottom&&n.addAttribute("bottom",i.center.bottom)}const c=this.map.stop;i.stops.forEach(h=>{c.render(n,h)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"gradientFill":{const i=this.model={stops:[]};return n.attributes.degree?(i.gradient="angle",i.degree=parseInt(n.attributes.degree,10)):n.attributes.type==="path"&&(i.gradient="path",i.center={left:n.attributes.left?parseFloat(n.attributes.left):0,top:n.attributes.top?parseFloat(n.attributes.top):0},n.attributes.right!==n.attributes.left&&(i.center.right=n.attributes.right?parseFloat(n.attributes.right):0),n.attributes.bottom!==n.attributes.top&&(i.center.bottom=n.attributes.bottom?parseFloat(n.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class e extends m{constructor(){super(),this.map={patternFill:new r,gradientFill:new t}}get tag(){return"fill"}render(n,i){switch(n.addRollback(),n.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(n,i);break;case"gradient":this.map.gradientFill.render(n,i);break;default:return void n.rollback()}n.closeNode(),n.commit()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"fill":return this.model={},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(n){return e.validPatternValues[n]}}e.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,n)=>(l[n]=!0,l),{}),e.StopXform=a,e.PatternFillXform=r,e.GradientFillXform=t,T.exports=e},{"../base-xform":32,"./color-xform":128}],131:[function(s,T,S){const m=s("./color-xform"),o=s("../simple/boolean-xform"),a=s("../simple/integer-xform"),r=s("../simple/string-xform"),t=s("./underline-xform"),e=s("../../../utils/under-dash"),l=s("../base-xform");class n extends l{constructor(c){super(),this.options=c||n.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new m},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new r({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new r({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new r({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(c,h){const{map:u}=this;c.openNode(this.options.tagName),e.each(this.map,(d,f)=>{u[f].xform.render(c,h[d.prop])}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;if(this.map[c.name])return this.parser=this.map[c.name].xform,this.parser.parseOpen(c);switch(c.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser&&!this.parser.parseClose(c)){const h=this.map[c];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(c){case this.options.tagName:return!1;default:return!0}}}n.OPTIONS={tagName:"font",fontNameTag:"name"},T.exports=n},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(s,T,S){const m=s("../../../utils/under-dash"),o=s("../../defaultnumformats"),a=s("../base-xform"),r=function(){const e={};return m.each(o,(l,n)=>{l.f&&(e[l.f]=parseInt(n,10))}),e}();class t extends a{constructor(l,n){super(),this.id=l,this.formatCode=n}get tag(){return"numFmt"}render(l,n){l.leafNode("numFmt",{numFmtId:n.id,formatCode:n.formatCode})}parseOpen(l){switch(l.name){case"numFmt":return this.model={id:parseInt(l.attributes.numFmtId,10),formatCode:l.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}t.getDefaultFmtId=function(e){return r[e]},t.getDefaultFmtCode=function(e){return o[e]&&o[e].f},T.exports=t},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(s,T,S){const m=s("../base-xform"),o={boolean:(a,r)=>a===void 0?r:a};T.exports=class extends m{get tag(){return"protection"}render(a,r){a.addRollback(),a.openNode("protection");let t=!1;function e(l,n){n!==void 0&&(a.addAttribute(l,n),t=!0)}e("locked",o.boolean(r.locked,!0)?void 0:"0"),e("hidden",o.boolean(r.hidden,!1)?"1":void 0),a.closeNode(),t?a.commit():a.rollback()}parseOpen(a){const r={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},t=!r.locked||r.hidden;this.model=t?r:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(s,T,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./protection-xform");T.exports=class extends m{constructor(r){super(),this.xfId=!(!r||!r.xfId),this.map={alignment:new o,protection:new a}}get tag(){return"xf"}render(r,t){r.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&r.addAttribute("xfId",t.xfId||0),t.numFmtId&&r.addAttribute("applyNumberFormat","1"),t.fontId&&r.addAttribute("applyFont","1"),t.fillId&&r.addAttribute("applyFill","1"),t.borderId&&r.addAttribute("applyBorder","1"),t.alignment&&r.addAttribute("applyAlignment","1"),t.protection&&r.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(r,t.alignment),t.protection&&this.map.protection.render(r,t.protection),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"xf":return this.model={numFmtId:parseInt(r.attributes.numFmtId,10),fontId:parseInt(r.attributes.fontId,10),fillId:parseInt(r.attributes.fillId,10),borderId:parseInt(r.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(r.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(r),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):r!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(s,T,S){const m=s("../../../doc/enums"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("../static-xform"),t=s("../list-xform"),e=s("./font-xform"),l=s("./fill-xform"),n=s("./border-xform"),i=s("./numfmt-xform"),c=s("./style-xform"),h=s("./dxf-xform");class u extends a{constructor(f){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new i}),fonts:new t({tag:"fonts",count:!0,childXform:new e,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new l}),borders:new t({tag:"borders",count:!0,childXform:new n}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new c}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new c({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new e,fill:new l,border:new n,style:new c({xfId:!0}),cellStyles:u.STATIC_XFORMS.cellStyles,tableStyles:u.STATIC_XFORMS.tableStyles,extLst:u.STATIC_XFORMS.extLst},f&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(f,w){w=w||this.model,f.openXml(o.StdDocAttributes),f.openNode("styleSheet",u.STYLESHEET_ATTRIBUTES),this.index?(w.numFmts&&w.numFmts.length&&(f.openNode("numFmts",{count:w.numFmts.length}),w.numFmts.forEach(_=>{f.writeXml(_)}),f.closeNode()),w.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),f.openNode("fonts",{count:w.fonts.length,"x14ac:knownFonts":1}),w.fonts.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("fills",{count:w.fills.length}),w.fills.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("borders",{count:w.borders.length}),w.borders.forEach(_=>{f.writeXml(_)}),f.closeNode(),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),f.openNode("cellXfs",{count:w.styles.length}),w.styles.forEach(_=>{f.writeXml(_)}),f.closeNode()):(this.map.numFmts.render(f,w.numFmts),this.map.fonts.render(f,w.fonts),this.map.fills.render(f,w.fills),this.map.borders.render(f,w.borders),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(f,w.styles)),u.STATIC_XFORMS.cellStyles.render(f),this.map.dxfs.render(f,w.dxfs),u.STATIC_XFORMS.tableStyles.render(f),u.STATIC_XFORMS.extLst.render(f),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"styleSheet":{this.model={};const w=(_,A)=>{A.model&&A.model.length&&(this.model[_]=A.model)};if(w("numFmts",this.map.numFmts),w("fonts",this.map.fonts),w("fills",this.map.fills),w("borders",this.map.borders),w("styles",this.map.cellXfs),w("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const _=this.index.numFmt;this.model.numFmts.forEach(A=>{_[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(f,w){if(!f)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(f))return this.weakMap.get(f);const _={};if(w=w||m.ValueType.Number,f.numFmt)_.numFmtId=this._addNumFmtStr(f.numFmt);else switch(w){case m.ValueType.Number:_.numFmtId=this._addNumFmtStr("General");break;case m.ValueType.Date:_.numFmtId=this._addNumFmtStr("mm-dd-yy")}f.font&&(_.fontId=this._addFont(f.font)),f.border&&(_.borderId=this._addBorder(f.border)),f.fill&&(_.fillId=this._addFill(f.fill)),f.alignment&&(_.alignment=f.alignment),f.protection&&(_.protection=f.protection);const A=this._addStyle(_);return this.weakMap&&this.weakMap.set(f,A),A}getStyleModel(f){const w=this.model.styles[f];if(!w)return null;let _=this.index.model[f];if(_)return _;if(_=this.index.model[f]={},w.numFmtId){const N=this.index.numFmt[w.numFmtId]||i.getDefaultFmtCode(w.numFmtId);N&&(_.numFmt=N)}function A(N,L,j){if(j||j===0){const P=L[j];P&&(_[N]=P)}}return A("font",this.model.fonts,w.fontId),A("border",this.model.borders,w.borderId),A("fill",this.model.fills,w.fillId),w.alignment&&(_.alignment=w.alignment),w.protection&&(_.protection=w.protection),_}addDxfStyle(f){return f.numFmt&&(f.numFmtId=this._addNumFmtStr(f.numFmt)),this.model.dxfs.push(f),this.model.dxfs.length-1}getDxfStyle(f){return this.model.dxfs[f]}_addStyle(f){const w=this.map.style.toXml(f);let _=this.index.style[w];return _===void 0&&(_=this.index.style[w]=this.model.styles.length,this.model.styles.push(w)),_}_addNumFmtStr(f){let w=i.getDefaultFmtId(f);if(w!==void 0||(w=this.index.numFmt[f],w!==void 0))return w;w=this.index.numFmt[f]=164+this.model.numFmts.length;const _=this.map.numFmt.toXml({id:w,formatCode:f});return this.model.numFmts.push(_),w}_addFont(f){const w=this.map.font.toXml(f);let _=this.index.font[w];return _===void 0&&(_=this.index.font[w]=this.model.fonts.length,this.model.fonts.push(w)),_}_addBorder(f){const w=this.map.border.toXml(f);let _=this.index.border[w];return _===void 0&&(_=this.index.border[w]=this.model.borders.length,this.model.borders.push(w)),_}_addFill(f){const w=this.map.fill.toXml(f);let _=this.index.fill[w];return _===void 0&&(_=this.index.fill[w]=this.model.fills.length,this.model.fills.push(w)),_}}u.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},u.STATIC_XFORMS={cellStyles:new r({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new r({tag:"dxfs",$:{count:0}}),tableStyles:new r({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new r({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},u.Mock=class extends u{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(d){return d.autodrain(),Promise.resolve()}addStyleModel(d,f){switch(f){case m.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const d={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(d)}return this._dateStyleId}getStyleModel(){return{}}},T.exports=u},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(s,T,S){const m=s("../base-xform");class o extends m{constructor(r){super(),this.model=r}get tag(){return"u"}render(r,t){if((t=t||this.model)===!0)r.leafNode("u");else{const e=o.Attributes[t];e&&r.leafNode("u",e)}}parseOpen(r){r.name==="u"&&(this.model=r.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},T.exports=o},{"../base-xform":32}],137:[function(s,T,S){const m=s("../base-xform"),o=s("./filter-column-xform");T.exports=class extends m{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((r,t)=>{this.map.filterColumn.prepare(r,{index:t})})}render(a,r){return a.openNode(this.tag,{ref:r.autoFilterRef}),r.columns.forEach(t=>{this.map.filterColumn.render(a,t)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"customFilter"}render(o,a){o.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(s,T,S){const m=s("../base-xform"),o=s("../list-xform"),a=s("./custom-filter-xform"),r=s("./filter-xform");T.exports=class extends m{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new r})}}get tag(){return"filterColumn"}prepare(t,e){t.colId=e.index.toString()}render(t,e){return e.customFilters?(t.openNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),this.map.customFilters.render(t,e.customFilters),t.closeNode(),!0):(t.leafNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),!0)}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;const{attributes:e}=t;switch(t.name){case this.tag:return this.model={filterButton:e.hiddenButton==="0"},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(t))}}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"filter"}render(o,a){o.leafNode(this.tag,{val:a.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tableColumn"}prepare(o,a){o.id=a.index+1}render(o,a){return o.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(s,T,S){const m=s("../base-xform");T.exports=class extends m{get tag(){return"tableStyleInfo"}render(o,a){return o.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(s,T,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../list-xform"),r=s("./auto-filter-xform"),t=s("./table-column-xform"),e=s("./table-style-info-xform");class l extends o{constructor(){super(),this.map={autoFilter:new r,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new e}}prepare(i,c){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,c)}get tag(){return"table"}render(i,c){i.openXml(m.StdDocAttributes),i.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:c.id,name:c.name,displayName:c.displayName||c.name,ref:c.tableRef,totalsRowCount:c.totalsRow?"1":void 0,totalsRowShown:c.totalsRow?void 0:"1",headerRowCount:c.headerRow?"1":"0"}),this.map.autoFilter.render(i,c),this.map.tableColumns.render(i,c.columns),this.map.tableStyleInfo.render(i,c.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:c,attributes:h}=i;switch(c){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((c,h)=>{this.model.columns[h].filterButton=c.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,c){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=c.styles.getDxfStyle(h.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},T.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(s,T,S){(function(m,o){(function(){const a=s("fs"),r=s("jszip"),{PassThrough:t}=s("readable-stream"),e=s("../utils/zip-stream"),l=s("../utils/stream-buf"),n=s("../utils/utils"),i=s("../utils/xml-stream"),{bufferToString:c}=s("../utils/browser-buffer-decode"),h=s("./xform/style/styles-xform"),u=s("./xform/core/core-xform"),d=s("./xform/strings/shared-strings-xform"),f=s("./xform/core/relationships-xform"),w=s("./xform/core/content-types-xform"),_=s("./xform/core/app-xform"),A=s("./xform/book/workbook-xform"),N=s("./xform/sheet/worksheet-xform"),L=s("./xform/drawing/drawing-xform"),j=s("./xform/table/table-xform"),P=s("./xform/comment/comments-xform"),D=s("./xform/comment/vml-notes-xform"),$=s("./xml/theme1");class B{constructor(M){this.workbook=M}async readFile(M,v){if(!await n.fs.exists(M))throw new Error("File not found: "+M);const p=a.createReadStream(M);try{const b=await this.read(p,v);return p.close(),b}catch(b){throw p.close(),b}}parseRels(M){return new f().parseStream(M)}parseWorkbook(M){return new A().parseStream(M)}parseSharedStrings(M){return new d().parseStream(M)}reconcile(M,v){const p=new A,b=new N(v),g=new L,y=new j;p.reconcile(M);const k={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(z=>{const U=M.drawings[z],q=M.drawingRels[z];q&&(k.rels=q.reduce((O,H)=>(O[H.Id]=H,O),{}),(U.anchors||[]).forEach(O=>{const H=O.picture&&O.picture.hyperlinks;H&&k.rels[H.rId]&&(H.hyperlink=k.rels[H.rId].Target,delete H.rId)}),g.reconcile(U,k))});const R={styles:M.styles};Object.values(M.tables).forEach(z=>{y.reconcile(z,R)});const I={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(z=>{z.relationships=M.worksheetRels[z.sheetNo],b.reconcile(z,I)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,v,p,b,g){const y=new N(b),k=await y.parseStream(M);k.sheetNo=p,v.worksheetHash[g]=k,v.worksheets.push(k)}async _processCommentEntry(M,v,p){const b=new P,g=await b.parseStream(M);v.comments[`../${p}.xml`]=g}async _processTableEntry(M,v,p){const b=new j,g=await b.parseStream(M);v.tables[`../tables/${p}.xml`]=g}async _processWorksheetRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.worksheetRels[p]=g}async _processMediaEntry(M,v,p){const b=p.lastIndexOf(".");if(b>=1){const g=p.substr(b+1),y=p.substr(0,b);await new Promise((k,R)=>{const I=new l;I.on("finish",()=>{v.mediaIndex[p]=v.media.length,v.mediaIndex[y]=v.media.length;const z={type:"image",name:y,extension:g,buffer:I.toBuffer()};v.media.push(z),k()}),M.on("error",z=>{R(z)}),M.pipe(I)})}}async _processDrawingEntry(M,v,p){const b=new L,g=await b.parseStream(M);v.drawings[p]=g}async _processDrawingRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.drawingRels[p]=g}async _processVmlDrawingEntry(M,v,p){const b=new D,g=await b.parseStream(M);v.vmlDrawings[`../drawings/${p}.vml`]=g}async _processThemeEntry(M,v,p){await new Promise((b,g)=>{const y=new l;M.on("error",g),y.on("error",g),y.on("finish",()=>{v.themes[p]=y.read().toString(),b()}),M.pipe(y)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,v){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new t));const p=[];for await(const b of M)p.push(b);return this.load(o.concat(p),v)}async load(M,v){let p;p=v&&v.base64?o.from(M.toString(),"base64"):M;const b={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},g=await r.loadAsync(p);for(const y of Object.values(g.files))if(!y.dir){let k,R=y.name;if(R[0]==="/"&&(R=R.substr(1)),R.match(/xl\/media\//)||R.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))k=new t,k.write(await y.async("nodebuffer"));else{let I;k=new t({writableObjectMode:!0,readableObjectMode:!0}),I=m.browser?c(await y.async("nodebuffer")):await y.async("string");const z=16384;for(let U=0;U{if(p.type==="image"){const b=`xl/media/${p.name}.${p.extension}`;if(p.filename){const g=await function(y,k){return new Promise((R,I)=>{a.readFile(y,k,(z,U)=>{z?I(z):R(U)})})}(p.filename);return M.append(g,{name:b})}if(p.buffer)return M.append(p.buffer,{name:b});if(p.base64){const g=p.base64,y=g.substring(g.indexOf(",")+1);return M.append(y,{name:b,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,v){const p=new L,b=new f;v.worksheets.forEach(g=>{const{drawing:y}=g;if(y){p.prepare(y,{});let k=p.toXml(y);M.append(k,{name:`xl/drawings/${y.name}.xml`}),k=b.toXml(y.rels),M.append(k,{name:`xl/drawings/_rels/${y.name}.xml.rels`})}})}addTables(M,v){const p=new j;v.worksheets.forEach(b=>{const{tables:g}=b;g.forEach(y=>{p.prepare(y,{});const k=p.toXml(y);M.append(k,{name:"xl/tables/"+y.target})})})}async addContentTypes(M,v){const p=new w().toXml(v);M.append(p,{name:"[Content_Types].xml"})}async addApp(M,v){const p=new _().toXml(v);M.append(p,{name:"docProps/app.xml"})}async addCore(M,v){const p=new u;M.append(p.toXml(v),{name:"docProps/core.xml"})}async addThemes(M,v){const p=v.themes||{theme1:$};Object.keys(p).forEach(b=>{const g=p[b],y=`xl/theme/${b}.xml`;M.append(g,{name:y})})}async addOfficeRels(M){const v=new f().toXml([{Id:"rId1",Type:B.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:B.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:B.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(v,{name:"_rels/.rels"})}async addWorkbookRels(M,v){let p=1;const b=[{Id:"rId"+p++,Type:B.RelType.Styles,Target:"styles.xml"},{Id:"rId"+p++,Type:B.RelType.Theme,Target:"theme/theme1.xml"}];v.sharedStrings.count&&b.push({Id:"rId"+p++,Type:B.RelType.SharedStrings,Target:"sharedStrings.xml"}),v.worksheets.forEach(y=>{y.rId="rId"+p++,b.push({Id:y.rId,Type:B.RelType.Worksheet,Target:`worksheets/sheet${y.id}.xml`})});const g=new f().toXml(b);M.append(g,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,v){v.sharedStrings&&v.sharedStrings.count&&M.append(v.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,v){const{xml:p}=v.styles;p&&M.append(p,{name:"xl/styles.xml"})}async addWorkbook(M,v){const p=new A;M.append(p.toXml(v),{name:"xl/workbook.xml"})}async addWorksheets(M,v){const p=new N,b=new f,g=new P,y=new D;v.worksheets.forEach(k=>{let R=new i;p.render(R,k),M.append(R.xml,{name:`xl/worksheets/sheet${k.id}.xml`}),k.rels&&k.rels.length&&(R=new i,b.render(R,k.rels),M.append(R.xml,{name:`xl/worksheets/_rels/sheet${k.id}.xml.rels`})),k.comments.length>0&&(R=new i,g.render(R,k),M.append(R.xml,{name:`xl/comments${k.id}.xml`}),R=new i,y.render(R,k),M.append(R.xml,{name:`xl/drawings/vmlDrawing${k.id}.vml`}))})}_finalize(M){return new Promise((v,p)=>{M.on("finish",()=>{v(this)}),M.on("error",p),M.finalize()})}prepareModel(M,v){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=v.useSharedStrings===void 0||v.useSharedStrings,M.useStyles=v.useStyles===void 0||v.useStyles,M.sharedStrings=new d,M.styles=M.useStyles?new h(!0):new h.Mock;const p=new A,b=new N;p.prepare(M);const g={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};g.drawings=M.drawings=[],g.commentRefs=M.commentRefs=[];let y=0;M.tables=[],M.worksheets.forEach(k=>{k.tables.forEach(R=>{y++,R.target=`table${y}.xml`,R.id=y,M.tables.push(R)}),b.prepare(k,g)})}async write(M,v){v=v||{};const{model:p}=this.workbook,b=new e.ZipWriter(v.zip);return b.pipe(M),this.prepareModel(p,v),await this.addContentTypes(b,p),await this.addOfficeRels(b,p),await this.addWorkbookRels(b,p),await this.addWorksheets(b,p),await this.addSharedStrings(b,p),await this.addDrawings(b,p),await this.addTables(b,p),await Promise.all([this.addThemes(b,p),this.addStyles(b,p)]),await this.addMedia(b,p),await Promise.all([this.addApp(b,p),this.addCore(b,p)]),await this.addWorkbook(b,p),this._finalize(b)}writeFile(M,v){const p=a.createWriteStream(M);return new Promise((b,g)=>{p.on("finish",()=>{b()}),p.on("error",y=>{g(y)}),this.write(p,v).then(()=>{p.end()}).catch(y=>{g(y)})})}async writeBuffer(M){const v=new l;return await this.write(v,M),v.read()}}B.RelType=s("./rel-type"),T.exports=B}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(s,T,S){T.exports=` `},{}],146:[function(s,T,S){(function(m){(function(){Object.defineProperty(S,"__esModule",{value:!0}),S.CsvFormatterStream=void 0;const o=s("stream"),a=s("./formatter");class r extends o.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new a.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,l,n){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(c,h)=>c?(i=!0,n(c)):(h&&h.forEach(u=>{this.push(m.from(u,"utf8"))}),i=!0,n()))}catch(c){if(i)throw c;n(c)}}_flush(e){this.rowFormatter.finish((l,n)=>l?e(l):(n&&n.forEach(i=>{this.push(m.from(i,"utf8"))}),e()))}}S.CsvFormatterStream=r}).call(this)}).call(this,s("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(s,T,S){Object.defineProperty(S,"__esModule",{value:!0}),S.FormatterOptions=void 0,S.FormatterOptions=class{constructor(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,m||{}),(m==null?void 0:m.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(m==null?void 0:m.quote)===!0?this.quote='"':(m==null?void 0:m.quote)===!1&&(this.quote=""),typeof(m==null?void 0:m.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=m.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(s,T,S){var m=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S,"__esModule",{value:!0}),S.FieldFormatter=void 0;const o=m(s("lodash.isboolean")),a=m(s("lodash.isnil")),r=m(s("lodash.escaperegexp"));S.FieldFormatter=class{constructor(t){this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");const e=`[${t.delimiter}${r.default(t.rowDelimiter)}|\r| diff --git a/admin-views/dist/assets/exceljs.min-7dc74d6e.js.gz b/admin-views/dist/assets/exceljs.min-6d3bd066.js.gz similarity index 99% rename from admin-views/dist/assets/exceljs.min-7dc74d6e.js.gz rename to admin-views/dist/assets/exceljs.min-6d3bd066.js.gz index 8b7a9207..fbdb7e6f 100644 Binary files a/admin-views/dist/assets/exceljs.min-7dc74d6e.js.gz and b/admin-views/dist/assets/exceljs.min-6d3bd066.js.gz differ diff --git a/admin-views/dist/assets/handlebars-9d3fe668.js.gz b/admin-views/dist/assets/handlebars-9d3fe668.js.gz deleted file mode 100644 index 85b623ae..00000000 Binary files a/admin-views/dist/assets/handlebars-9d3fe668.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/handlebars-9d3fe668.js b/admin-views/dist/assets/handlebars-bcd406fd.js similarity index 97% rename from admin-views/dist/assets/handlebars-9d3fe668.js rename to admin-views/dist/assets/handlebars-bcd406fd.js index 003c5cae..c222e31d 100644 --- a/admin-views/dist/assets/handlebars-9d3fe668.js +++ b/admin-views/dist/assets/handlebars-bcd406fd.js @@ -1 +1 @@ -import{l as e}from"./editor.main-7fdd10fa.js";import"./index-79ae6e73.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{r as conf,m as language}; +import{l as e}from"./editor.main-6a1a59b6.js";import"./index-16176cf1.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{r as conf,m as language}; diff --git a/admin-views/dist/assets/handlebars-bcd406fd.js.gz b/admin-views/dist/assets/handlebars-bcd406fd.js.gz new file mode 100644 index 00000000..67691a2f Binary files /dev/null and b/admin-views/dist/assets/handlebars-bcd406fd.js.gz differ diff --git a/admin-views/dist/assets/hls-28592a37.js.gz b/admin-views/dist/assets/hls-28592a37.js.gz deleted file mode 100644 index 2225bdda..00000000 Binary files a/admin-views/dist/assets/hls-28592a37.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/hls-28592a37.js b/admin-views/dist/assets/hls-b8b9e533.js similarity index 99% rename from admin-views/dist/assets/hls-28592a37.js rename to admin-views/dist/assets/hls-b8b9e533.js index f790aba3..8201a843 100644 --- a/admin-views/dist/assets/hls-28592a37.js +++ b/admin-views/dist/assets/hls-b8b9e533.js @@ -1,4 +1,4 @@ -import{e as wt,o as Wt}from"./index-79ae6e73.js";function Gt(Lt,Ot){for(var W=0;WM[y]})}}}return Object.freeze(Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"}))}var Mt={exports:{}};(function(Lt,Ot){typeof window<"u"&&function(M,y){Lt.exports=y()}(Wt,function(){return function(W){var M={};function y(C){if(M[C])return M[C].exports;var D=M[C]={i:C,l:!1,exports:{}};return W[C].call(D.exports,D,D.exports,y),D.l=!0,D.exports}return y.m=W,y.c=M,y.d=function(C,D,A){y.o(C,D)||Object.defineProperty(C,D,{enumerable:!0,get:A})},y.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},y.t=function(C,D){if(D&1&&(C=y(C)),D&8||D&4&&typeof C=="object"&&C&&C.__esModule)return C;var A=Object.create(null);if(y.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:C}),D&2&&typeof C!="string")for(var b in C)y.d(A,b,(function(I){return C[I]}).bind(null,b));return A},y.n=function(C){var D=C&&C.__esModule?function(){return C.default}:function(){return C};return y.d(D,"a",D),D},y.o=function(C,D){return Object.prototype.hasOwnProperty.call(C,D)},y.p="/dist/",y(y.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(W,M,y){var C=Object.prototype.hasOwnProperty,D="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(D=!1));function b(m,S,p){this.fn=m,this.context=S,this.once=p||!1}function I(m,S,p,T,E){if(typeof p!="function")throw new TypeError("The listener must be a function");var v=new b(p,T||m,E),n=D?D+S:S;return m._events[n]?m._events[n].fn?m._events[n]=[m._events[n],v]:m._events[n].push(v):(m._events[n]=v,m._eventsCount++),m}function O(m,S){--m._eventsCount===0?m._events=new A:delete m._events[S]}function L(){this._events=new A,this._eventsCount=0}L.prototype.eventNames=function(){var S=[],p,T;if(this._eventsCount===0)return S;for(T in p=this._events)C.call(p,T)&&S.push(D?T.slice(1):T);return Object.getOwnPropertySymbols?S.concat(Object.getOwnPropertySymbols(p)):S},L.prototype.listeners=function(S){var p=D?D+S:S,T=this._events[p];if(!T)return[];if(T.fn)return[T.fn];for(var E=0,v=T.length,n=new Array(v);E0},!1)}function m(S,p){for(var T={main:[p]},E={main:[]},v={main:{}};L(T);)for(var n=Object.keys(T),t=0;tM[y]})}}}return Object.freeze(Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"}))}var Mt={exports:{}};(function(Lt,Ot){typeof window<"u"&&function(M,y){Lt.exports=y()}(Wt,function(){return function(W){var M={};function y(C){if(M[C])return M[C].exports;var D=M[C]={i:C,l:!1,exports:{}};return W[C].call(D.exports,D,D.exports,y),D.l=!0,D.exports}return y.m=W,y.c=M,y.d=function(C,D,A){y.o(C,D)||Object.defineProperty(C,D,{enumerable:!0,get:A})},y.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},y.t=function(C,D){if(D&1&&(C=y(C)),D&8||D&4&&typeof C=="object"&&C&&C.__esModule)return C;var A=Object.create(null);if(y.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:C}),D&2&&typeof C!="string")for(var b in C)y.d(A,b,(function(I){return C[I]}).bind(null,b));return A},y.n=function(C){var D=C&&C.__esModule?function(){return C.default}:function(){return C};return y.d(D,"a",D),D},y.o=function(C,D){return Object.prototype.hasOwnProperty.call(C,D)},y.p="/dist/",y(y.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(W,M,y){var C=Object.prototype.hasOwnProperty,D="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(D=!1));function b(m,S,p){this.fn=m,this.context=S,this.once=p||!1}function I(m,S,p,T,E){if(typeof p!="function")throw new TypeError("The listener must be a function");var v=new b(p,T||m,E),n=D?D+S:S;return m._events[n]?m._events[n].fn?m._events[n]=[m._events[n],v]:m._events[n].push(v):(m._events[n]=v,m._eventsCount++),m}function O(m,S){--m._eventsCount===0?m._events=new A:delete m._events[S]}function L(){this._events=new A,this._eventsCount=0}L.prototype.eventNames=function(){var S=[],p,T;if(this._eventsCount===0)return S;for(T in p=this._events)C.call(p,T)&&S.push(D?T.slice(1):T);return Object.getOwnPropertySymbols?S.concat(Object.getOwnPropertySymbols(p)):S},L.prototype.listeners=function(S){var p=D?D+S:S,T=this._events[p];if(!T)return[];if(T.fn)return[T.fn];for(var E=0,v=T.length,n=new Array(v);E0},!1)}function m(S,p){for(var T={main:[p]},E={main:[]},v={main:{}};L(T);)for(var n=Object.keys(T),t=0;t=2*o/h||x<=P)){var _=Number.POSITIVE_INFINITY,F;for(F=n.level-1;F>a;F--){var B=u[F].maxBitrate;if(_=o*B/(8*.8*g),_=x)){var U=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+n.sn+(t?" part "+t.index:"")+" of level "+n.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+F+` Current BW estimate: `+(Object(C.isFiniteNumber)(U)?(U/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+x.toFixed(3)+` s diff --git a/admin-views/dist/assets/hls-b8b9e533.js.gz b/admin-views/dist/assets/hls-b8b9e533.js.gz new file mode 100644 index 00000000..a79913f5 Binary files /dev/null and b/admin-views/dist/assets/hls-b8b9e533.js.gz differ diff --git a/admin-views/dist/assets/html-998373ea.js.gz b/admin-views/dist/assets/html-998373ea.js.gz deleted file mode 100644 index a35be1ac..00000000 Binary files a/admin-views/dist/assets/html-998373ea.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/html-998373ea.js b/admin-views/dist/assets/html-a03c14d4.js similarity index 97% rename from admin-views/dist/assets/html-998373ea.js rename to admin-views/dist/assets/html-a03c14d4.js index ed04152b..69c61327 100644 --- a/admin-views/dist/assets/html-998373ea.js +++ b/admin-views/dist/assets/html-a03c14d4.js @@ -1 +1 @@ -import{l as e}from"./editor.main-7fdd10fa.js";import"./index-79ae6e73.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language}; +import{l as e}from"./editor.main-6a1a59b6.js";import"./index-16176cf1.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language}; diff --git a/admin-views/dist/assets/html-a03c14d4.js.gz b/admin-views/dist/assets/html-a03c14d4.js.gz new file mode 100644 index 00000000..82ebff9c Binary files /dev/null and b/admin-views/dist/assets/html-a03c14d4.js.gz differ diff --git a/admin-views/dist/assets/htmlMode-847305fb.js b/admin-views/dist/assets/htmlMode-7eaef2f7.js similarity index 99% rename from admin-views/dist/assets/htmlMode-847305fb.js rename to admin-views/dist/assets/htmlMode-7eaef2f7.js index 36642014..6c0607ce 100644 --- a/admin-views/dist/assets/htmlMode-847305fb.js +++ b/admin-views/dist/assets/htmlMode-7eaef2f7.js @@ -1,4 +1,4 @@ -import{e as Oe,R as Pe,l as f,U as Xe}from"./editor.main-7fdd10fa.js";import"./index-79ae6e73.js";var $e=2*60*1e3,Fe=function(){function n(r){var i=this;this._defaults=r,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return i._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return i._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(this._worker){var r=Date.now()-this._lastUsedTime;r>$e&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Oe.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],t=0;t0&&(s.arguments=a),s}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.title)&&o.string(e.command)}n.is=i})(P||(P={}));var x;(function(n){function r(a,u){return{range:a,newText:u}}n.replace=r;function i(a,u){return{range:{start:a,end:a},newText:u}}n.insert=i;function t(a){return{range:a,newText:""}}n.del=t;function e(a){var u=a;return o.objectLiteral(u)&&o.string(u.newText)&&m.is(u.range)}n.is=e})(x||(x={}));var C;(function(n){function r(t,e,a){var u={label:t};return e!==void 0&&(u.needsConfirmation=e),a!==void 0&&(u.description=a),u}n.create=r;function i(t){var e=t;return e!==void 0&&o.objectLiteral(e)&&o.string(e.label)&&(o.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(o.string(e.description)||e.description===void 0)}n.is=i})(C||(C={}));var w;(function(n){function r(i){var t=i;return typeof t=="string"}n.is=r})(w||(w={}));var E;(function(n){function r(a,u,s){return{range:a,newText:u,annotationId:s}}n.replace=r;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}n.insert=i;function t(a,u){return{range:a,newText:"",annotationId:u}}n.del=t;function e(a){var u=a;return x.is(u)&&(C.is(u.annotationId)||w.is(u.annotationId))}n.is=e})(E||(E={}));var N;(function(n){function r(t,e){return{textDocument:t,edits:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&U.is(e.textDocument)&&Array.isArray(e.edits)}n.is=i})(N||(N={}));var F;(function(n){function r(t,e,a){var u={kind:"create",uri:t};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="create"&&o.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(F||(F={}));var T;(function(n){function r(t,e,a,u){var s={kind:"rename",oldUri:t,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}n.create=r;function i(t){var e=t;return e&&e.kind==="rename"&&o.string(e.oldUri)&&o.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(T||(T={}));var D;(function(n){function r(t,e,a){var u={kind:"delete",uri:t};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="delete"&&o.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||o.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||o.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(D||(D={}));var X;(function(n){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return o.string(e.kind)?F.is(e)||T.is(e)||D.is(e):N.is(e)}))}n.is=r})(X||(X={}));var M=function(){function n(r,i){this.edits=r,this.changeAnnotations=i}return n.prototype.insert=function(r,i,t){var e,a;if(t===void 0?e=x.insert(r,i):w.is(t)?(a=t,e=E.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.insert(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.replace=function(r,i,t){var e,a;if(t===void 0?e=x.replace(r,i):w.is(t)?(a=t,e=E.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.replace(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.delete=function(r,i){var t,e;if(i===void 0?t=x.del(r):w.is(i)?(e=i,t=E.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),t=E.del(r,e)),this.edits.push(t),e!==void 0)return e},n.prototype.add=function(r){this.edits.push(r)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),re=function(){function n(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(r,i){var t;if(w.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new re(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(N.is(t)){var e=new M(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=e}})):r.changes&&Object.keys(r.changes).forEach(function(t){var e=new M(r.changes[t]);i._textEditChanges[t]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(r){if(U.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},t=this._textEditChanges[i.uri];if(!t){var e=[],a={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(a),t=new M(e,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var e=[];this._workspaceEdit.changes[r]=e,t=new M(e),this._textEditChanges[r]=t}return t}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new re,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=F.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=F.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n.prototype.renameFile=function(r,i,t,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;C.is(t)||w.is(t)?a=t:e=t;var u,s;if(a===void 0?u=T.create(r,i,e):(s=w.is(a)?a:this._changeAnnotations.manage(a),u=T.create(r,i,e,s)),this._workspaceEdit.documentChanges.push(u),s!==void 0)return s},n.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=D.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=D.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n})();var ie;(function(n){function r(t){return{uri:t}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)}n.is=i})(ie||(ie={}));var ae;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.integer(e.version)}n.is=i})(ae||(ae={}));var U;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&(e.version===null||o.integer(e.version))}n.is=i})(U||(U={}));var ue;(function(n){function r(t,e,a,u){return{uri:t,languageId:e,version:a,text:u}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.string(e.languageId)&&o.integer(e.version)&&o.string(e.text)}n.is=i})(ue||(ue={}));var S;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(S||(S={}));(function(n){function r(i){var t=i;return t===n.PlainText||t===n.Markdown}n.is=r})(S||(S={}));var $;(function(n){function r(i){var t=i;return o.objectLiteral(i)&&S.is(t.kind)&&o.string(t.value)}n.is=r})($||($={}));var h;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(h||(h={}));var B;(function(n){n.PlainText=1,n.Snippet=2})(B||(B={}));var oe;(function(n){n.Deprecated=1})(oe||(oe={}));var se;(function(n){function r(t,e,a){return{newText:t,insert:e,replace:a}}n.create=r;function i(t){var e=t;return e&&o.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=i})(se||(se={}));var ce;(function(n){n.asIs=1,n.adjustIndentation=2})(ce||(ce={}));var de;(function(n){function r(i){return{label:i}}n.create=r})(de||(de={}));var fe;(function(n){function r(i,t){return{items:i||[],isIncomplete:!!t}}n.create=r})(fe||(fe={}));var H;(function(n){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=r;function i(t){var e=t;return o.string(e)||o.objectLiteral(e)&&o.string(e.language)&&o.string(e.value)}n.is=i})(H||(H={}));var ge;(function(n){function r(i){var t=i;return!!t&&o.objectLiteral(t)&&($.is(t.contents)||H.is(t.contents)||o.typedArray(t.contents,H.is))&&(i.range===void 0||m.is(i.range))}n.is=r})(ge||(ge={}));var le;(function(n){function r(i,t){return t?{label:i,documentation:t}:{label:i}}n.create=r})(le||(le={}));var he;(function(n){function r(i,t){for(var e=[],a=2;a=0;d--){var p=g[d],b=a.offsetAt(p.range.start),c=a.offsetAt(p.range.end);if(c<=l)s=s.substring(0,b)+p.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}n.applyEdits=t;function e(a,u){if(a.length<=1)return a;var s=a.length/2|0,g=a.slice(0,s),l=a.slice(s);e(g,u),e(l,u);for(var d=0,p=0,b=0;d$e&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Oe.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],t=0;t0&&(s.arguments=a),s}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.title)&&o.string(e.command)}n.is=i})(P||(P={}));var x;(function(n){function r(a,u){return{range:a,newText:u}}n.replace=r;function i(a,u){return{range:{start:a,end:a},newText:u}}n.insert=i;function t(a){return{range:a,newText:""}}n.del=t;function e(a){var u=a;return o.objectLiteral(u)&&o.string(u.newText)&&m.is(u.range)}n.is=e})(x||(x={}));var C;(function(n){function r(t,e,a){var u={label:t};return e!==void 0&&(u.needsConfirmation=e),a!==void 0&&(u.description=a),u}n.create=r;function i(t){var e=t;return e!==void 0&&o.objectLiteral(e)&&o.string(e.label)&&(o.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(o.string(e.description)||e.description===void 0)}n.is=i})(C||(C={}));var w;(function(n){function r(i){var t=i;return typeof t=="string"}n.is=r})(w||(w={}));var E;(function(n){function r(a,u,s){return{range:a,newText:u,annotationId:s}}n.replace=r;function i(a,u,s){return{range:{start:a,end:a},newText:u,annotationId:s}}n.insert=i;function t(a,u){return{range:a,newText:"",annotationId:u}}n.del=t;function e(a){var u=a;return x.is(u)&&(C.is(u.annotationId)||w.is(u.annotationId))}n.is=e})(E||(E={}));var N;(function(n){function r(t,e){return{textDocument:t,edits:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&U.is(e.textDocument)&&Array.isArray(e.edits)}n.is=i})(N||(N={}));var F;(function(n){function r(t,e,a){var u={kind:"create",uri:t};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="create"&&o.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(F||(F={}));var T;(function(n){function r(t,e,a,u){var s={kind:"rename",oldUri:t,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(s.options=a),u!==void 0&&(s.annotationId=u),s}n.create=r;function i(t){var e=t;return e&&e.kind==="rename"&&o.string(e.oldUri)&&o.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||o.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||o.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(T||(T={}));var D;(function(n){function r(t,e,a){var u={kind:"delete",uri:t};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(u.options=e),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="delete"&&o.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||o.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||o.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||w.is(e.annotationId))}n.is=i})(D||(D={}));var X;(function(n){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return o.string(e.kind)?F.is(e)||T.is(e)||D.is(e):N.is(e)}))}n.is=r})(X||(X={}));var M=function(){function n(r,i){this.edits=r,this.changeAnnotations=i}return n.prototype.insert=function(r,i,t){var e,a;if(t===void 0?e=x.insert(r,i):w.is(t)?(a=t,e=E.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.insert(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.replace=function(r,i,t){var e,a;if(t===void 0?e=x.replace(r,i):w.is(t)?(a=t,e=E.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),e=E.replace(r,i,a)),this.edits.push(e),a!==void 0)return a},n.prototype.delete=function(r,i){var t,e;if(i===void 0?t=x.del(r):w.is(i)?(e=i,t=E.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),t=E.del(r,e)),this.edits.push(t),e!==void 0)return e},n.prototype.add=function(r){this.edits.push(r)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),re=function(){function n(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(r,i){var t;if(w.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new re(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(N.is(t)){var e=new M(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=e}})):r.changes&&Object.keys(r.changes).forEach(function(t){var e=new M(r.changes[t]);i._textEditChanges[t]=e})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(r){if(U.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},t=this._textEditChanges[i.uri];if(!t){var e=[],a={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(a),t=new M(e,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var e=[];this._workspaceEdit.changes[r]=e,t=new M(e),this._textEditChanges[r]=t}return t}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new re,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=F.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=F.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n.prototype.renameFile=function(r,i,t,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;C.is(t)||w.is(t)?a=t:e=t;var u,s;if(a===void 0?u=T.create(r,i,e):(s=w.is(a)?a:this._changeAnnotations.manage(a),u=T.create(r,i,e,s)),this._workspaceEdit.documentChanges.push(u),s!==void 0)return s},n.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;C.is(i)||w.is(i)?e=i:t=i;var a,u;if(e===void 0?a=D.create(r,t):(u=w.is(e)?e:this._changeAnnotations.manage(e),a=D.create(r,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n})();var ie;(function(n){function r(t){return{uri:t}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)}n.is=i})(ie||(ie={}));var ae;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.integer(e.version)}n.is=i})(ae||(ae={}));var U;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&(e.version===null||o.integer(e.version))}n.is=i})(U||(U={}));var ue;(function(n){function r(t,e,a,u){return{uri:t,languageId:e,version:a,text:u}}n.create=r;function i(t){var e=t;return o.defined(e)&&o.string(e.uri)&&o.string(e.languageId)&&o.integer(e.version)&&o.string(e.text)}n.is=i})(ue||(ue={}));var S;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(S||(S={}));(function(n){function r(i){var t=i;return t===n.PlainText||t===n.Markdown}n.is=r})(S||(S={}));var $;(function(n){function r(i){var t=i;return o.objectLiteral(i)&&S.is(t.kind)&&o.string(t.value)}n.is=r})($||($={}));var h;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(h||(h={}));var B;(function(n){n.PlainText=1,n.Snippet=2})(B||(B={}));var oe;(function(n){n.Deprecated=1})(oe||(oe={}));var se;(function(n){function r(t,e,a){return{newText:t,insert:e,replace:a}}n.create=r;function i(t){var e=t;return e&&o.string(e.newText)&&m.is(e.insert)&&m.is(e.replace)}n.is=i})(se||(se={}));var ce;(function(n){n.asIs=1,n.adjustIndentation=2})(ce||(ce={}));var de;(function(n){function r(i){return{label:i}}n.create=r})(de||(de={}));var fe;(function(n){function r(i,t){return{items:i||[],isIncomplete:!!t}}n.create=r})(fe||(fe={}));var H;(function(n){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=r;function i(t){var e=t;return o.string(e)||o.objectLiteral(e)&&o.string(e.language)&&o.string(e.value)}n.is=i})(H||(H={}));var ge;(function(n){function r(i){var t=i;return!!t&&o.objectLiteral(t)&&($.is(t.contents)||H.is(t.contents)||o.typedArray(t.contents,H.is))&&(i.range===void 0||m.is(i.range))}n.is=r})(ge||(ge={}));var le;(function(n){function r(i,t){return t?{label:i,documentation:t}:{label:i}}n.create=r})(le||(le={}));var he;(function(n){function r(i,t){for(var e=[],a=2;a=0;d--){var p=g[d],b=a.offsetAt(p.range.start),c=a.offsetAt(p.range.end);if(c<=l)s=s.substring(0,b)+p.newText+s.substring(c,s.length);else throw new Error("Overlapping edit");l=b}return s}n.applyEdits=t;function e(a,u){if(a.length<=1)return a;var s=a.length/2|0,g=a.slice(0,s),l=a.slice(s);e(g,u),e(l,u);for(var d=0,p=0,b=0;d0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},n.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),t=0,e=i.length;if(e===0)return k.create(0,r);for(;tr?e=a:t=a+1}var u=t-1;return k.create(u,r-i[u])},n.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var t=i[r.line],e=r.line+1"u"}n.undefined=t;function e(c){return c===!0||c===!1}n.boolean=e;function a(c){return r.call(c)==="[object String]"}n.string=a;function u(c){return r.call(c)==="[object Number]"}n.number=u;function s(c,y,L){return r.call(c)==="[object Number]"&&y<=c&&c<=L}n.numberRange=s;function g(c){return r.call(c)==="[object Number]"&&-2147483648<=c&&c<=2147483647}n.integer=g;function l(c){return r.call(c)==="[object Number]"&&0<=c&&c<=2147483647}n.uinteger=l;function d(c){return r.call(c)==="[object Function]"}n.func=d;function p(c){return c!==null&&typeof c=="object"}n.objectLiteral=p;function b(c,y){return Array.isArray(c)&&c.every(y)}n.typedArray=b})(o||(o={}));function A(n){if(n)return{character:n.column-1,line:n.lineNumber-1}}function qe(n){if(n)return{start:A(n.getStartPosition()),end:A(n.getEndPosition())}}function _(n){if(n)return new Pe(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)}function Qe(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function Ge(n){var r=f.CompletionItemKind;switch(n){case h.Text:return r.Text;case h.Method:return r.Method;case h.Function:return r.Function;case h.Constructor:return r.Constructor;case h.Field:return r.Field;case h.Variable:return r.Variable;case h.Class:return r.Class;case h.Interface:return r.Interface;case h.Module:return r.Module;case h.Property:return r.Property;case h.Unit:return r.Unit;case h.Value:return r.Value;case h.Enum:return r.Enum;case h.Keyword:return r.Keyword;case h.Snippet:return r.Snippet;case h.Color:return r.Color;case h.File:return r.File;case h.Reference:return r.Reference}return r.Property}function q(n){if(n)return{range:_(n.range),text:n.newText}}function Je(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}var Te=function(){function n(r){this._worker=r}return Object.defineProperty(n.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),n.prototype.provideCompletionItems=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.doComplete(a.toString(),A(i))}).then(function(u){if(u){var s=r.getWordUntilPosition(i),g=new Pe(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn),l=u.items.map(function(d){var p={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,command:Je(d.command),detail:d.detail,range:g,kind:Ge(d.kind)};return d.textEdit&&(Qe(d.textEdit)?p.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:p.range=_(d.textEdit.range),p.insertText=d.textEdit.newText),d.additionalTextEdits&&(p.additionalTextEdits=d.additionalTextEdits.map(q)),d.insertTextFormat===B.Snippet&&(p.insertTextRules=f.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:u.isIncomplete,suggestions:l}}})},n}();function Ye(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function Re(n){return typeof n=="string"?{value:n}:Ye(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+` `+n.value+"\n```\n"}}function Ze(n){if(n)return Array.isArray(n)?n.map(Re):[Re(n)]}var De=function(){function n(r){this._worker=r}return n.prototype.provideHover=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.doHover(e.toString(),A(i))}).then(function(a){if(a)return{range:_(a.range),contents:Ze(a.contents)}})},n}();function Ke(n){var r=f.DocumentHighlightKind;switch(n){case I.Read:return r.Read;case I.Write:return r.Write;case I.Text:return r.Text}return r.Text}var Se=function(){function n(r){this._worker=r}return n.prototype.provideDocumentHighlights=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.findDocumentHighlights(e.toString(),A(i))}).then(function(a){if(a)return a.map(function(u){return{range:_(u.range),kind:Ke(u.kind)}})})},n}();function en(n){var r=f.SymbolKind;switch(n){case v.File:return r.Array;case v.Module:return r.Module;case v.Namespace:return r.Namespace;case v.Package:return r.Package;case v.Class:return r.Class;case v.Method:return r.Method;case v.Property:return r.Property;case v.Field:return r.Field;case v.Constructor:return r.Constructor;case v.Enum:return r.Enum;case v.Interface:return r.Interface;case v.Function:return r.Function;case v.Variable:return r.Variable;case v.Constant:return r.Constant;case v.String:return r.String;case v.Number:return r.Number;case v.Boolean:return r.Boolean;case v.Array:return r.Array}return r.Function}var Le=function(){function n(r){this._worker=r}return n.prototype.provideDocumentSymbols=function(r,i){var t=r.uri;return this._worker(t).then(function(e){return e.findDocumentSymbols(t.toString())}).then(function(e){if(e)return e.map(function(a){return{name:a.name,detail:"",containerName:a.containerName,kind:en(a.kind),tags:[],range:_(a.location.range),selectionRange:_(a.location.range)}})})},n}(),Me=function(){function n(r){this._worker=r}return n.prototype.provideLinks=function(r,i){var t=r.uri;return this._worker(t).then(function(e){return e.findDocumentLinks(t.toString())}).then(function(e){if(e)return{links:e.map(function(a){return{range:_(a.range),url:a.target}})}})},n}();function je(n){return{tabSize:n.tabSize,insertSpaces:n.insertSpaces}}var We=function(){function n(r){this._worker=r}return n.prototype.provideDocumentFormattingEdits=function(r,i,t){var e=r.uri;return this._worker(e).then(function(a){return a.format(e.toString(),null,je(i)).then(function(u){if(!(!u||u.length===0))return u.map(q)})})},n}(),Ne=function(){function n(r){this._worker=r}return n.prototype.provideDocumentRangeFormattingEdits=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.format(a.toString(),qe(i),je(t)).then(function(s){if(!(!s||s.length===0))return s.map(q)})})},n}(),Ue=function(){function n(r){this._worker=r}return n.prototype.provideRenameEdits=function(r,i,t,e){var a=r.uri;return this._worker(a).then(function(u){return u.doRename(a.toString(),A(i),t)}).then(function(u){return nn(u)})},n}();function nn(n){if(!(!n||!n.changes)){var r=[];for(var i in n.changes)for(var t=Xe.parse(i),e=0,a=n.changes[i];ev[q]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var ke={exports:{}},oe={exports:{}},ie;function we(){return ie||(ie=1,function(H,X){(function(u){u(Z)})(function(u){var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},q={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,D){var F=O.indentUnit,b={},$=D.htmlMode?v:q;for(var C in $)b[C]=$[C];for(var C in D)b[C]=D[C];var p,l;function m(t,i){function o(U){return i.tokenize=U,U(t,i)}var s=t.next();if(s=="<")return t.eat("!")?t.eat("[")?t.match("CDATA[")?o(P("atom","]]>")):null:t.match("--")?o(P("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),o(K(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),i.tokenize=P("meta","?>"),"meta"):(p=t.eat("/")?"closeTag":"openTag",i.tokenize=k,"tag bracket");if(s=="&"){var S;return t.eat("#")?t.eat("x")?S=t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):S=t.eatWhile(/[\d]/)&&t.eat(";"):S=t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),S?"atom":"error"}else return t.eatWhile(/[^&<]/),null}m.isInText=!0;function k(t,i){var o=t.next();if(o==">"||o=="/"&&t.eat(">"))return i.tokenize=m,p=o==">"?"endTag":"selfcloseTag","tag bracket";if(o=="=")return p="equals",null;if(o=="<"){i.tokenize=m,i.state=A,i.tagName=i.tagStart=null;var s=i.tokenize(t,i);return s?s+" tag error":"tag error"}else return/[\'\"]/.test(o)?(i.tokenize=z(o),i.stringStartCol=t.column(),i.tokenize(t,i)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(t){var i=function(o,s){for(;!o.eol();)if(o.next()==t){s.tokenize=k;break}return"string"};return i.isInAttribute=!0,i}function P(t,i){return function(o,s){for(;!o.eol();){if(o.match(i)){s.tokenize=m;break}o.next()}return t}}function K(t){return function(i,o){for(var s;(s=i.next())!=null;){if(s=="<")return o.tokenize=K(t+1),o.tokenize(i,o);if(s==">")if(t==1){o.tokenize=m;break}else return o.tokenize=K(t-1),o.tokenize(i,o)}return"meta"}}function j(t){return t&&t.toLowerCase()}function f(t,i,o){this.prev=t.context,this.tagName=i||"",this.indent=t.indented,this.startOfLine=o,(b.doNotIndent.hasOwnProperty(i)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function _(t,i){for(var o;;){if(!t.context||(o=t.context.tagName,!b.contextGrabbers.hasOwnProperty(j(o))||!b.contextGrabbers[j(o)].hasOwnProperty(j(i))))return;h(t)}}function A(t,i,o){return t=="openTag"?(o.tagStart=i.column(),I):t=="closeTag"?L:A}function I(t,i,o){return t=="word"?(o.tagName=i.current(),l="tag",a):b.allowMissingTagName&&t=="endTag"?(l="tag bracket",a(t,i,o)):(l="error",I)}function L(t,i,o){if(t=="word"){var s=i.current();return o.context&&o.context.tagName!=s&&b.implicitlyClosed.hasOwnProperty(j(o.context.tagName))&&h(o),o.context&&o.context.tagName==s||b.matchClosing===!1?(l="tag",T):(l="tag error",c)}else return b.allowMissingTagName&&t=="endTag"?(l="tag bracket",T(t,i,o)):(l="error",c)}function T(t,i,o){return t!="endTag"?(l="error",T):(h(o),A)}function c(t,i,o){return l="error",T(t,i,o)}function a(t,i,o){if(t=="word")return l="attribute",M;if(t=="endTag"||t=="selfcloseTag"){var s=o.tagName,S=o.tagStart;return o.tagName=o.tagStart=null,t=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(j(s))?_(o,s):(_(o,s),o.context=new f(o,s,S==o.indented)),A}return l="error",a}function M(t,i,o){return t=="equals"?N:(b.allowMissing||(l="error"),a(t,i,o))}function N(t,i,o){return t=="string"?B:t=="word"&&b.allowUnquoted?(l="string",a):(l="error",a(t,i,o))}function B(t,i,o){return t=="string"?B:a(t,i,o)}return{startState:function(t){var i={tokenize:m,state:A,indented:t||0,tagName:null,tagStart:null,context:null};return t!=null&&(i.baseIndent=t),i},token:function(t,i){if(!i.tagName&&t.sol()&&(i.indented=t.indentation()),t.eatSpace())return null;p=null;var o=i.tokenize(t,i);return(o||p)&&o!="comment"&&(l=null,i.state=i.state(p||o,t,i),l&&(o=l=="error"?o+" error":l)),o},indent:function(t,i,o){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+F;if(s&&s.noIndent)return u.Pass;if(t.tokenize!=k&&t.tokenize!=m)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return b.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+F*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/$/,blockCommentStart:"",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(t){t.state==N&&(t.state=a)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:t.type=="closeTag"}:null},xmlCurrentContext:function(t){for(var i=[],o=t.context;o;o=o.prev)i.push(o.tagName);return i.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),oe.exports}var ae={exports:{}},le;function ve(){return le||(le=1,function(H,X){(function(u){u(Z)})(function(u){u.defineMode("css",function(c,a){var M=a.inline;a.propertyKeywords||(a=u.resolveMode("text/css"));var N=c.indentUnit,B=a.tokenHooks,t=a.documentTypes||{},i=a.mediaTypes||{},o=a.mediaFeatures||{},s=a.mediaValueKeywords||{},S=a.propertyKeywords||{},U=a.nonStandardPropertyKeywords||{},ce=a.fontProperties||{},ue=a.counterDescriptors||{},J=a.colorKeywords||{},Q=a.valueKeywords||{},R=a.allowNested,de=a.lineComment,pe=a.supportsAtComponent===!0,ee=c.highlightNonStandardPropertyKeywords!==!1,Y,d;function x(e,n){return Y=n,e}function fe(e,n){var r=e.next();if(B[r]){var g=B[r](e,n);if(g!==!1)return g}if(r=="@")return e.eatWhile(/[\w\\\-]/),x("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return x(null,"compare");if(r=='"'||r=="'")return n.tokenize=re(r),n.tokenize(e,n);if(r=="#")return e.eatWhile(/[\w\\\-]/),x("atom","hash");if(r=="!")return e.match(/^\s*\w*/),x("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),x("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),x("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable");if(e.match(/^\w+-/))return x("meta","meta")}else return/[,+>*\/]/.test(r)?x(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(n.tokenize=me),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null)}function re(e){return function(n,r){for(var g=!1,E;(E=n.next())!=null;){if(E==e&&!g){e==")"&&n.backUp(1);break}g=!g&&E=="\\"}return(E==e||!g&&e!=")")&&(r.tokenize=null),x("string","string")}}function me(e,n){return e.next(),e.match(/^\s*[\"\')]/,!1)?n.tokenize=null:n.tokenize=re(")"),x(null,"(")}function te(e,n,r){this.type=e,this.indent=n,this.prev=r}function y(e,n,r,g){return e.context=new te(r,n.indentation()+(g===!1?0:N),e.context),r}function W(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function G(e,n,r){return w[r.context.type](e,n,r)}function V(e,n,r,g){for(var E=g||1;E>0;E--)r.context=r.context.prev;return G(e,n,r)}function ne(e){var n=e.current().toLowerCase();Q.hasOwnProperty(n)?d="atom":J.hasOwnProperty(n)?d="keyword":d="variable"}var w={};return w.top=function(e,n,r){if(e=="{")return y(r,n,"block");if(e=="}"&&r.context.prev)return W(r);if(pe&&/@component/i.test(e))return y(r,n,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return y(r,n,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return y(r,n,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return y(r,n,"at");if(e=="hash")d="builtin";else if(e=="word")d="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return y(r,n,"interpolation");if(e==":")return"pseudo";if(R&&e=="(")return y(r,n,"parens")}return r.context.type},w.block=function(e,n,r){if(e=="word"){var g=n.current().toLowerCase();return S.hasOwnProperty(g)?(d="property","maybeprop"):U.hasOwnProperty(g)?(d=ee?"string-2":"property","maybeprop"):R?(d=n.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(d+=" error","maybeprop")}else return e=="meta"?"block":!R&&(e=="hash"||e=="qualifier")?(d="error","block"):w.top(e,n,r)},w.maybeprop=function(e,n,r){return e==":"?y(r,n,"prop"):G(e,n,r)},w.prop=function(e,n,r){if(e==";")return W(r);if(e=="{"&&R)return y(r,n,"propBlock");if(e=="}"||e=="{")return V(e,n,r);if(e=="(")return y(r,n,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(n.current()))d+=" error";else if(e=="word")ne(n);else if(e=="interpolation")return y(r,n,"interpolation");return"prop"},w.propBlock=function(e,n,r){return e=="}"?W(r):e=="word"?(d="property","maybeprop"):r.context.type},w.parens=function(e,n,r){return e=="{"||e=="}"?V(e,n,r):e==")"?W(r):e=="("?y(r,n,"parens"):e=="interpolation"?y(r,n,"interpolation"):(e=="word"&&ne(n),"parens")},w.pseudo=function(e,n,r){return e=="meta"?"pseudo":e=="word"?(d="variable-3",r.context.type):G(e,n,r)},w.documentTypes=function(e,n,r){return e=="word"&&t.hasOwnProperty(n.current())?(d="tag",r.context.type):w.atBlock(e,n,r)},w.atBlock=function(e,n,r){if(e=="(")return y(r,n,"atBlock_parens");if(e=="}"||e==";")return V(e,n,r);if(e=="{")return W(r)&&y(r,n,R?"block":"top");if(e=="interpolation")return y(r,n,"interpolation");if(e=="word"){var g=n.current().toLowerCase();g=="only"||g=="not"||g=="and"||g=="or"?d="keyword":i.hasOwnProperty(g)?d="attribute":o.hasOwnProperty(g)?d="property":s.hasOwnProperty(g)?d="keyword":S.hasOwnProperty(g)?d="property":U.hasOwnProperty(g)?d=ee?"string-2":"property":Q.hasOwnProperty(g)?d="atom":J.hasOwnProperty(g)?d="keyword":d="error"}return r.context.type},w.atComponentBlock=function(e,n,r){return e=="}"?V(e,n,r):e=="{"?W(r)&&y(r,n,R?"block":"top",!1):(e=="word"&&(d="error"),r.context.type)},w.atBlock_parens=function(e,n,r){return e==")"?W(r):e=="{"||e=="}"?V(e,n,r,2):w.atBlock(e,n,r)},w.restricted_atBlock_before=function(e,n,r){return e=="{"?y(r,n,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(d="variable","restricted_atBlock_before"):G(e,n,r)},w.restricted_atBlock=function(e,n,r){return e=="}"?(r.stateArg=null,W(r)):e=="word"?(r.stateArg=="@font-face"&&!ce.hasOwnProperty(n.current().toLowerCase())||r.stateArg=="@counter-style"&&!ue.hasOwnProperty(n.current().toLowerCase())?d="error":d="property","maybeprop"):"restricted_atBlock"},w.keyframes=function(e,n,r){return e=="word"?(d="variable","keyframes"):e=="{"?y(r,n,"top"):G(e,n,r)},w.at=function(e,n,r){return e==";"?W(r):e=="{"||e=="}"?V(e,n,r):(e=="word"?d="tag":e=="hash"&&(d="builtin"),"at")},w.interpolation=function(e,n,r){return e=="}"?W(r):e=="{"||e==";"?V(e,n,r):(e=="word"?d="variable":e!="variable"&&e!="("&&e!=")"&&(d="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:M?"block":"top",stateArg:null,context:new te(M?"block":"top",e||0,null)}},token:function(e,n){if(!n.tokenize&&e.eatSpace())return null;var r=(n.tokenize||fe)(e,n);return r&&typeof r=="object"&&(Y=r[1],r=r[0]),d=r,Y!="comment"&&(n.state=w[n.state](Y,e,n)),d},indent:function(e,n){var r=e.context,g=n&&n.charAt(0),E=r.indent;return r.type=="prop"&&(g=="}"||g==")")&&(r=r.prev),r.prev&&(g=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,E=r.indent):(g==")"&&(r.type=="parens"||r.type=="atBlock_parens")||g=="{"&&(r.type=="at"||r.type=="atBlock"))&&(E=Math.max(0,r.indent-N))),E},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:de,fold:"brace"}});function v(c){for(var a={},M=0;M-1?p.backUp(k.length-z):k.match(/<\/?$/)&&(p.backUp(k.length),p.match(l,!1)||p.match(k)),m}var O={};function D(p){var l=O[p];return l||(O[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function F(p,l){var m=p.match(D(l));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function b(p,l){return new RegExp((l?"^":"")+"","i")}function $(p,l){for(var m in p)for(var k=l[m]||(l[m]=[]),z=p[m],P=z.length-1;P>=0;P--)k.unshift(z[P])}function C(p,l){for(var m=0;m=0;K--)k.script.unshift(["type",P[K].matches,P[K].mode]);function j(f,h){var _=m.token(f,h.htmlState),A=/\btag\b/.test(_),I;if(A&&!/[<>\s\/]/.test(f.current())&&(I=h.htmlState.tagName&&h.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(I))h.inTag=I+" ";else if(h.inTag&&A&&/>$/.test(f.current())){var L=/^([\S]+) (.*)/.exec(h.inTag);h.inTag=null;var T=f.current()==">"&&C(k[L[1]],L[2]),c=u.getMode(p,T),a=b(L[1],!0),M=b(L[1],!1);h.token=function(N,B){return N.match(a,!1)?(B.token=j,B.localState=B.localMode=null,null):q(N,M,B.localMode.token(N,B.localState))},h.localMode=c,h.localState=u.startState(c,m.indent(h.htmlState,"",""))}else h.inTag&&(h.inTag+=f.current(),f.eol()&&(h.inTag+=" "));return _}return{startState:function(){var f=u.startState(m);return{token:j,inTag:null,localMode:null,localState:null,htmlState:f}},copyState:function(f){var h;return f.localState&&(h=u.copyState(f.localMode,f.localState)),{token:f.token,inTag:f.inTag,localMode:f.localMode,localState:h,htmlState:u.copyState(m,f.htmlState)}},token:function(f,h){return h.token(f,h)},indent:function(f,h,_){return!f.localMode||/^\s*<\//.test(h)?m.indent(f.htmlState,h,_):f.localMode.indent?f.localMode.indent(f.localState,h,_):u.Pass},innerMode:function(f){return{state:f.localState||f.htmlState,mode:f.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})})();var se=ke.exports;const ye=ge(se),Se=be({__proto__:null,default:ye},[se]);export{Se as h}; diff --git a/admin-views/dist/assets/htmlmixed-0cdf2a6a.js.gz b/admin-views/dist/assets/htmlmixed-0cdf2a6a.js.gz deleted file mode 100644 index f0f9962b..00000000 Binary files a/admin-views/dist/assets/htmlmixed-0cdf2a6a.js.gz and /dev/null differ diff --git a/admin-views/dist/assets/htmlmixed-75c6fb18.js b/admin-views/dist/assets/htmlmixed-75c6fb18.js new file mode 100644 index 00000000..ae9d246d --- /dev/null +++ b/admin-views/dist/assets/htmlmixed-75c6fb18.js @@ -0,0 +1 @@ +import{e as ge}from"./index-16176cf1.js";import{r as Z}from"./codemirror-45cadb7f.js";import{a as he}from"./javascript-e4cada31.js";function be(H,X){for(var u=0;uv[N]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var ke={exports:{}},oe={exports:{}},ie;function we(){return ie||(ie=1,function(H,X){(function(u){u(Z())})(function(u){var v={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},N={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,D){var F=O.indentUnit,b={},$=D.htmlMode?v:N;for(var C in $)b[C]=$[C];for(var C in D)b[C]=D[C];var p,l;function m(t,i){function o(U){return i.tokenize=U,U(t,i)}var s=t.next();if(s=="<")return t.eat("!")?t.eat("[")?t.match("CDATA[")?o(P("atom","]]>")):null:t.match("--")?o(P("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),o(K(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),i.tokenize=P("meta","?>"),"meta"):(p=t.eat("/")?"closeTag":"openTag",i.tokenize=k,"tag bracket");if(s=="&"){var S;return t.eat("#")?t.eat("x")?S=t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):S=t.eatWhile(/[\d]/)&&t.eat(";"):S=t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),S?"atom":"error"}else return t.eatWhile(/[^&<]/),null}m.isInText=!0;function k(t,i){var o=t.next();if(o==">"||o=="/"&&t.eat(">"))return i.tokenize=m,p=o==">"?"endTag":"selfcloseTag","tag bracket";if(o=="=")return p="equals",null;if(o=="<"){i.tokenize=m,i.state=A,i.tagName=i.tagStart=null;var s=i.tokenize(t,i);return s?s+" tag error":"tag error"}else return/[\'\"]/.test(o)?(i.tokenize=z(o),i.stringStartCol=t.column(),i.tokenize(t,i)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(t){var i=function(o,s){for(;!o.eol();)if(o.next()==t){s.tokenize=k;break}return"string"};return i.isInAttribute=!0,i}function P(t,i){return function(o,s){for(;!o.eol();){if(o.match(i)){s.tokenize=m;break}o.next()}return t}}function K(t){return function(i,o){for(var s;(s=i.next())!=null;){if(s=="<")return o.tokenize=K(t+1),o.tokenize(i,o);if(s==">")if(t==1){o.tokenize=m;break}else return o.tokenize=K(t-1),o.tokenize(i,o)}return"meta"}}function j(t){return t&&t.toLowerCase()}function f(t,i,o){this.prev=t.context,this.tagName=i||"",this.indent=t.indented,this.startOfLine=o,(b.doNotIndent.hasOwnProperty(i)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function _(t,i){for(var o;;){if(!t.context||(o=t.context.tagName,!b.contextGrabbers.hasOwnProperty(j(o))||!b.contextGrabbers[j(o)].hasOwnProperty(j(i))))return;h(t)}}function A(t,i,o){return t=="openTag"?(o.tagStart=i.column(),I):t=="closeTag"?L:A}function I(t,i,o){return t=="word"?(o.tagName=i.current(),l="tag",a):b.allowMissingTagName&&t=="endTag"?(l="tag bracket",a(t,i,o)):(l="error",I)}function L(t,i,o){if(t=="word"){var s=i.current();return o.context&&o.context.tagName!=s&&b.implicitlyClosed.hasOwnProperty(j(o.context.tagName))&&h(o),o.context&&o.context.tagName==s||b.matchClosing===!1?(l="tag",T):(l="tag error",c)}else return b.allowMissingTagName&&t=="endTag"?(l="tag bracket",T(t,i,o)):(l="error",c)}function T(t,i,o){return t!="endTag"?(l="error",T):(h(o),A)}function c(t,i,o){return l="error",T(t,i,o)}function a(t,i,o){if(t=="word")return l="attribute",q;if(t=="endTag"||t=="selfcloseTag"){var s=o.tagName,S=o.tagStart;return o.tagName=o.tagStart=null,t=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(j(s))?_(o,s):(_(o,s),o.context=new f(o,s,S==o.indented)),A}return l="error",a}function q(t,i,o){return t=="equals"?M:(b.allowMissing||(l="error"),a(t,i,o))}function M(t,i,o){return t=="string"?B:t=="word"&&b.allowUnquoted?(l="string",a):(l="error",a(t,i,o))}function B(t,i,o){return t=="string"?B:a(t,i,o)}return{startState:function(t){var i={tokenize:m,state:A,indented:t||0,tagName:null,tagStart:null,context:null};return t!=null&&(i.baseIndent=t),i},token:function(t,i){if(!i.tagName&&t.sol()&&(i.indented=t.indentation()),t.eatSpace())return null;p=null;var o=i.tokenize(t,i);return(o||p)&&o!="comment"&&(l=null,i.state=i.state(p||o,t,i),l&&(o=l=="error"?o+" error":l)),o},indent:function(t,i,o){var s=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+F;if(s&&s.noIndent)return u.Pass;if(t.tokenize!=k&&t.tokenize!=m)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return b.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+F*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/$/,blockCommentStart:"",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(t){t.state==M&&(t.state=a)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:t.type=="closeTag"}:null},xmlCurrentContext:function(t){for(var i=[],o=t.context;o;o=o.prev)i.push(o.tagName);return i.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),oe.exports}var ae={exports:{}},le;function ve(){return le||(le=1,function(H,X){(function(u){u(Z())})(function(u){u.defineMode("css",function(c,a){var q=a.inline;a.propertyKeywords||(a=u.resolveMode("text/css"));var M=c.indentUnit,B=a.tokenHooks,t=a.documentTypes||{},i=a.mediaTypes||{},o=a.mediaFeatures||{},s=a.mediaValueKeywords||{},S=a.propertyKeywords||{},U=a.nonStandardPropertyKeywords||{},ce=a.fontProperties||{},ue=a.counterDescriptors||{},J=a.colorKeywords||{},Q=a.valueKeywords||{},R=a.allowNested,de=a.lineComment,pe=a.supportsAtComponent===!0,ee=c.highlightNonStandardPropertyKeywords!==!1,Y,d;function x(e,n){return Y=n,e}function fe(e,n){var r=e.next();if(B[r]){var g=B[r](e,n);if(g!==!1)return g}if(r=="@")return e.eatWhile(/[\w\\\-]/),x("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return x(null,"compare");if(r=='"'||r=="'")return n.tokenize=re(r),n.tokenize(e,n);if(r=="#")return e.eatWhile(/[\w\\\-]/),x("atom","hash");if(r=="!")return e.match(/^\s*\w*/),x("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),x("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),x("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable");if(e.match(/^\w+-/))return x("meta","meta")}else return/[,+>*\/]/.test(r)?x(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(n.tokenize=me),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null)}function re(e){return function(n,r){for(var g=!1,E;(E=n.next())!=null;){if(E==e&&!g){e==")"&&n.backUp(1);break}g=!g&&E=="\\"}return(E==e||!g&&e!=")")&&(r.tokenize=null),x("string","string")}}function me(e,n){return e.next(),e.match(/^\s*[\"\')]/,!1)?n.tokenize=null:n.tokenize=re(")"),x(null,"(")}function te(e,n,r){this.type=e,this.indent=n,this.prev=r}function y(e,n,r,g){return e.context=new te(r,n.indentation()+(g===!1?0:M),e.context),r}function W(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function G(e,n,r){return w[r.context.type](e,n,r)}function V(e,n,r,g){for(var E=g||1;E>0;E--)r.context=r.context.prev;return G(e,n,r)}function ne(e){var n=e.current().toLowerCase();Q.hasOwnProperty(n)?d="atom":J.hasOwnProperty(n)?d="keyword":d="variable"}var w={};return w.top=function(e,n,r){if(e=="{")return y(r,n,"block");if(e=="}"&&r.context.prev)return W(r);if(pe&&/@component/i.test(e))return y(r,n,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return y(r,n,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return y(r,n,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return y(r,n,"at");if(e=="hash")d="builtin";else if(e=="word")d="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return y(r,n,"interpolation");if(e==":")return"pseudo";if(R&&e=="(")return y(r,n,"parens")}return r.context.type},w.block=function(e,n,r){if(e=="word"){var g=n.current().toLowerCase();return S.hasOwnProperty(g)?(d="property","maybeprop"):U.hasOwnProperty(g)?(d=ee?"string-2":"property","maybeprop"):R?(d=n.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(d+=" error","maybeprop")}else return e=="meta"?"block":!R&&(e=="hash"||e=="qualifier")?(d="error","block"):w.top(e,n,r)},w.maybeprop=function(e,n,r){return e==":"?y(r,n,"prop"):G(e,n,r)},w.prop=function(e,n,r){if(e==";")return W(r);if(e=="{"&&R)return y(r,n,"propBlock");if(e=="}"||e=="{")return V(e,n,r);if(e=="(")return y(r,n,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(n.current()))d+=" error";else if(e=="word")ne(n);else if(e=="interpolation")return y(r,n,"interpolation");return"prop"},w.propBlock=function(e,n,r){return e=="}"?W(r):e=="word"?(d="property","maybeprop"):r.context.type},w.parens=function(e,n,r){return e=="{"||e=="}"?V(e,n,r):e==")"?W(r):e=="("?y(r,n,"parens"):e=="interpolation"?y(r,n,"interpolation"):(e=="word"&&ne(n),"parens")},w.pseudo=function(e,n,r){return e=="meta"?"pseudo":e=="word"?(d="variable-3",r.context.type):G(e,n,r)},w.documentTypes=function(e,n,r){return e=="word"&&t.hasOwnProperty(n.current())?(d="tag",r.context.type):w.atBlock(e,n,r)},w.atBlock=function(e,n,r){if(e=="(")return y(r,n,"atBlock_parens");if(e=="}"||e==";")return V(e,n,r);if(e=="{")return W(r)&&y(r,n,R?"block":"top");if(e=="interpolation")return y(r,n,"interpolation");if(e=="word"){var g=n.current().toLowerCase();g=="only"||g=="not"||g=="and"||g=="or"?d="keyword":i.hasOwnProperty(g)?d="attribute":o.hasOwnProperty(g)?d="property":s.hasOwnProperty(g)?d="keyword":S.hasOwnProperty(g)?d="property":U.hasOwnProperty(g)?d=ee?"string-2":"property":Q.hasOwnProperty(g)?d="atom":J.hasOwnProperty(g)?d="keyword":d="error"}return r.context.type},w.atComponentBlock=function(e,n,r){return e=="}"?V(e,n,r):e=="{"?W(r)&&y(r,n,R?"block":"top",!1):(e=="word"&&(d="error"),r.context.type)},w.atBlock_parens=function(e,n,r){return e==")"?W(r):e=="{"||e=="}"?V(e,n,r,2):w.atBlock(e,n,r)},w.restricted_atBlock_before=function(e,n,r){return e=="{"?y(r,n,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(d="variable","restricted_atBlock_before"):G(e,n,r)},w.restricted_atBlock=function(e,n,r){return e=="}"?(r.stateArg=null,W(r)):e=="word"?(r.stateArg=="@font-face"&&!ce.hasOwnProperty(n.current().toLowerCase())||r.stateArg=="@counter-style"&&!ue.hasOwnProperty(n.current().toLowerCase())?d="error":d="property","maybeprop"):"restricted_atBlock"},w.keyframes=function(e,n,r){return e=="word"?(d="variable","keyframes"):e=="{"?y(r,n,"top"):G(e,n,r)},w.at=function(e,n,r){return e==";"?W(r):e=="{"||e=="}"?V(e,n,r):(e=="word"?d="tag":e=="hash"&&(d="builtin"),"at")},w.interpolation=function(e,n,r){return e=="}"?W(r):e=="{"||e==";"?V(e,n,r):(e=="word"?d="variable":e!="variable"&&e!="("&&e!=")"&&(d="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:q?"block":"top",stateArg:null,context:new te(q?"block":"top",e||0,null)}},token:function(e,n){if(!n.tokenize&&e.eatSpace())return null;var r=(n.tokenize||fe)(e,n);return r&&typeof r=="object"&&(Y=r[1],r=r[0]),d=r,Y!="comment"&&(n.state=w[n.state](Y,e,n)),d},indent:function(e,n){var r=e.context,g=n&&n.charAt(0),E=r.indent;return r.type=="prop"&&(g=="}"||g==")")&&(r=r.prev),r.prev&&(g=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,E=r.indent):(g==")"&&(r.type=="parens"||r.type=="atBlock_parens")||g=="{"&&(r.type=="at"||r.type=="atBlock"))&&(E=Math.max(0,r.indent-M))),E},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:de,fold:"brace"}});function v(c){for(var a={},q=0;q-1?p.backUp(k.length-z):k.match(/<\/?$/)&&(p.backUp(k.length),p.match(l,!1)||p.match(k)),m}var O={};function D(p){var l=O[p];return l||(O[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function F(p,l){var m=p.match(D(l));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function b(p,l){return new RegExp((l?"^":"")+"","i")}function $(p,l){for(var m in p)for(var k=l[m]||(l[m]=[]),z=p[m],P=z.length-1;P>=0;P--)k.unshift(z[P])}function C(p,l){for(var m=0;m=0;K--)k.script.unshift(["type",P[K].matches,P[K].mode]);function j(f,h){var _=m.token(f,h.htmlState),A=/\btag\b/.test(_),I;if(A&&!/[<>\s\/]/.test(f.current())&&(I=h.htmlState.tagName&&h.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(I))h.inTag=I+" ";else if(h.inTag&&A&&/>$/.test(f.current())){var L=/^([\S]+) (.*)/.exec(h.inTag);h.inTag=null;var T=f.current()==">"&&C(k[L[1]],L[2]),c=u.getMode(p,T),a=b(L[1],!0),q=b(L[1],!1);h.token=function(M,B){return M.match(a,!1)?(B.token=j,B.localState=B.localMode=null,null):N(M,q,B.localMode.token(M,B.localState))},h.localMode=c,h.localState=u.startState(c,m.indent(h.htmlState,"",""))}else h.inTag&&(h.inTag+=f.current(),f.eol()&&(h.inTag+=" "));return _}return{startState:function(){var f=u.startState(m);return{token:j,inTag:null,localMode:null,localState:null,htmlState:f}},copyState:function(f){var h;return f.localState&&(h=u.copyState(f.localMode,f.localState)),{token:f.token,inTag:f.inTag,localMode:f.localMode,localState:h,htmlState:u.copyState(m,f.htmlState)}},token:function(f,h){return h.token(f,h)},indent:function(f,h,_){return!f.localMode||/^\s*<\//.test(h)?m.indent(f.htmlState,h,_):f.localMode.indent?f.localMode.indent(f.localState,h,_):u.Pass},innerMode:function(f){return{state:f.localState||f.htmlState,mode:f.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})})();var se=ke.exports;const ye=ge(se),Se=be({__proto__:null,default:ye},[se]);export{Se as h}; diff --git a/admin-views/dist/assets/htmlmixed-75c6fb18.js.gz b/admin-views/dist/assets/htmlmixed-75c6fb18.js.gz new file mode 100644 index 00000000..5aa9a029 Binary files /dev/null and b/admin-views/dist/assets/htmlmixed-75c6fb18.js.gz differ diff --git a/admin-views/dist/assets/index-79ae6e73.js b/admin-views/dist/assets/index-16176cf1.js similarity index 90% rename from admin-views/dist/assets/index-79ae6e73.js rename to admin-views/dist/assets/index-16176cf1.js index 9f46f7cb..74167728 100644 --- a/admin-views/dist/assets/index-79ae6e73.js +++ b/admin-views/dist/assets/index-16176cf1.js @@ -9,7 +9,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var l$5=objectAssign,n$7=60103,p$5=60106;react_production_min.Fragment=60107;react_production_min.StrictMode=60108;react_production_min.Profiler=60114;var q$5=60109,r$7=60110,t$5=60112;react_production_min.Suspense=60113;var u$4=60115,v$4=60116;if(typeof Symbol=="function"&&Symbol.for){var w$3=Symbol.for;n$7=w$3("react.element"),p$5=w$3("react.portal"),react_production_min.Fragment=w$3("react.fragment"),react_production_min.StrictMode=w$3("react.strict_mode"),react_production_min.Profiler=w$3("react.profiler"),q$5=w$3("react.provider"),r$7=w$3("react.context"),t$5=w$3("react.forward_ref"),react_production_min.Suspense=w$3("react.suspense"),u$4=w$3("react.memo"),v$4=w$3("react.lazy")}var x$3=typeof Symbol=="function"&&Symbol.iterator;function y$4(x_){return x_===null||typeof x_!="object"?null:(x_=x$3&&x_[x$3]||x_["@@iterator"],typeof x_=="function"?x_:null)}function z$3(x_){for(var e0e="https://reactjs.org/docs/error-decoder.html?invariant="+x_,$P=1;$P"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ha$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ia$1=Object.prototype.hasOwnProperty,ja$1={},ka$1={};function la$1(x_){return ia$1.call(ka$1,x_)?!0:ia$1.call(ja$1,x_)?!1:ha$1.test(x_)?ka$1[x_]=!0:(ja$1[x_]=!0,!1)}function ma$1(x_,e0e,$P,t0e){if($P!==null&&$P.type===0)return!1;switch(typeof e0e){case"function":case"symbol":return!0;case"boolean":return t0e?!1:$P!==null?!$P.acceptsBooleans:(x_=x_.toLowerCase().slice(0,5),x_!=="data-"&&x_!=="aria-");default:return!1}}function na$1(x_,e0e,$P,t0e){if(e0e===null||typeof e0e>"u"||ma$1(x_,e0e,$P,t0e))return!0;if(t0e)return!1;if($P!==null)switch($P.type){case 3:return!e0e;case 4:return e0e===!1;case 5:return isNaN(e0e);case 6:return isNaN(e0e)||1>e0e}return!1}function B$2(x_,e0e,$P,t0e,r0e,n0e,a0e){this.acceptsBooleans=e0e===2||e0e===3||e0e===4,this.attributeName=t0e,this.attributeNamespace=r0e,this.mustUseProperty=$P,this.propertyName=x_,this.type=e0e,this.sanitizeURL=n0e,this.removeEmptyString=a0e}var D$2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x_){D$2[x_]=new B$2(x_,0,!1,x_,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x_){var e0e=x_[0];D$2[e0e]=new B$2(e0e,1,!1,x_[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(x_){D$2[x_]=new B$2(x_,3,!1,x_.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(x_){D$2[x_]=new B$2(x_,3,!0,x_,null,!1,!1)});["capture","download"].forEach(function(x_){D$2[x_]=new B$2(x_,4,!1,x_,null,!1,!1)});["cols","rows","size","span"].forEach(function(x_){D$2[x_]=new B$2(x_,6,!1,x_,null,!1,!1)});["rowSpan","start"].forEach(function(x_){D$2[x_]=new B$2(x_,5,!1,x_.toLowerCase(),null,!1,!1)});var oa$1=/[\-:]([a-z])/g;function pa$1(x_){return x_[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!1,!1)});D$2.xlinkHref=new B$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!0,!0)});function qa$1(x_,e0e,$P,t0e){var r0e=D$2.hasOwnProperty(e0e)?D$2[e0e]:null,n0e=r0e!==null?r0e.type===0:t0e?!1:!(!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ha$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ia$1=Object.prototype.hasOwnProperty,ja$1={},ka$1={};function la$1(x_){return ia$1.call(ka$1,x_)?!0:ia$1.call(ja$1,x_)?!1:ha$1.test(x_)?ka$1[x_]=!0:(ja$1[x_]=!0,!1)}function ma$1(x_,e0e,$P,t0e){if($P!==null&&$P.type===0)return!1;switch(typeof e0e){case"function":case"symbol":return!0;case"boolean":return t0e?!1:$P!==null?!$P.acceptsBooleans:(x_=x_.toLowerCase().slice(0,5),x_!=="data-"&&x_!=="aria-");default:return!1}}function na$1(x_,e0e,$P,t0e){if(e0e===null||typeof e0e>"u"||ma$1(x_,e0e,$P,t0e))return!0;if(t0e)return!1;if($P!==null)switch($P.type){case 3:return!e0e;case 4:return e0e===!1;case 5:return isNaN(e0e);case 6:return isNaN(e0e)||1>e0e}return!1}function B$2(x_,e0e,$P,t0e,r0e,n0e,a0e){this.acceptsBooleans=e0e===2||e0e===3||e0e===4,this.attributeName=t0e,this.attributeNamespace=r0e,this.mustUseProperty=$P,this.propertyName=x_,this.type=e0e,this.sanitizeURL=n0e,this.removeEmptyString=a0e}var D$2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x_){D$2[x_]=new B$2(x_,0,!1,x_,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x_){var e0e=x_[0];D$2[e0e]=new B$2(e0e,1,!1,x_[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(x_){D$2[x_]=new B$2(x_,3,!1,x_.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(x_){D$2[x_]=new B$2(x_,3,!0,x_,null,!1,!1)});["capture","download"].forEach(function(x_){D$2[x_]=new B$2(x_,4,!1,x_,null,!1,!1)});["cols","rows","size","span"].forEach(function(x_){D$2[x_]=new B$2(x_,6,!1,x_,null,!1,!1)});["rowSpan","start"].forEach(function(x_){D$2[x_]=new B$2(x_,5,!1,x_.toLowerCase(),null,!1,!1)});var oa$1=/[\-:]([a-z])/g;function pa$1(x_){return x_[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(x_){var e0e=x_.replace(oa$1,pa$1);D$2[e0e]=new B$2(e0e,1,!1,x_,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!1,!1)});D$2.xlinkHref=new B$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!0,!0)});function qa$1(x_,e0e,$P,t0e){var r0e=D$2.hasOwnProperty(e0e)?D$2[e0e]:null,n0e=r0e!==null?r0e.type===0:t0e?!1:!(!(2o0e||r0e[a0e]!==n0e[o0e])return` -`+r0e[a0e].replace(" at new "," at ");while(1<=a0e&&0<=o0e);break}}}finally{Oa$1=!1,Error.prepareStackTrace=$P}return(x_=x_?x_.displayName||x_.name:"")?Na$1(x_):""}function Qa$1(x_){switch(x_.tag){case 5:return Na$1(x_.type);case 16:return Na$1("Lazy");case 13:return Na$1("Suspense");case 19:return Na$1("SuspenseList");case 0:case 2:case 15:return x_=Pa$1(x_.type,!1),x_;case 11:return x_=Pa$1(x_.type.render,!1),x_;case 22:return x_=Pa$1(x_.type._render,!1),x_;case 1:return x_=Pa$1(x_.type,!0),x_;default:return""}}function Ra$1(x_){if(x_==null)return null;if(typeof x_=="function")return x_.displayName||x_.name||null;if(typeof x_=="string")return x_;switch(x_){case ua$1:return"Fragment";case ta$1:return"Portal";case xa$1:return"Profiler";case wa$1:return"StrictMode";case Ba$1:return"Suspense";case Ca$1:return"SuspenseList"}if(typeof x_=="object")switch(x_.$$typeof){case za$1:return(x_.displayName||"Context")+".Consumer";case ya$1:return(x_._context.displayName||"Context")+".Provider";case Aa$1:var e0e=x_.render;return e0e=e0e.displayName||e0e.name||"",x_.displayName||(e0e!==""?"ForwardRef("+e0e+")":"ForwardRef");case Da$1:return Ra$1(x_.type);case Fa$1:return Ra$1(x_._render);case Ea$1:e0e=x_._payload,x_=x_._init;try{return Ra$1(x_(e0e))}catch{}}return null}function Sa$1(x_){switch(typeof x_){case"boolean":case"number":case"object":case"string":case"undefined":return x_;default:return""}}function Ta$1(x_){var e0e=x_.type;return(x_=x_.nodeName)&&x_.toLowerCase()==="input"&&(e0e==="checkbox"||e0e==="radio")}function Ua$1(x_){var e0e=Ta$1(x_)?"checked":"value",$P=Object.getOwnPropertyDescriptor(x_.constructor.prototype,e0e),t0e=""+x_[e0e];if(!x_.hasOwnProperty(e0e)&&typeof $P<"u"&&typeof $P.get=="function"&&typeof $P.set=="function"){var r0e=$P.get,n0e=$P.set;return Object.defineProperty(x_,e0e,{configurable:!0,get:function(){return r0e.call(this)},set:function(a0e){t0e=""+a0e,n0e.call(this,a0e)}}),Object.defineProperty(x_,e0e,{enumerable:$P.enumerable}),{getValue:function(){return t0e},setValue:function(a0e){t0e=""+a0e},stopTracking:function(){x_._valueTracker=null,delete x_[e0e]}}}}function Va$1(x_){x_._valueTracker||(x_._valueTracker=Ua$1(x_))}function Wa$1(x_){if(!x_)return!1;var e0e=x_._valueTracker;if(!e0e)return!0;var $P=e0e.getValue(),t0e="";return x_&&(t0e=Ta$1(x_)?x_.checked?"true":"false":x_.value),x_=t0e,x_!==$P?(e0e.setValue(x_),!0):!1}function Xa$1(x_){if(x_=x_||(typeof document<"u"?document:void 0),typeof x_>"u")return null;try{return x_.activeElement||x_.body}catch{return x_.body}}function Ya$1(x_,e0e){var $P=e0e.checked;return m$5({},e0e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$P??x_._wrapperState.initialChecked})}function Za$1(x_,e0e){var $P=e0e.defaultValue==null?"":e0e.defaultValue,t0e=e0e.checked!=null?e0e.checked:e0e.defaultChecked;$P=Sa$1(e0e.value!=null?e0e.value:$P),x_._wrapperState={initialChecked:t0e,initialValue:$P,controlled:e0e.type==="checkbox"||e0e.type==="radio"?e0e.checked!=null:e0e.value!=null}}function $a$1(x_,e0e){e0e=e0e.checked,e0e!=null&&qa$1(x_,"checked",e0e,!1)}function ab$1(x_,e0e){$a$1(x_,e0e);var $P=Sa$1(e0e.value),t0e=e0e.type;if($P!=null)t0e==="number"?($P===0&&x_.value===""||x_.value!=$P)&&(x_.value=""+$P):x_.value!==""+$P&&(x_.value=""+$P);else if(t0e==="submit"||t0e==="reset"){x_.removeAttribute("value");return}e0e.hasOwnProperty("value")?bb$1(x_,e0e.type,$P):e0e.hasOwnProperty("defaultValue")&&bb$1(x_,e0e.type,Sa$1(e0e.defaultValue)),e0e.checked==null&&e0e.defaultChecked!=null&&(x_.defaultChecked=!!e0e.defaultChecked)}function cb$1(x_,e0e,$P){if(e0e.hasOwnProperty("value")||e0e.hasOwnProperty("defaultValue")){var t0e=e0e.type;if(!(t0e!=="submit"&&t0e!=="reset"||e0e.value!==void 0&&e0e.value!==null))return;e0e=""+x_._wrapperState.initialValue,$P||e0e===x_.value||(x_.value=e0e),x_.defaultValue=e0e}$P=x_.name,$P!==""&&(x_.name=""),x_.defaultChecked=!!x_._wrapperState.initialChecked,$P!==""&&(x_.name=$P)}function bb$1(x_,e0e,$P){(e0e!=="number"||Xa$1(x_.ownerDocument)!==x_)&&($P==null?x_.defaultValue=""+x_._wrapperState.initialValue:x_.defaultValue!==""+$P&&(x_.defaultValue=""+$P))}function db$1(x_){var e0e="";return aa$1.Children.forEach(x_,function($P){$P!=null&&(e0e+=$P)}),e0e}function eb$1(x_,e0e){return x_=m$5({children:void 0},e0e),(e0e=db$1(e0e.children))&&(x_.children=e0e),x_}function fb$1(x_,e0e,$P,t0e){if(x_=x_.options,e0e){e0e={};for(var r0e=0;r0e<$P.length;r0e++)e0e["$"+$P[r0e]]=!0;for($P=0;$P=$P.length))throw Error(y$3(93));$P=$P[0]}e0e=$P}e0e==null&&(e0e=""),$P=e0e}x_._wrapperState={initialValue:Sa$1($P)}}function ib$1(x_,e0e){var $P=Sa$1(e0e.value),t0e=Sa$1(e0e.defaultValue);$P!=null&&($P=""+$P,$P!==x_.value&&(x_.value=$P),e0e.defaultValue==null&&x_.defaultValue!==$P&&(x_.defaultValue=$P)),t0e!=null&&(x_.defaultValue=""+t0e)}function jb$1(x_){var e0e=x_.textContent;e0e===x_._wrapperState.initialValue&&e0e!==""&&e0e!==null&&(x_.value=e0e)}var kb$1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb$1(x_){switch(x_){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb$1(x_,e0e){return x_==null||x_==="http://www.w3.org/1999/xhtml"?lb$1(e0e):x_==="http://www.w3.org/2000/svg"&&e0e==="foreignObject"?"http://www.w3.org/1999/xhtml":x_}var nb$1,ob$1=function(x_){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e0e,$P,t0e,r0e){MSApp.execUnsafeLocalFunction(function(){return x_(e0e,$P,t0e,r0e)})}:x_}(function(x_,e0e){if(x_.namespaceURI!==kb$1.svg||"innerHTML"in x_)x_.innerHTML=e0e;else{for(nb$1=nb$1||document.createElement("div"),nb$1.innerHTML=""+e0e.valueOf().toString()+"",e0e=nb$1.firstChild;x_.firstChild;)x_.removeChild(x_.firstChild);for(;e0e.firstChild;)x_.appendChild(e0e.firstChild)}});function pb$1(x_,e0e){if(e0e){var $P=x_.firstChild;if($P&&$P===x_.lastChild&&$P.nodeType===3){$P.nodeValue=e0e;return}}x_.textContent=e0e}var qb$1={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rb$1=["Webkit","ms","Moz","O"];Object.keys(qb$1).forEach(function(x_){rb$1.forEach(function(e0e){e0e=e0e+x_.charAt(0).toUpperCase()+x_.substring(1),qb$1[e0e]=qb$1[x_]})});function sb$1(x_,e0e,$P){return e0e==null||typeof e0e=="boolean"||e0e===""?"":$P||typeof e0e!="number"||e0e===0||qb$1.hasOwnProperty(x_)&&qb$1[x_]?(""+e0e).trim():e0e+"px"}function tb$1(x_,e0e){x_=x_.style;for(var $P in e0e)if(e0e.hasOwnProperty($P)){var t0e=$P.indexOf("--")===0,r0e=sb$1($P,e0e[$P],t0e);$P==="float"&&($P="cssFloat"),t0e?x_.setProperty($P,r0e):x_[$P]=r0e}}var ub$1=m$5({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb$1(x_,e0e){if(e0e){if(ub$1[x_]&&(e0e.children!=null||e0e.dangerouslySetInnerHTML!=null))throw Error(y$3(137,x_));if(e0e.dangerouslySetInnerHTML!=null){if(e0e.children!=null)throw Error(y$3(60));if(!(typeof e0e.dangerouslySetInnerHTML=="object"&&"__html"in e0e.dangerouslySetInnerHTML))throw Error(y$3(61))}if(e0e.style!=null&&typeof e0e.style!="object")throw Error(y$3(62))}}function wb$1(x_,e0e){if(x_.indexOf("-")===-1)return typeof e0e.is=="string";switch(x_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb$1(x_){return x_=x_.target||x_.srcElement||window,x_.correspondingUseElement&&(x_=x_.correspondingUseElement),x_.nodeType===3?x_.parentNode:x_}var yb$1=null,zb$1=null,Ab$1=null;function Bb$1(x_){if(x_=Cb$1(x_)){if(typeof yb$1!="function")throw Error(y$3(280));var e0e=x_.stateNode;e0e&&(e0e=Db$1(e0e),yb$1(x_.stateNode,x_.type,e0e))}}function Eb$1(x_){zb$1?Ab$1?Ab$1.push(x_):Ab$1=[x_]:zb$1=x_}function Fb$1(){if(zb$1){var x_=zb$1,e0e=Ab$1;if(Ab$1=zb$1=null,Bb$1(x_),e0e)for(x_=0;x_t0e?0:1<$P;$P++)e0e.push(x_);return e0e}function $c$1(x_,e0e,$P){x_.pendingLanes|=e0e;var t0e=e0e-1;x_.suspendedLanes&=t0e,x_.pingedLanes&=t0e,x_=x_.eventTimes,e0e=31-Vc$1(e0e),x_[e0e]=$P}var Vc$1=Math.clz32?Math.clz32:ad$1,bd$1=Math.log,cd$1=Math.LN2;function ad$1(x_){return x_===0?32:31-(bd$1(x_)/cd$1|0)|0}var dd$1=r$6.unstable_UserBlockingPriority,ed$1=r$6.unstable_runWithPriority,fd$1=!0;function gd$1(x_,e0e,$P,t0e){Kb$1||Ib$1();var r0e=hd$1,n0e=Kb$1;Kb$1=!0;try{Hb$1(r0e,x_,e0e,$P,t0e)}finally{(Kb$1=n0e)||Mb$1()}}function id$2(x_,e0e,$P,t0e){ed$1(dd$1,hd$1.bind(null,x_,e0e,$P,t0e))}function hd$1(x_,e0e,$P,t0e){if(fd$1){var r0e;if((r0e=(e0e&4)===0)&&0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(x_,e0e){switch(x_){case"keyup":return $d$1.indexOf(e0e.keyCode)!==-1;case"keydown":return e0e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(x_){return x_=x_.detail,typeof x_=="object"&&"data"in x_?x_.data:null}var ie$1=!1;function je$1(x_,e0e){switch(x_){case"compositionend":return he$1(e0e);case"keypress":return e0e.which!==32?null:(fe$1=!0,ee$1);case"textInput":return x_=e0e.data,x_===ee$1&&fe$1?null:x_;default:return null}}function ke$1(x_,e0e){if(ie$1)return x_==="compositionend"||!ae$1&&ge$1(x_,e0e)?(x_=nd$1(),md$1=ld$1=kd$1=null,ie$1=!1,x_):null;switch(x_){case"paste":return null;case"keypress":if(!(e0e.ctrlKey||e0e.altKey||e0e.metaKey)||e0e.ctrlKey&&e0e.altKey){if(e0e.char&&1=e0e)return{node:$P,offset:e0e-x_};x_=t0e}e:{for(;$P;){if($P.nextSibling){$P=$P.nextSibling;break e}$P=$P.parentNode}$P=void 0}$P=Ke$1($P)}}function Me$1(x_,e0e){return x_&&e0e?x_===e0e?!0:x_&&x_.nodeType===3?!1:e0e&&e0e.nodeType===3?Me$1(x_,e0e.parentNode):"contains"in x_?x_.contains(e0e):x_.compareDocumentPosition?!!(x_.compareDocumentPosition(e0e)&16):!1:!1}function Ne$1(){for(var x_=window,e0e=Xa$1();e0e instanceof x_.HTMLIFrameElement;){try{var $P=typeof e0e.contentWindow.location.href=="string"}catch{$P=!1}if($P)x_=e0e.contentWindow;else break;e0e=Xa$1(x_.document)}return e0e}function Oe$1(x_){var e0e=x_&&x_.nodeName&&x_.nodeName.toLowerCase();return e0e&&(e0e==="input"&&(x_.type==="text"||x_.type==="search"||x_.type==="tel"||x_.type==="url"||x_.type==="password")||e0e==="textarea"||x_.contentEditable==="true")}var Pe$1=fa$1&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(x_,e0e,$P){var t0e=$P.window===$P?$P.document:$P.nodeType===9?$P:$P.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa$1(t0e)||(t0e=Qe$1,"selectionStart"in t0e&&Oe$1(t0e)?t0e={start:t0e.selectionStart,end:t0e.selectionEnd}:(t0e=(t0e.ownerDocument&&t0e.ownerDocument.defaultView||window).getSelection(),t0e={anchorNode:t0e.anchorNode,anchorOffset:t0e.anchorOffset,focusNode:t0e.focusNode,focusOffset:t0e.focusOffset}),Se$1&&Je$1(Se$1,t0e)||(Se$1=t0e,t0e=oe$1(Re$1,"onSelect"),0Af$1||(x_.current=zf$1[Af$1],zf$1[Af$1]=null,Af$1--)}function I$2(x_,e0e){Af$1++,zf$1[Af$1]=x_.current,x_.current=e0e}var Cf$1={},M$1=Bf$1(Cf$1),N$1=Bf$1(!1),Df$1=Cf$1;function Ef$1(x_,e0e){var $P=x_.type.contextTypes;if(!$P)return Cf$1;var t0e=x_.stateNode;if(t0e&&t0e.__reactInternalMemoizedUnmaskedChildContext===e0e)return t0e.__reactInternalMemoizedMaskedChildContext;var r0e={},n0e;for(n0e in $P)r0e[n0e]=e0e[n0e];return t0e&&(x_=x_.stateNode,x_.__reactInternalMemoizedUnmaskedChildContext=e0e,x_.__reactInternalMemoizedMaskedChildContext=r0e),r0e}function Ff(x_){return x_=x_.childContextTypes,x_!=null}function Gf$1(){H$2(N$1),H$2(M$1)}function Hf$1(x_,e0e,$P){if(M$1.current!==Cf$1)throw Error(y$3(168));I$2(M$1,e0e),I$2(N$1,$P)}function If$1(x_,e0e,$P){var t0e=x_.stateNode;if(x_=e0e.childContextTypes,typeof t0e.getChildContext!="function")return $P;t0e=t0e.getChildContext();for(var r0e in t0e)if(!(r0e in x_))throw Error(y$3(108,Ra$1(e0e)||"Unknown",r0e));return m$5({},$P,t0e)}function Jf$1(x_){return x_=(x_=x_.stateNode)&&x_.__reactInternalMemoizedMergedChildContext||Cf$1,Df$1=M$1.current,I$2(M$1,x_),I$2(N$1,N$1.current),!0}function Kf$1(x_,e0e,$P){var t0e=x_.stateNode;if(!t0e)throw Error(y$3(169));$P?(x_=If$1(x_,e0e,Df$1),t0e.__reactInternalMemoizedMergedChildContext=x_,H$2(N$1),H$2(M$1),I$2(M$1,x_)):H$2(N$1),I$2(N$1,$P)}var Lf$1=null,Mf$1=null,Nf$1=r$6.unstable_runWithPriority,Of$1=r$6.unstable_scheduleCallback,Pf$1=r$6.unstable_cancelCallback,Qf$1=r$6.unstable_shouldYield,Rf$1=r$6.unstable_requestPaint,Sf$1=r$6.unstable_now,Tf$1=r$6.unstable_getCurrentPriorityLevel,Uf$1=r$6.unstable_ImmediatePriority,Vf$1=r$6.unstable_UserBlockingPriority,Wf$1=r$6.unstable_NormalPriority,Xf$1=r$6.unstable_LowPriority,Yf$1=r$6.unstable_IdlePriority,Zf$1={},$f$1=Rf$1!==void 0?Rf$1:function(){},ag$1=null,bg$2=null,cg$1=!1,dg$1=Sf$1(),O$1=1e4>dg$1?Sf$1:function(){return Sf$1()-dg$1};function eg$1(){switch(Tf$1()){case Uf$1:return 99;case Vf$1:return 98;case Wf$1:return 97;case Xf$1:return 96;case Yf$1:return 95;default:throw Error(y$3(332))}}function fg$1(x_){switch(x_){case 99:return Uf$1;case 98:return Vf$1;case 97:return Wf$1;case 96:return Xf$1;case 95:return Yf$1;default:throw Error(y$3(332))}}function gg$1(x_,e0e){return x_=fg$1(x_),Nf$1(x_,e0e)}function hg$1(x_,e0e,$P){return x_=fg$1(x_),Of$1(x_,e0e,$P)}function ig$1(){if(bg$2!==null){var x_=bg$2;bg$2=null,Pf$1(x_)}jg$1()}function jg$1(){if(!cg$1&&ag$1!==null){cg$1=!0;var x_=0;try{var e0e=ag$1;gg$1(99,function(){for(;x_O0e?(z0e=M0e,M0e=null):z0e=M0e.sibling;var A0e=u0e(h0e,M0e,m0e[O0e],v0e);if(A0e===null){M0e===null&&(M0e=z0e);break}x_&&M0e&&A0e.alternate===null&&e0e(h0e,M0e),b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e,M0e=z0e}if(O0e===m0e.length)return $P(h0e,M0e),g0e;if(M0e===null){for(;O0eO0e?(z0e=M0e,M0e=null):z0e=M0e.sibling;var _0e=u0e(h0e,M0e,A0e.value,v0e);if(_0e===null){M0e===null&&(M0e=z0e);break}x_&&M0e&&_0e.alternate===null&&e0e(h0e,M0e),b0e=n0e(_0e,b0e,O0e),y0e===null?g0e=_0e:y0e.sibling=_0e,y0e=_0e,M0e=z0e}if(A0e.done)return $P(h0e,M0e),g0e;if(M0e===null){for(;!A0e.done;O0e++,A0e=m0e.next())A0e=c0e(h0e,A0e.value,v0e),A0e!==null&&(b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e);return g0e}for(M0e=t0e(h0e,M0e);!A0e.done;O0e++,A0e=m0e.next())A0e=d0e(M0e,h0e,O0e,A0e.value,v0e),A0e!==null&&(x_&&A0e.alternate!==null&&M0e.delete(A0e.key===null?O0e:A0e.key),b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e);return x_&&M0e.forEach(function($0e){return e0e(h0e,$0e)}),g0e}return function(h0e,b0e,m0e,v0e){var g0e=typeof m0e=="object"&&m0e!==null&&m0e.type===ua$1&&m0e.key===null;g0e&&(m0e=m0e.props.children);var y0e=typeof m0e=="object"&&m0e!==null;if(y0e)switch(m0e.$$typeof){case sa$1:e:{for(y0e=m0e.key,g0e=b0e;g0e!==null;){if(g0e.key===y0e){switch(g0e.tag){case 7:if(m0e.type===ua$1){$P(h0e,g0e.sibling),b0e=r0e(g0e,m0e.props.children),b0e.return=h0e,h0e=b0e;break e}break;default:if(g0e.elementType===m0e.type){$P(h0e,g0e.sibling),b0e=r0e(g0e,m0e.props),b0e.ref=Qg$1(h0e,g0e,m0e),b0e.return=h0e,h0e=b0e;break e}}$P(h0e,g0e);break}else e0e(h0e,g0e);g0e=g0e.sibling}m0e.type===ua$1?(b0e=Xg$1(m0e.props.children,h0e.mode,v0e,m0e.key),b0e.return=h0e,h0e=b0e):(v0e=Vg$1(m0e.type,m0e.key,m0e.props,null,h0e.mode,v0e),v0e.ref=Qg$1(h0e,b0e,m0e),v0e.return=h0e,h0e=v0e)}return a0e(h0e);case ta$1:e:{for(g0e=m0e.key;b0e!==null;){if(b0e.key===g0e)if(b0e.tag===4&&b0e.stateNode.containerInfo===m0e.containerInfo&&b0e.stateNode.implementation===m0e.implementation){$P(h0e,b0e.sibling),b0e=r0e(b0e,m0e.children||[]),b0e.return=h0e,h0e=b0e;break e}else{$P(h0e,b0e);break}else e0e(h0e,b0e);b0e=b0e.sibling}b0e=Wg$1(m0e,h0e.mode,v0e),b0e.return=h0e,h0e=b0e}return a0e(h0e)}if(typeof m0e=="string"||typeof m0e=="number")return m0e=""+m0e,b0e!==null&&b0e.tag===6?($P(h0e,b0e.sibling),b0e=r0e(b0e,m0e),b0e.return=h0e,h0e=b0e):($P(h0e,b0e),b0e=Ug$1(m0e,h0e.mode,v0e),b0e.return=h0e,h0e=b0e),a0e(h0e);if(Pg$1(m0e))return p0e(h0e,b0e,m0e,v0e);if(La$1(m0e))return f0e(h0e,b0e,m0e,v0e);if(y0e&&Rg$1(h0e,m0e),typeof m0e>"u"&&!g0e)switch(h0e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y$3(152,Ra$1(h0e.type)||"Component"))}return $P(h0e,b0e)}}var Yg$1=Sg$1(!0),Zg$1=Sg$1(!1),$g$1={},ah$1=Bf$1($g$1),bh$1=Bf$1($g$1),ch$1=Bf$1($g$1);function dh$1(x_){if(x_===$g$1)throw Error(y$3(174));return x_}function eh$1(x_,e0e){switch(I$2(ch$1,e0e),I$2(bh$1,x_),I$2(ah$1,$g$1),x_=e0e.nodeType,x_){case 9:case 11:e0e=(e0e=e0e.documentElement)?e0e.namespaceURI:mb$1(null,"");break;default:x_=x_===8?e0e.parentNode:e0e,e0e=x_.namespaceURI||null,x_=x_.tagName,e0e=mb$1(e0e,x_)}H$2(ah$1),I$2(ah$1,e0e)}function fh$1(){H$2(ah$1),H$2(bh$1),H$2(ch$1)}function gh$1(x_){dh$1(ch$1.current);var e0e=dh$1(ah$1.current),$P=mb$1(e0e,x_.type);e0e!==$P&&(I$2(bh$1,x_),I$2(ah$1,$P))}function hh$1(x_){bh$1.current===x_&&(H$2(ah$1),H$2(bh$1))}var P$1=Bf$1(0);function ih$1(x_){for(var e0e=x_;e0e!==null;){if(e0e.tag===13){var $P=e0e.memoizedState;if($P!==null&&($P=$P.dehydrated,$P===null||$P.data==="$?"||$P.data==="$!"))return e0e}else if(e0e.tag===19&&e0e.memoizedProps.revealOrder!==void 0){if(e0e.flags&64)return e0e}else if(e0e.child!==null){e0e.child.return=e0e,e0e=e0e.child;continue}if(e0e===x_)break;for(;e0e.sibling===null;){if(e0e.return===null||e0e.return===x_)return null;e0e=e0e.return}e0e.sibling.return=e0e.return,e0e=e0e.sibling}return null}var jh$1=null,kh=null,lh$1=!1;function mh$1(x_,e0e){var $P=nh$1(5,null,null,0);$P.elementType="DELETED",$P.type="DELETED",$P.stateNode=e0e,$P.return=x_,$P.flags=8,x_.lastEffect!==null?(x_.lastEffect.nextEffect=$P,x_.lastEffect=$P):x_.firstEffect=x_.lastEffect=$P}function oh$1(x_,e0e){switch(x_.tag){case 5:var $P=x_.type;return e0e=e0e.nodeType!==1||$P.toLowerCase()!==e0e.nodeName.toLowerCase()?null:e0e,e0e!==null?(x_.stateNode=e0e,!0):!1;case 6:return e0e=x_.pendingProps===""||e0e.nodeType!==3?null:e0e,e0e!==null?(x_.stateNode=e0e,!0):!1;case 13:return!1;default:return!1}}function ph$1(x_){if(lh$1){var e0e=kh;if(e0e){var $P=e0e;if(!oh$1(x_,e0e)){if(e0e=rf$1($P.nextSibling),!e0e||!oh$1(x_,e0e)){x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_;return}mh$1(jh$1,$P)}jh$1=x_,kh=rf$1(e0e.firstChild)}else x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_}}function qh$1(x_){for(x_=x_.return;x_!==null&&x_.tag!==5&&x_.tag!==3&&x_.tag!==13;)x_=x_.return;jh$1=x_}function rh$1(x_){if(x_!==jh$1)return!1;if(!lh$1)return qh$1(x_),lh$1=!0,!1;var e0e=x_.type;if(x_.tag!==5||e0e!=="head"&&e0e!=="body"&&!nf$1(e0e,x_.memoizedProps))for(e0e=kh;e0e;)mh$1(x_,e0e),e0e=rf$1(e0e.nextSibling);if(qh$1(x_),x_.tag===13){if(x_=x_.memoizedState,x_=x_!==null?x_.dehydrated:null,!x_)throw Error(y$3(317));e:{for(x_=x_.nextSibling,e0e=0;x_;){if(x_.nodeType===8){var $P=x_.data;if($P==="/$"){if(e0e===0){kh=rf$1(x_.nextSibling);break e}e0e--}else $P!=="$"&&$P!=="$!"&&$P!=="$?"||e0e++}x_=x_.nextSibling}kh=null}}else kh=jh$1?rf$1(x_.stateNode.nextSibling):null;return!0}function sh$1(){kh=jh$1=null,lh$1=!1}var th$1=[];function uh$1(){for(var x_=0;x_n0e))throw Error(y$3(301));n0e+=1,T$1=S$1=null,e0e.updateQueue=null,vh$1.current=Fh$1,x_=$P(t0e,r0e)}while(zh$1)}if(vh$1.current=Gh$1,e0e=S$1!==null&&S$1.next!==null,xh$1=0,T$1=S$1=R$1=null,yh$1=!1,e0e)throw Error(y$3(300));return x_}function Hh$1(){var x_={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_,T$1}function Ih$1(){if(S$1===null){var x_=R$1.alternate;x_=x_!==null?x_.memoizedState:null}else x_=S$1.next;var e0e=T$1===null?R$1.memoizedState:T$1.next;if(e0e!==null)T$1=e0e,S$1=x_;else{if(x_===null)throw Error(y$3(310));S$1=x_,x_={memoizedState:S$1.memoizedState,baseState:S$1.baseState,baseQueue:S$1.baseQueue,queue:S$1.queue,next:null},T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_}return T$1}function Jh$1(x_,e0e){return typeof e0e=="function"?e0e(x_):e0e}function Kh$1(x_){var e0e=Ih$1(),$P=e0e.queue;if($P===null)throw Error(y$3(311));$P.lastRenderedReducer=x_;var t0e=S$1,r0e=t0e.baseQueue,n0e=$P.pending;if(n0e!==null){if(r0e!==null){var a0e=r0e.next;r0e.next=n0e.next,n0e.next=a0e}t0e.baseQueue=r0e=n0e,$P.pending=null}if(r0e!==null){r0e=r0e.next,t0e=t0e.baseState;var o0e=a0e=n0e=null,i0e=r0e;do{var s0e=i0e.lane;if((xh$1&s0e)===s0e)o0e!==null&&(o0e=o0e.next={lane:0,action:i0e.action,eagerReducer:i0e.eagerReducer,eagerState:i0e.eagerState,next:null}),t0e=i0e.eagerReducer===x_?i0e.eagerState:x_(t0e,i0e.action);else{var l0e={lane:s0e,action:i0e.action,eagerReducer:i0e.eagerReducer,eagerState:i0e.eagerState,next:null};o0e===null?(a0e=o0e=l0e,n0e=t0e):o0e=o0e.next=l0e,R$1.lanes|=s0e,Dg$1|=s0e}i0e=i0e.next}while(i0e!==null&&i0e!==r0e);o0e===null?n0e=t0e:o0e.next=a0e,He$1(t0e,e0e.memoizedState)||(ug$1=!0),e0e.memoizedState=t0e,e0e.baseState=n0e,e0e.baseQueue=o0e,$P.lastRenderedState=t0e}return[e0e.memoizedState,$P.dispatch]}function Lh$1(x_){var e0e=Ih$1(),$P=e0e.queue;if($P===null)throw Error(y$3(311));$P.lastRenderedReducer=x_;var t0e=$P.dispatch,r0e=$P.pending,n0e=e0e.memoizedState;if(r0e!==null){$P.pending=null;var a0e=r0e=r0e.next;do n0e=x_(n0e,a0e.action),a0e=a0e.next;while(a0e!==r0e);He$1(n0e,e0e.memoizedState)||(ug$1=!0),e0e.memoizedState=n0e,e0e.baseQueue===null&&(e0e.baseState=n0e),$P.lastRenderedState=n0e}return[n0e,t0e]}function Mh$1(x_,e0e,$P){var t0e=e0e._getVersion;t0e=t0e(e0e._source);var r0e=e0e._workInProgressVersionPrimary;if(r0e!==null?x_=r0e===t0e:(x_=x_.mutableReadLanes,(x_=(xh$1&x_)===x_)&&(e0e._workInProgressVersionPrimary=t0e,th$1.push(e0e))),x_)return $P(e0e._source);throw th$1.push(e0e),Error(y$3(350))}function Nh$1(x_,e0e,$P,t0e){var r0e=U$1;if(r0e===null)throw Error(y$3(349));var n0e=e0e._getVersion,a0e=n0e(e0e._source),o0e=vh$1.current,i0e=o0e.useState(function(){return Mh$1(r0e,e0e,$P)}),s0e=i0e[1],l0e=i0e[0];i0e=T$1;var c0e=x_.memoizedState,u0e=c0e.refs,d0e=u0e.getSnapshot,p0e=c0e.source;c0e=c0e.subscribe;var f0e=R$1;return x_.memoizedState={refs:u0e,source:e0e,subscribe:t0e},o0e.useEffect(function(){u0e.getSnapshot=$P,u0e.setSnapshot=s0e;var h0e=n0e(e0e._source);if(!He$1(a0e,h0e)){h0e=$P(e0e._source),He$1(l0e,h0e)||(s0e(h0e),h0e=Ig$1(f0e),r0e.mutableReadLanes|=h0e&r0e.pendingLanes),h0e=r0e.mutableReadLanes,r0e.entangledLanes|=h0e;for(var b0e=r0e.entanglements,m0e=h0e;0$P?98:$P,function(){x_(!0)}),gg$1(97<$P?97:$P,function(){var t0e=wh$1.transition;wh$1.transition=1;try{x_(!1),e0e()}finally{wh$1.transition=t0e}})}function Oh$1(x_,e0e,$P){var t0e=Hg$1(),r0e=Ig$1(x_),n0e={lane:r0e,action:$P,eagerReducer:null,eagerState:null,next:null},a0e=e0e.pending;if(a0e===null?n0e.next=n0e:(n0e.next=a0e.next,a0e.next=n0e),e0e.pending=n0e,a0e=x_.alternate,x_===R$1||a0e!==null&&a0e===R$1)zh$1=yh$1=!0;else{if(x_.lanes===0&&(a0e===null||a0e.lanes===0)&&(a0e=e0e.lastRenderedReducer,a0e!==null))try{var o0e=e0e.lastRenderedState,i0e=a0e(o0e,$P);if(n0e.eagerReducer=a0e,n0e.eagerState=i0e,He$1(i0e,o0e))return}catch{}finally{}Jg$1(x_,r0e,t0e)}}var Gh$1={readContext:vg$1,useCallback:Ah$1,useContext:Ah$1,useEffect:Ah$1,useImperativeHandle:Ah$1,useLayoutEffect:Ah$1,useMemo:Ah$1,useReducer:Ah$1,useRef:Ah$1,useState:Ah$1,useDebugValue:Ah$1,useDeferredValue:Ah$1,useTransition:Ah$1,useMutableSource:Ah$1,useOpaqueIdentifier:Ah$1,unstable_isNewReconciler:!1},Dh$1={readContext:vg$1,useCallback:function(x_,e0e){return Hh$1().memoizedState=[x_,e0e===void 0?null:e0e],x_},useContext:vg$1,useEffect:Wh$1,useImperativeHandle:function(x_,e0e,$P){return $P=$P!=null?$P.concat([x_]):null,Uh$1(4,2,Zh$1.bind(null,e0e,x_),$P)},useLayoutEffect:function(x_,e0e){return Uh$1(4,2,x_,e0e)},useMemo:function(x_,e0e){var $P=Hh$1();return e0e=e0e===void 0?null:e0e,x_=x_(),$P.memoizedState=[x_,e0e],x_},useReducer:function(x_,e0e,$P){var t0e=Hh$1();return e0e=$P!==void 0?$P(e0e):e0e,t0e.memoizedState=t0e.baseState=e0e,x_=t0e.queue={pending:null,dispatch:null,lastRenderedReducer:x_,lastRenderedState:e0e},x_=x_.dispatch=Oh$1.bind(null,R$1,x_),[t0e.memoizedState,x_]},useRef:Sh$1,useState:Qh$1,useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Qh$1(x_),$P=e0e[0],t0e=e0e[1];return Wh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Qh$1(!1),e0e=x_[0];return x_=di$1.bind(null,x_[1]),Sh$1(x_),[x_,e0e]},useMutableSource:function(x_,e0e,$P){var t0e=Hh$1();return t0e.memoizedState={refs:{getSnapshot:e0e,setSnapshot:null},source:x_,subscribe:$P},Nh$1(t0e,x_,e0e,$P)},useOpaqueIdentifier:function(){if(lh$1){var x_=!1,e0e=uf$1(function(){throw x_||(x_=!0,$P("r:"+(tf$1++).toString(36))),Error(y$3(355))}),$P=Qh$1(e0e)[1];return!(R$1.mode&2)&&(R$1.flags|=516,Rh$1(5,function(){$P("r:"+(tf$1++).toString(36))},void 0,null)),e0e}return e0e="r:"+(tf$1++).toString(36),Qh$1(e0e),e0e},unstable_isNewReconciler:!1},Eh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Kh$1,useRef:Th$1,useState:function(){return Kh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Kh$1(Jh$1),$P=e0e[0],t0e=e0e[1];return Xh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Kh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Kh$1(Jh$1)[0]},unstable_isNewReconciler:!1},Fh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Lh$1,useRef:Th$1,useState:function(){return Lh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Lh$1(Jh$1),$P=e0e[0],t0e=e0e[1];return Xh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Lh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Lh$1(Jh$1)[0]},unstable_isNewReconciler:!1},ei$1=ra$1.ReactCurrentOwner,ug$1=!1;function fi$1(x_,e0e,$P,t0e){e0e.child=x_===null?Zg$1(e0e,null,$P,t0e):Yg$1(e0e,x_.child,$P,t0e)}function gi$1(x_,e0e,$P,t0e,r0e){$P=$P.render;var n0e=e0e.ref;return tg$1(e0e,r0e),t0e=Ch$1(x_,e0e,$P,t0e,n0e,r0e),x_!==null&&!ug$1?(e0e.updateQueue=x_.updateQueue,e0e.flags&=-517,x_.lanes&=~r0e,hi$1(x_,e0e,r0e)):(e0e.flags|=1,fi$1(x_,e0e,t0e,r0e),e0e.child)}function ii$1(x_,e0e,$P,t0e,r0e,n0e){if(x_===null){var a0e=$P.type;return typeof a0e=="function"&&!ji$1(a0e)&&a0e.defaultProps===void 0&&$P.compare===null&&$P.defaultProps===void 0?(e0e.tag=15,e0e.type=a0e,ki$1(x_,e0e,a0e,t0e,r0e,n0e)):(x_=Vg$1($P.type,null,t0e,e0e,e0e.mode,n0e),x_.ref=e0e.ref,x_.return=e0e,e0e.child=x_)}return a0e=x_.child,!(r0e&n0e)&&(r0e=a0e.memoizedProps,$P=$P.compare,$P=$P!==null?$P:Je$1,$P(r0e,t0e)&&x_.ref===e0e.ref)?hi$1(x_,e0e,n0e):(e0e.flags|=1,x_=Tg$1(a0e,t0e),x_.ref=e0e.ref,x_.return=e0e,e0e.child=x_)}function ki$1(x_,e0e,$P,t0e,r0e,n0e){if(x_!==null&&Je$1(x_.memoizedProps,t0e)&&x_.ref===e0e.ref)if(ug$1=!1,(n0e&r0e)!==0)x_.flags&16384&&(ug$1=!0);else return e0e.lanes=x_.lanes,hi$1(x_,e0e,n0e);return li$1(x_,e0e,$P,t0e,n0e)}function mi$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=t0e.children,n0e=x_!==null?x_.memoizedState:null;if(t0e.mode==="hidden"||t0e.mode==="unstable-defer-without-hiding")if(!(e0e.mode&4))e0e.memoizedState={baseLanes:0},ni$1(e0e,$P);else if($P&1073741824)e0e.memoizedState={baseLanes:0},ni$1(e0e,n0e!==null?n0e.baseLanes:$P);else return x_=n0e!==null?n0e.baseLanes|$P:$P,e0e.lanes=e0e.childLanes=1073741824,e0e.memoizedState={baseLanes:x_},ni$1(e0e,x_),null;else n0e!==null?(t0e=n0e.baseLanes|$P,e0e.memoizedState=null):t0e=$P,ni$1(e0e,t0e);return fi$1(x_,e0e,r0e,$P),e0e.child}function oi$1(x_,e0e){var $P=e0e.ref;(x_===null&&$P!==null||x_!==null&&x_.ref!==$P)&&(e0e.flags|=128)}function li$1(x_,e0e,$P,t0e,r0e){var n0e=Ff($P)?Df$1:M$1.current;return n0e=Ef$1(e0e,n0e),tg$1(e0e,r0e),$P=Ch$1(x_,e0e,$P,t0e,n0e,r0e),x_!==null&&!ug$1?(e0e.updateQueue=x_.updateQueue,e0e.flags&=-517,x_.lanes&=~r0e,hi$1(x_,e0e,r0e)):(e0e.flags|=1,fi$1(x_,e0e,$P,r0e),e0e.child)}function pi$1(x_,e0e,$P,t0e,r0e){if(Ff($P)){var n0e=!0;Jf$1(e0e)}else n0e=!1;if(tg$1(e0e,r0e),e0e.stateNode===null)x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),Mg$1(e0e,$P,t0e),Og$1(e0e,$P,t0e,r0e),t0e=!0;else if(x_===null){var a0e=e0e.stateNode,o0e=e0e.memoizedProps;a0e.props=o0e;var i0e=a0e.context,s0e=$P.contextType;typeof s0e=="object"&&s0e!==null?s0e=vg$1(s0e):(s0e=Ff($P)?Df$1:M$1.current,s0e=Ef$1(e0e,s0e));var l0e=$P.getDerivedStateFromProps,c0e=typeof l0e=="function"||typeof a0e.getSnapshotBeforeUpdate=="function";c0e||typeof a0e.UNSAFE_componentWillReceiveProps!="function"&&typeof a0e.componentWillReceiveProps!="function"||(o0e!==t0e||i0e!==s0e)&&Ng$1(e0e,a0e,t0e,s0e),wg$1=!1;var u0e=e0e.memoizedState;a0e.state=u0e,Cg$1(e0e,t0e,a0e,r0e),i0e=e0e.memoizedState,o0e!==t0e||u0e!==i0e||N$1.current||wg$1?(typeof l0e=="function"&&(Gg$1(e0e,$P,l0e,t0e),i0e=e0e.memoizedState),(o0e=wg$1||Lg$1(e0e,$P,o0e,t0e,u0e,i0e,s0e))?(c0e||typeof a0e.UNSAFE_componentWillMount!="function"&&typeof a0e.componentWillMount!="function"||(typeof a0e.componentWillMount=="function"&&a0e.componentWillMount(),typeof a0e.UNSAFE_componentWillMount=="function"&&a0e.UNSAFE_componentWillMount()),typeof a0e.componentDidMount=="function"&&(e0e.flags|=4)):(typeof a0e.componentDidMount=="function"&&(e0e.flags|=4),e0e.memoizedProps=t0e,e0e.memoizedState=i0e),a0e.props=t0e,a0e.state=i0e,a0e.context=s0e,t0e=o0e):(typeof a0e.componentDidMount=="function"&&(e0e.flags|=4),t0e=!1)}else{a0e=e0e.stateNode,yg$1(x_,e0e),o0e=e0e.memoizedProps,s0e=e0e.type===e0e.elementType?o0e:lg$1(e0e.type,o0e),a0e.props=s0e,c0e=e0e.pendingProps,u0e=a0e.context,i0e=$P.contextType,typeof i0e=="object"&&i0e!==null?i0e=vg$1(i0e):(i0e=Ff($P)?Df$1:M$1.current,i0e=Ef$1(e0e,i0e));var d0e=$P.getDerivedStateFromProps;(l0e=typeof d0e=="function"||typeof a0e.getSnapshotBeforeUpdate=="function")||typeof a0e.UNSAFE_componentWillReceiveProps!="function"&&typeof a0e.componentWillReceiveProps!="function"||(o0e!==c0e||u0e!==i0e)&&Ng$1(e0e,a0e,t0e,i0e),wg$1=!1,u0e=e0e.memoizedState,a0e.state=u0e,Cg$1(e0e,t0e,a0e,r0e);var p0e=e0e.memoizedState;o0e!==c0e||u0e!==p0e||N$1.current||wg$1?(typeof d0e=="function"&&(Gg$1(e0e,$P,d0e,t0e),p0e=e0e.memoizedState),(s0e=wg$1||Lg$1(e0e,$P,s0e,t0e,u0e,p0e,i0e))?(l0e||typeof a0e.UNSAFE_componentWillUpdate!="function"&&typeof a0e.componentWillUpdate!="function"||(typeof a0e.componentWillUpdate=="function"&&a0e.componentWillUpdate(t0e,p0e,i0e),typeof a0e.UNSAFE_componentWillUpdate=="function"&&a0e.UNSAFE_componentWillUpdate(t0e,p0e,i0e)),typeof a0e.componentDidUpdate=="function"&&(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate=="function"&&(e0e.flags|=256)):(typeof a0e.componentDidUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=256),e0e.memoizedProps=t0e,e0e.memoizedState=p0e),a0e.props=t0e,a0e.state=p0e,a0e.context=i0e,t0e=s0e):(typeof a0e.componentDidUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=256),t0e=!1)}return qi$1(x_,e0e,$P,t0e,n0e,r0e)}function qi$1(x_,e0e,$P,t0e,r0e,n0e){oi$1(x_,e0e);var a0e=(e0e.flags&64)!==0;if(!t0e&&!a0e)return r0e&&Kf$1(e0e,$P,!1),hi$1(x_,e0e,n0e);t0e=e0e.stateNode,ei$1.current=e0e;var o0e=a0e&&typeof $P.getDerivedStateFromError!="function"?null:t0e.render();return e0e.flags|=1,x_!==null&&a0e?(e0e.child=Yg$1(e0e,x_.child,null,n0e),e0e.child=Yg$1(e0e,null,o0e,n0e)):fi$1(x_,e0e,o0e,n0e),e0e.memoizedState=t0e.state,r0e&&Kf$1(e0e,$P,!0),e0e.child}function ri$1(x_){var e0e=x_.stateNode;e0e.pendingContext?Hf$1(x_,e0e.pendingContext,e0e.pendingContext!==e0e.context):e0e.context&&Hf$1(x_,e0e.context,!1),eh$1(x_,e0e.containerInfo)}var si$1={dehydrated:null,retryLane:0};function ti$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=P$1.current,n0e=!1,a0e;return(a0e=(e0e.flags&64)!==0)||(a0e=x_!==null&&x_.memoizedState===null?!1:(r0e&2)!==0),a0e?(n0e=!0,e0e.flags&=-65):x_!==null&&x_.memoizedState===null||t0e.fallback===void 0||t0e.unstable_avoidThisFallback===!0||(r0e|=1),I$2(P$1,r0e&1),x_===null?(t0e.fallback!==void 0&&ph$1(e0e),x_=t0e.children,r0e=t0e.fallback,n0e?(x_=ui$1(e0e,x_,r0e,$P),e0e.child.memoizedState={baseLanes:$P},e0e.memoizedState=si$1,x_):typeof t0e.unstable_expectedLoadTime=="number"?(x_=ui$1(e0e,x_,r0e,$P),e0e.child.memoizedState={baseLanes:$P},e0e.memoizedState=si$1,e0e.lanes=33554432,x_):($P=vi$1({mode:"visible",children:x_},e0e.mode,$P,null),$P.return=e0e,e0e.child=$P)):x_.memoizedState!==null?n0e?(t0e=wi$1(x_,e0e,t0e.children,t0e.fallback,$P),n0e=e0e.child,r0e=x_.child.memoizedState,n0e.memoizedState=r0e===null?{baseLanes:$P}:{baseLanes:r0e.baseLanes|$P},n0e.childLanes=x_.childLanes&~$P,e0e.memoizedState=si$1,t0e):($P=xi$1(x_,e0e,t0e.children,$P),e0e.memoizedState=null,$P):n0e?(t0e=wi$1(x_,e0e,t0e.children,t0e.fallback,$P),n0e=e0e.child,r0e=x_.child.memoizedState,n0e.memoizedState=r0e===null?{baseLanes:$P}:{baseLanes:r0e.baseLanes|$P},n0e.childLanes=x_.childLanes&~$P,e0e.memoizedState=si$1,t0e):($P=xi$1(x_,e0e,t0e.children,$P),e0e.memoizedState=null,$P)}function ui$1(x_,e0e,$P,t0e){var r0e=x_.mode,n0e=x_.child;return e0e={mode:"hidden",children:e0e},!(r0e&2)&&n0e!==null?(n0e.childLanes=0,n0e.pendingProps=e0e):n0e=vi$1(e0e,r0e,0,null),$P=Xg$1($P,r0e,t0e,null),n0e.return=x_,$P.return=x_,n0e.sibling=$P,x_.child=n0e,$P}function xi$1(x_,e0e,$P,t0e){var r0e=x_.child;return x_=r0e.sibling,$P=Tg$1(r0e,{mode:"visible",children:$P}),!(e0e.mode&2)&&($P.lanes=t0e),$P.return=e0e,$P.sibling=null,x_!==null&&(x_.nextEffect=null,x_.flags=8,e0e.firstEffect=e0e.lastEffect=x_),e0e.child=$P}function wi$1(x_,e0e,$P,t0e,r0e){var n0e=e0e.mode,a0e=x_.child;x_=a0e.sibling;var o0e={mode:"hidden",children:$P};return!(n0e&2)&&e0e.child!==a0e?($P=e0e.child,$P.childLanes=0,$P.pendingProps=o0e,a0e=$P.lastEffect,a0e!==null?(e0e.firstEffect=$P.firstEffect,e0e.lastEffect=a0e,a0e.nextEffect=null):e0e.firstEffect=e0e.lastEffect=null):$P=Tg$1(a0e,o0e),x_!==null?t0e=Tg$1(x_,t0e):(t0e=Xg$1(t0e,n0e,r0e,null),t0e.flags|=2),t0e.return=e0e,$P.return=e0e,$P.sibling=t0e,e0e.child=$P,t0e}function yi$1(x_,e0e){x_.lanes|=e0e;var $P=x_.alternate;$P!==null&&($P.lanes|=e0e),sg$1(x_.return,e0e)}function zi$1(x_,e0e,$P,t0e,r0e,n0e){var a0e=x_.memoizedState;a0e===null?x_.memoizedState={isBackwards:e0e,rendering:null,renderingStartTime:0,last:t0e,tail:$P,tailMode:r0e,lastEffect:n0e}:(a0e.isBackwards=e0e,a0e.rendering=null,a0e.renderingStartTime=0,a0e.last=t0e,a0e.tail=$P,a0e.tailMode=r0e,a0e.lastEffect=n0e)}function Ai$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=t0e.revealOrder,n0e=t0e.tail;if(fi$1(x_,e0e,t0e.children,$P),t0e=P$1.current,t0e&2)t0e=t0e&1|2,e0e.flags|=64;else{if(x_!==null&&x_.flags&64)e:for(x_=e0e.child;x_!==null;){if(x_.tag===13)x_.memoizedState!==null&&yi$1(x_,$P);else if(x_.tag===19)yi$1(x_,$P);else if(x_.child!==null){x_.child.return=x_,x_=x_.child;continue}if(x_===e0e)break e;for(;x_.sibling===null;){if(x_.return===null||x_.return===e0e)break e;x_=x_.return}x_.sibling.return=x_.return,x_=x_.sibling}t0e&=1}if(I$2(P$1,t0e),!(e0e.mode&2))e0e.memoizedState=null;else switch(r0e){case"forwards":for($P=e0e.child,r0e=null;$P!==null;)x_=$P.alternate,x_!==null&&ih$1(x_)===null&&(r0e=$P),$P=$P.sibling;$P=r0e,$P===null?(r0e=e0e.child,e0e.child=null):(r0e=$P.sibling,$P.sibling=null),zi$1(e0e,!1,r0e,$P,n0e,e0e.lastEffect);break;case"backwards":for($P=null,r0e=e0e.child,e0e.child=null;r0e!==null;){if(x_=r0e.alternate,x_!==null&&ih$1(x_)===null){e0e.child=r0e;break}x_=r0e.sibling,r0e.sibling=$P,$P=r0e,r0e=x_}zi$1(e0e,!0,$P,null,n0e,e0e.lastEffect);break;case"together":zi$1(e0e,!1,null,null,void 0,e0e.lastEffect);break;default:e0e.memoizedState=null}return e0e.child}function hi$1(x_,e0e,$P){if(x_!==null&&(e0e.dependencies=x_.dependencies),Dg$1|=e0e.lanes,$P&e0e.childLanes){if(x_!==null&&e0e.child!==x_.child)throw Error(y$3(153));if(e0e.child!==null){for(x_=e0e.child,$P=Tg$1(x_,x_.pendingProps),e0e.child=$P,$P.return=e0e;x_.sibling!==null;)x_=x_.sibling,$P=$P.sibling=Tg$1(x_,x_.pendingProps),$P.return=e0e;$P.sibling=null}return e0e.child}return null}var Bi$1,Ci$1,Di$1,Ei$1;Bi$1=function(x_,e0e){for(var $P=e0e.child;$P!==null;){if($P.tag===5||$P.tag===6)x_.appendChild($P.stateNode);else if($P.tag!==4&&$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===e0e)break;for(;$P.sibling===null;){if($P.return===null||$P.return===e0e)return;$P=$P.return}$P.sibling.return=$P.return,$P=$P.sibling}};Ci$1=function(){};Di$1=function(x_,e0e,$P,t0e){var r0e=x_.memoizedProps;if(r0e!==t0e){x_=e0e.stateNode,dh$1(ah$1.current);var n0e=null;switch($P){case"input":r0e=Ya$1(x_,r0e),t0e=Ya$1(x_,t0e),n0e=[];break;case"option":r0e=eb$1(x_,r0e),t0e=eb$1(x_,t0e),n0e=[];break;case"select":r0e=m$5({},r0e,{value:void 0}),t0e=m$5({},t0e,{value:void 0}),n0e=[];break;case"textarea":r0e=gb$1(x_,r0e),t0e=gb$1(x_,t0e),n0e=[];break;default:typeof r0e.onClick!="function"&&typeof t0e.onClick=="function"&&(x_.onclick=jf$1)}vb$1($P,t0e);var a0e;$P=null;for(s0e in r0e)if(!t0e.hasOwnProperty(s0e)&&r0e.hasOwnProperty(s0e)&&r0e[s0e]!=null)if(s0e==="style"){var o0e=r0e[s0e];for(a0e in o0e)o0e.hasOwnProperty(a0e)&&($P||($P={}),$P[a0e]="")}else s0e!=="dangerouslySetInnerHTML"&&s0e!=="children"&&s0e!=="suppressContentEditableWarning"&&s0e!=="suppressHydrationWarning"&&s0e!=="autoFocus"&&(ca$1.hasOwnProperty(s0e)?n0e||(n0e=[]):(n0e=n0e||[]).push(s0e,null));for(s0e in t0e){var i0e=t0e[s0e];if(o0e=r0e!=null?r0e[s0e]:void 0,t0e.hasOwnProperty(s0e)&&i0e!==o0e&&(i0e!=null||o0e!=null))if(s0e==="style")if(o0e){for(a0e in o0e)!o0e.hasOwnProperty(a0e)||i0e&&i0e.hasOwnProperty(a0e)||($P||($P={}),$P[a0e]="");for(a0e in i0e)i0e.hasOwnProperty(a0e)&&o0e[a0e]!==i0e[a0e]&&($P||($P={}),$P[a0e]=i0e[a0e])}else $P||(n0e||(n0e=[]),n0e.push(s0e,$P)),$P=i0e;else s0e==="dangerouslySetInnerHTML"?(i0e=i0e?i0e.__html:void 0,o0e=o0e?o0e.__html:void 0,i0e!=null&&o0e!==i0e&&(n0e=n0e||[]).push(s0e,i0e)):s0e==="children"?typeof i0e!="string"&&typeof i0e!="number"||(n0e=n0e||[]).push(s0e,""+i0e):s0e!=="suppressContentEditableWarning"&&s0e!=="suppressHydrationWarning"&&(ca$1.hasOwnProperty(s0e)?(i0e!=null&&s0e==="onScroll"&&G$2("scroll",x_),n0e||o0e===i0e||(n0e=[])):typeof i0e=="object"&&i0e!==null&&i0e.$$typeof===Ga$1?i0e.toString():(n0e=n0e||[]).push(s0e,i0e))}$P&&(n0e=n0e||[]).push("style",$P);var s0e=n0e;(e0e.updateQueue=s0e)&&(e0e.flags|=4)}};Ei$1=function(x_,e0e,$P,t0e){$P!==t0e&&(e0e.flags|=4)};function Fi$1(x_,e0e){if(!lh$1)switch(x_.tailMode){case"hidden":e0e=x_.tail;for(var $P=null;e0e!==null;)e0e.alternate!==null&&($P=e0e),e0e=e0e.sibling;$P===null?x_.tail=null:$P.sibling=null;break;case"collapsed":$P=x_.tail;for(var t0e=null;$P!==null;)$P.alternate!==null&&(t0e=$P),$P=$P.sibling;t0e===null?e0e||x_.tail===null?x_.tail=null:x_.tail.sibling=null:t0e.sibling=null}}function Gi$1(x_,e0e,$P){var t0e=e0e.pendingProps;switch(e0e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ff(e0e.type)&&Gf$1(),null;case 3:return fh$1(),H$2(N$1),H$2(M$1),uh$1(),t0e=e0e.stateNode,t0e.pendingContext&&(t0e.context=t0e.pendingContext,t0e.pendingContext=null),(x_===null||x_.child===null)&&(rh$1(e0e)?e0e.flags|=4:t0e.hydrate||(e0e.flags|=256)),Ci$1(e0e),null;case 5:hh$1(e0e);var r0e=dh$1(ch$1.current);if($P=e0e.type,x_!==null&&e0e.stateNode!=null)Di$1(x_,e0e,$P,t0e,r0e),x_.ref!==e0e.ref&&(e0e.flags|=128);else{if(!t0e){if(e0e.stateNode===null)throw Error(y$3(166));return null}if(x_=dh$1(ah$1.current),rh$1(e0e)){t0e=e0e.stateNode,$P=e0e.type;var n0e=e0e.memoizedProps;switch(t0e[wf$1]=e0e,t0e[xf$1]=n0e,$P){case"dialog":G$2("cancel",t0e),G$2("close",t0e);break;case"iframe":case"object":case"embed":G$2("load",t0e);break;case"video":case"audio":for(x_=0;x_<\/script>",x_=x_.removeChild(x_.firstChild)):typeof t0e.is=="string"?x_=a0e.createElement($P,{is:t0e.is}):(x_=a0e.createElement($P),$P==="select"&&(a0e=x_,t0e.multiple?a0e.multiple=!0:t0e.size&&(a0e.size=t0e.size))):x_=a0e.createElementNS(x_,$P),x_[wf$1]=e0e,x_[xf$1]=t0e,Bi$1(x_,e0e,!1,!1),e0e.stateNode=x_,a0e=wb$1($P,t0e),$P){case"dialog":G$2("cancel",x_),G$2("close",x_),r0e=t0e;break;case"iframe":case"object":case"embed":G$2("load",x_),r0e=t0e;break;case"video":case"audio":for(r0e=0;r0eJi$1&&(e0e.flags|=64,n0e=!0,Fi$1(t0e,!1),e0e.lanes=33554432)}else{if(!n0e)if(x_=ih$1(a0e),x_!==null){if(e0e.flags|=64,n0e=!0,$P=x_.updateQueue,$P!==null&&(e0e.updateQueue=$P,e0e.flags|=4),Fi$1(t0e,!0),t0e.tail===null&&t0e.tailMode==="hidden"&&!a0e.alternate&&!lh$1)return e0e=e0e.lastEffect=t0e.lastEffect,e0e!==null&&(e0e.nextEffect=null),null}else 2*O$1()-t0e.renderingStartTime>Ji$1&&$P!==1073741824&&(e0e.flags|=64,n0e=!0,Fi$1(t0e,!1),e0e.lanes=33554432);t0e.isBackwards?(a0e.sibling=e0e.child,e0e.child=a0e):($P=t0e.last,$P!==null?$P.sibling=a0e:e0e.child=a0e,t0e.last=a0e)}return t0e.tail!==null?($P=t0e.tail,t0e.rendering=$P,t0e.tail=$P.sibling,t0e.lastEffect=e0e.lastEffect,t0e.renderingStartTime=O$1(),$P.sibling=null,e0e=P$1.current,I$2(P$1,n0e?e0e&1|2:e0e&1),$P):null;case 23:case 24:return Ki$1(),x_!==null&&x_.memoizedState!==null!=(e0e.memoizedState!==null)&&t0e.mode!=="unstable-defer-without-hiding"&&(e0e.flags|=4),null}throw Error(y$3(156,e0e.tag))}function Li$1(x_){switch(x_.tag){case 1:Ff(x_.type)&&Gf$1();var e0e=x_.flags;return e0e&4096?(x_.flags=e0e&-4097|64,x_):null;case 3:if(fh$1(),H$2(N$1),H$2(M$1),uh$1(),e0e=x_.flags,e0e&64)throw Error(y$3(285));return x_.flags=e0e&-4097|64,x_;case 5:return hh$1(x_),null;case 13:return H$2(P$1),e0e=x_.flags,e0e&4096?(x_.flags=e0e&-4097|64,x_):null;case 19:return H$2(P$1),null;case 4:return fh$1(),null;case 10:return rg$1(x_),null;case 23:case 24:return Ki$1(),null;default:return null}}function Mi$1(x_,e0e){try{var $P="",t0e=e0e;do $P+=Qa$1(t0e),t0e=t0e.return;while(t0e);var r0e=$P}catch(n0e){r0e=` +`+r0e[a0e].replace(" at new "," at ");while(1<=a0e&&0<=o0e);break}}}finally{Oa$1=!1,Error.prepareStackTrace=$P}return(x_=x_?x_.displayName||x_.name:"")?Na$1(x_):""}function Qa$1(x_){switch(x_.tag){case 5:return Na$1(x_.type);case 16:return Na$1("Lazy");case 13:return Na$1("Suspense");case 19:return Na$1("SuspenseList");case 0:case 2:case 15:return x_=Pa$1(x_.type,!1),x_;case 11:return x_=Pa$1(x_.type.render,!1),x_;case 22:return x_=Pa$1(x_.type._render,!1),x_;case 1:return x_=Pa$1(x_.type,!0),x_;default:return""}}function Ra$1(x_){if(x_==null)return null;if(typeof x_=="function")return x_.displayName||x_.name||null;if(typeof x_=="string")return x_;switch(x_){case ua$1:return"Fragment";case ta$1:return"Portal";case xa$1:return"Profiler";case wa$1:return"StrictMode";case Ba$1:return"Suspense";case Ca$1:return"SuspenseList"}if(typeof x_=="object")switch(x_.$$typeof){case za$1:return(x_.displayName||"Context")+".Consumer";case ya$1:return(x_._context.displayName||"Context")+".Provider";case Aa$1:var e0e=x_.render;return e0e=e0e.displayName||e0e.name||"",x_.displayName||(e0e!==""?"ForwardRef("+e0e+")":"ForwardRef");case Da$1:return Ra$1(x_.type);case Fa$1:return Ra$1(x_._render);case Ea$1:e0e=x_._payload,x_=x_._init;try{return Ra$1(x_(e0e))}catch{}}return null}function Sa$1(x_){switch(typeof x_){case"boolean":case"number":case"object":case"string":case"undefined":return x_;default:return""}}function Ta$1(x_){var e0e=x_.type;return(x_=x_.nodeName)&&x_.toLowerCase()==="input"&&(e0e==="checkbox"||e0e==="radio")}function Ua$1(x_){var e0e=Ta$1(x_)?"checked":"value",$P=Object.getOwnPropertyDescriptor(x_.constructor.prototype,e0e),t0e=""+x_[e0e];if(!x_.hasOwnProperty(e0e)&&typeof $P<"u"&&typeof $P.get=="function"&&typeof $P.set=="function"){var r0e=$P.get,n0e=$P.set;return Object.defineProperty(x_,e0e,{configurable:!0,get:function(){return r0e.call(this)},set:function(a0e){t0e=""+a0e,n0e.call(this,a0e)}}),Object.defineProperty(x_,e0e,{enumerable:$P.enumerable}),{getValue:function(){return t0e},setValue:function(a0e){t0e=""+a0e},stopTracking:function(){x_._valueTracker=null,delete x_[e0e]}}}}function Va$1(x_){x_._valueTracker||(x_._valueTracker=Ua$1(x_))}function Wa$1(x_){if(!x_)return!1;var e0e=x_._valueTracker;if(!e0e)return!0;var $P=e0e.getValue(),t0e="";return x_&&(t0e=Ta$1(x_)?x_.checked?"true":"false":x_.value),x_=t0e,x_!==$P?(e0e.setValue(x_),!0):!1}function Xa$1(x_){if(x_=x_||(typeof document<"u"?document:void 0),typeof x_>"u")return null;try{return x_.activeElement||x_.body}catch{return x_.body}}function Ya$1(x_,e0e){var $P=e0e.checked;return m$4({},e0e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$P??x_._wrapperState.initialChecked})}function Za$1(x_,e0e){var $P=e0e.defaultValue==null?"":e0e.defaultValue,t0e=e0e.checked!=null?e0e.checked:e0e.defaultChecked;$P=Sa$1(e0e.value!=null?e0e.value:$P),x_._wrapperState={initialChecked:t0e,initialValue:$P,controlled:e0e.type==="checkbox"||e0e.type==="radio"?e0e.checked!=null:e0e.value!=null}}function $a$1(x_,e0e){e0e=e0e.checked,e0e!=null&&qa$1(x_,"checked",e0e,!1)}function ab$1(x_,e0e){$a$1(x_,e0e);var $P=Sa$1(e0e.value),t0e=e0e.type;if($P!=null)t0e==="number"?($P===0&&x_.value===""||x_.value!=$P)&&(x_.value=""+$P):x_.value!==""+$P&&(x_.value=""+$P);else if(t0e==="submit"||t0e==="reset"){x_.removeAttribute("value");return}e0e.hasOwnProperty("value")?bb$1(x_,e0e.type,$P):e0e.hasOwnProperty("defaultValue")&&bb$1(x_,e0e.type,Sa$1(e0e.defaultValue)),e0e.checked==null&&e0e.defaultChecked!=null&&(x_.defaultChecked=!!e0e.defaultChecked)}function cb$1(x_,e0e,$P){if(e0e.hasOwnProperty("value")||e0e.hasOwnProperty("defaultValue")){var t0e=e0e.type;if(!(t0e!=="submit"&&t0e!=="reset"||e0e.value!==void 0&&e0e.value!==null))return;e0e=""+x_._wrapperState.initialValue,$P||e0e===x_.value||(x_.value=e0e),x_.defaultValue=e0e}$P=x_.name,$P!==""&&(x_.name=""),x_.defaultChecked=!!x_._wrapperState.initialChecked,$P!==""&&(x_.name=$P)}function bb$1(x_,e0e,$P){(e0e!=="number"||Xa$1(x_.ownerDocument)!==x_)&&($P==null?x_.defaultValue=""+x_._wrapperState.initialValue:x_.defaultValue!==""+$P&&(x_.defaultValue=""+$P))}function db$1(x_){var e0e="";return aa$1.Children.forEach(x_,function($P){$P!=null&&(e0e+=$P)}),e0e}function eb$1(x_,e0e){return x_=m$4({children:void 0},e0e),(e0e=db$1(e0e.children))&&(x_.children=e0e),x_}function fb$1(x_,e0e,$P,t0e){if(x_=x_.options,e0e){e0e={};for(var r0e=0;r0e<$P.length;r0e++)e0e["$"+$P[r0e]]=!0;for($P=0;$P=$P.length))throw Error(y$2(93));$P=$P[0]}e0e=$P}e0e==null&&(e0e=""),$P=e0e}x_._wrapperState={initialValue:Sa$1($P)}}function ib$1(x_,e0e){var $P=Sa$1(e0e.value),t0e=Sa$1(e0e.defaultValue);$P!=null&&($P=""+$P,$P!==x_.value&&(x_.value=$P),e0e.defaultValue==null&&x_.defaultValue!==$P&&(x_.defaultValue=$P)),t0e!=null&&(x_.defaultValue=""+t0e)}function jb$1(x_){var e0e=x_.textContent;e0e===x_._wrapperState.initialValue&&e0e!==""&&e0e!==null&&(x_.value=e0e)}var kb$1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb$1(x_){switch(x_){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb$1(x_,e0e){return x_==null||x_==="http://www.w3.org/1999/xhtml"?lb$1(e0e):x_==="http://www.w3.org/2000/svg"&&e0e==="foreignObject"?"http://www.w3.org/1999/xhtml":x_}var nb$1,ob$1=function(x_){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e0e,$P,t0e,r0e){MSApp.execUnsafeLocalFunction(function(){return x_(e0e,$P,t0e,r0e)})}:x_}(function(x_,e0e){if(x_.namespaceURI!==kb$1.svg||"innerHTML"in x_)x_.innerHTML=e0e;else{for(nb$1=nb$1||document.createElement("div"),nb$1.innerHTML=""+e0e.valueOf().toString()+"",e0e=nb$1.firstChild;x_.firstChild;)x_.removeChild(x_.firstChild);for(;e0e.firstChild;)x_.appendChild(e0e.firstChild)}});function pb$1(x_,e0e){if(e0e){var $P=x_.firstChild;if($P&&$P===x_.lastChild&&$P.nodeType===3){$P.nodeValue=e0e;return}}x_.textContent=e0e}var qb$1={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rb$1=["Webkit","ms","Moz","O"];Object.keys(qb$1).forEach(function(x_){rb$1.forEach(function(e0e){e0e=e0e+x_.charAt(0).toUpperCase()+x_.substring(1),qb$1[e0e]=qb$1[x_]})});function sb$1(x_,e0e,$P){return e0e==null||typeof e0e=="boolean"||e0e===""?"":$P||typeof e0e!="number"||e0e===0||qb$1.hasOwnProperty(x_)&&qb$1[x_]?(""+e0e).trim():e0e+"px"}function tb$1(x_,e0e){x_=x_.style;for(var $P in e0e)if(e0e.hasOwnProperty($P)){var t0e=$P.indexOf("--")===0,r0e=sb$1($P,e0e[$P],t0e);$P==="float"&&($P="cssFloat"),t0e?x_.setProperty($P,r0e):x_[$P]=r0e}}var ub$1=m$4({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb$1(x_,e0e){if(e0e){if(ub$1[x_]&&(e0e.children!=null||e0e.dangerouslySetInnerHTML!=null))throw Error(y$2(137,x_));if(e0e.dangerouslySetInnerHTML!=null){if(e0e.children!=null)throw Error(y$2(60));if(!(typeof e0e.dangerouslySetInnerHTML=="object"&&"__html"in e0e.dangerouslySetInnerHTML))throw Error(y$2(61))}if(e0e.style!=null&&typeof e0e.style!="object")throw Error(y$2(62))}}function wb$1(x_,e0e){if(x_.indexOf("-")===-1)return typeof e0e.is=="string";switch(x_){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb$1(x_){return x_=x_.target||x_.srcElement||window,x_.correspondingUseElement&&(x_=x_.correspondingUseElement),x_.nodeType===3?x_.parentNode:x_}var yb$1=null,zb$1=null,Ab$1=null;function Bb$1(x_){if(x_=Cb$1(x_)){if(typeof yb$1!="function")throw Error(y$2(280));var e0e=x_.stateNode;e0e&&(e0e=Db$1(e0e),yb$1(x_.stateNode,x_.type,e0e))}}function Eb$1(x_){zb$1?Ab$1?Ab$1.push(x_):Ab$1=[x_]:zb$1=x_}function Fb$1(){if(zb$1){var x_=zb$1,e0e=Ab$1;if(Ab$1=zb$1=null,Bb$1(x_),e0e)for(x_=0;x_t0e?0:1<$P;$P++)e0e.push(x_);return e0e}function $c$1(x_,e0e,$P){x_.pendingLanes|=e0e;var t0e=e0e-1;x_.suspendedLanes&=t0e,x_.pingedLanes&=t0e,x_=x_.eventTimes,e0e=31-Vc$1(e0e),x_[e0e]=$P}var Vc$1=Math.clz32?Math.clz32:ad$1,bd$1=Math.log,cd$1=Math.LN2;function ad$1(x_){return x_===0?32:31-(bd$1(x_)/cd$1|0)|0}var dd$1=r$5.unstable_UserBlockingPriority,ed$1=r$5.unstable_runWithPriority,fd$1=!0;function gd$1(x_,e0e,$P,t0e){Kb$1||Ib$1();var r0e=hd$1,n0e=Kb$1;Kb$1=!0;try{Hb$1(r0e,x_,e0e,$P,t0e)}finally{(Kb$1=n0e)||Mb$1()}}function id$2(x_,e0e,$P,t0e){ed$1(dd$1,hd$1.bind(null,x_,e0e,$P,t0e))}function hd$1(x_,e0e,$P,t0e){if(fd$1){var r0e;if((r0e=(e0e&4)===0)&&0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(x_,e0e){switch(x_){case"keyup":return $d$1.indexOf(e0e.keyCode)!==-1;case"keydown":return e0e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(x_){return x_=x_.detail,typeof x_=="object"&&"data"in x_?x_.data:null}var ie$1=!1;function je$1(x_,e0e){switch(x_){case"compositionend":return he$1(e0e);case"keypress":return e0e.which!==32?null:(fe$1=!0,ee$1);case"textInput":return x_=e0e.data,x_===ee$1&&fe$1?null:x_;default:return null}}function ke$1(x_,e0e){if(ie$1)return x_==="compositionend"||!ae$1&&ge$1(x_,e0e)?(x_=nd$1(),md$1=ld$1=kd$1=null,ie$1=!1,x_):null;switch(x_){case"paste":return null;case"keypress":if(!(e0e.ctrlKey||e0e.altKey||e0e.metaKey)||e0e.ctrlKey&&e0e.altKey){if(e0e.char&&1=e0e)return{node:$P,offset:e0e-x_};x_=t0e}e:{for(;$P;){if($P.nextSibling){$P=$P.nextSibling;break e}$P=$P.parentNode}$P=void 0}$P=Ke$1($P)}}function Me$1(x_,e0e){return x_&&e0e?x_===e0e?!0:x_&&x_.nodeType===3?!1:e0e&&e0e.nodeType===3?Me$1(x_,e0e.parentNode):"contains"in x_?x_.contains(e0e):x_.compareDocumentPosition?!!(x_.compareDocumentPosition(e0e)&16):!1:!1}function Ne$1(){for(var x_=window,e0e=Xa$1();e0e instanceof x_.HTMLIFrameElement;){try{var $P=typeof e0e.contentWindow.location.href=="string"}catch{$P=!1}if($P)x_=e0e.contentWindow;else break;e0e=Xa$1(x_.document)}return e0e}function Oe$1(x_){var e0e=x_&&x_.nodeName&&x_.nodeName.toLowerCase();return e0e&&(e0e==="input"&&(x_.type==="text"||x_.type==="search"||x_.type==="tel"||x_.type==="url"||x_.type==="password")||e0e==="textarea"||x_.contentEditable==="true")}var Pe$1=fa$1&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(x_,e0e,$P){var t0e=$P.window===$P?$P.document:$P.nodeType===9?$P:$P.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa$1(t0e)||(t0e=Qe$1,"selectionStart"in t0e&&Oe$1(t0e)?t0e={start:t0e.selectionStart,end:t0e.selectionEnd}:(t0e=(t0e.ownerDocument&&t0e.ownerDocument.defaultView||window).getSelection(),t0e={anchorNode:t0e.anchorNode,anchorOffset:t0e.anchorOffset,focusNode:t0e.focusNode,focusOffset:t0e.focusOffset}),Se$1&&Je$1(Se$1,t0e)||(Se$1=t0e,t0e=oe$1(Re$1,"onSelect"),0Af$1||(x_.current=zf$1[Af$1],zf$1[Af$1]=null,Af$1--)}function I$2(x_,e0e){Af$1++,zf$1[Af$1]=x_.current,x_.current=e0e}var Cf$1={},M$1=Bf$1(Cf$1),N$1=Bf$1(!1),Df$1=Cf$1;function Ef$1(x_,e0e){var $P=x_.type.contextTypes;if(!$P)return Cf$1;var t0e=x_.stateNode;if(t0e&&t0e.__reactInternalMemoizedUnmaskedChildContext===e0e)return t0e.__reactInternalMemoizedMaskedChildContext;var r0e={},n0e;for(n0e in $P)r0e[n0e]=e0e[n0e];return t0e&&(x_=x_.stateNode,x_.__reactInternalMemoizedUnmaskedChildContext=e0e,x_.__reactInternalMemoizedMaskedChildContext=r0e),r0e}function Ff(x_){return x_=x_.childContextTypes,x_!=null}function Gf$1(){H$2(N$1),H$2(M$1)}function Hf$1(x_,e0e,$P){if(M$1.current!==Cf$1)throw Error(y$2(168));I$2(M$1,e0e),I$2(N$1,$P)}function If$1(x_,e0e,$P){var t0e=x_.stateNode;if(x_=e0e.childContextTypes,typeof t0e.getChildContext!="function")return $P;t0e=t0e.getChildContext();for(var r0e in t0e)if(!(r0e in x_))throw Error(y$2(108,Ra$1(e0e)||"Unknown",r0e));return m$4({},$P,t0e)}function Jf$1(x_){return x_=(x_=x_.stateNode)&&x_.__reactInternalMemoizedMergedChildContext||Cf$1,Df$1=M$1.current,I$2(M$1,x_),I$2(N$1,N$1.current),!0}function Kf$1(x_,e0e,$P){var t0e=x_.stateNode;if(!t0e)throw Error(y$2(169));$P?(x_=If$1(x_,e0e,Df$1),t0e.__reactInternalMemoizedMergedChildContext=x_,H$2(N$1),H$2(M$1),I$2(M$1,x_)):H$2(N$1),I$2(N$1,$P)}var Lf$1=null,Mf$1=null,Nf$1=r$5.unstable_runWithPriority,Of$1=r$5.unstable_scheduleCallback,Pf$1=r$5.unstable_cancelCallback,Qf$1=r$5.unstable_shouldYield,Rf$1=r$5.unstable_requestPaint,Sf$1=r$5.unstable_now,Tf$1=r$5.unstable_getCurrentPriorityLevel,Uf$1=r$5.unstable_ImmediatePriority,Vf$1=r$5.unstable_UserBlockingPriority,Wf$1=r$5.unstable_NormalPriority,Xf$1=r$5.unstable_LowPriority,Yf$1=r$5.unstable_IdlePriority,Zf$1={},$f$1=Rf$1!==void 0?Rf$1:function(){},ag$1=null,bg$2=null,cg$1=!1,dg$1=Sf$1(),O$1=1e4>dg$1?Sf$1:function(){return Sf$1()-dg$1};function eg$1(){switch(Tf$1()){case Uf$1:return 99;case Vf$1:return 98;case Wf$1:return 97;case Xf$1:return 96;case Yf$1:return 95;default:throw Error(y$2(332))}}function fg$1(x_){switch(x_){case 99:return Uf$1;case 98:return Vf$1;case 97:return Wf$1;case 96:return Xf$1;case 95:return Yf$1;default:throw Error(y$2(332))}}function gg$1(x_,e0e){return x_=fg$1(x_),Nf$1(x_,e0e)}function hg$1(x_,e0e,$P){return x_=fg$1(x_),Of$1(x_,e0e,$P)}function ig$1(){if(bg$2!==null){var x_=bg$2;bg$2=null,Pf$1(x_)}jg$1()}function jg$1(){if(!cg$1&&ag$1!==null){cg$1=!0;var x_=0;try{var e0e=ag$1;gg$1(99,function(){for(;x_O0e?(z0e=M0e,M0e=null):z0e=M0e.sibling;var A0e=u0e(h0e,M0e,m0e[O0e],v0e);if(A0e===null){M0e===null&&(M0e=z0e);break}x_&&M0e&&A0e.alternate===null&&e0e(h0e,M0e),b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e,M0e=z0e}if(O0e===m0e.length)return $P(h0e,M0e),g0e;if(M0e===null){for(;O0eO0e?(z0e=M0e,M0e=null):z0e=M0e.sibling;var _0e=u0e(h0e,M0e,A0e.value,v0e);if(_0e===null){M0e===null&&(M0e=z0e);break}x_&&M0e&&_0e.alternate===null&&e0e(h0e,M0e),b0e=n0e(_0e,b0e,O0e),y0e===null?g0e=_0e:y0e.sibling=_0e,y0e=_0e,M0e=z0e}if(A0e.done)return $P(h0e,M0e),g0e;if(M0e===null){for(;!A0e.done;O0e++,A0e=m0e.next())A0e=c0e(h0e,A0e.value,v0e),A0e!==null&&(b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e);return g0e}for(M0e=t0e(h0e,M0e);!A0e.done;O0e++,A0e=m0e.next())A0e=d0e(M0e,h0e,O0e,A0e.value,v0e),A0e!==null&&(x_&&A0e.alternate!==null&&M0e.delete(A0e.key===null?O0e:A0e.key),b0e=n0e(A0e,b0e,O0e),y0e===null?g0e=A0e:y0e.sibling=A0e,y0e=A0e);return x_&&M0e.forEach(function($0e){return e0e(h0e,$0e)}),g0e}return function(h0e,b0e,m0e,v0e){var g0e=typeof m0e=="object"&&m0e!==null&&m0e.type===ua$1&&m0e.key===null;g0e&&(m0e=m0e.props.children);var y0e=typeof m0e=="object"&&m0e!==null;if(y0e)switch(m0e.$$typeof){case sa$1:e:{for(y0e=m0e.key,g0e=b0e;g0e!==null;){if(g0e.key===y0e){switch(g0e.tag){case 7:if(m0e.type===ua$1){$P(h0e,g0e.sibling),b0e=r0e(g0e,m0e.props.children),b0e.return=h0e,h0e=b0e;break e}break;default:if(g0e.elementType===m0e.type){$P(h0e,g0e.sibling),b0e=r0e(g0e,m0e.props),b0e.ref=Qg$1(h0e,g0e,m0e),b0e.return=h0e,h0e=b0e;break e}}$P(h0e,g0e);break}else e0e(h0e,g0e);g0e=g0e.sibling}m0e.type===ua$1?(b0e=Xg$1(m0e.props.children,h0e.mode,v0e,m0e.key),b0e.return=h0e,h0e=b0e):(v0e=Vg$1(m0e.type,m0e.key,m0e.props,null,h0e.mode,v0e),v0e.ref=Qg$1(h0e,b0e,m0e),v0e.return=h0e,h0e=v0e)}return a0e(h0e);case ta$1:e:{for(g0e=m0e.key;b0e!==null;){if(b0e.key===g0e)if(b0e.tag===4&&b0e.stateNode.containerInfo===m0e.containerInfo&&b0e.stateNode.implementation===m0e.implementation){$P(h0e,b0e.sibling),b0e=r0e(b0e,m0e.children||[]),b0e.return=h0e,h0e=b0e;break e}else{$P(h0e,b0e);break}else e0e(h0e,b0e);b0e=b0e.sibling}b0e=Wg$1(m0e,h0e.mode,v0e),b0e.return=h0e,h0e=b0e}return a0e(h0e)}if(typeof m0e=="string"||typeof m0e=="number")return m0e=""+m0e,b0e!==null&&b0e.tag===6?($P(h0e,b0e.sibling),b0e=r0e(b0e,m0e),b0e.return=h0e,h0e=b0e):($P(h0e,b0e),b0e=Ug$1(m0e,h0e.mode,v0e),b0e.return=h0e,h0e=b0e),a0e(h0e);if(Pg$1(m0e))return p0e(h0e,b0e,m0e,v0e);if(La$1(m0e))return f0e(h0e,b0e,m0e,v0e);if(y0e&&Rg$1(h0e,m0e),typeof m0e>"u"&&!g0e)switch(h0e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y$2(152,Ra$1(h0e.type)||"Component"))}return $P(h0e,b0e)}}var Yg$1=Sg$1(!0),Zg$1=Sg$1(!1),$g$1={},ah$1=Bf$1($g$1),bh$1=Bf$1($g$1),ch$1=Bf$1($g$1);function dh$1(x_){if(x_===$g$1)throw Error(y$2(174));return x_}function eh$1(x_,e0e){switch(I$2(ch$1,e0e),I$2(bh$1,x_),I$2(ah$1,$g$1),x_=e0e.nodeType,x_){case 9:case 11:e0e=(e0e=e0e.documentElement)?e0e.namespaceURI:mb$1(null,"");break;default:x_=x_===8?e0e.parentNode:e0e,e0e=x_.namespaceURI||null,x_=x_.tagName,e0e=mb$1(e0e,x_)}H$2(ah$1),I$2(ah$1,e0e)}function fh$1(){H$2(ah$1),H$2(bh$1),H$2(ch$1)}function gh$1(x_){dh$1(ch$1.current);var e0e=dh$1(ah$1.current),$P=mb$1(e0e,x_.type);e0e!==$P&&(I$2(bh$1,x_),I$2(ah$1,$P))}function hh$1(x_){bh$1.current===x_&&(H$2(ah$1),H$2(bh$1))}var P$1=Bf$1(0);function ih$1(x_){for(var e0e=x_;e0e!==null;){if(e0e.tag===13){var $P=e0e.memoizedState;if($P!==null&&($P=$P.dehydrated,$P===null||$P.data==="$?"||$P.data==="$!"))return e0e}else if(e0e.tag===19&&e0e.memoizedProps.revealOrder!==void 0){if(e0e.flags&64)return e0e}else if(e0e.child!==null){e0e.child.return=e0e,e0e=e0e.child;continue}if(e0e===x_)break;for(;e0e.sibling===null;){if(e0e.return===null||e0e.return===x_)return null;e0e=e0e.return}e0e.sibling.return=e0e.return,e0e=e0e.sibling}return null}var jh$1=null,kh=null,lh$1=!1;function mh$1(x_,e0e){var $P=nh$1(5,null,null,0);$P.elementType="DELETED",$P.type="DELETED",$P.stateNode=e0e,$P.return=x_,$P.flags=8,x_.lastEffect!==null?(x_.lastEffect.nextEffect=$P,x_.lastEffect=$P):x_.firstEffect=x_.lastEffect=$P}function oh$1(x_,e0e){switch(x_.tag){case 5:var $P=x_.type;return e0e=e0e.nodeType!==1||$P.toLowerCase()!==e0e.nodeName.toLowerCase()?null:e0e,e0e!==null?(x_.stateNode=e0e,!0):!1;case 6:return e0e=x_.pendingProps===""||e0e.nodeType!==3?null:e0e,e0e!==null?(x_.stateNode=e0e,!0):!1;case 13:return!1;default:return!1}}function ph$1(x_){if(lh$1){var e0e=kh;if(e0e){var $P=e0e;if(!oh$1(x_,e0e)){if(e0e=rf$1($P.nextSibling),!e0e||!oh$1(x_,e0e)){x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_;return}mh$1(jh$1,$P)}jh$1=x_,kh=rf$1(e0e.firstChild)}else x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_}}function qh$1(x_){for(x_=x_.return;x_!==null&&x_.tag!==5&&x_.tag!==3&&x_.tag!==13;)x_=x_.return;jh$1=x_}function rh$1(x_){if(x_!==jh$1)return!1;if(!lh$1)return qh$1(x_),lh$1=!0,!1;var e0e=x_.type;if(x_.tag!==5||e0e!=="head"&&e0e!=="body"&&!nf$1(e0e,x_.memoizedProps))for(e0e=kh;e0e;)mh$1(x_,e0e),e0e=rf$1(e0e.nextSibling);if(qh$1(x_),x_.tag===13){if(x_=x_.memoizedState,x_=x_!==null?x_.dehydrated:null,!x_)throw Error(y$2(317));e:{for(x_=x_.nextSibling,e0e=0;x_;){if(x_.nodeType===8){var $P=x_.data;if($P==="/$"){if(e0e===0){kh=rf$1(x_.nextSibling);break e}e0e--}else $P!=="$"&&$P!=="$!"&&$P!=="$?"||e0e++}x_=x_.nextSibling}kh=null}}else kh=jh$1?rf$1(x_.stateNode.nextSibling):null;return!0}function sh$1(){kh=jh$1=null,lh$1=!1}var th$1=[];function uh$1(){for(var x_=0;x_n0e))throw Error(y$2(301));n0e+=1,T$1=S$1=null,e0e.updateQueue=null,vh$1.current=Fh$1,x_=$P(t0e,r0e)}while(zh$1)}if(vh$1.current=Gh$1,e0e=S$1!==null&&S$1.next!==null,xh$1=0,T$1=S$1=R$1=null,yh$1=!1,e0e)throw Error(y$2(300));return x_}function Hh$1(){var x_={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_,T$1}function Ih$1(){if(S$1===null){var x_=R$1.alternate;x_=x_!==null?x_.memoizedState:null}else x_=S$1.next;var e0e=T$1===null?R$1.memoizedState:T$1.next;if(e0e!==null)T$1=e0e,S$1=x_;else{if(x_===null)throw Error(y$2(310));S$1=x_,x_={memoizedState:S$1.memoizedState,baseState:S$1.baseState,baseQueue:S$1.baseQueue,queue:S$1.queue,next:null},T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_}return T$1}function Jh$1(x_,e0e){return typeof e0e=="function"?e0e(x_):e0e}function Kh$1(x_){var e0e=Ih$1(),$P=e0e.queue;if($P===null)throw Error(y$2(311));$P.lastRenderedReducer=x_;var t0e=S$1,r0e=t0e.baseQueue,n0e=$P.pending;if(n0e!==null){if(r0e!==null){var a0e=r0e.next;r0e.next=n0e.next,n0e.next=a0e}t0e.baseQueue=r0e=n0e,$P.pending=null}if(r0e!==null){r0e=r0e.next,t0e=t0e.baseState;var o0e=a0e=n0e=null,i0e=r0e;do{var s0e=i0e.lane;if((xh$1&s0e)===s0e)o0e!==null&&(o0e=o0e.next={lane:0,action:i0e.action,eagerReducer:i0e.eagerReducer,eagerState:i0e.eagerState,next:null}),t0e=i0e.eagerReducer===x_?i0e.eagerState:x_(t0e,i0e.action);else{var l0e={lane:s0e,action:i0e.action,eagerReducer:i0e.eagerReducer,eagerState:i0e.eagerState,next:null};o0e===null?(a0e=o0e=l0e,n0e=t0e):o0e=o0e.next=l0e,R$1.lanes|=s0e,Dg$1|=s0e}i0e=i0e.next}while(i0e!==null&&i0e!==r0e);o0e===null?n0e=t0e:o0e.next=a0e,He$1(t0e,e0e.memoizedState)||(ug$1=!0),e0e.memoizedState=t0e,e0e.baseState=n0e,e0e.baseQueue=o0e,$P.lastRenderedState=t0e}return[e0e.memoizedState,$P.dispatch]}function Lh$1(x_){var e0e=Ih$1(),$P=e0e.queue;if($P===null)throw Error(y$2(311));$P.lastRenderedReducer=x_;var t0e=$P.dispatch,r0e=$P.pending,n0e=e0e.memoizedState;if(r0e!==null){$P.pending=null;var a0e=r0e=r0e.next;do n0e=x_(n0e,a0e.action),a0e=a0e.next;while(a0e!==r0e);He$1(n0e,e0e.memoizedState)||(ug$1=!0),e0e.memoizedState=n0e,e0e.baseQueue===null&&(e0e.baseState=n0e),$P.lastRenderedState=n0e}return[n0e,t0e]}function Mh$1(x_,e0e,$P){var t0e=e0e._getVersion;t0e=t0e(e0e._source);var r0e=e0e._workInProgressVersionPrimary;if(r0e!==null?x_=r0e===t0e:(x_=x_.mutableReadLanes,(x_=(xh$1&x_)===x_)&&(e0e._workInProgressVersionPrimary=t0e,th$1.push(e0e))),x_)return $P(e0e._source);throw th$1.push(e0e),Error(y$2(350))}function Nh$1(x_,e0e,$P,t0e){var r0e=U$1;if(r0e===null)throw Error(y$2(349));var n0e=e0e._getVersion,a0e=n0e(e0e._source),o0e=vh$1.current,i0e=o0e.useState(function(){return Mh$1(r0e,e0e,$P)}),s0e=i0e[1],l0e=i0e[0];i0e=T$1;var c0e=x_.memoizedState,u0e=c0e.refs,d0e=u0e.getSnapshot,p0e=c0e.source;c0e=c0e.subscribe;var f0e=R$1;return x_.memoizedState={refs:u0e,source:e0e,subscribe:t0e},o0e.useEffect(function(){u0e.getSnapshot=$P,u0e.setSnapshot=s0e;var h0e=n0e(e0e._source);if(!He$1(a0e,h0e)){h0e=$P(e0e._source),He$1(l0e,h0e)||(s0e(h0e),h0e=Ig$1(f0e),r0e.mutableReadLanes|=h0e&r0e.pendingLanes),h0e=r0e.mutableReadLanes,r0e.entangledLanes|=h0e;for(var b0e=r0e.entanglements,m0e=h0e;0$P?98:$P,function(){x_(!0)}),gg$1(97<$P?97:$P,function(){var t0e=wh$1.transition;wh$1.transition=1;try{x_(!1),e0e()}finally{wh$1.transition=t0e}})}function Oh$1(x_,e0e,$P){var t0e=Hg$1(),r0e=Ig$1(x_),n0e={lane:r0e,action:$P,eagerReducer:null,eagerState:null,next:null},a0e=e0e.pending;if(a0e===null?n0e.next=n0e:(n0e.next=a0e.next,a0e.next=n0e),e0e.pending=n0e,a0e=x_.alternate,x_===R$1||a0e!==null&&a0e===R$1)zh$1=yh$1=!0;else{if(x_.lanes===0&&(a0e===null||a0e.lanes===0)&&(a0e=e0e.lastRenderedReducer,a0e!==null))try{var o0e=e0e.lastRenderedState,i0e=a0e(o0e,$P);if(n0e.eagerReducer=a0e,n0e.eagerState=i0e,He$1(i0e,o0e))return}catch{}finally{}Jg$1(x_,r0e,t0e)}}var Gh$1={readContext:vg$1,useCallback:Ah$1,useContext:Ah$1,useEffect:Ah$1,useImperativeHandle:Ah$1,useLayoutEffect:Ah$1,useMemo:Ah$1,useReducer:Ah$1,useRef:Ah$1,useState:Ah$1,useDebugValue:Ah$1,useDeferredValue:Ah$1,useTransition:Ah$1,useMutableSource:Ah$1,useOpaqueIdentifier:Ah$1,unstable_isNewReconciler:!1},Dh$1={readContext:vg$1,useCallback:function(x_,e0e){return Hh$1().memoizedState=[x_,e0e===void 0?null:e0e],x_},useContext:vg$1,useEffect:Wh$1,useImperativeHandle:function(x_,e0e,$P){return $P=$P!=null?$P.concat([x_]):null,Uh$1(4,2,Zh$1.bind(null,e0e,x_),$P)},useLayoutEffect:function(x_,e0e){return Uh$1(4,2,x_,e0e)},useMemo:function(x_,e0e){var $P=Hh$1();return e0e=e0e===void 0?null:e0e,x_=x_(),$P.memoizedState=[x_,e0e],x_},useReducer:function(x_,e0e,$P){var t0e=Hh$1();return e0e=$P!==void 0?$P(e0e):e0e,t0e.memoizedState=t0e.baseState=e0e,x_=t0e.queue={pending:null,dispatch:null,lastRenderedReducer:x_,lastRenderedState:e0e},x_=x_.dispatch=Oh$1.bind(null,R$1,x_),[t0e.memoizedState,x_]},useRef:Sh$1,useState:Qh$1,useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Qh$1(x_),$P=e0e[0],t0e=e0e[1];return Wh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Qh$1(!1),e0e=x_[0];return x_=di$1.bind(null,x_[1]),Sh$1(x_),[x_,e0e]},useMutableSource:function(x_,e0e,$P){var t0e=Hh$1();return t0e.memoizedState={refs:{getSnapshot:e0e,setSnapshot:null},source:x_,subscribe:$P},Nh$1(t0e,x_,e0e,$P)},useOpaqueIdentifier:function(){if(lh$1){var x_=!1,e0e=uf$1(function(){throw x_||(x_=!0,$P("r:"+(tf$1++).toString(36))),Error(y$2(355))}),$P=Qh$1(e0e)[1];return!(R$1.mode&2)&&(R$1.flags|=516,Rh$1(5,function(){$P("r:"+(tf$1++).toString(36))},void 0,null)),e0e}return e0e="r:"+(tf$1++).toString(36),Qh$1(e0e),e0e},unstable_isNewReconciler:!1},Eh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Kh$1,useRef:Th$1,useState:function(){return Kh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Kh$1(Jh$1),$P=e0e[0],t0e=e0e[1];return Xh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Kh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Kh$1(Jh$1)[0]},unstable_isNewReconciler:!1},Fh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Lh$1,useRef:Th$1,useState:function(){return Lh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var e0e=Lh$1(Jh$1),$P=e0e[0],t0e=e0e[1];return Xh$1(function(){var r0e=wh$1.transition;wh$1.transition=1;try{t0e(x_)}finally{wh$1.transition=r0e}},[x_]),$P},useTransition:function(){var x_=Lh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Lh$1(Jh$1)[0]},unstable_isNewReconciler:!1},ei$1=ra$1.ReactCurrentOwner,ug$1=!1;function fi$1(x_,e0e,$P,t0e){e0e.child=x_===null?Zg$1(e0e,null,$P,t0e):Yg$1(e0e,x_.child,$P,t0e)}function gi$1(x_,e0e,$P,t0e,r0e){$P=$P.render;var n0e=e0e.ref;return tg$1(e0e,r0e),t0e=Ch$1(x_,e0e,$P,t0e,n0e,r0e),x_!==null&&!ug$1?(e0e.updateQueue=x_.updateQueue,e0e.flags&=-517,x_.lanes&=~r0e,hi$1(x_,e0e,r0e)):(e0e.flags|=1,fi$1(x_,e0e,t0e,r0e),e0e.child)}function ii$1(x_,e0e,$P,t0e,r0e,n0e){if(x_===null){var a0e=$P.type;return typeof a0e=="function"&&!ji$1(a0e)&&a0e.defaultProps===void 0&&$P.compare===null&&$P.defaultProps===void 0?(e0e.tag=15,e0e.type=a0e,ki$1(x_,e0e,a0e,t0e,r0e,n0e)):(x_=Vg$1($P.type,null,t0e,e0e,e0e.mode,n0e),x_.ref=e0e.ref,x_.return=e0e,e0e.child=x_)}return a0e=x_.child,!(r0e&n0e)&&(r0e=a0e.memoizedProps,$P=$P.compare,$P=$P!==null?$P:Je$1,$P(r0e,t0e)&&x_.ref===e0e.ref)?hi$1(x_,e0e,n0e):(e0e.flags|=1,x_=Tg$1(a0e,t0e),x_.ref=e0e.ref,x_.return=e0e,e0e.child=x_)}function ki$1(x_,e0e,$P,t0e,r0e,n0e){if(x_!==null&&Je$1(x_.memoizedProps,t0e)&&x_.ref===e0e.ref)if(ug$1=!1,(n0e&r0e)!==0)x_.flags&16384&&(ug$1=!0);else return e0e.lanes=x_.lanes,hi$1(x_,e0e,n0e);return li$1(x_,e0e,$P,t0e,n0e)}function mi$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=t0e.children,n0e=x_!==null?x_.memoizedState:null;if(t0e.mode==="hidden"||t0e.mode==="unstable-defer-without-hiding")if(!(e0e.mode&4))e0e.memoizedState={baseLanes:0},ni$1(e0e,$P);else if($P&1073741824)e0e.memoizedState={baseLanes:0},ni$1(e0e,n0e!==null?n0e.baseLanes:$P);else return x_=n0e!==null?n0e.baseLanes|$P:$P,e0e.lanes=e0e.childLanes=1073741824,e0e.memoizedState={baseLanes:x_},ni$1(e0e,x_),null;else n0e!==null?(t0e=n0e.baseLanes|$P,e0e.memoizedState=null):t0e=$P,ni$1(e0e,t0e);return fi$1(x_,e0e,r0e,$P),e0e.child}function oi$1(x_,e0e){var $P=e0e.ref;(x_===null&&$P!==null||x_!==null&&x_.ref!==$P)&&(e0e.flags|=128)}function li$1(x_,e0e,$P,t0e,r0e){var n0e=Ff($P)?Df$1:M$1.current;return n0e=Ef$1(e0e,n0e),tg$1(e0e,r0e),$P=Ch$1(x_,e0e,$P,t0e,n0e,r0e),x_!==null&&!ug$1?(e0e.updateQueue=x_.updateQueue,e0e.flags&=-517,x_.lanes&=~r0e,hi$1(x_,e0e,r0e)):(e0e.flags|=1,fi$1(x_,e0e,$P,r0e),e0e.child)}function pi$1(x_,e0e,$P,t0e,r0e){if(Ff($P)){var n0e=!0;Jf$1(e0e)}else n0e=!1;if(tg$1(e0e,r0e),e0e.stateNode===null)x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),Mg$1(e0e,$P,t0e),Og$1(e0e,$P,t0e,r0e),t0e=!0;else if(x_===null){var a0e=e0e.stateNode,o0e=e0e.memoizedProps;a0e.props=o0e;var i0e=a0e.context,s0e=$P.contextType;typeof s0e=="object"&&s0e!==null?s0e=vg$1(s0e):(s0e=Ff($P)?Df$1:M$1.current,s0e=Ef$1(e0e,s0e));var l0e=$P.getDerivedStateFromProps,c0e=typeof l0e=="function"||typeof a0e.getSnapshotBeforeUpdate=="function";c0e||typeof a0e.UNSAFE_componentWillReceiveProps!="function"&&typeof a0e.componentWillReceiveProps!="function"||(o0e!==t0e||i0e!==s0e)&&Ng$1(e0e,a0e,t0e,s0e),wg$1=!1;var u0e=e0e.memoizedState;a0e.state=u0e,Cg$1(e0e,t0e,a0e,r0e),i0e=e0e.memoizedState,o0e!==t0e||u0e!==i0e||N$1.current||wg$1?(typeof l0e=="function"&&(Gg$1(e0e,$P,l0e,t0e),i0e=e0e.memoizedState),(o0e=wg$1||Lg$1(e0e,$P,o0e,t0e,u0e,i0e,s0e))?(c0e||typeof a0e.UNSAFE_componentWillMount!="function"&&typeof a0e.componentWillMount!="function"||(typeof a0e.componentWillMount=="function"&&a0e.componentWillMount(),typeof a0e.UNSAFE_componentWillMount=="function"&&a0e.UNSAFE_componentWillMount()),typeof a0e.componentDidMount=="function"&&(e0e.flags|=4)):(typeof a0e.componentDidMount=="function"&&(e0e.flags|=4),e0e.memoizedProps=t0e,e0e.memoizedState=i0e),a0e.props=t0e,a0e.state=i0e,a0e.context=s0e,t0e=o0e):(typeof a0e.componentDidMount=="function"&&(e0e.flags|=4),t0e=!1)}else{a0e=e0e.stateNode,yg$1(x_,e0e),o0e=e0e.memoizedProps,s0e=e0e.type===e0e.elementType?o0e:lg$1(e0e.type,o0e),a0e.props=s0e,c0e=e0e.pendingProps,u0e=a0e.context,i0e=$P.contextType,typeof i0e=="object"&&i0e!==null?i0e=vg$1(i0e):(i0e=Ff($P)?Df$1:M$1.current,i0e=Ef$1(e0e,i0e));var d0e=$P.getDerivedStateFromProps;(l0e=typeof d0e=="function"||typeof a0e.getSnapshotBeforeUpdate=="function")||typeof a0e.UNSAFE_componentWillReceiveProps!="function"&&typeof a0e.componentWillReceiveProps!="function"||(o0e!==c0e||u0e!==i0e)&&Ng$1(e0e,a0e,t0e,i0e),wg$1=!1,u0e=e0e.memoizedState,a0e.state=u0e,Cg$1(e0e,t0e,a0e,r0e);var p0e=e0e.memoizedState;o0e!==c0e||u0e!==p0e||N$1.current||wg$1?(typeof d0e=="function"&&(Gg$1(e0e,$P,d0e,t0e),p0e=e0e.memoizedState),(s0e=wg$1||Lg$1(e0e,$P,s0e,t0e,u0e,p0e,i0e))?(l0e||typeof a0e.UNSAFE_componentWillUpdate!="function"&&typeof a0e.componentWillUpdate!="function"||(typeof a0e.componentWillUpdate=="function"&&a0e.componentWillUpdate(t0e,p0e,i0e),typeof a0e.UNSAFE_componentWillUpdate=="function"&&a0e.UNSAFE_componentWillUpdate(t0e,p0e,i0e)),typeof a0e.componentDidUpdate=="function"&&(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate=="function"&&(e0e.flags|=256)):(typeof a0e.componentDidUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=256),e0e.memoizedProps=t0e,e0e.memoizedState=p0e),a0e.props=t0e,a0e.state=p0e,a0e.context=i0e,t0e=s0e):(typeof a0e.componentDidUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=4),typeof a0e.getSnapshotBeforeUpdate!="function"||o0e===x_.memoizedProps&&u0e===x_.memoizedState||(e0e.flags|=256),t0e=!1)}return qi$1(x_,e0e,$P,t0e,n0e,r0e)}function qi$1(x_,e0e,$P,t0e,r0e,n0e){oi$1(x_,e0e);var a0e=(e0e.flags&64)!==0;if(!t0e&&!a0e)return r0e&&Kf$1(e0e,$P,!1),hi$1(x_,e0e,n0e);t0e=e0e.stateNode,ei$1.current=e0e;var o0e=a0e&&typeof $P.getDerivedStateFromError!="function"?null:t0e.render();return e0e.flags|=1,x_!==null&&a0e?(e0e.child=Yg$1(e0e,x_.child,null,n0e),e0e.child=Yg$1(e0e,null,o0e,n0e)):fi$1(x_,e0e,o0e,n0e),e0e.memoizedState=t0e.state,r0e&&Kf$1(e0e,$P,!0),e0e.child}function ri$1(x_){var e0e=x_.stateNode;e0e.pendingContext?Hf$1(x_,e0e.pendingContext,e0e.pendingContext!==e0e.context):e0e.context&&Hf$1(x_,e0e.context,!1),eh$1(x_,e0e.containerInfo)}var si$1={dehydrated:null,retryLane:0};function ti$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=P$1.current,n0e=!1,a0e;return(a0e=(e0e.flags&64)!==0)||(a0e=x_!==null&&x_.memoizedState===null?!1:(r0e&2)!==0),a0e?(n0e=!0,e0e.flags&=-65):x_!==null&&x_.memoizedState===null||t0e.fallback===void 0||t0e.unstable_avoidThisFallback===!0||(r0e|=1),I$2(P$1,r0e&1),x_===null?(t0e.fallback!==void 0&&ph$1(e0e),x_=t0e.children,r0e=t0e.fallback,n0e?(x_=ui$1(e0e,x_,r0e,$P),e0e.child.memoizedState={baseLanes:$P},e0e.memoizedState=si$1,x_):typeof t0e.unstable_expectedLoadTime=="number"?(x_=ui$1(e0e,x_,r0e,$P),e0e.child.memoizedState={baseLanes:$P},e0e.memoizedState=si$1,e0e.lanes=33554432,x_):($P=vi$1({mode:"visible",children:x_},e0e.mode,$P,null),$P.return=e0e,e0e.child=$P)):x_.memoizedState!==null?n0e?(t0e=wi$1(x_,e0e,t0e.children,t0e.fallback,$P),n0e=e0e.child,r0e=x_.child.memoizedState,n0e.memoizedState=r0e===null?{baseLanes:$P}:{baseLanes:r0e.baseLanes|$P},n0e.childLanes=x_.childLanes&~$P,e0e.memoizedState=si$1,t0e):($P=xi$1(x_,e0e,t0e.children,$P),e0e.memoizedState=null,$P):n0e?(t0e=wi$1(x_,e0e,t0e.children,t0e.fallback,$P),n0e=e0e.child,r0e=x_.child.memoizedState,n0e.memoizedState=r0e===null?{baseLanes:$P}:{baseLanes:r0e.baseLanes|$P},n0e.childLanes=x_.childLanes&~$P,e0e.memoizedState=si$1,t0e):($P=xi$1(x_,e0e,t0e.children,$P),e0e.memoizedState=null,$P)}function ui$1(x_,e0e,$P,t0e){var r0e=x_.mode,n0e=x_.child;return e0e={mode:"hidden",children:e0e},!(r0e&2)&&n0e!==null?(n0e.childLanes=0,n0e.pendingProps=e0e):n0e=vi$1(e0e,r0e,0,null),$P=Xg$1($P,r0e,t0e,null),n0e.return=x_,$P.return=x_,n0e.sibling=$P,x_.child=n0e,$P}function xi$1(x_,e0e,$P,t0e){var r0e=x_.child;return x_=r0e.sibling,$P=Tg$1(r0e,{mode:"visible",children:$P}),!(e0e.mode&2)&&($P.lanes=t0e),$P.return=e0e,$P.sibling=null,x_!==null&&(x_.nextEffect=null,x_.flags=8,e0e.firstEffect=e0e.lastEffect=x_),e0e.child=$P}function wi$1(x_,e0e,$P,t0e,r0e){var n0e=e0e.mode,a0e=x_.child;x_=a0e.sibling;var o0e={mode:"hidden",children:$P};return!(n0e&2)&&e0e.child!==a0e?($P=e0e.child,$P.childLanes=0,$P.pendingProps=o0e,a0e=$P.lastEffect,a0e!==null?(e0e.firstEffect=$P.firstEffect,e0e.lastEffect=a0e,a0e.nextEffect=null):e0e.firstEffect=e0e.lastEffect=null):$P=Tg$1(a0e,o0e),x_!==null?t0e=Tg$1(x_,t0e):(t0e=Xg$1(t0e,n0e,r0e,null),t0e.flags|=2),t0e.return=e0e,$P.return=e0e,$P.sibling=t0e,e0e.child=$P,t0e}function yi$1(x_,e0e){x_.lanes|=e0e;var $P=x_.alternate;$P!==null&&($P.lanes|=e0e),sg$1(x_.return,e0e)}function zi$1(x_,e0e,$P,t0e,r0e,n0e){var a0e=x_.memoizedState;a0e===null?x_.memoizedState={isBackwards:e0e,rendering:null,renderingStartTime:0,last:t0e,tail:$P,tailMode:r0e,lastEffect:n0e}:(a0e.isBackwards=e0e,a0e.rendering=null,a0e.renderingStartTime=0,a0e.last=t0e,a0e.tail=$P,a0e.tailMode=r0e,a0e.lastEffect=n0e)}function Ai$1(x_,e0e,$P){var t0e=e0e.pendingProps,r0e=t0e.revealOrder,n0e=t0e.tail;if(fi$1(x_,e0e,t0e.children,$P),t0e=P$1.current,t0e&2)t0e=t0e&1|2,e0e.flags|=64;else{if(x_!==null&&x_.flags&64)e:for(x_=e0e.child;x_!==null;){if(x_.tag===13)x_.memoizedState!==null&&yi$1(x_,$P);else if(x_.tag===19)yi$1(x_,$P);else if(x_.child!==null){x_.child.return=x_,x_=x_.child;continue}if(x_===e0e)break e;for(;x_.sibling===null;){if(x_.return===null||x_.return===e0e)break e;x_=x_.return}x_.sibling.return=x_.return,x_=x_.sibling}t0e&=1}if(I$2(P$1,t0e),!(e0e.mode&2))e0e.memoizedState=null;else switch(r0e){case"forwards":for($P=e0e.child,r0e=null;$P!==null;)x_=$P.alternate,x_!==null&&ih$1(x_)===null&&(r0e=$P),$P=$P.sibling;$P=r0e,$P===null?(r0e=e0e.child,e0e.child=null):(r0e=$P.sibling,$P.sibling=null),zi$1(e0e,!1,r0e,$P,n0e,e0e.lastEffect);break;case"backwards":for($P=null,r0e=e0e.child,e0e.child=null;r0e!==null;){if(x_=r0e.alternate,x_!==null&&ih$1(x_)===null){e0e.child=r0e;break}x_=r0e.sibling,r0e.sibling=$P,$P=r0e,r0e=x_}zi$1(e0e,!0,$P,null,n0e,e0e.lastEffect);break;case"together":zi$1(e0e,!1,null,null,void 0,e0e.lastEffect);break;default:e0e.memoizedState=null}return e0e.child}function hi$1(x_,e0e,$P){if(x_!==null&&(e0e.dependencies=x_.dependencies),Dg$1|=e0e.lanes,$P&e0e.childLanes){if(x_!==null&&e0e.child!==x_.child)throw Error(y$2(153));if(e0e.child!==null){for(x_=e0e.child,$P=Tg$1(x_,x_.pendingProps),e0e.child=$P,$P.return=e0e;x_.sibling!==null;)x_=x_.sibling,$P=$P.sibling=Tg$1(x_,x_.pendingProps),$P.return=e0e;$P.sibling=null}return e0e.child}return null}var Bi$1,Ci$1,Di$1,Ei$1;Bi$1=function(x_,e0e){for(var $P=e0e.child;$P!==null;){if($P.tag===5||$P.tag===6)x_.appendChild($P.stateNode);else if($P.tag!==4&&$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===e0e)break;for(;$P.sibling===null;){if($P.return===null||$P.return===e0e)return;$P=$P.return}$P.sibling.return=$P.return,$P=$P.sibling}};Ci$1=function(){};Di$1=function(x_,e0e,$P,t0e){var r0e=x_.memoizedProps;if(r0e!==t0e){x_=e0e.stateNode,dh$1(ah$1.current);var n0e=null;switch($P){case"input":r0e=Ya$1(x_,r0e),t0e=Ya$1(x_,t0e),n0e=[];break;case"option":r0e=eb$1(x_,r0e),t0e=eb$1(x_,t0e),n0e=[];break;case"select":r0e=m$4({},r0e,{value:void 0}),t0e=m$4({},t0e,{value:void 0}),n0e=[];break;case"textarea":r0e=gb$1(x_,r0e),t0e=gb$1(x_,t0e),n0e=[];break;default:typeof r0e.onClick!="function"&&typeof t0e.onClick=="function"&&(x_.onclick=jf$1)}vb$1($P,t0e);var a0e;$P=null;for(s0e in r0e)if(!t0e.hasOwnProperty(s0e)&&r0e.hasOwnProperty(s0e)&&r0e[s0e]!=null)if(s0e==="style"){var o0e=r0e[s0e];for(a0e in o0e)o0e.hasOwnProperty(a0e)&&($P||($P={}),$P[a0e]="")}else s0e!=="dangerouslySetInnerHTML"&&s0e!=="children"&&s0e!=="suppressContentEditableWarning"&&s0e!=="suppressHydrationWarning"&&s0e!=="autoFocus"&&(ca$1.hasOwnProperty(s0e)?n0e||(n0e=[]):(n0e=n0e||[]).push(s0e,null));for(s0e in t0e){var i0e=t0e[s0e];if(o0e=r0e!=null?r0e[s0e]:void 0,t0e.hasOwnProperty(s0e)&&i0e!==o0e&&(i0e!=null||o0e!=null))if(s0e==="style")if(o0e){for(a0e in o0e)!o0e.hasOwnProperty(a0e)||i0e&&i0e.hasOwnProperty(a0e)||($P||($P={}),$P[a0e]="");for(a0e in i0e)i0e.hasOwnProperty(a0e)&&o0e[a0e]!==i0e[a0e]&&($P||($P={}),$P[a0e]=i0e[a0e])}else $P||(n0e||(n0e=[]),n0e.push(s0e,$P)),$P=i0e;else s0e==="dangerouslySetInnerHTML"?(i0e=i0e?i0e.__html:void 0,o0e=o0e?o0e.__html:void 0,i0e!=null&&o0e!==i0e&&(n0e=n0e||[]).push(s0e,i0e)):s0e==="children"?typeof i0e!="string"&&typeof i0e!="number"||(n0e=n0e||[]).push(s0e,""+i0e):s0e!=="suppressContentEditableWarning"&&s0e!=="suppressHydrationWarning"&&(ca$1.hasOwnProperty(s0e)?(i0e!=null&&s0e==="onScroll"&&G$2("scroll",x_),n0e||o0e===i0e||(n0e=[])):typeof i0e=="object"&&i0e!==null&&i0e.$$typeof===Ga$1?i0e.toString():(n0e=n0e||[]).push(s0e,i0e))}$P&&(n0e=n0e||[]).push("style",$P);var s0e=n0e;(e0e.updateQueue=s0e)&&(e0e.flags|=4)}};Ei$1=function(x_,e0e,$P,t0e){$P!==t0e&&(e0e.flags|=4)};function Fi$1(x_,e0e){if(!lh$1)switch(x_.tailMode){case"hidden":e0e=x_.tail;for(var $P=null;e0e!==null;)e0e.alternate!==null&&($P=e0e),e0e=e0e.sibling;$P===null?x_.tail=null:$P.sibling=null;break;case"collapsed":$P=x_.tail;for(var t0e=null;$P!==null;)$P.alternate!==null&&(t0e=$P),$P=$P.sibling;t0e===null?e0e||x_.tail===null?x_.tail=null:x_.tail.sibling=null:t0e.sibling=null}}function Gi$1(x_,e0e,$P){var t0e=e0e.pendingProps;switch(e0e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ff(e0e.type)&&Gf$1(),null;case 3:return fh$1(),H$2(N$1),H$2(M$1),uh$1(),t0e=e0e.stateNode,t0e.pendingContext&&(t0e.context=t0e.pendingContext,t0e.pendingContext=null),(x_===null||x_.child===null)&&(rh$1(e0e)?e0e.flags|=4:t0e.hydrate||(e0e.flags|=256)),Ci$1(e0e),null;case 5:hh$1(e0e);var r0e=dh$1(ch$1.current);if($P=e0e.type,x_!==null&&e0e.stateNode!=null)Di$1(x_,e0e,$P,t0e,r0e),x_.ref!==e0e.ref&&(e0e.flags|=128);else{if(!t0e){if(e0e.stateNode===null)throw Error(y$2(166));return null}if(x_=dh$1(ah$1.current),rh$1(e0e)){t0e=e0e.stateNode,$P=e0e.type;var n0e=e0e.memoizedProps;switch(t0e[wf$1]=e0e,t0e[xf$1]=n0e,$P){case"dialog":G$2("cancel",t0e),G$2("close",t0e);break;case"iframe":case"object":case"embed":G$2("load",t0e);break;case"video":case"audio":for(x_=0;x_<\/script>",x_=x_.removeChild(x_.firstChild)):typeof t0e.is=="string"?x_=a0e.createElement($P,{is:t0e.is}):(x_=a0e.createElement($P),$P==="select"&&(a0e=x_,t0e.multiple?a0e.multiple=!0:t0e.size&&(a0e.size=t0e.size))):x_=a0e.createElementNS(x_,$P),x_[wf$1]=e0e,x_[xf$1]=t0e,Bi$1(x_,e0e,!1,!1),e0e.stateNode=x_,a0e=wb$1($P,t0e),$P){case"dialog":G$2("cancel",x_),G$2("close",x_),r0e=t0e;break;case"iframe":case"object":case"embed":G$2("load",x_),r0e=t0e;break;case"video":case"audio":for(r0e=0;r0eJi$1&&(e0e.flags|=64,n0e=!0,Fi$1(t0e,!1),e0e.lanes=33554432)}else{if(!n0e)if(x_=ih$1(a0e),x_!==null){if(e0e.flags|=64,n0e=!0,$P=x_.updateQueue,$P!==null&&(e0e.updateQueue=$P,e0e.flags|=4),Fi$1(t0e,!0),t0e.tail===null&&t0e.tailMode==="hidden"&&!a0e.alternate&&!lh$1)return e0e=e0e.lastEffect=t0e.lastEffect,e0e!==null&&(e0e.nextEffect=null),null}else 2*O$1()-t0e.renderingStartTime>Ji$1&&$P!==1073741824&&(e0e.flags|=64,n0e=!0,Fi$1(t0e,!1),e0e.lanes=33554432);t0e.isBackwards?(a0e.sibling=e0e.child,e0e.child=a0e):($P=t0e.last,$P!==null?$P.sibling=a0e:e0e.child=a0e,t0e.last=a0e)}return t0e.tail!==null?($P=t0e.tail,t0e.rendering=$P,t0e.tail=$P.sibling,t0e.lastEffect=e0e.lastEffect,t0e.renderingStartTime=O$1(),$P.sibling=null,e0e=P$1.current,I$2(P$1,n0e?e0e&1|2:e0e&1),$P):null;case 23:case 24:return Ki$1(),x_!==null&&x_.memoizedState!==null!=(e0e.memoizedState!==null)&&t0e.mode!=="unstable-defer-without-hiding"&&(e0e.flags|=4),null}throw Error(y$2(156,e0e.tag))}function Li$1(x_){switch(x_.tag){case 1:Ff(x_.type)&&Gf$1();var e0e=x_.flags;return e0e&4096?(x_.flags=e0e&-4097|64,x_):null;case 3:if(fh$1(),H$2(N$1),H$2(M$1),uh$1(),e0e=x_.flags,e0e&64)throw Error(y$2(285));return x_.flags=e0e&-4097|64,x_;case 5:return hh$1(x_),null;case 13:return H$2(P$1),e0e=x_.flags,e0e&4096?(x_.flags=e0e&-4097|64,x_):null;case 19:return H$2(P$1),null;case 4:return fh$1(),null;case 10:return rg$1(x_),null;case 23:case 24:return Ki$1(),null;default:return null}}function Mi$1(x_,e0e){try{var $P="",t0e=e0e;do $P+=Qa$1(t0e),t0e=t0e.return;while(t0e);var r0e=$P}catch(n0e){r0e=` Error generating stack: `+n0e.message+` -`+n0e.stack}return{value:x_,source:e0e,stack:r0e}}function Ni$1(x_,e0e){try{console.error(e0e.value)}catch($P){setTimeout(function(){throw $P})}}var Oi$1=typeof WeakMap=="function"?WeakMap:Map;function Pi$1(x_,e0e,$P){$P=zg$1(-1,$P),$P.tag=3,$P.payload={element:null};var t0e=e0e.value;return $P.callback=function(){Qi$1||(Qi$1=!0,Ri$1=t0e),Ni$1(x_,e0e)},$P}function Si$1(x_,e0e,$P){$P=zg$1(-1,$P),$P.tag=3;var t0e=x_.type.getDerivedStateFromError;if(typeof t0e=="function"){var r0e=e0e.value;$P.payload=function(){return Ni$1(x_,e0e),t0e(r0e)}}var n0e=x_.stateNode;return n0e!==null&&typeof n0e.componentDidCatch=="function"&&($P.callback=function(){typeof t0e!="function"&&(Ti$1===null?Ti$1=new Set([this]):Ti$1.add(this),Ni$1(x_,e0e));var a0e=e0e.stack;this.componentDidCatch(e0e.value,{componentStack:a0e!==null?a0e:""})}),$P}var Ui$1=typeof WeakSet=="function"?WeakSet:Set;function Vi$1(x_){var e0e=x_.ref;if(e0e!==null)if(typeof e0e=="function")try{e0e(null)}catch($P){Wi$1(x_,$P)}else e0e.current=null}function Xi$1(x_,e0e){switch(e0e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e0e.flags&256&&x_!==null){var $P=x_.memoizedProps,t0e=x_.memoizedState;x_=e0e.stateNode,e0e=x_.getSnapshotBeforeUpdate(e0e.elementType===e0e.type?$P:lg$1(e0e.type,$P),t0e),x_.__reactInternalSnapshotBeforeUpdate=e0e}return;case 3:e0e.flags&256&&qf$1(e0e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y$3(163))}function Yi$1(x_,e0e,$P){switch($P.tag){case 0:case 11:case 15:case 22:if(e0e=$P.updateQueue,e0e=e0e!==null?e0e.lastEffect:null,e0e!==null){x_=e0e=e0e.next;do{if((x_.tag&3)===3){var t0e=x_.create;x_.destroy=t0e()}x_=x_.next}while(x_!==e0e)}if(e0e=$P.updateQueue,e0e=e0e!==null?e0e.lastEffect:null,e0e!==null){x_=e0e=e0e.next;do{var r0e=x_;t0e=r0e.next,r0e=r0e.tag,r0e&4&&r0e&1&&(Zi$1($P,x_),$i$1($P,x_)),x_=t0e}while(x_!==e0e)}return;case 1:x_=$P.stateNode,$P.flags&4&&(e0e===null?x_.componentDidMount():(t0e=$P.elementType===$P.type?e0e.memoizedProps:lg$1($P.type,e0e.memoizedProps),x_.componentDidUpdate(t0e,e0e.memoizedState,x_.__reactInternalSnapshotBeforeUpdate))),e0e=$P.updateQueue,e0e!==null&&Eg$1($P,e0e,x_);return;case 3:if(e0e=$P.updateQueue,e0e!==null){if(x_=null,$P.child!==null)switch($P.child.tag){case 5:x_=$P.child.stateNode;break;case 1:x_=$P.child.stateNode}Eg$1($P,e0e,x_)}return;case 5:x_=$P.stateNode,e0e===null&&$P.flags&4&&mf$1($P.type,$P.memoizedProps)&&x_.focus();return;case 6:return;case 4:return;case 12:return;case 13:$P.memoizedState===null&&($P=$P.alternate,$P!==null&&($P=$P.memoizedState,$P!==null&&($P=$P.dehydrated,$P!==null&&Cc$1($P))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y$3(163))}function aj$1(x_,e0e){for(var $P=x_;;){if($P.tag===5){var t0e=$P.stateNode;if(e0e)t0e=t0e.style,typeof t0e.setProperty=="function"?t0e.setProperty("display","none","important"):t0e.display="none";else{t0e=$P.stateNode;var r0e=$P.memoizedProps.style;r0e=r0e!=null&&r0e.hasOwnProperty("display")?r0e.display:null,t0e.style.display=sb$1("display",r0e)}}else if($P.tag===6)$P.stateNode.nodeValue=e0e?"":$P.memoizedProps;else if(($P.tag!==23&&$P.tag!==24||$P.memoizedState===null||$P===x_)&&$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===x_)break;for(;$P.sibling===null;){if($P.return===null||$P.return===x_)return;$P=$P.return}$P.sibling.return=$P.return,$P=$P.sibling}}function bj$1(x_,e0e){if(Mf$1&&typeof Mf$1.onCommitFiberUnmount=="function")try{Mf$1.onCommitFiberUnmount(Lf$1,e0e)}catch{}switch(e0e.tag){case 0:case 11:case 14:case 15:case 22:if(x_=e0e.updateQueue,x_!==null&&(x_=x_.lastEffect,x_!==null)){var $P=x_=x_.next;do{var t0e=$P,r0e=t0e.destroy;if(t0e=t0e.tag,r0e!==void 0)if(t0e&4)Zi$1(e0e,$P);else{t0e=e0e;try{r0e()}catch(n0e){Wi$1(t0e,n0e)}}$P=$P.next}while($P!==x_)}break;case 1:if(Vi$1(e0e),x_=e0e.stateNode,typeof x_.componentWillUnmount=="function")try{x_.props=e0e.memoizedProps,x_.state=e0e.memoizedState,x_.componentWillUnmount()}catch(n0e){Wi$1(e0e,n0e)}break;case 5:Vi$1(e0e);break;case 4:cj$1(x_,e0e)}}function dj$1(x_){x_.alternate=null,x_.child=null,x_.dependencies=null,x_.firstEffect=null,x_.lastEffect=null,x_.memoizedProps=null,x_.memoizedState=null,x_.pendingProps=null,x_.return=null,x_.updateQueue=null}function ej$1(x_){return x_.tag===5||x_.tag===3||x_.tag===4}function fj$1(x_){e:{for(var e0e=x_.return;e0e!==null;){if(ej$1(e0e))break e;e0e=e0e.return}throw Error(y$3(160))}var $P=e0e;switch(e0e=$P.stateNode,$P.tag){case 5:var t0e=!1;break;case 3:e0e=e0e.containerInfo,t0e=!0;break;case 4:e0e=e0e.containerInfo,t0e=!0;break;default:throw Error(y$3(161))}$P.flags&16&&(pb$1(e0e,""),$P.flags&=-17);e:t:for($P=x_;;){for(;$P.sibling===null;){if($P.return===null||ej$1($P.return)){$P=null;break e}$P=$P.return}for($P.sibling.return=$P.return,$P=$P.sibling;$P.tag!==5&&$P.tag!==6&&$P.tag!==18;){if($P.flags&2||$P.child===null||$P.tag===4)continue t;$P.child.return=$P,$P=$P.child}if(!($P.flags&2)){$P=$P.stateNode;break e}}t0e?gj$1(x_,$P,e0e):hj$1(x_,$P,e0e)}function gj$1(x_,e0e,$P){var t0e=x_.tag,r0e=t0e===5||t0e===6;if(r0e)x_=r0e?x_.stateNode:x_.stateNode.instance,e0e?$P.nodeType===8?$P.parentNode.insertBefore(x_,e0e):$P.insertBefore(x_,e0e):($P.nodeType===8?(e0e=$P.parentNode,e0e.insertBefore(x_,$P)):(e0e=$P,e0e.appendChild(x_)),$P=$P._reactRootContainer,$P!=null||e0e.onclick!==null||(e0e.onclick=jf$1));else if(t0e!==4&&(x_=x_.child,x_!==null))for(gj$1(x_,e0e,$P),x_=x_.sibling;x_!==null;)gj$1(x_,e0e,$P),x_=x_.sibling}function hj$1(x_,e0e,$P){var t0e=x_.tag,r0e=t0e===5||t0e===6;if(r0e)x_=r0e?x_.stateNode:x_.stateNode.instance,e0e?$P.insertBefore(x_,e0e):$P.appendChild(x_);else if(t0e!==4&&(x_=x_.child,x_!==null))for(hj$1(x_,e0e,$P),x_=x_.sibling;x_!==null;)hj$1(x_,e0e,$P),x_=x_.sibling}function cj$1(x_,e0e){for(var $P=e0e,t0e=!1,r0e,n0e;;){if(!t0e){t0e=$P.return;e:for(;;){if(t0e===null)throw Error(y$3(160));switch(r0e=t0e.stateNode,t0e.tag){case 5:n0e=!1;break e;case 3:r0e=r0e.containerInfo,n0e=!0;break e;case 4:r0e=r0e.containerInfo,n0e=!0;break e}t0e=t0e.return}t0e=!0}if($P.tag===5||$P.tag===6){e:for(var a0e=x_,o0e=$P,i0e=o0e;;)if(bj$1(a0e,i0e),i0e.child!==null&&i0e.tag!==4)i0e.child.return=i0e,i0e=i0e.child;else{if(i0e===o0e)break e;for(;i0e.sibling===null;){if(i0e.return===null||i0e.return===o0e)break e;i0e=i0e.return}i0e.sibling.return=i0e.return,i0e=i0e.sibling}n0e?(a0e=r0e,o0e=$P.stateNode,a0e.nodeType===8?a0e.parentNode.removeChild(o0e):a0e.removeChild(o0e)):r0e.removeChild($P.stateNode)}else if($P.tag===4){if($P.child!==null){r0e=$P.stateNode.containerInfo,n0e=!0,$P.child.return=$P,$P=$P.child;continue}}else if(bj$1(x_,$P),$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===e0e)break;for(;$P.sibling===null;){if($P.return===null||$P.return===e0e)return;$P=$P.return,$P.tag===4&&(t0e=!1)}$P.sibling.return=$P.return,$P=$P.sibling}}function ij$1(x_,e0e){switch(e0e.tag){case 0:case 11:case 14:case 15:case 22:var $P=e0e.updateQueue;if($P=$P!==null?$P.lastEffect:null,$P!==null){var t0e=$P=$P.next;do(t0e.tag&3)===3&&(x_=t0e.destroy,t0e.destroy=void 0,x_!==void 0&&x_()),t0e=t0e.next;while(t0e!==$P)}return;case 1:return;case 5:if($P=e0e.stateNode,$P!=null){t0e=e0e.memoizedProps;var r0e=x_!==null?x_.memoizedProps:t0e;x_=e0e.type;var n0e=e0e.updateQueue;if(e0e.updateQueue=null,n0e!==null){for($P[xf$1]=t0e,x_==="input"&&t0e.type==="radio"&&t0e.name!=null&&$a$1($P,t0e),wb$1(x_,r0e),e0e=wb$1(x_,t0e),r0e=0;r0er0e&&(r0e=a0e),$P&=~n0e}if($P=r0e,$P=O$1()-$P,$P=(120>$P?120:480>$P?480:1080>$P?1080:1920>$P?1920:3e3>$P?3e3:4320>$P?4320:1960*nj$1($P/1960))-$P,10<$P){x_.timeoutHandle=of$1(Uj$1.bind(null,x_),$P);break}Uj$1(x_);break;case 5:Uj$1(x_);break;default:throw Error(y$3(329))}}return Mj$1(x_,O$1()),x_.callbackNode===e0e?Nj$1.bind(null,x_):null}function Ii$1(x_,e0e){for(e0e&=~uj$1,e0e&=~Hi$1,x_.suspendedLanes|=e0e,x_.pingedLanes&=~e0e,x_=x_.expirationTimes;0r0e&&(r0e=a0e),$P&=~n0e}if($P=r0e,$P=O$1()-$P,$P=(120>$P?120:480>$P?480:1080>$P?1080:1920>$P?1920:3e3>$P?3e3:4320>$P?4320:1960*nj$1($P/1960))-$P,10<$P){x_.timeoutHandle=of$1(Uj$1.bind(null,x_),$P);break}Uj$1(x_);break;case 5:Uj$1(x_);break;default:throw Error(y$2(329))}}return Mj$1(x_,O$1()),x_.callbackNode===e0e?Nj$1.bind(null,x_):null}function Ii$1(x_,e0e){for(e0e&=~uj$1,e0e&=~Hi$1,x_.suspendedLanes|=e0e,x_.pingedLanes&=~e0e,x_=x_.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.`)}V$1!==5&&(V$1=2),i0e=Mi$1(i0e,o0e),u0e=a0e;do{switch(u0e.tag){case 3:n0e=i0e,u0e.flags|=4096,e0e&=-e0e,u0e.lanes|=e0e;var y0e=Pi$1(u0e,n0e,e0e);Bg$2(u0e,y0e);break e;case 1:n0e=i0e;var M0e=u0e.type,O0e=u0e.stateNode;if(!(u0e.flags&64)&&(typeof M0e.getDerivedStateFromError=="function"||O0e!==null&&typeof O0e.componentDidCatch=="function"&&(Ti$1===null||!Ti$1.has(O0e)))){u0e.flags|=4096,e0e&=-e0e,u0e.lanes|=e0e;var z0e=Si$1(u0e,n0e,e0e);Bg$2(u0e,z0e);break e}}u0e=u0e.return}while(u0e!==null)}Zj$1($P)}catch(A0e){e0e=A0e,Y$1===$P&&$P!==null&&(Y$1=$P=$P.return);continue}break}while(1)}function Pj$1(){var x_=oj$1.current;return oj$1.current=Gh$1,x_===null?Gh$1:x_}function Tj$1(x_,e0e){var $P=X$1;X$1|=16;var t0e=Pj$1();U$1===x_&&W$1===e0e||Qj$1(x_,e0e);do try{ak$1();break}catch(r0e){Sj$1(x_,r0e)}while(1);if(qg$1(),X$1=$P,oj$1.current=t0e,Y$1!==null)throw Error(y$3(261));return U$1=null,W$1=0,V$1}function ak$1(){for(;Y$1!==null;)bk$1(Y$1)}function Rj$1(){for(;Y$1!==null&&!Qf$1();)bk$1(Y$1)}function bk$1(x_){var e0e=ck$1(x_.alternate,x_,qj$1);x_.memoizedProps=x_.pendingProps,e0e===null?Zj$1(x_):Y$1=e0e,pj$1.current=null}function Zj$1(x_){var e0e=x_;do{var $P=e0e.alternate;if(x_=e0e.return,e0e.flags&2048){if($P=Li$1(e0e),$P!==null){$P.flags&=2047,Y$1=$P;return}x_!==null&&(x_.firstEffect=x_.lastEffect=null,x_.flags|=2048)}else{if($P=Gi$1($P,e0e,qj$1),$P!==null){Y$1=$P;return}if($P=e0e,$P.tag!==24&&$P.tag!==23||$P.memoizedState===null||qj$1&1073741824||!($P.mode&4)){for(var t0e=0,r0e=$P.child;r0e!==null;)t0e|=r0e.lanes|r0e.childLanes,r0e=r0e.sibling;$P.childLanes=t0e}x_!==null&&!(x_.flags&2048)&&(x_.firstEffect===null&&(x_.firstEffect=e0e.firstEffect),e0e.lastEffect!==null&&(x_.lastEffect!==null&&(x_.lastEffect.nextEffect=e0e.firstEffect),x_.lastEffect=e0e.lastEffect),1a0e&&(o0e=a0e,a0e=y0e,y0e=o0e),o0e=Le$1(m0e,y0e),n0e=Le$1(m0e,a0e),o0e&&n0e&&(g0e.rangeCount!==1||g0e.anchorNode!==o0e.node||g0e.anchorOffset!==o0e.offset||g0e.focusNode!==n0e.node||g0e.focusOffset!==n0e.offset)&&(v0e=v0e.createRange(),v0e.setStart(o0e.node,o0e.offset),g0e.removeAllRanges(),y0e>a0e?(g0e.addRange(v0e),g0e.extend(n0e.node,n0e.offset)):(v0e.setEnd(n0e.node,n0e.offset),g0e.addRange(v0e)))))),v0e=[],g0e=m0e;g0e=g0e.parentNode;)g0e.nodeType===1&&v0e.push({element:g0e,left:g0e.scrollLeft,top:g0e.scrollTop});for(typeof m0e.focus=="function"&&m0e.focus(),m0e=0;m0eO$1()-jj$1?Qj$1(x_,0):uj$1|=$P),Mj$1(x_,e0e)}function lj$1(x_,e0e){var $P=x_.stateNode;$P!==null&&$P.delete(e0e),e0e=0,e0e===0&&(e0e=x_.mode,e0e&2?e0e&4?(Gj$1===0&&(Gj$1=tj$1),e0e=Yc$1(62914560&~Gj$1),e0e===0&&(e0e=4194304)):e0e=eg$1()===99?1:2:e0e=1),$P=Hg$1(),x_=Kj$1(x_,e0e),x_!==null&&($c$1(x_,e0e,$P),Mj$1(x_,$P))}var ck$1;ck$1=function(x_,e0e,$P){var t0e=e0e.lanes;if(x_!==null)if(x_.memoizedProps!==e0e.pendingProps||N$1.current)ug$1=!0;else if($P&t0e)ug$1=!!(x_.flags&16384);else{switch(ug$1=!1,e0e.tag){case 3:ri$1(e0e),sh$1();break;case 5:gh$1(e0e);break;case 1:Ff(e0e.type)&&Jf$1(e0e);break;case 4:eh$1(e0e,e0e.stateNode.containerInfo);break;case 10:t0e=e0e.memoizedProps.value;var r0e=e0e.type._context;I$2(mg$1,r0e._currentValue),r0e._currentValue=t0e;break;case 13:if(e0e.memoizedState!==null)return $P&e0e.child.childLanes?ti$1(x_,e0e,$P):(I$2(P$1,P$1.current&1),e0e=hi$1(x_,e0e,$P),e0e!==null?e0e.sibling:null);I$2(P$1,P$1.current&1);break;case 19:if(t0e=($P&e0e.childLanes)!==0,x_.flags&64){if(t0e)return Ai$1(x_,e0e,$P);e0e.flags|=64}if(r0e=e0e.memoizedState,r0e!==null&&(r0e.rendering=null,r0e.tail=null,r0e.lastEffect=null),I$2(P$1,P$1.current),t0e)break;return null;case 23:case 24:return e0e.lanes=0,mi$1(x_,e0e,$P)}return hi$1(x_,e0e,$P)}else ug$1=!1;switch(e0e.lanes=0,e0e.tag){case 2:if(t0e=e0e.type,x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),x_=e0e.pendingProps,r0e=Ef$1(e0e,M$1.current),tg$1(e0e,$P),r0e=Ch$1(null,e0e,t0e,x_,r0e,$P),e0e.flags|=1,typeof r0e=="object"&&r0e!==null&&typeof r0e.render=="function"&&r0e.$$typeof===void 0){if(e0e.tag=1,e0e.memoizedState=null,e0e.updateQueue=null,Ff(t0e)){var n0e=!0;Jf$1(e0e)}else n0e=!1;e0e.memoizedState=r0e.state!==null&&r0e.state!==void 0?r0e.state:null,xg$1(e0e);var a0e=t0e.getDerivedStateFromProps;typeof a0e=="function"&&Gg$1(e0e,t0e,a0e,x_),r0e.updater=Kg$1,e0e.stateNode=r0e,r0e._reactInternals=e0e,Og$1(e0e,t0e,x_,$P),e0e=qi$1(null,e0e,t0e,!0,n0e,$P)}else e0e.tag=0,fi$1(null,e0e,r0e,$P),e0e=e0e.child;return e0e;case 16:r0e=e0e.elementType;e:{switch(x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),x_=e0e.pendingProps,n0e=r0e._init,r0e=n0e(r0e._payload),e0e.type=r0e,n0e=e0e.tag=hk$1(r0e),x_=lg$1(r0e,x_),n0e){case 0:e0e=li$1(null,e0e,r0e,x_,$P);break e;case 1:e0e=pi$1(null,e0e,r0e,x_,$P);break e;case 11:e0e=gi$1(null,e0e,r0e,x_,$P);break e;case 14:e0e=ii$1(null,e0e,r0e,lg$1(r0e.type,x_),t0e,$P);break e}throw Error(y$3(306,r0e,""))}return e0e;case 0:return t0e=e0e.type,r0e=e0e.pendingProps,r0e=e0e.elementType===t0e?r0e:lg$1(t0e,r0e),li$1(x_,e0e,t0e,r0e,$P);case 1:return t0e=e0e.type,r0e=e0e.pendingProps,r0e=e0e.elementType===t0e?r0e:lg$1(t0e,r0e),pi$1(x_,e0e,t0e,r0e,$P);case 3:if(ri$1(e0e),t0e=e0e.updateQueue,x_===null||t0e===null)throw Error(y$3(282));if(t0e=e0e.pendingProps,r0e=e0e.memoizedState,r0e=r0e!==null?r0e.element:null,yg$1(x_,e0e),Cg$1(e0e,t0e,null,$P),t0e=e0e.memoizedState.element,t0e===r0e)sh$1(),e0e=hi$1(x_,e0e,$P);else{if(r0e=e0e.stateNode,(n0e=r0e.hydrate)&&(kh=rf$1(e0e.stateNode.containerInfo.firstChild),jh$1=e0e,n0e=lh$1=!0),n0e){if(x_=r0e.mutableSourceEagerHydrationData,x_!=null)for(r0e=0;r0e"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(x_){console.error(x_)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports),ReactDOM$1=_mergeNamespaces({__proto__:null,default:ReactDOM},[reactDomExports]);function _typeof$2(x_){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e0e){return typeof e0e}:function(e0e){return e0e&&typeof Symbol=="function"&&e0e.constructor===Symbol&&e0e!==Symbol.prototype?"symbol":typeof e0e},_typeof$2(x_)}function _toPrimitive$1(x_,e0e){if(_typeof$2(x_)!=="object"||x_===null)return x_;var $P=x_[Symbol.toPrimitive];if($P!==void 0){var t0e=$P.call(x_,e0e||"default");if(_typeof$2(t0e)!=="object")return t0e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e0e==="string"?String:Number)(x_)}function _toPropertyKey$1(x_){var e0e=_toPrimitive$1(x_,"string");return _typeof$2(e0e)==="symbol"?e0e:String(e0e)}function _defineProperty$5(x_,e0e,$P){return e0e=_toPropertyKey$1(e0e),e0e in x_?Object.defineProperty(x_,e0e,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[e0e]=$P,x_}function ownKeys$3(x_,e0e){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var t0e=Object.getOwnPropertySymbols(x_);e0e&&(t0e=t0e.filter(function(r0e){return Object.getOwnPropertyDescriptor(x_,r0e).enumerable})),$P.push.apply($P,t0e)}return $P}function _objectSpread2$1(x_){for(var e0e=1;e0e"u"&&($P=e0e,e0e=void 0),typeof $P<"u"){if(typeof $P!="function")throw new Error(formatProdErrorMessage(1));return $P(createStore)(x_,e0e)}if(typeof x_!="function")throw new Error(formatProdErrorMessage(2));var r0e=x_,n0e=e0e,a0e=[],o0e=a0e,i0e=!1;function s0e(){o0e===a0e&&(o0e=a0e.slice())}function l0e(){if(i0e)throw new Error(formatProdErrorMessage(3));return n0e}function c0e(f0e){if(typeof f0e!="function")throw new Error(formatProdErrorMessage(4));if(i0e)throw new Error(formatProdErrorMessage(5));var h0e=!0;return s0e(),o0e.push(f0e),function(){if(h0e){if(i0e)throw new Error(formatProdErrorMessage(6));h0e=!1,s0e();var m0e=o0e.indexOf(f0e);o0e.splice(m0e,1),a0e=null}}}function u0e(f0e){if(!isPlainObject$9(f0e))throw new Error(formatProdErrorMessage(7));if(typeof f0e.type>"u")throw new Error(formatProdErrorMessage(8));if(i0e)throw new Error(formatProdErrorMessage(9));try{i0e=!0,n0e=r0e(n0e,f0e)}finally{i0e=!1}for(var h0e=a0e=o0e,b0e=0;b0e"u")throw new Error(formatProdErrorMessage(12));if(typeof $P(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(x_){for(var e0e=Object.keys(x_),$P={},t0e=0;t0e"u")throw s0e&&s0e.type,new Error(formatProdErrorMessage(14));c0e[d0e]=h0e,l0e=l0e||h0e!==f0e}return l0e=l0e||n0e.length!==Object.keys(i0e).length,l0e?c0e:i0e}}function bindActionCreator(x_,e0e){return function(){return e0e(x_.apply(this,arguments))}}function bindActionCreators(x_,e0e){if(typeof x_=="function")return bindActionCreator(x_,e0e);if(typeof x_!="object"||x_===null)throw new Error(formatProdErrorMessage(16));var $P={};for(var t0e in x_){var r0e=x_[t0e];typeof r0e=="function"&&($P[t0e]=bindActionCreator(r0e,e0e))}return $P}function compose$1(){for(var x_=arguments.length,e0e=new Array(x_),$P=0;$P component higher in the tree to provide a loading indicator or placeholder to display.`)}V$1!==5&&(V$1=2),i0e=Mi$1(i0e,o0e),u0e=a0e;do{switch(u0e.tag){case 3:n0e=i0e,u0e.flags|=4096,e0e&=-e0e,u0e.lanes|=e0e;var y0e=Pi$1(u0e,n0e,e0e);Bg$2(u0e,y0e);break e;case 1:n0e=i0e;var M0e=u0e.type,O0e=u0e.stateNode;if(!(u0e.flags&64)&&(typeof M0e.getDerivedStateFromError=="function"||O0e!==null&&typeof O0e.componentDidCatch=="function"&&(Ti$1===null||!Ti$1.has(O0e)))){u0e.flags|=4096,e0e&=-e0e,u0e.lanes|=e0e;var z0e=Si$1(u0e,n0e,e0e);Bg$2(u0e,z0e);break e}}u0e=u0e.return}while(u0e!==null)}Zj$1($P)}catch(A0e){e0e=A0e,Y$1===$P&&$P!==null&&(Y$1=$P=$P.return);continue}break}while(1)}function Pj$1(){var x_=oj$1.current;return oj$1.current=Gh$1,x_===null?Gh$1:x_}function Tj$1(x_,e0e){var $P=X$1;X$1|=16;var t0e=Pj$1();U$1===x_&&W$1===e0e||Qj$1(x_,e0e);do try{ak$1();break}catch(r0e){Sj$1(x_,r0e)}while(1);if(qg$1(),X$1=$P,oj$1.current=t0e,Y$1!==null)throw Error(y$2(261));return U$1=null,W$1=0,V$1}function ak$1(){for(;Y$1!==null;)bk$1(Y$1)}function Rj$1(){for(;Y$1!==null&&!Qf$1();)bk$1(Y$1)}function bk$1(x_){var e0e=ck$1(x_.alternate,x_,qj$1);x_.memoizedProps=x_.pendingProps,e0e===null?Zj$1(x_):Y$1=e0e,pj$1.current=null}function Zj$1(x_){var e0e=x_;do{var $P=e0e.alternate;if(x_=e0e.return,e0e.flags&2048){if($P=Li$1(e0e),$P!==null){$P.flags&=2047,Y$1=$P;return}x_!==null&&(x_.firstEffect=x_.lastEffect=null,x_.flags|=2048)}else{if($P=Gi$1($P,e0e,qj$1),$P!==null){Y$1=$P;return}if($P=e0e,$P.tag!==24&&$P.tag!==23||$P.memoizedState===null||qj$1&1073741824||!($P.mode&4)){for(var t0e=0,r0e=$P.child;r0e!==null;)t0e|=r0e.lanes|r0e.childLanes,r0e=r0e.sibling;$P.childLanes=t0e}x_!==null&&!(x_.flags&2048)&&(x_.firstEffect===null&&(x_.firstEffect=e0e.firstEffect),e0e.lastEffect!==null&&(x_.lastEffect!==null&&(x_.lastEffect.nextEffect=e0e.firstEffect),x_.lastEffect=e0e.lastEffect),1a0e&&(o0e=a0e,a0e=y0e,y0e=o0e),o0e=Le$1(m0e,y0e),n0e=Le$1(m0e,a0e),o0e&&n0e&&(g0e.rangeCount!==1||g0e.anchorNode!==o0e.node||g0e.anchorOffset!==o0e.offset||g0e.focusNode!==n0e.node||g0e.focusOffset!==n0e.offset)&&(v0e=v0e.createRange(),v0e.setStart(o0e.node,o0e.offset),g0e.removeAllRanges(),y0e>a0e?(g0e.addRange(v0e),g0e.extend(n0e.node,n0e.offset)):(v0e.setEnd(n0e.node,n0e.offset),g0e.addRange(v0e)))))),v0e=[],g0e=m0e;g0e=g0e.parentNode;)g0e.nodeType===1&&v0e.push({element:g0e,left:g0e.scrollLeft,top:g0e.scrollTop});for(typeof m0e.focus=="function"&&m0e.focus(),m0e=0;m0eO$1()-jj$1?Qj$1(x_,0):uj$1|=$P),Mj$1(x_,e0e)}function lj$1(x_,e0e){var $P=x_.stateNode;$P!==null&&$P.delete(e0e),e0e=0,e0e===0&&(e0e=x_.mode,e0e&2?e0e&4?(Gj$1===0&&(Gj$1=tj$1),e0e=Yc$1(62914560&~Gj$1),e0e===0&&(e0e=4194304)):e0e=eg$1()===99?1:2:e0e=1),$P=Hg$1(),x_=Kj$1(x_,e0e),x_!==null&&($c$1(x_,e0e,$P),Mj$1(x_,$P))}var ck$1;ck$1=function(x_,e0e,$P){var t0e=e0e.lanes;if(x_!==null)if(x_.memoizedProps!==e0e.pendingProps||N$1.current)ug$1=!0;else if($P&t0e)ug$1=!!(x_.flags&16384);else{switch(ug$1=!1,e0e.tag){case 3:ri$1(e0e),sh$1();break;case 5:gh$1(e0e);break;case 1:Ff(e0e.type)&&Jf$1(e0e);break;case 4:eh$1(e0e,e0e.stateNode.containerInfo);break;case 10:t0e=e0e.memoizedProps.value;var r0e=e0e.type._context;I$2(mg$1,r0e._currentValue),r0e._currentValue=t0e;break;case 13:if(e0e.memoizedState!==null)return $P&e0e.child.childLanes?ti$1(x_,e0e,$P):(I$2(P$1,P$1.current&1),e0e=hi$1(x_,e0e,$P),e0e!==null?e0e.sibling:null);I$2(P$1,P$1.current&1);break;case 19:if(t0e=($P&e0e.childLanes)!==0,x_.flags&64){if(t0e)return Ai$1(x_,e0e,$P);e0e.flags|=64}if(r0e=e0e.memoizedState,r0e!==null&&(r0e.rendering=null,r0e.tail=null,r0e.lastEffect=null),I$2(P$1,P$1.current),t0e)break;return null;case 23:case 24:return e0e.lanes=0,mi$1(x_,e0e,$P)}return hi$1(x_,e0e,$P)}else ug$1=!1;switch(e0e.lanes=0,e0e.tag){case 2:if(t0e=e0e.type,x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),x_=e0e.pendingProps,r0e=Ef$1(e0e,M$1.current),tg$1(e0e,$P),r0e=Ch$1(null,e0e,t0e,x_,r0e,$P),e0e.flags|=1,typeof r0e=="object"&&r0e!==null&&typeof r0e.render=="function"&&r0e.$$typeof===void 0){if(e0e.tag=1,e0e.memoizedState=null,e0e.updateQueue=null,Ff(t0e)){var n0e=!0;Jf$1(e0e)}else n0e=!1;e0e.memoizedState=r0e.state!==null&&r0e.state!==void 0?r0e.state:null,xg$1(e0e);var a0e=t0e.getDerivedStateFromProps;typeof a0e=="function"&&Gg$1(e0e,t0e,a0e,x_),r0e.updater=Kg$1,e0e.stateNode=r0e,r0e._reactInternals=e0e,Og$1(e0e,t0e,x_,$P),e0e=qi$1(null,e0e,t0e,!0,n0e,$P)}else e0e.tag=0,fi$1(null,e0e,r0e,$P),e0e=e0e.child;return e0e;case 16:r0e=e0e.elementType;e:{switch(x_!==null&&(x_.alternate=null,e0e.alternate=null,e0e.flags|=2),x_=e0e.pendingProps,n0e=r0e._init,r0e=n0e(r0e._payload),e0e.type=r0e,n0e=e0e.tag=hk$1(r0e),x_=lg$1(r0e,x_),n0e){case 0:e0e=li$1(null,e0e,r0e,x_,$P);break e;case 1:e0e=pi$1(null,e0e,r0e,x_,$P);break e;case 11:e0e=gi$1(null,e0e,r0e,x_,$P);break e;case 14:e0e=ii$1(null,e0e,r0e,lg$1(r0e.type,x_),t0e,$P);break e}throw Error(y$2(306,r0e,""))}return e0e;case 0:return t0e=e0e.type,r0e=e0e.pendingProps,r0e=e0e.elementType===t0e?r0e:lg$1(t0e,r0e),li$1(x_,e0e,t0e,r0e,$P);case 1:return t0e=e0e.type,r0e=e0e.pendingProps,r0e=e0e.elementType===t0e?r0e:lg$1(t0e,r0e),pi$1(x_,e0e,t0e,r0e,$P);case 3:if(ri$1(e0e),t0e=e0e.updateQueue,x_===null||t0e===null)throw Error(y$2(282));if(t0e=e0e.pendingProps,r0e=e0e.memoizedState,r0e=r0e!==null?r0e.element:null,yg$1(x_,e0e),Cg$1(e0e,t0e,null,$P),t0e=e0e.memoizedState.element,t0e===r0e)sh$1(),e0e=hi$1(x_,e0e,$P);else{if(r0e=e0e.stateNode,(n0e=r0e.hydrate)&&(kh=rf$1(e0e.stateNode.containerInfo.firstChild),jh$1=e0e,n0e=lh$1=!0),n0e){if(x_=r0e.mutableSourceEagerHydrationData,x_!=null)for(r0e=0;r0e"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(x_){console.error(x_)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports),ReactDOM$1=_mergeNamespaces({__proto__:null,default:ReactDOM},[reactDomExports]);function _typeof$2(x_){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e0e){return typeof e0e}:function(e0e){return e0e&&typeof Symbol=="function"&&e0e.constructor===Symbol&&e0e!==Symbol.prototype?"symbol":typeof e0e},_typeof$2(x_)}function _toPrimitive$1(x_,e0e){if(_typeof$2(x_)!=="object"||x_===null)return x_;var $P=x_[Symbol.toPrimitive];if($P!==void 0){var t0e=$P.call(x_,e0e||"default");if(_typeof$2(t0e)!=="object")return t0e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e0e==="string"?String:Number)(x_)}function _toPropertyKey$1(x_){var e0e=_toPrimitive$1(x_,"string");return _typeof$2(e0e)==="symbol"?e0e:String(e0e)}function _defineProperty$5(x_,e0e,$P){return e0e=_toPropertyKey$1(e0e),e0e in x_?Object.defineProperty(x_,e0e,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[e0e]=$P,x_}function ownKeys$3(x_,e0e){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var t0e=Object.getOwnPropertySymbols(x_);e0e&&(t0e=t0e.filter(function(r0e){return Object.getOwnPropertyDescriptor(x_,r0e).enumerable})),$P.push.apply($P,t0e)}return $P}function _objectSpread2$1(x_){for(var e0e=1;e0e"u"&&($P=e0e,e0e=void 0),typeof $P<"u"){if(typeof $P!="function")throw new Error(formatProdErrorMessage(1));return $P(createStore)(x_,e0e)}if(typeof x_!="function")throw new Error(formatProdErrorMessage(2));var r0e=x_,n0e=e0e,a0e=[],o0e=a0e,i0e=!1;function s0e(){o0e===a0e&&(o0e=a0e.slice())}function l0e(){if(i0e)throw new Error(formatProdErrorMessage(3));return n0e}function c0e(f0e){if(typeof f0e!="function")throw new Error(formatProdErrorMessage(4));if(i0e)throw new Error(formatProdErrorMessage(5));var h0e=!0;return s0e(),o0e.push(f0e),function(){if(h0e){if(i0e)throw new Error(formatProdErrorMessage(6));h0e=!1,s0e();var m0e=o0e.indexOf(f0e);o0e.splice(m0e,1),a0e=null}}}function u0e(f0e){if(!isPlainObject$9(f0e))throw new Error(formatProdErrorMessage(7));if(typeof f0e.type>"u")throw new Error(formatProdErrorMessage(8));if(i0e)throw new Error(formatProdErrorMessage(9));try{i0e=!0,n0e=r0e(n0e,f0e)}finally{i0e=!1}for(var h0e=a0e=o0e,b0e=0;b0e"u")throw new Error(formatProdErrorMessage(12));if(typeof $P(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(x_){for(var e0e=Object.keys(x_),$P={},t0e=0;t0e"u")throw s0e&&s0e.type,new Error(formatProdErrorMessage(14));c0e[d0e]=h0e,l0e=l0e||h0e!==f0e}return l0e=l0e||n0e.length!==Object.keys(i0e).length,l0e?c0e:i0e}}function bindActionCreator(x_,e0e){return function(){return e0e(x_.apply(this,arguments))}}function bindActionCreators(x_,e0e){if(typeof x_=="function")return bindActionCreator(x_,e0e);if(typeof x_!="object"||x_===null)throw new Error(formatProdErrorMessage(16));var $P={};for(var t0e in x_){var r0e=x_[t0e];typeof r0e=="function"&&($P[t0e]=bindActionCreator(r0e,e0e))}return $P}function compose$1(){for(var x_=arguments.length,e0e=new Array(x_),$P=0;$P=0)&&($P[r0e]=x_[r0e]);return $P}var reactIs$1={exports:{}},reactIs_production_min$2={};/** @license React v16.13.1 + */var f$3=reactExports,g$4=60103;reactJsxRuntime_production_min.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var h$3=Symbol.for;g$4=h$3("react.element"),reactJsxRuntime_production_min.Fragment=h$3("react.fragment")}var m$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n$5=Object.prototype.hasOwnProperty,p$3={key:!0,ref:!0,__self:!0,__source:!0};function q$3(x_,e0e,$P){var t0e,r0e={},n0e=null,a0e=null;$P!==void 0&&(n0e=""+$P),e0e.key!==void 0&&(n0e=""+e0e.key),e0e.ref!==void 0&&(a0e=e0e.ref);for(t0e in e0e)n$5.call(e0e,t0e)&&!p$3.hasOwnProperty(t0e)&&(r0e[t0e]=e0e[t0e]);if(x_&&x_.defaultProps)for(t0e in e0e=x_.defaultProps,e0e)r0e[t0e]===void 0&&(r0e[t0e]=e0e[t0e]);return{$$typeof:g$4,type:x_,key:n0e,ref:a0e,props:r0e,_owner:m$3.current}}reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports;const jsx=jsxRuntimeExports.jsx,jsxs=jsxRuntimeExports.jsxs,Fragment=jsxRuntimeExports.Fragment;function Provider(x_){var e0e=x_.store,$P=x_.context,t0e=x_.children,r0e=reactExports.useMemo(function(){var o0e=createSubscription(e0e);return{store:e0e,subscription:o0e}},[e0e]),n0e=reactExports.useMemo(function(){return e0e.getState()},[e0e]);useIsomorphicLayoutEffect$1(function(){var o0e=r0e.subscription;return o0e.onStateChange=o0e.notifyNestedSubs,o0e.trySubscribe(),n0e!==e0e.getState()&&o0e.notifyNestedSubs(),function(){o0e.tryUnsubscribe(),o0e.onStateChange=null}},[r0e,n0e]);var a0e=$P||ReactReduxContext;return jsx(a0e.Provider,{value:r0e,children:t0e})}function _extends$1y(){return _extends$1y=Object.assign?Object.assign.bind():function(x_){for(var e0e=1;e0e=0)&&($P[r0e]=x_[r0e]);return $P}var reactIs$1={exports:{}},reactIs_production_min$2={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$3=typeof Symbol=="function"&&Symbol.for,c$4=b$3?Symbol.for("react.element"):60103,d$3=b$3?Symbol.for("react.portal"):60106,e$6=b$3?Symbol.for("react.fragment"):60107,f$3=b$3?Symbol.for("react.strict_mode"):60108,g$4=b$3?Symbol.for("react.profiler"):60114,h$3=b$3?Symbol.for("react.provider"):60109,k$4=b$3?Symbol.for("react.context"):60110,l$4=b$3?Symbol.for("react.async_mode"):60111,m$3=b$3?Symbol.for("react.concurrent_mode"):60111,n$5=b$3?Symbol.for("react.forward_ref"):60112,p$3=b$3?Symbol.for("react.suspense"):60113,q$3=b$3?Symbol.for("react.suspense_list"):60120,r$5=b$3?Symbol.for("react.memo"):60115,t$4=b$3?Symbol.for("react.lazy"):60116,v$3=b$3?Symbol.for("react.block"):60121,w$2=b$3?Symbol.for("react.fundamental"):60117,x$2=b$3?Symbol.for("react.responder"):60118,y$2=b$3?Symbol.for("react.scope"):60119;function z$2(x_){if(typeof x_=="object"&&x_!==null){var e0e=x_.$$typeof;switch(e0e){case c$4:switch(x_=x_.type,x_){case l$4:case m$3:case e$6:case g$4:case f$3:case p$3:return x_;default:switch(x_=x_&&x_.$$typeof,x_){case k$4:case n$5:case t$4:case r$5:case h$3:return x_;default:return e0e}}case d$3:return e0e}}}function A$2(x_){return z$2(x_)===m$3}reactIs_production_min$2.AsyncMode=l$4;reactIs_production_min$2.ConcurrentMode=m$3;reactIs_production_min$2.ContextConsumer=k$4;reactIs_production_min$2.ContextProvider=h$3;reactIs_production_min$2.Element=c$4;reactIs_production_min$2.ForwardRef=n$5;reactIs_production_min$2.Fragment=e$6;reactIs_production_min$2.Lazy=t$4;reactIs_production_min$2.Memo=r$5;reactIs_production_min$2.Portal=d$3;reactIs_production_min$2.Profiler=g$4;reactIs_production_min$2.StrictMode=f$3;reactIs_production_min$2.Suspense=p$3;reactIs_production_min$2.isAsyncMode=function(x_){return A$2(x_)||z$2(x_)===l$4};reactIs_production_min$2.isConcurrentMode=A$2;reactIs_production_min$2.isContextConsumer=function(x_){return z$2(x_)===k$4};reactIs_production_min$2.isContextProvider=function(x_){return z$2(x_)===h$3};reactIs_production_min$2.isElement=function(x_){return typeof x_=="object"&&x_!==null&&x_.$$typeof===c$4};reactIs_production_min$2.isForwardRef=function(x_){return z$2(x_)===n$5};reactIs_production_min$2.isFragment=function(x_){return z$2(x_)===e$6};reactIs_production_min$2.isLazy=function(x_){return z$2(x_)===t$4};reactIs_production_min$2.isMemo=function(x_){return z$2(x_)===r$5};reactIs_production_min$2.isPortal=function(x_){return z$2(x_)===d$3};reactIs_production_min$2.isProfiler=function(x_){return z$2(x_)===g$4};reactIs_production_min$2.isStrictMode=function(x_){return z$2(x_)===f$3};reactIs_production_min$2.isSuspense=function(x_){return z$2(x_)===p$3};reactIs_production_min$2.isValidElementType=function(x_){return typeof x_=="string"||typeof x_=="function"||x_===e$6||x_===m$3||x_===g$4||x_===f$3||x_===p$3||x_===q$3||typeof x_=="object"&&x_!==null&&(x_.$$typeof===t$4||x_.$$typeof===r$5||x_.$$typeof===h$3||x_.$$typeof===k$4||x_.$$typeof===n$5||x_.$$typeof===w$2||x_.$$typeof===x$2||x_.$$typeof===y$2||x_.$$typeof===v$3)};reactIs_production_min$2.typeOf=z$2;reactIs$1.exports=reactIs_production_min$2;var reactIsExports$1=reactIs$1.exports,hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var x_=reactIsExports$1,e0e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$P={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t0e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r0e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n0e={};n0e[x_.ForwardRef]=t0e,n0e[x_.Memo]=r0e;function a0e(p0e){return x_.isMemo(p0e)?r0e:n0e[p0e.$$typeof]||e0e}var o0e=Object.defineProperty,i0e=Object.getOwnPropertyNames,s0e=Object.getOwnPropertySymbols,l0e=Object.getOwnPropertyDescriptor,c0e=Object.getPrototypeOf,u0e=Object.prototype;function d0e(p0e,f0e,h0e){if(typeof f0e!="string"){if(u0e){var b0e=c0e(f0e);b0e&&b0e!==u0e&&d0e(p0e,b0e,h0e)}var m0e=i0e(f0e);s0e&&(m0e=m0e.concat(s0e(f0e)));for(var v0e=a0e(p0e),g0e=a0e(f0e),y0e=0;y0e component higher in the tree to provide a loading The error may be correlated with this previous error: `+o0e.current.stack+` -`),p0e}return useIsomorphicLayoutEffect$1(function(){i0e.current=x_,s0e.current=c0e,l0e.current=u0e,o0e.current=void 0}),useIsomorphicLayoutEffect$1(function(){function p0e(){try{var f0e=$P.getState();if(f0e===s0e.current)return;var h0e=i0e.current(f0e);if(e0e(h0e,l0e.current))return;l0e.current=h0e,s0e.current=f0e}catch(b0e){o0e.current=b0e}n0e()}return a0e.onStateChange=p0e,a0e.trySubscribe(),p0e(),function(){return a0e.tryUnsubscribe()}},[$P,a0e]),u0e}function createSelectorHook(x_){x_===void 0&&(x_=ReactReduxContext);var e0e=x_===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(x_)};return function(t0e,r0e){r0e===void 0&&(r0e=refEquality);var n0e=e0e(),a0e=n0e.store,o0e=n0e.subscription,i0e=useSelectorWithStoreAndSubscription(t0e,r0e,a0e,o0e);return reactExports.useDebugValue(i0e),i0e}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);function _setPrototypeOf$1(x_,e0e){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t0e,r0e){return t0e.__proto__=r0e,t0e},_setPrototypeOf$1(x_,e0e)}function _inheritsLoose$1(x_,e0e){x_.prototype=Object.create(e0e.prototype),x_.prototype.constructor=x_,_setPrototypeOf$1(x_,e0e)}function isAbsolute(x_){return x_.charAt(0)==="/"}function spliceOne(x_,e0e){for(var $P=e0e,t0e=$P+1,r0e=x_.length;t0e=0;l0e--){var c0e=t0e[l0e];c0e==="."?spliceOne(t0e,l0e):c0e===".."?(spliceOne(t0e,l0e),s0e++):s0e&&(spliceOne(t0e,l0e),s0e--)}if(!a0e)for(;s0e--;s0e)t0e.unshift("..");a0e&&t0e[0]!==""&&(!t0e[0]||!isAbsolute(t0e[0]))&&t0e.unshift("");var u0e=t0e.join("/");return o0e&&u0e.substr(-1)!=="/"&&(u0e+="/"),u0e}function valueOf$2(x_){return x_.valueOf?x_.valueOf():Object.prototype.valueOf.call(x_)}function valueEqual(x_,e0e){if(x_===e0e)return!0;if(x_==null||e0e==null)return!1;if(Array.isArray(x_))return Array.isArray(e0e)&&x_.length===e0e.length&&x_.every(function(r0e,n0e){return valueEqual(r0e,e0e[n0e])});if(typeof x_=="object"||typeof e0e=="object"){var $P=valueOf$2(x_),t0e=valueOf$2(e0e);return $P!==x_||t0e!==e0e?valueEqual($P,t0e):Object.keys(Object.assign({},x_,e0e)).every(function(r0e){return valueEqual(x_[r0e],e0e[r0e])})}return!1}var isProduction=!0,prefix$1="Invariant failed";function invariant$4(x_,e0e){if(!x_){if(isProduction)throw new Error(prefix$1);var $P=typeof e0e=="function"?e0e():e0e,t0e=$P?"".concat(prefix$1,": ").concat($P):prefix$1;throw new Error(t0e)}}function addLeadingSlash$1(x_){return x_.charAt(0)==="/"?x_:"/"+x_}function stripLeadingSlash(x_){return x_.charAt(0)==="/"?x_.substr(1):x_}function hasBasename(x_,e0e){return x_.toLowerCase().indexOf(e0e.toLowerCase())===0&&"/?#".indexOf(x_.charAt(e0e.length))!==-1}function stripBasename$1(x_,e0e){return hasBasename(x_,e0e)?x_.substr(e0e.length):x_}function stripTrailingSlash(x_){return x_.charAt(x_.length-1)==="/"?x_.slice(0,-1):x_}function parsePath$1(x_){var e0e=x_||"/",$P="",t0e="",r0e=e0e.indexOf("#");r0e!==-1&&(t0e=e0e.substr(r0e),e0e=e0e.substr(0,r0e));var n0e=e0e.indexOf("?");return n0e!==-1&&($P=e0e.substr(n0e),e0e=e0e.substr(0,n0e)),{pathname:e0e,search:$P==="?"?"":$P,hash:t0e==="#"?"":t0e}}function createPath(x_){var e0e=x_.pathname,$P=x_.search,t0e=x_.hash,r0e=e0e||"/";return $P&&$P!=="?"&&(r0e+=$P.charAt(0)==="?"?$P:"?"+$P),t0e&&t0e!=="#"&&(r0e+=t0e.charAt(0)==="#"?t0e:"#"+t0e),r0e}function createLocation(x_,e0e,$P,t0e){var r0e;typeof x_=="string"?(r0e=parsePath$1(x_),r0e.state=e0e):(r0e=_extends$1y({},x_),r0e.pathname===void 0&&(r0e.pathname=""),r0e.search?r0e.search.charAt(0)!=="?"&&(r0e.search="?"+r0e.search):r0e.search="",r0e.hash?r0e.hash.charAt(0)!=="#"&&(r0e.hash="#"+r0e.hash):r0e.hash="",e0e!==void 0&&r0e.state===void 0&&(r0e.state=e0e));try{r0e.pathname=decodeURI(r0e.pathname)}catch(n0e){throw n0e instanceof URIError?new URIError('Pathname "'+r0e.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n0e}return $P&&(r0e.key=$P),t0e?r0e.pathname?r0e.pathname.charAt(0)!=="/"&&(r0e.pathname=resolvePathname(r0e.pathname,t0e.pathname)):r0e.pathname=t0e.pathname:r0e.pathname||(r0e.pathname="/"),r0e}function locationsAreEqual(x_,e0e){return x_.pathname===e0e.pathname&&x_.search===e0e.search&&x_.hash===e0e.hash&&x_.key===e0e.key&&valueEqual(x_.state,e0e.state)}function createTransitionManager(){var x_=null;function e0e(a0e){return x_=a0e,function(){x_===a0e&&(x_=null)}}function $P(a0e,o0e,i0e,s0e){if(x_!=null){var l0e=typeof x_=="function"?x_(a0e,o0e):x_;typeof l0e=="string"?typeof i0e=="function"?i0e(l0e,s0e):s0e(!0):s0e(l0e!==!1)}else s0e(!0)}var t0e=[];function r0e(a0e){var o0e=!0;function i0e(){o0e&&a0e.apply(void 0,arguments)}return t0e.push(i0e),function(){o0e=!1,t0e=t0e.filter(function(s0e){return s0e!==i0e})}}function n0e(){for(var a0e=arguments.length,o0e=new Array(a0e),i0e=0;i0eS0e?T0e.splice(S0e,T0e.length-S0e,$0e):T0e.push($0e),l0e({action:_0e,location:$0e,index:S0e,entries:T0e})}})}function h0e(z0e,A0e){var _0e="REPLACE",$0e=createLocation(z0e,A0e,c0e(),O0e.location);s0e.confirmTransitionTo($0e,_0e,$P,function(E0e){E0e&&(O0e.entries[O0e.index]=$0e,l0e({action:_0e,location:$0e}))})}function b0e(z0e){var A0e=clamp(O0e.index+z0e,0,O0e.entries.length-1),_0e="POP",$0e=O0e.entries[A0e];s0e.confirmTransitionTo($0e,_0e,$P,function(E0e){E0e?l0e({action:_0e,location:$0e,index:A0e}):l0e()})}function m0e(){b0e(-1)}function v0e(){b0e(1)}function g0e(z0e){var A0e=O0e.index+z0e;return A0e>=0&&A0e"u"&&(forwardRef=forwardRefShim);function isModifiedEvent$1(x_){return!!(x_.metaKey||x_.altKey||x_.ctrlKey||x_.shiftKey)}var LinkAnchor=forwardRef(function(x_,e0e){var $P=x_.innerRef,t0e=x_.navigate,r0e=x_.onClick,n0e=_objectWithoutPropertiesLoose$2(x_,["innerRef","navigate","onClick"]),a0e=n0e.target,o0e=_extends$1y({},n0e,{onClick:function(s0e){try{r0e&&r0e(s0e)}catch(l0e){throw s0e.preventDefault(),l0e}!s0e.defaultPrevented&&s0e.button===0&&(!a0e||a0e==="_self")&&!isModifiedEvent$1(s0e)&&(s0e.preventDefault(),t0e())}});return forwardRefShim!==forwardRef?o0e.ref=e0e||$P:o0e.ref=$P,React$1.createElement("a",o0e)}),Link$2=forwardRef(function(x_,e0e){var $P=x_.component,t0e=$P===void 0?LinkAnchor:$P,r0e=x_.replace,n0e=x_.to,a0e=x_.innerRef,o0e=_objectWithoutPropertiesLoose$2(x_,["component","replace","to","innerRef"]);return React$1.createElement(context.Consumer,null,function(i0e){i0e||invariant$4(!1);var s0e=i0e.history,l0e=normalizeToLocation(resolveToLocation(n0e,i0e.location),i0e.location),c0e=l0e?s0e.createHref(l0e):"",u0e=_extends$1y({},o0e,{href:c0e,navigate:function(){var p0e=resolveToLocation(n0e,i0e.location),f0e=createPath(i0e.location)===createPath(normalizeToLocation(p0e)),h0e=r0e||f0e?s0e.replace:s0e.push;h0e(p0e)}});return forwardRefShim!==forwardRef?u0e.ref=e0e||a0e:u0e.innerRef=a0e,React$1.createElement(t0e,u0e)})}),forwardRefShim$1=function(e0e){return e0e},forwardRef$1=React$1.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var x_=arguments.length,e0e=new Array(x_),$P=0;$PsetTimeout(()=>{var x_;return(x_=document.getElementById("app-loader"))==null?void 0:x_.remove()},500),registerGlobalFunction=(x_,e0e)=>{window.$owl={...window.$owl,[x_]:e0e}},arrayGet=(x_,e0e,$P=null)=>{try{if(e0e===null)return x_;if(x_[e0e]!==void 0)return x_[e0e];for(const t0e of e0e.split("."))if(x_[t0e]!==void 0)x_=x_[t0e];else return $P}catch{return $P}return x_},mergeObject=(x_,e0e)=>{for(const $P in e0e)if(e0e.hasOwnProperty($P)){const t0e=e0e[$P],r0e=x_[$P];if(t0e===null)continue;isObject$p(t0e)&&isObject$p(r0e)?x_[$P]=mergeObject(r0e,t0e):x_[$P]=t0e}return x_},isArray$t=x_=>Object.prototype.toString.call(x_)==="[object Array]",isObject$p=x_=>Object.prototype.toString.call(x_)==="[object Object]",isString$8=x_=>Object.prototype.toString.call(x_)==="[object String]",isSSR=function(){try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}}(),getCacheKey=x_=>window.$adminApiPrefix.replace(/^\//,"")+"-"+x_,Token=()=>{const x_=getCacheKey("token");return{value:localStorage.getItem(x_),set:e0e=>localStorage.setItem(x_,e0e),clear:()=>localStorage.removeItem(x_)}},inLoginPage=()=>window.location.hash=="#/login",goToLoginPage=()=>window.location.hash="#/login",msgHandler=(x_,e0e)=>{const $P="owl-msg-"+x_;localStorage.getItem($P)||(localStorage.setItem($P,x_),setTimeout(()=>{localStorage.removeItem($P)},5e3),e0e().then(()=>{localStorage.removeItem($P)}))},clearMsgSign=()=>{Object.keys(localStorage).forEach(e0e=>{e0e.startsWith("owl-msg-")&&localStorage.removeItem(e0e)})},defaultSettings={darkTheme:!1,footer:!1,breadcrumb:!0,themeColor:"#1677ff",layoutMode:"default",siderTheme:"light",topTheme:"light",animateInType:"alpha",animateInDuration:600,animateOutType:"alpha",animateOutDuration:600,loginTemplate:"default",keepAlive:!1,enableTab:!1,tabIcon:!0},defaultToken={token:{borderRadius:4,wireframe:!0,colorSplit:"var(--color-border)"},components:{Menu:{iconSize:18,collapsedIconSize:18,itemMarginInline:8,subMenuItemBg:"transparent"}}},initialState$2={settings:{system_theme_setting:defaultSettings},userInfo:{},routes:[],userLoading:!1,inited:!1,openSetting:!1,antdToken:defaultToken};function store$3(x_=initialState$2,e0e){switch(e0e.type){case"update-userInfo":{const{userInfo:$P=initialState$2.userInfo,userLoading:t0e}=e0e.payload;return $P!=null&&$P.name&&localStorage.setItem(getCacheKey("user_name"),($P==null?void 0:$P.name)||""),{...x_,userLoading:t0e,userInfo:$P}}case"update-breadcrumb":{const{breadcrumb:$P}=e0e.payload;return{...x_,breadcrumb:$P}}case"update-settings":{const{settings:$P}=e0e.payload,t0e=JSON.parse(JSON.stringify(mergeObject(x_.settings,$P)));return localStorage.setItem(getCacheKey("settings"),JSON.stringify(t0e)),{...x_,settings:t0e}}case"update-routes":{const{routes:$P}=e0e.payload;return{...x_,routes:$P}}case"update-inited":{const{inited:$P}=e0e.payload;return{...x_,inited:$P}}case"update-open-setting":{const{openSetting:$P}=e0e.payload;return{...x_,openSetting:$P}}case"update-antd-token":{const{antdToken:$P}=e0e.payload;return{...x_,antdToken:$P}}default:return x_}}const GlobalContext=reactExports.createContext({});var createUpdateEffect=function(x_){return function(e0e,$P){var t0e=reactExports.useRef(!1);x_(function(){return function(){t0e.current=!1}},[]),x_(function(){if(!t0e.current)t0e.current=!0;else return e0e()},$P)}},extendStatics$2=function(x_,e0e){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,t0e){$P.__proto__=t0e}||function($P,t0e){for(var r0e in t0e)Object.prototype.hasOwnProperty.call(t0e,r0e)&&($P[r0e]=t0e[r0e])},extendStatics$2(x_,e0e)};function __extends$2(x_,e0e){if(typeof e0e!="function"&&e0e!==null)throw new TypeError("Class extends value "+String(e0e)+" is not a constructor or null");extendStatics$2(x_,e0e);function $P(){this.constructor=x_}x_.prototype=e0e===null?Object.create(e0e):($P.prototype=e0e.prototype,new $P)}var __assign$3=function(){return __assign$3=Object.assign||function(e0e){for(var $P,t0e=1,r0e=arguments.length;t0e=0;o0e--)(a0e=x_[o0e])&&(n0e=(r0e<3?a0e(n0e):r0e>3?a0e(e0e,$P,n0e):a0e(e0e,$P))||n0e);return r0e>3&&n0e&&Object.defineProperty(e0e,$P,n0e),n0e}function __metadata(x_,e0e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(x_,e0e)}function __awaiter(x_,e0e,$P,t0e){function r0e(n0e){return n0e instanceof $P?n0e:new $P(function(a0e){a0e(n0e)})}return new($P||($P=Promise))(function(n0e,a0e){function o0e(l0e){try{s0e(t0e.next(l0e))}catch(c0e){a0e(c0e)}}function i0e(l0e){try{s0e(t0e.throw(l0e))}catch(c0e){a0e(c0e)}}function s0e(l0e){l0e.done?n0e(l0e.value):r0e(l0e.value).then(o0e,i0e)}s0e((t0e=t0e.apply(x_,e0e||[])).next())})}function __generator(x_,e0e){var $P={label:0,sent:function(){if(n0e[0]&1)throw n0e[1];return n0e[1]},trys:[],ops:[]},t0e,r0e,n0e,a0e;return a0e={next:o0e(0),throw:o0e(1),return:o0e(2)},typeof Symbol=="function"&&(a0e[Symbol.iterator]=function(){return this}),a0e;function o0e(s0e){return function(l0e){return i0e([s0e,l0e])}}function i0e(s0e){if(t0e)throw new TypeError("Generator is already executing.");for(;a0e&&(a0e=0,s0e[0]&&($P=0)),$P;)try{if(t0e=1,r0e&&(n0e=s0e[0]&2?r0e.return:s0e[0]?r0e.throw||((n0e=r0e.return)&&n0e.call(r0e),0):r0e.next)&&!(n0e=n0e.call(r0e,s0e[1])).done)return n0e;switch(r0e=0,n0e&&(s0e=[s0e[0]&2,n0e.value]),s0e[0]){case 0:case 1:n0e=s0e;break;case 4:return $P.label++,{value:s0e[1],done:!1};case 5:$P.label++,r0e=s0e[1],s0e=[0];continue;case 7:s0e=$P.ops.pop(),$P.trys.pop();continue;default:if(n0e=$P.trys,!(n0e=n0e.length>0&&n0e[n0e.length-1])&&(s0e[0]===6||s0e[0]===2)){$P=0;continue}if(s0e[0]===3&&(!n0e||s0e[1]>n0e[0]&&s0e[1]=x_.length&&(x_=void 0),{value:x_&&x_[t0e++],done:!x_}}};throw new TypeError(e0e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$3(x_,e0e){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var t0e=$P.call(x_),r0e,n0e=[],a0e;try{for(;(e0e===void 0||e0e-- >0)&&!(r0e=t0e.next()).done;)n0e.push(r0e.value)}catch(o0e){a0e={error:o0e}}finally{try{r0e&&!r0e.done&&($P=t0e.return)&&$P.call(t0e)}finally{if(a0e)throw a0e.error}}return n0e}function __spread$2(){for(var x_=[],e0e=0;e0e-1&&(r0e=setTimeout(function(){cache$3.delete(x_)},e0e)),cache$3.set(x_,__assign$3(__assign$3({},$P),{timer:r0e}))},getCache=function(x_){return cache$3.get(x_)},cachePromise=new Map,getCachePromise=function(x_){return cachePromise.get(x_)},setCachePromise=function(x_,e0e){cachePromise.set(x_,e0e),e0e.then(function($P){return cachePromise.delete(x_),$P}).catch(function(){cachePromise.delete(x_)})},listeners$2={},trigger$1=function(x_,e0e){listeners$2[x_]&&listeners$2[x_].forEach(function($P){return $P(e0e)})},subscribe$2=function(x_,e0e){return listeners$2[x_]||(listeners$2[x_]=[]),listeners$2[x_].push(e0e),function(){var t0e=listeners$2[x_].indexOf(e0e);listeners$2[x_].splice(t0e,1)}},useCachePlugin=function(x_,e0e){var $P=e0e.cacheKey,t0e=e0e.cacheTime,r0e=t0e===void 0?5*60*1e3:t0e,n0e=e0e.staleTime,a0e=n0e===void 0?0:n0e,o0e=e0e.setCache,i0e=e0e.getCache,s0e=reactExports.useRef(),l0e=reactExports.useRef(),c0e=function(d0e,p0e){o0e?o0e(p0e):setCache(d0e,r0e,p0e),trigger$1(d0e,p0e.data)},u0e=function(d0e,p0e){return p0e===void 0&&(p0e=[]),i0e?i0e(p0e):getCache(d0e)};return useCreation(function(){if($P){var d0e=u0e($P);d0e&&Object.hasOwnProperty.call(d0e,"data")&&(x_.state.data=d0e.data,x_.state.params=d0e.params,(a0e===-1||new Date().getTime()-d0e.time<=a0e)&&(x_.state.loading=!1)),s0e.current=subscribe$2($P,function(p0e){x_.setState({data:p0e})})}},[]),useUnmount$1(function(){var d0e;(d0e=s0e.current)===null||d0e===void 0||d0e.call(s0e)}),$P?{onBefore:function(d0e){var p0e=u0e($P,d0e);return!p0e||!Object.hasOwnProperty.call(p0e,"data")?{}:a0e===-1||new Date().getTime()-p0e.time<=a0e?{loading:!1,data:p0e==null?void 0:p0e.data,error:void 0,returnNow:!0}:{data:p0e==null?void 0:p0e.data,error:void 0}},onRequest:function(d0e,p0e){var f0e=getCachePromise($P);return f0e&&f0e!==l0e.current?{servicePromise:f0e}:(f0e=d0e.apply(void 0,__spreadArray([],__read$3(p0e),!1)),l0e.current=f0e,setCachePromise($P,f0e),{servicePromise:f0e})},onSuccess:function(d0e,p0e){var f0e;$P&&((f0e=s0e.current)===null||f0e===void 0||f0e.call(s0e),c0e($P,{data:d0e,params:p0e,time:new Date().getTime()}),s0e.current=subscribe$2($P,function(h0e){x_.setState({data:h0e})}))},onMutate:function(d0e){var p0e;$P&&((p0e=s0e.current)===null||p0e===void 0||p0e.call(s0e),c0e($P,{data:d0e,params:x_.state.params,time:new Date().getTime()}),s0e.current=subscribe$2($P,function(f0e){x_.setState({data:f0e})}))}}:{}};const useCachePlugin$1=useCachePlugin;function isObject$n(x_){var e0e=typeof x_;return x_!=null&&(e0e=="object"||e0e=="function")}var isObject_1=isObject$n;const isObject$o=getDefaultExportFromCjs(isObject_1);var freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$a=freeGlobal||freeSelf||Function("return this")(),_root=root$a,root$9=_root,now$3=function(){return root$9.Date.now()},now_1=now$3,reWhitespace=/\s/;function trimmedEndIndex$1(x_){for(var e0e=x_.length;e0e--&&reWhitespace.test(x_.charAt(e0e)););return e0e}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(x_){return x_&&x_.slice(0,trimmedEndIndex(x_)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$8=_root,Symbol$7=root$8.Symbol,_Symbol=Symbol$7,Symbol$6=_Symbol,objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty,nativeObjectToString$1=objectProto$l.toString,symToStringTag$1=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$1(x_){var e0e=hasOwnProperty$j.call(x_,symToStringTag$1),$P=x_[symToStringTag$1];try{x_[symToStringTag$1]=void 0;var t0e=!0}catch{}var r0e=nativeObjectToString$1.call(x_);return t0e&&(e0e?x_[symToStringTag$1]=$P:delete x_[symToStringTag$1]),r0e}var _getRawTag=getRawTag$1,objectProto$k=Object.prototype,nativeObjectToString=objectProto$k.toString;function objectToString$1(x_){return nativeObjectToString.call(x_)}var _objectToString=objectToString$1,Symbol$5=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$a(x_){return x_==null?x_===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(x_)?getRawTag(x_):objectToString(x_)}var _baseGetTag=baseGetTag$a;function isObjectLike$e(x_){return x_!=null&&typeof x_=="object"}var isObjectLike_1=isObjectLike$e;const isObjectLike$f=getDefaultExportFromCjs(isObjectLike_1);var baseGetTag$9=_baseGetTag,isObjectLike$d=isObjectLike_1,symbolTag$3="[object Symbol]";function isSymbol$5(x_){return typeof x_=="symbol"||isObjectLike$d(x_)&&baseGetTag$9(x_)==symbolTag$3}var isSymbol_1=isSymbol$5,baseTrim=_baseTrim,isObject$m=isObject_1,isSymbol$4=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$4(x_){if(typeof x_=="number")return x_;if(isSymbol$4(x_))return NAN;if(isObject$m(x_)){var e0e=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=isObject$m(e0e)?e0e+"":e0e}if(typeof x_!="string")return x_===0?x_:+x_;x_=baseTrim(x_);var $P=reIsBinary.test(x_);return $P||reIsOctal.test(x_)?freeParseInt(x_.slice(2),$P?2:8):reIsBadHex.test(x_)?NAN:+x_}var toNumber_1=toNumber$4,isObject$l=isObject_1,now$2=now_1,toNumber$3=toNumber_1,FUNC_ERROR_TEXT$3="Expected a function",nativeMax$7=Math.max,nativeMin$4=Math.min;function debounce$4(x_,e0e,$P){var t0e,r0e,n0e,a0e,o0e,i0e,s0e=0,l0e=!1,c0e=!1,u0e=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$3);e0e=toNumber$3(e0e)||0,isObject$l($P)&&(l0e=!!$P.leading,c0e="maxWait"in $P,n0e=c0e?nativeMax$7(toNumber$3($P.maxWait)||0,e0e):n0e,u0e="trailing"in $P?!!$P.trailing:u0e);function d0e(M0e){var O0e=t0e,z0e=r0e;return t0e=r0e=void 0,s0e=M0e,a0e=x_.apply(z0e,O0e),a0e}function p0e(M0e){return s0e=M0e,o0e=setTimeout(b0e,e0e),l0e?d0e(M0e):a0e}function f0e(M0e){var O0e=M0e-i0e,z0e=M0e-s0e,A0e=e0e-O0e;return c0e?nativeMin$4(A0e,n0e-z0e):A0e}function h0e(M0e){var O0e=M0e-i0e,z0e=M0e-s0e;return i0e===void 0||O0e>=e0e||O0e<0||c0e&&z0e>=n0e}function b0e(){var M0e=now$2();if(h0e(M0e))return m0e(M0e);o0e=setTimeout(b0e,f0e(M0e))}function m0e(M0e){return o0e=void 0,u0e&&t0e?d0e(M0e):(t0e=r0e=void 0,a0e)}function v0e(){o0e!==void 0&&clearTimeout(o0e),s0e=0,t0e=i0e=r0e=o0e=void 0}function g0e(){return o0e===void 0?a0e:m0e(now$2())}function y0e(){var M0e=now$2(),O0e=h0e(M0e);if(t0e=arguments,r0e=this,i0e=M0e,O0e){if(o0e===void 0)return p0e(i0e);if(c0e)return clearTimeout(o0e),o0e=setTimeout(b0e,e0e),d0e(i0e)}return o0e===void 0&&(o0e=setTimeout(b0e,e0e)),a0e}return y0e.cancel=v0e,y0e.flush=g0e,y0e}var debounce_1=debounce$4;const debounce$5=getDefaultExportFromCjs(debounce_1);var useDebouncePlugin=function(x_,e0e){var $P=e0e.debounceWait,t0e=e0e.debounceLeading,r0e=e0e.debounceTrailing,n0e=e0e.debounceMaxWait,a0e=reactExports.useRef(),o0e=reactExports.useMemo(function(){var i0e={};return t0e!==void 0&&(i0e.leading=t0e),r0e!==void 0&&(i0e.trailing=r0e),n0e!==void 0&&(i0e.maxWait=n0e),i0e},[t0e,r0e,n0e]);return reactExports.useEffect(function(){if($P){var i0e=x_.runAsync.bind(x_);return a0e.current=debounce$5(function(s0e){s0e()},$P,o0e),x_.runAsync=function(){for(var s0e=[],l0e=0;l0e-1&&listeners.splice($P,1)}}if(isBrowser$2){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var x_=0;x_-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(x_,e0e){var $P=this.__data__,t0e=assocIndexOf($P,x_);return t0e<0?(++this.size,$P.push([x_,e0e])):$P[t0e][1]=e0e,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(x_){var e0e=this.__data__,$P=e0e.delete(x_);return this.size=e0e.size,$P}var _stackDelete=stackDelete$1;function stackGet$1(x_){return this.__data__.get(x_)}var _stackGet=stackGet$1;function stackHas$1(x_){return this.__data__.has(x_)}var _stackHas=stackHas$1,baseGetTag$8=_baseGetTag,isObject$j=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$9(x_){if(!isObject$j(x_))return!1;var e0e=baseGetTag$8(x_);return e0e==funcTag$2||e0e==genTag$1||e0e==asyncTag||e0e==proxyTag}var isFunction_1=isFunction$9;const isFunction$a=getDefaultExportFromCjs(isFunction_1);var root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var x_=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return x_?"Symbol(src)_1."+x_:""}();function isMasked$1(x_){return!!maskSrcKey&&maskSrcKey in x_}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(x_){if(x_!=null){try{return funcToString$2.call(x_)}catch{}try{return x_+""}catch{}}return""}var _toSource=toSource$2,isFunction$8=isFunction_1,isMasked=_isMasked,isObject$i=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$j=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$i=objectProto$j.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$i).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(x_){if(!isObject$i(x_)||isMasked(x_))return!1;var e0e=isFunction$8(x_)?reIsNative:reIsHostCtor;return e0e.test(toSource$1(x_))}var _baseIsNative=baseIsNative$1;function getValue$4(x_,e0e){return x_==null?void 0:x_[e0e]}var _getValue=getValue$4,baseIsNative=_baseIsNative,getValue$3=_getValue;function getNative$7(x_,e0e){var $P=getValue$3(x_,e0e);return baseIsNative($P)?$P:void 0}var _getNative=getNative$7,getNative$6=_getNative,root$6=_root,Map$4=getNative$6(root$6,"Map"),_Map=Map$4,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(x_){var e0e=this.has(x_)&&delete this.__data__[x_];return this.size-=e0e?1:0,e0e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$i=Object.prototype,hasOwnProperty$h=objectProto$i.hasOwnProperty;function hashGet$1(x_){var e0e=this.__data__;if(nativeCreate$2){var $P=e0e[x_];return $P===HASH_UNDEFINED$2?void 0:$P}return hasOwnProperty$h.call(e0e,x_)?e0e[x_]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$h=Object.prototype,hasOwnProperty$g=objectProto$h.hasOwnProperty;function hashHas$1(x_){var e0e=this.__data__;return nativeCreate$1?e0e[x_]!==void 0:hasOwnProperty$g.call(e0e,x_)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(x_,e0e){var $P=this.__data__;return this.size+=this.has(x_)?0:1,$P[x_]=nativeCreate&&e0e===void 0?HASH_UNDEFINED$1:e0e,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(x_){var e0e=typeof x_;return e0e=="string"||e0e=="number"||e0e=="symbol"||e0e=="boolean"?x_!=="__proto__":x_===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(x_,e0e){var $P=x_.__data__;return isKeyable(e0e)?$P[typeof e0e=="string"?"string":"hash"]:$P.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(x_){var e0e=getMapData$3(this,x_).delete(x_);return this.size-=e0e?1:0,e0e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(x_){return getMapData$2(this,x_).get(x_)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(x_){return getMapData$1(this,x_).has(x_)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(x_,e0e){var $P=getMapData(this,x_),t0e=$P.size;return $P.set(x_,e0e),this.size+=$P.size==t0e?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$1(x_,e0e){var $P=this.__data__;if($P instanceof ListCache$1){var t0e=$P.__data__;if(!Map$2||t0e.lengtho0e))return!1;var s0e=n0e.get(x_),l0e=n0e.get(e0e);if(s0e&&l0e)return s0e==e0e&&l0e==x_;var c0e=-1,u0e=!0,d0e=$P&COMPARE_UNORDERED_FLAG$3?new SetCache$3:void 0;for(n0e.set(x_,e0e),n0e.set(e0e,x_);++c0e-1&&x_%1==0&&x_-1&&x_%1==0&&x_<=MAX_SAFE_INTEGER$2}var isLength_1=isLength$3,baseGetTag$6=_baseGetTag,isLength$2=isLength_1,isObjectLike$a=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$6="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(x_){return isObjectLike$a(x_)&&isLength$2(x_.length)&&!!typedArrayTags[baseGetTag$6(x_)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$7(x_){return function(e0e){return x_(e0e)}}var _baseUnary=baseUnary$7,_nodeUtil={exports:{}};_nodeUtil.exports;(function(x_,e0e){var $P=_freeGlobal,t0e=e0e&&!e0e.nodeType&&e0e,r0e=t0e&&!0&&x_&&!x_.nodeType&&x_,n0e=r0e&&r0e.exports===t0e,a0e=n0e&&$P.process,o0e=function(){try{var i0e=r0e&&r0e.require&&r0e.require("util").types;return i0e||a0e&&a0e.binding&&a0e.binding("util")}catch{}}();x_.exports=o0e})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$6=_baseUnary,nodeUtil$3=_nodeUtilExports,nodeIsTypedArray=nodeUtil$3&&nodeUtil$3.isTypedArray,isTypedArray$5=nodeIsTypedArray?baseUnary$6(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$5,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$p=isArray_1,isBuffer$7=isBufferExports,isIndex$3=_isIndex,isTypedArray$4=isTypedArray_1,objectProto$e=Object.prototype,hasOwnProperty$e=objectProto$e.hasOwnProperty;function arrayLikeKeys$2(x_,e0e){var $P=isArray$p(x_),t0e=!$P&&isArguments$4(x_),r0e=!$P&&!t0e&&isBuffer$7(x_),n0e=!$P&&!t0e&&!r0e&&isTypedArray$4(x_),a0e=$P||t0e||r0e||n0e,o0e=a0e?baseTimes$1(x_.length,String):[],i0e=o0e.length;for(var s0e in x_)(e0e||hasOwnProperty$e.call(x_,s0e))&&!(a0e&&(s0e=="length"||r0e&&(s0e=="offset"||s0e=="parent")||n0e&&(s0e=="buffer"||s0e=="byteLength"||s0e=="byteOffset")||isIndex$3(s0e,i0e)))&&o0e.push(s0e);return o0e}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$d=Object.prototype;function isPrototype$5(x_){var e0e=x_&&x_.constructor,$P=typeof e0e=="function"&&e0e.prototype||objectProto$d;return x_===$P}var _isPrototype=isPrototype$5;function overArg$2(x_,e0e){return function($P){return x_(e0e($P))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$4=_isPrototype,nativeKeys=_nativeKeys,objectProto$c=Object.prototype,hasOwnProperty$d=objectProto$c.hasOwnProperty;function baseKeys$2(x_){if(!isPrototype$4(x_))return nativeKeys(x_);var e0e=[];for(var $P in Object(x_))hasOwnProperty$d.call(x_,$P)&&$P!="constructor"&&e0e.push($P);return e0e}var _baseKeys=baseKeys$2,isFunction$7=isFunction_1,isLength$1=isLength_1;function isArrayLike$a(x_){return x_!=null&&isLength$1(x_.length)&&!isFunction$7(x_)}var isArrayLike_1=isArrayLike$a,arrayLikeKeys$1=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$9=isArrayLike_1;function keys$d(x_){return isArrayLike$9(x_)?arrayLikeKeys$1(x_):baseKeys$1(x_)}var keys_1=keys$d;const keys$e=getDefaultExportFromCjs(keys_1);var baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$c=keys_1;function getAllKeys$2(x_){return baseGetAllKeys$1(x_,keys$c,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$b=Object.prototype,hasOwnProperty$c=objectProto$b.hasOwnProperty;function equalObjects$1(x_,e0e,$P,t0e,r0e,n0e){var a0e=$P&COMPARE_PARTIAL_FLAG$3,o0e=getAllKeys$1(x_),i0e=o0e.length,s0e=getAllKeys$1(e0e),l0e=s0e.length;if(i0e!=l0e&&!a0e)return!1;for(var c0e=i0e;c0e--;){var u0e=o0e[c0e];if(!(a0e?u0e in e0e:hasOwnProperty$c.call(e0e,u0e)))return!1}var d0e=n0e.get(x_),p0e=n0e.get(e0e);if(d0e&&p0e)return d0e==e0e&&p0e==x_;var f0e=!0;n0e.set(x_,e0e),n0e.set(e0e,x_);for(var h0e=a0e;++c0e=0;l0e--){var c0e=t0e[l0e];c0e==="."?spliceOne(t0e,l0e):c0e===".."?(spliceOne(t0e,l0e),s0e++):s0e&&(spliceOne(t0e,l0e),s0e--)}if(!a0e)for(;s0e--;s0e)t0e.unshift("..");a0e&&t0e[0]!==""&&(!t0e[0]||!isAbsolute(t0e[0]))&&t0e.unshift("");var u0e=t0e.join("/");return o0e&&u0e.substr(-1)!=="/"&&(u0e+="/"),u0e}function valueOf$2(x_){return x_.valueOf?x_.valueOf():Object.prototype.valueOf.call(x_)}function valueEqual(x_,e0e){if(x_===e0e)return!0;if(x_==null||e0e==null)return!1;if(Array.isArray(x_))return Array.isArray(e0e)&&x_.length===e0e.length&&x_.every(function(r0e,n0e){return valueEqual(r0e,e0e[n0e])});if(typeof x_=="object"||typeof e0e=="object"){var $P=valueOf$2(x_),t0e=valueOf$2(e0e);return $P!==x_||t0e!==e0e?valueEqual($P,t0e):Object.keys(Object.assign({},x_,e0e)).every(function(r0e){return valueEqual(x_[r0e],e0e[r0e])})}return!1}var isProduction=!0,prefix$1="Invariant failed";function invariant$4(x_,e0e){if(!x_){if(isProduction)throw new Error(prefix$1);var $P=typeof e0e=="function"?e0e():e0e,t0e=$P?"".concat(prefix$1,": ").concat($P):prefix$1;throw new Error(t0e)}}function addLeadingSlash$1(x_){return x_.charAt(0)==="/"?x_:"/"+x_}function stripLeadingSlash(x_){return x_.charAt(0)==="/"?x_.substr(1):x_}function hasBasename(x_,e0e){return x_.toLowerCase().indexOf(e0e.toLowerCase())===0&&"/?#".indexOf(x_.charAt(e0e.length))!==-1}function stripBasename$1(x_,e0e){return hasBasename(x_,e0e)?x_.substr(e0e.length):x_}function stripTrailingSlash(x_){return x_.charAt(x_.length-1)==="/"?x_.slice(0,-1):x_}function parsePath$1(x_){var e0e=x_||"/",$P="",t0e="",r0e=e0e.indexOf("#");r0e!==-1&&(t0e=e0e.substr(r0e),e0e=e0e.substr(0,r0e));var n0e=e0e.indexOf("?");return n0e!==-1&&($P=e0e.substr(n0e),e0e=e0e.substr(0,n0e)),{pathname:e0e,search:$P==="?"?"":$P,hash:t0e==="#"?"":t0e}}function createPath(x_){var e0e=x_.pathname,$P=x_.search,t0e=x_.hash,r0e=e0e||"/";return $P&&$P!=="?"&&(r0e+=$P.charAt(0)==="?"?$P:"?"+$P),t0e&&t0e!=="#"&&(r0e+=t0e.charAt(0)==="#"?t0e:"#"+t0e),r0e}function createLocation(x_,e0e,$P,t0e){var r0e;typeof x_=="string"?(r0e=parsePath$1(x_),r0e.state=e0e):(r0e=_extends$1y({},x_),r0e.pathname===void 0&&(r0e.pathname=""),r0e.search?r0e.search.charAt(0)!=="?"&&(r0e.search="?"+r0e.search):r0e.search="",r0e.hash?r0e.hash.charAt(0)!=="#"&&(r0e.hash="#"+r0e.hash):r0e.hash="",e0e!==void 0&&r0e.state===void 0&&(r0e.state=e0e));try{r0e.pathname=decodeURI(r0e.pathname)}catch(n0e){throw n0e instanceof URIError?new URIError('Pathname "'+r0e.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n0e}return $P&&(r0e.key=$P),t0e?r0e.pathname?r0e.pathname.charAt(0)!=="/"&&(r0e.pathname=resolvePathname(r0e.pathname,t0e.pathname)):r0e.pathname=t0e.pathname:r0e.pathname||(r0e.pathname="/"),r0e}function locationsAreEqual(x_,e0e){return x_.pathname===e0e.pathname&&x_.search===e0e.search&&x_.hash===e0e.hash&&x_.key===e0e.key&&valueEqual(x_.state,e0e.state)}function createTransitionManager(){var x_=null;function e0e(a0e){return x_=a0e,function(){x_===a0e&&(x_=null)}}function $P(a0e,o0e,i0e,s0e){if(x_!=null){var l0e=typeof x_=="function"?x_(a0e,o0e):x_;typeof l0e=="string"?typeof i0e=="function"?i0e(l0e,s0e):s0e(!0):s0e(l0e!==!1)}else s0e(!0)}var t0e=[];function r0e(a0e){var o0e=!0;function i0e(){o0e&&a0e.apply(void 0,arguments)}return t0e.push(i0e),function(){o0e=!1,t0e=t0e.filter(function(s0e){return s0e!==i0e})}}function n0e(){for(var a0e=arguments.length,o0e=new Array(a0e),i0e=0;i0eS0e?T0e.splice(S0e,T0e.length-S0e,$0e):T0e.push($0e),l0e({action:_0e,location:$0e,index:S0e,entries:T0e})}})}function h0e(z0e,A0e){var _0e="REPLACE",$0e=createLocation(z0e,A0e,c0e(),O0e.location);s0e.confirmTransitionTo($0e,_0e,$P,function(E0e){E0e&&(O0e.entries[O0e.index]=$0e,l0e({action:_0e,location:$0e}))})}function b0e(z0e){var A0e=clamp(O0e.index+z0e,0,O0e.entries.length-1),_0e="POP",$0e=O0e.entries[A0e];s0e.confirmTransitionTo($0e,_0e,$P,function(E0e){E0e?l0e({action:_0e,location:$0e,index:A0e}):l0e()})}function m0e(){b0e(-1)}function v0e(){b0e(1)}function g0e(z0e){var A0e=O0e.index+z0e;return A0e>=0&&A0e"u"&&(forwardRef=forwardRefShim);function isModifiedEvent$1(x_){return!!(x_.metaKey||x_.altKey||x_.ctrlKey||x_.shiftKey)}var LinkAnchor=forwardRef(function(x_,e0e){var $P=x_.innerRef,t0e=x_.navigate,r0e=x_.onClick,n0e=_objectWithoutPropertiesLoose$2(x_,["innerRef","navigate","onClick"]),a0e=n0e.target,o0e=_extends$1y({},n0e,{onClick:function(s0e){try{r0e&&r0e(s0e)}catch(l0e){throw s0e.preventDefault(),l0e}!s0e.defaultPrevented&&s0e.button===0&&(!a0e||a0e==="_self")&&!isModifiedEvent$1(s0e)&&(s0e.preventDefault(),t0e())}});return forwardRefShim!==forwardRef?o0e.ref=e0e||$P:o0e.ref=$P,React$1.createElement("a",o0e)}),Link$2=forwardRef(function(x_,e0e){var $P=x_.component,t0e=$P===void 0?LinkAnchor:$P,r0e=x_.replace,n0e=x_.to,a0e=x_.innerRef,o0e=_objectWithoutPropertiesLoose$2(x_,["component","replace","to","innerRef"]);return React$1.createElement(context.Consumer,null,function(i0e){i0e||invariant$4(!1);var s0e=i0e.history,l0e=normalizeToLocation(resolveToLocation(n0e,i0e.location),i0e.location),c0e=l0e?s0e.createHref(l0e):"",u0e=_extends$1y({},o0e,{href:c0e,navigate:function(){var p0e=resolveToLocation(n0e,i0e.location),f0e=createPath(i0e.location)===createPath(normalizeToLocation(p0e)),h0e=r0e||f0e?s0e.replace:s0e.push;h0e(p0e)}});return forwardRefShim!==forwardRef?u0e.ref=e0e||a0e:u0e.innerRef=a0e,React$1.createElement(t0e,u0e)})}),forwardRefShim$1=function(e0e){return e0e},forwardRef$1=React$1.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var x_=arguments.length,e0e=new Array(x_),$P=0;$PsetTimeout(()=>{var x_;return(x_=document.getElementById("app-loader"))==null?void 0:x_.remove()},500),registerGlobalFunction=(x_,e0e)=>{window.$owl={...window.$owl,[x_]:e0e}},arrayGet=(x_,e0e,$P=null)=>{try{if(e0e===null)return x_;if(x_[e0e]!==void 0)return x_[e0e];for(const t0e of e0e.split("."))if(x_[t0e]!==void 0)x_=x_[t0e];else return $P}catch{return $P}return x_},mergeObject=(x_,e0e)=>{for(const $P in e0e)if(e0e.hasOwnProperty($P)){const t0e=e0e[$P],r0e=x_[$P];if(t0e===null)continue;isObject$p(t0e)&&isObject$p(r0e)?x_[$P]=mergeObject(r0e,t0e):x_[$P]=t0e}return x_},isArray$t=x_=>Object.prototype.toString.call(x_)==="[object Array]",isObject$p=x_=>Object.prototype.toString.call(x_)==="[object Object]",isString$8=x_=>Object.prototype.toString.call(x_)==="[object String]",isSSR=function(){try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}}(),getCacheKey=x_=>window.$adminApiPrefix.replace(/^\//,"")+"-"+x_,Token=()=>{const x_=getCacheKey("token");return{value:localStorage.getItem(x_),set:e0e=>localStorage.setItem(x_,e0e),clear:()=>localStorage.removeItem(x_)}},inLoginPage=()=>window.location.hash=="#/login",goToLoginPage=()=>window.location.hash="#/login",msgHandler=(x_,e0e)=>{const $P="owl-msg-"+x_;localStorage.getItem($P)||(localStorage.setItem($P,x_),setTimeout(()=>{localStorage.removeItem($P)},5e3),e0e().then(()=>{localStorage.removeItem($P)}))},clearMsgSign=()=>{Object.keys(localStorage).forEach(e0e=>{e0e.startsWith("owl-msg-")&&localStorage.removeItem(e0e)})},defaultSettings={darkTheme:!1,footer:!1,breadcrumb:!0,themeColor:"#1677ff",layoutMode:"default",siderTheme:"light",topTheme:"light",animateInType:"alpha",animateInDuration:600,animateOutType:"alpha",animateOutDuration:600,loginTemplate:"default",keepAlive:!1,enableTab:!1,tabIcon:!0},defaultToken={token:{borderRadius:4,wireframe:!0,colorSplit:"var(--color-border)"},components:{Menu:{iconSize:18,collapsedIconSize:18,itemMarginInline:8,subMenuItemBg:"transparent"}}},initialState$2={settings:{system_theme_setting:defaultSettings},userInfo:{},routes:[],userLoading:!1,inited:!1,openSetting:!1,antdToken:defaultToken};function store$3(x_=initialState$2,e0e){switch(e0e.type){case"update-userInfo":{const{userInfo:$P=initialState$2.userInfo,userLoading:t0e}=e0e.payload;return $P!=null&&$P.name&&localStorage.setItem(getCacheKey("user_name"),($P==null?void 0:$P.name)||""),{...x_,userLoading:t0e,userInfo:$P}}case"update-breadcrumb":{const{breadcrumb:$P}=e0e.payload;return{...x_,breadcrumb:$P}}case"update-settings":{const{settings:$P}=e0e.payload,t0e=JSON.parse(JSON.stringify(mergeObject(x_.settings,$P)));return localStorage.setItem(getCacheKey("settings"),JSON.stringify(t0e)),{...x_,settings:t0e}}case"update-routes":{const{routes:$P}=e0e.payload;return{...x_,routes:$P}}case"update-inited":{const{inited:$P}=e0e.payload;return{...x_,inited:$P}}case"update-open-setting":{const{openSetting:$P}=e0e.payload;return{...x_,openSetting:$P}}case"update-antd-token":{const{antdToken:$P}=e0e.payload;return{...x_,antdToken:$P}}default:return x_}}const GlobalContext=reactExports.createContext({});var createUpdateEffect=function(x_){return function(e0e,$P){var t0e=reactExports.useRef(!1);x_(function(){return function(){t0e.current=!1}},[]),x_(function(){if(!t0e.current)t0e.current=!0;else return e0e()},$P)}},extendStatics$2=function(x_,e0e){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,t0e){$P.__proto__=t0e}||function($P,t0e){for(var r0e in t0e)Object.prototype.hasOwnProperty.call(t0e,r0e)&&($P[r0e]=t0e[r0e])},extendStatics$2(x_,e0e)};function __extends$2(x_,e0e){if(typeof e0e!="function"&&e0e!==null)throw new TypeError("Class extends value "+String(e0e)+" is not a constructor or null");extendStatics$2(x_,e0e);function $P(){this.constructor=x_}x_.prototype=e0e===null?Object.create(e0e):($P.prototype=e0e.prototype,new $P)}var __assign$3=function(){return __assign$3=Object.assign||function(e0e){for(var $P,t0e=1,r0e=arguments.length;t0e=0;o0e--)(a0e=x_[o0e])&&(n0e=(r0e<3?a0e(n0e):r0e>3?a0e(e0e,$P,n0e):a0e(e0e,$P))||n0e);return r0e>3&&n0e&&Object.defineProperty(e0e,$P,n0e),n0e}function __metadata(x_,e0e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(x_,e0e)}function __awaiter(x_,e0e,$P,t0e){function r0e(n0e){return n0e instanceof $P?n0e:new $P(function(a0e){a0e(n0e)})}return new($P||($P=Promise))(function(n0e,a0e){function o0e(l0e){try{s0e(t0e.next(l0e))}catch(c0e){a0e(c0e)}}function i0e(l0e){try{s0e(t0e.throw(l0e))}catch(c0e){a0e(c0e)}}function s0e(l0e){l0e.done?n0e(l0e.value):r0e(l0e.value).then(o0e,i0e)}s0e((t0e=t0e.apply(x_,e0e||[])).next())})}function __generator(x_,e0e){var $P={label:0,sent:function(){if(n0e[0]&1)throw n0e[1];return n0e[1]},trys:[],ops:[]},t0e,r0e,n0e,a0e;return a0e={next:o0e(0),throw:o0e(1),return:o0e(2)},typeof Symbol=="function"&&(a0e[Symbol.iterator]=function(){return this}),a0e;function o0e(s0e){return function(l0e){return i0e([s0e,l0e])}}function i0e(s0e){if(t0e)throw new TypeError("Generator is already executing.");for(;a0e&&(a0e=0,s0e[0]&&($P=0)),$P;)try{if(t0e=1,r0e&&(n0e=s0e[0]&2?r0e.return:s0e[0]?r0e.throw||((n0e=r0e.return)&&n0e.call(r0e),0):r0e.next)&&!(n0e=n0e.call(r0e,s0e[1])).done)return n0e;switch(r0e=0,n0e&&(s0e=[s0e[0]&2,n0e.value]),s0e[0]){case 0:case 1:n0e=s0e;break;case 4:return $P.label++,{value:s0e[1],done:!1};case 5:$P.label++,r0e=s0e[1],s0e=[0];continue;case 7:s0e=$P.ops.pop(),$P.trys.pop();continue;default:if(n0e=$P.trys,!(n0e=n0e.length>0&&n0e[n0e.length-1])&&(s0e[0]===6||s0e[0]===2)){$P=0;continue}if(s0e[0]===3&&(!n0e||s0e[1]>n0e[0]&&s0e[1]=x_.length&&(x_=void 0),{value:x_&&x_[t0e++],done:!x_}}};throw new TypeError(e0e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$3(x_,e0e){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var t0e=$P.call(x_),r0e,n0e=[],a0e;try{for(;(e0e===void 0||e0e-- >0)&&!(r0e=t0e.next()).done;)n0e.push(r0e.value)}catch(o0e){a0e={error:o0e}}finally{try{r0e&&!r0e.done&&($P=t0e.return)&&$P.call(t0e)}finally{if(a0e)throw a0e.error}}return n0e}function __spread$2(){for(var x_=[],e0e=0;e0e-1&&(r0e=setTimeout(function(){cache$3.delete(x_)},e0e)),cache$3.set(x_,__assign$3(__assign$3({},$P),{timer:r0e}))},getCache=function(x_){return cache$3.get(x_)},cachePromise=new Map,getCachePromise=function(x_){return cachePromise.get(x_)},setCachePromise=function(x_,e0e){cachePromise.set(x_,e0e),e0e.then(function($P){return cachePromise.delete(x_),$P}).catch(function(){cachePromise.delete(x_)})},listeners$2={},trigger$1=function(x_,e0e){listeners$2[x_]&&listeners$2[x_].forEach(function($P){return $P(e0e)})},subscribe$2=function(x_,e0e){return listeners$2[x_]||(listeners$2[x_]=[]),listeners$2[x_].push(e0e),function(){var t0e=listeners$2[x_].indexOf(e0e);listeners$2[x_].splice(t0e,1)}},useCachePlugin=function(x_,e0e){var $P=e0e.cacheKey,t0e=e0e.cacheTime,r0e=t0e===void 0?5*60*1e3:t0e,n0e=e0e.staleTime,a0e=n0e===void 0?0:n0e,o0e=e0e.setCache,i0e=e0e.getCache,s0e=reactExports.useRef(),l0e=reactExports.useRef(),c0e=function(d0e,p0e){o0e?o0e(p0e):setCache(d0e,r0e,p0e),trigger$1(d0e,p0e.data)},u0e=function(d0e,p0e){return p0e===void 0&&(p0e=[]),i0e?i0e(p0e):getCache(d0e)};return useCreation(function(){if($P){var d0e=u0e($P);d0e&&Object.hasOwnProperty.call(d0e,"data")&&(x_.state.data=d0e.data,x_.state.params=d0e.params,(a0e===-1||new Date().getTime()-d0e.time<=a0e)&&(x_.state.loading=!1)),s0e.current=subscribe$2($P,function(p0e){x_.setState({data:p0e})})}},[]),useUnmount$1(function(){var d0e;(d0e=s0e.current)===null||d0e===void 0||d0e.call(s0e)}),$P?{onBefore:function(d0e){var p0e=u0e($P,d0e);return!p0e||!Object.hasOwnProperty.call(p0e,"data")?{}:a0e===-1||new Date().getTime()-p0e.time<=a0e?{loading:!1,data:p0e==null?void 0:p0e.data,error:void 0,returnNow:!0}:{data:p0e==null?void 0:p0e.data,error:void 0}},onRequest:function(d0e,p0e){var f0e=getCachePromise($P);return f0e&&f0e!==l0e.current?{servicePromise:f0e}:(f0e=d0e.apply(void 0,__spreadArray([],__read$3(p0e),!1)),l0e.current=f0e,setCachePromise($P,f0e),{servicePromise:f0e})},onSuccess:function(d0e,p0e){var f0e;$P&&((f0e=s0e.current)===null||f0e===void 0||f0e.call(s0e),c0e($P,{data:d0e,params:p0e,time:new Date().getTime()}),s0e.current=subscribe$2($P,function(h0e){x_.setState({data:h0e})}))},onMutate:function(d0e){var p0e;$P&&((p0e=s0e.current)===null||p0e===void 0||p0e.call(s0e),c0e($P,{data:d0e,params:x_.state.params,time:new Date().getTime()}),s0e.current=subscribe$2($P,function(f0e){x_.setState({data:f0e})}))}}:{}};const useCachePlugin$1=useCachePlugin;function isObject$n(x_){var e0e=typeof x_;return x_!=null&&(e0e=="object"||e0e=="function")}var isObject_1=isObject$n;const isObject$o=getDefaultExportFromCjs(isObject_1);var freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$a=freeGlobal||freeSelf||Function("return this")(),_root=root$a,root$9=_root,now$3=function(){return root$9.Date.now()},now_1=now$3,reWhitespace=/\s/;function trimmedEndIndex$1(x_){for(var e0e=x_.length;e0e--&&reWhitespace.test(x_.charAt(e0e)););return e0e}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(x_){return x_&&x_.slice(0,trimmedEndIndex(x_)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$8=_root,Symbol$7=root$8.Symbol,_Symbol=Symbol$7,Symbol$6=_Symbol,objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty,nativeObjectToString$1=objectProto$l.toString,symToStringTag$1=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$1(x_){var e0e=hasOwnProperty$j.call(x_,symToStringTag$1),$P=x_[symToStringTag$1];try{x_[symToStringTag$1]=void 0;var t0e=!0}catch{}var r0e=nativeObjectToString$1.call(x_);return t0e&&(e0e?x_[symToStringTag$1]=$P:delete x_[symToStringTag$1]),r0e}var _getRawTag=getRawTag$1,objectProto$k=Object.prototype,nativeObjectToString=objectProto$k.toString;function objectToString$1(x_){return nativeObjectToString.call(x_)}var _objectToString=objectToString$1,Symbol$5=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$a(x_){return x_==null?x_===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(x_)?getRawTag(x_):objectToString(x_)}var _baseGetTag=baseGetTag$a;function isObjectLike$e(x_){return x_!=null&&typeof x_=="object"}var isObjectLike_1=isObjectLike$e;const isObjectLike$f=getDefaultExportFromCjs(isObjectLike_1);var baseGetTag$9=_baseGetTag,isObjectLike$d=isObjectLike_1,symbolTag$3="[object Symbol]";function isSymbol$5(x_){return typeof x_=="symbol"||isObjectLike$d(x_)&&baseGetTag$9(x_)==symbolTag$3}var isSymbol_1=isSymbol$5,baseTrim=_baseTrim,isObject$m=isObject_1,isSymbol$4=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$4(x_){if(typeof x_=="number")return x_;if(isSymbol$4(x_))return NAN;if(isObject$m(x_)){var e0e=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=isObject$m(e0e)?e0e+"":e0e}if(typeof x_!="string")return x_===0?x_:+x_;x_=baseTrim(x_);var $P=reIsBinary.test(x_);return $P||reIsOctal.test(x_)?freeParseInt(x_.slice(2),$P?2:8):reIsBadHex.test(x_)?NAN:+x_}var toNumber_1=toNumber$4,isObject$l=isObject_1,now$2=now_1,toNumber$3=toNumber_1,FUNC_ERROR_TEXT$3="Expected a function",nativeMax$7=Math.max,nativeMin$4=Math.min;function debounce$4(x_,e0e,$P){var t0e,r0e,n0e,a0e,o0e,i0e,s0e=0,l0e=!1,c0e=!1,u0e=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$3);e0e=toNumber$3(e0e)||0,isObject$l($P)&&(l0e=!!$P.leading,c0e="maxWait"in $P,n0e=c0e?nativeMax$7(toNumber$3($P.maxWait)||0,e0e):n0e,u0e="trailing"in $P?!!$P.trailing:u0e);function d0e(M0e){var O0e=t0e,z0e=r0e;return t0e=r0e=void 0,s0e=M0e,a0e=x_.apply(z0e,O0e),a0e}function p0e(M0e){return s0e=M0e,o0e=setTimeout(b0e,e0e),l0e?d0e(M0e):a0e}function f0e(M0e){var O0e=M0e-i0e,z0e=M0e-s0e,A0e=e0e-O0e;return c0e?nativeMin$4(A0e,n0e-z0e):A0e}function h0e(M0e){var O0e=M0e-i0e,z0e=M0e-s0e;return i0e===void 0||O0e>=e0e||O0e<0||c0e&&z0e>=n0e}function b0e(){var M0e=now$2();if(h0e(M0e))return m0e(M0e);o0e=setTimeout(b0e,f0e(M0e))}function m0e(M0e){return o0e=void 0,u0e&&t0e?d0e(M0e):(t0e=r0e=void 0,a0e)}function v0e(){o0e!==void 0&&clearTimeout(o0e),s0e=0,t0e=i0e=r0e=o0e=void 0}function g0e(){return o0e===void 0?a0e:m0e(now$2())}function y0e(){var M0e=now$2(),O0e=h0e(M0e);if(t0e=arguments,r0e=this,i0e=M0e,O0e){if(o0e===void 0)return p0e(i0e);if(c0e)return clearTimeout(o0e),o0e=setTimeout(b0e,e0e),d0e(i0e)}return o0e===void 0&&(o0e=setTimeout(b0e,e0e)),a0e}return y0e.cancel=v0e,y0e.flush=g0e,y0e}var debounce_1=debounce$4;const debounce$5=getDefaultExportFromCjs(debounce_1);var useDebouncePlugin=function(x_,e0e){var $P=e0e.debounceWait,t0e=e0e.debounceLeading,r0e=e0e.debounceTrailing,n0e=e0e.debounceMaxWait,a0e=reactExports.useRef(),o0e=reactExports.useMemo(function(){var i0e={};return t0e!==void 0&&(i0e.leading=t0e),r0e!==void 0&&(i0e.trailing=r0e),n0e!==void 0&&(i0e.maxWait=n0e),i0e},[t0e,r0e,n0e]);return reactExports.useEffect(function(){if($P){var i0e=x_.runAsync.bind(x_);return a0e.current=debounce$5(function(s0e){s0e()},$P,o0e),x_.runAsync=function(){for(var s0e=[],l0e=0;l0e-1&&listeners.splice($P,1)}}if(isBrowser$2){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var x_=0;x_-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(x_,e0e){var $P=this.__data__,t0e=assocIndexOf($P,x_);return t0e<0?(++this.size,$P.push([x_,e0e])):$P[t0e][1]=e0e,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(x_){var e0e=this.__data__,$P=e0e.delete(x_);return this.size=e0e.size,$P}var _stackDelete=stackDelete$1;function stackGet$1(x_){return this.__data__.get(x_)}var _stackGet=stackGet$1;function stackHas$1(x_){return this.__data__.has(x_)}var _stackHas=stackHas$1,baseGetTag$8=_baseGetTag,isObject$j=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$9(x_){if(!isObject$j(x_))return!1;var e0e=baseGetTag$8(x_);return e0e==funcTag$2||e0e==genTag$1||e0e==asyncTag||e0e==proxyTag}var isFunction_1=isFunction$9;const isFunction$a=getDefaultExportFromCjs(isFunction_1);var root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var x_=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return x_?"Symbol(src)_1."+x_:""}();function isMasked$1(x_){return!!maskSrcKey&&maskSrcKey in x_}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(x_){if(x_!=null){try{return funcToString$2.call(x_)}catch{}try{return x_+""}catch{}}return""}var _toSource=toSource$2,isFunction$8=isFunction_1,isMasked=_isMasked,isObject$i=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$j=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$i=objectProto$j.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$i).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(x_){if(!isObject$i(x_)||isMasked(x_))return!1;var e0e=isFunction$8(x_)?reIsNative:reIsHostCtor;return e0e.test(toSource$1(x_))}var _baseIsNative=baseIsNative$1;function getValue$4(x_,e0e){return x_==null?void 0:x_[e0e]}var _getValue=getValue$4,baseIsNative=_baseIsNative,getValue$3=_getValue;function getNative$7(x_,e0e){var $P=getValue$3(x_,e0e);return baseIsNative($P)?$P:void 0}var _getNative=getNative$7,getNative$6=_getNative,root$6=_root,Map$4=getNative$6(root$6,"Map"),_Map=Map$4,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(x_){var e0e=this.has(x_)&&delete this.__data__[x_];return this.size-=e0e?1:0,e0e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$i=Object.prototype,hasOwnProperty$h=objectProto$i.hasOwnProperty;function hashGet$1(x_){var e0e=this.__data__;if(nativeCreate$2){var $P=e0e[x_];return $P===HASH_UNDEFINED$2?void 0:$P}return hasOwnProperty$h.call(e0e,x_)?e0e[x_]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$h=Object.prototype,hasOwnProperty$g=objectProto$h.hasOwnProperty;function hashHas$1(x_){var e0e=this.__data__;return nativeCreate$1?e0e[x_]!==void 0:hasOwnProperty$g.call(e0e,x_)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(x_,e0e){var $P=this.__data__;return this.size+=this.has(x_)?0:1,$P[x_]=nativeCreate&&e0e===void 0?HASH_UNDEFINED$1:e0e,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(x_){var e0e=typeof x_;return e0e=="string"||e0e=="number"||e0e=="symbol"||e0e=="boolean"?x_!=="__proto__":x_===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(x_,e0e){var $P=x_.__data__;return isKeyable(e0e)?$P[typeof e0e=="string"?"string":"hash"]:$P.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(x_){var e0e=getMapData$3(this,x_).delete(x_);return this.size-=e0e?1:0,e0e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(x_){return getMapData$2(this,x_).get(x_)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(x_){return getMapData$1(this,x_).has(x_)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(x_,e0e){var $P=getMapData(this,x_),t0e=$P.size;return $P.set(x_,e0e),this.size+=$P.size==t0e?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(x_){var e0e=-1,$P=x_==null?0:x_.length;for(this.clear();++e0e<$P;){var t0e=x_[e0e];this.set(t0e[0],t0e[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$1(x_,e0e){var $P=this.__data__;if($P instanceof ListCache$1){var t0e=$P.__data__;if(!Map$2||t0e.lengtho0e))return!1;var s0e=n0e.get(x_),l0e=n0e.get(e0e);if(s0e&&l0e)return s0e==e0e&&l0e==x_;var c0e=-1,u0e=!0,d0e=$P&COMPARE_UNORDERED_FLAG$3?new SetCache$3:void 0;for(n0e.set(x_,e0e),n0e.set(e0e,x_);++c0e-1&&x_%1==0&&x_-1&&x_%1==0&&x_<=MAX_SAFE_INTEGER$2}var isLength_1=isLength$3,baseGetTag$6=_baseGetTag,isLength$2=isLength_1,isObjectLike$a=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$6="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(x_){return isObjectLike$a(x_)&&isLength$2(x_.length)&&!!typedArrayTags[baseGetTag$6(x_)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$7(x_){return function(e0e){return x_(e0e)}}var _baseUnary=baseUnary$7,_nodeUtil={exports:{}};_nodeUtil.exports;(function(x_,e0e){var $P=_freeGlobal,t0e=e0e&&!e0e.nodeType&&e0e,r0e=t0e&&!0&&x_&&!x_.nodeType&&x_,n0e=r0e&&r0e.exports===t0e,a0e=n0e&&$P.process,o0e=function(){try{var i0e=r0e&&r0e.require&&r0e.require("util").types;return i0e||a0e&&a0e.binding&&a0e.binding("util")}catch{}}();x_.exports=o0e})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$6=_baseUnary,nodeUtil$3=_nodeUtilExports,nodeIsTypedArray=nodeUtil$3&&nodeUtil$3.isTypedArray,isTypedArray$5=nodeIsTypedArray?baseUnary$6(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$5,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$p=isArray_1,isBuffer$7=isBufferExports,isIndex$3=_isIndex,isTypedArray$4=isTypedArray_1,objectProto$e=Object.prototype,hasOwnProperty$e=objectProto$e.hasOwnProperty;function arrayLikeKeys$2(x_,e0e){var $P=isArray$p(x_),t0e=!$P&&isArguments$4(x_),r0e=!$P&&!t0e&&isBuffer$7(x_),n0e=!$P&&!t0e&&!r0e&&isTypedArray$4(x_),a0e=$P||t0e||r0e||n0e,o0e=a0e?baseTimes$1(x_.length,String):[],i0e=o0e.length;for(var s0e in x_)(e0e||hasOwnProperty$e.call(x_,s0e))&&!(a0e&&(s0e=="length"||r0e&&(s0e=="offset"||s0e=="parent")||n0e&&(s0e=="buffer"||s0e=="byteLength"||s0e=="byteOffset")||isIndex$3(s0e,i0e)))&&o0e.push(s0e);return o0e}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$d=Object.prototype;function isPrototype$5(x_){var e0e=x_&&x_.constructor,$P=typeof e0e=="function"&&e0e.prototype||objectProto$d;return x_===$P}var _isPrototype=isPrototype$5;function overArg$2(x_,e0e){return function($P){return x_(e0e($P))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$4=_isPrototype,nativeKeys=_nativeKeys,objectProto$c=Object.prototype,hasOwnProperty$d=objectProto$c.hasOwnProperty;function baseKeys$2(x_){if(!isPrototype$4(x_))return nativeKeys(x_);var e0e=[];for(var $P in Object(x_))hasOwnProperty$d.call(x_,$P)&&$P!="constructor"&&e0e.push($P);return e0e}var _baseKeys=baseKeys$2,isFunction$7=isFunction_1,isLength$1=isLength_1;function isArrayLike$a(x_){return x_!=null&&isLength$1(x_.length)&&!isFunction$7(x_)}var isArrayLike_1=isArrayLike$a,arrayLikeKeys$1=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$9=isArrayLike_1;function keys$d(x_){return isArrayLike$9(x_)?arrayLikeKeys$1(x_):baseKeys$1(x_)}var keys_1=keys$d;const keys$e=getDefaultExportFromCjs(keys_1);var baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$c=keys_1;function getAllKeys$2(x_){return baseGetAllKeys$1(x_,keys$c,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$b=Object.prototype,hasOwnProperty$c=objectProto$b.hasOwnProperty;function equalObjects$1(x_,e0e,$P,t0e,r0e,n0e){var a0e=$P&COMPARE_PARTIAL_FLAG$3,o0e=getAllKeys$1(x_),i0e=o0e.length,s0e=getAllKeys$1(e0e),l0e=s0e.length;if(i0e!=l0e&&!a0e)return!1;for(var c0e=i0e;c0e--;){var u0e=o0e[c0e];if(!(a0e?u0e in e0e:hasOwnProperty$c.call(e0e,u0e)))return!1}var d0e=n0e.get(x_),p0e=n0e.get(e0e);if(d0e&&p0e)return d0e==e0e&&p0e==x_;var f0e=!0;n0e.set(x_,e0e),n0e.set(e0e,x_);for(var h0e=a0e;++c0e=0;o0e--){var i0e=n0e[o0e];if(isObjectShallowModified(x_[i0e],e0e[i0e],$P,t0e,r0e))return!0}return!1}function isArrayChildrenModified(x_,e0e,$P){if($P===void 0&&($P=!0),!Array.isArray(x_)||!Array.isArray(e0e))return $P?x_!==e0e:x_!=e0e;if(x_.length!==e0e.length)return!0;for(var t0e=x_.length-1;t0e>=0;t0e--)if($P?x_[t0e]!==e0e[t0e]:x_[t0e]!=e0e[t0e]||isArrayChildrenModified(x_[t0e].children,e0e[t0e].children,$P))return!0;return!1}function immutableExtends(x_,e0e,$P){if(!isObject$5(x_)||!isObject$5(e0e))return x_;var t0e=x_;return Object.keys(e0e).forEach(function(r0e){var n0e=x_[r0e],a0e=e0e[r0e];n0e!==a0e&&(t0e=t0e!==x_?t0e:__assign$3({},x_),t0e[r0e]=a0e)}),t0e}function hasVisibleExpression(x_){return!!(x_.visibleOn||x_.hiddenOn)}function isVisible(x_,e0e){return!(x_.hidden||x_.visible===!1||x_.hiddenOn&&evalExpression(x_.hiddenOn,e0e)||x_.visibleOn&&!evalExpression(x_.visibleOn,e0e))}function isUnfolded(x_,e0e){var $P=e0e.foldedField,t0e=e0e.unfoldedField;return t0e||(t0e="unfolded"),$P||($P="folded"),t0e&&typeof x_[t0e]<"u"?!!x_[t0e]:$P&&typeof x_[$P]<"u"?!x_[$P]:!1}function visibilityFilter(x_,e0e){return x_.filter(function($P){return isVisible($P,e0e)})}function isDisabled(x_,e0e){return x_.disabled||x_.disabledOn&&evalExpression(x_.disabledOn,e0e)}function hasAbility(x_,e0e,$P,t0e){return t0e===void 0&&(t0e=!0),x_.hasOwnProperty(e0e)?x_[e0e]:x_.hasOwnProperty("".concat(e0e,"On"))?evalExpression(x_["".concat(e0e,"On")],$P||x_):t0e}function makeHorizontalDeeper(x_,e0e){if(e0e>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test(x_.left)){var $P=parseInt(RegExp.$2,10)*e0e;return{leftFixed:x_.leftFixed,left:$P,right:12-$P,offset:$P}}else if(e0e>1&&typeof x_.left=="number"){var $P=x_.left*e0e;return{leftFixed:x_.leftFixed,left:$P,right:12-$P,offset:$P}}return x_}function promisify(x_){if(x_._promisified)return x_;var e0e=function(){try{var $P=x_.apply(null,arguments);return $P&&$P.then?$P:typeof $P=="function"?new Promise(function(t0e,r0e){return $P(function(n0e,a0e){return n0e?r0e(n0e):t0e(a0e)})}):Promise.resolve($P)}catch(t0e){return Promise.reject(t0e)}};return e0e.raw=x_,e0e._promisified=!0,e0e}function getScrollParent(x_,e0e){if(e0e===void 0&&(e0e=function(){return!0}),x_==null)return null;var $P=getComputedStyle(x_);if(!$P)return null;var t0e=$P.getPropertyValue("overflow")+$P.getPropertyValue("overflow-x")+$P.getPropertyValue("overflow-y");return x_.nodeName==="BODY"||/auto|scroll/.test(t0e)&&e0e(x_)?x_:getScrollParent(x_.parentNode,e0e)}function difference$2(x_,e0e,$P){function t0e(r0e,n0e){if(isObject$5(r0e)&&isObject$5(n0e)){var a0e=uniq$1(Object.keys(r0e).concat(Object.keys(n0e))),o0e={};return a0e.forEach(function(i0e){var s0e=r0e[i0e],l0e=n0e[i0e];$P&&~$P.indexOf(i0e)&&(o0e[i0e]=s0e),!isEqual$2(s0e,l0e)&&(r0e.hasOwnProperty(i0e)?Array.isArray(s0e)&&Array.isArray(l0e)?o0e[i0e]=s0e:o0e[i0e]=t0e(s0e,l0e):o0e[i0e]=void 0)}),o0e}return r0e}return t0e(x_,e0e)}var padArr=function(x_,e0e,$P){e0e===void 0&&(e0e=4),$P===void 0&&($P=!1);for(var t0e=[[]],r0e=x_.concat(),n0e=0;r0e.length||$P&&t0e[t0e.length-1].length=e0e){n0e+=1;continue}a0e.push(r0e.shift())}return t0e};function isBreakpoint(x_){if(typeof x_!="string")return!!x_;var e0e=x_.split(/\s*,\s*|\s+/);if(window.matchMedia)return e0e.some(function(t0e){return t0e==="*"||t0e==="xs"&&matchMedia("screen and (max-width: 767px)").matches||t0e==="sm"&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||t0e==="md"&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||t0e==="lg"&&matchMedia("screen and (min-width: 1200px)").matches});var $P=window.innerWidth;return e0e.some(function(t0e){return t0e==="*"||t0e==="xs"&&$P<768||t0e==="sm"&&$P>=768&&$P<992||t0e==="md"&&$P>=992&&$P<1200||t0e==="lg"&&$P>=1200})}function until(x_,e0e,$P,t0e){var r0e=this;t0e===void 0&&(t0e=5e3);var n0e,a0e=!1;return new Promise(function(o0e,i0e){var s0e=function(){clearTimeout(n0e),a0e=!0},l0e=function(){return __awaiter(r0e,void 0,void 0,function(){var c0e,u0e;return __generator(this,function(d0e){switch(d0e.label){case 0:return d0e.trys.push([0,2,,3]),[4,x_()];case 1:return c0e=d0e.sent(),a0e?[2]:(e0e(c0e)?(a0e=!0,o0e(c0e)):n0e=setTimeout(l0e,t0e),[3,3]);case 2:return u0e=d0e.sent(),i0e(u0e),[3,3];case 3:return[2]}})})};l0e(),$P&&$P(s0e)})}function isEmpty$1(x_){return!(isObject$5(x_)&&Object.keys(x_).length)}var uuid$1=function(){return(+new Date).toString(36)},createStr=function(){return("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16)},uuidv4=function(){var x_=createStr(),e0e=createStr();return x_.slice(0,8)+"-"+x_.slice(8,12)+"-4"+x_.slice(13)+"-a"+e0e.slice(1,4)+"-"+e0e.slice(4)};function mapTree(x_,e0e,$P,t0e,r0e,n0e){return $P===void 0&&($P=1),t0e===void 0&&(t0e=!1),r0e===void 0&&(r0e=[]),n0e===void 0&&(n0e=[]),x_.map(function(a0e,o0e){if(t0e){var i0e=a0e.children?mapTree(a0e.children,e0e,$P+1,t0e,r0e.concat(a0e),n0e.concat(o0e)):void 0;return i0e&&(a0e=__assign$3(__assign$3({},a0e),{children:i0e})),a0e=e0e(a0e,o0e,$P,r0e,n0e.concat(o0e))||__assign$3({},a0e),a0e}return a0e=e0e(a0e,o0e,$P,r0e,n0e.concat(o0e))||__assign$3({},a0e),a0e.children&&a0e.children.splice&&(a0e.children=mapTree(a0e.children,e0e,$P+1,t0e,r0e.concat(a0e),n0e.concat(o0e))),a0e})}function eachTree(x_,e0e,$P,t0e){var r0e;$P===void 0&&($P=1),t0e===void 0&&(t0e=[]);for(var n0e=x_.length,a0e=0;a0e0;s0e--){var l0e=i0e[s0e-1],c0e=i0e[s0e];t0e.unshift(l0e.children.indexOf(c0e))}};return findTree(x_,function(n0e,a0e,o0e,i0e){return e0e(n0e,a0e,o0e,i0e)?(r0e(n0e,a0e,o0e,i0e),!0):!1},$P?__assign$3(__assign$3({},$P),{foundEffect:r0e}):void 0),t0e.length?t0e:void 0}function getTree(x_,e0e){for(var $P=Array.isArray(e0e)?e0e.concat():[e0e],t0e=$P.pop(),r0e=x_,n0e=0,a0e=$P.length;n0e0;){var o0e=a0e.pop(),i0e=o0e.item,s0e=o0e.index,l0e=o0e.level,c0e=o0e.paths,u0e=o0e.indexes;if(s0e>=0){var d0e=e0e(i0e,s0e,l0e,c0e,u0e);if(d0e&&(!((n0e=i0e.children)===null||n0e===void 0)&&n0e.splice))for(var p0e=i0e.children,f0e=p0e.length-1;f0e>=0;f0e--)a0e.push({item:p0e[f0e],index:f0e,level:l0e+1,paths:c0e.concat(i0e),indexes:u0e.concat(s0e)});else if(!d0e)return!1}else{if(!Array.isArray(x_)&&!isObservableArray(x_))return!1;for(var f0e=x_.length-1;f0e>=0;f0e--)a0e.push({item:x_[f0e],index:f0e,level:1,paths:[],indexes:[]})}}return!0}function someTree(x_,e0e){var $P=!1;return everyTree(x_,function(t0e,r0e,n0e,a0e){return e0e(t0e,r0e,n0e,a0e)?($P=!0,!1):!0}),$P}function flattenTree(x_,e0e){var $P=[];return eachTree(x_,function(t0e,r0e,n0e,a0e){return $P.push(e0e?e0e(t0e,r0e,n0e,a0e):t0e)}),$P}function flattenTreeWithLeafNodes(x_,e0e){var $P=[];return eachTree(x_,function(t0e,r0e){t0e.hasOwnProperty("children")||$P.push(e0e?e0e(t0e,r0e):t0e)}),$P}function spliceTree(x_,e0e,$P){$P===void 0&&($P=0);for(var t0e=[],r0e=3;r0e]+(>|$)/g,""):x_}function normalizeNodePath(x_,e0e,$P,t0e,r0e,n0e){var a0e;$P===void 0&&($P="label"),t0e===void 0&&(t0e="value"),r0e===void 0&&(r0e="/"),n0e===void 0&&(n0e=",");var o0e=[],i0e=[],s0e=function(l0e){return last$6(l0e?l0e.toString().split(r0e):[])};return typeof x_>"u"||!e0e?{nodeValueArray:o0e,nodePathArray:i0e}:(Array.isArray(x_)?x_.forEach(function(l0e){var c0e;l0e&&l0e.hasOwnProperty(t0e)?(o0e.push(__assign$3(__assign$3({},l0e),(c0e={},c0e[$P]=s0e(l0e[$P]),c0e[t0e]=s0e(l0e[t0e]),c0e))),i0e.push(l0e[t0e])):(o0e.push(s0e(l0e)),i0e.push(l0e))}):typeof x_=="string"?x_.toString().split(n0e).forEach(function(l0e){o0e.push(s0e(l0e)),i0e.push(l0e)}):(o0e.push(__assign$3(__assign$3({},x_),(a0e={},a0e[$P]=s0e(x_[$P]),a0e[t0e||"value"]=s0e(x_[t0e]),a0e))),i0e.push(x_[t0e])),{nodeValueArray:o0e,nodePathArray:i0e})}function isClickOnInput(x_){var e0e=x_.target,$P;return!!(!x_.currentTarget.contains(e0e)||~["INPUT","TEXTAREA"].indexOf(e0e.tagName)||($P=e0e.closest('button, a, [data-role="form-item"], label[data-role="checkbox"]'))&&x_.currentTarget.contains($P))}function hashCode(x_){return x_.split("").reduce(function(e0e,$P){return e0e=(e0e<<5)-e0e+$P.charCodeAt(0),e0e&e0e},0)}function JSONTraverse(x_,e0e,$P){$P===void 0&&($P=Number.MAX_VALUE),!($P<=0)&&Object.keys(x_).forEach(function(t0e){var r0e=x_[t0e];isObservable(r0e)||(isPlainObject$8(r0e)||Array.isArray(r0e)?JSONTraverse(r0e,e0e,$P-1):e0e(r0e,t0e,x_))})}function JSONValueMap(x_,e0e,$P){if($P===void 0&&($P=[]),!isPlainObject$8(x_)&&!Array.isArray(x_))return x_;var t0e=function(i0e,s0e,l0e,c0e){c0e===void 0&&(c0e=[]);var u0e=e0e(i0e,s0e,l0e,c0e);return u0e===i0e&&(isPlainObject$8(i0e)||Array.isArray(i0e))?JSONValueMap(i0e,e0e,c0e):u0e};if(Array.isArray(x_)){var r0e=!1,n0e=x_.map(function(i0e,s0e){var l0e=t0e(i0e,s0e,x_,[x_].concat($P));return l0e!==i0e?(r0e=!0,l0e):i0e});return r0e?n0e:x_}var a0e=!1,o0e={};return Object.keys(x_).forEach(function(i0e){var s0e=x_[i0e],l0e=t0e(s0e,i0e,x_,[x_].concat($P));if(l0e!==s0e){a0e=!0,o0e[i0e]=l0e;return}}),a0e?__assign$3(__assign$3({},x_),o0e):x_}function convertArrayValueToMoment(x_,e0e,$P){if(x_.length===0)return $P;for(var t0e=0;t0e".concat($P,"<\/script>")):$P.includes("$")&&e0e.push($P))},10),e0e.join("|")}function evalTrackExpression(x_,e0e){if(typeof x_!="string")return"";for(var $P=[];;){var t0e=x_.indexOf("