1
0
Fork 0
digitalstudium.com/static/admin/netlify-cms.js

723 lines
5.0 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("NetlifyCms",[],t):"object"==typeof exports?exports.NetlifyCms=t():e.NetlifyCms=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1934)}([function(e,t,n){"use strict";e.exports=n(792)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,n){return(f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function g(e){var t=d();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function y(e,t){return _(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||w(e,t)||k()}function b(e){return _(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(e)||k()}function _(e){if(Array.isArray(e))return e}function w(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return F})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return i})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return s})),n.d(t,"m",(function(){return B})),n.d(t,"n",(function(){return N})),n.d(t,"o",(function(){return y})),n.d(t,"p",(function(){return L})),n.d(t,"q",(function(){return l})),n.d(t,"r",(function(){return g})),n.d(t,"s",(function(){return v})),n.d(t,"t",(function(){return u})),n.d(t,"u",(function(){return T})),n.d(t,"v",(function(){return D})),n.d(t,"w",(function(){return h})),n.d(t,"x",(function(){return b})),n.d(t,"y",(function(){return m}));var S={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},O={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},C="tag:yaml.org,2002:",T={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function A(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function P(e){var t,n;return"string"==typeof e?(t=A(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=A(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function R(e,t){if("number"!=typeof e||e<0)return null;var n=P(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o<r.length;++o){var a=r[o];if(e<a)return{line:o,col:e-r[o-1]+1};if(e===a)return{line:o+1,col:1}}var s=r.length;return{line:s,col:e-r[s-1]+1}}function j(e,t){var n=P(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var o=r[e-1],a=r[e];a&&a>o&&"\n"===i[a-1];)--a;return i.slice(o,a)}var I=function(){function e(t,n){i(this,e),this.start=t,this.end=n||t}return a(e,[{key:"isEmpty",value:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var i=t;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;for(var o=i;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),M=function(){function e(t,n,r){i(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return a(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,S.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,S.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===S.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==S.COMMENT)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[O.FLOW_MAP,O.FLOW_SEQ,O.QUOTE_DOUBLE,O.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=R(this.range.start,this.context.root);if(e)return{start:e,end:R(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,S.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);return n[0],{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=t;i<n;++i)if("\n"===r[i])return!0;return!1}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===S.COMMENT){var r=e.endOfLine(n,t+1),i=new I(t,r);return this.props.push(i),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(n){return n.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}}],[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==S.DIRECTIVES_END&&r!==S.DOCUMENT_END)return!1;var o=e[t+1],a=e[t+2];if(o!==r||a!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var i=e.endOfIndent(t,r);if(i>r+n)return i;var o=e.endOfWhiteSpace(t,i),a=t[o];return a&&"\n"!==a?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var i=0,o=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,n+=1,a+="\n";break;case"\t":i<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&i<=r&&(o=!0),{fold:a,offset:n,error:o}}}]),e}(),L=function(e){l(n,e);var t=g(n);function n(e,r,o){var a;if(i(this,n),!(o&&r instanceof M))throw new Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=o,a.source=r,a}return a(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new I(this.offset,this.offset+1);var t=e&&R(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,i=r.line,o=r.col;this.message+=" at line ".concat(i,", column ").concat(o);var a=e&&function(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=j(n.line,t);if(!o)return null;var a=n.col;if(o.length>i)if(a<=i-10)o=o.substr(0,i-1)+"…";else{var s=Math.round(i/2);o.length>a+s&&(o=o.substr(0,a+s-1)+"…"),a-=o.length-i,o="…"+o.substr(1-i)}var l=1,u="";r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?l=r.col-n.col:(l=Math.min(o.length+1,i)-a,u="…"));var c=a>1?" ".repeat(a-1):"",d="^".repeat(l);return"".concat(o,"\n").concat(c).concat(d).concat(u)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),n}(p(Error)),D=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLReferenceError",e,r)}return n}(L),N=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSemanticError",e,r)}return n}(L),F=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLSyntaxError",e,r)}return n}(L),B=function(e){l(n,e);var t=g(n);function n(e,r){return i(this,n),t.call(this,"YAMLWarning",e,r)}return n}(L),z=function(e){l(n,e);var t=g(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=r[n-1];t<n&&("\n"===i||"\t"===i||" "===i);)i=r[--n-1];for(var o="",a=t;a<n;++a){var s=r[a];if("\n"===s){var l=M.foldNewline(r,a,-1);o+=l.fold,a=l.offset}else if(" "===s||"\t"===s){for(var u=a,c=r[a+1];a<n&&(" "===c||"\t"===c);)c=r[(a+=1)+1];"\n"!==c&&(o+=a>u?r.slice(u,a+1):s)}else o+=s}var d=r[t];switch(d){case"\t":return{errors:[new N(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":var f="Plain value cannot start with reserved character ".concat(d);return{errors:[new N(this,f)],str:o};default:return o}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,i=t.inFlow,o=t.src,a=e,s=e,l=o[a];"\n"===l&&!M.atDocumentBoundary(o,a+1);l=o[a]){var u=M.endOfBlockIndent(o,r,a+1);if(null===u||"#"===o[u])break;a="\n"===o[u]?u:s=n.endOfLine(o,u,i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var r=e.inFlow,i=e.src,o=t,a=i[o];return a&&"#"!==a&&"\n"!==a&&(o=n.endOfLine(i,t,r)),this.valueRange=new I(t,o),o=M.endOfWhiteSpace(i,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],i=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[i+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;i+=1,r=o}return i}}]),n}(M)},function(e,t,n){e.exports=n(800)()},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return b})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return S})),n.d(t,"u",(function(){return O})),n.d(t,"v",(function(){return C})),n.d(t,"w",(function(){return T})),n.d(t,"x",(function(){return A})),n.d(t,"y",(function(){return P})),n.d(t,"z",(function(){return R})),n.d(t,"A",(function(){return j})),n.d(t,"B",(function(){return I})),n.d(t,"C",(function(){return M})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return D})),n.d(t,"G",(function(){return N})),n.d(t,"H",(function(){return F})),n.d(t,"F",(function(){return B})),n.d(t,"a",(function(){return z})),n.d(t,"I",(function(){return U}));var r=n(206),i=n(67),o=n(23);function a(e){for(var t=h(),n=0,r=e.length;n<r;++n)w(t,e[n]);return t}function s(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function l(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function u(e,t,n){var r,i;return(r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*r+(i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0)*i}function c(e,t){return f(e,t[0],t[1])}function d(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function f(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function p(e,t){var n=e[0],r=e[1],o=e[2],a=e[3],s=t[0],l=t[1],u=i.a.UNKNOWN;return s<n?u|=i.a.LEFT:s>o&&(u|=i.a.RIGHT),l<r?u|=i.a.BELOW:l>a&&(u|=i.a.ABOVE),u===i.a.UNKNOWN&&(u=i.a.INTERSECTING),u}function h(){return[1/0,1/0,-1/0,-1/0]}function m(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function g(e){return m(1/0,1/0,-1/0,-1/0,e)}function v(e,t){var n=e[0],r=e[1];return m(n,r,n,r,t)}function y(e,t,n,r,i){return x(g(i),e,t,n,r)}function b(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function _(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function w(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function x(e,t,n,r,i){for(;n<r;n+=i)k(e,t[n],t[n+1]);return e}function k(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function E(e,t){var n;return(n=t(O(e)))||(n=t(C(e)))||(n=t(M(e)))?n:(n=t(I(e)))||!1}function S(e){var t=0;return N(e)||(t=L(e)*R(e)),t}function O(e){return[e[0],e[1]]}function C(e){return[e[2],e[1]]}function T(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function A(e,t){var n;return t===r.a.BOTTOM_LEFT?n=O(e):t===r.a.BOTTOM_RIGHT?n=C(e):t===r.a.TOP_LEFT?n=I(e):t===r.a.TOP_RIGHT?n=M(e):Object(o.a)(!1,13),n}function P(e,t,n,r,i){var o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),l=Math.sin(n),u=o*s,c=o*l,d=a*s,f=a*l,p=e[0],h=e[1],g=p-u+f,v=p-u-f,y=p+u-f,b=p+u+f,_=h-c-d,w=h-c+d,x=h+c+d,k=h+c-d;return m(Math.min(g,v,y,b),Math.min(_,w,x,k),Math.max(g,v,y,b),Math.max(_,w,x,k),i)}function R(e){return e[3]-e[1]}function j(e,t,n){var r=n||[1/0,1/0,-1/0,-1/0];return D(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):g(r),r}function I(e){return[e[0],e[3]]}function M(e){return[e[2],e[3]]}function L(e){return e[2]-e[0]}function D(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function N(e){return e[2]<e[0]||e[3]<e[1]}function F(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function B(e,t,n){var r=!1,o=p(e,t),a=p(e,n);if(o===i.a.INTERSECTING||a===i.a.INTERSECTING)r=!0;else{var s=e[0],l=e[1],u=e[2],c=e[3],d=t[0],f=t[1],h=n[0],m=n[1],g=(m-f)/(h-d),v=void 0,y=void 0;a&i.a.ABOVE&&!(o&i.a.ABOVE)&&(r=(v=h-(m-c)/g)>=s&&v<=u),r||!(a&i.a.RIGHT)||o&i.a.RIGHT||(r=(y=m-(h-u)*g)>=l&&y<=c),r||!(a&i.a.BELOW)||o&i.a.BELOW||(r=(v=h-(m-l)/g)>=s&&v<=u),r||!(a&i.a.LEFT)||o&i.a.LEFT||(r=(y=m-(h-s)*g)>=l&&y<=c)}return r}function z(e,t,n,r){var i=[];if(r>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<r;++s)i.push(e[0]+o*s/r,e[1],e[2],e[1]+a*s/r,e[2]-o*s/r,e[3],e[0],e[3]-a*s/r);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var l=[],u=[],c=(s=0,i.length);s<c;s+=2)l.push(i[s]),u.push(i[s+1]);return function(e,t,n){return m(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}(l,u,n)}function U(e,t){var n=t.getExtent(),r=T(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=L(n),o=Math.floor((r[0]-n[0])/i)*i;e[0]-=o,e[2]-=o}return e}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:W(e)}function i(e){return l(e)?e:H(e)}function o(e){return a(e)&&!u(e)?e:$(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function u(e){return s(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m={},g={value:!1},v={value:!1};function y(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function _(){}function w(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function x(e){return void 0===e.size&&(e.size=e.__iterate(E)),e.size}function k(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function E(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function O(e,t){return T(e,t,0)}function C(e,t){return T(e,t,t)}function T(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A,P,R,j="function"==typeof Symbol&&Symbol.iterator,I=j||"@@iterator";function M(e){this.next=e}function L(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function D(){return{value:void 0,done:!0}}function N(e){return!!z(e)}function F(e){return e&&"function"==typeof e.next}function B(e){var t=z(e);return t&&t.call(e)}function z(e){var t=e&&(j&&e[j]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function q(e){return null==e?X():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new G(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function W(e){return null==e?X().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():Z(e)}function H(e){return null==e?X():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():J(e)}function $(e){return(null==e?X():a(e)?s(e)?e.entrySeq():e:J(e)).toSetSeq()}function V(e){this._array=e,this.size=e.length}function G(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function K(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function Q(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return A||(A=new V([]))}function Z(e){var t=Array.isArray(e)?new V(e).fromEntrySeq():F(e)?new Y(e).fromEntrySeq():N(e)?new K(e).fromEntrySeq():"object"==typeof e?new G(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function J(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new V(e):F(e)?new Y(e):N(e)?new K(e):void 0}function te(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new M((function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:L(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,i){return Array.isArray(n)?t.call(i,r,H(n).map((function(r,i){return e(t,r,i,n)}))):oe(n)?t.call(i,r,W(n).map((function(r,i){return e(t,r,i,n)}))):n}(t,e,"",{"":e}):ie(e)}function ie(e){return Array.isArray(e)?H(e).map(ie).toList():oe(e)?W(e).map(ie).toMap():e}function oe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ae(i[1],e)&&(n||ae(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):i?!ae(t,e.get(r,m)):!ae(e.get(r,m),t))return d=!1,!1}));return d&&e.size===f}function le(e,t){if(!(this instanceof le))return new le(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(P)return P;P=this}}function ue(e,t){if(!e)throw new Error(t)}function ce(e,t,n){if(!(this instanceof ce))return new ce(e,t,n);if(ue(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(R)return R;R=this}}function de(){throw TypeError("Abstract")}function fe(){}function pe(){}function he(){}M.prototype.toString=function(){return"[Iterator]"},M.KEYS=0,M.VALUES=1,M.ENTRIES=2,M.prototype.inspect=M.prototype.toSource=function(){return this.toString()},M.prototype[I]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return te(this,e,t,!0)},q.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(W,q),W.prototype.toKeyedSeq=function(){return this},t(H,q),H.of=function(){return H(arguments)},H.prototype.toIndexedSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq [","]")},H.prototype.__iterate=function(e,t){return te(this,e,t,!1)},H.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t($,q),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},q.isSeq=Q,q.Keyed=W,q.Set=$,q.Indexed=H,q.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(V,H),V.prototype.get=function(e,t){return this.has(e)?this._array[k(this,e)]:t},V.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},V.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new M((function(){return i>r?{value:void 0,done:!0}:L(e,i,n[t?r-i++:i++])}))},t(G,W),G.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},G.prototype.has=function(e){return this._object.hasOwnProperty(e)},G.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},G.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new M((function(){var a=r[t?i-o:o];return o++>i?{value:void 0,done:!0}:L(e,a,n[a])}))},G.prototype[h]=!0,t(K,H),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),r=0;if(F(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},K.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!F(n))return new M(D);var r=0;return new M((function(){var t=n.next();return t.done?t:L(e,r++,t.value)}))},t(Y,H),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new M((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return L(e,i,r[i++])}))},t(le,H),le.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},le.prototype.get=function(e,t){return this.has(e)?this._value:t},le.prototype.includes=function(e){return ae(this._value,e)},le.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new le(this._value,C(t,n)-O(e,n))},le.prototype.reverse=function(){return this},le.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},le.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},le.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},le.prototype.__iterator=function(e,t){var n=this,r=0;return new M((function(){return r<n.size?L(e,r++,n._value):{value:void 0,done:!0}}))},le.prototype.equals=function(e){return e instanceof le?ae(this._value,e._value):se(e)},t(ce,H),ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ce.prototype.get=function(e,t){return this.has(e)?this._start+k(this,e)*this._step:t},ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ce.prototype.slice=function(e,t){return S(e,t,this.size)?this:(e=O(e,this.size),(t=C(t,this.size))<=e?new ce(0,0):new ce(this.get(e,this._end),this.get(t,this._end),this._step))},ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new M((function(){var a=i;return i+=t?-r:r,o>n?{value:void 0,done:!0}:L(e,o++,a)}))},ce.prototype.equals=function(e){return e instanceof ce?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(fe,de),t(pe,de),t(he,de),de.Keyed=fe,de.Indexed=pe,de.Set=he;var me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}function ve(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ge(n)}if("string"===t)return e.length>Se?function(e){var t=Te[e];return void 0===t&&(t=ye(e),Ce===Oe&&(Ce=0,Te={}),Ce++,Te[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(xe&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++ke,1073741824&ke&&(ke=0),xe)be.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ge(t)}var be,_e=Object.isExtensible,we=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),xe="function"==typeof WeakMap;xe&&(be=new WeakMap);var ke=0,Ee="__immutablehash__";"function"==typeof Symbol&&(Ee=Symbol(Ee));var Se=16,Oe=255,Ce=0,Te={};function Ae(e){ue(e!==1/0,"Cannot perform this action with an infinite size.")}function Pe(e){return null==e?He():Re(e)&&!c(e)?e:He().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Re(e){return!(!e||!e[Ie])}t(Pe,fe),Pe.of=function(){var t=e.call(arguments,0);return He().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Pe.prototype.toString=function(){return this.__toString("Map {","}")},Pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Pe.prototype.set=function(e,t){return $e(this,e,t)},Pe.prototype.setIn=function(e,t){return this.updateIn(e,m,(function(){return t}))},Pe.prototype.remove=function(e){return $e(this,e,m)},Pe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return m}))},Pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===m,a=n.next();if(a.done){var s=o?r:t,l=i(s);return l===s?t:l}ue(o||t&&t.set,"invalid keyPath");var u=a.value,c=o?m:t.get(u,m),d=e(c,n,r,i);return d===c?t:d===m?t.remove(u):(o?He():t).set(u,d)}(this,Yt(e),t,n);return r===m?void 0:r},Pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):He()},Pe.prototype.merge=function(){return Ye(this,void 0,arguments)},Pe.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ye(this,t,n)},Pe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Pe.prototype.mergeDeep=function(){return Ye(this,Qe,arguments)},Pe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ye(this,Xe(t),n)},Pe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Pe.prototype.sort=function(e){return wt(Ft(this,e))},Pe.prototype.sortBy=function(e,t){return wt(Ft(this,t,e))},Pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},Pe.prototype.asImmutable=function(){return this.__ensureOwner()},Pe.prototype.wasAltered=function(){return this.__altered},Pe.prototype.__iterator=function(e,t){return new ze(this,e,t)},Pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?We(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Pe.isMap=Re;var je,Ie="@@__IMMUTABLE_MAP__@@",Me=Pe.prototype;function Le(e,t){this.ownerID=e,this.entries=t}function De(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ne(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ze(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function Ue(e,t){return L(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function We(e,t,n,r){var i=Object.create(Me);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function He(){return je||(je=We(0))}function $e(e,t,n){var r,i;if(e._root){var o=y(g),a=y(v);if(r=Ve(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===m?-1:1:0)}else{if(n===m)return e;i=1,r=new Le(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?We(i,r):He()}function Ve(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===m?e:(b(s),b(a),new Be(t,r,[i,o]))}function Ge(e){return e.constructor===Be||e.constructor===Fe}function Ke(e,t,n,r,i){if(e.keyHash===r)return new Fe(t,r,[e.entry,i]);var o,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?r:r>>>n);return new De(t,1<<a|1<<s,a===s?[Ke(e,t,n+5,r,i)]:(o=new Be(t,r,i),a<s?[e,o]:[o,e]))}function Ye(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=r(s);a(s)||(l=l.map((function(e){return re(e)}))),i.push(l)}return Ze(e,t,i)}function Qe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function Xe(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ae(t,i)?t:i}}function Ze(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,m,(function(e){return e===m?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function Je(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var i=r?e:w(e);return i[t]=n,i}Me[Ie]=!0,Me.delete=Me.remove,Me.removeIn=Me.deleteIn,Le.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ae(n,i[o][0]))return i[o][1];return r},Le.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===m,l=this.entries,u=0,c=l.length;u<c&&!ae(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),!s||1!==l.length){if(!d&&!s&&l.length>=tt)return function(e,t,n,r){e||(e=new _);for(var i=new Be(e,ve(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,l,r,i);var f=e&&e===this.ownerID,p=f?l:w(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Le(e,p)}},De.prototype.get=function(e,t,n,r){void 0===t&&(t=ve(n));var i=1<<(31&(0===e?t:t>>>e)),o=this.bitmap;return 0==(o&i)?r:this.nodes[Je(o&i-1)].get(e+5,t,n,r)},De.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&i===m)return this;var d=Je(u&l-1),f=this.nodes,p=c?f[d]:void 0,h=Ve(p,e,t+5,n,r,i,o,a);if(h===p)return this;if(!c&&h&&f.length>=nt)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Ne(e,o+1,a)}(e,f,u,s,h);if(c&&!h&&2===f.length&&Ge(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&Ge(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?et(f,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(f,d,g):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(f,d,h,g);return g?(this.bitmap=v,this.nodes=y,this):new De(e,v,y)},Ne.prototype.get=function(e,t,n,r){void 0===t&&(t=ve(n));var i=31&(0===e?t:t>>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},Ne.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=31&(0===t?n:n>>>t),l=i===m,u=this.nodes,c=u[s];if(l&&!c)return this;var d=Ve(c,e,t+5,n,r,i,o,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<rt)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new De(e,i,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=et(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new Ne(e,f,h)},Fe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ae(n,i[o][0]))return i[o][1];return r},Fe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ve(r));var s=i===m;if(n!==this.keyHash)return s?this:(b(a),b(o),Ke(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;u<c&&!ae(r,l[u][0]);u++);var d=u<c;if(d?l[u][1]===i:s)return this;if(b(a),(s||!d)&&b(o),s&&2===c)return new Be(e,this.keyHash,l[1^u]);var f=e&&e===this.ownerID,p=f?l:w(l);return d?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Fe(e,this.keyHash,p)},Be.prototype.get=function(e,t,n,r){return ae(n,this.entry[0])?this.entry[1]:r},Be.prototype.update=function(e,t,n,r,i,o,a){var s=i===m,l=ae(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(b(a),s?void b(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new Be(e,this.keyHash,[r,i]):(b(o),Ke(this,e,t,ve(r),[r,i])))},Le.prototype.iterate=Fe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},De.prototype.iterate=Ne.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Be.prototype.iterate=function(e,t){return e(this.entry)},t(ze,M),ze.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return Ue(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return Ue(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return Ue(e,o.entry);t=this._stack=qe(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,rt=8;function it(e){var t=ht();if(null==e)return t;if(ot(e))return e;var n=i(e),r=n.size;return 0===r?t:(Ae(r),r>0&&r<32?pt(0,r,5,null,new lt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function ot(e){return!(!e||!e[at])}t(it,pe),it.of=function(){return this(arguments)},it.prototype.toString=function(){return this.__toString("List [","]")},it.prototype.get=function(e,t){if((e=k(this,e))>=0&&e<this.size){var n=vt(this,e+=this._origin);return n&&n.array[31&e]}return t},it.prototype.set=function(e,t){return function(e,t,n){if((t=k(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?yt(e,t).set(0,n):yt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o=y(v);return t>=_t(e._capacity)?r=mt(r,e.__ownerID,0,t,n,o):i=mt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},it.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},it.prototype.insert=function(e,t){return this.splice(e,0,t)},it.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},it.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){yt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},it.prototype.pop=function(){return yt(this,0,-1)},it.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){yt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},it.prototype.shift=function(){return yt(this,1)},it.prototype.merge=function(){return bt(this,void 0,arguments)},it.prototype.mergeWith=function(t){var n=e.call(arguments,1);return bt(this,t,n)},it.prototype.mergeDeep=function(){return bt(this,Qe,arguments)},it.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return bt(this,Xe(t),n)},it.prototype.setSize=function(e){return yt(this,0,e)},it.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:yt(this,O(e,n),C(t,n))},it.prototype.__iterator=function(e,t){var n=0,r=ft(this,t);return new M((function(){var t=r();return t===dt?{value:void 0,done:!0}:L(e,n++,t)}))},it.prototype.__iterate=function(e,t){for(var n,r=0,i=ft(this,t);(n=i())!==dt&&!1!==e(n,r++,this););return r},it.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},it.isList=ot;var at="@@__IMMUTABLE_LIST__@@",st=it.prototype;function lt(e,t){this.array=e,this.ownerID=t}st[at]=!0,st.delete=st.remove,st.setIn=Me.setIn,st.deleteIn=st.removeIn=Me.removeIn,st.update=Me.update,st.updateIn=Me.updateIn,st.mergeIn=Me.mergeIn,st.mergeDeepIn=Me.mergeDeepIn,st.withMutations=Me.withMutations,st.asMutable=Me.asMutable,st.asImmutable=Me.asImmutable,st.wasAltered=Me.wasAltered,lt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new lt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=gt(this,e);if(!o)for(var l=0;l<r;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},lt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=gt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ut,ct,dt={};function ft(e,t){var n=e._origin,r=e._capacity,i=_t(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(l===u)return dt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,i,o){var s,l=e&&e.array,u=o>n?0:n-o>>i,c=1+(r-o>>i);return c>32&&(c=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(u===c)return dt;var n=t?--c:u++;s=a(l&&l[n],i-5,o+(n<<i))}}}(e,s,l)}}function pt(e,t,n,r,i,o,a){var s=Object.create(st);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function ht(){return ut||(ut=pt(0,0,5))}function mt(e,t,n,r,i,o){var a,s=r>>>n&31,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var u=e&&e.array[s],c=mt(u,t,n-5,r,i,o);return c===u?e:((a=gt(e,t)).array[s]=c,a)}return l&&e.array[s]===i?e:(b(o),a=gt(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function gt(e,t){return t&&e&&t===e.ownerID?e:new lt(e?e.array.slice():[],t)}function vt(e,t){if(t>=_t(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function yt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new lt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var d=_t(o),f=_t(s);f>=1<<l+5;)u=new lt(u&&u.array.length?[u]:[],r),l+=5;var p=e._tail,h=f<d?vt(e,s-1):f>d?new lt([],r):p;if(p&&f>d&&a<o&&p.array.length){for(var m=u=gt(u,r),g=l;g>5;g-=5){var v=d>>>g&31;m=m.array[v]=gt(m.array[v],r)}m.array[d>>>5&31]=p}if(s<o&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>i||f<d){for(c=0;u;){var y=a>>>l&31;if(y!==f>>>l&31)break;y&&(c+=(1<<l)*y),l-=5,u=u.array[y]}u&&a>i&&(u=u.removeBefore(r,l,a-c)),u&&f<d&&(u=u.removeAfter(r,l,f-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):pt(a,s,l,u,h)}function bt(e,t,n){for(var r=[],o=0,s=0;s<n.length;s++){var l=n[s],u=i(l);u.size>o&&(o=u.size),a(l)||(u=u.map((function(e){return re(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),Ze(e,t,r)}function _t(e){return e<32?0:e-1>>>5<<5}function wt(e){return null==e?Et():xt(e)?e:Et().withMutations((function(t){var n=r(e);Ae(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xt(e){return Re(e)&&c(e)}function kt(e,t,n,r){var i=Object.create(wt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Et(){return ct||(ct=kt(He(),ht()))}function St(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===m){if(!l)return e;a.size>=32&&a.size>=2*o.size?(r=(i=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):kt(r,i)}function Ot(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function Pt(e){var t=Vt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Gt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new M((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Rt(e,t,n){var r=Vt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,m);return o===m?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new M((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return L(r,s,t.call(n,a[1],s,e),i)}))},r}function jt(e,t){var n=Vt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Pt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Gt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function It(e,t,n,r){var i=Vt(e);return r&&(i.has=function(r){var i=e.get(r,m);return i!==m&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,m);return o!==m&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new M((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return L(i,r?u:s++,c,o)}}))},i}function Mt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),S(t,n,i))return e;var o=O(t,i),a=C(n,i);if(o!=o||a!=a)return Mt(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l==l&&(s=l<0?0:l);var u=Vt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Q(e)&&s>=0&&(u.get=function(t,n){return(t=k(this,t))>=0&&t<s?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<o))return u++,!1!==t(e,r?n:u-1,i)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,l=0;return new M((function(){for(;a++<o;)i.next();if(++l>s)return{value:void 0,done:!0};var e=i.next();return r||1===t?e:L(t,l-1,0===t?void 0:e.value[1],e)}))},u}function Lt(e,t,n,r){var i=Vt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return l++,i(e,r?o:l-1,a)})),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),l=!0,u=0;return new M((function(){var e,o,c;do{if((e=s.next()).done)return r||1===i?e:L(i,u++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],l&&(l=t.call(n,c,o,a))}while(l);return 2===i?e:L(i,o,c,e)}))},i}function Dt(e,t){var n=s(e),i=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?Z(e):J(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var u=new V(i);return n?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Nt(e,t,n){var r=Vt(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,u){var c=this;l.__iterate((function(i,l){return(!t||u<t)&&a(i)?e(i,u+1):!1===r(i,n?l:o++,c)&&(s=!0),!s}),i)}(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],l=0;return new M((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:L(r,l++,u,e);s.push(o),o=u.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Ft(e,t,n){t||(t=Kt);var r=s(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?W(o):l(e)?H(o):$(o)}function Bt(e,t,n){if(t||(t=Kt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return zt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return zt(t,e,n)?n:e}))}function zt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ut(e,t,r){var i=Vt(e);return i.size=new V(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map((function(e){return e=n(e),B(i?e.reverse():e)})),a=0,s=!1;return new M((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:L(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function qt(e,t){return Q(e)?t:e.constructor(t)}function Wt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ht(e){return Ae(e.size),x(e)}function $t(e){return s(e)?r:l(e)?i:o}function Vt(e){return Object.create((s(e)?W:l(e)?H:$).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Kt(e,t){return e>t?1:e<t?-1:0}function Yt(e){var t=B(e);if(!t){if(!U(e))throw new TypeError("Expected iterable or array-like: "+e);t=B(n(e))}return t}function Qt(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(e){}}(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Pe(o)},i=r.prototype=Object.create(Xt);return i.constructor=r,r}t(wt,Pe),wt.of=function(){return this(arguments)},wt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},wt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},wt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Et()},wt.prototype.set=function(e,t){return St(this,e,t)},wt.prototype.remove=function(e){return St(this,e,m)},wt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},wt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},wt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},wt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},wt.isOrderedMap=xt,wt.prototype[h]=!0,wt.prototype.delete=wt.prototype.remove,t(Ot,W),Ot.prototype.get=function(e,t){return this._iter.get(e,t)},Ot.prototype.has=function(e){return this._iter.has(e)},Ot.prototype.valueSeq=function(){return this._iter.valueSeq()},Ot.prototype.reverse=function(){var e=this,t=jt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ot.prototype.map=function(e,t){var n=this,r=Rt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ot.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ht(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Ot.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Ht(this):0;return new M((function(){var i=n.next();return i.done?i:L(e,t?--r:r++,i.value,i)}))},Ot.prototype[h]=!0,t(Ct,H),Ct.prototype.includes=function(e){return this._iter.includes(e)},Ct.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Ct.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new M((function(){var t=n.next();return t.done?t:L(e,r++,t.value,t)}))},t(Tt,$),Tt.prototype.has=function(e){return this._iter.includes(e)},Tt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Tt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){var t=n.next();return t.done?t:L(e,t.value,t.value,t)}))},t(At,W),At.prototype.entrySeq=function(){return this._iter.toSeq()},At.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Wt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},At.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new M((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Wt(r);var i=a(r);return L(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},Ct.prototype.cacheResult=Ot.prototype.cacheResult=Tt.prototype.cacheResult=At.prototype.cacheResult=Gt,t(Qt,fe),Qt.prototype.toString=function(){return this.__toString(Jt(this)+" {","}")},Qt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Qt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Qt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Zt(this,He()))},Qt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Jt(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Zt(this,n)},Qt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Zt(this,t)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Qt.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Zt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xt=Qt.prototype;function Zt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Jt(e){return e._name||e.constructor.name||"Record"}function en(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ue(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function tn(e){return null==e?un():nn(e)&&!c(e)?e:un().withMutations((function(t){var n=o(e);Ae(n.size),n.forEach((function(e){return t.add(e)}))}))}function nn(e){return!(!e||!e[on])}Xt.delete=Xt.remove,Xt.deleteIn=Xt.removeIn=Me.removeIn,Xt.merge=Me.merge,Xt.mergeWith=Me.mergeWith,Xt.mergeIn=Me.mergeIn,Xt.mergeDeep=Me.mergeDeep,Xt.mergeDeepWith=Me.mergeDeepWith,Xt.mergeDeepIn=Me.mergeDeepIn,Xt.setIn=Me.setIn,Xt.update=Me.update,Xt.updateIn=Me.updateIn,Xt.withMutations=Me.withMutations,Xt.asMutable=Me.asMutable,Xt.asImmutable=Me.asImmutable,t(tn,he),tn.of=function(){return this(arguments)},tn.fromKeys=function(e){return this(r(e).keySeq())},tn.prototype.toString=function(){return this.__toString("Set {","}")},tn.prototype.has=function(e){return this._map.has(e)},tn.prototype.add=function(e){return sn(this,this._map.set(e,!0))},tn.prototype.remove=function(e){return sn(this,this._map.remove(e))},tn.prototype.clear=function(){return sn(this,this._map.clear())},tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},tn.prototype.merge=function(){return this.union.apply(this,arguments)},tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},tn.prototype.sort=function(e){return cn(Ft(this,e))},tn.prototype.sortBy=function(e,t){return cn(Ft(this,t,e))},tn.prototype.wasAltered=function(){return this._map.wasAltered()},tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},tn.isSet=nn;var rn,on="@@__IMMUTABLE_SET__@@",an=tn.prototype;function sn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function ln(e,t){var n=Object.create(an);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function un(){return rn||(rn=ln(He()))}function cn(e){return null==e?mn():dn(e)?e:mn().withMutations((function(t){var n=o(e);Ae(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return nn(e)&&c(e)}an[on]=!0,an.delete=an.remove,an.mergeDeep=an.merge,an.mergeDeepWith=an.mergeWith,an.withMutations=Me.withMutations,an.asMutable=Me.asMutable,an.asImmutable=Me.asImmutable,an.__empty=un,an.__make=ln,t(cn,tn),cn.of=function(){return this(arguments)},cn.fromKeys=function(e){return this(r(e).keySeq())},cn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},cn.isOrderedSet=dn;var fn,pn=cn.prototype;function hn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function mn(){return fn||(fn=hn(Et()))}function gn(e){return null==e?xn():vn(e)?e:xn().unshiftAll(e)}function vn(e){return!(!e||!e[bn])}pn[h]=!0,pn.__empty=mn,pn.__make=hn,t(gn,pe),gn.of=function(){return this(arguments)},gn.prototype.toString=function(){return this.__toString("Stack [","]")},gn.prototype.get=function(e,t){var n=this._head;for(e=k(this,e);n&&e--;)n=n.next;return n?n.value:t},gn.prototype.peek=function(){return this._head&&this._head.value},gn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):wn(e,t)},gn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;Ae(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):wn(t,n)},gn.prototype.pop=function(){return this.slice(1)},gn.prototype.unshift=function(){return this.push.apply(this,arguments)},gn.prototype.unshiftAll=function(e){return this.pushAll(e)},gn.prototype.shift=function(){return this.pop.apply(this,arguments)},gn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},gn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=O(e,this.size);if(C(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):wn(r,i)},gn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},gn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},gn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new M((function(){if(r){var t=r.value;return r=r.next,L(e,n++,t)}return{value:void 0,done:!0}}))},gn.isStack=vn;var yn,bn="@@__IMMUTABLE_STACK__@@",_n=gn.prototype;function wn(e,t,n,r){var i=Object.create(_n);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xn(){return yn||(yn=wn(0))}function kn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}_n[bn]=!0,_n.withMutations=Me.withMutations,_n.asMutable=Me.asMutable,_n.asImmutable=Me.asImmutable,_n.wasAltered=Me.wasAltered,n.Iterator=M,kn(n,{toArray:function(){Ae(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ct(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Ot(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Ae(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return wt(this.toKeyedSeq())},toOrderedSet:function(){return cn(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Tt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(s(this)?this.valueSeq():this)},toList:function(){return it(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return qt(this,Dt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ae(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return qt(this,It(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Ae(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ae(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qt(this,Rt(this,e,t))},reduce:function(e,t,n){var r,i;return Ae(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return qt(this,jt(this,!0))},slice:function(e,t){return qt(this,Mt(this,e,t,!0))},some:function(e,t){return!this.every(Tn(e),t)},sort:function(e){return qt(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pe().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new V(e._cache);var t=e.toSeq().map(Cn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Tn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(E)},flatMap:function(e,t){return qt(this,function(e,t,n){var r=$t(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qt(this,Nt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=Yt(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,m):m)===m)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),i=(c(e)?wt():Pe()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=$t(e);return i.map((function(t){return qt(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,m)!==m},hasIn:function(e){return this.getIn(e,m)!==m},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(On).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?An(e):jn)},minBy:function(e,t){return Bt(this,t?An(t):jn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return qt(this,Lt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Tn(e),t)},sortBy:function(e,t){return qt(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return qt(this,function(e,t,n){var r=Vt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new M((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?2===r?e:L(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Tn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=me(t,3432918353),t=me(t<<15|t>>>-15,461845907),t=me(t<<13|t>>>-13,5),t=me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ge((t=me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+In(ve(e),ve(t))|0}:function(e,t){r=r+In(ve(e),ve(t))|0}:t?function(e){r=31*r+ve(e)|0}:function(e){r=r+ve(e)|0}),r)}(this))}});var En=n.prototype;En[d]=!0,En[I]=En.values,En.__toJS=En.toArray,En.__toStringMapper=Pn,En.inspect=En.toSource=function(){return this.toString()},En.chain=En.flatMap,En.contains=En.includes,kn(r,{flip:function(){return qt(this,Pt(this))},mapEntries:function(e,t){var n=this,r=0;return qt(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Sn=r.prototype;function On(e,t){return t}function Cn(e,t){return[t,e]}function Tn(e){return function(){return!e.apply(this,arguments)}}function An(e){return function(){return-e.apply(this,arguments)}}function Pn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Rn(){return w(arguments)}function jn(e,t){return e<t?1:e>t?-1:0}function In(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Sn[f]=!0,Sn[I]=En.entries,Sn.__toJS=En.toObject,Sn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Pn(e)},kn(i,{toKeyedSeq:function(){return new Ot(this,!1)},filter:function(e,t){return qt(this,It(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qt(this,jt(this,!1))},slice:function(e,t){return qt(this,Mt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=O(e,e<0?this.count():this.size);var r=this.slice(0,e);return qt(this,1===n?r:r.concat(w(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return qt(this,Nt(this,e,!1))},get:function(e,t){return(e=k(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=k(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return qt(this,function(e,t){var n=Vt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new M((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?L(n,a++,t):L(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(w(arguments)),t=Ut(this.toSeq(),H.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),qt(this,n)},keySeq:function(){return ce(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return qt(this,Lt(this,e,t,!1))},zip:function(){var e=[this].concat(w(arguments));return qt(this,Ut(this,Rn,e))},zipWith:function(e){var t=w(arguments);return t[0]=this,qt(this,Ut(this,e,t))}}),i.prototype[p]=!0,i.prototype[h]=!0,kn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=En.includes,o.prototype.contains=o.prototype.includes,kn(W,r.prototype),kn(H,i.prototype),kn($,o.prototype),kn(fe,r.prototype),kn(pe,i.prototype),kn(he,o.prototype),{Iterable:n,Seq:q,Collection:de,Map:Pe,OrderedMap:wt,List:it,Stack:gn,Set:tn,OrderedSet:cn,Record:Qt,Range:ce,Repeat:le,is:ae,fromJS:re}}()},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),_=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,l=!0);var x=y&&(u||d&&(null==w||w<12.11)),k=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,O=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function P(e,t,n,r){var i=A(e,t,n,r);return i.setAttribute("role","presentation"),i}function R(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function j(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function D(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function N(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function F(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},W={origin:"*mouse"},H={origin:"+move"};function $(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var V=[""];function G(e){for(;V.length<=e;)V.push(K(V)+" ");return V[e]}function K(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Q(){}function X(e,t){var n;return Object.create?n=Object.create(e):(Q.prototype=e,n=new Q),t&&N(t,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&J(e))||t.test(e):J(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\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 re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,c=a.length,d=[],f=0;f<c;++f)d.push((u=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":8204==u?"b":"L");for(var p=0,h=l;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=l;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,_=d[0];b<c-1;++b){var w=d[b];"+"==w&&"1"==_&&"1"==d[b+1]?d[b]="1":","!=w||_!=d[b+1]||"1"!=_&&"n"!=_||(d[b]=_),_=w}for(var x=0;x<c;++x){var k=d[x];if(","==k)d[x]="N";else if("%"==k){var E=void 0;for(E=x+1;E<c&&"%"==d[E];++E);for(var S=x&&"!"==d[x-1]||E<c&&"1"==d[E]?"1":"N",O=x;O<E;++O)d[O]=S;x=E-1}}for(var C=0,T=l;C<c;++C){var A=d[C];"L"==T&&"1"==A?d[C]="L":n.test(A)&&(T=A)}for(var P=0;P<c;++P)if(t.test(d[P])){var R=void 0;for(R=P+1;R<c&&t.test(d[R]);++R);for(var j="L"==(P?d[P-1]:l),I=j==("L"==(R<c?d[R]:l))?j?"L":"R":l,M=P;M<R;++M)d[M]=I;P=R-1}for(var L,D=[],N=0;N<c;)if(r.test(d[N])){var F=N;for(++N;N<c&&r.test(d[N]);++N);D.push(new o(0,F,N))}else{var B=N,z=D.length,U="rtl"==s?1:0;for(++N;N<c&&"L"!=d[N];++N);for(var q=B;q<N;)if(i.test(d[q])){B<q&&(D.splice(z,0,new o(1,B,q)),z+=U);var W=q;for(++q;q<N&&i.test(d[q]);++q);D.splice(z,0,new o(2,W,q)),z+=U,B=q}else++q;B<N&&D.splice(z,0,new o(1,B,N))}return"ltr"==s&&(1==D[0].level&&(L=a.match(/^\s+/))&&(D[0].from=L[0].length,D.unshift(new o(0,0,L[0].length))),1==K(D).level&&(L=a.match(/\s+$/))&&(K(D).to-=L[0].length,D.push(new o(0,c-L[0].length,c)))),"rtl"==s?D.reverse():D}}();function ue(e,t){var n=e.order;return null==n&&(n=e.order=le(e.text,t)),n}var ce=[],de=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ce).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||ce}function pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=z(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function ve(e,t){return fe(e,t).length>0}function ye(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xe(e){be(e),_e(e)}function ke(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Se,Oe,Ce=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Se){var t=A("span","");T(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Oe)return Oe;var t=T(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Pe,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Pe=A("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),Me=null,Le={},De={};function Ne(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Le[e]=t}function Fe(e){if("string"==typeof e&&De.hasOwnProperty(e))e=De[e];else if(e&&"string"==typeof e.name&&De.hasOwnProperty(e.name)){var t=De[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Fe(t);var n=Le[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){N(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function He(e,t,n){return!e.startState||e.startState(t,n)}var $e=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ve(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ge(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ke(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ye(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Qe(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Xe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Ze(e,t){return t>=e.first&&t<e.first+e.size}function Je(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Ve(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Ve(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}$e.prototype.eol=function(){return this.pos>=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$e.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$e.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$e.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$e.prototype.backUp=function(e){this.pos-=e},$e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},$e.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},$e.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,n,r){var i=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,_t(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=pt(e,Qe(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=dt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ve(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var c=F(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Ve(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,He(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new $e(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=We(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=We(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.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}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,qe(e.mode,t.state),n,t.lookAhead):new ct(e,qe(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ve(a,(t=st(a,t)).line),u=pt(e,t.line,n),c=new $e(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=gt(s,c,u.state),r&&o.push(new vt(c,i,qe(a.mode,u.state)));return r?o:new vt(c,i,u.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function _t(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new $e(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,d.pos),d.pos=t.length,l=null):l=bt(gt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var wt=!1,xt=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function St(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ot(e,t){if(t.full)return null;var n=Ze(e,t.from.line)&&Ve(e,t.from.line).markedSpans,r=Ze(e,t.to.line)&&Ve(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=K(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Et(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Et(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Ct(s)),l&&l!=s&&(l=Ct(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new kt(s[b].marker,null,null));for(var _=0;_<y;++_)g.push(v);g.push(l)}return g}function Ct(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Tt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function At(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Pt(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function jt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||Pt(e)-Pt(t);if(o)return-o;var a=tt(r.to,i.to)||Rt(e)-Rt(t);return a||t.id-e.id}function It(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||jt(n,i.marker)<0)&&(n=i.marker);return n}function Mt(e){return It(e,!0)}function Lt(e){return It(e,!1)}function Dt(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function Nt(e,t,n,r,i){var o=Ve(e,t),a=xt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=tt(u.from,n)||Pt(l.marker)-Pt(i),d=tt(u.to,r)||Rt(l.marker)-Rt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,r)<=0:tt(u.from,r)<0)))return!0}}}function Ft(e){for(var t;t=Mt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=Ve(e,t),r=Ft(n);return n==r?t:Qe(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=Ve(e,t);if(!Ut(e,r))return t;for(;n=Lt(r);)r=n.find(1,!0).line;return Qe(r)+1}function Ut(e,t){var n=xt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function Wt(e){for(var t=0,n=(e=Ft(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Ht(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Mt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Lt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function $t(e){var t=e.display,n=e.doc;t.maxLine=Ve(n,n.first),t.maxLineLength=Ht(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Ht(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Vt=function(e,t,n){this.text=e,At(this,t),this.height=n?n(this):1};function Gt(e){e.parent=null,Tt(e)}Vt.prototype.lineNo=function(){return Qe(this)},ye(Vt);var Kt={},Yt={};function Qt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Yt:Kt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Jt,Ae(e.display.measure)&&(a=ue(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Qe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==i?(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(l){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 he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function Zt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jt(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(A("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",G(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(A("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var w=A("span",[u],_,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(u)}}function en(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],x=w.marker;if("bookmark"==x.type&&w.from==h&&x.widgetNode)y.push(x);else if(w.from<=h&&(null==w.to||w.to>h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(c+=" "+x.startStyle),x.endStyle&&w.to==v&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!d||jt(d.marker,x)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==v&&(u+=" "+b[E]);if(!d||d.from==h)for(var S=0;S<y.length;++S)tn(t,0,y[S]);if(d&&(d.from||0)==h){if(tn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var O=Math.min(p,v);;){if(g){var C=h+g.length;if(!d){var T=C>O?g.slice(0,O-h):g;t.addToken(t,T,a?a+l:l,c,h+T.length==v?u:"",s,f)}if(C>=O){g=g.slice(O-h),h=O;break}h=C,c=""}g=i.slice(o,o=n[m++]),a=Qt(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),Qt(n[A+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Lt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Qe(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,Ve(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function ln(e,t){var n=fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(un,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function un(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function cn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?pn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function dn(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Xt(e,t)}function pn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=dn(t);t.background=r.insertBefore(A("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=dn(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=dn(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",Je(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=E("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);yn(e,t,n)}function vn(e,t,n,r){var i=fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),_n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),ln(l,"redraw")}}function _n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,A("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function xn(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function En(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,A("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function On(e){return 50-e.display.nativeBarWidth}function Cn(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function Tn(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function An(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Qe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Pn(e,t,n,r){return In(e,jn(e,t),n,r)}function Rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[cr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function jn(e,t){var n=Qe(t),r=Rn(e,n);r&&!r.text?r=null:r&&r.changes&&(cn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Qe(t=Ft(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Xt(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}(e,t));var i=An(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function In(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Cn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Dn(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&re(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Nn(S(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Me)return Me;var t=T(e,A("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Ln}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var _=b?y[b-1]:0,w=y[b],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:_,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Mn,Ln={left:0,right:0,top:0,bottom:0};function Dn(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Nn(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Fn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Fn(e.display.view[t])}function zn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qn(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wn(e){var t=Ft(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=wn(t[r]));return n}function Hn(e,t,n,r,i){if(!i){var o=Wn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Wt(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn());var l=s.left+("window"==r?0:Un());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function $n(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(),i-=qn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Vn(e,t,n,r,i){return r||(r=Ve(e.doc,t.line)),Hn(e,r,Pn(e,r,t.ch,i),n)}function Gn(e,t,n,r,i,o){function a(t,a){var s=In(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Hn(e,r,s,n)}r=r||Ve(e.doc,t.line),i||(i=jn(e,r));var s=ue(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=se(s,l,u),f=ae,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Kn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Ve(e.doc,t.line),i=Wt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Qn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Xe(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,Ve(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ve(r,i);;){var s=er(e,a,i,t,n),l=Dt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ve(r,i=u.line)}}function Xn(e,t,n,r){r-=Wn(t);var i=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return In(e,n,t).top>r}),o,i)}}function Zn(e,t,n,r){return n||(n=jn(e,t)),Xn(e,t,n,Hn(e,t,In(e,n,r),"line").top)}function Jn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Wt(t);var o=jn(e,t),a=Wn(t),s=0,l=t.text.length,u=!0,c=ue(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=oe((function(t){var n=In(e,o,t);return n.top+=a,n.bottom+=a,!!Jn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":In(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var _=Gn(e,et(n,g,p),"line",t,o);f=_.left,v=i<_.top?-1:i>=_.bottom?1:0}return Yn(n,g=ie(t.text,g,1),p,v,r-f)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],u=1!=l.level;return Jn(Gn(e,et(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Gn(e,et(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Jn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=Xn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=In(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Mn){Mn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Mn.appendChild(document.createTextNode("x")),Mn.appendChild(A("br"));Mn.appendChild(document.createTextNode("x"))}T(e.measure,Mn);var n=Mn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ye(e,t)}))}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=Qn(e,o,a);if(r&&u.xRel>0&&(l=Ve(e.doc,u.line).text).length==u.ch){var c=F(l,l.length,e.options.tabSize)-l.length;u=et(u.line,Math.max(0,Math.round((o-Sn(e.display).left)/ir(e.display))-c))}return u}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)xt&&Bt(e.doc,t)<i.viewTo&&pr(e);else if(n<=i.viewFrom)xt&&zt(e.doc,n+r)>i.viewFrom?pr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)pr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!xt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&yr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&yr(e,l.head,i);u||_r(e,l,o)}}return r}function yr(e,t,n){var r=Gn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(A("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Vn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Sn(e.display),s=a.left,l=Math.max(r.sizerWidth,Cn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ve(i,t),f=d.text.length;function p(n,r){return Vn(e,et(t,n),"div",d,r)}function h(t,n,r){var i=Zn(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=ue(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,_=null==r&&t==f,w=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?_:b)&&x,E=(u?b:_)&&w?s:(g?v:y).left,S=k?l:(g?y:v).right;c(E,v.top,S-E,v.bottom)}else{var O,C,T,A;g?(O=u&&b&&w?s:v.left,C=u?l:h(e,i,"before"),T=u?s:h(t,i,"after"),A=u&&_&&x?l:y.right):(O=u?h(e,i,"before"):s,C=!u&&b&&w?l:v.right,T=!u&&_&&x?s:y.left,A=u?h(t,i,"after"):l),c(O,v.top,C-O,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(T,y.top,A-T,y.bottom)}(!o||br(v,o)<0)&&(o=v),br(y,o)<0&&(o=y),(!a||br(v,a)<0)&&(a=v),br(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=Ve(i,f.line),m=Ve(i,p.line),g=Ft(h)==Ft(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,y=d(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function wr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Sr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function xr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Er(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Sr(e))}),100)}function Er(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Or(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Ye(u.line,d),Cr(u.line),u.rest))for(var g=0;g<u.rest.length;g++)Cr(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Cr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Tr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Xe(t,r),a=Xe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Xe(t,Wt(Ve(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Xe(t,Wt(Ve(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ar(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Tn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+En(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Cn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Pr(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Rr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function jr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mr(e,Kn(e,t.from),Kn(e,t.to),t.margin))}function Mr(e,t,n,r){var i=Ar(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});jr(e,i.scrollLeft,i.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Dr(e,t,!0),n&&li(e),ri(e,100))}function Dr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Nr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,di(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+En(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?n:0,docHeight:r,scrollHeight:r+On(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"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=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zr=function(){};function Ur(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Or(e),qr(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Wr={native:Br,null:zr};function Hr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Nr(e,t):Lr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var $r=0;function Vr(e){var t;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:++$r,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Kr(t[n]);for(var r=0;r<t.length;r++)Yr(t[r]);for(var i=0;i<t.length;i++)Qr(t[i]);for(var o=0;o<t.length;o++)Xr(t[o]);for(var a=0;a<t.length;a++)Zr(t[a])}(e)}))}function Kr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=On(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=On(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&$t(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Qr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Or(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Pn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+On(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Cn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Nr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==j();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ur(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&xr(e.cm)}function Zr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Dr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Nr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=A("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+On(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Gn(e,t),l=n&&n!=t?Gn(e,n):s,u=Ar(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Lr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Nr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Jr(e,t){if(e.curOp)return t();Vr(e);try{return t()}finally{Gr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Vr(e);try{return t.apply(e,arguments)}finally{Gr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);Vr(this);try{return e.apply(this,arguments)}finally{Gr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Vr(t);try{return e.apply(this,arguments)}finally{Gr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,D(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=dt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Jr(e,(function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Tr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Cn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return pr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fi(e)&&(pr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),xt&&(o=Bt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Wt(Ve(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=mr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=j();if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(p=!1),cn(e,f,c,n)),p&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Je(e.options,c)))),a=f.node.nextSibling}else{var h=vn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=j()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Cn(e))r&&(t.visible=Tr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-Tn(e),n.top)}),t.visible=Tr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Or(e);var i=Fr(e);gr(e),Ur(e,i),ci(e,i),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 li(e,t){var n=new oi(e,t);if(ai(e,n)){Or(e),si(e,n);var r=Fr(e);gr(e),Ur(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ln(e,"gutterChanged",e)}function ci(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+On(e)+"px"}function di(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Je(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function pi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;C(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function mi(e){hi(e.display),dr(e),di(e)}function gi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=P("div",null,"CodeMirror-code"),o.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=A("div",null,"CodeMirror-cursors"),o.measure=A("div",null,"CodeMirror-measure"),o.lineMeasure=A("div",null,"CodeMirror-measure"),o.lineSpace=P("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=P("div",[o.lineSpace],"CodeMirror-lines");o.mover=A("div",[u],null,"position: relative"),o.sizer=A("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=A("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=A("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=A("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=A("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ve(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var vi=0,yi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function _i(e){var t=bi(e);return t.x*=yi,t.y*=yi,t}function wi(e,t){var r=bi(t),i=r.x,o=r.y,a=yi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,c=u.scrollWidth>u.clientWidth,f=u.scrollHeight>u.clientHeight;if(i&&c||o&&f){if(o&&y&&l)e:for(var p=t.target,h=s.view;p!=u;p=p.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!d&&null!=a)return o&&f&&Lr(e,Math.max(0,u.scrollTop+o*a)),Nr(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&f)&&be(t),void(s.wheelStartX=null);if(o&&null!=a){var g=o*a,v=e.doc.scrollTop,b=v+s.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):b=Math.min(e.doc.height,b+g+50),li(e,{top:v,bottom:b})}vi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(yi=(yi*vi+n)/(vi+1),++vi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?yi=-.53:n?yi=15:c?yi=-.7:f&&(yi=-1/3);var xi=function(e,t){this.ranges=e,this.primIndex=t};xi.prototype.primary=function(){return this.ranges[this.primIndex]},xi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},xi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new xi(e,this.primIndex)},xi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Ei(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=z(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=tt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ot(s.from(),a.from()),c=it(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(d?c:u,d?u:c))}}return new xi(t,n)}function Si(e,t){return new xi([new ki(e,t||e)],0)}function Oi(e){return e.text?et(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Oi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Oi(t).ch-t.to.ch),et(n,r)}function Ti(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Ci(i.anchor,t),Ci(i.head,t)))}return Ei(e.cm,n,e.sel.primIndex)}function Ai(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Pi(e){e.doc.mode=Be(e.options,e.doc.modeOption),Ri(e)}function Ri(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&dr(e)}function ji(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ii(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Tt(e),At(e,n);var i=r?r(e):1;i!=e.height&&Ye(e,i)}(e,n,i,r),ln(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Vt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Ve(e,s.line),d=Ve(e,l.line),f=K(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(ji(e,t)){var m=a(0,u.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new Vt(f+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}ln(e,"change",e,t)}function Mi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Pi(e),Di(e),e.options.direction=t.direction,e.options.lineWrapping||$t(e),e.options.mode=t.modeOption,dr(e)}function Di(e){("rtl"==e.doc.direction?I:O)(e.display.lineDiv,"CodeMirror-rtl")}function Ni(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Fi(e,t){var n={from:rt(t.from),to:Oi(t),text:Ge(e,t.from,t.to)};return Wi(e,n,t.from.line,t.to.line+1),Mi(e,(function(e){return Wi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&K(e).ranges;)e.pop()}function zi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}(i,i.lastOp==r)))a=K(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Oi(t):o.changes.push(Fi(e,t));else{var l=K(i.done);for(l&&l.ranges||qi(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ui(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,K(i.done),t))?i.done[i.done.length-1]=t:qi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function qi(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Wi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Hi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function $i(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Hi(n[i]));return r}(e,t),r=Ot(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Vi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?xi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&z(t,Number(c[1]))>-1&&(K(s)[d]=u[d],delete u[d])}}}return r}function Gi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Ki(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ji(e,new xi([Gi(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Gi(e.sel.ranges[o],t[o],null,i);Ji(e,Ei(e.cm,r,e.sel.primIndex),n)}function Qi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ji(e,Ei(e.cm,i,e.sel.primIndex),r)}function Xi(e,t,n,r){Ji(e,Si(t,n),r)}function Zi(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Ji(e,t,n)}function Ji(e,t,n){eo(e,t,n),Ui(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ve(e,"beforeSelectionChange")||e.cm&&ve(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ei(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Rr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),ln(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),u=oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(l,u))}return i?Ei(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=Ve(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(he(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=ao(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=tt(d,n))&&(r<0?f<0:f>0))return io(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=ao(e,p,r,p.line==t.line?o:null)),p?io(e,p,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||Ve(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),q)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function uo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,uo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(tt(u.to,s.from)<0||tt(u.from,s.to)>0)){var c=[l,1],d=tt(u.from,s.from),f=tt(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ti(e,t);zi(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,Ot(e,t));var r=[];Mi(e,(function(e,n){n||-1!=z(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,Ot(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(qi(i,l),n&&!i.equals(e.sel))return void Ji(e,i,{clearRedo:!1});a=i}var c=[];qi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!lo(e,r,!1))return s.length=0,{};c.push(Fi(e,r));var o=n?Ti(e,r):K(s);ho(e,r,o,$i(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Oi(r)});var a=[];Mi(e,(function(e,t){t||-1!=z(a,e.history)||(yo(e.history,r),a.push(e.history)),ho(e,r,null,$i(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new xi(Y(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)po(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);po(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,Ve(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ge(e,t.from,t.to),n||(n=Ti(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Qe(Ft(Ve(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),Ii(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Ht(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ve(e,r).stateAfter;if(i&&(!(i instanceof ut)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||ji(e.doc,t)?dr(e,o.line,a.line+1,u):fr(e,o.line,"text");var c=ve(e,"changes"),d=ve(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&ln(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ii(e,t,r),eo(e,n,q),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),uo(e,{from:n,to:r,text:t,origin:i})}function go(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,t,n,r),go(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=et(u.from.line+r,u.from.ch),u.to=et(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function yo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;vo(e.done,n,r,i),vo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ve(e,at(e,t)):i=Qe(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return ot(this.anchor,this.head)},ki.prototype.to=function(){return it(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Gt(i),ln(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new _o(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var xo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Wt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Pr(e,n)}xo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Qe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);Ye(n,Math.max(0,n.height-o)),e&&(Jr(e,(function(){ko(e,n,-o),fr(e,r,"widget")})),ln(e,"lineWidgetCleared",e,this,r))}},xo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Ut(this.doc,r)||Ye(r,r.height+i),n&&Jr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),ln(n,"lineWidgetChanged",n,e,Qe(r))})))},ye(xo);var Eo=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Eo};function Oo(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=N(r)).shared=!1;var o=[Oo(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Mi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Oo(e,st(e,t),st(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=K(o)})),new Co(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,Oo)(e,t,n,r,i);var o=new So(e,i),a=tt(t,n);if(r&&N(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=P("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Nt(e,t.line,t,n,o)||t.line!=n.line&&Nt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt=!0}o.addToHistory&&zi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Ft(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ye(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new kt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ut(e,t)&&Ye(t,0)})),o.clearOnEnter&&de(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Eo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)dr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)fr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Vr(e),ve(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Et(a.markedSpans,this);e&&!this.collapsed?fr(e,Qe(a),"text"):e&&(null!=s.to&&(i=Qe(a)),null!=s.from&&(r=Qe(a))),a.markedSpans=St(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Ye(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Ft(this.lines[l]),c=Ht(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&Gr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Et(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Qe(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Qe(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Jr(r,(function(){var i=t.line,o=Qe(t.line),a=Rn(r,o);if(a&&(Fn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=wn(n)-s;l&&Ye(i,i.height+l)}ln(r,"markerChanged",r,e)}))},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ye(So);var Co=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function To(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function Ao(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Mi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ln(this,"clear")}},Co.prototype.find=function(e,t){return this.primary.find(e,t)},ye(Co);var Po=0,Ro=function(e,t,n,r,i){if(!(this instanceof Ro))return new Ro(e,t,n,r,i);null==n&&(n=0),wo.call(this,[new _o([new Vt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Si(o),this.history=new Ni(null),this.id=++Po,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ii(this,{from:o,to:o,text:e}),Ji(this,Si(o),q)};Ro.prototype=X(wo.prototype,{constructor:Ro,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ke(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;uo(this,{from:t,to:et(n,Ve(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),Ji(this,Si(t),q)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Ge(this,st(this,e),st(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Ze(this,e))return Ve(this,e)},getLineNumber:function(e){return Qe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ve(this,e)),Ft(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Xi(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Xi(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Ki(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Yi(this,lt(this,e),t)})),extendSelectionsBy:ni((function(e,t){Yi(this,lt(this,Y(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(st(this,e[i].anchor),st(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ji(this,Ei(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(st(this,e),st(this,t||e))),Ji(this,Ei(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ai(s.from,i,o),u=Ai(Oi(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=tt(c.head,c.anchor)<0;r[a]=new ki(d?u:l,d?l:u)}else r[a]=new ki(l,l)}return new xi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)uo(this,r[l]);s?Zi(this,s):this.cm&&Rr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Ni(this.history),Mi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Vi(this.history.done),undone:Vi(this.history.undone)}},setHistory:function(e){var t=this.history=new Ni(this.history);t.done=Vi(e.done.slice(0),null,!0),t.undone=Vi(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return bo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Ze(this,e))return null;if(t=e,!(e=Ve(this,e)))return null}else if(null==(t=Qe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new xo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Wt(t)<e.scrollTop;Ye(t,t.height+wn(i)),r&&Pr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&ln(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Qe(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Oo(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Oo(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ve(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ro(Ke(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ro(Ke(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=Oo(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,To(this)),r},unlinkDoc:function(e){if(e instanceof Ca&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ao(To(this));break}if(e.history==this.history){var n=[e.id];Mi(e,(function(e){return n.push(e.id)}),!0),e.history=new Ni(null),e.history.done=Vi(this.history.done,n),e.history.undone=Vi(this.history.undone,n)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Jr(t=this.cm,(function(){Di(t),dr(t)})))}))}),Ro.prototype.eachLine=Ro.prototype.iter;var jo=0;function Io(e){var t=this;if(Mo(t),!me(t,e)&&!xn(t.display,e)){be(e),a&&(jo=+new Date);var n=ur(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};uo(t.doc,e),Zi(t.doc,Si(st(t.doc,n),st(t.doc,Oi(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Si(n,n)),f)for(var p=0;p<f.length;++p)mo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Do=!1;function No(){var e;Do||(de(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Fo)}),100))})),de(window,"blur",(function(){return Lo(Sr)})),Do=!0)}function Fo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Bo[zo+48]=Bo[zo+96]=String(zo);for(var Uo=65;Uo<=90;Uo++)Bo[Uo]=String.fromCharCode(Uo);for(var qo=1;qo<=12;qo++)Bo[qo+111]=Bo[qo+63235]="F"+qo;var Wo={};function Ho(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function $o(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),Ho),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Vo(e,t,n,r){var i=(t=Qo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Vo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Vo(e,t.fallthrough[o],n,r);if(a)return a}}}function Go(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ko(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Yo(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ko(n,e,t))}function Qo(e){return"string"==typeof e?Wo[e]:e}function Xo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,K(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Jr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Rr(e)}))}function Zo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Jo(e,t,n){var r=Zo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ue(n,t.doc.direction);if(o){var a,s=i<0?K(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=jn(t,n);a=i<0?n.text.length-1:0;var c=In(t,u,a).top;a=oe((function(e){return In(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wo.default=y?Wo.macDefault:Wo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Xo(e,(function(t){if(t.empty()){var n=Ve(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Xo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Xo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Xo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ve(e.doc,t),r=function(e){for(var t;t=Lt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Qe(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),H)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=F(e.getLine(o.line),o.ch,r);t.push(G(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Jr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ve(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ve(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Jr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Rr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=Ve(e.doc,t),r=Ft(n);return r!=n&&(t=Qe(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=Ve(e.doc,n.line),i=ue(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Go(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Vo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Vo(t,e.options.extraKeys,n,e)||Vo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ln(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(be(n),wr(e)),!!i}function la(e,t){var n=Yo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var ua=null;function ca(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=j(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);d&&(ua=i?r:null,i||88!=r||Ie||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n)}(t)}}function da(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||xn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ua)return ua=null,void be(e);if(!d||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var pa,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ga(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,xn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(t,e)){var r=ur(t,e),i=Ee(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(pa=ha=null,"triple"):pa&&pa.compare(n,e,t)?(ha=new ma(n,e,t),pa=null,"double"):(pa=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Ko(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(D(xr,e),0):e.curOp.focus=j();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Ce&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:kr(e)),pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",u),o||(be(t),r.addNew||Ki(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,de(i.wrapper.ownerDocument,"mouseup",u),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",d),de(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&kr(e);var i=e.display,o=e.doc;be(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new ki(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ki(n,n)),n=ur(e,t,!0,!0),l=-1;else{var d=va(e,n,r.unit);s=r.extend?Gi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,Ji(o,Ei(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Ji(o,Ei(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Qi(o,l,s,W):(l=0,Ji(o,new xi([s],0),W),u=o.sel);var f=n;function p(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=F(Ve(o,n.line).text,n.ch,a),d=F(Ve(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ve(o,m).text,y=$(v,p,a);p==h?i.push(new ki(et(m,y),et(m,y))):v.length>y&&i.push(new ki(et(m,y),et(m,$(v,h,a))))}i.length||i.push(new ki(n,n)),Ji(o,Ei(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,w=va(e,t,r.unit),x=_.anchor;tt(w.anchor,x)>0?(b=w.head,x=ot(_.from(),w.anchor)):(b=w.anchor,x=it(_.to(),w.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Ve(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ue(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,x),b)),Ji(o,Ei(e,k,l),W)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){e.state.selectingText=!1,m=1/0,t&&(be(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ei(e,(function(t){0!==t.buttons&&Ee(t)?function t(n){var a=++m,s=ur(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=j(),p(s);var l=Tr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,(function(){m==a&&t(n)})),150)}else{var u=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;u&&setTimeout(ei(e,(function(){m==a&&(i.scroller.scrollTop+=u,t(n))})),50)}}(t):g(t)})),y=ei(e,g);e.state.selectingText=y,de(i.wrapper.ownerDocument,"mousemove",v),de(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&be(e):2==i?(r&&Ki(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kr(t)))}}function va(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ve(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return he(e,n,e,Xe(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function ba(e,t){return ya(e,t,"gutterClick",!0)}function _a(e,t){xn(e.display,t)||function(e,t){return!!ve(e,"gutterContextMenu")&&ya(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},ka={},Ea={};function Sa(e,t,n){if(!t!=!(n&&n!=xa)){var r=e.display.dragFunctions,i=t?de:pe;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Oa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),$t(e)),lr(e),dr(e),zn(e),setTimeout((function(){return Ur(e)}),100)}function Ca(e,t){var n=this;if(!(this instanceof Ca))return new Ca(e,t);this.options=t=t?N(t):{},N(ka,t,!1);var r=t.value;"string"==typeof r?r=new Ro(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ca.inputStyles[t.inputStyle](this),o=this.display=new gi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hr(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 B,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;de(t.scroller,"mousedown",ei(e,ga)),de(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!ba(e,t)&&!xn(e.display,t)){be(t);var r=e.findWordAt(n);Ki(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),de(t.scroller,"contextmenu",(function(t){return _a(e,t)})),de(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||_a(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}de(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Nr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return wi(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||xe(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),xe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-jo<100))xe(t);else if(!me(e,t)&&!xn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Io),leave:function(t){me(e,t)||Mo(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return da.call(e,t)})),de(l,"keydown",ei(e,ca)),de(l,"keypress",ei(e,fa)),de(l,"focus",(function(t){return Er(e,t)})),de(l,"blur",(function(t){return Sr(e,t)}))}(this),No(),Vr(this),this.curOp.forceUpdate=!0,Li(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Er(n)}),20):Sr(this),Ea)Ea.hasOwnProperty(u)&&Ea[u](this,t[u],xa);fi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ta.length;++c)Ta[c](this);Gr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ca.defaults=ka,Ca.optionHandlers=Ea;var Ta=[];function Aa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=pt(e,t).state:n="prev");var a=e.options.tabSize,s=Ve(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==U||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?F(Ve(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=G(u-f)),d!=c)return mo(o,d,et(t,0),et(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=et(t,c.length);Qi(o,h,new ki(g,g));break}}}Ca.defineInitHook=function(e){return Ta.push(e)};var Pa=null;function Ra(e){Pa=e}function ja(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),u=null;if(s&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==t){if(r.ranges.length%Pa.text.length==0){u=[];for(var c=0;c<Pa.text.length;c++)u.push(o.splitLines(Pa.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Y(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(Ve(o,m.line).text.length,m.ch+K(l).length)):s&&Pa&&Pa.lineWise&&Pa.text.join("\n")==l.join("\n")&&(h=m=et(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,g),ln(e,"inputRead",e,g)}t&&!s&&Ma(e,t),Rr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Jr(t,(function(){return ja(t,n,0,null,"paste")})),!0}function Ma(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Aa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ve(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Aa(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function La(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Da(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Na(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Da(e),t}function Fa(e,t,n,r,i){var o=t,a=n,s=Ve(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var c=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(c?2:1))),-n)}}else a=i?function(e,t,n,r){var i=ue(t,e.doc.direction);if(!i)return Jo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Jo(t,n,r);var s,l=function(e,n){return Zo(t,e instanceof et?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||jn(e,t),Zn(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new et(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):Jo(s,t,n);if(null==a){if(o||!function(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new et(n,t.ch,t.sticky),s=Ve(e,n))}())return!1;t=ea(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=oo(e,t,o,a,!0);return nt(o,g)&&(g.hitSide=!0),g}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Qn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var za=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Rn(e,t.line);if(!n||n.hidden)return null;var r=Ve(e.doc,t.line),i=An(n,r,t.line),o=ue(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Dn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qa(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return qa(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ha(o,t,n)}}function Ha(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!R(r,t))return qa(et(Qe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?K(e.rest):e.line;return qa(et(Qe(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=Qe(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),et(c,d)}}}var d=c(a,s,n);if(d)return qa(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return qa(et(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return qa(et(d.line,d.ch+m),i);m+=h.textContent.length}}za.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Pa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Na(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Pa.text.join("\n");var u=j();L(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Da(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),de(i,"paste",(function(e){!o(e)||me(r,e)||Ia(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),de(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),de(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),de(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),de(i,"touchstart",(function(){return n.forceCompositionEnd()})),de(i,"input",(function(){t.composing||t.readFromDOMSoon()})),de(i,"copy",a),de(i,"cut",a)},za.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=j()==this.div,e},za.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},za.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Wa(t,e.anchorNode,e.anchorOffset),s=Wa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Ua(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ua(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=S(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},za.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},za.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},za.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},za.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},za.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&j()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},za.prototype.blur=function(){this.div.blur()},za.prototype.getField=function(){return this.div},za.prototype.supportsTouch=function(){return!0},za.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Jr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},za.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},za.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Wa(t,e.anchorNode,e.anchorOffset),r=Wa(t,e.focusNode,e.focusOffset);n&&r&&Jr(t,(function(){Ji(t.doc,Si(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},za.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,Ve(r.doc,a.line-1).length)),s.ch==Ve(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Qe(i.view[0].line),n=i.view[0].node):(t=Qe(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=cr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Qe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(et(r,0),et(i+1,0),(g=+f,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(Ge(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),f=Ge(r.doc,et(t,0),et(l,Ve(r.doc,l).text.length));d.length>1&&f.length>1;)if(K(d)==K(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=K(d),b=K(f),_=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var w=et(t,p),x=et(l,f.length?K(f).length-h:0);return d.length>1||d[0]||tt(w,x)?(mo(r.doc,d,w,x,"+input"),!0):void 0},za.prototype.ensurePolled=function(){this.forceCompositionEnd()},za.prototype.reset=function(){this.forceCompositionEnd()},za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},za.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},za.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return dr(e.cm)}))},za.prototype.setUneditable=function(e){e.contentEditable="false"},za.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,ja)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},za.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},za.prototype.onContextMenu=function(){},za.prototype.resetPosition=function(){},za.prototype.needsContentAttribute=!0;var $a=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};$a.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),de(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(i,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(i,"cut",o),de(i,"copy",o),de(e.scroller,"paste",(function(t){if(!xn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),de(e.lineSpace,"selectstart",(function(t){xn(e,t)||be(t)})),de(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},$a.prototype.createField=function(e){this.wrapper=Na(),this.textarea=this.wrapper.firstChild},$a.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=Gn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},$a.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$a.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},$a.prototype.getField=function(){return this.textarea},$a.prototype.supportsTouch=function(){return!1},$a.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},$a.prototype.blur=function(){this.textarea.blur()},$a.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$a.prototype.receivedFocus=function(){this.slowPoll()},$a.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},$a.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},$a.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Jr(t,(function(){ja(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},$a.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$a.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},$a.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),u=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Ji)(n.doc,Si(o),q);var c,f=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),k){xe(e);var m=function(){pe(window,"mouseup",m),setTimeout(v,20)};de(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},$a.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},$a.prototype.setUneditable=function(){},$a.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=xa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=xa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Pi(e)}),!0),n("indentUnit",2,Pi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ri(e),zn(e),dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=xa&&e.refresh()})),n("specialCharPlaceholder",Zt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Qo(t),i=n!=xa&&Qo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Oa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ur(e)}),!0),n("scrollbarStyle","native",(function(e){Hr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ri,!0),n("addModeClass",!1,Ri,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ri,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ca),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,dr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Ze(this.doc,e)&&Aa(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Aa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Rr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Aa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Qi(this.doc,r,new ki(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,Ve(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==z(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return pt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Gn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Vn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Qn(this,(e=$n(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=$n(this,{top:e,left:0},t||"page").top,Xe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ve(this.doc,e)}else r=e;return Hn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Wt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Gn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Ar(o,a)).scrollTop&&Lr(o,s.scrollTop),null!=s.scrollLeft&&Nr(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(fa),triggerOnKeyUp:da,triggerOnMouseDown:ti(ga),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ma(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Fa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Fa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),H)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xo(this,(function(n){var i=Fa(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var l=Gn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ba(this,l,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Gn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Pr(n,Vn(n,l,"div").top-s.top),l}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ve(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==j()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){jr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-On(this)-this.display.barHeight,width:e.scrollWidth-On(this)-this.display.barWidth,clientHeight:Tn(this),clientWidth:Cn(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):Mr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Jr(this,e)},startOperation:function(){return Vr(this)},endOperation:function(){return Gr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,zn(this),jr(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Li(this,e),zn(this),this.display.input.reset(),jr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ca);var Va="iter insert remove copy getEditor constructor".split(" ");for(var Ga in Ro.prototype)Ro.prototype.hasOwnProperty(Ga)&&z(Va,Ga)<0&&(Ca.prototype[Ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ro.prototype[Ga]));return ye(Ro),Ca.inputStyles={textarea:$a,contenteditable:za},Ca.defineMode=function(e){Ca.defaults.mode||"null"==e||(Ca.defaults.mode=e),Ne.apply(this,arguments)},Ca.defineMIME=function(e,t){De[e]=t},Ca.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(e,t){Ca.prototype[e]=t},Ca.defineDocExtension=function(e,t){Ro.prototype[e]=t},Ca.fromTextArea=function(e,t){if((t=t?N(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=j();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ca((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=pe,e.on=de,e.wheelEventPixels=_i,e.Doc=Ro,e.splitLines=Re,e.countColumn=F,e.findColumn=$,e.isWordChar=J,e.Pass=U,e.signal=he,e.Line=Vt,e.changeEnd=Oi,e.scrollbarModel=Wr,e.Pos=et,e.cmpPos=tt,e.modes=Le,e.mimeModes=De,e.resolveMode=Fe,e.getMode=Be,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=qe,e.startState=He,e.innerMode=We,e.commands=ta,e.keyMap=Wo,e.keyName=Yo,e.isModifierKey=Go,e.lookupKey=Vo,e.normalizeKeyMap=$o,e.StringStream=$e,e.SharedTextMarker=Co,e.TextMarker=So,e.LineWidget=xo,e.e_preventDefault=be,e.e_stopPropagation=_e,e.e_stop=xe,e.addClass=I,e.contains=R,e.rmClass=O,e.keyNames=Bo}(Ca),Ca.version="5.65.2",Ca}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return j})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return u})),n.d(t,"m",(function(){return i})),n.d(t,"n",(function(){return H})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return w})),n.d(t,"q",(function(){return F})),n.d(t,"r",(function(){return I})),n.d(t,"s",(function(){return g})),n.d(t,"t",(function(){return x})),n.d(t,"u",(function(){return W})),n.d(t,"v",(function(){return k})),n.d(t,"w",(function(){return a}));var r=n(1);function i(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var o=function e(){Object(r.j)(this,e)};function a(e,t,n){if(Array.isArray(e))return e.map((function(e,t){return a(e,String(t),n)}));if(e&&"function"==typeof e.toJSON){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(e){r.res=e,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var s=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),(i=t.call(this)).value=e,i}return Object(r.i)(n,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:a(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),n}(o);function l(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var a=[];a[o]=r,r=a}else{var s={};Object.defineProperty(s,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=s}}return e.createNode(r,!1)}var u=function(e){return null==e||"object"===Object(r.h)(e)&&e[Symbol.iterator]().next().done},c=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),i=t.call(this),Object(r.l)(Object(r.w)(i),"items",[]),i.schema=e,i}return Object(r.i)(n,[{key:"addIn",value:function(e,t){if(u(e))this.add(t);else{var i=Object(r.x)(e),o=i[0],a=i.slice(1),s=this.get(o,!0);if(s instanceof n)s.addIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(a));this.set(o,l(this.schema,a,t))}}}},{key:"deleteIn",value:function(e){var t=Object(r.x)(e),i=t[0],o=t.slice(1);if(0===o.length)return this.delete(i);var a=this.get(i,!0);if(a instanceof n)return a.deleteIn(o);throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o))}},{key:"getIn",value:function(e,t){var i=Object(r.x)(e),o=i[0],a=i.slice(1),l=this.get(o,!0);return 0===a.length?!t&&l instanceof s?l.value:l:l instanceof n?l.getIn(a,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=Object(r.x)(e),i=t[0],o=t.slice(1);if(0===o.length)return this.has(i);var a=this.get(i,!0);return a instanceof n&&a.hasIn(o)}},{key:"setIn",value:function(e,t){var i=Object(r.x)(e),o=i[0],a=i.slice(1);if(0===a.length)this.set(o,t);else{var s=this.get(o,!0);if(s instanceof n)s.setIn(a,t);else{if(void 0!==s||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(a));this.set(o,l(this.schema,a,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,o,a){var s=this,l=t.blockItem,u=t.flowChars,c=t.isMap,d=t.itemIndent,f=e,p=f.indent,h=f.indentStep,m=f.stringify,g=this.type===r.e.FLOW_MAP||this.type===r.e.FLOW_SEQ||e.inFlow;g&&(d+=h);var v=c&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:v,indent:d,inFlow:g,type:null});var y,b=!1,_=!1,w=this.items.reduce((function(t,n,r){var o;n&&(!b&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(o=n.comment),g&&(!b&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(_=!0)),b=!1;var a=m(n,e,(function(){return o=null}),(function(){return b=!0}));return g&&!_&&a.includes("\n")&&(_=!0),g&&r<s.items.length-1&&(a+=","),a=i(a,d,o),b&&(o||g)&&(b=!1),t.push({type:"item",str:a}),t}),[]);if(0===w.length)y=u.start+u.end;else if(g){var x=u.start,k=u.end,E=w.map((function(e){return e.str}));if(_||E.reduce((function(e,t){return e+t.length+2}),2)>n.maxFlowStringSingleLineLength){y=x;var S,O=Object(r.g)(E);try{for(O.s();!(S=O.n()).done;){var C=S.value;y+=C?"\n".concat(h).concat(p).concat(C):"\n"}}catch(e){O.e(e)}finally{O.f()}y+="\n".concat(p).concat(k)}else y="".concat(x," ").concat(E.join(" ")," ").concat(k)}else{var T=w.map(l);y=T.shift();var A,P=Object(r.g)(T);try{for(P.s();!(A=P.n()).done;){var R=A.value;y+=R?"\n".concat(p).concat(R):"\n"}}catch(e){P.e(e)}finally{P.f()}}return this.comment?(y+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),o&&o()):b&&a&&a(),y}}]),n}(o);function d(e){var t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}Object(r.l)(c,"maxFlowStringSingleLineLength",60);var f=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=d(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=d(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof s?r.value:r}}},{key:"has",value:function(e){var t=d(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=d(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var i,o=0,s=Object(r.g)(this.items);try{for(s.s();!(i=s.n()).done;){var l=i.value;n.push(a(l,String(o++),t))}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"toString",value:function(e,t,i){return e?Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,i):JSON.stringify(this)}}]),n}(c),p=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object(r.j)(this,n),(i=t.call(this)).key=e,i.value=o,i.type=n.Type.PAIR,i}return Object(r.i)(n,[{key:"commentBefore",get:function(){return this.key instanceof o?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof o)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}},{key:"addToJSMap",value:function(e,t){var n=a(this.key,"",e);if(t instanceof Map){var i=a(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{var s=function(e,t,n){return null===t?"":"object"!==Object(r.h)(t)?String(t):e instanceof o&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)}(this.key,n,e),l=a(this.value,s,e);s in t?Object.defineProperty(t,s,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[s]=l}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var a=e.doc.options,l=a.indent,u=a.indentSeq,d=a.simpleKeys,p=this.key,h=this.value,m=p instanceof o&&p.comment;if(d){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof c){throw new Error("With simple keys, collection cannot be used as a key value")}}var g=!d&&(!p||m||(p instanceof o?p instanceof c||p.type===r.e.BLOCK_FOLDED||p.type===r.e.BLOCK_LITERAL:"object"===Object(r.h)(p))),v=e,y=v.doc,b=v.indent,_=v.indentStep,w=v.stringify;e=Object.assign({},e,{implicitKey:!g,indent:b+_});var x=!1,k=w(p,e,(function(){return m=null}),(function(){return x=!0}));if(k=i(k,e.indent,m),!g&&k.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(e.allNullValues&&!d)return this.comment?(k=i(k,e.indent,this.comment),t&&t()):x&&!m&&n&&n(),e.inFlow&&!g?k:"? ".concat(k);k=g?"? ".concat(k,"\n").concat(b,":"):"".concat(k,":"),this.comment&&(k=i(k,e.indent,this.comment),t&&t());var E="",S=null;if(h instanceof o){if(h.spaceBefore&&(E="\n"),h.commentBefore){var O=h.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));E+="\n".concat(O)}S=h.comment}else h&&"object"===Object(r.h)(h)&&(h=y.schema.createNode(h,!0));e.implicitKey=!1,!g&&!this.comment&&h instanceof s&&(e.indentAtStart=k.length+1),x=!1,!u&&l>=2&&!e.inFlow&&!g&&h instanceof f&&h.type!==r.e.FLOW_SEQ&&!h.tag&&!y.anchors.getName(h)&&(e.indent=e.indent.substr(2));var C=w(h,e,(function(){return S=null}),(function(){return x=!0})),T=" ";if(E||this.comment)T="".concat(E,"\n").concat(e.indent);else if(!g&&h instanceof c){("["===C[0]||"{"===C[0])&&!C.includes("\n")||(T="\n".concat(e.indent))}else"\n"===C[0]&&(T="");return x&&!S&&n&&n(),i(k+T+C,e.indent,S)}}]),n}(o);Object(r.l)(p,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var h=function e(t,n){if(t instanceof m){var i=n.get(t.source);return i.count*i.aliasCount}if(t instanceof c){var o,a=0,s=Object(r.g)(t.items);try{for(s.s();!(o=s.n()).done;){var l=e(o.value,n);l>a&&(a=l)}}catch(e){s.e(e)}finally{s.f()}return a}if(t instanceof p){var u=e(t.key,n),d=e(t.value,n);return Math.max(u,d)}return 1},m=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;return Object(r.j)(this,n),(i=t.call(this)).source=e,i.type=r.e.ALIAS,i}return Object(r.i)(n,[{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(e,t){if(!t)return a(this.source,e,t);var n=t.anchors,i=t.maxAliasCount,o=n.get(this.source);if(!o||void 0===o.res){var s="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new r.v(this.cstNode,s):new ReferenceError(s)}if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=h(this.source,n)),o.count*o.aliasCount>i)){var l="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new r.v(this.cstNode,l):new ReferenceError(l)}return o.res}},{key:"toString",value:function(e){return n.stringify(this,e)}}],[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,i=t.anchors,o=t.doc,a=t.implicitKey,s=t.inStringifyKey,l=Object.keys(i).find((function(e){return i[e]===r}));if(!l&&s&&(l=o.anchors.getName(r)||o.anchors.newName()),l)return"*".concat(l).concat(a?" ":"");var u=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(u," [").concat(n,"]"))}}]),n}(o);function g(e,t){var n,i=t instanceof s?t.value:t,o=Object(r.g)(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a instanceof p){if(a.key===t||a.key===i)return a;if(a.key&&a.key.value===i)return a}}}catch(e){o.e(e)}finally{o.f()}}Object(r.l)(m,"default",!0);var v=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"add",value:function(e,t){e?e instanceof p||(e=new p(e.key||e,e.value)):e=new p(e);var n=g(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){var i=this.items.findIndex((function(t){return r(e,t)<0}));-1===i?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=g(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=g(this.items,e),r=n&&n.value;return!t&&r instanceof s?r.value:r}},{key:"has",value:function(e){return!!g(this.items,e)}},{key:"set",value:function(e,t){this.add(new p(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var i=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(i);var o,a=Object(r.g)(this.items);try{for(a.s();!(o=a.n()).done;){o.value.addToJSMap(t,i)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"toString",value:function(e,t,i){if(!e)return JSON.stringify(this);var o,a=Object(r.g)(this.items);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!(s instanceof p))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(s)," instead"))}}catch(e){a.e(e)}finally{a.f()}return Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,i)}}]),n}(c),y=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;if(Object(r.j)(this,n),e instanceof p){var o=e.value;o instanceof f||((o=new f).items.push(e.value),o.range=e.value.range),(i=t.call(this,e.key,o)).range=e.range}else i=t.call(this,new s("<<"),new f);return i.type=p.Type.MERGE_PAIR,Object(r.y)(i)}return Object(r.i)(n,[{key:"addToJSMap",value:function(e,t){var n,i=Object(r.g)(this.value.items);try{for(i.s();!(n=i.n()).done;){var o=n.value.source;if(!(o instanceof v))throw new Error("Merge sources must be maps");var a,s=o.toJSON(null,e,Map),l=Object(r.g)(s);try{for(l.s();!(a=l.n()).done;){var u=Object(r.o)(a.value,2),c=u[0],d=u[1];t instanceof Map?t.has(c)||t.set(c,d):t instanceof Set?t.add(c):Object.prototype.hasOwnProperty.call(t,c)||Object.defineProperty(t,c,{value:d,writable:!0,enumerable:!0,configurable:!0})}}catch(e){l.e(e)}finally{l.f()}}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"toString",value:function(e,t){var i=this.value;if(i.items.length>1)return Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,t);this.value=i.items[0];var o=Object(r.s)(Object(r.t)(n.prototype),"toString",this).call(this,e,t);return this.value=i,o}}]),n}(p),b={defaultType:r.e.BLOCK_LITERAL,lineWidth:76},_={trueStr:"true",falseStr:"false"},w={asBigInt:!1},x={nullStr:"null"},k={defaultType:r.e.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function E(e,t,n){var i,o=Object(r.g)(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,l=a.format,u=a.test,c=a.resolve;if(u){var d=e.match(u);if(d){var f=c.apply(null,d);return f instanceof s||(f=new s(f)),l&&(f.format=l),f}}}}catch(e){o.e(e)}finally{o.f()}return n&&(e=n(e)),new s(e)}var S=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function O(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,a=void 0===o?80:o,s=r.minContentWidth,l=void 0===s?20:s,u=r.onFold,c=r.onOverflow;if(!a||a<0)return e;var d=Math.max(1+l,1+a-t.length);if(e.length<=d)return e;var f=[],p={},h=a-t.length;"number"==typeof i&&(i>a-Math.max(2,l)?f.push(0):h=a-i);var m,g=void 0,v=void 0,y=!1,b=-1,_=-1,w=-1;for("block"===n&&-1!==(b=S(e,b))&&(h=b+d);m=e[b+=1];){if("quoted"===n&&"\\"===m){switch(_=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}w=b}if("\n"===m)"block"===n&&(b=S(e,b)),h=b+d,g=void 0;else{if(" "===m&&v&&" "!==v&&"\n"!==v&&"\t"!==v){var x=e[b+1];x&&" "!==x&&"\n"!==x&&"\t"!==x&&(g=b)}if(b>=h)if(g)f.push(g),h=g+d,g=void 0;else if("quoted"===n){for(;" "===v||"\t"===v;)v=m,m=e[b+=1],y=!0;var k=b>w+1?b-2:_-1;if(p[k])return e;f.push(k),p[k]=!0,h=k+d,g=void 0}else y=!0}v=m}if(y&&c&&c(),0===f.length)return e;u&&u();for(var E=e.slice(0,f[0]),O=0;O<f.length;++O){var C=f[O],T=f[O+1]||e.length;0===C?E="\n".concat(t).concat(e.slice(0,T)):("quoted"===n&&p[C]&&(E+="".concat(e[C],"\\")),E+="\n".concat(t).concat(e.slice(C+1,T)))}return E}var C=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},k.fold):k.fold},T=function(e){return/^(%|---|\.\.\.)/m.test(e)};function A(e,t){var n=t.implicitKey,r=k.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,a=JSON.stringify(e);if(i)return a;for(var s=t.indent||(T(e)?" ":""),l="",u=0,c=0,d=a[c];d;d=a[++c])if(" "===d&&"\\"===a[c+1]&&"n"===a[c+2]&&(l+=a.slice(u,c)+"\\ ",u=c+=1,d="\\"),"\\"===d)switch(a[c+1]){case"u":l+=a.slice(u,c);var f=a.substr(c+2,4);switch(f){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===f.substr(0,2)?l+="\\x"+f.substr(2):l+=a.substr(c,6)}u=(c+=5)+1;break;case"n":if(n||'"'===a[c+2]||a.length<o)c+=1;else{for(l+=a.slice(u,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)l+="\n",c+=2;l+=s," "===a[c+2]&&(l+="\\"),u=(c+=1)+1}break;default:c+=1}return l=u?l+a.slice(u):a,n?l:O(l,s,"quoted",C(t))}function P(e,t){if(t.implicitKey){if(/\n/.test(e))return A(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return A(e,t);var n=t.indent||(T(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:O(r,n,"flow",C(t))}function R(e,t,n,i){var o=e.comment,a=e.type,s=e.value;if(/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return A(s,t);var l=t.indent||(t.forceBlockIndent||T(s)?" ":""),u=l?"2":"1",c=a!==r.e.BLOCK_FOLDED&&(a===r.e.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;var r=t-n,i=e.length;if(i<=r)return!1;for(var o=0,a=0;o<i;++o)if("\n"===e[o]){if(o-a>r)return!0;if(i-(a=o+1)<=r)return!1}return!0}(s,k.fold.lineWidth,l.length)),d=c?"|":">";if(!s)return d+"\n";var f="",p="";if(s=s.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?d+="-":s!==e&&t===e.length-1||(d+="+",i&&i()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(d+=u);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(l))),f&&(f=f.replace(/\n+/g,"$&".concat(l))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!s)return"".concat(d).concat(u,"\n").concat(l).concat(p);if(c)return s=s.replace(/\n+/g,"$&".concat(l)),"".concat(d,"\n").concat(l).concat(f).concat(s).concat(p);s=s.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(l));var h=O("".concat(f).concat(s).concat(p),l,"block",k.fold);return"".concat(d,"\n").concat(l).concat(h)}function j(e,t,n,i){var o=k.defaultType,a=t.implicitKey,s=t.inFlow,l=e,u=l.type,c=l.value;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));var d=function(o){switch(o){case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:return R(e,t,n,i);case r.e.QUOTE_DOUBLE:return A(c,t);case r.e.QUOTE_SINGLE:return P(c,t);case r.e.PLAIN:return function(e,t,n,i){var o=e.comment,a=e.type,s=e.value,l=t.actualString,u=t.implicitKey,c=t.indent,d=t.inFlow;if(u&&/[\n[\]{},]/.test(s)||d&&/[[\]{},]/.test(s))return A(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||d||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?P(s,t):A(s,t):R(e,t,n,i);if(!u&&!d&&a!==r.e.PLAIN&&-1!==s.indexOf("\n"))return R(e,t,n,i);if(""===c&&T(s))return t.forceBlockIndent=!0,R(e,t,n,i);var f=s.replace(/\n+/g,"$&\n".concat(c));if(l){var p=t.doc.schema.tags;if("string"!=typeof E(f,p,p.scalarFallback).value)return A(s,t)}var h=u?f:O(f,c,"flow",C(t));return!o||d||-1===h.indexOf("\n")&&-1===o.indexOf("\n")?h:(n&&n(),function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(h,c,o))}(e,t,n,i);default:return null}};u!==r.e.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)?u=r.e.QUOTE_DOUBLE:!a&&!s||u!==r.e.BLOCK_FOLDED&&u!==r.e.BLOCK_LITERAL||(u=r.e.QUOTE_DOUBLE);var f=d(u);if(null===f&&null===(f=d(o)))throw new Error("Unsupported default string type ".concat(o));return f}function I(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var a=o.indexOf(".");a<0&&(a=o.length,o+=".");for(var s=n-(o.length-a-1);s-- >0;)o+="0"}return o}function M(e,t){var n,i,o;switch(t.type){case r.e.FLOW_MAP:n="}",i="flow map";break;case r.e.FLOW_SEQ:n="]",i="flow sequence";break;default:return void e.push(new r.n(t,"Not a flow collection!?"))}for(var a=t.items.length-1;a>=0;--a){var s=t.items[a];if(!s||s.type!==r.e.COMMENT){o=s;break}}if(o&&o.char!==n){var l,u="Expected ".concat(i," to end with ").concat(n);"number"==typeof o.offset?(l=new r.n(t,u)).offset=o.offset+1:(l=new r.n(o,u),o.range&&o.range.end&&(l.offset=o.range.end-o.range.start)),e.push(l)}}function L(e,t){var n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){e.push(new r.n(t,"Comments must be separated from other tokens by white space characters"))}}function D(e,t){var n=String(t),i=n.substr(0,8)+"..."+n.substr(-8);return new r.n(e,'The "'.concat(i,'" key is too long'))}function N(e,t){var n,i=Object(r.g)(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.afterKey,s=o.before,l=o.comment,u=e.items[s];u?(a&&u.value&&(u=u.value),void 0===l?!a&&u.commentBefore||(u.spaceBefore=!0):u.commentBefore?u.commentBefore+="\n"+l:u.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){i.e(e)}finally{i.f()}}function F(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((function(n){n.source||(n.source=t),e.errors.push(n)})),n.str):""}function B(e,t){var n=t.tag,i=t.type,o=!1;if(n){var a=n.handle,s=n.suffix,l=n.verbatim;if(l){if("!"!==l&&"!!"!==l)return l;var u="Verbatim tags aren't resolved, so ".concat(l," is invalid.");e.errors.push(new r.n(t,u))}else if("!"!==a||s)try{return function(e,t){var n=t.tag,i=n.handle,o=n.suffix,a=e.tagPrefixes.find((function(e){return e.handle===i}));if(!a){var s=e.getDefaults().tagPrefixes;if(s&&(a=s.find((function(e){return e.handle===i}))),!a)throw new r.n(t,"The ".concat(i," tag handle is non-default and was not declared."))}if(!o)throw new r.n(t,"The ".concat(i," tag has no suffix."));if("!"===i&&"1.0"===(e.version||e.options.version)){if("^"===o[0])return e.warnings.push(new r.m(t,"YAML 1.0 ^ tag expansion is not supported")),o;if(/[:/]/.test(o)){var l=o.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(o)}}return a.prefix+decodeURIComponent(o)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(i){case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:case r.e.QUOTE_DOUBLE:case r.e.QUOTE_SINGLE:return r.u.STR;case r.e.FLOW_MAP:case r.e.MAP:return r.u.MAP;case r.e.FLOW_SEQ:case r.e.SEQ:return r.u.SEQ;case r.e.PLAIN:return o?r.u.STR:null;default:return null}}function z(e,t,n){var i,o=e.schema.tags,a=[],l=Object(r.g)(o);try{for(l.s();!(i=l.n()).done;){var u=i.value;if(u.tag===n){if(!u.test){var d=u.resolve(e,t);return d instanceof c?d:new s(d)}a.push(u)}}}catch(e){l.e(e)}finally{l.f()}var f=F(e,t);return"string"==typeof f&&a.length>0?E(f,a,o.scalarFallback):null}function U(e,t,n){try{var i=z(e,t,n);if(i)return n&&t.tag&&(i.tag=n),i}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{var o=function(e){switch(e.type){case r.e.FLOW_MAP:case r.e.MAP:return r.u.MAP;case r.e.FLOW_SEQ:case r.e.SEQ:return r.u.SEQ;default:return r.u.STR}}(t);if(!o)throw new Error("The tag ".concat(n," is unavailable"));var a="The tag ".concat(n," is unavailable, falling back to ").concat(o);e.warnings.push(new r.m(t,a));var s=z(e,t,o);return s.tag=n,s}catch(n){var l=new r.v(t,n.message);return l.stack=n.stack,e.errors.push(l),null}}function q(e,t){var n,i={before:[],after:[]},o=!1,a=!1,s=function(e){if(!e)return!1;var t=e.type;return t===r.e.MAP_KEY||t===r.e.MAP_VALUE||t===r.e.SEQ_ITEM}(t.context.parent)?t.context.parent.props.concat(t.props):t.props,l=Object(r.g)(s);try{for(l.s();!(n=l.n()).done;){var u=n.value,c=u.start,d=u.end;switch(t.context.src[c]){case r.a.COMMENT:if(!t.commentHasRequiredWhitespace(c)){e.push(new r.n(t,"Comments must be separated from other tokens by white space characters"))}var f=t.header,p=t.valueRange;(p&&(c>p.start||f&&c>f.start)?i.after:i.before).push(t.context.src.slice(c+1,d));break;case r.a.ANCHOR:if(o){e.push(new r.n(t,"A node can have at most one anchor"))}o=!0;break;case r.a.TAG:if(a){e.push(new r.n(t,"A node can have at most one tag"))}a=!0}}}catch(e){l.e(e)}finally{l.f()}return{comments:i,hasAnchor:o,hasTag:a}}function W(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=q(e.errors,t),i=n.comments,o=n.hasAnchor,a=n.hasTag;if(o){var s=e.anchors,l=t.anchor,u=s.getNode(l);u&&(s.map[s.newName(l)]=u),s.map[l]=t}if(t.type===r.e.ALIAS&&(o||a)){e.errors.push(new r.n(t,"An alias node must not specify any properties"))}var c=function(e,t){var n=e.anchors,i=e.errors,o=e.schema;if(t.type===r.e.ALIAS){var a=t.rawValue,s=n.getNode(a);if(!s){var l="Aliased anchor not found: ".concat(a);return i.push(new r.v(t,l)),null}var u=new m(s);return n._cstAliases.push(u),u}var c=B(e,t);if(c)return U(e,t,c);if(t.type!==r.e.PLAIN){var d="Failed to resolve ".concat(t.type," node here");return i.push(new r.f(t,d)),null}try{return E(F(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),i.push(e),null}}(e,t);if(c){c.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(c.cstNode=t),e.options.keepNodeTypes&&(c.type=t.type);var d=i.before.join("\n");d&&(c.commentBefore=c.commentBefore?"".concat(c.commentBefore,"\n").concat(d):d);var f=i.after.join("\n");f&&(c.comment=c.comment?"".concat(c.comment,"\n").concat(f):f)}return t.resolved=c}function H(e,t){if(t.type!==r.e.MAP&&t.type!==r.e.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new r.f(t,n)),null}var i=t.type===r.e.FLOW_MAP?function(e,t){for(var n=[],i=[],o=void 0,a=!1,s="{",l=0;l<t.items.length;++l){var u=t.items[l];if("string"==typeof u.char){var c=u.char,d=u.offset;if("?"===c&&void 0===o&&!a){a=!0,s=":";continue}if(":"===c){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(a&&(void 0===o&&","!==c&&(o=null),a=!1),void 0!==o&&(i.push(new p(o)),o=void 0,","===c)){s=":";continue}if("}"===c){if(l===t.items.length-1)continue}else if(c===s){s=":";continue}var f="Flow map contains an unexpected ".concat(c),h=new r.f(t,f);h.offset=d,e.errors.push(h)}else u.type===r.e.BLANK_LINE?n.push({afterKey:!!o,before:i.length}):u.type===r.e.COMMENT?(L(e.errors,u),n.push({afterKey:!!o,before:i.length,comment:u.comment})):void 0===o?(","===s&&e.errors.push(new r.n(u,"Separator , missing in flow map")),o=W(e,u)):(","!==s&&e.errors.push(new r.n(u,"Indicator : missing in flow map entry")),i.push(new p(o,W(e,u))),o=void 0,a=!1)}M(e.errors,t),void 0!==o&&i.push(new p(o));return{comments:n,items:i}}(e,t):function(e,t){for(var n=[],i=[],o=void 0,a=null,s=0;s<t.items.length;++s){var l=t.items[s];switch(l.type){case r.e.BLANK_LINE:n.push({afterKey:!!o,before:i.length});break;case r.e.COMMENT:n.push({afterKey:!!o,before:i.length,comment:l.comment});break;case r.e.MAP_KEY:void 0!==o&&i.push(new p(o)),l.error&&e.errors.push(l.error),o=W(e,l.node),a=null;break;case r.e.MAP_VALUE:if(void 0===o&&(o=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===r.e.MAP&&!l.node.context.atLineStart){e.errors.push(new r.n(l.node,"Nested mappings are not allowed in compact mappings"))}var u=l.node;if(!u&&l.props.length>0){(u=new r.c(r.e.PLAIN,[])).context={parent:l,src:l.context.src};var c=l.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},"number"==typeof l.range.origStart){var d=l.range.origStart+1;u.range.origStart=u.range.origEnd=d,u.valueRange.origStart=u.valueRange.origEnd=d}}var f=new p(o,W(e,u));$(l,f),i.push(f),o&&"number"==typeof a&&l.range.start>a+1024&&e.errors.push(D(t,o)),o=void 0,a=null;break;default:void 0!==o&&i.push(new p(o)),o=W(e,l),a=l.range.start,l.error&&e.errors.push(l.error);e:for(var h=s+1;;++h){var m=t.items[h];switch(m&&m.type){case r.e.BLANK_LINE:case r.e.COMMENT:continue e;case r.e.MAP_VALUE:break e;default:e.errors.push(new r.n(l,"Implicit map keys need to be followed by map values"));break e}}if(l.valueRangeContainsNewline){e.errors.push(new r.n(l,"Implicit map keys need to be on a single line"))}}}void 0!==o&&i.push(new p(o));return{comments:n,items:i}}(e,t),o=i.comments,a=i.items,s=new v;s.items=a,N(s,o);for(var l=!1,u=0;u<a.length;++u){var d=a[u].key;if(d instanceof c&&(l=!0),e.schema.merge&&d&&"<<"===d.value){a[u]=new y(a[u]);var f=a[u].value.items,h=null;f.some((function(e){if(e instanceof m){var t=e.source.type;return t!==r.e.MAP&&t!==r.e.FLOW_MAP&&(h="Merge nodes aliases can only point to maps")}return h="Merge nodes can only have Alias nodes as values"})),h&&e.errors.push(new r.n(t,h))}else for(var g=u+1;g<a.length;++g){var b=a[g].key;if(d===b||d&&b&&Object.prototype.hasOwnProperty.call(d,"value")&&d.value===b.value){var _='Map keys must be unique; "'.concat(d,'" is repeated');e.errors.push(new r.n(t,_));break}}}if(l&&!e.options.mapAsMap){e.warnings.push(new r.m(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=s,s}function $(e,t){if(function(e){var t=e.context,n=t.lineStart,i=t.node,o=t.src,a=e.props;if(0===a.length)return!1;var s=a[0].start;if(i&&s>i.valueRange.start)return!1;if(o[s]!==r.a.COMMENT)return!1;for(var l=n;l<s;++l)if("\n"===o[l])return!1;return!0}(e)){var n=e.getPropValue(0,r.a.COMMENT,!0),i=!1,o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),i=!0;else{var a=t.value.comment;!e.node&&a&&a.startsWith(n)&&(t.value.comment=a.substr(n.length+1),i=!0)}i&&(t.comment=n)}}function V(e,t){if(t.type!==r.e.SEQ&&t.type!==r.e.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new r.f(t,n)),null}var i=t.type===r.e.FLOW_SEQ?function(e,t){for(var n=[],i=[],o=!1,a=void 0,s=null,l="[",u=null,c=0;c<t.items.length;++c){var d=t.items[c];if("string"==typeof d.char){var f=d.char,h=d.offset;if(":"===f||!o&&void 0===a||(o&&void 0===a&&(a=l?i.pop():null),i.push(new p(a)),o=!1,a=void 0,s=null),f===l)l=null;else if(l||"?"!==f){if("["!==l&&":"===f&&void 0===a){if(","===l){if((a=i.pop())instanceof p){var m=new r.n(t,"Chaining flow sequence pairs is invalid");m.offset=h,e.errors.push(m)}if(!o&&"number"==typeof s){var g=d.range?d.range.start:d.offset;g>s+1024&&e.errors.push(D(t,a));for(var v=u.context.src,y=s;y<g;++y)if("\n"===v[y]){e.errors.push(new r.n(u,"Implicit keys of flow sequence pairs need to be on a single line"));break}}}else a=null;s=null,o=!1,l=null}else if("["===l||"]"!==f||c<t.items.length-1){var b="Flow sequence contains an unexpected ".concat(f),_=new r.f(t,b);_.offset=h,e.errors.push(_)}}else o=!0}else if(d.type===r.e.BLANK_LINE)n.push({before:i.length});else if(d.type===r.e.COMMENT)L(e.errors,d),n.push({comment:d.comment,before:i.length});else{if(l){var w="Expected a ".concat(l," in flow sequence");e.errors.push(new r.n(d,w))}var x=W(e,d);void 0===a?(i.push(x),u=d):(i.push(new p(a,x)),a=void 0),s=d.range.start,l=","}}M(e.errors,t),void 0!==a&&i.push(new p(a));return{comments:n,items:i}}(e,t):function(e,t){for(var n=[],i=[],o=0;o<t.items.length;++o){var a=t.items[o];switch(a.type){case r.e.BLANK_LINE:n.push({before:i.length});break;case r.e.COMMENT:n.push({comment:a.comment,before:i.length});break;case r.e.SEQ_ITEM:if(a.error&&e.errors.push(a.error),i.push(W(e,a.node)),a.hasProps){e.errors.push(new r.n(a,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new r.f(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:n,items:i}}(e,t),o=i.comments,a=i.items,s=new f;if(s.items=a,N(s,o),!e.options.mapAsMap&&a.some((function(e){return e instanceof p&&e.key instanceof c}))){e.warnings.push(new r.m(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=s,s}},function(e,t,n){"use strict";t.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return g})),n.d(t,"ThemeContext",(function(){return m})),n.d(t,"withEmotionCache",(function(){return v})),n.d(t,"css",(function(){return k})),n.d(t,"ClassNames",(function(){return R})),n.d(t,"Global",(function(){return S})),n.d(t,"createElement",(function(){return E})),n.d(t,"jsx",(function(){return E})),n.d(t,"keyframes",(function(){return C}));var r=n(45),i=n(0);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var a=function(e){function t(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,u,c){for(var d,f=0,p=t;f<j;++f)switch(d=R[f].call(l,e,p,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?A=1:(A=2,I=e):A=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<j){var l=a(-1,n,s,s,C,O,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,f){for(var p,h,m,b,w,x=0,k=0,E=0,S=0,R=0,I=0,L=m=p=0,D=0,N=0,F=0,B=0,z=l.length,U=z-1,q="",W="",H="",$="";D<z;){if(h=l.charCodeAt(D),D===U&&0!==k+S+E+x&&(0!==k&&(h=47===k?10:47),S=E=x=0,z++,U++),0===k+S+E+x){if(D===U&&(0<N&&(q=q.replace(c,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(D)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),m=1,B=++D;D<z;){switch(h=l.charCodeAt(D)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(D+1)){case 42:case 47:e:{for(L=D+1;L<U;++L)switch(l.charCodeAt(L)){case 47:if(42===h&&42===l.charCodeAt(L-1)&&D+2!==L){D=L+1;break e}break;case 10:if(47===h){D=L+1;break e}}D=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;D++<U&&l.charCodeAt(D)!==h;);}if(0===m)break;D++}switch(m=l.substring(B,D),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<N&&(q=q.replace(c,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:N=s;break;default:N=P}if(B=(m=e(s,N,m,h,f+1)).length,0<j&&(w=a(3,m,N=t(P,q,F),s,C,O,B,h,f,d),q=N.join(""),void 0!==w&&0===(B=(m=w.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:q=q.replace(_,o);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===d&&(W+=m,m="")}else m="";break;default:m=e(s,t(s,q,F),m,d,f+1)}H+=m,m=F=N=L=p=0,q="",h=l.charCodeAt(++D);break;case 125:case 59:if(1<(B=(q=(0<N?q.replace(c,""):q).trim()).length))switch(0===L&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(B=(q=q.replace(" ",":")).length),0<j&&void 0!==(w=a(1,q,s,n,C,O,W.length,d,f,d))&&0===(B=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){$+=q+l.charAt(D);break}default:58!==q.charCodeAt(B-1)&&(W+=r(q,p,h,q.charCodeAt(2)))}F=N=L=p=0,q="",h=l.charCodeAt(++D)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==d&&0<q.length&&(N=1,q+="\0"),0<j*M&&a(0,q,s,n,C,O,W.length,d,f,d),O=1,C++;break;case 59:case 125:if(0===k+S+E+x){O++;break}default:switch(O++,b=l.charAt(D),h){case 9:case 32:if(0===S+x+k)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===S+k+x&&(N=F=1,b="\f"+b);break;case 108:if(0===S+k+x+T&&0<L)switch(D-L){case 2:112===R&&58===l.charCodeAt(D-3)&&(T=R);case 8:111===I&&(T=I)}break;case 58:0===S+k+x&&(L=D);break;case 44:0===k+E+S+x&&(N=1,b+="\r");break;case 34:case 39:0===k&&(S=S===h?0:0===S?h:S);break;case 91:0===S+k+E&&x++;break;case 93:0===S+k+E&&x--;break;case 41:0===S+k+x&&E--;break;case 40:if(0===S+k+x){if(0===p)switch(2*R+3*I){case 533:break;default:p=1}E++}break;case 64:0===k+E+S+x+L+m&&(m=1);break;case 42:case 47:if(!(0<S+x+E))switch(k){case 0:switch(2*h+3*l.charCodeAt(D+1)){case 235:k=47;break;case 220:B=D,k=42}break;case 42:47===h&&42===R&&B+2!==D&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,D+1)),b="",k=0)}}0===k&&(q+=b)}I=R,R=h,D++}if(0<(B=W.length)){if(N=s,0<j&&(void 0!==(w=a(2,W,N,n,C,O,B,d,f,d))&&0===(W=w).length))return $+W+H;if(W=N.join(",")+"{"+W+"}",0!=A*T){switch(2!==A||i(W,2)||(T=0),T){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(v,"::-webkit-input-$1")+W.replace(v,"::-moz-$1")+W.replace(v,":-ms-input-$1")+W}T=0}}return $+W+H}(P,s,n,0,0);return 0<j&&(void 0!==(l=a(-2,d,s,s,C,O,d.length,0,0,0))&&(d=l)),"",T=0,O=C=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,O=1,C=1,T=0,A=1,P=[],R=[],j=0,I=null,M=0;return l.use=function e(t){switch(t){case void 0:case null:j=R.length=0;break;default:if("function"==typeof t)R[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},l.set=s,void 0!==e&&s(e),l};n(203);function s(e){e&&l.current.insert(e+"}")}var l={current:null},u=function(e,t,n,r,i,o,a,u,c,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return l.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===u)return t+"/*|*/";break;case 3:switch(u){case 102:case 112:return l.current.insert(n[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(s)}},c=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new a(t);var i,s={};i=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(u),c=function(e,t,n,i){var o=t.name;l.current=n,r(e,t.styles),i&&(f.inserted[o]=!0)};var f={key:n,sheet:new o({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:c};return f},d=(n(803),n(140)),f=n(139),p=Object.prototype.hasOwnProperty,h=Object(i.createContext)("undefined"!=typeof HTMLElement?c():null),m=Object(i.createContext)({}),g=h.Provider,v=function(e){var t=function(t,n){return Object(i.createElement)(h.Consumer,null,(function(r){return e(t,r,n)}))};return Object(i.forwardRef)(t)},y="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",b=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[y]=e,n},_=function(){return null},w=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=t[y],s=[o],l="";"string"==typeof t.className?l=Object(d.a)(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var u=Object(f.a)(s);Object(d.b)(e,u,"string"==typeof a);l+=e.key+"-"+u.name;var c={};for(var h in t)p.call(t,h)&&"css"!==h&&h!==y&&(c[h]=t[h]);c.ref=r,c.className=l;var m=Object(i.createElement)(a,c),g=Object(i.createElement)(_,null);return Object(i.createElement)(i.Fragment,null,g,m)},x=v((function(e,t,n){return"function"==typeof e.css?Object(i.createElement)(m.Consumer,null,(function(r){return w(t,e,r,n)})):w(t,e,null,n)}));var k=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(f.a)(t)},E=function(e,t){var n=arguments;if(null==t||!p.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=x,o[1]=b(e,t);for(var a=2;a<r;a++)o[a]=n[a];return i.createElement.apply(null,o)},S=v((function(e,t){var n=e.styles;if("function"==typeof n)return Object(i.createElement)(m.Consumer,null,(function(e){var r=Object(f.a)([n(e)]);return Object(i.createElement)(O,{serialized:r,cache:t})}));var r=Object(f.a)([n]);return Object(i.createElement)(O,{serialized:r,cache:t})})),O=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new o({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&Object(d.b)(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(i.Component),C=function(){var e=k.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},T=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function A(e,t,n){var r=[],i=Object(d.a)(e,r,n);return r.length<2?n:i+t(r)}var P=function(){return null},R=v((function(e,t){return Object(i.createElement)(m.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Object(f.a)(n,t.registered);return Object(d.b)(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return A(t.registered,r,T(n))},theme:n},a=e.children(o);var s=Object(i.createElement)(P,null);return Object(i.createElement)(i.Fragment,null,s,a)}))}))},function(e,t,n){"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="6.14.1"},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(1880)),i=u(n(1882)),o=u(n(1884)),a=u(n(1885)),s=u(n(1886)),l=u(n(1887));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,i.default)(e,s);return(0,o.default)(l)};t.default=c},function(e,t,n){"use strict";function r(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"j",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m}));var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},o="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E};function a(e,t,n,r,i,o){var a=i-n,l=o-r;if(0!==a||0!==l){var u=((e-n)*a+(t-r)*l)/(a*a+l*l);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=l*u)}return s(e,t,n,r)}function s(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function l(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var u=-e[l][n]/e[n][n],c=n;c<t+1;c++)n==c?e[l][c]=0:e[l][c]+=u*e[n][c]}for(var d=new Array(t),f=t-1;f>=0;f--){d[f]=e[f][t]/e[f][f];for(var p=f-1;p>=0;p--)e[p][t]-=e[p][f]*d[f]}return d}function u(e){return 180*e/Math.PI}function c(e){return e*Math.PI/180}function d(e,t){var n=e%t;return n*t<0?n+t:n}function f(e,t,n){return e+n*(t-e)}function p(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function h(e,t){return Math.floor(p(e,t))}function m(e,t){return Math.ceil(p(e,t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i.a})),n.d(t,"c",(function(){return T})),n.d(t,"h",(function(){return j})),n.d(t,"i",(function(){return I})),n.d(t,"b",(function(){return L})),n.d(t,"d",(function(){return D})),n.d(t,"k",(function(){return N})),n.d(t,"j",(function(){return F})),n.d(t,"p",(function(){return B})),n.d(t,"q",(function(){return z})),n.d(t,"l",(function(){return $})),n.d(t,"m",(function(){return V})),n.d(t,"e",(function(){return G})),n.d(t,"n",(function(){return K})),n.d(t,"f",(function(){return Y})),n.d(t,"o",(function(){return Q})),n.d(t,"g",(function(){return X}));var r,i=n(53),o=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||i.a[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}(),a=n(13),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=6378137*Math.PI,u=[-l,-l,l,l],c=[-180,-85,180,85],d=6378137*Math.log(Math.tan(Math.PI/2)),f=function(e){function t(t){return e.call(this,{code:t,units:i.b.METERS,extent:u,global:!0,worldExtent:c,getPointResolution:function(e,t){return e/Object(a.c)(t[1]/6378137)}})||this}return s(t,e),t}(o),p=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function h(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=l*e[a]/180;var s=6378137*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>d?s=d:s<-d&&(s=-d),o[a+1]=s}return o}function m(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/l,o[a+1]=360*Math.atan(Math.exp(e[a+1]/6378137))/Math.PI-90;return o}var g=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=[-180,-90,180,90],y=6378137*Math.PI/180,b=function(e){function t(t,n){return e.call(this,{code:t,units:i.b.DEGREES,extent:v,axisOrientation:n,global:!0,metersPerUnit:y,worldExtent:v})||this}return g(t,e),t}(o),_=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};n(28);var x={};function k(e,t,n){var r=e.getCode(),i=t.getCode();r in x||(x[r]={}),x[r][i]=n}var E=n(3),S=n(60),O=n(277),C=!0;function T(e){C=!(void 0===e||e)}function A(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function P(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function R(e){!function(e,t){w[e]=t}(e.getCode(),e),k(e,e,A)}function j(e){return"string"==typeof e?w[t=e]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function I(e,t,n,r){var o,a=(e=j(e)).getPointResolutionFunc();if(a){if(o=a(t,n),r&&r!==e.getUnits())(l=e.getMetersPerUnit())&&(o=o*l/i.a[r])}else{var s=e.getUnits();if(s==i.b.DEGREES&&!r||r==i.b.DEGREES)o=t;else{var l,u=N(e,j("EPSG:4326"));if(u===P&&s!==i.b.DEGREES)o=t*e.getMetersPerUnit();else{var c=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];c=u(c,c,2),o=(Object(O.a)(c.slice(0,2),c.slice(2,4))+Object(O.a)(c.slice(4,6),c.slice(6,8)))/2}void 0!==(l=r?i.a[r]:e.getMetersPerUnit())&&(o/=l)}}return o}function M(e){!function(e){e.forEach(R)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&k(t,e,A)}))}))}function L(e,t){return e?"string"==typeof e?j(e):e:j(t)}function D(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||N(e,t)===A)&&n}function N(e,t){var n=function(e,t){var n;return e in x&&t in x[e]&&(n=x[e][t]),n}(e.getCode(),t.getCode());return n||(n=P),n}function F(e,t){return N(j(e),j(t))}function B(e,t,n){return F(t,n)(e,void 0,e.length)}function z(e,t,n,r){var i=F(t,n);return Object(E.a)(e,i,void 0,r)}var U,q,W,H=null;function $(){return H}function V(e,t){return H?B(e,t,H):e}function G(e,t){return H?B(e,H,t):(C&&!Object(S.b)(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(C=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e)}function K(e,t){return H?z(e,t,H):e}function Y(e,t){return H?z(e,H,t):e}function Q(e,t){if(!H)return e;var n=j(t).getUnits(),r=H.getUnits();return n&&r?e*i.a[n]/i.a[r]:e}function X(e,t){if(!H)return e;var n=j(t).getUnits(),r=H.getUnits();return n&&r?e*i.a[r]/i.a[n]:e}M(p),M(_),U=p,q=h,W=m,_.forEach((function(e){U.forEach((function(t){k(e,t,q),k(t,e,W)}))}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return q})),n.d(t,"e",(function(){return H})),n.d(t,"f",(function(){return V})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return I})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return R})),n.d(t,"m",(function(){return C})),n.d(t,"n",(function(){return T})),n.d(t,"o",(function(){return P})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return X})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return w})),n.d(t,"t",(function(){return h})),n.d(t,"u",(function(){return g})),n.d(t,"v",(function(){return m})),n.d(t,"w",(function(){return y})),n.d(t,"x",(function(){return K})),n.d(t,"y",(function(){return Y})),n.d(t,"z",(function(){return Z})),n.d(t,"A",(function(){return ee})),n.d(t,"B",(function(){return te})),n.d(t,"C",(function(){return W})),n.d(t,"D",(function(){return U})),n.d(t,"E",(function(){return p})),n.d(t,"F",(function(){return _})),n.d(t,"G",(function(){return u})),n.d(t,"H",(function(){return v})),n.d(t,"I",(function(){return Q}));var r=n(108),i=n(25),o=n(6),a=n(765),s=n.n(a);n(158);function l(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return l(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return l(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return l(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)}))),d(e.name.value,r,n)}var c=["connection","include","skip","client","rest","export"];function d(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var l=s()(t);a+="("+l+")"}return n&&Object.keys(n).forEach((function(e){-1===c.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function f(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),n}return null}function p(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function v(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function y(e){return null!=e&&"object"==typeof e&&"json"===e.type}function b(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=f(e,t)})),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(k).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function w(e,t){return function(e){var t=[];return Object(r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function x(e){return e&&w(["client"],e)&&w(["export"],e)}function k(e){var t=e.name.value;return"skip"===t||"include"===t}function E(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Object(i.b)(1===r.length,12),n=r[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function O(e){Object(i.b)(e&&"Document"===e.kind,2);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(3);return e}));return Object(i.b)(t.length<=1,4),e}function C(e){return O(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function T(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function A(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function P(e){var t=C(e);return Object(i.b)(t&&"query"===t.operation,6),t}function R(e){var t;O(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(10)}function j(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function I(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,r={};return l(r,t.name,n),r}));return S.apply(void 0,Object(o.f)([{}],t))}return{}}function M(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var L={kind:"Field",name:{kind:"Name",value:"__typename"}};function D(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(C(e)||function(e){Object(i.b)("Document"===e.kind,7),Object(i.b)(e.definitions.length<=1,8);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,9),t}(e),j(A(e)))?null:e}function N(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function F(e,t){var n=Object.create(null),i=[],a=Object.create(null),s=[],l=D(Object(r.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(N(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(h(t)||m(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(N(e)(t))return null}}}));return l&&M(i,(function(e){return!n[e.name]})).length&&(l=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return D(Object(r.visit)(t,{OperationDefinition:{enter:function(t){return Object(o.a)(Object(o.a)({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,l)),l&&M(s,(function(e){return!a[e.name]})).length&&(l=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return D(Object(r.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,l)),l}function B(e){return Object(r.visit)(O(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return h(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(h(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(o.a)(Object(o.a)({},e),{selections:Object(o.f)(r,[L])})}}}}})}var z={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function U(e){return F([z],O(e))}function q(e){return"query"===R(e).operation?e:Object(r.visit)(e,{OperationDefinition:{enter:function(e){return Object(o.a)(Object(o.a)({},e),{operation:"query"})}}})}function W(e){O(e);var t=F([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(r.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return h(e)&&"__typename"===e.name.value})))return null}}})),t}var H="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),$=Object.prototype.toString;function V(e){return function e(t,n){switch($.call(t)){case"[object Array]":if(n.has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if(n.has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e,new Map)}function G(t){return(void 0!==e?"production":"development")===t}function K(){return!0===G("production")}function Y(){return!0===G("test")}function Q(e){try{return e()}catch(e){console.error&&console.error(e)}}function X(e){return e.errors&&e.errors.length}function Z(e){if((!0===G("development")||Y())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}(e);return e}var J=Object.prototype.hasOwnProperty;function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return te(e)}function te(e){var t=e[0]||{},n=e.length;if(n>1){var r=[];t=ie(t,r);for(var i=1;i<n;++i)t=re(t,e[i],r)}return t}function ne(e){return null!==e&&"object"==typeof e}function re(e,t,n){return ne(t)&&ne(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=ie(e,n)),Object.keys(t).forEach((function(r){var i=t[r];if(J.call(e,r)){var o=e[r];i!==o&&(e[r]=re(ie(o,n),i,n))}else e[r]=i})),e):t}function ie(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(o.a)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})}).call(this,n(97))},function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return r.DropdownButton}}),Object.defineProperty(t,"DropdownCheckedItem",{enumerable:!0,get:function(){return r.DropdownCheckedItem}}),Object.defineProperty(t,"DropdownItem",{enumerable:!0,get:function(){return r.DropdownItem}}),Object.defineProperty(t,"FieldLabel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"GlobalStyles",{enumerable:!0,get:function(){return h.GlobalStyles}}),Object.defineProperty(t,"GoBackButton",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ListItemTopBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return a.default}}),t.NetlifyCmsUiDefault=void 0,Object.defineProperty(t,"ObjectWidgetTopBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"StyledDropdownButton",{enumerable:!0,get:function(){return r.StyledDropdownButton}}),Object.defineProperty(t,"Toggle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ToggleBackground",{enumerable:!0,get:function(){return u.ToggleBackground}}),Object.defineProperty(t,"ToggleContainer",{enumerable:!0,get:function(){return u.ToggleContainer}}),Object.defineProperty(t,"ToggleHandle",{enumerable:!0,get:function(){return u.ToggleHandle}}),Object.defineProperty(t,"WidgetPreviewContainer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return h.borders}}),Object.defineProperty(t,"buttons",{enumerable:!0,get:function(){return h.buttons}}),Object.defineProperty(t,"colors",{enumerable:!0,get:function(){return h.colors}}),Object.defineProperty(t,"colorsRaw",{enumerable:!0,get:function(){return h.colorsRaw}}),Object.defineProperty(t,"components",{enumerable:!0,get:function(){return h.components}}),Object.defineProperty(t,"effects",{enumerable:!0,get:function(){return h.effects}}),Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return h.fonts}}),Object.defineProperty(t,"lengths",{enumerable:!0,get:function(){return h.lengths}}),Object.defineProperty(t,"reactSelectStyles",{enumerable:!0,get:function(){return h.reactSelectStyles}}),Object.defineProperty(t,"shadows",{enumerable:!0,get:function(){return h.shadows}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return h.text}}),Object.defineProperty(t,"transitions",{enumerable:!0,get:function(){return h.transitions}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return h.zIndex}});var r=v(n(492)),i=m(n(188)),o=m(n(868)),a=m(n(869)),s=m(n(870)),l=m(n(871)),u=v(n(872)),c=m(n(874)),d=m(n(875)),f=m(n(876)),p=m(n(514)),h=n(132);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}const y={Dropdown:r.default,DropdownItem:r.DropdownItem,DropdownCheckedItem:r.DropdownCheckedItem,DropdownButton:r.DropdownButton,StyledDropdownButton:r.StyledDropdownButton,ListItemTopBar:o.default,FieldLabel:s.default,Icon:i.default,IconButton:l.default,Loader:a.default,Toggle:u.default,ToggleContainer:u.ToggleContainer,ToggleBackground:u.ToggleBackground,ToggleHandle:u.ToggleHandle,AuthenticationPage:c.default,WidgetPreviewContainer:d.default,ObjectWidgetTopBar:f.default,fonts:h.fonts,colorsRaw:h.colorsRaw,colors:h.colors,lengths:h.lengths,components:h.components,buttons:h.buttons,shadows:h.shadows,text:h.text,borders:h.borders,transitions:h.transitions,effects:h.effects,zIndex:h.zIndex,reactSelectStyles:h.reactSelectStyles,GlobalStyles:h.GlobalStyles};t.NetlifyCmsUiDefault=y},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"q",(function(){return O})),n.d(t,"p",(function(){return P})),n.d(t,"o",(function(){return R})),n.d(t,"n",(function(){return j}));var r=n(64),i=n(112),o=n(58),a=n(28),s=n(42),l=n(55),u="10px sans-serif",c="#000",d="round",f=[],p=0,h="round",m=10,g="#000",v="center",y="middle",b=[0,0,0,0],_=1,w=new r.a;(new i.a).setSize=function(){console.warn("labelCache is deprecated.")};var x,k,E=null,S={},O=function(){var e,t,n=["monospace","serif"],r=n.length,i="wmytzilWMYTZIL@#/&?$%10";function o(e,o,a){for(var s=!0,l=0;l<r;++l){var u=n[l];if(t=A(e+" "+o+" 32px "+u,i),a!=u){var c=A(e+" "+o+" 32px "+a+","+u,i);s=s&&c!=t}}return!!s}function s(){for(var t=!0,n=w.getKeys(),r=0,i=n.length;r<i;++r){var s=n[r];w.get(s)<100&&(o.apply(this,s.split("\n"))?(Object(a.b)(S),E=null,x=void 0,w.set(s,100)):(w.set(s,w.get(s)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var n=Object(l.f)(t);if(n)for(var r=n.families,i=0,a=r.length;i<a;++i){var u=r[i],c=n.style+"\n"+n.weight+"\n"+u;void 0===w.get(c)&&(w.set(c,100,!0),o(n.style,n.weight,u)||(w.set(c,0,!0),void 0===e&&(e=setInterval(s,32))))}}}(),C=function(e){var t=S[e];if(null==t){if(o.g){var n=Object(l.f)(e),r=T(e,"Žg");t=(isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else k||((k=document.createElement("div")).innerHTML="M",k.style.minHeight="0",k.style.maxHeight="none",k.style.height="auto",k.style.padding="0",k.style.border="none",k.style.position="absolute",k.style.display="block",k.style.left="-99999px"),k.style.font=e,document.body.appendChild(k),t=k.offsetHeight,document.body.removeChild(k);S[e]=t}return t};function T(e,t){return E||(E=Object(s.a)(1,1)),e!=x&&(E.font=e,x=E.font),E.measureText(t)}function A(e,t){return T(e,t).width}function P(e,t,n){if(t in n)return n[t];var r=A(e,t);return n[t]=r,r}function R(e,t){for(var n=[],r=[],i=[],o=0,a=0,s=0,l=0,u=0,c=t.length;u<=c;u+=2){var d=t[u];if("\n"!==d&&u!==c){var f=t[u+1]||e.font,p=A(f,d);n.push(p),a+=p;var h=C(f);r.push(h),l=Math.max(l,h)}else o=Math.max(o,a),i.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}function j(e,t,n,r,i,o,a,s,l,u,c){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,u),e.scale(c[0],c[1]),function(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}(r,e)):c[0]<0||c[1]<0?(e.translate(l,u),e.scale(c[0],c[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,u,a*c[0],s*c[1]),e.restore()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(28);function i(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function o(e,t,n,r){return i(e,t,n,r,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Object(r.b)(e))}},function(e,t,n){"use strict";t.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(e,t,n){"use strict";n.r(t);var r=n(34),i=n(0),o=n(346),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=Object(o.a)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(9),u=n(140),c=n(139),d=s,f=function(e){return"theme"!==e&&"innerRef"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=function(){return null};t.default=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var s=t.__emotion_real===t,d=s&&t.__emotion_base||t;"function"!=typeof o&&s&&(o=t.__emotion_forwardProp);var f=o||p(d),h=!f("as");return function(){var v=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&y.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)y.push.apply(y,v);else{0,y.push(v[0][0]);for(var b=v.length,_=1;_<b;_++)y.push(v[_],v[0][_])}var w=Object(l.withEmotionCache)((function(e,t,n){return Object(i.createElement)(l.ThemeContext.Consumer,null,(function(r){var s=h&&e.as||d,l="",m=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=r}"string"==typeof e.className?l=Object(u.a)(t.registered,m,e.className):null!=e.className&&(l=e.className+" ");var _=Object(c.a)(y.concat(m),t.registered,v);Object(u.b)(t,_,"string"==typeof s);l+=t.key+"-"+_.name,void 0!==a&&(l+=" "+a);var w=h&&void 0===o?p(s):f,x={};for(var k in e)h&&"as"===k||w(k)&&(x[k]=e[k]);x.className=l,x.ref=n||e.innerRef;var E=Object(i.createElement)(s,x),S=Object(i.createElement)(g,null);return Object(i.createElement)(i.Fragment,null,S,E)}))}));return w.displayName=void 0!==r?r:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=y,w.__emotion_forwardProp=o,Object.defineProperty(w,"toString",{value:function(){return"."+a}}),w.withComponent=function(t,r){return e(t,void 0!==r?m({},n||{},{},r):n).apply(void 0,y)},w}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return j})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return W})),n.d(t,"j",(function(){return _})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return ce})),n.d(t,"m",(function(){return Re})),n.d(t,"n",(function(){return J})),n.d(t,"o",(function(){return ge})),n.d(t,"p",(function(){return ue})),n.d(t,"q",(function(){return ve})),n.d(t,"r",(function(){return ye})),n.d(t,"s",(function(){return te})),n.d(t,"t",(function(){return de})),n.d(t,"u",(function(){return be})),n.d(t,"v",(function(){return pe})),n.d(t,"w",(function(){return G})),n.d(t,"x",(function(){return U})),n.d(t,"y",(function(){return H})),n.d(t,"z",(function(){return X})),n.d(t,"A",(function(){return we})),n.d(t,"B",(function(){return xe})),n.d(t,"C",(function(){return F})),n.d(t,"D",(function(){return ke})),n.d(t,"E",(function(){return V})),n.d(t,"F",(function(){return Te})),n.d(t,"G",(function(){return Ae})),n.d(t,"H",(function(){return Pe})),n.d(t,"I",(function(){return ee})),n.d(t,"J",(function(){return I}));var r=n(11),i=n(26);var o=n(130),a=n(350),s=n(344),l=n.n(s),u=n(80),c=n(81),d=n(91),f=n(34),p=n(0),h=n(54);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}var w=function(){};function x(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function k(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(x(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var E=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Object(a.a)(e)&&null!==e?[e]:[]},S=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,v({},Object(o.a)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function O(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function C(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function T(e){return C(e)?window.pageYOffset:e.scrollTop}function A(e,t){C(e)?window.scrollTo(0,t):e.scrollTop=t}function P(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,i=T(e),o=t-i,a=10,s=0;function l(){var t=P(s+=a,i,o,n);A(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function j(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?A(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&A(e,Math.max(t.offsetTop-i,0))}function I(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function M(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var L=!1,D={get passive(){return L=!0}},N="undefined"!=typeof window?window:{};N.addEventListener&&N.removeEventListener&&(N.addEventListener("p",w,D),N.removeEventListener("p",w,!1));var F=L;function B(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=T(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),_=m-b,w=g-h,x=_+v,k=c-v-h,E=f-g+v+y,S=v+h-b;switch(i){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!a)return o&&R(l,E,160),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&w>=r)return o&&R(l,E,160),{placement:"bottom",maxHeight:a?w-y:k-y};if("auto"===i||a){var O=t,C=a?_:x;return C>=r&&(O=Math.min(C-y-s.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return o&&A(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return o&&R(l,S,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var P=t;return(!a&&x>=r||a&&_>=r)&&(P=a?_-b:x-b),o&&R(l,S,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}var z=function(e){return"auto"===e?"bottom":e},U=function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return t={label:"menu"},Object(f.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(f.a)(t,"backgroundColor",a.neutral0),Object(f.a)(t,"borderRadius",i),Object(f.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(f.a)(t,"marginBottom",o.menuGutter),Object(f.a)(t,"marginTop",o.menuGutter),Object(f.a)(t,"position","absolute"),Object(f.a)(t,"width","100%"),Object(f.a)(t,"zIndex",1),t},q=Object(p.createContext)({getPortalPlacement:null}),W=function(e){Object(d.a)(n,e);var t=_(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=B({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),d=e.context.getPortalPlacement;d&&d(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||z(t);return v(v({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Object(c.a)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(p.Component);W.contextType=q;var H=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},$=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},V=$,G=$,K=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};K.defaultProps={children:"No options"};var Y=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};Y.defaultProps={children:"Loading..."};var Q,X=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Z=function(e){Object(d.a)(n,e);var t=_(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==z(e.props.menuPlacement)&&e.setState({placement:n})},e}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,o=e.className,a=e.controlElement,s=e.cx,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,d=e.getStyles,f="fixed"===c;if(!t&&!f||!a)return null;var p=this.state.placement||z(u),m=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),g=f?0:window.pageYOffset,v={offset:m[p]+g,position:c,rect:m},y=Object(i.c)("div",Object(r.a)({css:d("menuPortal",v),className:s({"menu-portal":!0},o)},l),n);return Object(i.c)(q.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(h.createPortal)(y,t):y)}}]),n}(p.Component),J=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},ee=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},te=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};var ne,re,ie={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oe=function(e){var t=e.size,n=Object(o.a)(e,["size"]);return Object(i.c)("svg",Object(r.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ie},n))},ae=function(e){return Object(i.c)(oe,Object(r.a)({size:20},e),Object(i.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},se=function(e){return Object(i.c)(oe,Object(r.a)({size:20},e),Object(i.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},le=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},ue=le,ce=le,de=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},fe=Object(i.d)(Q||(ne=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],re||(re=ne.slice(0)),Q=Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(re)}})))),pe=function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},he=function(e){var t=e.delay,n=e.offset;return Object(i.c)("span",{css:Object(i.b)({animation:"".concat(fe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},me=function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps,s=e.isRtl;return Object(i.c)("div",Object(r.a)({css:o("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),Object(i.c)(he,{delay:0,offset:s}),Object(i.c)(he,{delay:160,offset:!0}),Object(i.c)(he,{delay:320,offset:!s}))};me.defaultProps={size:4};var ge=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},ve=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},ye=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},be=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},_e=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},we=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},xe=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},ke=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},Ee=function(e){var t=e.children,n=e.innerProps;return Object(i.c)("div",n,t)},Se=Ee,Oe=Ee;var Ce=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,s=e.getStyles,l=e.innerProps,u=e.isDisabled,c=e.removeProps,d=e.selectProps,f=r.Container,p=r.Label,h=r.Remove;return Object(i.c)(i.a,null,(function(r){var m=r.css,g=r.cx;return Object(i.c)(f,{data:a,innerProps:v({className:g(m(s("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:d},Object(i.c)(p,{data:a,innerProps:{className:g(m(s("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:d},t),Object(i.c)(h,{data:a,innerProps:v({className:g(m(s("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:d}))}))};Ce.defaultProps={cropWithEllipsis:!0};var Te=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},Ae=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Pe=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},Re={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},n)},s),t||Object(i.c)(ae,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.className,s=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,d=e.menuIsOpen;return Object(i.c)("div",Object(r.a)({ref:u,css:o("control",e),className:n({control:!0,"control--is-disabled":s,"control--is-focused":l,"control--menu-is-open":d},a)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("dropdownIndicator",e),className:o({indicator:!0,"dropdown-indicator":!0},n)},s),t||Object(i.c)(se,null))},DownChevron:se,CrossIcon:ae,Group:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,f=e.selectProps;return Object(i.c)("div",Object(r.a)({css:a("group",e),className:o({group:!0},n)},u),Object(i.c)(s,Object(r.a)({},l,{selectProps:f,theme:d,getStyles:a,cx:o}),c),Object(i.c)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,a=e.className,s=S(e);s.data;var l=Object(o.a)(s,["data"]);return Object(i.c)("div",Object(r.a)({css:t("groupHeading",e),className:n({"group-heading":!0},a)},l))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.innerProps,s=e.getStyles;return Object(i.c)("div",Object(r.a)({css:s("indicatorsContainer",e),className:o({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return Object(i.c)("span",Object(r.a)({},a,{css:o("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,s=S(e),u=s.innerRef,c=s.isDisabled,d=s.isHidden,f=Object(o.a)(s,["innerRef","isDisabled","isHidden"]);return Object(i.c)("div",{css:a("input",e)},Object(i.c)(l.a,Object(r.a)({className:n({input:!0},t),inputRef:u,inputStyle:_e(d),disabled:c},f)))},LoadingIndicator:me,Menu:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerRef,l=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("menu",e),className:o({menu:!0},n),ref:s},l),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps,l=e.innerRef,u=e.isMulti;return Object(i.c)("div",Object(r.a)({css:a("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":u},n),ref:l},s),t)},MenuPortal:Z,LoadingMessage:Y,NoOptionsMessage:K,MultiValue:Ce,MultiValueContainer:Se,MultiValueLabel:Oe,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Object(i.c)("div",n,t||Object(i.c)(ae,{size:14}))},Option:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,d=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("option",e),className:o({option:!0,"option--is-disabled":s,"option--is-focused":l,"option--is-selected":u},n),ref:c},d),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("placeholder",e),className:o({placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.isRtl;return Object(i.c)("div",Object(r.a)({css:a("container",e),className:o({"--is-disabled":l,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,s=e.isDisabled,l=e.innerProps;return Object(i.c)("div",Object(r.a)({css:a("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":s},n)},l),t)},ValueContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.innerProps,s=e.isMulti,l=e.getStyles,u=e.hasValue;return Object(i.c)("div",Object(r.a)({css:l("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":s,"value-container--has-value":u},n)},a),t)}},je=function(e){return v(v({},Re),e.components)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(353);function i(e,t){if(!e)throw new r.a(t)}},function(e,t,n){"use strict";t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(6),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",o(r,t.prototype),r}return Object(r.c)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function l(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=l("warn"),e.error=l("error")}(s||(s={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}}).call(this,n(97))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));var r=n(0),i=(n(484),n(78)),o=(n(685),n(203),n(105),n(159)),a=n(231),s=function(e,t){var n=arguments;if(null==t||!i.e.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i.b,a[1]=Object(i.d)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return r.createElement.apply(null,a)};r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect;function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var u=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},c=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function d(e,t,n){var r=[],i=Object(o.a)(e,r,n);return r.length<2?n:i+t(r)}var f=function(e){var t=e.cache,n=e.serializedArr;Object(i.f)((function(){for(var e=0;e<n.length;e++)Object(o.b)(t,n[e],!1)}));return null},p=Object(i.g)((function(e,t){var n=[],s=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var s=Object(a.a)(r,t.registered);return n.push(s),Object(o.c)(t,s,!1),t.key+"-"+s.name},l={css:s,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(t.registered,s,c(n))},theme:Object(r.useContext)(i.c)},u=e.children(l);return!0,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(f,{cache:t,serializedArr:n}),u)}))},function(e,t,n){"use strict";t.a=function(e,t){0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function i(e){for(var t in e)delete e[t]}var o="function"==typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function a(e){var t;for(t in e)return!1;return!t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return p}));var r,i=n(58),o=n(23);new Array(6);function a(){return[1,0,0,1,0,0]}function s(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e}function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function u(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function c(e,t,n){return s(e,t,0,0,n,0,0)}function d(e,t,n,r,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return e[0]=r*u,e[1]=i*l,e[2]=-r*l,e[3]=i*u,e[4]=a*r*u-s*r*l+t,e[5]=a*i*l+s*i*u+n,e}function f(e,t){var n,r=(n=t)[0]*n[3]-n[1]*n[2];Object(o.a)(0!==r,32);var i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],c=t[5];return e[0]=l/r,e[1]=-a/r,e[2]=-s/r,e[3]=i/r,e[4]=(s*c-l*u)/r,e[5]=-(i*c-a*u)/r,e}function p(e){var t="matrix("+e.join(", ")+")";if(i.g)return t;var n=r||(r=document.createElement("div"));return n.style.transform=t,n.style.transform}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Annotation",(function(){return te})),n.d(t,"Block",(function(){return de})),n.d(t,"Change",(function(){return xe})),n.d(t,"Data",(function(){return W})),n.d(t,"Decoration",(function(){return G})),n.d(t,"Document",(function(){return re})),n.d(t,"Editor",(function(){return kt})),n.d(t,"Inline",(function(){return oe})),n.d(t,"KeyUtils",(function(){return _})),n.d(t,"Leaf",(function(){return Tt})),n.d(t,"Mark",(function(){return $})),n.d(t,"Node",(function(){return ue})),n.d(t,"Operation",(function(){return _e})),n.d(t,"PathUtils",(function(){return z})),n.d(t,"Point",(function(){return q})),n.d(t,"Range",(function(){return J})),n.d(t,"resetMemoization",(function(){return Bt})),n.d(t,"Selection",(function(){return Y})),n.d(t,"Text",(function(){return le})),n.d(t,"TextUtils",(function(){return Me})),n.d(t,"useMemoization",(function(){return zt})),n.d(t,"Value",(function(){return pe}));var r=n(4),i=n(50),o=n.n(i),a=n(27),s=n(39),l=n(372),u=n.n(l),c=n(488),d=n(180),f=n.n(d),p=n(177),h=n.n(p),m=n(767),g=n.n(m),v=void 0,y=void 0;function b(){v=0,y=function(){return""+v++}}b();var _={create:function(e){if(null==e)return y();if("string"==typeof e)return e;throw new Error("Keys must be strings, but you passed: "+e)},setGenerator:function(e){y=e},resetGenerator:b},w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},C=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},T=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},A=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},P=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};function R(e,t){for(var n=B(e,t),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.size===t.size?0:null}function j(e){if(null==e)return null;if(r.List.isList(e))return e;if(Array.isArray(e))return Object(r.List)(e);throw new Error("Paths can only be created from arrays or lists, but you passed: "+e)}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B(e,t),r=e.slice(0,n),i=t.slice(0,n);return[r,i]}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1;return L(e,0-t,n)}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1,r=e.get(n),i=r+t,o=e.set(n,i);return o}function D(e,t){var n=I(e,t),r=A(n,2),i=r[0],o=r[1];return e.size<t.size&&0===R(i,o)}function N(e,t){return e.equals(t)}function F(e,t){var n=e.size-1,r=I(e,t,n),i=A(r,2),o=i[0],a=i[1],s=e.get(n),l=t.get(n);return N(o,a)&&s<l}function B(e,t){return Math.min(e.size,t.size)}var z={compare:R,create:j,crop:I,decrement:M,getAncestors:function(e){return Object(r.List)().withMutations((function(t){for(var n=0;n<e.size;n++)t.push(e.slice(0,n))}))},increment:L,isAbove:D,isAfter:function(e,t){var n=I(e,t),r=A(n,2);return 1===R(r[0],r[1])},isBefore:function(e,t){var n=I(e,t),r=A(n,2);return-1===R(r[0],r[1])},isEqual:N,isOlder:function(e,t){var n=e.size-1,r=I(e,t,n),i=A(r,2),o=i[0],a=i[1],s=e.get(n),l=t.get(n);return N(o,a)&&s>l},isPath:function(e){return(r.List.isList(e)||Array.isArray(e))&&e.every((function(e){return"number"==typeof e}))},isSibling:function(e,t){if(e.size!==t.size)return!1;var n=e.butLast(),r=t.butLast();return n.equals(r)},isYounger:F,lift:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(0,-1*t);return n},drop:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.slice(t);return n},max:function(e,t){return Math.max(e.size,t.size)},min:B,relate:function(e,t){for(var n=[],r=0;r<e.size&&r<t.size;r++){var i=e.get(r);if(i!==t.get(r))break;n.push(i)}return j(n)},transform:function(e,t){var n=t.type,i=t.position,o=t.path;if("add_mark"===n||"insert_text"===n||"remove_mark"===n||"remove_text"===n||"set_mark"===n||"set_node"===n||"set_selection"===n||"set_value"===n||"add_annotation"===n||"remove_annotation"===n||"set_annotation"===n||0===e.size)return Object(r.List)([e]);var a=o.size-1,s=N(o,e),l=F(o,e),u=D(o,e);if("insert_node"===n&&(s||l||u)&&(e=L(e,1,a)),"remove_node"===n&&(l?e=M(e,1,a):(s||u)&&(e=[])),"merge_node"===n&&(s||l?e=M(e,1,a):u&&(e=L(e=M(e,1,a),i,a+1))),"split_node"===n&&(s?e=[e,L(e)]:l?e=L(e,1,a):u&&e.get(a+1)>=i&&(e=M(e=L(e,1,a),i,a+1))),"move_node"===n){var c=t.newPath;if(N(o,c))return Object(r.List)([e]);u||s?e=F(o,c)&&o.size<c.size?M(c,1,B(c,o)-1).concat(e.slice(o.size)):c.concat(e.slice(o.size)):(l&&(e=M(e,1,a)),(F(c,e)||N(c,e)||D(c,e))&&(e=L(e,1,c.size-1)))}var d=Array.isArray(e)?e:[e];return Object(r.List)(d)}},U={key:void 0,offset:void 0,path:void 0},q=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"isAfterPoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset>e.offset||1===z.compare(this.path,e.path))}},{key:"isAfterRange",value:function(e){return!this.isUnset&&this.isAfterPoint(e.end)}},{key:"isAtEndOfRange",value:function(e){return!this.isUnset&&this.equals(e.end)}},{key:"isAtStartOfRange",value:function(e){return!this.isUnset&&this.equals(e.start)}},{key:"isBeforePoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset<e.offset||-1===z.compare(this.path,e.path))}},{key:"isBeforeRange",value:function(e){return!this.isUnset&&this.isBeforePoint(e.start)}},{key:"isInRange",value:function(e){return!this.isUnset&&(this.equals(e.start)||this.equals(e.end)||this.isAfterPoint(e.start)&&this.isBeforePoint(e.end))}},{key:"isAtEndOfNode",value:function(e){if(this.isUnset)return!1;var t=e.getLastText();return this.key===t.key&&this.offset===t.text.length}},{key:"isAtStartOfNode",value:function(e){if(this.isUnset)return!1;if(0!==this.offset)return!1;var t=e.getFirstText();return this.key===t.key}},{key:"isInNode",value:function(e){return!this.isUnset&&("text"===e.object&&e.key===this.key||!!e.hasNode(this.key))}},{key:"moveBackward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveForward(-e);var t=this.setOffset(this.offset-e);return t}},{key:"moveForward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===e)return this;if(e<0)return this.moveBackward(-e);var t=this.setOffset(this.offset+e);return t}},{key:"moveTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.key;"number"==typeof e?(t=e,e=this.path):"string"==typeof e?e=(n=e)===this.key?this.path:null:n=e.equals(this.path)?this.key:null;var r=this.merge({key:n,path:e,offset:t});return r}},{key:"moveToStartOfNode",value:function(e){var t=e.getFirstText();return this.moveTo(t.key,0)}},{key:"moveToEndOfNode",value:function(e){var t=e.getLastText();return this.moveTo(t.key,t.text.length)}},{key:"normalize",value:function(e){if(null==this.key&&null==this.path)return this.setOffset(null);var n=this.key,r=this.offset,i=this.path,o=i&&e.getNode(i);if(!o&&(o=e.getNode(n)))return this.merge({path:e.getPath(n)});if(!o){Object(a.a)(!1,"A point's `path` or `key` invalid and was reset!");var s=e.getFirstText();return s?this.merge({key:s.key,offset:0,path:e.getPath(s.key)}):t.create()}if("text"!==o.object){Object(a.a)(!1,"A point should not reference a non-text node!");var l=o.getTextAtOffset(r),u=o.getOffset(l.key);return this.merge({offset:r-u,key:l.key,path:e.getPath(l.key)})}o&&i&&n&&n!==o.key&&Object(a.a)(!1,"A point's `key` did not match its `path`!");var c=this.merge({key:o.key,path:null==i?e.getPath(o.key):i,offset:null==r?0:Math.min(r,o.text.length)});if(c.offset===o.text.length){var d=e.getClosestBlock(c.path).getNextText();d&&(c=c.merge({key:d.key,path:e.getPath(d.key),offset:0}))}return c}},{key:"setKey",value:function(e){return null!=e&&(e=_.create(e)),this.set("key",e)}},{key:"setOffset",value:function(e){return this.set("offset",e)}},{key:"setPath",value:function(e){return null!=e&&(e=z.create(e)),this.set("path",e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return e.preserveKeys||delete t.key,t}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return null!=this.key&&null!=this.offset&&null!=this.path}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return{key:e.key,offset:e.offset,path:e.path};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"offset"in e&&(n.offset=e.offset),"path"in e&&(n.path=z.create(e.path)),"path"in e&&!("key"in e)&&(n.key=null),"key"in e&&!("path"in e)&&(n.path=null),n}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=void 0===n?null:n,i=e.offset,o=void 0===i?null:i,a=e.path,s=void 0===a?null:a;return new t({key:r,offset:o,path:z.create(s)})}}]),t}(Object(r.Record)(U)),W=function(){function e(){x(this,e)}return k(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.Map.isMap(t))return t;if(o()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new r.Map(e)}}]),e}();W.fromJS=W.fromJSON;var H={data:void 0,type:void 0},$=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(r.Set.isSet(e)||Array.isArray(e))return new r.Set(e.map(t.create));if(null==e)return Object(r.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=W.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,i=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new r.Map(i)})}},{key:"isMarkSet",value:function(e){return r.Set.isSet(e)&&e.every((function(e){return t.isMark(e)}))}}]),t}(Object(r.Record)(H)),V={type:void 0,data:void 0,anchor:void 0,focus:void 0},G=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return e;if(J.isRange(e))return t.fromJSON(J.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return{type:e.type,data:e.data,anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus),mark:$.create(e.mark)};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=W.create(e.data)),"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus,i=e.type,o=e.data;if(e.mark&&!i&&(Object(a.a)(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),i=e.mark.type,o=e.mark.data),!i)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({type:i,data:W.create(o||{}),anchor:q.fromJSON(n||{}),focus:q.fromJSON(r||{})})}}]),t}(Object(r.Record)(V)),K={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},Y=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setIsFocused",value:function(e){return this.set("isFocused",e)}},{key:"setMarks",value:function(e){return this.set("marks",e)}},{key:"setProperties",value:function(e){var n=e=t.createProperties(e),r=n.anchor,i=n.focus,o=C(n,["anchor","focus"]);return r&&(o.anchor=q.create(r)),i&&(o.focus=q.create(i)),this.merge(o)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e),isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map((function(e){return e.toJSON()}))};return t}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return e;if(J.isRange(e))return t.fromJSON(J.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus),isFocused:e.isFocused,marks:e.marks};if(J.isRange(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:$.createSet(e.marks)),n}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,i=e.focus,o=e.isFocused,a=void 0!==o&&o,s=e.marks,l=void 0===s?null:s;return new t({anchor:q.fromJSON(n||{}),focus:q.fromJSON(i||{}),isFocused:a,marks:null==l?null:new r.Set(l.map($.fromJSON))})}}]),t}(Object(r.Record)(K)),Q={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function X(e,t){return!(!t||!t[Q[e]])}var Z={anchor:void 0,focus:void 0},J=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return"range"===e.object?e:t.fromJSON(t.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus;return new t({anchor:q.fromJSON(n||{}),focus:q.fromJSON(r||{})})}},{key:"isRange",value:function(e){return X("range",e)||G.isDecoration(e)||Y.isSelection(e)}}]),t}(Object(r.Record)(Z)),ee={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},te=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"setProperties",value:function(e){return e=t.createProperties(e),this.merge(e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return e;if(J.isRange(e))return t.fromJSON(J.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+e)}},{key:"createMap",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.Map.isMap(e))return e;if(o()(e)){var n={};for(var i in e){var a=e[i],s=t.create(a);n[i]=s}return Object(r.Map)(n)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isAnnotation(e))return{key:e.key,type:e.type,data:e.data,anchor:q.createProperties(e.anchor),focus:q.createProperties(e.focus)};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"type"in e&&(n.type=e.type),"data"in e&&(n.data=W.create(e.data)),"anchor"in e&&(n.anchor=q.create(e.anchor)),"focus"in e&&(n.focus=q.create(e.focus)),n}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=e.type,i=e.data,o=e.anchor,a=e.focus;if(!n)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(e));if(!r)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(e));return new t({key:n,type:r,data:W.create(i||{}),anchor:q.fromJSON(o||{}),focus:q.fromJSON(a||{})})}}]),t}(Object(r.Record)(ee)),ne={data:void 0,key:void 0,nodes:void 0},re=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((r.List.isList(e)||Array.isArray(e))&&(e={nodes:e}),o()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s;return new t({key:a,data:new r.Map(i),nodes:ue.createList(l)})}}]),t}(Object(r.Record)(ne)),ie={data:void 0,key:void 0,nodes:void 0,type:void 0},oe=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s,u=e.type;if("string"!=typeof u)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:a,type:u,data:new r.Map(i),nodes:ue.createList(l)})}},{key:"isInlineList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isInline(e)}))}}]),t}(Object(r.Record)(ie)),ae={key:void 0,marks:void 0,text:void 0},se=Object(r.Record)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),le=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"addMark",value:function(e){e=$.create(e);var t=this.marks.add(e);return this.set("marks",t)}},{key:"addMarks",value:function(e){return e=$.createSet(e),this.set("marks",this.marks.union(e))}},{key:"getLeaves",value:function(e,t){var n=[{text:this.text,marks:this.marks,annotations:[],decorations:[]}],i=function(e,t){return[{text:e.text.slice(0,t),marks:e.marks,annotations:[].concat(P(e.annotations)),decorations:[].concat(P(e.decorations))},{text:e.text.slice(t),marks:e.marks,annotations:[].concat(P(e.annotations)),decorations:[].concat(P(e.decorations))}]},o=function(r){var o="annotations"===r?e.values():t,a=!0,s=!1,l=void 0;try{for(var u,c=o[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=d.start,p=d.end,h=[],m=0,g=!0,v=!1,y=void 0;try{for(var b,_=n[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){var w=b.value,x=w.text.length,k=m;if(m+=x,f.offset<=k&&p.offset>=k+x)w[r].push(d),h.push(w);else if(f.offset>k+x||p.offset<k||p.offset===k&&0!==k)h.push(w);else{var E=w,S=void 0,O=void 0;if(p.offset<k+x){var C=i(E,p.offset-k),T=A(C,2);E=T[0],O=T[1]}if(f.offset>k){var P=i(E,f.offset-k),R=A(P,2);S=R[0],E=R[1]}E[r].push(d),S&&h.push(S),h.push(E),O&&h.push(O)}}}catch(e){v=!0,y=e}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}n=h}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}};return o("annotations"),o("decorations"),n=n.map((function(e){return new se(S({},e,{annotations:Object(r.List)(e.annotations),decorations:Object(r.List)(e.decorations)}))})),Object(r.List)(n)}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){e=$.create(e);var t=this.marks.remove(e);return this.set("marks",t)}},{key:"removeText",value:function(e,t){var n=this.text,r=n.slice(0,e)+n.slice(e+t);return this.set("text",r)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))};return e.preserveKeys&&(t.key=this.key),t}},{key:"setMark",value:function(e,t){var n=this.marks,r=$.create(e),i=r.merge(t),o=n.remove(r).add(i);return this.set("marks",o)}},{key:"splitText",value:function(e){var t=this.text;return[this.set("text",t.slice(0,e)),this.set("text",t.slice(e)).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.text+e.text;return this.set("text",t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;Object(s.a)(null==e.leaves,"As of slate@0.46, the `leaves` property of text nodes has been removed! Each individual leaf should be created as a text node instead.");var n=e.text,r=void 0===n?"":n,i=e.marks,o=void 0===i?[]:i,a=e.key;return new t({key:void 0===a?_.create():a,text:r,marks:$.createSet(o)})}},{key:"isTextList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isText(e)}))}}]),t}(Object(r.Record)(ae)),ue=function(){function e(){x(this,e)}return k(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(o()(t)){var n=t.object;switch(!n&&t.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return de.create(t);case"document":return re.create(t);case"inline":return oe.create(t);case"text":return le.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(t)||Array.isArray(t)){var n=[];t.forEach((function(t){if(t&&"text"===t.object&&t.leaves&&Array.isArray(t.leaves)){Object(a.a)(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var r=le.createList(t.leaves).toArray();n=n.concat(r)}else{var i=e.create(t);n.push(i)}}));var i=Object(r.List)(n);return i}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(de.isBlock(e)||oe.isInline(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=W.create(e.data)),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return de.fromJSON(e);case"document":return re.fromJSON(e);case"inline":return oe.fromJSON(e);case"text":return le.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return de.isBlock(e)||re.isDocument(e)||oe.isInline(e)||le.isText(e)}},{key:"isNodeList",value:function(t){return r.List.isList(t)&&t.every((function(t){return e.isNode(t)}))}}]),e}(),ce={data:void 0,key:void 0,nodes:void 0,type:void 0},de=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map((function(t){return t.toJSON(e)}))};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,i=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,l=void 0===s?[]:s,u=e.type;if("string"!=typeof u)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:a,type:u,data:Object(r.Map)(i),nodes:ue.createList(l)})}},{key:"isBlockList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isBlock(e)}))}}]),t}(Object(r.Record)(ce)),fe={annotations:void 0,data:void 0,document:void 0,selection:void 0},pe=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"addAnnotation",value:function(e){e=te.create(e);var t=this,n=t,r=n.annotations,i=n.document,o=e.key;return e=e.updatePoints((function(e){return e.normalize(i)})),r=r.set(o,e),t=t.set("annotations",r)}},{key:"addMark",value:function(e,t){t=$.create(t);var n=this,r=n.document;return r=r.addMark(e,t),n=n.set("document",r)}},{key:"insertNode",value:function(e,t){var n=this,r=n.document;return r=r.insertNode(e,t),n=(n=n.set("document",r)).mapRanges((function(e){return e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"insertText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);return i=i.insertText(e,t,n),o=i.assertNode(e),r=(r=r.set("document",i)).mapPoints((function(e){return e.key===o.key&&e.offset>=t?e.setOffset(e.offset+n.length):e}))}},{key:"mergeNode",value:function(e){var t=this,n=t.document,r=n.mergeNode(e);e=n.resolvePath(e);var i=z.decrement(e),o=n.getNode(i),a=n.getNode(e);return t=(t=t.set("document",r)).mapRanges((function(e){if("text"===a.object){var t=o.text.length;e.anchor.key===a.key&&(e=e.moveAnchorTo(o.key,t+e.anchor.offset)),e.focus.key===a.key&&(e=e.moveFocusTo(o.key,t+e.focus.offset))}return e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this,i=r,o=i.document;return z.isEqual(e,t)?r:(o=o.moveNode(e,t,n),r=(r=r.set("document",o)).mapPoints((function(e){return e.setPath(null)})))}},{key:"removeAnnotation",value:function(e){e=te.create(e);var t=this,n=t.annotations,r=e.key;return n=n.delete(r),t=t.set("annotations",n)}},{key:"removeMark",value:function(e,t){t=$.create(t);var n=this,r=n.document;return r=r.removeMark(e,t),n=n.set("document",r)}},{key:"removeNode",value:function(e){var t=this,n=t.document,r=n.assertNode(e),i="text"===r.object?r:r.getFirstText()||r,o="text"===r.object?r:r.getLastText()||r,a=n.getPreviousText(i.key),s=n.getNextText(o.key);return n=n.removeNode(e),t=(t=t.set("document",n)).mapRanges((function(e){var t=e,n=t.anchor,i=t.focus;return r.hasNode(n.key)&&(e=a?e.moveAnchorTo(a.key,a.text.length):s?e.moveAnchorTo(s.key,0):e.unset()),r.hasNode(i.key)&&(e=a?e.moveFocusTo(a.key,a.text.length):s?e.moveFocusTo(s.key,0):e.unset()),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"removeText",value:function(e,t,n){var r=this,i=r.document,o=i.assertNode(e);i=i.removeText(e,t,n),r=r.set("document",i);var a=n.length,s=t,l=t+a;return r=r.mapPoints((function(e){return e.key!==o.key?e:e.offset>=l?e.setOffset(e.offset-a):e.offset>s?e.setOffset(s):e}))}},{key:"setAnnotation",value:function(e,t){t=te.createProperties(t);var n=te.create(e),r=n.merge(t),i=this,o=i.annotations,a=n.key;return o=o.set(a,r),i=i.set("annotations",o)}},{key:"setNode",value:function(e,t){var n=this,r=n.document;return r=r.setNode(e,t),n=n.set("document",r)}},{key:"setMark",value:function(e,t,n){var r=this,i=r.document;return i=i.setMark(e,t,n),r=r.set("document",i)}},{key:"setProperties",value:function(e){var t=this,n=t.document,r=e.data,i=e.annotations,o={};return r&&(o.data=r),i&&(o.annotations=i.map((function(e){return e.isSet?e:n.resolveAnnotation(e)}))),t=t.merge(o)}},{key:"setSelection",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=i.setProperties(e);return i=r.resolveSelection(o),t=t.set("selection",i)}},{key:"splitNode",value:function(e,t,n){var r=this,i=r.document,o=i.splitNode(e,t,n),a=i.assertNode(e);return r=(r=r.set("document",o)).mapRanges((function(e){var n=o.getNextText(a.key),r=e,i=r.anchor,s=r.focus;return a.key===i.key&&t<=i.offset&&(e=e.moveAnchorTo(n.key,i.offset-t)),a.key===s.key&&t<=s.offset&&(e=e.moveFocusTo(n.key,s.offset-t)),e=e.updatePoints((function(e){return e.setPath(null)}))}))}},{key:"mapRanges",value:function(e){var t=this,n=t,r=n.document,i=n.selection,o=n.annotations,a=i.isSet?e(i):i;a||(a=i.unset()),a!==i&&(a=r.createSelection(a)),t=t.set("selection",a);var s=o.map((function(t){var n=t.isSet?e(t):t;return n&&n!==t&&(n=r.createAnnotation(n)),n}));return s=s.filter((function(e){return!!e})),t=t.set("annotations",s)}},{key:"mapPoints",value:function(e){return this.mapRanges((function(t){return t.updatePoints(e)}))}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};return e.preserveData&&(t.data=this.data.toJSON(e)),e.preserveAnnotations&&(t.annotations=this.annotations.map((function(t){return t.toJSON(e)})).toObject()),e.preserveSelection&&(t.selection=this.selection.toJSON(e)),t}},{key:"change",value:function(){Object(s.a)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new r.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new r.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new r.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?re.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new r.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new r.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){Object(s.a)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(o()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{annotations:e.annotations,data:e.data};if(o()(e)){var n={};return"annotations"in e&&(n.annotations=te.createMap(e.annotations)),"data"in e&&(n.data=W.create(e.data)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,i=e.annotations,o=void 0===i?{}:i,a=e.document,s=void 0===a?{}:a,l=e.selection,u=void 0===l?{}:l;if(r=W.fromJSON(r),u=(s=re.fromJSON(s)).createSelection(u),o=te.createMap(o),u.isUnset){var c=s.getFirstText();c&&(u=u.moveToStartOfNode(c)),u=s.createSelection(u)}return new t({annotations:o,data:r,document:s,selection:u})}}]),t}(Object(r.Record)(fe)),he=u()("slate:operation:apply");function me(e,t){var n=(t=_e.create(t)).type;switch(he(n,t),n){case"add_annotation":var r=t.annotation;return e.addAnnotation(r);case"add_mark":var i=t,o=i.path,a=i.mark;return e.addMark(o,a);case"insert_node":var s=t,l=s.path,u=s.node;return e.insertNode(l,u);case"insert_text":var c=t,d=c.path,f=c.offset,p=c.text,h=c.marks;return e.insertText(d,f,p,h);case"merge_node":var m=t.path;return e.mergeNode(m);case"move_node":var g=t,v=g.path,y=g.newPath;return e.moveNode(v,y);case"remove_annotation":var b=t.annotation;return e.removeAnnotation(b);case"remove_mark":var _=t,w=_.path,x=_.mark;return e.removeMark(w,x);case"remove_node":var k=t.path;return e.removeNode(k);case"remove_text":var E=t,S=E.path,O=E.offset,C=E.text;return e.removeText(S,O,C);case"set_annotation":var T=t,A=T.properties,P=T.newProperties;return e.setAnnotation(A,P);case"set_mark":var R=t,j=R.path,I=R.properties,M=R.newProperties;return e.setMark(j,I,M);case"set_node":var L=t,D=L.path,N=L.newProperties;return e.setNode(D,N);case"set_selection":var F=t.newProperties;return e.setSelection(F);case"set_value":var B=t.newProperties;return e.setProperties(B);case"split_node":var z=t,U=z.path,q=z.position,W=z.properties;return e.splitNode(U,q,W);default:throw new Error('Unknown operation type: "'+n+'".')}}var ge=u()("slate:operation:invert");function ve(e){var t=(e=_e.create(e)).type;switch(ge(t,e),t){case"move_node":var n=e,r=n.newPath,i=n.path;if(z.isEqual(r,i))return e;var o=z.transform(i,e).first(),a=z.transform(z.increment(i),e).first();return e.set("path",o).set("newPath",a);case"merge_node":var s=e.path,l=z.decrement(s);return e.set("type","split_node").set("path",l);case"split_node":var u=e.path,c=z.increment(u);return e.set("type","merge_node").set("path",c);case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":var d=e,f=d.properties,p=d.newProperties;return e.set("properties",p).set("newProperties",f);case"insert_node":case"insert_text":return e.set("type",t.replace("insert_","remove_"));case"remove_node":case"remove_text":return e.set("type",t.replace("remove_","insert_"));case"add_annotation":case"add_mark":return e.set("type",t.replace("add_","remove_"));case"remove_annotation":case"remove_mark":return e.set("type",t.replace("remove_","add_"));default:throw new Error('Unknown operation type: "'+t+'".')}}var ye={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},be={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},_e=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"apply",value:function(e){return me(e,this)}},{key:"invert",value:function(){return ve(this)}},{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=ye[t],i=!0,o=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value,c=this[u];if("annotation"!==u&&"mark"!==u&&"marks"!==u&&"node"!==u&&"path"!==u&&"newPath"!==u||(c=c.toJSON()),"properties"===u&&"merge_node"===t){var d={};"data"in c&&(d.data=c.data.toJS()),"type"in c&&(d.type=c.type),c=d}if(("properties"===u||"newProperties"===u)&&"set_annotation"===t){var f={};"anchor"in c&&(f.anchor=c.anchor.toJS()),"focus"in c&&(f.focus=c.focus.toJS()),"key"in c&&(f.key=c.key),"data"in c&&(f.data=c.data.toJS()),"type"in c&&(f.type=c.type),c=f}if(("properties"===u||"newProperties"===u)&&"set_mark"===t){var p={};"data"in c&&(p.data=c.data.toJS()),"type"in c&&(p.type=c.type),c=p}if(("properties"===u||"newProperties"===u)&&"set_node"===t){var h={};"data"in c&&(h.data=c.data.toJS()),"type"in c&&(h.type=c.type),c=h}if(("properties"===u||"newProperties"===u)&&"set_selection"===t){var m={};"anchor"in c&&(m.anchor=c.anchor.toJSON()),"focus"in c&&(m.focus=c.focus.toJSON()),"isFocused"in c&&(m.isFocused=c.isFocused),"marks"in c&&(m.marks=c.marks&&c.marks.toJSON()),c=m}if(("properties"===u||"newProperties"===u)&&"set_value"===t){var g={};"data"in c&&(g.data=c.data.toJS()),c=g}if("properties"===u&&"split_node"===t){var v={};"data"in c&&(v.data=c.data.toJS()),"type"in c&&(v.type=c.type),c=v}"data"===u&&(c=c.toJSON()),n[u]=c}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return n}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,i=ye[n],o={type:n};if(!i)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var a=!0,s=!1,l=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=e[d];if("data"===d&&void 0===f&&(f={}),void 0===f)throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+d+'" attribute.');"annotation"===d&&(f=te.create(f)),"path"!==d&&"newPath"!==d||(f=z.create(f)),"mark"===d&&(f=$.create(f)),"node"===d&&(f=ue.create(f)),"properties"!==d&&"newProperties"!==d||"set_annotation"!==n||(f=te.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_mark"!==n||(f=$.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_node"!==n&&"merge_node"!==n&&"split_node"!==n||(f=ue.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_selection"!==n||(f=Y.createProperties(f)),"properties"!==d&&"newProperties"!==d||"set_value"!==n||(f=pe.createProperties(f)),"data"===d&&(f=Object(r.Map)(f)),o[d]=f}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return new t(o)}},{key:"isOperationList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isOperation(e)}))}}]),t}(Object(r.Record)(be)),we={operations:void 0,value:void 0},xe=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,value:this.value.toJSON(e),operations:this.operations.toArray().map((function(t){return t.toJSON(e)}))};return t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isChange(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.value,r=e.operations,i=void 0===r?[]:r;return new t({value:pe.create(n),operations:_e.createList(i)})}}]),t}(Object(r.Record)(we));function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n,r){var i=t.type,o=t.args,a=e[i];if(!a)return r();n.command.apply(n,[a].concat(P(o)))}function n(t,n){for(var r in e)t.registerCommand(r);return n()}return{onCommand:t,onConstruct:n}}var Ee=/\s/,Se=/['\u2018\u2019]/,Oe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\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\u0AF0\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\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\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]/;function Ce(e){return 55296<=e&&e<=57343}function Te(e,t,n){if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1}function Ae(e){return e<=65039&&e>=65024}function Pe(e,t){if(Ee.test(e))return!1;if(Se.test(e)){var n=t.charAt(0),r=Re(n);if(Pe(n=t.slice(0,r),t.slice(r)))return!0}return!Oe.test(e)}function Re(e){return Ce(e.charCodeAt(0))?2:1}function je(e,t,n){var r,i=0;if(""===e)return 1;for(var o=0;o<t;o++)for(var a=null,s=e.charCodeAt(i);s;)if(Ce(s)){var l=Te(s,e,i);if(n){if(!l&&a&&"ZWJ"!==a||l&&a&&"SURR"!==a)break}else if("SURR"===a||"BMP"===a)break;i+=2,a=l?"MOD":"SURR",s=e.charCodeAt(i)}else if(8205!==s)if(10084!==(r=s)&&9794!==r&&9792!==r&&9760!==r&&9877!==r&&9992!==r&&9711!==r){if(!Ae(s)){if(n){if(Te(e.charCodeAt(i+1),e,i+1)){i+=3,a="MOD",s=e.charCodeAt(i);continue}}else if("MOD"===a){i+=1;break}null===a&&(i+=1);break}if(!n&&a&&"ZWJ"!==a)break;i+=1,a="VAR",s=e.charCodeAt(i)}else{if(n&&"VAR"===a||a&&"ZWJ"!==a&&"VAR"!==a)break;i+=1,a="BMP",s=e.charCodeAt(i)}else i+=1,a="ZWJ",s=e.charCodeAt(i);return i}function Ie(e){for(var t=0,n=0,r=!1,i=void 0;i=e.charAt(n);){var o=Re(i);if(Pe(i=e.slice(n,n+o),e.slice(n+o)))r=!0,t+=o;else{if(r)break;t+=o}n+=o}return t}var Me={getCharLength:Re,getCharOffset:je,getCharOffsetBackward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e=e.slice(0,t),je(e=Object(c.reverse)(e),n)},getCharOffsetForward:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return je(e=e.slice(t),n,!0)},getWordOffset:Ie,getWordOffsetBackward:function(e,t){return e=e.slice(0,t),Ie(e=Object(c.reverse)(e))},getWordOffsetForward:function(e,t){return Ie(e=e.slice(t))},isSurrogate:Ce,isWord:Pe};function Le(e,t){t.isExpanded&&e.deleteAtRange(t);var n=e.value.document,r=t,i=r.start,o=r.end;return t=n.hasDescendant(i.path)?t.moveToStart():t.moveTo(o.path,0).normalize(n)}var De={addMarkAtRange:function(e,t,n){if(!t.isCollapsed){var r=e.value.document,i=t.start,o=t.end,a=r.getTextsAtRange(t);e.withoutNormalizing((function(){a.forEach((function(t){var r=t.key,a=0,s=t.text.length;r===i.key&&(a=i.offset),r===o.key&&(s=o.offset),r===i.key&&r===o.key&&(s=o.offset-i.offset),e.addMarkByKey(r,a,s,n)}))}))}},addMarksAtRange:function(e,t,n){n.forEach((function(n){return e.addMarkAtRange(t,n)}))},deleteAtRange:function(e,t){e.snapshotSelection();var n=e.value,r=t.start,i=t.end,o=r.key,a=r.offset,s=i.key,l=i.offset,u=n.document,c=u.hasVoidParent(o,e),d=u.hasVoidParent(s,e),f=u.getClosestBlock(o),p=u.getClosestBlock(s),h=0===a&&0===l&&!1===c&&o===f.getFirstText().key&&s===p.getFirstText().key&&o!==s;if(h&&d){var m=u.getPreviousText(s);s=m.key,l=m.text.length,d=u.hasVoidParent(s,e)}e.withoutNormalizing((function(){for(;c;){var t=u.getClosestVoid(o,e),n=u.getNextText(o);if(e.removeNodeByKey(t.key),o===s)return;if(!n)return;u=e.value.document,o=n.key,a=0,c=u.hasVoidParent(o,e)}for(;d;){var r=u.getClosestVoid(s,e),i=u.getPreviousText(s);e.removeNodeByKey(r.key),u=e.value.document,s=i.key,l=i.text.length,d=u.hasVoidParent(s,e)}if(o===s&&h)e.removeNodeByKey(f.key);else if(o!==s){f=u.getClosestBlock(o),p=u.getClosestBlock(s);var m=u.getNode(o),g=u.getNode(s),v=m.text.length-a,y=l,b=u.getCommonAncestor(o,s),_=b.getFurthestChild(o),w=b.getFurthestChild(s),x=u.getParent(f.key),k=x.nodes.indexOf(f),E=x.nodes.indexOf(p),S=void 0;for(S=m;S.key!==_.key;){var O=u.getParent(S.key),C=O.nodes.indexOf(S);O.nodes.slice(C+1).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=O}var T=b.nodes.indexOf(_),P=b.nodes.indexOf(w);for(b.nodes.slice(T+1,P).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=g;S.key!==w.key;){var R=u.getParent(S.key),j=R.nodes.indexOf(S);R.nodes.slice(0,j).reverse().forEach((function(t){e.removeNodeByKey(t.key)})),S=R}if(0!==v&&e.removeTextByKey(o,a,v),0!==y&&e.removeTextByKey(s,0,l),f.key!==p.key){u=e.value.document;var I=void 0,M=!0,L=!1,D=void 0;try{for(var N,F=u.ancestors(p.key)[Symbol.iterator]();!(M=(N=F.next()).done);M=!0){var B=N.value,z=A(B,1)[0];if(z.nodes.size>1)break;I=z}}catch(e){L=!0,D=e}finally{try{!M&&F.return&&F.return()}finally{if(L)throw D}}E!==k+1&&e.moveNodeByKey(p.key,x.key,k+1),h?e.removeNodeByKey(f.key):e.mergeNodeByKey(p.key),I&&e.removeNodeByKey(I.key)}}else{var U=a,q=l-a;e.removeTextByKey(o,U,q)}}))},deleteBackwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,a=o.start,s=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var l=i.getClosestVoid(a.path,e);if(l)e.removeNodeByKey(l.key);else if(!a.isAtStartOfNode(i)){var u=i.getClosestBlock(a.path);if(1!==i.nodes.size&&u&&""===u.text&&1===u.nodes.size)e.removeNodeByKey(u.key);else{var c=i.getDescendant(a.path);if(a.isAtStartOfNode(c)){var d=i.getPreviousText(c.key),f=i.getClosestInline(c.key);f&&""===d.text&&(d=i.getPreviousText(d.key));var p=i.getClosestBlock(d.key),h=i.getClosestVoid(d.key,e);if(h)return void e.removeNodeByKey(h.key);if(1===n&&p!==u)return t=t.moveAnchorTo(d.key,d.text.length),void e.deleteAtRange(t)}if(n<=s.offset)return t=t.moveFocusBackward(n),void e.deleteAtRange(t);for(var m=c,g=0,v=s.offset;n>v;){var y=v+(m=i.getPreviousText(m.key)).text.length;if(n<=y){g=y-n;break}v=y}t=t.moveAnchorTo(m.key,g),e.deleteAtRange(t)}}}}},deleteCharBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=Me.getCharOffsetBackward(a,o);e.deleteBackwardAtRange(t,s)}},deleteCharForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=Me.getCharOffsetForward(a,o);e.deleteForwardAtRange(t,s)}},deleteForwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value,i=r.document,o=t,a=o.start,s=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var l=i.getClosestVoid(a.path,e);if(l)e.removeNodeByKey(l.key);else{var u=i.getClosestBlock(a.path);if(u&&!e.isVoid(u)&&""===u.text&&1!==i.nodes.size){var c=i.getNextBlock(u.key);return e.removeNodeByKey(u.key),void(c&&c.key&&e.moveToStartOfNode(c))}if(!a.isAtEndOfNode(i)){var d=i.getDescendant(a.path);if(a.isAtEndOfNode(d)){var f=i.getNextText(d.key),p=i.getClosestBlock(f.key),h=i.getClosestVoid(f.key,e);if(h)return void e.removeNodeByKey(h.key);if(1===n&&p!==u)return t=t.moveFocusTo(f.key,0),void e.deleteAtRange(t)}if(n<=d.text.length-s.offset)return t=t.moveFocusForward(n),void e.deleteAtRange(t);for(var m=d,g=s.offset,v=d.text.length-s.offset;n>v;){var y=v+(m=i.getNextText(m.key)).text.length;if(n<=y){g=n-v;break}v=y}t=t.moveFocusTo(m.key,g),e.deleteAtRange(t)}}}}},deleteLineBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path).getOffset(r.key)+r.offset;e.deleteBackwardAtRange(t,i)}},deleteLineForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset;e.deleteForwardAtRange(t,i.text.length-o)}},deleteWordBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=0===o?1:Me.getWordOffsetBackward(a,o);e.deleteBackwardAtRange(t,s)}},deleteWordForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,i=n.getClosestBlock(r.path),o=i.getOffset(r.key)+r.offset,a=i.text,s=Me.getWordOffsetForward(a,o),l=0===s?1:s;e.deleteForwardAtRange(t,l)}},insertBlockAtRange:function(e,t,n){t=Le(e,t),n=de.create(n);var r=e.value.document,i=t.start,o=i.key,a=i.offset,s=r.getClosestBlock(o),l=r.getClosestInline(o),u=r.getParent(s.key),c=u.nodes.indexOf(s),d=Ne(e,t);if("before"===d)e.insertNodeByKey(u.key,c,n);else if("behind"===d)e.insertNodeByKey(u.key,c+1,n);else{if(l&&e.isVoid(l)){var f=i.isAtEndOfNode(l),p=f?r.getNextText(o):r.getPreviousText(o),h=f?t.moveToStartOfNode(p):t.moveToEndOfNode(p);o=h.start.key,a=h.start.offset}e.withoutNormalizing((function(){e.splitDescendantsByKey(s.key,o,a),e.insertNodeByKey(u.key,c+1,n)}))}}},Ne=function(e,t){var n=e.value.document,r=t.start,i=r.key,o=n.getClosestBlock(i),a=n.getClosestInline(i);return e.isVoid(o)?r.isAtEndOfNode(o)?"behind":"before":a||""!==o.text?r.isAtStartOfNode(o)?"before":r.isAtEndOfNode(o)?"behind":"split":"behind"};De.insertFragmentAtRange=function(e,t,n){e.withoutNormalizing((function(){if(t=Le(e,t),n.nodes.size){n=n.mapDescendants((function(e){return e.regenerateKey()}));var i=t.start,o=e.value.document,a=o.getDescendant(i.path),s=o.getClosestBlock(a.key),l=s.getFurthestChild(a.key),u=i.isAtStartOfNode(s),c=o.getParent(s.key),d=c.nodes.indexOf(s),f=n.getBlocks(),p=n.nodes.first(),h=n.nodes.last(),m=f.first(),g=f.last(),v=Fe(n,o,s.key);if(m===g&&e.isVoid(m))e.insertBlockAtRange(t,m);else if(v!==n||!p.hasBlockChildren()&&!h.hasBlockChildren()){if(m!==g){var y=v.getFurthest(m.key,(function(e){return 1===e.nodes.size}))||m,b=c.nodes.indexOf(s);v.removeNode(y.key).nodes.forEach((function(t,n){var r=b+n+1;e.insertNodeByKey(c.key,r,t)}))}if(0!==i.offset&&e.splitDescendantsByKey(l.key,i.key,i.offset),a=(o=e.value.document).getDescendant(i.key),l=(s=o.getClosestBlock(i.key)).getFurthestChild(a.key),m!==g){var _=u?l:s.getNextSibling(l.key),w=_?s.nodes.skipUntil((function(e){return e.key===_.key})):Object(r.List)(),x=g.nodes.size;w.forEach((function(t,n){var r=x+n;e.moveNodeByKey(t.key,g.key,r)}))}if(e.isVoid(s)||""!==s.text||s.findDescendant((function(t){return e.isVoid(t)}))){var k=s.getFurthestChild(a.key),E=s.nodes.indexOf(k);m.nodes.forEach((function(t,n){var r=0===i.offset?0:1,o=E+n+r;e.insertNodeByKey(s.key,o,t)}))}else e.removeNodeByKey(s.key),e.insertNodeByKey(c.key,d,m)}else{("before"===Ne(e,t)?n.nodes:n.nodes.reverse()).forEach((function(n){e.insertBlockAtRange(t,n)}))}}}))};var Fe=function(e,t,n){var r=function(e,t){return t.size>=e.size&&e.every((function(e,n){return t.get(n).type===e.type}))},i=function(e,t){return e.getAncestors(t).slice(1).push(e.getNode(t)).reverse()},o=function(e){for(var t=e;1===t.nodes.size&&"block"===t.nodes.first().object;)t=t.nodes.first();return t===e?null:t}(e);return o?function(t,n){var i=t.size-n.size;if(i<0)return e;for(var o=0;o<n.size;o++)for(var a=0;a<=i;a++)if(r(n.slice(o),t.slice(a)))return n.get(o);return e}(i(t,n),i(e,o.key)):e};De.insertInlineAtRange=function(e,t,n){n=oe.create(n),e.withoutNormalizing((function(){t=Le(e,t);var r=e.value.document,i=t.start,o=r.getParent(i.path),a=r.assertDescendant(i.path),s=o.nodes.indexOf(a);e.isVoid(o)||(e.splitNodeByPath(i.path,i.offset),e.insertNodeByKey(o.key,s+1,n))}))},De.insertTextAtRange=function(e,t,n,r){e.withoutNormalizing((function(){t=Le(e,t);var i=e.value.document,o=t.start,a=o.offset,s=i.getParent(o.path);e.isVoid(s)||e.insertTextByPath(o.path,a,n,r)}))},De.removeMarkAtRange=function(e,t,n){if(!t.isCollapsed){var r=e.value.document.getTextsAtRange(t),i=t.start,o=t.end;e.withoutNormalizing((function(){r.forEach((function(t){var r=t.key,a=0,s=t.text.length;r===i.key&&(a=i.offset),r===o.key&&(s=o.offset),r===i.key&&r===o.key&&(s=o.offset-i.offset),e.removeMarkByKey(r,a,s,n)}))}))}},De.setBlocksAtRange=function(e,t,n){var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=t.start,a=t.end,s=t.isCollapsed,l=r.hasVoidParent(o.path,e),u=r.getClosestBlock(o.path),c=r.getClosestBlock(a.key),d=!1===s&&0===o.offset&&0===a.offset&&!1===l&&o.key===u.getFirstText().key&&a.key===c.getFirstText().key?i.slice(0,-1):i;e.withoutNormalizing((function(){d.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},De.setInlinesAtRange=function(e,t,n){var r=e.value.document.getLeafInlinesAtRange(t);e.withoutNormalizing((function(){r.forEach((function(t){e.setNodeByKey(t.key,n)}))}))},De.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t=Le(e,t),i=r.start,o=r.end,a=e.value,s=a,l=s.document,u=l.assertDescendant(i.path),c=l.getClosestBlock(u.key),d=0;c&&"block"===c.object&&d<n;)u=c,c=l.getClosestBlock(c.key),d++;e.withoutNormalizing((function(){if(e.splitDescendantsByKey(u.key,i.path,i.offset),a=e.value,l=a.document,t.isExpanded){t.isBackward&&(t=t.flip());var n=l.getNextBlock(u.key);t=(t=t.moveAnchorToStartOfNode(n)).setFocus(t.focus.setPath(null)),i.path.equals(o.path)&&(t=t.moveFocusTo(t.anchor.key,o.offset-i.offset)),t=l.resolveRange(t),e.deleteAtRange(t)}}))},De.splitInlineAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=t=Le(e,t),i=r.start,o=e.value,a=o.document,s=a.assertDescendant(i.path),l=a.getClosestInline(s.key),u=0;l&&"inline"===l.object&&u<n;)s=l,l=a.getClosestInline(l.key),u++;e.splitDescendantsByKey(s.key,i.path,i.offset)},De.toggleMarkAtRange=function(e,t,n){t.isCollapsed||(n=$.create(n),e.value.document.getActiveMarksAtRange(t).some((function(e){return e.equals(n)}))?e.removeMarkAtRange(t,n):e.addMarkAtRange(t,n))},De.unwrapBlockAtRange=function(e,t,n){n=ue.createProperties(n);var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.map((function(e){return r.getClosest(e.key,(function(e){return"block"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){o.forEach((function(t){var n=t.nodes.first(),o=t.nodes.last(),a=e.value.document.getParent(t.key),s=a.nodes.indexOf(t),l=t.nodes.filter((function(e){return i.some((function(t){return e===t||e.hasDescendant(t.key)}))})),u=l.first(),c=l.last();if(n===u&&o===c)t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+n)})),e.removeNodeByKey(t.key);else if(o===c)t.nodes.skipUntil((function(e){return e===u})).forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+1+n)}));else if(n===u)t.nodes.takeUntil((function(e){return e===c})).push(c).forEach((function(t,n){e.moveNodeByKey(t.key,a.key,s+n)}));else{var d=u.getFirstText();e.splitDescendantsByKey(t.key,d.key,0),r=e.value.document,l.forEach((function(t,n){if(0===n){var i=t;t=r.getNextBlock(t.key),e.removeNodeByKey(i.key)}e.moveNodeByKey(t.key,a.key,s+1+n)}))}}))}))},De.unwrapInlineAtRange=function(e,t,n){n=ue.createProperties(n);var r=e.value.document,i=r.getTextsAtRange(t).map((function(e){return r.getClosest(e.key,(function(e){return"inline"===e.object&&((null==n.type||e.type===n.type)&&!(null!=n.data&&!e.data.isSuperset(n.data)))}))})).filter((function(e){return e})).toOrderedSet().toList();e.withoutNormalizing((function(){i.forEach((function(t){var n=e.value.document.getParent(t.key),r=n.nodes.indexOf(t);t.nodes.forEach((function(t,i){e.moveNodeByKey(t.key,n.key,r+i)})),e.removeNodeByKey(t.key)}))}))},De.wrapBlockAtRange=function(e,t,n){n=(n=de.create(n)).set("nodes",n.nodes.clear());var r=e.value.document,i=r.getLeafBlocksAtRange(t),o=i.first(),a=i.last(),s=void 0,l=void 0,u=void 0;if(1===i.length?(s=r.getParent(o.key),l=i):s=r.getClosest(o.key,(function(e){return!!r.getClosest(a.key,(function(t){return e===t}))})),null==s&&(s=r),null==l){var c=s.nodes.reduce((function(e,t,n){return(t===o||t.hasDescendant(o.key))&&(e[0]=n),(t===a||t.hasDescendant(a.key))&&(e[1]=n),e}),[]);u=c[0],l=s.nodes.slice(c[0],c[1]+1)}null==u&&(u=s.nodes.indexOf(l.first())),e.withoutNormalizing((function(){e.insertNodeByKey(s.key,u,n),l.forEach((function(t,r){e.moveNodeByKey(t.key,n.key,r)}))}))},De.wrapInlineAtRange=function(e,t,n){var r=e.value.document,i=t.start,o=t.end;if(t.isCollapsed){var a=r.getClosestInline(i.path);if(!a)return;if(!e.isVoid(a))return;return e.wrapInlineByKey(a.key,n)}n=(n=oe.create(n)).set("nodes",n.nodes.clear());var s=r.getLeafBlocksAtRange(t),l=r.getClosestBlock(i.path),u=r.getClosestBlock(o.path),c=r.getClosestInline(i.path),d=r.getClosestInline(o.path),f=l.getFurthestChild(i.key),p=u.getFurthestChild(o.key);e.withoutNormalizing((function(){c&&c===d||(e.splitDescendantsByKey(p.key,o.key,o.offset),e.splitDescendantsByKey(f.key,i.key,i.offset)),r=e.value.document,l=r.getDescendant(l.key),u=r.getDescendant(u.key),f=l.getFurthestChild(i.key),p=u.getFurthestChild(o.key);var a=l.nodes.indexOf(f),h=u.nodes.indexOf(p);if(c&&c===d){var m=l.getTextsAtRange(t).map((function(e){return i.key===e.key&&o.key===e.key?e.splitText(i.offset)[1].splitText(o.offset-i.offset)[0].regenerateKey():i.key===e.key?e.splitText(i.offset)[1].regenerateKey():o.key===e.key?e.splitText(o.offset)[0].regenerateKey():e.regenerateKey()}));n=n.set("nodes",m),e.insertInlineAtRange(t,n)}else if(l===u){r=e.value.document,l=r.getClosestBlock(i.key),f=l.getFurthestChild(i.key);var g=r.getNextSibling(f.key),v=l.nodes.indexOf(g),y=i.key===o.key?g:l.getFurthestChild(o.key),b=l.nodes.skipUntil((function(e){return e===g})).takeUntil((function(e){return e===y})).push(y),_=n.regenerateKey();e.insertNodeByKey(l.key,v,_),b.forEach((function(t,n){e.moveNodeByKey(t.key,_.key,n)}))}else{var w=l.nodes.slice(a+1),x=u.nodes.slice(0,h+1),k=n.regenerateKey(),E=n.regenerateKey();e.insertNodeByKey(l.key,a+1,k),e.insertNodeByKey(u.key,h,E),w.forEach((function(t,n){e.moveNodeByKey(t.key,k.key,n)})),x.forEach((function(t,n){e.moveNodeByKey(t.key,E.key,n)})),s.slice(1,-1).forEach((function(t){var r=n.regenerateKey();e.insertNodeByKey(t.key,0,r),t.nodes.forEach((function(t,n){e.moveNodeByKey(t.key,r.key,n)}))}))}}))},De.wrapTextAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=t.start,o=t.end,a=t.moveToStart(),s=t.moveToEnd();i.path.equals(o.path)&&(s=s.moveForward(n.length)),e.withoutNormalizing((function(){e.insertTextAtRange(a,n),e.insertTextAtRange(s,r)}))};var Be={addMarkByPath:function(e,t,n,r,i){i=$.create(i),e.addMarksByPath(t,n,r,[i])},addMarksByPath:function(e,t,n,r,i){if((i=$.createSet(i)).size){var o=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:$.create(n)})}))}))}},replaceMarksByPath:function(e,t,n,r,i){var o=$.createSet(i),a=e.value.document.assertNode(t);a.marks.equals(o)||e.withoutNormalizing((function(){n+r<a.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0);var i=o.subtract(a.marks);a.marks.subtract(o).forEach((function(n){e.applyOperation({type:"remove_mark",path:t,mark:$.create(n)})})),i.forEach((function(n){e.applyOperation({type:"add_mark",path:t,mark:$.create(n)})}))}))},insertFragmentByPath:function(e,t,n,r){r.nodes.forEach((function(r,i){e.insertNodeByPath(t,n+i,r)}))},insertNodeByPath:function(e,t,n,r){e.applyOperation({type:"insert_node",path:t.concat(n),node:r})},insertTextByPath:function(e,t,n,r,i){var o=e.value,a=o.annotations;o.document.assertNode(t),e.withoutNormalizing((function(){var o=!0,s=!1,l=void 0;try{for(var u,c=a.values()[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value,f=d.start,p=d.end;e.isAtomic(d)&&(f.path.equals(t)&&f.offset<n&&(!p.path.equals(t)||p.offset>n)&&e.removeAnnotation(d))}}catch(e){s=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw l}}e.applyOperation({type:"insert_text",path:t,offset:n,text:r}),i&&e.replaceMarksByPath(t,n,r.length,i)}))},mergeNodeByPath:function(e,t){var n=e.value.document,r=n.getDescendant(t),i=n.getPreviousSibling(t);if(!i)throw new Error('Unable to merge node with path "'+t+'", because it has no previous sibling.');var o="text"===i.object?i.text.length:i.nodes.size;e.applyOperation({type:"merge_node",path:t,position:o,properties:{type:r.type,data:r.data},target:null})},moveNodeByPath:function(e,t,n,r){if(z.isEqual(t,n))return e;var i=n.concat(r);if(z.isEqual(t,i))return e;e.applyOperation({type:"move_node",path:t,newPath:i})},removeMarkByPath:function(e,t,n,r,i){i=$.create(i),e.removeMarksByPath(t,n,r,[i])},removeMarksByPath:function(e,t,n,r,i){if((i=$.createSet(i)).size){var o=e.value.document.assertNode(t);i.intersect(o.marks).isEmpty()||e.withoutNormalizing((function(){n+r<o.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),i.forEach((function(i){e.applyOperation({type:"remove_mark",path:t,offset:n,length:r,mark:i})}))}))}},removeAllMarksByPath:function(e,t){var n=e.state.document.assertNode(t);e.withoutNormalizing((function(){if("text"!==n.object){var r=!0,i=!1,o=void 0;try{for(var a,s=n.texts()[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,u=A(l,2),c=u[0],d=u[1],f=t.concat(d);e.removeMarksByPath(f,0,c.text.length,c.marks)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}else e.removeMarksByPath(t,0,n.text.length,n.marks)}))},removeNodeByPath:function(e,t){var n=e.value.document.assertNode(t);e.applyOperation({type:"remove_node",path:t,node:n})},removeTextByPath:function(e,t,n,r){var i=e.value,o=i.document,a=i.annotations,s=o.assertNode(t).text.slice(n,n+r);e.withoutNormalizing((function(){var r=!0,i=!1,o=void 0;try{for(var l,u=a.values()[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var c=l.value,d=c.start,f=c.end;e.isAtomic(c)&&(d.path.equals(t)&&d.offset<n&&(!f.path.equals(t)||f.offset>n)&&e.removeAnnotation(c))}}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}e.applyOperation({type:"remove_text",path:t,offset:n,text:s})}))},replaceNodeByPath:function(e,t,n){n=ue.create(n);var r=t.last(),i=z.lift(t);e.withoutNormalizing((function(){e.removeNodeByPath(t),e.insertNodeByPath(i,r,n)}))},replaceTextByPath:function(e,t,n,r,i,o){e.withoutNormalizing((function(){e.removeTextByPath(t,n,r),e.insertTextByPath(t,n,i,o)}))},setMarkByPath:function(e,t,n,r,i,o){i=$.create(i),o=$.createProperties(o);var a=e.value.document.assertNode(t);e.withoutNormalizing((function(){n+r<a.text.length&&e.splitNodeByPath(t,n+r),n>0&&(e.splitNodeByPath(t,n),t=z.increment(t),n=0),e.applyOperation({type:"set_mark",path:t,properties:i,newProperties:o})}))},setNodeByPath:function(e,t,n){var r=e.value.document.assertNode(t);n=ue.createProperties(n);var i=f()(r,Object.keys(n));e.applyOperation({type:"set_node",path:t,properties:i,newProperties:n})},setTextByPath:function(e,t,n,r){var i=e.value.document.assertNode(t).text.length;e.replaceTextByPath(t,0,i,n,r)},splitNodeByPath:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.target,o=void 0===i?null:i,a=e.value,s=a.document,l=s.getDescendant(t);e.applyOperation({type:"split_node",path:t,position:n,target:o,properties:{type:l.type,data:l.data}})},splitDescendantsByPath:function(e,t,n,r){if(t.equals(n))e.splitNodeByPath(n,r);else{var i=e.value.document,o=r,a=n;e.withoutNormalizing((function(){e.splitNodeByKey(n,r);var s=!0,l=!1,u=void 0;try{for(var c,d=i.ancestors(n)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value,p=A(f,2)[1],h=o;if(o=a.last()+1,a=p,e.splitNodeByPath(p,o,{target:h}),p.equals(t))break}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}))}},unwrapInlineByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,a=i.assertNode(t),s=a.getFirstText(),l=a.getLastText(),u=o.moveToRangeOfNode(s,l);e.unwrapInlineAtRange(u,n)},unwrapBlockByPath:function(e,t,n){var r=e.value,i=r.document,o=r.selection,a=i.assertNode(t),s=a.getFirstText(),l=a.getLastText(),u=o.moveToRangeOfNode(s,l);e.unwrapBlockAtRange(u,n)},unwrapNodeByPath:function(e,t){var n=e.value.document;n.assertNode(t);var r=z.lift(t),i=n.assertNode(r),o=t.last(),a=r.last(),s=z.lift(r),l=0===o,u=o===i.nodes.size-1;e.withoutNormalizing((function(){if(1===i.nodes.size)e.moveNodeByPath(t,s,a+1),e.removeNodeByPath(r);else if(l)e.moveNodeByPath(t,s,a);else if(u)e.moveNodeByPath(t,s,a+1);else{var n=z.increment(t,1,r.size-1);n=n.set(n.size-1,0),e.splitNodeByPath(r,o),e.moveNodeByPath(n,s,a+1)}}))},unwrapChildrenByPath:function(e,t){t=z.create(t);var n=e.value.document.assertNode(t),r=z.lift(t),i=t.last(),o=n.nodes;e.withoutNormalizing((function(){o.reverse().forEach((function(n,a){var s=o.size-a-1,l=t.push(s);e.moveNodeByPath(l,r,i+1)})),e.removeNodeByPath(t)}))},wrapBlockByPath:function(e,t,n){n=(n=de.create(n)).set("nodes",n.nodes.clear());var r=z.lift(t),i=t.last(),o=z.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapInlineByPath:function(e,t,n){n=(n=oe.create(n)).set("nodes",n.nodes.clear());var r=z.lift(t),i=t.last(),o=z.increment(t);e.withoutNormalizing((function(){e.insertNodeByPath(r,i,n),e.moveNodeByPath(o,t,0)}))},wrapNodeByPath:function(e,t,n){"block"===(n=ue.create(n)).object?e.wrapBlockByPath(t,n):"inline"===n.object&&e.wrapInlineByPath(t,n)}},ze=function(e){Be[e+"ByKey"]=function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=t.value,s=a.document,l=s.assertPath(n);t[e+"ByPath"].apply(t,[l].concat(i))}},Ue=!0,qe=!1,We=void 0;try{for(var He,$e=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"][Symbol.iterator]();!(Ue=(He=$e.next()).done);Ue=!0){ze(He.value)}}catch(e){qe=!0,We=e}finally{try{!Ue&&$e.return&&$e.return()}finally{if(qe)throw We}}Be.moveNodeByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=e.value,s=a.document,l=s.assertPath(t),u=s.assertPath(n);e.moveNodeByPath.apply(e,[l,u].concat(i))},Be.splitDescendantsByKey=function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=e.value,s=a.document,l=s.assertPath(t),u=s.assertPath(n);e.splitDescendantsByPath.apply(e,[l,u].concat(i))};var Ve={};Ve.save=function(e,t){var n=e.operations,i=e.value.data,o=e.tmp,a=o.save,s=o.merge;if(!1!==a&&function(e){if("set_selection"===e.type){var t=e.newProperties,n=t.isFocused,r=t.anchor,i=t.focus;if(void 0!==n&&!r&&!i)return!1}return!0}(t)){var l,u,c=i.get("undos")||Object(r.List)(),d=c.last(),f=d&&d.last();if(null==s&&(0!==n.size?s=!0:(l=t,s=!!(u=f)&&("set_selection"===l.type&&"set_selection"===u.type||"insert_text"===l.type&&"insert_text"===u.type&&l.offset===u.offset+u.text.length&&l.path.equals(u.path)||"remove_text"===l.type&&"remove_text"===u.type&&l.offset+l.text.length===u.offset&&l.path.equals(u.path)))),s&&d){var p=d.push(t);c=(c=c.pop()).push(p)}else{var h=Object(r.List)([t]);c=c.push(h)}c.size>100&&(c=c.takeLast(100)),e.withoutSaving((function(){var t=Object(r.List)(),n=i.set("undos",c).set("redos",t);e.setData(n)}))}},Ve.redo=function(e){var t=e.value.data,n=t.get("redos")||Object(r.List)(),i=t.get("undos")||Object(r.List)(),o=n.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",h()(i,"isFocused"))),e.applyOperation(t)})),n=n.pop(),i=i.push(o);var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},Ve.undo=function(e){var t=e.value.data,n=t.get("redos")||Object(r.List)(),i=t.get("undos")||Object(r.List)(),o=i.last();o&&e.withoutSaving((function(){e.withoutNormalizing((function(){o.slice().reverse().map((function(e){return e.invert()})).forEach((function(t){var n=t,r=n.type,i=n.newProperties;"set_selection"===r&&(t=t.set("newProperties",h()(i,"isFocused"))),e.applyOperation(t)})),n=n.push(o),i=i.pop();var r=t.set("undos",i).set("redos",n);e.setData(r)}))}))},Ve.withoutMerging=function(e,t){var n=e.tmp.merge;e.tmp.merge=!1,t(e),e.tmp.merge=n},Ve.withoutSaving=function(e,t){var n=e.tmp.save;e.tmp.save=!1,t(e),e.tmp.save=n};var Ge={};function Ke(e,t){for(var n,r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=(n=e.value.selection)[t].apply(n,i);e.select(a)}function Ye(e,t,n,r){var i=t.slice(0,1).toUpperCase()+t.slice(1),o=n.slice(0,1).toUpperCase()+n.slice(1),a=r.slice(0,1).toUpperCase()+r.slice(1),s="move"+i+"To"+o+"OfNode",l="text"===r?"getNode":"getClosest"+a,u=e.value,c=u.document,d=u.selection[t],f=c[l](d.key);f&&e[s](f)}function Qe(e,t,n,r,i){var o=t.slice(0,1).toUpperCase()+t.slice(1),a=n.slice(0,1).toUpperCase()+n.slice(1),s=r.slice(0,1).toUpperCase()+r.slice(1),l=i.slice(0,1).toUpperCase()+i.slice(1),u="move"+o+"To"+a+"OfNode",c="text"===i?"getNode":"getClosest"+l,d="get"+s+l,f=e.value,p=f.document,h=f.selection[t],m=p[c](h.key);if(m){var g=p[d](m.key);g&&e[u](g)}}function Xe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Ze(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,a=i.selection,s=a[t],l=o.hasVoidParent(s.path,e);if(!l&&s.offset-n>=0){var u=a["move"+r+"Backward"](n);e.select(u)}else{var c=o.getPreviousText(s.path);if(c){var d=o.getClosestBlock(s.path),f=d.hasNode(c.key),p=c&&o.hasVoidParent(c.key,e);if(e["move"+r+"ToEndOfNode"](c),!l&&!p&&f){var h=e.value.selection["move"+r+"Backward"](n);e.select(h)}}}}}function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return Xe(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),i=e.value,o=i.document,a=i.selection,s=a[t],l=o.getNode(s.path),u=o.hasVoidParent(s.path,e);if(!u&&s.offset+n<=l.text.length){var c=a["move"+r+"Forward"](n);e.select(c)}else{var d=o.getNextText(s.path);if(d){var f=o.getClosestBlock(s.path),p=f.hasNode(d.key),h=o.hasVoidParent(d.key,e);if(e["move"+r+"ToStartOfNode"](d),!u&&!h&&p){var m=e.value.selection["move"+r+"Forward"](n);e.select(m)}}}}}function Je(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),a=o.getOffset(i.key)+i.offset,s=o.text,l=Me.getWordOffsetBackward(s,a);e.command(Xe,t,l>0?l:1)}function et(e,t){var n=e.value,r=n.document,i=n.selection[t],o=r.getClosestBlock(i.key),a=o.getOffset(i.key)+i.offset,s=o.text,l=Me.getWordOffsetForward(s,a);e.command(Ze,t,l>0?l:1)}Ge.blur=function(e){e.select({isFocused:!1})},Ge.deselect=function(e){var t=Y.create();e.select(t)},Ge.focus=function(e){e.select({isFocused:!0})},Ge.flip=function(e){e.command(Ke,"flip")},Ge.moveAnchorBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"anchor"].concat(n))},Ge.moveAnchorWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"anchor"].concat(n))},Ge.moveAnchorForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"anchor"].concat(n))},Ge.moveAnchorWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"anchor"].concat(n))},Ge.moveAnchorTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorTo"].concat(n))},Ge.moveAnchorToEndOfBlock=function(e){e.command(Ye,"anchor","end","block")},Ge.moveAnchorToEndOfInline=function(e){e.command(Ye,"anchor","end","inline")},Ge.moveAnchorToEndOfDocument=function(e){e.moveAnchorToEndOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToEndOfNextBlock=function(e){e.command(Qe,"anchor","end","next","block")},Ge.moveAnchorToEndOfNextInline=function(e){e.command(Qe,"anchor","end","next","inline")},Ge.moveAnchorToEndOfNextText=function(e){e.command(Qe,"anchor","end","next","text")},Ge.moveAnchorToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorToEndOfNode"].concat(n))},Ge.moveAnchorToEndOfPreviousBlock=function(e){e.command(Qe,"anchor","end","previous","block")},Ge.moveAnchorToEndOfPreviousInline=function(e){e.command(Qe,"anchor","end","previous","inline")},Ge.moveAnchorToEndOfPreviousText=function(e){e.command(Qe,"anchor","end","previous","text")},Ge.moveAnchorToEndOfText=function(e){e.command(Ye,"anchor","end","text")},Ge.moveAnchorToStartOfBlock=function(e){e.command(Ye,"anchor","start","block")},Ge.moveAnchorToStartOfDocument=function(e){e.moveAnchorToStartOfNode(e.value.document).moveToAnchor()},Ge.moveAnchorToStartOfInline=function(e){e.command(Ye,"anchor","start","inline")},Ge.moveAnchorToStartOfNextBlock=function(e){e.command(Qe,"anchor","start","next","block")},Ge.moveAnchorToStartOfNextInline=function(e){e.command(Qe,"anchor","start","next","inline")},Ge.moveAnchorToStartOfNextText=function(e){e.command(Qe,"anchor","start","next","text")},Ge.moveAnchorToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveAnchorToStartOfNode"].concat(n))},Ge.moveAnchorToStartOfPreviousBlock=function(e){e.command(Qe,"anchor","start","previous","block")},Ge.moveAnchorToStartOfPreviousInline=function(e){e.command(Qe,"anchor","start","previous","inline")},Ge.moveAnchorToStartOfPreviousText=function(e){e.command(Qe,"anchor","start","previous","text")},Ge.moveAnchorToStartOfText=function(e){e.command(Ye,"anchor","start","text")},Ge.moveBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,a=r.getClosestBlock(o.key),s=a.getOffset(o.key),l=s+o.offset,u=a.text,c=Me.getCharOffsetBackward(u,l,t);e.moveAnchorBackward(c).moveFocusBackward(c)}},Ge.moveWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.moveFocusWordBackward.apply(e,n).moveToFocus()},Ge.moveEndBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"end"].concat(n))},Ge.moveEndWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"end"].concat(n))},Ge.moveEndForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"end"].concat(n))},Ge.moveEndWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"end"].concat(n))},Ge.moveEndTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndTo"].concat(n))},Ge.moveEndToEndOfBlock=function(e){e.command(Ye,"end","end","block")},Ge.moveEndToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveEndToEndOfInline=function(e){e.command(Ye,"end","end","inline")},Ge.moveEndToEndOfNextBlock=function(e){e.command(Qe,"end","end","next","block")},Ge.moveEndToEndOfNextInline=function(e){e.command(Qe,"end","end","next","inline")},Ge.moveEndToEndOfNextText=function(e){e.command(Qe,"end","end","next","text")},Ge.moveEndToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndToEndOfNode"].concat(n))},Ge.moveEndToEndOfPreviousBlock=function(e){e.command(Qe,"end","end","previous","block")},Ge.moveEndToEndOfPreviousInline=function(e){e.command(Qe,"end","end","previous","inline")},Ge.moveEndToEndOfPreviousText=function(e){e.command(Qe,"end","end","previous","text")},Ge.moveEndToEndOfText=function(e){e.command(Ye,"end","end","text")},Ge.moveEndToStartOfBlock=function(e){e.command(Ye,"end","start","block")},Ge.moveEndToStartOfDocument=function(e){e.moveEndToStartOfNode(e.value.document).moveToEnd()},Ge.moveEndToStartOfInline=function(e){e.command(Ye,"end","start","inline")},Ge.moveEndToStartOfNextBlock=function(e){e.command(Qe,"end","start","next","block")},Ge.moveEndToStartOfNextInline=function(e){e.command(Qe,"end","start","next","inline")},Ge.moveEndToStartOfNextText=function(e){e.command(Qe,"end","start","next","text")},Ge.moveEndToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveEndToStartOfNode"].concat(n))},Ge.moveEndToStartOfPreviousBlock=function(e){e.command(Qe,"end","start","previous","block")},Ge.moveEndToStartOfPreviousInline=function(e){e.command(Qe,"end","start","previous","inline")},Ge.moveEndToStartOfPreviousText=function(e){e.command(Qe,"end","start","previous","text")},Ge.moveEndToStartOfText=function(e){e.command(Ye,"end","start","text")},Ge.moveFocusBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"focus"].concat(n))},Ge.moveFocusWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"focus"].concat(n))},Ge.moveFocusForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"focus"].concat(n))},Ge.moveFocusWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"focus"].concat(n))},Ge.moveFocusTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusTo"].concat(n))},Ge.moveFocusToEndOfBlock=function(e){e.command(Ye,"focus","end","block")},Ge.moveFocusToEndOfDocument=function(e){e.moveFocusToEndOfNode(e.value.document).moveToFocus()},Ge.moveFocusToEndOfInline=function(e){e.command(Ye,"focus","end","inline")},Ge.moveFocusToEndOfNextBlock=function(e){e.command(Qe,"focus","end","next","block")},Ge.moveFocusToEndOfNextInline=function(e){e.command(Qe,"focus","end","next","inline")},Ge.moveFocusToEndOfNextText=function(e){e.command(Qe,"focus","end","next","text")},Ge.moveFocusToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusToEndOfNode"].concat(n))},Ge.moveFocusToEndOfPreviousBlock=function(e){e.command(Qe,"focus","end","previous","block")},Ge.moveFocusToEndOfPreviousInline=function(e){e.command(Qe,"focus","end","previous","inline")},Ge.moveFocusToEndOfPreviousText=function(e){e.command(Qe,"focus","end","previous","text")},Ge.moveFocusToEndOfText=function(e){e.command(Ye,"focus","end","text")},Ge.moveFocusToStartOfBlock=function(e){e.command(Ye,"focus","start","block")},Ge.moveFocusToStartOfDocument=function(e){e.moveFocusToStartOfNode(e.value.document).moveToFocus()},Ge.moveFocusToStartOfInline=function(e){e.command(Ye,"focus","start","inline")},Ge.moveFocusToStartOfNextBlock=function(e){e.command(Qe,"focus","start","next","block")},Ge.moveFocusToStartOfNextInline=function(e){e.command(Qe,"focus","start","next","inline")},Ge.moveFocusToStartOfNextText=function(e){e.command(Qe,"focus","start","next","text")},Ge.moveFocusToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveFocusToStartOfNode"].concat(n))},Ge.moveFocusToStartOfPreviousBlock=function(e){e.command(Qe,"focus","start","previous","block")},Ge.moveFocusToStartOfPreviousInline=function(e){e.command(Qe,"focus","start","previous","inline")},Ge.moveFocusToStartOfPreviousText=function(e){e.command(Qe,"focus","start","previous","text")},Ge.moveFocusToStartOfText=function(e){e.command(Ye,"focus","start","text")},Ge.moveForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0!==t){var n=e.value,r=n.document,i=n.selection,o=i.start,a=r.getClosestBlock(o.path),s=a.getOffset(o.key),l=s+o.offset,u=a.text,c=Me.getCharOffsetForward(u,l,t);e.moveAnchorForward(c).moveFocusForward(c)}},Ge.moveWordForward=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=e.moveFocusWordForward.apply(e,r)).moveToFocus.apply(t,r)},Ge.moveStartBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Xe,"start"].concat(n))},Ge.moveStartWordBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Je,"start"].concat(n))},Ge.moveStartForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ze,"start"].concat(n))},Ge.moveStartWordForward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[et,"start"].concat(n))},Ge.moveStartTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartTo"].concat(n))},Ge.moveStartToEndOfBlock=function(e){e.command(Ye,"start","end","block")},Ge.moveStartToEndOfDocument=function(e){e.moveStartToEndOfNode(e.value.document).moveToStart()},Ge.moveStartToEndOfInline=function(e){e.command(Ye,"start","end","inline")},Ge.moveStartToEndOfNextBlock=function(e){e.command(Qe,"start","end","next","block")},Ge.moveStartToEndOfNextInline=function(e){e.command(Qe,"start","end","next","inline")},Ge.moveStartToEndOfNextText=function(e){e.command(Qe,"start","end","next","text")},Ge.moveStartToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartToEndOfNode"].concat(n))},Ge.moveStartToEndOfPreviousBlock=function(e){e.command(Qe,"start","end","previous","block")},Ge.moveStartToEndOfPreviousInline=function(e){e.command(Qe,"start","end","previous","inline")},Ge.moveStartToEndOfPreviousText=function(e){e.command(Qe,"start","end","previous","text")},Ge.moveStartToEndOfText=function(e){e.command(Ye,"start","end","text")},Ge.moveStartToStartOfBlock=function(e){e.command(Ye,"start","start","block")},Ge.moveStartToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveStartToStartOfInline=function(e){e.command(Ye,"start","start","inline")},Ge.moveStartToStartOfNextBlock=function(e){e.command(Qe,"start","start","next","block")},Ge.moveStartToStartOfNextInline=function(e){e.command(Qe,"start","start","next","inline")},Ge.moveStartToStartOfNextText=function(e){e.command(Qe,"start","start","next","text")},Ge.moveStartToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveStartToStartOfNode"].concat(n))},Ge.moveStartToStartOfPreviousBlock=function(e){e.command(Qe,"start","start","previous","block")},Ge.moveStartToStartOfPreviousInline=function(e){e.command(Qe,"start","start","previous","inline")},Ge.moveStartToStartOfPreviousText=function(e){e.command(Qe,"start","start","previous","text")},Ge.moveStartToStartOfText=function(e){e.command(Ye,"start","start","text")},Ge.moveTo=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveTo"].concat(n))},Ge.moveToAnchor=function(e){e.command(Ke,"moveToAnchor")},Ge.moveToEnd=function(e){e.command(Ke,"moveToEnd")},Ge.moveToEndOfBlock=function(e){e.moveEndToEndOfBlock().moveToEnd()},Ge.moveToEndOfDocument=function(e){e.moveEndToEndOfNode(e.value.document).moveToEnd()},Ge.moveToEndOfInline=function(e){e.moveEndToEndOfInline().moveToEnd()},Ge.moveToEndOfNextBlock=function(e){e.moveEndToEndOfNextBlock().moveToEnd()},Ge.moveToEndOfNextInline=function(e){e.moveEndToEndOfNextInline().moveToEnd()},Ge.moveToEndOfNextText=function(e){e.moveEndToEndOfNextText().moveToEnd()},Ge.moveToEndOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToEndOfNode"].concat(n))},Ge.moveToEndOfPreviousBlock=function(e){e.moveStartToEndOfPreviousBlock().moveToStart()},Ge.moveToEndOfPreviousInline=function(e){e.moveStartToEndOfPreviousInline().moveToStart()},Ge.moveToEndOfPreviousText=function(e){e.moveStartToEndOfPreviousText().moveToStart()},Ge.moveToEndOfText=function(e){e.moveEndToEndOfText().moveToEnd()},Ge.moveToFocus=function(e){e.command(Ke,"moveToFocus")},Ge.moveToRangeOfDocument=function(e){e.moveToRangeOfNode(e.value.document)},Ge.moveToRangeOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToRangeOfNode"].concat(n))},Ge.moveToStart=function(e){e.command(Ke,"moveToStart")},Ge.moveToStartOfBlock=function(e){e.moveStartToStartOfBlock().moveToStart()},Ge.moveToStartOfDocument=function(e){e.moveStartToStartOfNode(e.value.document).moveToStart()},Ge.moveToStartOfInline=function(e){e.moveStartToStartOfInline().moveToStart()},Ge.moveToStartOfNextBlock=function(e){e.moveEndToStartOfNextBlock().moveToEnd()},Ge.moveToStartOfNextInline=function(e){e.moveEndToStartOfNextInline().moveToEnd()},Ge.moveToStartOfNextText=function(e){e.moveEndToStartOfNextText().moveToEnd()},Ge.moveToStartOfNode=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"moveToStartOfNode"].concat(n))},Ge.moveToStartOfPreviousBlock=function(e){e.moveStartToStartOfPreviousBlock().moveToStart()},Ge.moveToStartOfPreviousInline=function(e){e.moveStartToStartOfPreviousInline().moveToStart()},Ge.moveToStartOfPreviousText=function(e){e.moveStartToStartOfPreviousText().moveToStart()},Ge.moveToStartOfText=function(e){e.moveStartToStartOfText().moveToStart()},Ge.select=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Y.createProperties(t);var i=n.snapshot,o=void 0!==i&&i,a=e.value,s=a.document,l=a.selection,u={},c=l.setProperties(t);for(var d in c=s.resolveSelection(c),t=f()(c,Object.keys(t)))!0!==o&&Object(r.is)(t[d],l[d])||(u[d]=t[d]);if(l.marks&&!u.marks&&(u.anchor||u.focus)&&(u.marks=null),0!==Object.keys(u).length){var p=f()(l.toJSON(),Object.keys(u));e.applyOperation({type:"set_selection",value:a,properties:p,newProperties:u},o?{skip:!1,merge:!1}:{})}},Ge.setAnchor=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setAnchor"].concat(n))},Ge.setEnd=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setEnd"].concat(n))},Ge.setFocus=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setFocus"].concat(n))},Ge.setStart=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.command.apply(e,[Ke,"setStart"].concat(n))},Ge.snapshotSelection=function(e){e.withoutMerging((function(){e.select(e.value.selection,{snapshot:!0})}))};var tt={};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n){for(var r in e)t.registerQuery(r);return n()}function n(t,n,r){var i=t.type,o=t.args,a=e[i];if(!a)return r();var s=a.apply(void 0,[n].concat(P(o)));return void 0===s?r():s}return{onConstruct:t,onQuery:n}}tt.setData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.value,r=pe.createProperties({data:t}),i=f()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})},tt.addAnnotation=function(e,t){t=te.create(t),e.applyOperation({type:"add_annotation",annotation:t})},tt.removeAnnotation=function(e,t){t=te.create(t),e.applyOperation({type:"remove_annotation",annotation:t})},tt.setAnnotation=function(e,t,n){t=te.create(t),n=te.createProperties(n),e.applyOperation({type:"set_annotation",properties:t,newProperties:n})},tt.setAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.value,r=pe.createProperties({annotations:t}),i=f()(n,Object.keys(r));e.applyOperation({type:"set_value",properties:i,newProperties:r})};var rt=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));for(var i in r.code=e,n)r[i]=n[i];return Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=(new Error).stack,r}return O(t,e),t}(Error);function it(e){var t=e.rules,n=e.document,r=e.blocks,i=e.inlines,o=e.marks,a=e.annotations,s=e.decorations,l=[];if(t&&(l=l.concat(t)),n&&l.push(S({match:[{object:"document"}]},n)),r)for(var u in r)l.push(S({match:[{object:"block",type:u}]},r[u]));if(i)for(var c in i)l.push(S({match:[{object:"inline",type:c}]},i[c]));if(o)for(var d in o)l.push(S({match:[{object:"mark",type:d}]},o[d]));if(a)for(var f in a)l.push(S({match:[{object:"annotation",type:f}]},a[f]));if(s)for(var p in s)l.push(S({match:[{object:"decoration",type:p}]},s[p]));function h(e,t,n){var r=l.filter((function(t){return ot(e,t.match)})),i=at(e,r,l,{every:!0});return i?new rt(i.code,i):n()}return[{normalizeNode:function(e,t,n){var r=h(e,t,(function(){}));return r?function(){var e=r.rule,n=t.operations.size;e.normalize&&e.normalize(t,r),t.operations.size===n&&function(e,t){var n=t.code,r=t.node,i=t.child,o=t.next,a=t.previous,s=t.key,l=t.mark;switch(n){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return"text"===i.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(i.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return"text"===a.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(a.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return"text"===o.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(o.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return"document"===r.object?r.nodes.forEach((function(t){return e.removeNodeByKey(t.key)})):e.removeNodeByKey(r.key);case"node_data_invalid":return void 0===r.data.get(s)&&"document"!==r.object?e.removeNodeByKey(r.key):e.setNodeByKey(r.key,{data:r.data.delete(s)});case"node_mark_invalid":return r.getTexts().forEach((function(t){return e.removeMarkByKey(t.key,0,t.text.length,l)}));default:e.removeNodeByKey(r.key)}}(t,r)}:n()},validateNode:h},nt({isAtomic:function(e,t){var n=l.find((function(e){return"isAtomic"in e&&ot(t,e.match)}));return n&&n.isAtomic},isVoid:function(e,t){var n=l.find((function(e){return"isVoid"in e&&ot(t,e.match)}));return n&&n.isVoid}})]}function ot(e,t){return!at(e,t)}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.every,o=void 0!==i&&i,a=r.match,s=void 0===a?null:a;if("function"==typeof t){var l=t(e,s);return l?null:yt("node_invalid",{rule:t,node:e})}if(Array.isArray(t)){var u=t.length?t:[{}],c=void 0,d=!0,f=!1,p=void 0;try{for(var h,m=u[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var g=h.value,v=at(e,g,n);if(c=c||v,o&&v)return v;if(!o&&!v)return}}catch(e){f=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(f)throw p}}return c}var y=st(e,t)||lt(e,t)||ut(e,t)||ct(e,t)||dt(e,t)||ft(e,t)||pt(e,t)||ht(e,t,n);return y}function st(e,t){if(null!=t.object&&t.object!==e.object&&("function"!=typeof t.object||!t.object(e.object)))return yt("node_object_invalid",{rule:t,node:e})}function lt(e,t){if(null!=t.type&&t.type!==e.type&&("function"!=typeof t.type||!t.type(e.type)))return yt("node_type_invalid",{rule:t,node:e})}function ut(e,t){if(null!=t.data&&null!=e.data){if("function"==typeof t.data){if(t.data(e.data))return;return yt("node_data_invalid",{rule:t,node:e})}for(var n in t.data){var r=t.data[n],i=e.data&&e.data.get(n);if(!("function"==typeof r?r(i):r===i))return yt("node_data_invalid",{rule:t,node:e,key:n,value:i})}}}function ct(e,t){if(null!=t.marks){var n="text"===e.object?e.marks.toArray():e.getMarks().toArray(),r=function(n){return t.marks.some((function(e){return"function"==typeof e.type?e.type(n.type):e.type===n.type}))?"continue":{v:yt("node_mark_invalid",{rule:t,node:e,mark:n})}},i=!0,o=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=r(s.value);switch(u){case"continue":continue;default:if("object"===(void 0===u?"undefined":w(u)))return u.v}}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}}}function dt(e,t){if(null!=t.text){var n=e.text;if(!("function"==typeof t.text?t.text(n):t.text.test(n)))return yt("node_text_invalid",{rule:t,node:e,text:n})}}function ft(e,t){if(null!=t.first){var n=e.nodes.first();if(n){var r=at(n,t.first);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","first_child_"),r}}}function pt(e,t){if(null!=t.last){var n=e.nodes.last();if(n){var r=at(n,t.last);if(r)return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","last_child_"),r}}}function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null!=e.nodes){var r=e.nodes,i=null!=t.nodes?t.nodes.slice():[],o=0,a=0,s=null,l=-1,u=null,c=null,d=null,f=null,p=null;for(null!=t.nodes&&v();y();){var h=mt(e,d,n)||gt(e,d,f,l,n)||vt(e,d,p,l,n);if(h)return h;if(null!=t.nodes){if(!u)return yt("child_unknown",{rule:t,node:e,child:d,index:l});if(u.match){var m=at(d,u.match);if(m){if(null!=c&&o-1>c)return b(),yt("child_max_invalid",{rule:t,node:e,index:l,child:r.get(l),count:o,limit:c});var g=s;if(v()){if(a-1>=g){l-=1;continue}return null==at(d,u.match)?(b(),yt("child_min_invalid",{rule:t,node:e,index:l,count:a-1,limit:g})):(m.rule=t,m.node=e,m.child=d,m.index=l,m.code=m.code.replace("node_","child_"),m)}return null!=c&&o>c?yt("child_unknown",{rule:t,node:e,child:d,index:l}):(m.rule=t,m.node=e,m.child=d,m.index=l,m.code=m.code.replace("node_","child_"),m)}}}}if(null!=c&&o>c)return yt("child_max_invalid",{rule:t,node:e,index:l-1,count:o,child:r.get(l-1),limit:c});if(null!=t.nodes)do{if(o<s)return yt("child_min_invalid",{rule:t,node:e,index:l,count:o,limit:s})}while(v())}function v(){return 0!==i.length&&(u=i.shift(),a=o,o=0,s=u.min||null,c=u.max||null,!0)}function y(){return f=(l+=1)?r.get(l-1):null,d=r.get(l),p=r.get(l+1),!!d&&(a=o,o+=1,!0)}function b(){l>0&&(l-=1,o=a)}}function mt(e,t,n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(null!=l.parent&&ot(t,l.match)){var u=at(e,l.parent);if(u)return u.rule=l,u.parent=e,u.node=t,u.code=u.code.replace("node_","parent_"),u}}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}function gt(e,t,n,r,i){if(n){var o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;if(null!=c.previous&&ot(t,c.match)){var d=at(n,c.previous);if(d)return d.rule=c,d.node=e,d.child=t,d.index=r,d.previous=n,d.code=d.code.replace("node_","previous_sibling_"),d}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}}}function vt(e,t,n,r,i){if(n){var o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;if(null!=c.next&&ot(t,c.match)){var d=at(n,c.next,[],{match:t});if(d)return d.rule=c,d.node=e,d.child=t,d.index=r,d.next=n,d.code=d.code.replace("node_","next_sibling_"),d}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}}}function yt(e,t){return S({code:e},t)}function bt(e){e.value.selection.isExpanded&&e.delete()}var _t={};function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=ke(S({},De,Be,Ve,Ge,tt,_t)),i=nt({isAtomic:function(){return!1},isVoid:function(){return!1}}),o=it({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(e,t){var n=t.code,r=t.node;"child_min_invalid"===n&&r.nodes.isEmpty()&&e.insertNodeByKey(r.key,0,le.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=le.create(),o=void 0;if("first_child_object_invalid"===n)o=0;else{if("last_child_object_invalid"!==n)return;o=r.nodes.size}e.insertNodeByKey(r.key,o,i)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,i=t.index,o=le.create(),a=void 0;if("first_child_object_invalid"===n)a=0;else if("last_child_object_invalid"===n)a=r.nodes.size;else if("previous_sibling_object_invalid"===n)a=i;else{if("next_sibling_object_invalid"!==n)return;a=i+1}e.insertNodeByKey(r.key,a,o)}},{match:{object:"text"},next:function(e,t){return"text"!==e.object||!t.marks.equals(e.marks)},normalize:function(e,t){var n=t.code,r=t.next;"next_sibling_invalid"===n&&e.mergeNodeByKey(r.key)}},{match:{object:"text"},previous:function(e){return"text"!==e.object||""!==e.text},next:function(e){return"text"!==e.object||""!==e.text},normalize:function(e,t){var n=t.code,r=t.next,i=t.previous;"next_sibling_invalid"===n?e.removeNodeByKey(r.key):"previous_sibling_invalid"===n&&e.removeNodeByKey(i.key)}}]});return[o].concat(P(n),[r,i])}_t.addMark=function(e,t){t=$.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.addMarkAtRange(i,t);else if(i.marks){var o=i.marks.add(t),a=i.set("marks",o);e.select(a)}else{var s=r.getActiveMarksAtRange(i).add(t),l=i.set("marks",s);e.select(l)}},_t.addMarks=function(e,t){t.forEach((function(t){return e.addMark(t)}))},_t.delete=function(e){var t=e.value.selection;e.deleteAtRange(t),e.moveToFocus()},_t.deleteBackward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteBackwardAtRange(r,t)},_t.deleteCharBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharBackwardAtRange(t)},_t.deleteLineBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineBackwardAtRange(t)},_t.deleteWordBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordBackwardAtRange(t)},_t.deleteForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection;r.isExpanded?e.delete():e.deleteForwardAtRange(r,t)},_t.deleteCharForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharForwardAtRange(t)},_t.deleteLineForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineForwardAtRange(t)},_t.deleteWordForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordForwardAtRange(t)},_t.insertBlock=function(e,t){bt(e),t=de.create(t);var n=e.value.selection;e.insertBlockAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertFragment=function(e,t){if(t.nodes.size){bt(e);var n=e.value,r=n,i=r.document,o=r.selection,a=o.start,s=Array.from(i.texts(),(function(e){return A(e,1)[0].key}));e.insertFragmentAtRange(o,t);var l=(i=(n=e.value).document).getTexts().filter((function(e){return!s.includes(e.key)}));if(0!==l.size){var u=t.text.length,c=i.getNode(a.key)||l.first(),d=l.last()||c;if(c!==d){var f=i.getCommonAncestor(c.key,d.key),p=f.getOffset(c.key)+(a.key===c.key?a.offset:0);d=f.getTextAtOffset(p+u-1)||d,e.moveTo(d.key,p+u-f.getOffset(d.key))}else e.moveTo(d.key,u)}}},_t.insertInline=function(e,t){bt(e),t=oe.create(t);var n=e.value.selection;e.insertInlineAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertText=function(e,t,n){bt(e);var r=e.value,i=r.document,o=r.selection;n=n||o.marks||i.getInsertMarksAtRange(o),e.withoutNormalizing((function(){e.insertTextAtRange(o,t,n),o.marks&&i!==e.value.document&&e.select({marks:null})}))},_t.removeMark=function(e,t){t=$.create(t);var n=e.value,r=n.document,i=n.selection;if(i.isExpanded)e.removeMarkAtRange(i,t);else if(i.marks){var o=i.marks.remove(t),a=i.set("marks",o);e.select(a)}else{var s=r.getActiveMarksAtRange(i).remove(t),l=i.set("marks",s);e.select(l)}},_t.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},_t.setBlocks=function(e,t){var n=e.value.selection;e.setBlocksAtRange(n,t)},_t.setInlines=function(e,t){var n=e.value.selection;e.setInlinesAtRange(n,t)},_t.splitBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;bt(e);var n=e.value,r=n.selection,i=n.document,o=r.marks||i.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).moveToEnd(),o&&0!==o.size&&e.select({marks:o})},_t.splitInline=function(e,t){bt(e);var n=e.value.selection;e.splitInlineAtRange(n,t)},_t.toggleMark=function(e,t){t=$.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},_t.unwrapBlock=function(e,t){var n=e.value.selection;e.unwrapBlockAtRange(n,t)},_t.unwrapInline=function(e,t){var n=e.value.selection;e.unwrapInlineAtRange(n,t)},_t.wrapBlock=function(e,t){var n=e.value.selection;e.wrapBlockAtRange(n,t)},_t.wrapInline=function(e,t){var n=e.value.selection;e.wrapInlineAtRange(n,t)},_t.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value,i=r.selection;e.wrapTextAtRange(i,t,n),i.isCollapsed&&e.moveStartBackward(t.length),e.moveEndBackward(n.length),i.isForward!==e.value.selection.isForward&&e.flip()};var xt=u()("slate:editor"),kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var i=n.controller,o=void 0===i?this:i,a=n.construct,s=void 0===a||a,l=t.onChange,u=void 0===l?function(){}:l,c=t.plugins,d=void 0===c?[]:c,f=t.readOnly,p=void 0!==f&&f,h=t.value,m=void 0===h?pe.create():h;this.controller=o,this.middleware={},this.onChange=u,this.operations=Object(r.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var g=wt({plugins:d});Ot(this,g),s&&(this.run("onConstruct"),this.setReadOnly(p),this.setValue(m,n))}return k(e,[{key:"applyOperation",value:function(e){var t=this,n=this.operations,r=this.controller,i=this.value;o()(e)&&(e=S({},e,{value:i})),e=_e.create(e),this.withoutNormalizing((function(){r.save(e),i=t.value})),xt("apply",{operation:e}),this.value=e.apply(i),this.operations=n.push(e);var a=function(e){var t=e.type,n=e.node,r=e.path,i=e.newPath;switch(t){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":var o=z.getAncestors(r).toArray();return[].concat(P(o),[r]);case"insert_node":var a=n.getKeysToPathsTable(),s=Object.values(a).map((function(e){return r.concat(e)})),l=z.getAncestors(r).toArray();return[].concat(P(l),[r],P(s));case"split_node":var u=z.getAncestors(r).toArray(),c=z.increment(r);return[].concat(P(u),[r,c]);case"merge_node":var d=z.getAncestors(r).toArray(),f=z.decrement(r);return[].concat(P(d),[f]);case"move_node":if(z.isEqual(r,i))return[];var p=z.getAncestors(r).reduce((function(t,n){return t.push.apply(t,P(z.transform(n,e).toArray())),t}),[]),h=z.getAncestors(i).reduce((function(t,n){return t.push.apply(t,P(z.transform(n,e).toArray())),t}),[]);return[].concat(P(p),P(h));case"remove_node":var m=z.getAncestors(r).toArray();return[].concat(P(m));default:return[]}}(e),s=this.tmp.dirty.map((function(t){return t=z.create(t),z.transform(t,e).toArray()})),l={},u=Array.prototype.concat.apply(a,s);return this.tmp.dirty=[],u.forEach((function(e){var n=e.join(",");l[n]||t.tmp.dirty.push(e),l[n]=!0})),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then((function(){return t.flush()}))),r}},{key:"flush",value:function(){this.run("onChange");var e=this.value,t=this.operations,n=this.controller,i={value:e,operations:t};return this.operations=Object(r.List)(),this.tmp.flushing=!1,this.onChange(i),n}},{key:"command",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n)),Et(this),i;xt("command",{type:e,args:n});var o={type:e,args:n};return this.run("onCommand",o),Et(this),i}},{key:"hasCommand",value:function(e){var t=this.controller;return e in t&&t[e].__command}},{key:"hasQuery",value:function(e){var t=this.controller;return e in t&&t[e].__query}},{key:"normalize",value:function(){var e=this.value,t=this.controller,n=e.document,r=n.getKeysToPathsTable(),i=Object.values(r).map(z.create);this.tmp.dirty=this.tmp.dirty.concat(i),Et(this);var o=e.selection;return n=e.document,o.isUnset&&n.nodes.size&&t.moveToStartOfDocument(),t}},{key:"query",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller;if("function"==typeof e)return e.apply(void 0,[i].concat(n));xt("query",{type:e,args:n});var o={type:e,args:n};return this.run("onQuery",o)}},{key:"registerCommand",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__command)return n;Object(s.a)(!(e in n),"You cannot register a `"+e+"` command because it would overwrite an existing property of the `Editor`.");var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.command.apply(t,[e].concat(r))};return n[e]=r,r.__command=!0,n}},{key:"registerQuery",value:function(e){var t=this,n=this.controller;if(e in n&&n[e].__query)return n;Object(s.a)(!(e in n),"You cannot register a `"+e+"` query because it would overwrite an existing property of the `Editor`.");var r=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.query.apply(t,[e].concat(r))};return n[e]=r,r.__query=!0,n}},{key:"run",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.controller,o=this.middleware,a=o[e]||[],l=0;function u(){var e=a[l++];if(e){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];r.length&&(n=r);var s=e.apply(void 0,P(n).concat([i,u]));return s}}return Object.defineProperty(u,"change",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"onChange",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"props",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"schema",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(u,"stack",{get:function(){Object(s.a)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),u()}},{key:"setReadOnly",value:function(e){return this.readOnly=e,this}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.normalize,r=void 0===n?e!==this.value:n;return this.value=e,r&&this.normalize(),this}},{key:"withoutNormalizing",value:function(e){var t=this.controller,n=this.tmp.normalize;return this.tmp.normalize=!1,e(t),this.tmp.normalize=n,Et(this),t}},{key:"change",value:function(e){Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.apply(void 0,[this.controller].concat(n))}},{key:"call",value:function(e){Object(a.a)(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this.controller].concat(n)),this.controller}},{key:"applyOperations",value:function(e){var t=this;return Object(a.a)(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),e.forEach((function(e){return t.applyOperation(e)})),this.controller}},{key:"setOperationFlag",value:function(e,t){return Object(a.a)(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[e]=t,this}},{key:"getFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),void 0!==t[e]?t[e]:this.tmp[e]}},{key:"unsetOperationFlag",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[e],this}},{key:"withoutNormalization",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(e)}},{key:"editor",get:function(){return Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),e}();function Et(e){e.tmp.normalize&&e.tmp.dirty.length&&e.withoutNormalizing((function(){for(;e.tmp.dirty.length;){var t=e.tmp.dirty.pop();St(e,t)}}))}function St(e,t){for(var n=e.controller,r=e.value,i=r.document,o=i.assertNode(t),a=0,s=100+("text"===o.object?1:o.nodes.size);o;){var l=o.normalize(n);if(!l)break;l(n),i=(r=e.value).document;var u=o.key,c=i.getDescendant(t);if(c&&c.key===u)o=c;else{if(!(c=i.getDescendant(u)))break;o=c,t=i.getPath(u)}if(++a>s)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function Ot(e,t){if(Array.isArray(t))t.forEach((function(t){return Ot(e,t)}));else if(null!=t){var n=t.commands,r=t.queries,i=t.schema,o=C(t,["commands","queries","schema"]);if(n){var a=ke(n);Ot(e,a)}if(r){var s=nt(r);Ot(e,s)}if(i){var l=it(i);Ot(e,l)}for(var u in o){var c=o[u];(e.middleware[u]=e.middleware[u]||[]).push(c)}}}var Ct={marks:void 0,text:void 0},Tt=function(e){function t(){return x(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations((function(n){n.remove(e).add(t)}));return this.set("marks",r)}},{key:"addMark",value:function(e){var t=this.marks;return this.set("marks",t.add(e))}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map((function(e){return e.toJSON()}))}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(a.a)(!1,"As of slate@0.47 the `Leaf` model is deprecated."),t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=Object(r.List)().withMutations((function(n){e.findLast((function(e,r){var i=n.first();if(i){if(i.marks.equals(e.marks))return t=!0,void n.set(0,i.set("text",""+e.text+i.text));if(""===i.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)}))}));return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[Object(r.List)(),e];if(0===e.size)return[Object(r.List)(),Object(r.List)()];var n=0,i=-1,o=void 0,a=void 0;return e.find((function(e){i++;var r=n,s=e.text;if((n+=s.length)<t)return!1;if(r>t)return!1;var l=t-r;return o=e.set("text",s.slice(0,l)),a=e.set("text",s.slice(l)),!0})),o?""===o.text?0===i?[r.List.of(o),e]:[e.take(i),e.skip(i)]:""===a.text?i===e.size-1?[e,r.List.of(a)]:[e.take(i+1),e.skip(i+1)]:[e.take(i).push(o),e.skip(i+1).unshift(a)]:[e,Object(r.List)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.List.isList(e)||Array.isArray(e)){var n=new r.List(e.map(t.create));return n}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,i=void 0===n?"":n,o=e.marks,a=void 0===o?[]:o;return new t({text:i,marks:Object(r.Set)(a.map($.fromJSON))})}},{key:"isLeafList",value:function(e){return r.List.isList(e)&&e.every((function(e){return t.isLeaf(e)}))}}]),t}(Object(r.Record)(Ct));function At(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=!0,u=!1,c=void 0;try{for(var d,f=Object.getOwnPropertyNames(e)[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(!s.hasOwnProperty(p)){var h=Object.getOwnPropertyDescriptor(e,p);Object.defineProperty(s,p,h)}}}catch(e){u=!0,c=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}var m=!0,g=!1,v=void 0;try{for(var y,b=Object.getOwnPropertyNames(e.prototype)[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var _=y.value;if(!s.prototype.hasOwnProperty(_)){h=Object.getOwnPropertyDescriptor(e.prototype,_);Object.defineProperty(s.prototype,_,h)}}}catch(e){g=!0,v=e}finally{try{!m&&b.return&&b.return()}finally{if(g)throw v}}}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}Object.entries({Annotation:te,Block:de,Change:xe,Decoration:G,Document:re,Editor:kt,Inline:oe,Leaf:Tt,Mark:$,Node:ue,Operation:_e,Point:q,Range:J,Selection:Y,Text:le,Value:pe}).forEach((function(e){var t,n,r,i,o=A(e,2),a=o[0],s=o[1];return At((t=a.toLowerCase(),n=Q[t],r="is"+t.charAt(0).toUpperCase()+t.slice(1),(i=function(){function e(){x(this,e)}return k(e,[{key:"object",get:function(){return t}}]),e}())[r]=X.bind(null,t),i.prototype[n]=!0,i),[s])})),At(function(){function e(){x(this,e)}return k(e,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),e}(),[te,de,G,re,oe,Tt,$,ue,_e,q,J,Y,le,pe]);var Pt=!0,Rt=Symbol("LEAF"),jt=Symbol("STORE_KEY"),It=Symbol("undefined"),Mt=Symbol("null"),Lt=new WeakMap;function Dt(e,t){var n=function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!Pt)return n.apply(this,r);Lt.has(this)||Lt.set(this,{noArgs:{},hasArgs:{}});var o=Lt.get(this),a=o.noArgs,s=o.hasArgs,l=0!==r.length,u=void 0,c=void 0;if(void 0!==(u=l?Nt(s,c=[t].concat(r)):a[t]))return u===It?void 0:u;var d=n.apply(this,r),f=void 0===d?It:d;return l?Ft(s,c,f):a[t]=f,d}},r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){n(a.value)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}}function Nt(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(void 0===s?s=It:null==s&&(s=Mt),void 0===(e="object"===(void 0===s?"undefined":w(s))?e[jt]&&e[jt].get(s):e[s]))return}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e[Rt]}function Ft(e,t,n){var r=e,i=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value;if(void 0===u?u=It:null==u&&(u=Mt),"object"===(void 0===u?"undefined":w(u)))if(r[jt]||(r[jt]=new WeakMap),r[jt].has(u))r=r[jt].get(u);else{var c={};r[jt].set(u,c),r=c}else r[u]||(r[u]={}),r=r[u]}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return r[Rt]=n,e}function Bt(){Lt=new WeakMap}function zt(e){Pt=e}var Ut=function(){function e(){x(this,e)}return k(e,[{key:"getFirstText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.find((function(t){return"text"===t.object||!!(e=t.getFirstText())}));return e||t}},{key:"getKeysToPathsTable",value:function(){var e=E({},this.key,[]);return this.nodes&&this.nodes.forEach((function(t,n){var r=t.getKeysToPathsTable();for(var i in r){var o=r[i];Object(a.a)(!(i in e),'A node with a duplicate key of "'+i+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),e[i]=[n].concat(P(o))}})),e}},{key:"getLastText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.findLast((function(t){return"text"===t.object||(e=t.getLastText())}));return e||t}},{key:"getNode",value:function(e){return(e=this.resolvePath(e))?"text"===this.object&&e.size?null:e.size?this.getDescendant(e):this:null}},{key:"getPath",value:function(e){if(r.List.isList(e))return e;if(ue.isNode(e)&&this.descendants){var t=!0,n=!1,i=void 0;try{for(var o,a=this.descendants()[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value,l=A(s,2),u=l[0],c=l[1];if(e===u)return c}}catch(e){n=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw i}}}var d=this.getKeysToPathsTable()[e];return d?Object(r.List)(d):null}},{key:"getText",value:function(){return"text"===this.object?this.text:this.nodes.reduce((function(e,t){return e+t.text}),"")}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"normalize",value:function(e){return e.run("normalizeNode",this)}},{key:"regenerateKey",value:function(){var e=_.create();return this.set("key",e)}},{key:"resolvePath",value:function(e,t){return"string"==typeof e?(e=this.getPath(e),null!=t&&(e=e.concat(t))):e=z.create(e),e}},{key:"validate",value:function(e){return e.run("validateNode",this)}}]),e}();Dt(Ut.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),At(Ut,[de,re,oe,le]);var qt=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Wt(){return!0}var Ht=function(){function e(){x(this,e)}return k(e,[{key:"addMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.addMark(t),this.replaceNode(e,n)}},{key:"ancestors",value:function(e){return this.createIterable({path:e,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0})}},{key:"blocks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyLeaves,n=e.onlyRoots,r=e.onlyTypes,i=e.match,o=C(e,["onlyLeaves","onlyRoots","onlyTypes","match"]),a=this.descendants(S({includeDocument:!1,includeInlines:!1,includeTexts:!1},o,{match:function(e,o){return!(r&&!r.includes(e.type))&&((!n||1===o.size)&&(!(t&&!e.isLeafBlock())&&!(i&&!i(e,o))))}}));return a}},{key:"createAnnotation",value:function(e){return e=te.createProperties(e),this.resolveAnnotation(e)}},{key:"createDecoration",value:function(e){return e=G.createProperties(e),this.resolveDecoration(e)}},{key:"createIterable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.direction,n=void 0===t?"forward":t,r=e.downward,i=void 0===r||r,o=e.upward,a=void 0===o||o,s=e.includeBlocks,l=void 0===s||s,u=e.includeDocument,c=void 0===u||u,d=e.includeInlines,f=void 0===d||d,p=e.includeRoot,h=void 0!==p&&p,m=e.includeTarget,g=void 0===m?!!e.range:m,v=e.includeTargetAncestors,y=void 0!==v&&v,b=e.includeTexts,_=void 0===b||b,w=e.match,x=void 0===w?null:w,k=this,S=null,O=null;e.range?(O=k.resolveRange(e.range),S=k.resolvePath(O.start.path)):e.path&&(S=k.resolvePath(e.path));var C=S&&k.assertNode(S),T="undefined"==typeof window?qt.Set:window.Set;return E({},Symbol.iterator,(function(){var e=new T,t=O&&O.start.path,r=O&&O.end.path,o=S,s=C,u=!1,d=!1,p=!1,m=function(){return o&&s?(h||s!==k)&&(l||"block"!==s.object)&&(c||"document"!==s.object)&&(f||"inline"!==s.object)&&(_||"text"!==s.object)?x&&!x(s,o)?v():{value:[s,o],done:!1}:v():{done:!0}},v=function l(){if(!o||!s)return m();if(t&&!d)return p?o.size===t.size-1?(d=!0,o=S,s=C,l()):(o=t.slice(0,o.size+1),s=k.assertNode(o),m()):(p=!0,o=z.create([]),s=k,m());if(g&&!u)return u=!0,m();if(r&&o.equals(r))return s=null,o=null,l();if(i&&s.nodes&&s.nodes.size&&!e.has(s)){e.add(s);var c="forward"===n?0:s.nodes.size-1;return o=o.push(c),s=k.assertNode(o),m()}if("forward"===n){var f=z.increment(o),h=k.getNode(f);if(h)return o=f,s=h,m()}if("backward"===n&&0!==o.last()){var v=z.decrement(o),b=k.getNode(v);if(b)return o=v,s=b,m()}return a&&o.size?(o=z.lift(o),s=k.assertNode(o),e.has(s)?l():(e.add(s),y?m():l())):(o=null,s=null,l())};return{next:v}}))}},{key:"createPoint",value:function(e){return e=q.createProperties(e),this.resolvePoint(e)}},{key:"createRange",value:function(e){return e=J.createProperties(e),this.resolveRange(e)}},{key:"createSelection",value:function(e){return e=Y.createProperties(e),this.resolveSelection(e)}},{key:"descendants",value:function(e){return this.createIterable(S({path:[]},e))}},{key:"filterDescendants",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=[],n=!0,i=!1,o=void 0;try{for(var a,s=this.descendants()[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value,u=A(l,2),c=u[0],d=u[1];e(c,d)&&t.push(c)}}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return Object(r.List)(t)}},{key:"findDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value,s=A(a,2),l=s[0],u=s[1];if(e(l,u))return l}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"forEachDescendant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=!0,n=!1,r=void 0;try{for(var i,o=this.descendants()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value,s=e.apply(void 0,P(a));if(!1===s)return}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"getActiveMarksAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(r.Set)();if(e.isCollapsed){var t=e.start;return this.getInsertMarksAtPoint(t)}var n=e,i=n.start,o=n.end,a=i.path,s=i.offset,l=o.path,u=o.offset,c=this.getDescendant(a),d=this.getDescendant(l);if(!a.equals(l)){for(;!a.equals(l)&&0===u;){var f=this.texts({path:l,direction:"backward"}),p=A(f,1),h=A(p[0],2);d=h[0],l=h[1],u=d.text.length}for(;!a.equals(l)&&s===c.text.length;){var m=this.texts({path:a}),g=A(m,1),v=A(g[0],2);c=v[0],a=v[1],s=0}}if(a.equals(l))return c.marks;var y=c.marks;if(0===y.size)return Object(r.Set)();var b=d.marks,_=y.intersect(b);if(0===_.size)return _;var w=this.texts({path:a}),x=A(w,1),k=A(x[0],2);for(c=k[0],a=k[1];!a.equals(l);){if(0!==c.text.length&&0===(_=_.intersect(c.marks)).size)return Object(r.Set)();var E=this.texts({path:a}),S=A(E,1),O=A(S[0],2);c=O[0],a=O[1]}return _}},{key:"getAncestors",value:function(e){var t=this.ancestors(e),n=Array.from(t,(function(e){return A(e,1)[0]})).reverse();return Object(r.List)(n)}},{key:"getBlocks",value:function(){var e=this.blocks({onlyLeaves:!0}),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getBlocksByType",value:function(e){var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getChild",value:function(e){return!(e=this.resolvePath(e))||e.size>1?null:this.nodes.get(e.first())}},{key:"getClosest",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=this.ancestors(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=A(s,2),u=l[0];if(t(u,l[1]))return u}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}},{key:"getClosestBlock",value:function(e){return this.getClosest(e,(function(e){return"block"===e.object}))}},{key:"getClosestInline",value:function(e){return this.getClosest(e,(function(e){return"inline"===e.object}))}},{key:"getClosestVoid",value:function(e,t){return Object(s.a)(!pe.isValue(t),"As of Slate 0.42.0, the `node.getClosestVoid` method takes an `editor` instead of a `value`."),this.getClosest(e,(function(e){return t.isVoid(e)}))}},{key:"getCommonAncestor",value:function(e,t){if(e=this.resolvePath(e),t=this.resolvePath(t),!e||!t)return null;var n=z.relate(e,t);return this.getNode(n)}},{key:"getDecorations",value:function(e){var t=e.run("decorateNode",this);return t=G.createList(t)}},{key:"getDepth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!(e=this.resolvePath(e)))return null;var n=this.getNode(e),r=n?e.size-1+t:null;return r}},{key:"getDescendant",value:function(e){if(!(e=this.resolvePath(e))||!e.size)return null;var t=this;return e.forEach((function(e){return!!(t=t.getIn(["nodes",e]))})),t}},{key:"getDescendantsAtRange",value:function(e){var t=this.descendants({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getFragmentAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return re.create();for(var t=e,n=t.start,r=t.end,i=this,o=r.path,a=r.offset,s="end";o.size;){var l=o.last();i=i.splitNode(o,a),a=l+1,(o=z.lift(o)).size||"end"!==s||(o=n.path,a=n.offset,s="start")}var u=n.path.first()+1,c=r.path.first()+2,d=i.nodes.slice(u,c);return re.create({nodes:d})}},{key:"getFurthest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt,n=this.ancestors(e),r=Array.from(n).reverse(),i=!0,o=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value,c=A(u,2),d=c[0],f=c[1];if(t(d,f))return d}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return null}},{key:"getFurthestBlock",value:function(e){return this.getFurthest(e,(function(e){return"block"===e.object}))}},{key:"getFurthestChild",value:function(e){return(e=this.resolvePath(e))&&e.size?this.nodes.get(e.first()):null}},{key:"getFurthestInline",value:function(e){return this.getFurthest(e,(function(e){return"inline"===e.object}))}},{key:"getInlines",value:function(){var e=this.inlines({onlyLeaves:!0}),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getInlinesByType",value:function(e){var t=this.inlines({onlyLeaves:!0,onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getInsertMarksAtPoint",value:function(e){var t=e=this.resolvePoint(e),n=t.path,r=t.offset,i=this.getDescendant(n);if(0!==r)return i.marks;var o=void 0,a=void 0,s=!0,l=!1,u=void 0;try{for(var c,d=this.ancestors(n)[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value,p=A(f,2),h=p[0],m=p[1];"block"===h.object&&(o=h,a=m)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}var g=z.drop(n,a.size),v=o.texts({path:g,direction:"backward"}),y=A(v,1)[0];return y?A(y,1)[0].marks:i.marks}},{key:"getInsertMarksAtRange",value:function(e){var t=(e=this.resolveRange(e)).start;return e.isUnset?Object(r.Set)():e.isCollapsed?this.getInsertMarksAtPoint(t):this.getDescendant(t.path).marks}},{key:"getLeafBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getLeafInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyLeaves:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getNodesToPathsMap",value:function(){var e="undefined"==typeof window?new qt.Map:new window.Map;return e.set(this,z.create([])),this.forEachDescendant((function(t,n){e.set(t,n)})),e}},{key:"getMarks",value:function(){var e=this.marks(),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(t)}},{key:"getMarksAtRange",value:function(e){var t=this.marks({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(n)}},{key:"getMarksByType",value:function(e){var t=this.marks({onlyTypes:[e]}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.OrderedSet)(n)}},{key:"getNextBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0}),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextNode",value:function(e){var t=this.createIterable({path:e,downward:!1}),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextSibling",value:function(e){var t=this.siblings(e),n=A(t,1)[0];return n?n[0]:null}},{key:"getNextText",value:function(e){var t=this.texts({path:e}),n=A(t,1)[0];return n?n[0]:null}},{key:"getOffset",value:function(e){e=this.resolvePath(e),this.assertDescendant(e);var t=e.first(),n=this.nodes.slice(0,t).reduce((function(e,t){return e+t.text.length}),0);return 1===e.size?n:n+this.nodes.get(t).getOffset(z.drop(e))}},{key:"getOffsetAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e.start;return this.getOffset(t.path)+t.offset}},{key:"getParent",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=z.lift(e);return this.getNode(t)}},{key:"getPreviousBlock",value:function(e){var t=this.blocks({path:e,onlyLeaves:!0,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousNode",value:function(e){var t=this.createIterable({path:e,downward:!1,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousSibling",value:function(e){var t=this.siblings(e,{direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getPreviousText",value:function(e){var t=this.texts({path:e,direction:"backward"}),n=A(t,1)[0];return n?n[0]:null}},{key:"getRootBlocksAtRange",value:function(e){var t=this.blocks({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getRootInlinesAtRange",value:function(e){var t=this.inlines({range:e,onlyRoots:!0}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"getTextAtOffset",value:function(e){if(0===e)return this.getFirstText();if(e===this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0,n=!0,r=!1,i=void 0;try{for(var o,a=this.texts()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=A(s,1)[0];if((t+=l.text.length)>e)return l}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}},{key:"getTextDirection",value:function(){var e=g()(this.text);return"neutral"===e?null:e}},{key:"getTexts",value:function(){var e=this.texts(),t=Array.from(e,(function(e){return A(e,1)[0]}));return Object(r.List)(t)}},{key:"getTextsAtRange",value:function(e){var t=this.texts({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"hasBlockChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"block"===e.object})))}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasInlineChildren",value:function(){return!(!this.nodes||!this.nodes.find((function(e){return"inline"===e.object||"text"===e.object})))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasVoidParent",value:function(e,t){return Object(s.a)(!pe.isValue(t),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`."),!!this.getClosestVoid(e,t)}},{key:"inlines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onlyLeaves,r=t.onlyRoots,i=t.onlyTypes,o=t.match,a=C(t,["onlyLeaves","onlyRoots","onlyTypes","match"]),s=this.descendants(S({includeBlocks:!1,includeTexts:!1,includeDocument:!1},a,{match:function(t,a){return!(i&&!i.includes(t.type))&&(!(n&&!t.isLeafInline())&&((!r||"block"===e.getParent(a).object)&&!(o&&!o(t,a))))}}));return s}},{key:"insertNode",value:function(e,t){var n=(e=this.resolvePath(e)).last(),r=z.lift(e),i=this.assertNode(r),o=i.nodes.splice(n,0,t);return i=i.set("nodes",o),this.replaceNode(r,i)}},{key:"insertText",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.insertText(t,n),this.replaceNode(e,r)}},{key:"isLeafBlock",value:function(){return"block"===this.object&&!this.nodes.some((function(e){return"block"===e.object}))}},{key:"isLeafInline",value:function(){return"inline"===this.object&&!this.nodes.some((function(e){return"inline"===e.object}))}},{key:"isInRange",value:function(e,t){if(e=this.resolvePath(e),(t=this.resolveRange(t)).isUnset)return!1;var n=z.compare(e,t.start.path),r=z.compare(e,t.end.path),i=-1!==n&&1!==r;return i}},{key:"mapChildren",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,n=this.nodes;n.forEach((function(r,i){var o=t(r,i,e.nodes);o!==r&&(n=n.set(o.key,o))}));var r=this.set("nodes",n);return r}},{key:"mapDescendants",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,n=this.nodes;n.forEach((function(r,i){var o=r;"text"!==o.object&&(o=o.mapDescendants(t)),(o=t(o,i,e.nodes))!==r&&(n=n.set(i,o))}));var r=this.set("nodes",n);return r}},{key:"marks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlyTypes,n=void 0===t?null:t,r=e.match,i=C(e,["onlyTypes","match"]),o=this.texts(i);return E({},Symbol.iterator,(function(){var e=o[Symbol.iterator](),t=null,i=null,a=[];return{next:function o(){if(a.length){var s=a.shift();return n&&!n.includes(s.type)||r&&!r(s,t,i)?o():{value:[s,t,i],done:!1}}var l=e.next(),u=l.value;if(l.done)return{done:!0};var c=A(u,2);return t=c[0],i=c[1],a=t.marks.toArray(),o()}}}))}},{key:"mergeNode",value:function(e){var t=this.assertNode(e);if(0===(e=this.resolvePath(e)).last())throw new Error("Unable to merge node because it has no previous sibling: "+t);var n=z.decrement(e),r=this.assertNode(n);if(r.object!==t.object)throw new Error("Unable to merge two different kinds of nodes: "+r+" and "+t);var i="text"===r.object?r.mergeText(t):r.set("nodes",r.nodes.concat(t.nodes)),o=this;return o=(o=(o=o.removeNode(e)).removeNode(n)).insertNode(n,i)}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.assertNode(e);e=this.resolvePath(e),t=this.resolvePath(t,n);var i=z.lift(t);this.assertNode(i);var o=_e.create({type:"move_node",path:e,newPath:t});t=z.transform(e,o).first();var a=this;return a=(a=a.removeNode(e)).insertNode(t,r)}},{key:"removeMark",value:function(e,t){e=this.resolvePath(e);var n=this.assertDescendant(e);return n=n.removeMark(t),this.replaceNode(e,n)}},{key:"removeNode",value:function(e){this.assertDescendant(e);var t=(e=this.resolvePath(e)).flatMap((function(e){return["nodes",e]}));return this.deleteIn(t)}},{key:"removeText",value:function(e,t,n){var r=this.assertDescendant(e);return r=r.removeText(t,n.length),this.replaceNode(e,r)}},{key:"replaceNode",value:function(e,t){if(!(e=this.resolvePath(e)))throw new Error("Unable to replace a node because it could not be found in the first place: "+e);if(!e.size)return t;this.assertNode(e);var n=e.flatMap((function(e){return["nodes",e]}));return this.setIn(n,t)}},{key:"resolveAnnotation",value:function(e){return e=(e=te.create(e)).normalize(this)}},{key:"resolveDecoration",value:function(e){return e=(e=G.create(e)).normalize(this)}},{key:"resolvePoint",value:function(e){return e=(e=q.create(e)).normalize(this)}},{key:"resolveRange",value:function(e){return e=(e=J.create(e)).normalize(this)}},{key:"resolveSelection",value:function(e){return e=(e=Y.create(e)).normalize(this)}},{key:"setNode",value:function(e,t){var n=this.assertNode(e);return n=n.merge(t),this.replaceNode(e,n)}},{key:"setMark",value:function(e,t,n){e=this.resolvePath(e);var r=this.assertDescendant(e);return r=r.setMark(t,n),this.replaceNode(e,r)}},{key:"siblings",value:function(e,t){return this.createIterable(S({path:e,upward:!1,downward:!1},t))}},{key:"splitNode",value:function(e,t,n){var r=this.assertNode(e);e=this.resolvePath(e);var i=void 0,o=void 0;if("text"===r.object){var a=r.splitText(t),s=A(a,2);i=s[0],o=s[1]}else{var l=r.nodes.take(t),u=r.nodes.skip(t);i=r.set("nodes",l),o=r.set("nodes",u).regenerateKey()}n&&"text"!==r.object&&(o=o.merge(n));var c=this;return c=(c=(c=c.removeNode(e)).insertNode(e,o)).insertNode(e,i)}},{key:"texts",value:function(e){return this.descendants(S({includeBlocks:!1,includeInlines:!1,includeDocument:!1},e))}},{key:"getBlocksAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(e)}},{key:"getBlocksAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(e)}},{key:"getInlinesAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(e)}},{key:"getInlinesAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(e)}},{key:"getNextTextAndPath",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(e)}},{key:"getNextDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};Object(a.a)(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var n=this.getNextMatchingNodeAndPath(e);if(!n)return null;for(var r=A(n,2),i=r[0],o=r[1],s=void 0,l=function(){return s="text"!==i.object&&i.findFirstDescendantAndPath(t,o)};l(s);){var u=s,c=A(u,2);i=c[0],o=c[1]}return i?t(i)?[i,o]:this.getNextDeepMatchingNodeAndPath(n[1],t):null}},{key:"getPreviousTextAndPath",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(e)}},{key:"findFirstDescendantAndPath",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(Object(a.a)(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){var r=e.slice(0,n);if(0!==r.last()){for(var i=z.decrement(r),o=this.getNode(i);o&&!t(o);)i=z.decrement(i),o=this.getNode(i);if(o)return[o,i]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};Object(a.a)(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var n=this.getPreviousMatchingNodeAndPath(e);if(!n)return null;for(var r=A(n,2),i=r[0],o=r[1],s=void 0,l=function(){return s="text"!==i.object&&i.findLastDescendantAndPath(t,o)};l(s);){var u=s,c=A(u,2);i=c[0],o=c[1]}return i?t(i)?[i,o]:this.getPreviousDeepMatchingNodeAndPath(n[1],t):null}},{key:"findLastDescendantAndPath",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(e,t,!0)}},{key:"findDescendantAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.create([]),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(a.a)(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var r=void 0,i=void 0;return this.forEachDescendantWithPath((function(t,n,o){if(e(t,n,o))return r=t,i=n,!1}),t,n),r?[r,i]:null}},{key:"forEachDescendantWithPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.create([]),n=arguments[2];Object(a.a)(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var r=this.nodes,i=void 0;return n&&(r=r.reverse()),r.forEach((function(o,a){var s=t.concat(a);return!1===e(o,s,r)?(i=!1,!1):"text"!==o.object?i=o.forEachDescendantWithPath(e,s,n):void 0})),i}},{key:"getNextMatchingNodeAndPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(Object(a.a)(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!e)return null;for(var n=e.size;n>0;n--){for(var r=e.slice(0,n),i=z.increment(r),o=this.getNode(i);o&&!t(o);)i=z.increment(i),o=this.getNode(i);if(o)return[o,i]}return null}},{key:"getSelectionIndexes",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Object(a.a)(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var n=e.start,r=e.end;if(!t)return null;if(e.isUnset)return null;if(n.path.equals(r.path)){var i=this.getFurthestAncestor(n.path),o=i?this.nodes.indexOf(i):null;return{start:o,end:o+1}}var s=null,l=null;return this.nodes.forEach((function(e,t){return"text"===e.object?(null==s&&e.key===n.key&&(s=t),null==l&&e.key===r.key&&(l=t+1)):(null==s&&e.hasDescendant(n.key)&&(s=t),null==l&&e.hasDescendant(r.key)&&(l=t+1)),null==s||null==l})),t&&null==s&&(s=0),t&&null==l&&(l=this.nodes.size),null==s?null:{start:s,end:l}}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),e=this.resolvePath(e),t=this.resolvePath(t),this.getTextsBetweenPathPositionsAsArray(e,t)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,i){Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),e=this.resolvePath(e),n=this.resolvePath(n);var o=this.getDescendant(e);if(z.isEqual(e,n))return o.marks;var s=this.getTextsBetweenPathPositionsAsArray(e,n);return Object(r.OrderedSet)().withMutations((function(e){s.forEach((function(t){e.union(t.marks)}))}))}},{key:"getTextsBetweenPathPositionsAsArray",value:function(e,t){if(Object(a.a)(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),e&&t&&z.isEqual(e,t))return[this.getDescendant(e)];if(!e&&!t)return this.getTextsAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,a){if("text"===o.object)i.push(o);else{var s=e&&0===a?z.drop(e):null,l=t&&a===r-n?z.drop(t):null;i=i.concat(o.getTextsBetweenPathPositionsAsArray(s,l))}})),i}},{key:"getFurthestAncestor",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(e)}},{key:"getLeafBlocksAtRangeAsArray",value:function(e){if(Object(a.a)(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset)return[];var t=e,n=t.start,r=t.end;return this.getLeafBlocksBetweenPathPositionsAsArray(n.path,r.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(e,t){if(Object(a.a)(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),e&&t&&z.isEqual(e,t))return[this.getClosestBlock(e)];if(!e&&!t)return this.getBlocksAsArray();var n=e?e.get(0,0):0,r=t?t.get(0,this.nodes.size-1):this.nodes.size-1,i=[];return this.nodes.slice(n,r+1).forEach((function(o,a){if("block"===o.object)if(o.isLeafBlock())i.push(o);else{var s=e&&0===a?z.drop(e):null,l=t&&a===r-n?z.drop(t):null;i=i.concat(o.getLeafBlocksBetweenPathPositionsAsArray(s,l))}})),i}},{key:"getBlocksAsArray",value:function(){Object(a.a)(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var e=this.blocks({onlyLeaves:!0});return Array.from(e,(function(e){return A(e,1)[0]}))}},{key:"getBlocksByTypeAsArray",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var t=this.blocks({onlyLeaves:!0,onlyTypes:[e]});return Array.from(t,(function(e){return A(e,1)[0]}))}},{key:"getFurthestOnlyChildAncestor",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var t=this.getAncestors(e);return t&&t.rest().reverse().takeUntil((function(e){return e.nodes.size>1})).last()||null}},{key:"getInlinesAsArray",value:function(){return Object(a.a)(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0}),(function(e){return A(e,1)[0]}))}},{key:"getInlinesByTypeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated."),Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[e]}),(function(e){return A(e,1)[0]}))}},{key:"getLeafInlinesAtRangeAsArray",value:function(e){var t=this;return Object(a.a)(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?[]:this.getTextsAtRangeAsArray(e).map((function(e){return t.getClosestInline(e.key)})).filter((function(e){return e}))}},{key:"getOrderedMarks",value:function(){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(e)}},{key:"getOrderedMarksByType",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(e)}},{key:"getMarksByTypeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated."),this.nodes.reduce((function(t,n){return"text"===n.object?t.concat(n.marks.filter((function(t){return t.type===e}))):t.concat(n.getMarksByTypeAsArray(e))}),[])}},{key:"getMarksAsArray",value:function(){var e;Object(a.a)(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var t=[],n=!0,r=!1,i=void 0;try{for(var o,s=this.texts()[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value,u=A(l,1)[0];t.push(u.marks.toArray())}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return(e=[]).concat.apply(e,t)}},{key:"getRootInlinesAtRangeAsArray",value:function(e){var t=this;return Object(a.a)(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),(e=this.resolveRange(e)).isUnset?Object(r.List)():this.getTextsAtRangeAsArray(e).map((function(e){return t.getFurthestInline(e.key)})).filter((function(e){return e}))}},{key:"getTextsAsArray",value:function(){Object(a.a)(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var e=this.texts();return Array.from(e,(function(e){return A(e,1)[0]}))}},{key:"getTextsAtRangeAsArray",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var t=this.texts({range:e});return Array.from(t,(function(e){return A(e,1)[0]}))}},{key:"getMarksAtPosition",value:function(e,t){Object(a.a)(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),e=this.resolvePath(e);var n=this.getDescendant(e).marks;if(0!==t)return Object(r.OrderedSet)(n);var i=this.getClosestBlock(e);if(""===i.text)return Object(r.OrderedSet)(n);var o=this.texts({path:e,direction:"backward"}),s=A(o,1)[0];if(!s)return Object(r.OrderedSet)();var l=A(s,2),u=l[0],c=l[1];return i.hasDescendant(c)?Object(r.OrderedSet)(u.marks):Object(r.OrderedSet)(n)}},{key:"getNodesAtRange",value:function(e){Object(a.a)(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var t=this.descendants({range:e}),n=Array.from(t,(function(e){return A(e,1)[0]}));return Object(r.List)(n)}},{key:"isNodeInRange",value:function(e,t){return Object(a.a)(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(e,t)}},{key:"text",get:function(){return this.getText()}}]),e}(),$t=function(e){Ht.prototype["assert"+e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this["get"+e].apply(this,[t].concat(r));if(null==o)throw new Error("`Node.assert"+e+"` could not find node with path or key: "+t);return o}},Vt=!0,Gt=!1,Kt=void 0;try{for(var Yt,Qt=["Child","Depth","Descendant","Node","Parent","Path"][Symbol.iterator]();!(Vt=(Yt=Qt.next()).done);Vt=!0){$t(Yt.value)}}catch(e){Gt=!0,Kt=e}finally{try{!Vt&&Qt.return&&Qt.return()}finally{if(Gt)throw Kt}}Dt(Ht.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),At(Ht,[de,re,oe]),At(function(){function e(){x(this,e)}return k(e,[{key:"flip",value:function(){return this.setPoints([this.focus,this.anchor])}},{key:"moveForward",value:function(e){return this.updatePoints((function(t){return t.moveForward(e)}))}},{key:"moveBackward",value:function(e){return this.updatePoints((function(t){return t.moveBackward(e)}))}},{key:"moveAnchorBackward",value:function(e){return this.setAnchor(this.anchor.moveBackward(e))}},{key:"moveAnchorForward",value:function(e){return this.setAnchor(this.anchor.moveForward(e))}},{key:"moveAnchorTo",value:function(e,t){return this.setAnchor(this.anchor.moveTo(e,t))}},{key:"moveAnchorToStartOfNode",value:function(e){return this.setAnchor(this.anchor.moveToStartOfNode(e))}},{key:"moveAnchorToEndOfNode",value:function(e){return this.setAnchor(this.anchor.moveToEndOfNode(e))}},{key:"moveEndBackward",value:function(e){return this.setEnd(this.end.moveBackward(e))}},{key:"moveEndForward",value:function(e){return this.setEnd(this.end.moveForward(e))}},{key:"moveEndTo",value:function(e,t){return this.setEnd(this.end.moveTo(e,t))}},{key:"moveEndToStartOfNode",value:function(e){return this.setEnd(this.end.moveToStartOfNode(e))}},{key:"moveEndToEndOfNode",value:function(e){return this.setEnd(this.end.moveToEndOfNode(e))}},{key:"moveFocusBackward",value:function(e){return this.setFocus(this.focus.moveBackward(e))}},{key:"moveFocusForward",value:function(e){return this.setFocus(this.focus.moveForward(e))}},{key:"moveFocusTo",value:function(e,t){return this.setFocus(this.focus.moveTo(e,t))}},{key:"moveFocusToStartOfNode",value:function(e){return this.setFocus(this.focus.moveToStartOfNode(e))}},{key:"moveFocusToEndOfNode",value:function(e){return this.setFocus(this.focus.moveToEndOfNode(e))}},{key:"moveStartBackward",value:function(e){return this.setStart(this.start.moveBackward(e))}},{key:"moveStartForward",value:function(e){return this.setStart(this.start.moveForward(e))}},{key:"moveStartTo",value:function(e,t){return this.setStart(this.start.moveTo(e,t))}},{key:"moveStartToStartOfNode",value:function(e){return this.setStart(this.start.moveToStartOfNode(e))}},{key:"moveStartToEndOfNode",value:function(e){return this.setStart(this.start.moveToEndOfNode(e))}},{key:"moveTo",value:function(e,t){return this.updatePoints((function(n){return n.moveTo(e,t)}))}},{key:"moveToAnchor",value:function(){return this.setFocus(this.anchor)}},{key:"moveToEnd",value:function(){return this.setStart(this.end)}},{key:"moveToEndOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToEndOfNode(e)}))}},{key:"moveToFocus",value:function(){return this.setAnchor(this.focus)}},{key:"moveToRangeOfNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.setPoints([this.anchor.moveToStartOfNode(e),this.focus.moveToEndOfNode(t)]);return n}},{key:"moveToStart",value:function(){return this.setEnd(this.start)}},{key:"moveToStartOfNode",value:function(e){return this.updatePoints((function(t){return t.moveToStartOfNode(e)}))}},{key:"normalize",value:function(e){return this.updatePoints((function(t){return t.normalize(e)}))}},{key:"setAnchor",value:function(e){return this.set("anchor",e)}},{key:"setEnd",value:function(e){return this.isBackward?this.setAnchor(e):this.setFocus(e)}},{key:"setFocus",value:function(e){return this.set("focus",e)}},{key:"setPoints",value:function(e){var t=A(e,2),n=t[0],r=t[1];return this.set("anchor",n).set("focus",r)}},{key:"updatePoints",value:function(e){var t=this.anchor,n=this.focus;return t=e(t),n=e(n),this.merge({anchor:t,focus:n})}},{key:"setStart",value:function(e){return this.isBackward?this.setFocus(e):this.setAnchor(e)}},{key:"setProperties",value:function(e){var t=e=J.createProperties(e),n=t.anchor,r=t.focus,i=C(t,["anchor","focus"]);return n&&(i.anchor=q.create(n)),r&&(i.focus=q.create(r)),this.merge(i)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)};return t}},{key:"toRange",value:function(){var e=J.createProperties(this);return J.create(e)}},{key:"unset",value:function(){return this.updatePoints((function(e){return e.unset()}))}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var e=this.isUnset,t=this.anchor,n=this.focus;return e?null:t.key===n.key?t.offset>n.offset:z.isBefore(n.path,t.path)}},{key:"isForward",get:function(){var e=this.isBackward;return null==e?null:!e}},{key:"isUnset",get:function(){var e=this.anchor,t=this.focus;return e.isUnset||t.isUnset}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),e}(),[te,G,J,Y]);var Xt={Annotation:te,Block:de,Change:xe,Data:W,Decoration:G,Document:re,Editor:kt,Inline:oe,KeyUtils:_,Leaf:Tt,Mark:$,Node:ue,Operation:_e,PathUtils:z,Point:q,Range:J,resetMemoization:Bt,Selection:Y,Text:le,TextUtils:Me,useMemoization:zt,Value:pe};t.default=Xt}.call(this,n(56))},function(e,t,n){"use strict";function r(e,t,n){for(var r,o,a=n||i,s=0,l=e.length,u=!1;s<l;)(o=+a(e[r=s+(l-s>>1)],t))<0?s=r+1:(l=r,u=!o);return u?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return"function"==typeof n?n(t,e[i-1],e[i])>0?i-1:i:e[i-1]-t<t-e[i]?i-1:i}return r-1}function a(e,t,n){for(;t<n;){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function s(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function l(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function u(e,t,n){var r=t||i;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u}))},function(e,t,n){"use strict";var r,i=n(4),o=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};o.isRequired=o;var a=function(){return o};function s(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof i.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}function l(e){function t(t,n,r,i,o,a){for(var s=arguments.length,l=Array(s>6?s-6:0),u=6;u<s;u++)l[u-6]=arguments[u];if(a=a||r,i=i||"<<anonymous>>",null!=n[r])return e.apply(void 0,[n,r,i,o,a].concat(l));var c=o;return t?new Error("Required "+c+" `"+a+"` was not specified in `"+i+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function u(e,t){return n="Iterable."+e,r=function(e){return i.Iterable.isIterable(e)&&t(e)},l((function(e,t,i,o,a){var l=e[t];if(!r(l)){var u=s(l);return new Error("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `"+n+"`.")}return null}));var n,r}(r={listOf:a,mapOf:a,orderedMapOf:a,setOf:a,orderedSetOf:a,stackOf:a,iterableOf:a,recordOf:a,shape:a,contains:a,mapContains:a,orderedMapContains:a,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o}).iterable.indexed=u("Indexed",i.Iterable.isIndexed),r.iterable.keyed=u("Keyed",i.Iterable.isKeyed),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(256),i=n(591);var o=n(256);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(591);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":" = "+this.rhs;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class u extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return this.label+":"+e}}class f extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?" "+this.label:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends s{constructor(e){super(),this.code=e}render({_n:e}){return this.code+";"+e}optimizeNodes(){return""+this.code?this:void 0}optimizeNames(e,t){return this.code=R(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(j(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>A(e,t.names),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends m{}class y extends g{}y.kind="else";class b extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(I(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&A(e,this.else.names),e}}b.kind="if";class _ extends g{}_.kind="for";class w extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=R(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class x extends _{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class k extends _{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=R(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class E extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class O extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class C extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}C.kind="catch";class T extends g{render(e){return"finally"+super.render(e)}}T.kind="finally";function A(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?A(e,t.names):e}function R(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some(e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str])?new r._Code(e._items.reduce((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function j(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${N(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new u(e,t,n))}add(e,n){return this._leafNode(new c(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),r.addCodeArg(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new x(o,a,t,n),()=>r(a))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,t=>{this.var(a,r._`${e}[${t}]`),n(a)})}return this._for(new k("of",o,a,t),()=>n(a))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new k("in",o,a,t),()=>n(a))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new O;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new C(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(C,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new E(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=I;const M=D(t.operators.AND);t.and=function(...e){return e.reduce(M)};const L=D(t.operators.OR);function D(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${N(t)} ${e} ${N(n)}`}function N(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(L)}},function(e,t,n){"use strict";var r=n(20);t.a={SINGLECLICK:"singleclick",CLICK:r.a.CLICK,DBLCLICK:r.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return F})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return Q})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return j})),n.d(t,"i",(function(){return S})),n.d(t,"j",(function(){return Z})),n.d(t,"k",(function(){return X})),n.d(t,"l",(function(){return K})),n.d(t,"m",(function(){return M})),n.d(t,"n",(function(){return Y})),n.d(t,"o",(function(){return L}));var r="-ms-",i="-moz-",o="-webkit-",a="comm",s="rule",l="decl",u="@keyframes",c=Math.abs,d=String.fromCharCode,f=Object.assign;function p(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function m(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function v(e,t,n){return e.slice(t,n)}function y(e){return e.length}function b(e){return e.length}function _(e,t){return t.push(e),e}function w(e,t){return e.map(t).join("")}var x=1,k=1,E=0,S=0,O=0,C="";function T(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:x,column:k,length:a,return:""}}function A(e,t){return f(T("",null,null,"",null,null,0),e,{length:-e.length},t)}function P(){return O=S>0?g(C,--S):0,k--,10===O&&(k=1,x--),O}function R(){return O=S<E?g(C,S++):0,k++,10===O&&(k=1,x++),O}function j(){return g(C,S)}function I(){return S}function M(e,t){return v(C,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){return x=k=1,E=y(C=e),S=0,[]}function N(e){return C="",e}function F(e){return p(M(S-1,function e(t){for(;R();)switch(O){case t:return S;case 34:case 39:34!==t&&39!==t&&e(O);break;case 40:41===t&&e(t);break;case 92:R()}return S}(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(O=j())&&O<33;)R();return L(e)>2||L(O)>3?"":" "}function z(e,t){for(;--t&&R()&&!(O<48||O>102||O>57&&O<65||O>70&&O<97););return M(e,I()+(t<6&&32==j()&&32==R()))}function U(e,t){for(;R()&&e+O!==57&&(e+O!==84||47!==j()););return"/*"+M(t,S-1)+"*"+d(47===e?e:R())}function q(e){for(;!L(j());)R();return M(e,S)}function W(e){return N(function e(t,n,r,i,o,a,s,l,u){var c=0,f=0,p=s,g=0,v=0,b=0,w=1,x=1,k=1,E=0,S="",O=o,C=a,T=i,A=S;for(;x;)switch(b=E,E=R()){case 40:if(108!=b&&58==A.charCodeAt(p-1)){-1!=m(A+=h(F(E),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:A+=F(E);break;case 9:case 10:case 13:case 32:A+=B(b);break;case 92:A+=z(I()-1,7);continue;case 47:switch(j()){case 42:case 47:_($(U(R(),I()),n,r),u);break;default:A+="/"}break;case 123*w:l[c++]=y(A)*k;case 125*w:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+f:v>0&&y(A)-p&&_(v>32?V(A+";",i,r,p-1):V(h(A," ","")+";",i,r,p-2),u);break;case 59:A+=";";default:if(_(T=H(A,n,r,c,f,o,l,S,O=[],C=[],p),a),123===E)if(0===f)e(A,n,T,T,O,a,p,l,C);else switch(g){case 100:case 109:case 115:e(t,T,T,i&&_(H(t,T,T,0,0,o,l,S,o,O=[],p),C),o,C,p,l,i?O:C);break;default:e(A,T,T,T,[""],C,0,l,C)}}c=f=v=0,w=k=1,S=A="",p=s;break;case 58:p=1+y(A),v=b;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==P())continue;switch(A+=d(E),E*w){case 38:k=f>0?1:(A+="\f",-1);break;case 44:l[c++]=(y(A)-1)*k,k=1;break;case 64:45===j()&&(A+=F(R())),g=j(),f=p=y(S=A+=q(I())),E++;break;case 45:45===b&&2==y(A)&&(w=0)}}return a}("",null,null,null,[""],e=D(e),0,[0],e))}function H(e,t,n,r,i,o,a,l,u,d,f){for(var m=i-1,g=0===i?o:[""],y=b(g),_=0,w=0,x=0;_<r;++_)for(var k=0,E=v(e,m+1,m=c(w=a[_])),S=e;k<y;++k)(S=p(w>0?g[k]+" "+E:h(E,/&\f/g,g[k])))&&(u[x++]=S);return T(e,t,n,0===i?s:l,u,d,f)}function $(e,t,n){return T(e,t,n,a,d(O),v(e,2,-2),0)}function V(e,t,n,r){return T(e,t,n,l,v(e,0,r),v(e,r+1,-1),r)}function G(e,t){switch(function(e,t){return(((t<<2^g(e,0))<<2^g(e,1))<<2^g(e,2))<<2^g(e,3)}(e,t)){case 5103:return o+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o+e+i+e+r+e+e;case 6828:case 4268:return o+e+r+e+e;case 6165:return o+e+r+"flex-"+e+e;case 5187:return o+e+h(e,/(\w+).+(:[^]+)/,o+"box-$1$2"+r+"flex-$1$2")+e;case 5443:return o+e+r+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return o+e+r+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return o+e+r+h(e,"shrink","negative")+e;case 5292:return o+e+r+h(e,"basis","preferred-size")+e;case 6060:return o+"box-"+h(e,"-grow","")+o+e+r+h(e,"grow","positive")+e;case 4554:return o+h(e,/([^-])(transform)/g,"$1"+o+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,o+"$1"),/(image-set)/,o+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,o+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,o+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,o+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y(e)-1-t>6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+o+"$2-$3$1"+i+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~m(e,"stretch")?G(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,y(e)-3-(~m(e,"!important")&&10))){case 107:return h(e,":",":"+o)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o+(45===g(e,14)?"inline-":"")+"box$3$1"+o+"$2$3$1"+r+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return o+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o+e+r+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return o+e+r+e+e}return e}function K(e,t){for(var n="",r=b(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Y(e,t,n,r){switch(e.type){case"@import":case l:return e.return=e.return||e.value;case a:return"";case u:return e.return=e.value+"{"+K(e.children,r)+"}";case s:e.value=e.props.join(",")}return y(n=K(e.children,r))?e.return=e.value+"{"+n+"}":""}function Q(e){var t=b(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function X(e){return function(t){t.root||(t=t.return)&&e(t)}}function Z(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case l:e.return=G(e.value,e.length);break;case u:return K([A(e,{value:h(e.value,"@","@"+o)})],i);case s:if(e.length)return w(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([A(e,{props:[h(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return K([A(e,{props:[h(t,/:(plac\w+)/,":"+o+"input-$1")]}),A(e,{props:[h(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[h(t,/:(plac\w+)/,r+"input-$1")]})],i)}return""}))}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(32);function i(){return!0}function o(){return!1}function a(){}function s(e){var t,n,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&Object(r.b)(a,n)||(o=!0,i=this,n=a,t=e.apply(this,arguments)),t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r="Invariant failed";function i(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"AccessTokenError",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CMS_BRANCH_PREFIX",{enumerable:!0,get:function(){return v.CMS_BRANCH_PREFIX}}),Object.defineProperty(t,"CURSOR_COMPATIBILITY_SYMBOL",{enumerable:!0,get:function(){return i.CURSOR_COMPATIBILITY_SYMBOL}}),Object.defineProperty(t,"Cursor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DEFAULT_PR_BODY",{enumerable:!0,get:function(){return v.DEFAULT_PR_BODY}}),Object.defineProperty(t,"EDITORIAL_WORKFLOW_ERROR",{enumerable:!0,get:function(){return o.EDITORIAL_WORKFLOW_ERROR}}),Object.defineProperty(t,"EditorialWorkflowError",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MERGE_COMMIT_MESSAGE",{enumerable:!0,get:function(){return v.MERGE_COMMIT_MESSAGE}}),t.NetlifyCmsLibUtil=void 0,Object.defineProperty(t,"PreviewState",{enumerable:!0,get:function(){return g.PreviewState}}),Object.defineProperty(t,"allEntriesByFolder",{enumerable:!0,get:function(){return m.allEntriesByFolder}}),Object.defineProperty(t,"asyncLock",{enumerable:!0,get:function(){return h.asyncLock}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return l.basename}}),Object.defineProperty(t,"blobToFileObj",{enumerable:!0,get:function(){return m.blobToFileObj}}),Object.defineProperty(t,"branchFromContentKey",{enumerable:!0,get:function(){return v.branchFromContentKey}}),Object.defineProperty(t,"contentKeyFromBranch",{enumerable:!0,get:function(){return v.contentKeyFromBranch}}),Object.defineProperty(t,"createPointerFile",{enumerable:!0,get:function(){return y.createPointerFile}}),Object.defineProperty(t,"entriesByFiles",{enumerable:!0,get:function(){return m.entriesByFiles}}),Object.defineProperty(t,"entriesByFolder",{enumerable:!0,get:function(){return m.entriesByFolder}}),Object.defineProperty(t,"fileExtension",{enumerable:!0,get:function(){return l.fileExtension}}),Object.defineProperty(t,"fileExtensionWithSeparator",{enumerable:!0,get:function(){return l.fileExtensionWithSeparator}}),Object.defineProperty(t,"filterByExtension",{enumerable:!0,get:function(){return d.filterByExtension}}),Object.defineProperty(t,"flowAsync",{enumerable:!0,get:function(){return u.flowAsync}}),Object.defineProperty(t,"generateContentKey",{enumerable:!0,get:function(){return v.generateContentKey}}),Object.defineProperty(t,"getAllResponses",{enumerable:!0,get:function(){return d.getAllResponses}}),Object.defineProperty(t,"getBlobSHA",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getLargeMediaFilteredMediaFiles",{enumerable:!0,get:function(){return y.getLargeMediaFilteredMediaFiles}}),Object.defineProperty(t,"getLargeMediaPatternsFromGitAttributesFile",{enumerable:!0,get:function(){return y.getLargeMediaPatternsFromGitAttributesFile}}),Object.defineProperty(t,"getMediaAsBlob",{enumerable:!0,get:function(){return m.getMediaAsBlob}}),Object.defineProperty(t,"getMediaDisplayURL",{enumerable:!0,get:function(){return m.getMediaDisplayURL}}),Object.defineProperty(t,"getPathDepth",{enumerable:!0,get:function(){return d.getPathDepth}}),Object.defineProperty(t,"getPointerFileForMediaFileObj",{enumerable:!0,get:function(){return y.getPointerFileForMediaFileObj}}),Object.defineProperty(t,"getPreviewStatus",{enumerable:!0,get:function(){return g.getPreviewStatus}}),Object.defineProperty(t,"isAbsolutePath",{enumerable:!0,get:function(){return l.isAbsolutePath}}),Object.defineProperty(t,"isCMSLabel",{enumerable:!0,get:function(){return v.isCMSLabel}}),Object.defineProperty(t,"isPreviewContext",{enumerable:!0,get:function(){return g.isPreviewContext}}),Object.defineProperty(t,"labelToStatus",{enumerable:!0,get:function(){return v.labelToStatus}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"localForage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"onlySuccessfulPromises",{enumerable:!0,get:function(){return u.onlySuccessfulPromises}}),Object.defineProperty(t,"parseContentKey",{enumerable:!0,get:function(){return v.parseContentKey}}),Object.defineProperty(t,"parseLinkHeader",{enumerable:!0,get:function(){return d.parseLinkHeader}}),Object.defineProperty(t,"parsePointerFile",{enumerable:!0,get:function(){return y.parsePointerFile}}),Object.defineProperty(t,"parseResponse",{enumerable:!0,get:function(){return d.parseResponse}}),Object.defineProperty(t,"readFile",{enumerable:!0,get:function(){return g.readFile}}),Object.defineProperty(t,"readFileMetadata",{enumerable:!0,get:function(){return g.readFileMetadata}}),Object.defineProperty(t,"requestWithBackoff",{enumerable:!0,get:function(){return g.requestWithBackoff}}),Object.defineProperty(t,"responseParser",{enumerable:!0,get:function(){return d.responseParser}}),Object.defineProperty(t,"runWithLock",{enumerable:!0,get:function(){return m.runWithLock}}),Object.defineProperty(t,"statusToLabel",{enumerable:!0,get:function(){return v.statusToLabel}}),Object.defineProperty(t,"then",{enumerable:!0,get:function(){return u.then}}),Object.defineProperty(t,"throwOnConflictingBranches",{enumerable:!0,get:function(){return g.throwOnConflictingBranches}}),Object.defineProperty(t,"unpublishedEntries",{enumerable:!0,get:function(){return m.unpublishedEntries}}),Object.defineProperty(t,"unsentRequest",{enumerable:!0,get:function(){return c.default}});var r=w(n(399)),i=_(n(948)),o=_(n(949)),a=w(n(950)),s=w(n(951)),l=n(550),u=n(953),c=w(n(404)),d=n(968),f=w(n(992)),p=w(n(569)),h=n(570),m=n(995),g=n(997),v=n(998),y=n(999);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function w(e){return e&&e.__esModule?e:{default:e}}const x={APIError:r.default,Cursor:i.default,CURSOR_COMPATIBILITY_SYMBOL:i.CURSOR_COMPATIBILITY_SYMBOL,EditorialWorkflowError:o.default,EDITORIAL_WORKFLOW_ERROR:o.EDITORIAL_WORKFLOW_ERROR,localForage:s.default,basename:l.basename,fileExtensionWithSeparator:l.fileExtensionWithSeparator,fileExtension:l.fileExtension,onlySuccessfulPromises:u.onlySuccessfulPromises,flowAsync:u.flowAsync,then:u.then,unsentRequest:c.default,filterByExtension:d.filterByExtension,parseLinkHeader:d.parseLinkHeader,parseResponse:d.parseResponse,responseParser:d.responseParser,loadScript:f.default,getBlobSHA:p.default,getPathDepth:d.getPathDepth,entriesByFiles:m.entriesByFiles,entriesByFolder:m.entriesByFolder,unpublishedEntries:m.unpublishedEntries,getMediaDisplayURL:m.getMediaDisplayURL,getMediaAsBlob:m.getMediaAsBlob,readFile:g.readFile,readFileMetadata:g.readFileMetadata,CMS_BRANCH_PREFIX:v.CMS_BRANCH_PREFIX,generateContentKey:v.generateContentKey,isCMSLabel:v.isCMSLabel,labelToStatus:v.labelToStatus,statusToLabel:v.statusToLabel,DEFAULT_PR_BODY:v.DEFAULT_PR_BODY,MERGE_COMMIT_MESSAGE:v.MERGE_COMMIT_MESSAGE,isPreviewContext:g.isPreviewContext,getPreviewStatus:g.getPreviewStatus,runWithLock:m.runWithLock,PreviewState:g.PreviewState,parseContentKey:v.parseContentKey,createPointerFile:y.createPointerFile,getLargeMediaFilteredMediaFiles:y.getLargeMediaFilteredMediaFiles,getLargeMediaPatternsFromGitAttributesFile:y.getLargeMediaPatternsFromGitAttributesFile,parsePointerFile:y.parsePointerFile,getPointerFileForMediaFileObj:y.getPointerFileForMediaFileObj,branchFromContentKey:v.branchFromContentKey,contentKeyFromBranch:v.contentKeyFromBranch,blobToFileObj:m.blobToFileObj,requestWithBackoff:g.requestWithBackoff,allEntriesByFolder:m.allEntriesByFolder,AccessTokenError:a.default,throwOnConflictingBranches:g.throwOnConflictingBranches};t.NetlifyCmsLibUtil=x},function(e,t,n){"use strict";t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(58);function i(e,t,n,i){var o;return o=n&&n.length?n.shift():r.g?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(o.width=e),t&&(o.height=t),o.getContext("2d",i)}function o(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function a(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function s(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function l(e,t){for(var n=e.childNodes,r=0;;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}},function(e,t,n){"use strict";t.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(35),i=n(256);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||h(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?""+e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const u=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||u instanceof r.Name?u:i(o,u)}}function c(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach(n=>e.assign(r._`${t}${r.getProperty(n)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${r.getProperty(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>{e.if(r._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=c,t.setEvaluated=d;const f={};var p;function h(e,t,n=e.opts.strictSchema){if(n){if(t="strict mode: "+t,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?r.getProperty(e).toString():"/"+s(e)},t.checkStrictMode=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(345);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return m}));n(36);var r=n(38),i=n(58),o=n(23);function a(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i&&(n=n&&t[r](e));++r);return n}}var s=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},l=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||function(e){var t=e.map.getTargetElement(),n=e.map.getOwnerDocument().activeElement;return t.contains(n)}(e)},u=r.b,c=function(e){var t=e.originalEvent;return 0==t.button&&!(i.f&&i.d&&t.ctrlKey)},d=(r.a,function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),f=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},p=function(e){var t=e.originalEvent.target.tagName;return"INPUT"!==t&&"SELECT"!==t&&"TEXTAREA"!==t},h=function(e){var t=e.originalEvent;return Object(o.a)(void 0!==t,56),"mouse"==t.pointerType},m=function(e){var t=e.originalEvent;return Object(o.a)(void 0!==t,56),t.isPrimary&&0===t.button}},function(e,t,n){"use strict";t.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var r=n(1465);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"translate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"useTranslate",{enumerable:!0,get:function(){return o.default}});var r=a(n(877)),i=a(n(916)),o=a(n(917));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(1469);e.exports=function(e){if(t=e,t&&t.window===t)return e;var t;var n=r(e);if(i){n.parentWindow.execScript("document._parentWindow = window;","Javascript");var o=n._parentWindow;return n._parentWindow=null,o}return n.defaultView||n.parentWindow};var i=n(1470)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};var i={};i[r.RADIANS]=6370997/(2*Math.PI),i[r.DEGREES]=2*Math.PI*6370997/360,i[r.FEET]=.3048,i[r.METERS]=1,i[r.USFEET]=1200/3937,t.b=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(795)},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return c}));var r="ol-hidden",i="ol-unselectable",o="ol-control",a="ol-collapsed",s=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],u=function(e){var t=e.match(s);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=l.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[l[r]]=o)}return n.families=n.family.split(/,\s?/),n};function c(e){return 1===e?"":String(Math.round(100*e)/100)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(367),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c}));var r="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=(-1!==r.indexOf("safari")&&-1==r.indexOf("chrom")&&(r.indexOf("version/15.4")>=0||r.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==r.indexOf("webkit")&&-1==r.indexOf("edge")),a=-1!==r.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}()},function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function i(e,t,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=r(e,t,c,i,a[s]),t=c}return a.length=s,a}function o(e,t,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,u=n.length;l<u;++l){var c=n[l];a[s++]=i(e,t,c,r,a[s]),t=c[c.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n(3);n(13);function i(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function o(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function a(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function s(e,t){return e[0]*=t,e[1]*=t,e}function l(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function u(e,t){if(t.canWrapX()){var n=Object(r.D)(t.getExtent()),i=c(e,t,n);i&&(e[0]-=i*n)}return e}function c(e,t,n){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=n||Object(r.D)(i);o=Math.floor((e[0]-i[0])/a)}return o}},function(e,t,n){"use strict";e.exports=function(e){return e<-2}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";var r=function(){function e(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();t.a=r},function(e,t,n){"use strict";var r,i=n(63),o=n(129),a=n(354),s=n(28),l=n(10),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return u(t,e),t}(i.a),d=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,Object(l.c)(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return u(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&Object(s.a)({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n="change:".concat(e),this.hasListener(n)&&this.dispatchEvent(new c(n,e,t)),n=o.a.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,e,t))},t.prototype.addChangeListener=function(e,t){this.addEventListener("change:".concat(e),t)},t.prototype.removeChangeListener=function(e,t){this.removeEventListener("change:".concat(e),t)},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.applyProperties=function(e){e.values_&&Object(s.a)(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],Object(s.d)(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(a.a);t.a=d},function(e,t,n){"use strict";function r(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var u=e[l],c=e[l+1];a[s++]=i[0]*u+i[2]*c+i[4],a[s++]=i[1]*u+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),u=Math.sin(i),c=o[0],d=o[1],f=0,p=t;p<n;p+=r){var h=e[p]-c,m=e[p+1]-d;s[f++]=c+h*l-m*u,s[f++]=d+h*u+m*l;for(var g=p+2;g<p+r;++g)s[f++]=e[g]}return a&&s.length!=f&&(s.length=f),s}function o(e,t,n,r,i,o,a,s){for(var l=s||[],u=a[0],c=a[1],d=0,f=t;f<n;f+=r){var p=e[f]-u,h=e[f+1]-c;l[d++]=u+i*p,l[d++]=c+o*h;for(var m=f+2;m<f+r;++m)l[d++]=e[m]}return s&&l.length!=d&&(l.length=d),l}function a(e,t,n,r,i,o,a){for(var s=a||[],l=0,u=t;u<n;u+=r){s[l++]=e[u]+i,s[l++]=e[u+1]+o;for(var c=u+2;c<u+r;++c)s[l++]=e[c]}return a&&s.length!=l&&(s.length=l),s}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";function r(e){return e[0]>0&&e[1]>0}function i(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function o(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";t.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(e,t,n){"use strict";var r=n(150);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){if(r(i))return e.enter(n),s(i);return t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},function(e,t,n){"use strict";t.a={ANIMATING:0,INTERACTING:1}},function(e,t,n){"use strict";var r=n(252),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFieldsNames=O,t.getFileFromSlug=k,t.selectAllowDeletion=function(e){return w[e.get("type")].allowDeletion(e)},t.selectAllowNewEntries=function(e){return w[e.get("type")].allowNewEntries(e)},t.selectDefaultSortableFields=function(e,t,n){let r=d.SORTABLE_FIELDS.map(r=>{const i=P(e,r);return!t.isGitBackend()||"author"!==r||i||n?i:c.COMMIT_AUTHOR}).filter(Boolean);t.isGitBackend()&&!n&&(r=[c.COMMIT_DATE,...r]);return r},t.selectEntryCollectionTitle=function(e,t){const n=e.get("summary");if(n)return(0,h.summaryFormatter)(n,t,e);if(e.get("type")==u.FILES){const n=S(e,t.get("slug"));if(n)return n}const r=t.get("data"),i=P(e,"title"),o=i&&r.getIn(b(i));if(!o&&"title"!==i)return r.getIn(b("title"));return o},t.selectEntryPath=function(e,t){return w[e.get("type")].entryPath(e,t)},t.selectEntrySlug=function(e,t){return w[e.get("type")].entrySlug(e,t)},t.selectField=C,t.selectFields=function(e,t){return w[e.get("type")].fields(e,t)},t.selectFieldsComments=function(e,t){let n=[];if(e.has("folder"))n=e.get("fields").toArray();else if(e.has("files")){const r=e.get("files").find(e=>(null==e?void 0:e.get("name"))===t.get("slug"));n=r.get("fields").toArray()}const r={};return O(n).forEach(t=>{const n=C(e,t);null!=n&&n.has("comment")&&(r[t]=n.get("comment"))}),r},t.selectFieldsWithMediaFolders=E,t.selectFileEntryLabel=S,t.selectFolderEntryExtension=function(e){return w[u.FOLDER].entryExtension(e)},t.selectHasMetaPath=function(e){var t;return e.has("folder")&&e.get("type")===u.FOLDER&&e.has("meta")&&(null===(t=e.get("meta"))||void 0===t?void 0:t.has("path"))},t.selectIdentifier=A,t.selectInferedField=P,t.selectMediaFolders=function(e,t,n){const r=E(t,n.get("slug")).map(r=>(0,p.selectMediaFolder)(e,t,n,r));if(t.has("files")){k(t,n.get("slug"))&&r.unshift((0,p.selectMediaFolder)(e,t,n,void 0))}t.has("media_folder")&&(t=t.delete("files"),r.unshift((0,p.selectMediaFolder)(e,t,n,void 0)));return(0,o.Set)(r).toArray()},t.selectSortDataPath=function(e,t){return t===c.COMMIT_DATE?"updatedOn":t!==c.COMMIT_AUTHOR||C(e,t)?"data."+t:"author"},t.selectSortableFields=function(e,t){return e.get("sortable_fields").toArray().map(n=>{if(n===c.COMMIT_DATE)return{key:n,field:{name:n,label:t("collection.defaultFields.updatedOn.label")}};const r=C(e,n);return n!==c.COMMIT_AUTHOR||r?{key:n,field:null==r?void 0:r.toJS()}:{key:n,field:{name:n,label:t("collection.defaultFields.author.label")}}}).filter(e=>!!e.field).map(e=>v(v({},e.field),{},{key:e.key}))},t.selectTemplateName=function(e,t){return w[e.get("type")].templateName(e,t)},t.selectViewFilters=function(e){return e.get("view_filters").toJS()},t.selectViewGroups=function(e){return e.get("view_groups").toJS()},t.traverseFields=T,t.updateFieldByKey=function(e,t,n){const r=C(e,t);if(!r)return e;let i=!1;return e=e.set("fields",T(e.get("fields",(0,o.List)()),(function(e){const t=e;return t===r?(i=!0,n(t)):t}),()=>i))};var r=m(n(422)),i=m(n(103)),o=n(4),a=n(147),s=m(n(1153)),l=n(220),u=n(257),c=n(604),d=n(605),f=n(409),p=n(126),h=n(319);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{keyToPathArray:b}=a.stringTemplate,_=(0,o.fromJS)({});const w={[u.FOLDER]:{entryExtension:e=>(e.get("extension")||(0,i.default)(f.formatExtensions,e.get("format")||"frontmatter")).replace(/^\./,""),fields:e=>e.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){var n;const i=e.get("folder").replace(/\/$/,"");return null===(n=t.split(i+"/").pop())||void 0===n?void 0:n.replace(new RegExp(`\\.${(0,r.default)(this.entryExtension(e))}$`),"")},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[u.FILES]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter(e=>(null==e?void 0:e.get("name"))===t).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter(e=>(null==e?void 0:e.get("file"))===t).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function x(e){return e.reduce((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){var n;const r=null===(n=t.get("fields"))||void 0===n?void 0:n.toArray();e=[...e,...x(r)]}else if(t.has("field")){const n=t.get("field");e=[...e,...x([n])]}else if(t.has("types")){var r;const n=null===(r=t.get("types"))||void 0===r?void 0:r.toArray();e=[...e,...x(n)]}return e},[])}function k(e,t){var n;return null===(n=e.get("files"))||void 0===n?void 0:n.toArray().find(e=>e.get("name")===t)}function E(e,t){if(e.has("folder")){return x(e.get("fields").toArray())}if(e.has("files")){var n;return x((null===(n=k(e,t))||void 0===n?void 0:n.get("fields").toArray())||[])}return[]}function S(e,t){return w[u.FILES].entryLabel(e,t)}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.map(e=>`${t}${e.get("name")}`);return e.forEach((e,t)=>{if(e.has("fields")){var r;const i=null===(r=e.get("fields"))||void 0===r?void 0:r.toArray();n=[...n,...O(i,n[t]+".")]}else if(e.has("field")){const r=e.get("field");n=[...n,...O([r],n[t]+".")]}else if(e.has("types")){var i;const r=null===(i=e.get("types"))||void 0===i?void 0:i.toArray();n=[...n,...O(r,n[t]+".")]}}),n}function C(e,t){const n=b(t);let r,i,a=e.get("fields",(0,o.List)()).toArray();for(;(r=n.shift())&&a;){var s,l,u,c,d;if(i=a.find(e=>e.get("name")===r),null!==(s=i)&&void 0!==s&&s.has("fields"))a=null===(c=i)||void 0===c||null===(d=c.get("fields"))||void 0===d?void 0:d.toArray();else if(null!==(l=i)&&void 0!==l&&l.has("field")){var f;a=[null===(f=i)||void 0===f?void 0:f.get("field")]}else if(null!==(u=i)&&void 0!==u&&u.has("types")){var p,h;a=null===(p=i)||void 0===p||null===(h=p.get("types"))||void 0===h?void 0:h.toArray()}}return i}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!1;return n()?e:e=e.map(e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",T(r.get("fields"),t,n)):r.has("field")?r.set("field",T((0,o.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",T(r.get("types"),t,n)):r}).toList()}function A(e){const t=e.get("identifier_field"),n=t?[t,...d.IDENTIFIER_FIELDS]:[...d.IDENTIFIER_FIELDS],r=O(e.get("fields",(0,o.List)()).toArray());return n.find(e=>r.find(t=>t.toLowerCase().trim()===e.toLowerCase().trim()))}function P(e,t){if("title"===t&&e.get("identifier_field"))return A(e);const n=d.INFERABLE_FIELDS[t],r=e.get("fields");let i;if(!r||!n)return null;const o=r.filter(e=>(null==e?void 0:e.get("widget","string"))===n.type).map(e=>null==e?void 0:e.get("name"));if(i=o.filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0)return i.first();return i=r.filter(e=>-1!==n.secondaryTypes.indexOf(null==e?void 0:e.get("widget","string"))).map(e=>null==e?void 0:e.get("name")).filter(e=>-1!==n.synonyms.indexOf(e)),i&&i.size>0?i.first():n.fallbackToFirstField&&o.size>0?o.first():(n.showError&&(0,s.default)(`The Field ${t} is missing for the collection “${e.get("name")}”`,`Netlify CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`),null)}var R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.CONFIG_SUCCESS:{const e=t.payload.collections;let n=(0,o.OrderedMap)({});return e.forEach(e=>{n=n.set(e.name,(0,o.fromJS)(e))}),n}default:return e}};t.default=R},function(e,t,n){"use strict";var r=n(207);e.exports=function(e,t,n){var i;null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={});i=r({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n));return i}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f}));var r,i=n(357),o=n(48),a=n(10),s=n(3),l=n(65),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=e.call(this)||this;return t.layout=o.a.XY,t.stride=2,t.flatCoordinates=null,t}return u(t,e),t.prototype.computeExtent=function(e){return Object(s.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return Object(a.b)()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=d(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){Object(a.b)()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=d(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=o.a.XY,void(this.stride=2);t=t[0]}e=function(e){var t;2==e?t=o.a.XY:3==e?t=o.a.XYZ:4==e&&(t=o.a.XYZM);return t}(r=t.length)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(l.a)(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=Object(s.w)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();Object(l.b)(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(l.d)(n,0,n.length,r,e,t,n),this.changed()}},t}(i.a);function d(e){var t;return e==o.a.XY?t=2:e==o.a.XYZ||e==o.a.XYM?t=3:e==o.a.XYZM&&(t=4),t}function f(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Object(l.c)(r,0,r.length,i,t,n)}return null}t.a=c},function(e,t,n){"use strict";t.a={ADD:"add",REMOVE:"remove"}},function(e,t,n){"use strict";var r=n(764),i=n.n(r).a;t.a=i},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return _}));var i=n(1),o=n(7),a={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(t,n){var r=Object(o.q)(t,n);if("function"==typeof e)return e.from(r,"base64");if("function"==typeof atob){for(var a=atob(r.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length),l=0;l<a.length;++l)s[l]=a.charCodeAt(l);return s}return t.errors.push(new i.v(n,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:o.i,stringify:function(t,n,r,a){var s,l=t.comment,u=t.type,c=t.value;if("function"==typeof e)s=c instanceof e?c.toString("base64"):e.from(c.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var d="",f=0;f<c.length;++f)d+=String.fromCharCode(c[f]);s=btoa(d)}if(u||(u=o.i.defaultType),u===i.e.QUOTE_DOUBLE)c=s;else{for(var p=o.i.lineWidth,h=Math.ceil(s.length/p),m=new Array(h),g=0,v=0;g<h;++g,v+=p)m[g]=s.substr(v,p);c=m.join(u===i.e.BLOCK_LITERAL?"\n":" ")}return Object(o.j)({comment:l,type:u,value:c},n,r,a)}};function s(e,t){for(var n=Object(o.o)(e,t),r=0;r<n.items.length;++r){var a=n.items[r];if(!(a instanceof o.e)){if(a instanceof o.k){if(a.items.length>1){throw new i.n(t,"Each pair must have its own sequence indicator")}var s=a.items[0]||new o.e;a.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(a.commentBefore,"\n").concat(s.commentBefore):a.commentBefore),a.comment&&(s.comment=s.comment?"".concat(a.comment,"\n").concat(s.comment):a.comment),a=s}n.items[r]=a instanceof o.e?a:new o.e(a)}}return n}function l(e,t,n){var r=new o.g(e);r.tag="tag:yaml.org,2002:pairs";var a,s=Object(i.g)(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=void 0,c=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));u=l[0],c=l[1]}else if(l&&l instanceof Object){var d=Object.keys(l);if(1!==d.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));c=l[u=d[0]]}else u=l;var f=e.createPair(u,c,n);r.items.push(f)}}catch(e){s.e(e)}finally{s.f()}return r}var u={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:l},c=function(e){Object(i.q)(n,e);var t=Object(i.r)(n);function n(){var e;return Object(i.j)(this,n),e=t.call(this),Object(i.l)(Object(i.w)(e),"add",o.k.prototype.add.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"delete",o.k.prototype.delete.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"get",o.k.prototype.get.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"has",o.k.prototype.has.bind(Object(i.w)(e))),Object(i.l)(Object(i.w)(e),"set",o.k.prototype.set.bind(Object(i.w)(e))),e.tag=n.tag,e}return Object(i.i)(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,a=Object(i.g)(this.items);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=void 0,u=void 0;if(s instanceof o.e?(l=Object(o.w)(s.key,"",t),u=Object(o.w)(s.value,l,t)):l=Object(o.w)(s,"",t),n.has(l))throw new Error("Ordered maps must not include duplicate keys");n.set(l,u)}}catch(e){a.e(e)}finally{a.f()}return n}}]),n}(o.g);Object(i.l)(c,"tag","tag:yaml.org,2002:omap");var d={identify:function(e){return e instanceof Map},nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=s(e,t),a=[],l=Object(i.g)(r.items);try{for(l.s();!(n=l.n()).done;){var u=n.value.key;if(u instanceof o.f){if(a.includes(u.value)){throw new i.n(t,"Ordered maps must not include duplicate keys")}a.push(u.value)}}}catch(e){l.e(e)}finally{l.f()}return Object.assign(new c,r)},createNode:function(e,t,n){var r=l(e,t,n),i=new c;return i.items=r.items,i}},f=function(e){Object(i.q)(n,e);var t=Object(i.r)(n);function n(){var e;return Object(i.j)(this,n),(e=t.call(this)).tag=n.tag,e}return Object(i.i)(n,[{key:"add",value:function(e){var t=e instanceof o.e?e:new o.e(e);Object(o.s)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=Object(o.s)(this.items,e);return!t&&n instanceof o.e?n.key instanceof o.f?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Object(i.h)(t)));var n=Object(o.s)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new o.e(e))}},{key:"toJSON",value:function(e,t){return Object(i.s)(Object(i.t)(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return Object(i.s)(Object(i.t)(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(o.k);Object(i.l)(f,"tag","tag:yaml.org,2002:set");var p={identify:function(e){return e instanceof Set},nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=Object(o.n)(e,t);if(!n.hasAllNullValues())throw new i.n(t,"Set items must all have null values");return Object.assign(new f,n)},createNode:function(e,t,n){var r,o=new f,a=Object(i.g)(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o.items.push(e.createPair(s,null,n))}}catch(e){a.e(e)}finally{a.f()}return o}},h=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},m=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(o.r)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},g={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:m},v={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:m},y={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,o,a,s,l){s&&(s=(s+"00").substr(1,3));var u=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(l&&"Z"!==l){var c=h(l[0],l.slice(1));Math.abs(c)<30&&(c*=60),u-=6e4*c}return new Date(u)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function b(e){var t=void 0!==r&&r.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function _(e,t){if(b(!1)){var n=void 0!==r&&r.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var w={};function x(e,t){if(!w[e]&&b(!0)){w[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");_(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}}).call(this,n(196).Buffer,n(97))},function(e,t,n){"use strict";
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return c}));var r=n(0),i=n(484),o=(n(11),n(203),n(479),n(159)),a=n(231),s={}.hasOwnProperty,l=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(i.a)({key:"css"}):null);var u=l.Provider,c=function(e){return Object(r.forwardRef)((function(t,n){var i=Object(r.useContext)(l);return e(t,i,n)}))},d=Object(r.createContext)({});var f=r.useInsertionEffect?r.useInsertionEffect:function(e){e()};function p(e){f(e)}var h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(o.c)(t,n,r);p((function(){return Object(o.b)(t,n,r)}));return null},v=c((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var l=e[h],u=[i],c="";"string"==typeof e.className?c=Object(o.a)(t.registered,u,e.className):null!=e.className&&(c=e.className+" ");var f=Object(a.a)(u,void 0,Object(r.useContext)(d));c+=t.key+"-"+f.name;var p={};for(var m in e)s.call(e,m)&&"css"!==m&&m!==h&&(p[m]=e[m]);return p.ref=n,p.className=c,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(g,{cache:t,serialized:f,isStringTag:"string"==typeof l}),Object(r.createElement)(l,p))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,i=n(87),o=n(36),a=n(28),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return s(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==o.a.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==o.a.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==o.a.POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==o.a.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){if(function(e){var t=e.type;return t===o.a.POINTERDOWN||t===o.a.POINTERDRAG||t===o.a.POINTERUP}(e)){var t=e.originalEvent,n=t.pointerId.toString();e.type==o.a.POINTERUP?delete this.trackedPointers_[n]:(e.type==o.a.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=t),this.targetPointers=Object(a.c)(this.trackedPointers_)}},t}(i.a);function u(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}t.b=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r,i=n(353),o=n(64),a=n(74),s=n(63),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u="length",c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return l(t,e),t}(s.a),d=function(e){function t(t,n){var r=e.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return l(t,e),t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(u)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new c(a.a.ADD,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new c(a.a.REMOVE,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new c(a.a.REMOVE,r,e)),this.dispatchEvent(new c(a.a.ADD,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(u,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new i.a(58)},t}(o.a);t.a=d},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.children||[],o=[],a=-1;for(;++a<i.length;)(n=r(e,i[a],t))&&(o=o.concat(n));return o};var r=n(730)},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function i(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function o(e,t,n,r,o){for(var a=o||[],s=0,l=0,u=n.length;l<u;++l){var c=i(e,t,n[l],r);a[s++]=c,t=c}return a.length=s,a}function a(e,t,n,r,i){for(var a=i||[],s=0,l=0,u=n.length;l<u;++l){var c=o(e,t,n[l],r,a[s]);a[s++]=c,t=c[c.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";function r(e){return Math.pow(e,3)}function i(e){return 1-r(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r,i=n(64),o=n(276),a=n(86),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return s(t,e),t.prototype.getActive=function(){return this.get(o.a.ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(o.a.ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(i.a);function u(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:a.d,center:e.getConstrainedCenter(i)})}}function c(e,t,n,r){var i=e.getZoom();if(void 0!==i){var o=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:a.b})}}t.a=l},function(e,t,n){var r=n(495),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return d})),n.d(t,"connectAdvanced",(function(){return O})),n.d(t,"ReactReduxContext",(function(){return o})),n.d(t,"connect",(function(){return H})),n.d(t,"useDispatch",(function(){return Y})),n.d(t,"createDispatchHook",(function(){return K})),n.d(t,"useSelector",(function(){return J})),n.d(t,"createSelectorHook",(function(){return X})),n.d(t,"useStore",(function(){return G})),n.d(t,"createStoreHook",(function(){return V})),n.d(t,"shallowEqual",(function(){return T})),n.d(t,"batch",(function(){return ee.unstable_batchedUpdates}));var r=n(0),i=n.n(r),o=i.a.createContext(null);var a=function(e){e()};function s(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var l={notify:function(){},get:function(){return[]}};function u(e,t){var n,r=l;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=s())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=l)},getListeners:function(){return r}};return a}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var d=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=u(t);return{store:t,subscription:e}}),[t]),l=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,l]);var d=n||o;return i.a.createElement(d.Provider,{value:s},a)},f=n(11),p=n(46),h=n(105),m=n.n(h),g=n(758),v=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],b=[],_=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function k(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function E(e,t,n,r,i,o,a,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,d=n.renderCountProp,h=void 0===d?void 0:d,O=n.shouldHandleStateChanges,C=void 0===O||O,T=n.storeKey,A=void 0===T?"store":T,P=(n.withRef,n.forwardRef),R=void 0!==P&&P,j=n.context,I=void 0===j?o:j,M=Object(p.a)(n,v),L=I;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=Object(f.a)({},M,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:C,storeKey:A,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=M.pure;var d=l?r.useMemo:function(e){return e()};function v(n){var o=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(p.a)(n,y);return[n.context,e,t]}),[n]),s=o[0],l=o[1],c=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(g.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:L}),[s,L]),m=Object(r.useContext)(h),v=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var O=v?n.store:m.store,T=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(O)}),[O]),A=Object(r.useMemo)((function(){if(!C)return _;var e=u(O,v?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[O,v,m]),P=A[0],R=A[1],j=Object(r.useMemo)((function(){return v?m:Object(f.a)({},m,{subscription:P})}),[v,m,P]),I=Object(r.useReducer)(w,b,S),M=I[0][0],D=I[1];if(M&&M.error)throw M.error;var N=Object(r.useRef)(),F=Object(r.useRef)(c),B=Object(r.useRef)(),z=Object(r.useRef)(!1),U=d((function(){return B.current&&c===F.current?B.current:T(O.getState(),c)}),[O,M,c]);x(k,[F,N,z,c,U,B,R]),x(E,[C,O,P,T,F,N,z,B,R,D],[O,P,T]);var q=Object(r.useMemo)((function(){return i.a.createElement(t,Object(f.a)({},U,{ref:l}))}),[l,t,U]);return Object(r.useMemo)((function(){return C?i.a.createElement(h.Provider,{value:j},q):q}),[h,q,j])}var O=l?i.a.memo(v):v;if(O.WrappedComponent=t,O.displayName=v.displayName=o,R){var T=i.a.forwardRef((function(e,t){return i.a.createElement(O,Object(f.a)({},e,{reactReduxForwardedRef:t}))}));return T.displayName=o,T.WrappedComponent=t,m()(T,t)}return m()(O,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!C(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function R(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=P(i),i=r(t,n)),i},r}}var j=[function(e){return"function"==typeof e?R(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?A((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var I=[function(e){return"function"==typeof e?R(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function M(e,t,n){return Object(f.a)({},n,e,t)}var L=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];var D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function N(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h,m,g=!d(p,a),v=!c(i,o);return o=i,a=p,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(o,a),m=!f(h,s),s=h,m&&(u=n(s,l,a)),u):u}return function(i,c){return p?h(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),p=!0,u)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(p.a)(t,D),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?F:N)(a,s,l,e,o)}var z=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function U(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function q(e,t){return e===t}function W(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,i=t.mapStateToPropsFactories,o=void 0===i?I:i,a=t.mapDispatchToPropsFactories,s=void 0===a?j:a,l=t.mergePropsFactories,u=void 0===l?L:l,c=t.selectorFactory,d=void 0===c?B:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,m=void 0===h?q:h,g=a.areOwnPropsEqual,v=void 0===g?T:g,y=a.areStatePropsEqual,b=void 0===y?T:y,_=a.areMergedPropsEqual,w=void 0===_?T:_,x=Object(p.a)(a,z),k=U(e,o,"mapStateToProps"),E=U(t,s,"mapDispatchToProps"),S=U(n,u,"mergeProps");return r(d,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:w},x))}}var H=W();function $(){return Object(r.useContext)(o)}function V(e){void 0===e&&(e=o);var t=e===o?$:function(){return Object(r.useContext)(e)};return function(){return t().store}}var G=V();function K(e){void 0===e&&(e=o);var t=e===o?G:V(e);return function(){return t().dispatch}}var Y=K(),Q=function(e,t){return e===t};function X(e){void 0===e&&(e=o);var t=e===o?$:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=Q);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return u(n,i)}),[n,i]),l=Object(r.useRef)(),d=Object(r.useRef)(),f=Object(r.useRef)(),p=Object(r.useRef)(),h=n.getState();try{if(e!==d.current||h!==f.current||l.current){var m=e(h);o=void 0!==p.current&&t(m,p.current)?p.current:m}else o=p.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return c((function(){d.current=e,f.current=h,p.current=o,l.current=void 0})),c((function(){function e(){try{var e=n.getState();if(e===f.current)return;var r=d.current(e);if(t(r,p.current))return;p.current=r,f.current=e}catch(e){l.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var Z,J=X(),ee=n(54);Z=ee.unstable_batchedUpdates,a=Z},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(345);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n(13);function i(e,t,n,i,o,a,s){var l,u=e[t],c=e[t+1],d=e[n]-u,f=e[n+1]-c;if(0===d&&0===f)l=t;else{var p=((o-u)*d+(a-c)*f)/(d*d+f*f);if(p>1)l=n;else{if(p>0){for(var h=0;h<i;++h)s[h]=Object(r.e)(e[t+h],e[n+h],p);return void(s.length=i)}l=t}}for(h=0;h<i;++h)s[h]=e[l+h];s.length=i}function o(e,t,n,i,o){var a=e[t],s=e[t+1];for(t+=i;t<n;t+=i){var l=e[t],u=e[t+1],c=Object(r.i)(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(e,t,l,r,i),t=l}return i}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(e,t,l,r,i),t=l[l.length-1]}return i}function l(e,t,n,o,a,s,l,u,c,d,f){if(t==n)return d;var p,h;if(0===a){if((h=Object(r.i)(l,u,e[t],e[t+1]))<d){for(p=0;p<o;++p)c[p]=e[t+p];return c.length=o,h}return d}for(var m=f||[NaN,NaN],g=t+o;g<n;)if(i(e,g-o,g,o,l,u,m),(h=Object(r.i)(l,u,m[0],m[1]))<d){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(h)-Math.sqrt(d))/a|0,1);if(s&&(i(e,n-o,t,o,l,u,m),(h=Object(r.i)(l,u,m[0],m[1]))<d)){for(d=h,p=0;p<o;++p)c[p]=m[p];c.length=o}return d}function u(e,t,n,r,i,o,a,s,u,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=l(e,t,m,r,i,o,a,s,u,c,f),t=m}return c}function c(e,t,n,r,i,o,a,s,l,c,d){for(var f=d||[NaN,NaN],p=0,h=n.length;p<h;++p){var m=n[p];c=u(e,t,m,r,i,o,a,s,l,c,f),t=m[m.length-1]}return c}},function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return O}));var r,i=n(48),o=n(8),a=n(73),s=n(92),l=n(3),u=n(85),c=n(113),d=n(59),f=n(229),p=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return p(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(l.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Object(d.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.a.XY)},t.prototype.getType=function(){return o.a.LINEAR_RING},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(u.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(a.a),m=n(131),g=n(32),v=n(356),y=n(178),b=n(184),_=n(116),w=n(13),x=(n(277),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),k=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return x(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?Object(g.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(l.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(_.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return Object(f.b)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(b.c)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Object(d.b)(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Object(l.w)(this.getExtent());this.flatInteriorPoint_=Object(v.a)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new m.a(this.getFlatInteriorPoint(),i.a.XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new h(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new h(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(b.a)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(b.c)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(c.c)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,i.a.XY,r)},t.prototype.getType=function(){return o.a.POLYGON},t.prototype.intersectsExtent=function(e){return Object(y.c)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(u.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(a.a);t.a=k;function E(e){var t=e[0],n=e[1],r=e[2],o=e[3],a=[t,n,t,o,r,o,r,n,t,n];return new k(a,i.a.XY,[a.length])}function S(e,t,n){for(var r=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(r+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var d=[l.length],f=new k(l,o,d);return O(f,a,e.getRadius(),n),f}function O(e,t,n,r){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var u=l*o,c=s+2*Object(w.g)(l,a)*Math.PI/a;i[u]=t[0]+n*Math.cos(c),i[u+1]=t[1]+n*Math.sin(c)}e.changed()}},function(e,t,n){"use strict";n.r(t),n.d(t,"createBrowserHistory",(function(){return x})),n.d(t,"createHashHistory",(function(){return C})),n.d(t,"createMemoryHistory",(function(){return A})),n.d(t,"createLocation",(function(){return g})),n.d(t,"locationsAreEqual",(function(){return v})),n.d(t,"parsePath",(function(){return h})),n.d(t,"createPath",(function(){return m}));var r=n(11);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),u=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(39);function c(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"==typeof e?(o=h(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),b||Object(u.a)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,l=void 0!==s&&s,d=a.getUserConfirmation,h=void 0===d?_:d,v=a.keyLength,x=void 0===v?6:v,k=e.basename?p(c(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return k&&(o=f(o,k)),g(o,r,n)}function S(){return Math.random().toString(36).substr(2,x)}var O=y();function C(e){Object(r.a)(B,e),B.length=n.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(E(e.state))}function A(){R(E(w()))}var P=!1;function R(e){if(P)P=!1,C();else{O.confirmTransitionTo(e,"POP",h,(function(t){t?C({action:"POP",location:e}):function(e){var t=B.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(P=!0,L(i))}(e)}))}}var j=E(w()),I=[j.key];function M(e){return k+m(e)}function L(e){n.go(e)}var D=0;function N(e){1===(D+=e)&&1===e?(window.addEventListener("popstate",T),o&&window.addEventListener("hashchange",A)):0===D&&(window.removeEventListener("popstate",T),o&&window.removeEventListener("hashchange",A))}var F=!1;var B={length:n.length,action:"POP",location:j,createHref:M,push:function(e,t){var r=g(e,t,S(),B.location);O.confirmTransitionTo(r,"PUSH",h,(function(e){if(e){var t=M(r),o=r.key,a=r.state;if(i)if(n.pushState({key:o,state:a},null,t),l)window.location.href=t;else{var s=I.indexOf(B.location.key),u=I.slice(0,s+1);u.push(r.key),I=u,C({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=g(e,t,S(),B.location);O.confirmTransitionTo(r,"REPLACE",h,(function(e){if(e){var t=M(r),o=r.key,a=r.state;if(i)if(n.replaceState({key:o,state:a},null,t),l)window.location.replace(t);else{var s=I.indexOf(B.location.key);-1!==s&&(I[s]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),t()}},listen:function(e){var t=O.appendListener(e);return N(1),function(){N(-1),t()}}};return B}var k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:c},slash:{encodePath:c,decodePath:c}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(E(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),b||Object(u.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?_:i,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(c(e.basename)):"",d=k[s],h=d.encodePath,v=d.decodePath;function w(){var e=v(S());return l&&(e=f(e,l)),g(e)}var x=y();function C(e){Object(r.a)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var T=!1,A=null;function P(){var e,t,n=S(),r=h(n);if(n!==r)O(r);else{var i=w(),a=B.location;if(!T&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===m(i))return;A=null,function(e){if(T)T=!1,C();else{x.confirmTransitionTo(e,"POP",o,(function(t){t?C({action:"POP",location:e}):function(e){var t=B.location,n=M.lastIndexOf(m(t));-1===n&&(n=0);var r=M.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(T=!0,L(i))}(e)}))}}(i)}}var R=S(),j=h(R);R!==j&&O(j);var I=w(),M=[m(I)];function L(e){t.go(e)}var D=0;function N(e){1===(D+=e)&&1===e?window.addEventListener("hashchange",P):0===D&&window.removeEventListener("hashchange",P)}var F=!1;var B={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+h(l+m(e))},push:function(e,t){var n=g(e,void 0,void 0,B.location);x.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=m(n),r=h(l+t);if(S()!==r){A=t,function(e){window.location.hash=e}(r);var i=M.lastIndexOf(m(B.location)),o=M.slice(0,i+1);o.push(t),M=o,C({action:"PUSH",location:n})}else C()}}))},replace:function(e,t){var n=g(e,void 0,void 0,B.location);x.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=m(n),r=h(l+t);S()!==r&&(A=t,O(r));var i=M.indexOf(m(B.location));-1!==i&&(M[i]=t),C({action:"REPLACE",location:n})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),t()}},listen:function(e){var t=x.appendListener(e);return N(1),function(){N(-1),t()}}};return B}function T(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,u=void 0===l?6:l,c=y();function d(e){Object(r.a)(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function f(){return Math.random().toString(36).substr(2,u)}var p=T(s,0,o.length-1),h=o.map((function(e){return g(e,void 0,"string"==typeof e?f():e.key||f())})),v=m;function b(e){var t=T(_.index+e,0,_.entries.length-1),r=_.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var _={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:v,push:function(e,t){var r=g(e,t,f(),_.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=g(e,t,f(),_.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(_.entries[_.index]=r,d({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";(function(r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1468)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(97))},function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var l=function(){throw new o},u=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(e){return l}}}():l,c=n(516)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?d(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(385),v=n(518),y=g.call(Function.call,Array.prototype.concat),b=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,E=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return _(e,x,(function(e,t,n,r){i[i.length]=n?_(r,k,"$1"):t||e})),i},S=function(e,t){var n,i=e;if(v(m,i)&&(i="%"+(n=m[i])[0]+"%"),v(h,i)){var s=h[i];if(s===f&&(s=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return h[t]=n,n}(i)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=E(e),i=n.length>0?n[0]:"",a=S("%"+i+"%",t),l=a.name,u=a.value,c=!1,d=a.alias;d&&(i=d[0],b(n,y([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var m=n[f],g=w(m,0,1),_=w(m,-1);if(('"'===g||"'"===g||"`"===g||'"'===_||"'"===_||"`"===_)&&g!==_)throw new r("property names with quotes must have matching quotes");if("constructor"!==m&&p||(c=!0),v(h,l="%"+(i+="."+m)+"%"))u=h[l];else if(null!=u){if(!(m in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var x=s(u,m);u=(p=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:u[m]}else p=v(u,m),u=u[m];p&&!c&&(h[l]=u)}}return u}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(97))},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=t.children||[],a=o.length,s=[],l=-1;for(;++l<a;)(n=r(e,o[l],t))&&(l&&"break"===o[l-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(645)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a=t.children||[],s=a.length,l=[],u=-1;for(;++u<s;)(n=i(e,a[u],t))&&(u&&"break"===a[u-1].type&&(n.value&&(n.value=r.left(n.value)),(o=n.children&&n.children[0])&&o.value&&(o.value=r.left(o.value))),l=l.concat(n));return l};var r=n(202),i=n(712)},function(e,t,n){"use strict";n.d(t,"b",(function(){return h}));var r,i=n(355),o=n(20),a=n(43),s=n(115),l=n(106),u=n(23),c=n(28),d=n(19),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=this,r=Object(c.a)({},t);delete r.source,(n=e.call(this,r)||this).on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addChangeListener(a.a.SOURCE,n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return f(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(a.a.SOURCE)||null},t.prototype.getRenderSource=function(){return this.getSource()},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():l.a.UNDEFINED},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(d.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Object(d.a)(e,o.a.CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise((function(e){return e([])}))},t.prototype.getData=function(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return this.rendered=!0,n.renderFrame(e,t)},t.prototype.unrender=function(){this.rendered=!1},t.prototype.setMapInternal=function(e){e||this.unrender(),this.set(a.a.MAP,e)},t.prototype.getMapInternal=function(){return this.get(a.a.MAP)},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Object(d.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Object(d.c)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Object(d.a)(e,s.a.PRECOMPOSE,(function(e){var t=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(u.a)(!t.some((function(e){return e.layer===n.layer})),67),t.push(n)}),this),this.mapRenderKey_=Object(d.a)(this,o.a.CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(a.a.SOURCE,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),e.prototype.disposeInternal.call(this)},t}(i.a);function h(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(107);function i(e){return Array.isArray(e)?Object(r.c)(e):e}},function(e,t,n){var r=n(240);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\s/},function(e,t,n){"use strict";var r=n(375),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";t.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return h}));var r=n(23),i=n(13),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(e){return"string"==typeof e?e:h(e)}function l(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}var u,c,d=(u={},c=0,function(e){var t;if(u.hasOwnProperty(e))t=u[e];else{if(c>=1024){var n=0;for(var i in u)0==(3&n++)&&(delete u[i],--c)}t=function(e){var t,n,i,s,u;if(a.exec(e)&&(e=l(e)),o.exec(e)){var c=e.length-1,d=void 0;d=c<=4?1:2;var f=4===c||8===c;t=parseInt(e.substr(1+0*d,d),16),n=parseInt(e.substr(1+1*d,d),16),i=parseInt(e.substr(1+2*d,d),16),s=f?parseInt(e.substr(1+3*d,d),16):255,1==d&&(t=(t<<4)+t,n=(n<<4)+n,i=(i<<4)+i,f&&(s=(s<<4)+s)),u=[t,n,i,s/255]}else 0==e.indexOf("rgba(")?p(u=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((u=e.slice(4,-1).split(",").map(Number)).push(1),p(u)):Object(r.a)(!1,14);return u}(e),u[e]=t,++c}return t});function f(e){return Array.isArray(e)?e:d(e)}function p(e){return e[0]=Object(i.b)(e[0]+.5|0,0,255),e[1]=Object(i.b)(e[1]+.5|0,0,255),e[2]=Object(i.b)(e[2]+.5|0,0,255),e[3]=Object(i.b)(e[3],0,1),e}function h(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===c.length,_=b&&0!==f.length;if(b){if(h=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),_){if(u)p=p.slice();else{for(var w={},x=0,k=Object.keys(p);x<k.length;x++){var E=k[x];w[E]=p[E]}p=w}for(var S=0,O=0;O<f.length;O++){var C=f[O][0],T=f[O][1];u&&(C-=S),u&&null===T?(p.splice(C,1),S++):p[C]=T}}d=r.index,c=r.keys,f=r.edits,u=r.inArray,r=r.prev}else{if(h=m?u?d:c[d]:void 0,null==(p=m?m[h]:y))continue;m&&g.push(h)}var A,P=void 0;if(!Array.isArray(p)){if(!(0,o.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,i.default)(p),"."));var R=l(t,p.kind,b);if(R){if((P=R.call(t,p,h,m,g,v))===s)break;if(!1===P){if(!b){g.pop();continue}}else if(void 0!==P&&(f.push([h,P]),!b)){if(!(0,o.isNode)(P)){g.pop();continue}p=P}}}if(void 0===P&&_&&f.push([h,p]),b)g.pop();else r={inArray:u,index:d,keys:c,edits:f,prev:r},u=Array.isArray(p),c=u?p:null!==(A=n[p.kind])&&void 0!==A?A:[],d=-1,f=[],m&&v.push(m),m=p}while(void 0!==r);0!==f.length&&(y=f[f.length-1][1]);return y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===s)t[r]=s;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===s)t[r]=s;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=n(1396))&&r.__esModule?r:{default:r},o=n(1397);var a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var s=Object.freeze({});function l(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}t.BREAK=s},function(e,t,n){var r=n(827),i=n(861),o=n(214),a=n(49),s=n(865);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r;null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={});r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n));return r}},function(e,t,n){"use strict";n.r(t),n.d(t,"TemplateTag",(function(){return l})),n.d(t,"trimResultTransformer",(function(){return u})),n.d(t,"stripIndentTransformer",(function(){return d})),n.d(t,"replaceResultTransformer",(function(){return f})),n.d(t,"replaceSubstitutionTransformer",(function(){return p})),n.d(t,"replaceStringTransformer",(function(){return h})),n.d(t,"inlineArrayTransformer",(function(){return g})),n.d(t,"splitStringTransformer",(function(){return v})),n.d(t,"removeNonPrintingValuesTransformer",(function(){return b})),n.d(t,"commaLists",(function(){return _})),n.d(t,"commaListsAnd",(function(){return w})),n.d(t,"commaListsOr",(function(){return x})),n.d(t,"html",(function(){return k})),n.d(t,"codeBlock",(function(){return k})),n.d(t,"source",(function(){return k})),n.d(t,"safeHtml",(function(){return E})),n.d(t,"oneLine",(function(){return S})),n.d(t,"oneLineTrim",(function(){return O})),n.d(t,"oneLineCommaLists",(function(){return C})),n.d(t,"oneLineCommaListsOr",(function(){return T})),n.d(t,"oneLineCommaListsAnd",(function(){return A})),n.d(t,"inlineLists",(function(){return P})),n.d(t,"oneLineInlineLists",(function(){return R})),n.d(t,"stripIndent",(function(){return j})),n.d(t,"stripIndents",(function(){return I}));var r,i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=["",""],i=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return s(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return o(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce((function(e,t){return t.onString?t.onString(e):e}),e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce((function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e}),e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce((function(e,t){return t.onEndResult?t.onEndResult(e):e}),e)}}]),e}(),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,c(n.map((function(e){return e.length}))));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},f=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},p=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},h=function(e,t){return{onString:function(n){if(null==e||null==t)throw new Error("replaceStringTransformer requires at least 2 arguments.");return n.replace(e,t)}}},m={separator:"",conjunction:"",serial:!1},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var l=t.lastIndexOf(i);t=t.slice(0,l)+(a?i:"")+" "+o+t.slice(l+1)}}return t}}},v=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}},y=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},b=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(y):y(e)?e:""}}},_=new l(g({separator:","}),d,u),w=new l(g({separator:",",conjunction:"and"}),d,u),x=new l(g({separator:",",conjunction:"or"}),d,u),k=new l(v("\n"),b,g,d,u),E=new l(v("\n"),g,d,u,p(/&/g,"&amp;"),p(/</g,"&lt;"),p(/>/g,"&gt;"),p(/"/g,"&quot;"),p(/'/g,"&#x27;"),p(/`/g,"&#x60;")),S=new l(f(/(?:\n(?:\s*))+/g," "),u),O=new l(f(/(?:\n\s*)/g,""),u),C=new l(g({separator:","}),f(/(?:\s+)/g," "),u),T=new l(g({separator:",",conjunction:"or"}),f(/(?:\s+)/g," "),u),A=new l(g({separator:",",conjunction:"and"}),f(/(?:\s+)/g," "),u),P=new l(g,d,u),R=new l(g,f(/(?:\s+)/g," "),u),j=new l(d,u),I=new l(d("all"),u)},function(e,t,n){"use strict";var r,i=n(228),o=n(63),a=n(38),s=n(28),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return l(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"==typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(r){var i=t?new o.a(e):e;i.target||(i.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,u[n]=0),++l[n];for(var c=0,d=r.length;c<d;++c)if(!1===(s="handleEvent"in r[c]?r[c].handleEvent(i):r[c].call(this,i))||i.propagationStopped){s=!1;break}if(0==--l[n]){var f=u[n];for(delete u[n];f--;)this.removeEventListener(n,a.c);delete l[n]}return s}},t.prototype.disposeInternal=function(){this.listeners_&&Object(s.b)(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=a.c,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(i.a);t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(13);function i(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t<n;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;for(var c=[t,n-i],d=0;c.length>0;){for(var f=c.pop(),p=c.pop(),h=0,m=e[p],g=e[p+1],v=e[f],y=e[f+1],b=p+i;b<f;b+=i){var _=e[b],w=e[b+1],x=Object(r.j)(_,w,m,g,v,y);x>h&&(d=b,h=x)}h>o&&(u[(d-t)/i]=1,p+i<d&&c.push(p,d),d+i<f&&c.push(d,f))}for(b=0;b<l;++b)u[b]&&(a[s++]=e[t+b*i],a[s++]=e[t+b*i+1]);return s}function o(e,t,n,r,o,a,s,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];s=i(e,t,d,r,o,a,s),l.push(s),t=d}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,n,r,i,o,s){if(t==n)return s;var l,u,c=a(e[t],i),d=a(e[t+1],i);t+=r,o[s++]=c,o[s++]=d;do{if(l=a(e[t],i),u=a(e[t+1],i),(t+=r)==n)return o[s++]=l,o[s++]=u,s}while(l==c&&u==d);for(;t<n;){var f=a(e[t],i),p=a(e[t+1],i);if(t+=r,f!=l||p!=u){var h=l-c,m=u-d,g=f-c,v=p-d;h*v==m*g&&(h<0&&g<h||h==g||h>0&&g>h)&&(m<0&&v<m||m==v||m>0&&v>m)?(l=f,u=p):(o[s++]=l,o[s++]=u,c=l,d=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(e,t,n,r,i,o,a,l){for(var u=0,c=n.length;u<c;++u){var d=n[u];a=s(e,t,d,r,i,o,a),l.push(a),t=d}return a}function u(e,t,n,r,i,o,a,s){for(var u=0,c=n.length;u<c;++u){var d=n[u],f=[];a=l(e,t,d,r,i,o,a,f),s.push(f),t=d[d.length-1]}return a}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}t.a=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},function(e,t,n){"use strict";t.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n(3);function i(e,t,n,i,a){return!Object(r.s)(a,(function(r){return!o(e,t,n,i,r[0],r[1])}))}function o(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var u=e[t],c=e[t+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(e,t,n,r,i,a){if(0===n.length)return!1;if(!o(e,t,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(e,n[s-1],n[s],r,i,a))return!1;return!0}function s(e,t,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var u=n[s];if(a(e,t,u,r,i,o))return!0;t=u[u.length-1]}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return l}));var r=n(75),i=n(25),o=n(6),a=n(15);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(o.c)(t,e)}(Error);function s(e){return e.request.length<=1}function l(e){return new r.a((function(t){t.error(e)}))}function u(e,t){var n=Object(o.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(o.a)({},n,e(n)):Object(o.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function c(e,t){return t?t(e):r.a.of()}function d(e){return"function"==typeof e?new g(e):e}function f(){return new g((function(){return r.a.of()}))}function p(e){return 0===e.length?f():e.map(d).reduce((function(e,t){return e.concat(t)}))}function h(e,t,n){var i=d(t),o=d(n||new g(c));return s(i)&&s(o)?new g((function(t){return e(t)?i.request(t)||r.a.of():o.request(t)||r.a.of()})):new g((function(t,n){return e(t)?i.request(t,n)||r.a.of():o.request(t,n)||r.a.of()}))}var m=function(e,t){var n=d(e);if(s(n))return n;var i=d(t);return s(i)?new g((function(e){return n.request(e,(function(e){return i.request(e)||r.a.of()}))||r.a.of()})):new g((function(e,t){return n.request(e,(function(e){return i.request(e,t)||r.a.of()}))||r.a.of()}))},g=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(h(t,n,r||new e(c)))},e.prototype.concat=function(e){return m(this,e)},e.prototype.request=function(e,t){throw new i.a(1)},e.empty=f,e.from=p,e.split=h,e.execute=v,e}();function v(e,t){return e.request(u(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(a.n)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw new i.a(2)}return e}(t))))||r.a.of()}},function(e,t,n){"use strict";var r,i=n(181),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,o)||this;return a.originalEvent=r,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==i&&i,a}return o(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},t}(i.a);t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=.5,i=!0},function(e,t,n){var r=n(209),i=n(816),o=n(817),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return m.selectDeployPreview(e.deploys,t,n)},t.selectEntries=function(e,t){return s.selectEntries(e.entries,t)},t.selectEntry=function(e,t,n){return s.selectEntry(e.entries,t,n)},t.selectIntegration=function(e,t,n){return a.selectIntegration(e.integrations,t,n)},t.selectPublishedSlugs=function(e,t){return s.selectPublishedSlugs(e.entries,t)},t.selectSearchedEntries=function(e,t){return(0,r.List)(e.search.entryIds).filter(e=>-1!==t.indexOf(e.collection)).map(t=>s.selectEntry(e.entries,t.collection,t.slug))},t.selectUnpublishedEntriesByStatus=function(e,t){return u.selectUnpublishedEntriesByStatus(e.editorialWorkflow,t)},t.selectUnpublishedEntry=function(e,t,n){return u.selectUnpublishedEntry(e.editorialWorkflow,t,n)},t.selectUnpublishedSlugs=function(e,t){return u.selectUnpublishedSlugs(e.editorialWorkflow,t)};var r=n(4),i=_(n(935)),o=_(n(420)),a=b(n(430)),s=b(n(126)),l=_(n(426)),u=b(n(1173)),c=_(n(428)),d=_(n(71)),f=_(n(1174)),p=_(n(322)),h=_(n(321)),m=b(n(1175)),g=_(n(1176)),v=_(n(1177));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function _(e){return e&&e.__esModule?e:{default:e}}var w={auth:i.default,config:o.default,collections:d.default,search:f.default,integrations:a.default,entries:s.default,cursors:l.default,editorialWorkflow:u.default,entryDraft:c.default,medias:p.default,mediaLibrary:h.default,deploys:m.default,globalUI:g.default,status:v.default};t.default=w},function(e,t,n){var r=n(192),i=n(542),o=n(299),a=n(544),s=n(545),l=n(300),u=n(133);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return i(e);if(!e||!(t=r(t)))return e;var c=l(e),d=l(t),f=s(c,d),p=a(c,d)+1;return o(c,f,p).join("")}},function(e,t,n){var r=n(192),i=n(299),o=n(545),a=n(300),s=n(133),l=/^\s+/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t));return i(u,c).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusDescriptions=t.status=t.Statues=t.SIMPLE=t.EDITORIAL_WORKFLOW=void 0;var r=n(4);t.SIMPLE="simple";t.EDITORIAL_WORKFLOW="editorial_workflow";const i={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"};t.Statues=i;const o=(0,r.OrderedMap)(i);t.status=o;const a=(0,r.Map)({[o.get("DRAFT")]:"Draft",[o.get("PENDING_REVIEW")]:"Waiting for Review",[o.get("PENDING_PUBLISH")]:"Waiting to go live"});t.statusDescriptions=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(35),i=n(44),o=n(148);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function s(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function l(e,t,n,i){const o=r._`${t}${r.getProperty(n)} === undefined`;return i?r.or(o,r.not(s(e,t,n))):o}function u(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(l(n,i,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return r.or(...i.map(i=>r.and(l(e,t,i,n.ownProperties),r._`${o} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=s,t.propertyInData=function(e,t,n,i){const o=r._`${t}${r.getProperty(n)} !== undefined`;return i?r._`${o} && ${s(e,t,n)}`:o},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter(n=>!i.alwaysValidSchema(e,t[n]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},u,c,d){const f=d?r._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,r.strConcat(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=r._`${f}, ${n.object(...p)}`;return c!==r.nil?r._`${u}.call(${c}, ${h})`:r._`${u}(${h})`},t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"";return e.scopeValue("pattern",{key:n,ref:new RegExp(n,i),code:r._`new RegExp(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l(()=>t.assign(e,!1)),e}return t.var(s,!0),l(()=>t.break()),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if(r.not(s),a)})}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>i.alwaysValidSchema(a,e))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block(()=>n.forEach((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`);e.mergeValidEvaluated(a,l)||t.if(r.not(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectEditingDraft=function(e){const t=e.get("entry");return t&&!t.isEmpty()},t.selectEntries=function(e,t){const n=t.get("name");let r=W(e,n);const o=B(e,n);if(o&&o.length>0){const e=o.map(e=>(0,m.selectSortDataPath)(t,e.get("key"))),n=o.map(e=>e.get("direction")===p.SortDirection.Ascending?"asc":"desc");r=(0,u.fromJS)((0,i.default)(r.toJS(),e,n))}const a=z(e,n);a&&a.length>0&&(r=r.filter(e=>a.every(t=>{const n=t.get("pattern"),r=t.get("field"),i=(e.get("data")||(0,u.Map)()).getIn(E(r));return void 0!==i&&new RegExp(String(n)).test(String(i))})).toList());return r},t.selectEntriesFilter=D,t.selectEntriesFilterFields=z,t.selectEntriesGroup=N,t.selectEntriesGroupField=F,t.selectEntriesLoaded=function(e,t){return!!e.getIn(["pages",t])},t.selectEntriesSort=L,t.selectEntriesSortFields=B,t.selectEntry=U,t.selectEntryByPath=function(e,t,n){const r=q(e,t),i=r&&r.map(n=>U(e,t,n));return i&&i.find(e=>(null==e?void 0:e.get("path"))===n)},t.selectGroups=function(e,t){const n=t.get("name"),i=W(e,n),o=F(e,n);if(void 0===o)return[];let a={};const s=(0,r.default)(i.toArray(),e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),i=e.getIn(["data",...E(r)]);if(void 0===i)return{id:"missing_value",label:n,value:i};const o=String(i);if(t.has("pattern")){const e=t.get("pattern");let i="";try{const t=new RegExp(e),n=o.match(t);n&&(i=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${i}`,label:n,value:i}}return{id:`${n}${i}`,label:n,value:"boolean"==typeof i?i:o}}(e,o);return a=x(x({},a),{},{[t.id]:t}),t.id});return Object.entries(s).map(e=>{let[t,n]=e;return x(x({},a[t]),{},{paths:(0,u.Set)(n.map(e=>e.get("path")))})})},t.selectIsFetching=function(e,t){return e.getIn(["pages",t,"isFetching"],!1)},t.selectMediaFilePath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(r))return r;const o=K(e,t,n,i);return(0,c.join)(o,(0,d.basename)(r))},t.selectMediaFilePublicPath=function(e,t,n,r,i){if((0,d.isAbsolutePath)(n))return n;const o="public_folder";let a=e[o];$(o,t,null==r?void 0:r.get("slug"),i)&&(a=G(o,e,t,r,i));if((0,d.isAbsolutePath)(a))return(0,b.joinUrlPath)(a,(0,d.basename)(n));return(0,c.join)(a,(0,d.basename)(n))},t.selectMediaFolder=K,t.selectPublishedSlugs=q,t.selectViewStyle=function(e){return e.get("viewStyle")};var r=_(n(603)),i=_(n(606)),o=_(n(389)),a=_(n(297)),s=_(n(318)),l=_(n(122)),u=n(4),c=n(98),d=n(40),f=n(147),p=n(423),h=n(319),m=n(71),g=n(320),v=n(149),y=n(429),b=n(170);function _(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{keyToPathArray:E}=f.stringTemplate;let S,O,C,T,A;const P="netlify-cms.entries.viewStyle",R=(0,s.default)(()=>{const e=localStorage.getItem("netlify-cms.entries.sort");if(e)try{const t=JSON.parse(e);let n=(0,u.Map)();return Object.entries(t).forEach(e=>{let[t,r]=e,i=(0,u.OrderedMap)();(0,a.default)(Object.values(r),["index"]).forEach(e=>{const{key:t,direction:n}=e;i=i.set(t,(0,u.fromJS)({key:t,direction:n}))}),n=n.set(t,i)}),n}catch(e){return(0,u.Map)()}return(0,u.Map)()});function j(e){if(e){const t={};e.keySeq().forEach(n=>{const r=n;e.get(r).valueSeq().toJS().map((e,t)=>x(x({},e),{},{index:t})).forEach(e=>{(0,o.default)(t,[r,e.key],e)})}),localStorage.setItem("netlify-cms.entries.sort",JSON.stringify(t))}else localStorage.removeItem("netlify-cms.entries.sort")}const I=(0,s.default)(()=>{const e=localStorage.getItem(P);return e||(localStorage.setItem(P,y.VIEW_STYLE_LIST),y.VIEW_STYLE_LIST)});function M(e){e?localStorage.setItem(P,e):localStorage.removeItem(P)}function L(e,t){const n=e.get("sort");return null==n?void 0:n.get(t)}function D(e,t){const n=e.get("filter");return(null==n?void 0:n.get(t))||(0,u.Map)()}function N(e,t){const n=e.get("group");return(null==n?void 0:n.get(t))||(0,u.Map)()}function F(e,t){const n=N(e,t);return null==n?void 0:n.valueSeq().find(e=>!0===(null==e?void 0:e.get("active")))}function B(e,t){const n=L(e,t);return(null==n?void 0:n.valueSeq().filter(e=>(null==e?void 0:e.get("direction"))!==p.SortDirection.None).toArray())||[]}function z(e,t){const n=D(e,t);return(null==n?void 0:n.valueSeq().filter(e=>!0===(null==e?void 0:e.get("active"))).toArray())||[]}function U(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function q(e,t){return e.getIn(["pages",t,"ids"],(0,u.List)())}function W(e,t){const n=q(e,t);return n&&n.map(n=>U(e,t,n))}function H(e,t){return e.find(e=>(null==e?void 0:e.get("name"))===t)}function $(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=H(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function V(e,t,n,r,i,o,a){const s=o.filter(e=>e===i)[0];if(s)return(0,h.folderFormatter)(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of o){s.has(e)||(s=s.set(e,`{{${e}}}`));const o=(0,h.folderFormatter)(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=V(e,t,n,r,i,s.get("fields").toArray(),o):s.has("field")?l=V(e,t,n,r,i,[s.get("field")],o):s.has("types")&&(l=V(e,t,n,r,i,s.get("types").toArray(),o)),null!=l)return l}return null}function G(e,t,n,r,i){let o=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug);let a=H(n.get("files"),null==r?void 0:r.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),o=(0,h.folderFormatter)(a.get(e),r,n,o,e,t.slug),i)){const s=V(e,t,n,r,i,a.get("fields").toArray(),o);null!==s&&(o=s)}}else if(o=(0,h.folderFormatter)(n.get(e),r,n,o,e,t.slug),i){const a=V(e,t,n,r,i,n.get("fields").toArray(),o);null!==a&&(o=a)}return o}function K(e,t,n,r){const i="media_folder";let o=e[i];if($(i,t,null==n?void 0:n.get("slug"),r)){const a=G(i,e,t,n,r);if(a.startsWith("/"))o=(0,c.join)(a);else{const e=null==n?void 0:n.get("path");o=e?(0,c.join)((0,c.dirname)(e),a):(0,c.join)(t.get("folder"),"DRAFT_MEDIA_FILES")}}return(0,l.default)(o,"/")}var Y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,u.Map)({entities:(0,u.Map)(),pages:(0,u.Map)(),sort:R(),viewStyle:I()}),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case v.ENTRY_REQUEST:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case v.ENTRY_SUCCESS:{const n=t.payload;return S=n.collection,A=n.entry.slug,e.withMutations(e=>{e.setIn(["entities",`${S}.${A}`],(0,u.fromJS)(n.entry));const t=e.getIn(["pages",S,"ids"],(0,u.List)());t.includes(A)||e.setIn(["pages",S,"ids"],t.unshift(A))})}case v.ENTRIES_REQUEST:{const n=t.payload;return e.withMutations(e=>{e.setIn(["pages",n.collection,"isFetching"],!0)})}case v.ENTRIES_SUCCESS:{const n=t.payload;return S=n.collection,O=n.entries,C=n.append,T=n.page,e.withMutations(e=>{O.forEach(t=>e.setIn(["entities",`${S}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1)));const t=(0,u.List)(O.map(e=>e.slug));e.setIn(["pages",S],(0,u.Map)({page:T,ids:C?e.getIn(["pages",S,"ids"],(0,u.List)()).concat(t):t}))})}case v.ENTRIES_FAILURE:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case v.ENTRY_FAILURE:{const n=t.payload;return e.withMutations(e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)})}case g.SEARCH_ENTRIES_SUCCESS:{const n=t.payload;return O=n.entries,e.withMutations(e=>{O.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1)))})}case v.ENTRY_DELETE_SUCCESS:{const n=t.payload;return e.withMutations(e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],e=>e.filter(e=>e!==n.entrySlug))})}case v.SORT_ENTRIES_REQUEST:{const n=t.payload,{collection:r,key:i,direction:o}=n,a=e.withMutations(e=>{const t=(0,u.OrderedMap)({[i]:(0,u.Map)({key:i,direction:o})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])});return j(a.get("sort")),a}case v.GROUP_ENTRIES_SUCCESS:case v.FILTER_ENTRIES_SUCCESS:case v.SORT_ENTRIES_SUCCESS:{const n=t.payload,{collection:r,entries:i}=n;O=i;return e.withMutations(e=>{O.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,u.fromJS)(t).set("isFetching",!1))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,u.List)(O.map(e=>e.slug));e.setIn(["pages",r],(0,u.Map)({page:1,ids:t}))})}case v.SORT_ENTRIES_FAILURE:{const n=t.payload,{collection:r,key:i}=n,o=e.withMutations(e=>{e.deleteIn(["sort",r,i]),e.setIn(["pages",r,"isFetching"],!1)});return j(o.get("sort")),o}case v.FILTER_ENTRIES_REQUEST:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations(e=>{const t=e.getIn(["filter",r,i.id],(0,u.fromJS)(i));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))})}case v.FILTER_ENTRIES_FAILURE:{const n=t.payload,{collection:r,filter:i}=n;return e.withMutations(e=>{e.deleteIn(["filter",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)})}case v.GROUP_ENTRIES_REQUEST:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations(e=>{const t=e.getIn(["group",r,i.id],(0,u.fromJS)(i));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))})}case v.GROUP_ENTRIES_FAILURE:{const n=t.payload,{collection:r,group:i}=n;return e.withMutations(e=>{e.deleteIn(["group",r,i.id]),e.setIn(["pages",r,"isFetching"],!1)})}case v.CHANGE_VIEW_STYLE:{const n=t.payload,{style:r}=n,i=e.withMutations(e=>{e.setIn(["viewStyle"],r)});return M(i.get("viewStyle")),i}default:return e}};t.default=Y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return u(e,t)})),i=function(e){return r.some((function(t){return c(t,e)}))};return null==n?i:i(n)}function u(e,t){var n=t&&t.byKey,r={},s=(e=e.replace("++","+add")).split("+"),l=s.length;for(var u in i)r[i[u]]=!1;var c=!0,p=!1,h=void 0;try{for(var m,g=s[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var v=m.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=f(v),_=i[b];if(v.length>1&&!_&&!o[v]&&!a[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==l&&_||(n?r.key=b:r.which=d(v)),_&&(r[_]=!y||null)}}catch(e){p=!0,h=e}finally{try{!c&&g.return&&g.return()}finally{if(p)throw h}}return r}function c(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&((null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r))return!1}return!0}function d(e){return e=f(e),a[e]||e.toUpperCase().charCodeAt(0)}function f(e){return e=e.toLowerCase(),e=o[e]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=u,t.compareHotkey=c,t.toKeyCode=d,t.toKeyName=f},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return i(t)&&t.tagName===e}}(e);if(null==e)return i;if("object"==typeof e)return t=function(e){for(var t=e.length,n=-1,i=[];++n<t;)i[n]=r(e[n]);return i}(e),n=t.length,function(){for(var e=-1;++e<n;)if(t[e].apply(this,arguments))return!0;return!1};var t,n;if("function"==typeof e)return function(e){return function(t){return i(t)&&Boolean(e.apply(this,arguments))}}(e);throw new Error("Expected function, string, or array as test")}function i(e){return e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName}e.exports=r},function(e,t,n){"use strict";t.a={PROPERTYCHANGE:"propertychange"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(46);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var r,i=n(8),o=n(73),a=n(3),s=n(85),l=n(13),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return u(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=Object(l.i)(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,s=0;s<a;++s)n[s]=i[s];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return Object(a.m)(this.flatCoordinates,e)},t.prototype.getType=function(){return i.a.POINT},t.prototype.intersectsExtent=function(e){return Object(a.h)(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s.a)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o.a);t.a=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalStyles=function(){return(0,i.jsx)(i.Global,{styles:(0,i.css)("*,*:before,*:after{box-sizing:border-box;}:focus{outline:-webkit-focus-ring-color auto ",d.borderRadius,";}[data-whatintent='mouse'] *:focus{outline:none;}input{border:0;}body{font-family:",l.primary,";font-weight:normal;background-color:",c.background,";color:",c.text,";margin:0;}ul,ol{padding-left:0;}h1,h2,h3,h4,h5,h6,p{font-family:",l.primary,";color:",c.textLead,";font-size:15px;line-height:1.5;margin-top:0;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1{font-size:24px;letter-spacing:0.4px;color:",c.textLead,";}a,button{font-size:14px;font-weight:500;}a{color:",c.text,";text-decoration:none;}button{font-family:inherit;}img{max-width:100%;}textarea{resize:none;};label:GlobalStyles;")})},t.zIndex=t.transitions=t.text=t.shadows=t.reactSelectStyles=t.lengths=t.fonts=t.effects=t.components=t.colorsRaw=t.colors=t.buttons=t.borders=void 0;(r=n(0))&&r.__esModule;var r,i=n(9);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={primary:'\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol"\n ',mono:"\n 'SFMono-Regular',\n Consolas,\n \"Liberation Mono\",\n Menlo,\n Courier,\n monospace;\n "};t.fonts=l;const u={white:"#fff",grayLight:"#eff0f4",gray:"#798291",grayDark:"#313d3e",blue:"#3a69c7",blueLight:"#e8f5fe",green:"#005614",greenLight:"#caef6f",brown:"#754e00",yellow:"#ffee9c",red:"#ff003b",redLight:"#fcefea",purple:"#70399f",purpleLight:"#f6d8ff",teal:"#17a2b8",tealLight:"#ddf5f9"};t.colorsRaw=u;const c={statusDraftText:u.purple,statusDraftBackground:u.purpleLight,statusReviewText:u.brown,statusReviewBackground:u.yellow,statusReadyText:u.green,statusReadyBackground:u.greenLight,text:u.gray,textLight:u.white,textLead:u.grayDark,background:u.grayLight,foreground:u.white,active:u.blue,activeBackground:u.blueLight,inactive:u.gray,button:u.grayDark,buttonText:u.white,inputBackground:u.white,infoText:u.blue,infoBackground:u.blueLight,successText:u.green,successBackground:u.greenLight,warnText:u.brown,warnBackground:u.yellow,errorText:u.red,errorBackground:u.redLight,textFieldBorder:"#dfdfe3",controlLabel:"#7a8291",checkerboardLight:"#f2f2f2",checkerboardDark:"#e6e6e6",mediaDraftText:u.purple,mediaDraftBackground:u.purpleLight};t.colors=c;const d={topBarHeight:"56px",inputPadding:"16px 20px",borderRadius:"5px",richTextEditorMinHeight:"300px",borderWidth:"2px",topCardWidth:"682px",pageMargin:"28px 18px",objectWidgetTopBarContainerPadding:"0 14px 14px"};t.lengths=d;const f={textField:`solid ${d.borderWidth} ${c.textFieldBorder}`};t.borders=f;t.transitions={main:".2s ease"};const p={drop:"\n box-shadow: 0 2px 4px 0 rgba(19, 39, 48, 0.12);\n ",dropMain:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05), 0 1px 3px 0 rgba(68, 74, 87, 0.1);\n ",dropMiddle:"\n box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.3);\n ",dropDeep:"\n box-shadow: 0 4px 12px 0 rgba(68, 74, 87, 0.15), 0 1px 3px 0 rgba(68, 74, 87, 0.25);\n ",inset:"\n box-shadow: inset 0 0 4px rgba(68, 74, 87, 0.3);\n "};t.shadows=p;const h={fieldLabel:(0,i.css)("font-size:12px;text-transform:uppercase;font-weight:600;color:",c.controlLabel,";;label:fieldLabel;")};t.text=h;const m={checkerboard:`\n linear-gradient(\n 45deg,\n ${c.checkerboardDark} 25%,\n transparent 25%,\n transparent 75%,\n ${c.checkerboardDark} 75%,\n ${c.checkerboardDark}\n )\n `},g={checkerboard:(0,i.css)("background-color:",c.checkerboardLight,";background-size:16px 16px;background-position:0 0,8px 8px;background-image:",m.checkerboard,",",m.checkerboard,";;label:checkerboard;")};t.effects=g;const v={name:"12f5b7t-badge",styles:"font-size:13px;line-height:1;;label:badge;"},y=(0,i.css)(v,";display:block;border-radius:",d.borderRadius,";padding:4px 10px;text-align:center;;label:backgroundBadge;"),b=(0,i.css)(v,";display:inline-block;font-weight:700;text-transform:uppercase;;label:textBadge;"),_=(0,i.css)(p.dropMain,";border-radius:5px;background-color:#fff;;label:card;"),w={button:(0,i.css)("border:0;border-radius:",d.borderRadius,";cursor:pointer;;label:button;"),default:(0,i.css)("height:36px;line-height:36px;font-weight:500;padding:0 15px;background-color:",u.gray,";color:",u.white,";;label:default;"),widget:{name:"fu58w0-widget",styles:"display:flex;justify-content:center;align-items:center;padding:2px 12px;font-size:12px;font-weight:bold;border-radius:3px;;label:widget;"},medium:{name:"17u3ojd-medium",styles:"height:27px;line-height:27px;font-size:12px;font-weight:600;border-radius:3px;padding:0 24px 0 14px;;label:medium;"},small:{name:"1ryj6xw-small",styles:"font-size:13px;height:23px;line-height:23px;;label:small;"},gray:(0,i.css)("background-color:",c.button,";color:",c.buttonText,";&:focus,&:hover{color:",u.white,";background-color:#555a65;};label:gray;"),grayText:(0,i.css)("background-color:transparent;color:",u.gray,";;label:grayText;"),green:(0,i.css)("background-color:#aae31f;color:",u.green,";;label:green;"),lightRed:(0,i.css)("background-color:",u.redLight,";color:",u.red,";;label:lightRed;"),lightBlue:(0,i.css)("background-color:",u.blueLight,";color:",u.blue,";;label:lightBlue;"),lightTeal:(0,i.css)("background-color:",u.tealLight,";color:#1195aa;;label:lightTeal;"),teal:(0,i.css)("background-color:",u.teal,";color:",u.white,";;label:teal;"),disabled:(0,i.css)("background-color:",u.grayLight,";color:",u.gray,";cursor:default;;label:disabled;")};t.buttons=w;const x=(0,i.css)("color:",u.white,";width:0;height:0;border:5px solid transparent;border-radius:2px;;label:caret;"),k={card:_,caretDown:(0,i.css)(x,";border-top:6px solid currentColor;border-bottom:0;;label:caretDown;"),caretRight:(0,i.css)(x,";border-left:6px solid currentColor;border-right:0;;label:caretRight;"),badge:(0,i.css)(y,";color:",c.infoText,";background-color:",c.infoBackground,";;label:badge;"),badgeSuccess:(0,i.css)(y,";color:",c.successText,";background-color:",c.successBackground,";;label:badgeSuccess;"),badgeDanger:(0,i.css)(y,";color:",u.red,";background-color:#fbe0d7;;label:badgeDanger;"),textBadge:(0,i.css)(b,";color:",c.infoText,";;label:textBadge;"),textBadgeSuccess:(0,i.css)(b,";color:",c.successText,";;label:textBadgeSuccess;"),textBadgeDanger:(0,i.css)(b,";color:",u.red,";;label:textBadgeDanger;"),loaderSize:{name:"1d48ugo-loaderSize",styles:"width:2.2857rem;height:2.2857rem;;label:loaderSize;"},cardTop:(0,i.css)(_,";width:",d.topCardWidth,";max-width:100%;padding:18px 20px;margin-bottom:28px;;label:cardTop;"),cardTopHeading:{name:"wfgyt-cardTopHeading",styles:"font-size:22px;font-weight:600;line-height:37px;margin:0;padding:0;;label:cardTopHeading;"},cardTopDescription:(0,i.css)("max-width:480px;color:",c.text,";font-size:14px;margin-top:8px;;label:cardTopDescription;"),objectWidgetTopBarContainer:(0,i.css)("padding:",d.objectWidgetTopBarContainerPadding,";;label:objectWidgetTopBarContainer;"),dropdownList:(0,i.css)(p.dropDeep,";background-color:",u.white,";border-radius:",d.borderRadius,";overflow:hidden;;label:dropdownList;"),dropdownItem:(0,i.css)(w.button,";background-color:transparent;border-radius:0;color:",u.gray,";font-weight:500;border-bottom:1px solid #eaebf1;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;min-width:max-content;&:last-of-type{border-bottom:0;}&.active,&:hover,&:active,&:focus{color:",c.active,";background-color:",c.activeBackground,";};label:dropdownItem;"),viewControlsText:(0,i.css)("font-size:14px;color:",c.text,";margin-right:12px;white-space:nowrap;;label:viewControlsText;")};t.components=k;const E={control:e=>a(a({},e),{},{border:0,boxShadow:"none",padding:"9px 0 9px 12px"}),option:(e,t)=>a(a({},e),{},{backgroundColor:t.isSelected?""+c.active:t.isFocused?""+c.activeBackground:"transparent",paddingLeft:"22px"}),menu:e=>a(a({},e),{},{right:0,zIndex:S.zIndex300}),container:e=>a(a({},e),{},{padding:"0 !important"}),indicatorSeparator:(e,t)=>t.hasValue&&t.selectProps.isClearable?a(a({},e),{},{backgroundColor:""+c.textFieldBorder}):{display:"none"},dropdownIndicator:e=>a(a({},e),{},{color:""+c.controlLabel}),clearIndicator:e=>a(a({},e),{},{color:""+c.controlLabel}),multiValue:e=>a(a({},e),{},{backgroundColor:c.background}),multiValueLabel:e=>a(a({},e),{},{color:c.textLead,fontWeight:500}),multiValueRemove:e=>a(a({},e),{},{color:c.controlLabel,":hover":{color:c.errorText,backgroundColor:c.errorBackground}})};t.reactSelectStyles=E;const S={zIndex0:0,zIndex1:1,zIndex2:2,zIndex10:10,zIndex100:100,zIndex200:200,zIndex299:299,zIndex300:300,zIndex1000:1e3,zIndex10000:1e4,zIndex99999:99999};t.zIndex=S},function(e,t,n){var r=n(192);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(967);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(378),i=n(212),o=n(237),a=n(49),s=n(162),l=n(238),u=n(286),c=n(284),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getBackend=j,t.getEditorComponents=O,t.getEventListeners=D,t.getLocale=U,t.getMediaLibrary=M,t.getPreviewStyles=y,t.getPreviewTemplate=_,t.getRemarkPlugins=T,t.getWidget=x,t.getWidgetValueSerializer=P,t.getWidgets=k,t.invokeEvent=F,t.registerBackend=R,t.registerEditorComponent=S,t.registerEventListener=N,t.registerLocale=z,t.registerMediaLibrary=I,t.registerPreviewStyle=v,t.registerPreviewTemplate=b,t.registerRemarkPlugin=C,t.registerWidget=w,t.registerWidgetValueSerializer=A,t.removeEventListener=B,t.resolveWidget=E;var r=n(4),i=l(n(144)),o=n(111),a=l(n(1149));const s=["name","controlComponent","previewComponent","schema","allowMapValue","globalStyles"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=["prePublish","postPublish","preUnpublish","postUnpublish","preSave","postSave"],h={};p.forEach(e=>{h[e]=[]});const m={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,r.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:h};var g={registerPreviewStyle:v,getPreviewStyles:y,registerPreviewTemplate:b,getPreviewTemplate:_,registerWidget:w,getWidget:x,getWidgets:k,resolveWidget:E,registerEditorComponent:S,getEditorComponents:O,registerRemarkPlugin:C,getRemarkPlugins:T,registerWidgetValueSerializer:A,getWidgetValueSerializer:P,registerBackend:R,getBackend:j,registerMediaLibrary:I,getMediaLibrary:M,registerLocale:z,getLocale:U,registerEventListener:N,removeEventListener:B,getEventListeners:D,invokeEvent:F};function v(e,t){m.previewStyles.push(d(d({},t),{},{value:e}))}function y(){return m.previewStyles}function b(e,t){m.templates[e]=t}function _(e){return m.templates[e]}function w(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Array.isArray(e))e.forEach(e=>{"object"!=typeof e?console.error("Cannot register widget: "+e):w(e)});else if("string"==typeof e){const i="string"==typeof t?m.widgets[t].control:t;m.widgets[e]={control:i,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:i={},allowMapValue:a,globalStyles:l}=e,c=u(e,s);if(m.widgets[t]&&console.warn(o.oneLine`
Multiple widgets registered with name "${t}". Only the last widget registered with
this name will be used.
`),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);m.widgets[t]=d({control:n,preview:r,schema:i,globalStyles:l,allowMapValue:a},c)}else console.error("`registerWidget` failed, called with incorrect arguments.")}function x(e){return m.widgets[e]}function k(){return(0,i.default)(Object.entries(m.widgets),e=>e.map(e=>{let[t,n]=e;return d({name:t},n)}))}function E(e){return x(e||"string")||x("unknown")}function S(e){const t=(0,a.default)(e);if("code-block"===t.type){const e=m.editorComponents.find(e=>"code-block"===e.type);e&&(console.warn(o.oneLine`
Only one editor component of type "code-block" may be registered. Previously registered code
block component(s) will be overwritten.
`),m.editorComponents=m.editorComponents.delete(e.id))}m.editorComponents=m.editorComponents.set(t.id,t)}function O(){return m.editorComponents}function C(e){m.remarkPlugins.push(e)}function T(){return m.remarkPlugins}function A(e,t){m.widgetValueSerializers[e]=t}function P(e){return m.widgetValueSerializers[e]}function R(e,t){e&&t?m.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):m.backends[e]={init:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(...n)}}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")}function j(e){return m.backends[e]}function I(e,t){if(m.mediaLibraries.find(t=>e.name===t.name))throw new Error(`A media library named ${e.name} has already been registered.`);m.mediaLibraries.push(d(d({},e),{},{options:t}))}function M(e){return m.mediaLibraries.find(t=>t.name===e)}function L(e){if(!p.includes(e))throw new Error(`Invalid event name '${e}'`)}function D(e){return L(e),[...m.eventHandlers[e]]}function N(e){let{name:t,handler:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(t),m.eventHandlers[t].push({handler:n,options:r})}async function F(e){let{name:t,data:n}=e;L(t);const r=m.eventHandlers[t];let i=d({},n);for(const{handler:e,options:t}of r){const r=await e(i,t);if(void 0!==r){const e=i.entry.set("data",r);i=d(d({},n),{},{entry:e})}}return i.entry.get("data")}function B(e){let{name:t,handler:n}=e;L(t),m.eventHandlers[t]=n?m.eventHandlers[t].filter(e=>e.handler!==n):[]}function z(e,t){e&&t?m.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")}function U(e){return m.locales[e]}t.default=g},function(e,t,n){"use strict";function r(e){if(null==e)return i;if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function(e){var t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return function(){var e=-1;for(;++e<t.length;)if(t[e].apply(this,arguments))return!0;return!1}}(e):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(){return!0}e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(347),i=n(348),o=n(346),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=Object(o.a)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i.a[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)p={name:i.name,styles:i.styles,next:p},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a,!1);switch(o){case"animation":case"animationName":r+=c(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)u(a[l])&&(r+=c(o)+":"+d(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,a=n(e);return p=o,f(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var p,h=/label:\s*([^\s;\n{]+)\s*;/g;var m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=f(n,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=f(n,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);h.lastIndex=0;for(var l,u="";null!==(l=h.exec(o));)u+="-"+l[1];return{name:Object(r.a)(o)+u,styles:o,next:p}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(13);function i(e){return void 0!==e?0:void 0}function o(e){return void 0!==e?e:void 0}function a(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}function s(e){var t=e||Object(r.l)(5);return function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function i(e,t,n,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=n,o.maxY=i,o):new r(e,t,n,i)}t.b=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[J]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===te}(e)||Array.isArray(e)||!!e[Z]||!!e.constructor[Z]||p(e)||h(e))}function a(e){return i(e)||r(23,e),e[J].t}function s(e,t,n){void 0===n&&(n=!1),0===l(e)?(n?Object.keys:ne)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function l(e){var t=e[J];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function u(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===l(e)?e.get(t):e[t]}function d(e,t,n){var r=l(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return K&&e instanceof Map}function h(e){return Y&&e instanceof Set}function m(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=re(e);delete t[J];for(var n=ne(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),b(e)||i(e)||!o(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&s(e,(function(e,t){return v(t,!0)}),!0)),e}function y(){r(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var t=ie[e];return t||r(18,e),t}function w(e,t){ie[e]||(ie[e]=t)}function x(){return V}function k(e,t){t&&(_("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){S(e),e.p.forEach(C),e.p=null}function S(e){e===V&&(V=e.l)}function O(e){return V={p:[],l:V,h:e,m:!0,_:0}}function C(e){var t=e[J];0===t.i||1===t.i?t.j():t.O=!0}function T(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||_("ES5").S(t,e,i),i?(n[J].P&&(E(t),r(4)),o(e)&&(e=A(t,e),t.l||R(t,e)),t.u&&_("Patches").M(n[J].t,e,t.u,t.s)):e=A(t,n,[]),E(t),t.u&&t.v(t.u,t.s),e!==X?e:void 0}function A(e,t,n){if(b(t))return t;var r=t[J];if(!r)return s(t,(function(i,o){return P(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return R(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=g(r.k):r.o;s(3===r.i?new Set(i):i,(function(t,o){return P(e,r,i,t,o,n)})),R(e,i,!1),n&&e.u&&_("Patches").R(r,n,e.u,e.s)}return r.o}function P(e,t,n,r,a,s){if(i(a)){var l=A(e,a,s&&t&&3!==t.i&&!u(t.D,r)?s.concat(r):void 0);if(d(n,r,l),!i(l))return;e.m=!1}if(o(a)&&!b(a)){if(!e.h.F&&e._<1)return;A(e,a),t&&t.A.l||R(e,a)}}function R(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&v(t,n)}function j(e,t){var n=e[J];return(n?m(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function L(e){e.o||(e.o=g(e.t))}function D(e,t,n){var r=p(t)?_("MapSet").N(t,n):h(t)?_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=oe;n&&(i=[r],o=ae);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):_("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function N(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[J],i=l(t);if(r){if(!r.P&&(r.i<4||!_("ES5").K(r)))return r.t;r.I=!0,n=F(t,i),r.I=!1}else n=F(t,i);return s(n,(function(t,i){r&&c(r.t,t)===i||d(n,t,e(i))})),3===i?new Set(n):n}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}function B(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[J];return oe.get(t,e)},set:function(t){var n=this[J];oe.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][J];if(!i.P)switch(i.i){case 5:r(i)&&M(i);break;case 4:n(i)&&M(i)}}}function n(e){for(var t=e.t,n=e.k,r=ne(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==J){var a=t[o];if(void 0===a&&!u(t,o))return!0;var s=n[o],l=s&&s[J];if(l?l.t!==a:!f(s,a))return!0}}var c=!!t[J];return r.length!==ne(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};w("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=re(n);delete o[J];for(var a=ne(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,J,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[J].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[J];if(n){var i=n.t,o=n.k,a=n.D,l=n.i;if(4===l)s(o,(function(t){t!==J&&(void 0!==i[t]||u(i,t)?a[t]||e(o[t]):(a[t]=!0,M(n)))})),s(i,(function(e){void 0!==o[e]||u(o,e)||(a[e]=!1,M(n))}));else if(5===l){if(r(n)&&(M(n),a.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)a[c]=!1;else for(var d=i.length;d<o.length;d++)a[d]=!0;for(var f=Math.min(o.length,i.length),p=0;p<f;p++)o.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&e(o[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}function z(){function e(t){if(!o(t))return t;if(Array.isArray(t))return t.map(e);if(p(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(h(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return u(t,Z)&&(n[Z]=t[Z]),n}function t(t){return i(t)?e(t):t}var n="add";w("Patches",{$:function(t,i){return i.forEach((function(i){for(var o=i.path,a=i.op,s=t,u=0;u<o.length-1;u++){var d=l(s),f=""+o[u];0!==d&&1!==d||"__proto__"!==f&&"constructor"!==f||r(24),"function"==typeof s&&"prototype"===f&&r(24),"object"!=typeof(s=c(s,f))&&r(15,o.join("/"))}var p=l(s),h=e(i.value),m=o[o.length-1];switch(a){case"replace":switch(p){case 2:return s.set(m,h);case 3:r(16);default:return s[m]=h}case n:switch(p){case 1:return"-"===m?s.push(h):s.splice(m,0,h);case 2:return s.set(m,h);case 3:return s.add(h);default:return s[m]=h}case"remove":switch(p){case 1:return s.splice(m,1);case 2:return s.delete(m);case 3:return s.delete(i.value);default:return delete s[m]}default:r(17,a)}})),t},R:function(e,r,i,o){switch(e.i){case 0:case 4:case 2:return function(e,r,i,o){var a=e.t,l=e.o;s(e.D,(function(e,s){var d=c(a,e),f=c(l,e),p=s?u(a,e)?"replace":n:"remove";if(d!==f||"replace"!==p){var h=r.concat(e);i.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:f}),o.push(p===n?{op:"remove",path:h}:"remove"===p?{op:n,path:h,value:t(d)}:{op:"replace",path:h,value:t(d)})}}))}(e,r,i,o);case 5:case 1:return function(e,r,i,o){var a=e.t,s=e.D,l=e.o;if(l.length<a.length){var u=[l,a];a=u[0],l=u[1];var c=[o,i];i=c[0],o=c[1]}for(var d=0;d<a.length;d++)if(s[d]&&l[d]!==a[d]){var f=r.concat([d]);i.push({op:"replace",path:f,value:t(l[d])}),o.push({op:"replace",path:f,value:t(a[d])})}for(var p=a.length;p<l.length;p++){var h=r.concat([p]);i.push({op:n,path:h,value:t(l[p])})}a.length<l.length&&o.push({op:"replace",path:r.concat(["length"]),value:a.length})}(e,r,i,o);case 3:return function(e,t,r,i){var o=e.t,a=e.o,s=0;o.forEach((function(e){if(!a.has(e)){var o=t.concat([s]);r.push({op:"remove",path:o,value:e}),i.unshift({op:n,path:o,value:e})}s++})),s=0,a.forEach((function(e){if(!o.has(e)){var a=t.concat([s]);r.push({op:n,path:a,value:e}),i.unshift({op:"remove",path:a,value:e})}s++}))}(e,r,i,o)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===X?void 0:t}),r.push({op:"replace",path:[],value:e})}})}function U(){function e(e,t){function n(){this.constructor=e}a(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.D=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(o(t)){var n=D(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function i(e){e.O&&r(3,JSON.stringify(m(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},l=function(){function n(e,t){return this[J]={i:2,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,D:void 0,t:e,k:this,C:!1,O:!1},this}e(n,Map);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return m(this[J]).size}}),r.has=function(e){return m(this[J]).has(e)},r.set=function(e,n){var r=this[J];return i(r),m(r).has(e)&&m(r).get(e)===n||(t(r),M(r),r.D.set(e,!0),r.o.set(e,n),r.D.set(e,!0)),this},r.delete=function(e){if(!this.has(e))return!1;var n=this[J];return i(n),t(n),M(n),n.t.has(e)?n.D.set(e,!1):n.D.delete(e),n.o.delete(e),!0},r.clear=function(){var e=this[J];i(e),m(e).size&&(t(e),M(e),e.D=new Map,s(e.t,(function(t){e.D.set(t,!1)})),e.o.clear())},r.forEach=function(e,t){var n=this;m(this[J]).forEach((function(r,i){e.call(t,n.get(i),i,n)}))},r.get=function(e){var n=this[J];i(n);var r=m(n).get(e);if(n.I||!o(r))return r;if(r!==n.t.get(e))return r;var a=D(n.A.h,r,n);return t(n),n.o.set(e,a),a},r.keys=function(){return m(this[J]).keys()},r.values=function(){var e,t=this,n=this.keys();return(e={})[ee]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},r.entries=function(){var e,t=this,n=this.keys();return(e={})[ee]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},r[ee]=function(){return this.entries()},n}(),u=function(){function t(e,t){return this[J]={i:3,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,O:!1,C:!1},this}e(t,Set);var r=t.prototype;return Object.defineProperty(r,"size",{get:function(){return m(this[J]).size}}),r.has=function(e){var t=this[J];return i(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},r.add=function(e){var t=this[J];return i(t),this.has(e)||(n(t),M(t),t.o.add(e)),this},r.delete=function(e){if(!this.has(e))return!1;var t=this[J];return i(t),n(t),M(t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},r.clear=function(){var e=this[J];i(e),m(e).size&&(n(e),M(e),e.o.clear())},r.values=function(){var e=this[J];return i(e),n(e),e.o.values()},r.entries=function(){var e=this[J];return i(e),n(e),e.o.entries()},r.keys=function(){return this.values()},r[ee]=function(){return this.values()},r.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();w("MapSet",{N:function(e,t){return new l(e,t)},T:function(e,t){return new u(e,t)}})}function q(){B(),U(),z()}function W(e){return e}function H(e){return e}n.r(t),n.d(t,"Immer",(function(){return se})),n.d(t,"applyPatches",(function(){return pe})),n.d(t,"castDraft",(function(){return W})),n.d(t,"castImmutable",(function(){return H})),n.d(t,"createDraft",(function(){return he})),n.d(t,"current",(function(){return N})),n.d(t,"enableAllPlugins",(function(){return q})),n.d(t,"enableES5",(function(){return B})),n.d(t,"enableMapSet",(function(){return U})),n.d(t,"enablePatches",(function(){return z})),n.d(t,"finishDraft",(function(){return me})),n.d(t,"freeze",(function(){return v})),n.d(t,"immerable",(function(){return Z})),n.d(t,"isDraft",(function(){return i})),n.d(t,"isDraftable",(function(){return o})),n.d(t,"nothing",(function(){return X})),n.d(t,"original",(function(){return a})),n.d(t,"produce",(function(){return ue})),n.d(t,"produceWithPatches",(function(){return ce})),n.d(t,"setAutoFreeze",(function(){return de})),n.d(t,"setUseProxies",(function(){return fe}));var $,V,G="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),K="undefined"!=typeof Map,Y="undefined"!=typeof Set,Q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,X=G?Symbol.for("immer-nothing"):(($={})["immer-nothing"]=!0,$),Z=G?Symbol.for("immer-draftable"):"__$immer_draftable",J=G?Symbol.for("immer-state"):"__$immer_state",ee="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",te=""+Object.prototype.constructor,ne="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,re=Object.getOwnPropertyDescriptors||function(e){var t={};return ne(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ie={},oe={get:function(e,t){if(t===J)return e;var n=m(e);if(!u(n,t))return function(e,t,n){var r,i=I(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===j(e.t,t)?(L(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,n){var r=I(m(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=j(m(e),t),o=null==i?void 0:i[J];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,i)&&(void 0!==n||u(e.t,t)))return!0;L(e),M(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.D[t]=!1,L(e),M(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=m(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},ae={};s(oe,(function(e,t){ae[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ae.deleteProperty=function(e,t){return ae.set.call(this,e,t,void 0)},ae.set=function(e,t,n){return oe.set.call(this,e[0],t,n,e[0])};var se=function(){function e(e){var t=this;this.g=Q,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var l;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var u=O(t),c=D(t,e,void 0),d=!0;try{l=n(c),d=!1}finally{d?E(u):S(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return k(u,i),T(e,u)}),(function(e){throw E(u),e})):(k(u,i),T(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===X&&(l=void 0),t.F&&v(l,!0),i){var f=[],p=[];_("Patches").M(e,l,f,p),i(f,p)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=N(e));var t=O(this),n=D(this,e,void 0);return n[J].C=!0,S(t),n},t.finishDraft=function(e,t){var n=(e&&e[J]).A;return k(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Q&&r(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=_("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),le=new se,ue=le.produce,ce=le.produceWithPatches.bind(le),de=le.setAutoFreeze.bind(le),fe=le.setUseProxies.bind(le),pe=le.applyPatches.bind(le),he=le.createDraft.bind(le),me=le.finishDraft.bind(le);t.default=ue},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.currentBackend=t.LocalStorageAuthStore=t.Backend=void 0,t.expandSearchEntries=W,t.extractSearchFields=q,t.mergeExpandedEntries=H,t.resolveBackend=Q,t.slugFromCustomPath=V;var r=R(n(389)),i=R(n(103)),o=R(n(297)),a=R(n(122)),s=R(n(546)),l=R(n(302)),u=R(n(245)),c=R(n(548)),d=n(4),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(549)),p=n(40),h=n(98),m=n(147),g=n(409),v=n(420),y=n(126),b=n(430),_=n(71),w=n(425),x=n(170),k=n(136),E=n(319),S=n(124),O=n(257),C=n(428),T=n(199);const A=["field"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{extractTemplateVars:D,dateParsers:N,expandPath:F}=m.stringTemplate;class B{constructor(){L(this,"storageKey","netlify-cms-user")}retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function z(e,t){if(!e)return"backup";return`backup.${e}${t?"."+t:""}`}function U(e,t){const n=(0,i.default)(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?t[n]:""}}function q(e){return t=>e.reduce((e,n)=>{const r=U(n,t);return r?`${e} ${r}`:e},"")}function W(e,t){return e.reduce((e,n)=>{const r=t.reduce((e,t)=>{const r=F({data:n.data,path:t});return e.push(...r),e},[]);for(let t=0;t<r.length;t++)e.push(M(M({},n),{},{field:r[t]}));return e},[])}function H(e){const t=e.map(e=>e.field),n={},o=e.reduce((e,t)=>{if(!e[t.slug]){const{field:r}=t,i=j(t,A);e[t.slug]=i,n[t.slug]=(0,d.Set)()}const r=t.field.split(".");let i=e[t.slug].data;for(let e=0;e<r.length;e++)if(i=i[r[e]],Array.isArray(i)){const i=r.slice(0,e+1).join(".");n[t.slug]=n[t.slug].add(i)}return e},{});return Object.keys(o).forEach(e=>{const a=o[e].data;for(const o of n[e].toArray()){const e=(0,i.default)(a,o),n=e.filter((e,n)=>t.some(e=>(e+".").startsWith(`${o}.${n}.`)));n.sort((n,r)=>{const i=e.indexOf(n),a=e.indexOf(r),s=`${o}.${i}.`,l=`${o}.${a}.`;return t.findIndex(e=>(e+".").startsWith(s))-t.findIndex(e=>(e+".").startsWith(l))}),(0,r.default)(a,o,n)}}),Object.values(o)}function $(e,t){return e.score>t.score?-1:e.score<t.score?1:0}function V(e,t){const n=e.get("folder",""),r=t.toLowerCase().replace(n.toLowerCase(),"");return(0,h.join)((0,h.dirname)((0,a.default)(r,"/")),(0,h.basename)(r,(0,h.extname)(t)))}function G(e,t){if(!(0,_.selectHasMetaPath)(t))return e;return(0,h.dirname)(e).slice(t.get("folder").length+1)||"/"}function K(e){var t;let n;return n=(null===(t=e.get("nested"))||void 0===t?void 0:t.get("depth"))||(0,p.getPathDepth)(e.get("path","")),(0,T.hasI18n)(e)&&(n=(0,T.getI18nFilesDepth)(e,n)),n}t.LocalStorageAuthStore=B;class Y{constructor(e,t){let{backendName:n,authStore:r,config:i}=t;if(L(this,"implementation",void 0),L(this,"backendName",void 0),L(this,"config",void 0),L(this,"authStore",void 0),L(this,"user",void 0),L(this,"backupSync",void 0),L(this,"updateUserCredentials",e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user=M(M({},t),e),this.authStore.store(this.user),this.user}),L(this,"getToken",()=>this.implementation.getToken()),this.deleteAnonymousBackup(),this.config=i,this.implementation=e.init(this.config,{useWorkflow:(0,v.selectUseWorkflow)(this.config),updateUserCredentials:this.updateUserCredentials,initialWorkflowStatus:S.status.first()}),this.backendName=n,this.authStore=r,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,p.asyncLock)()}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every(e=>!0===e.status))return e;await new Promise(e=>setTimeout(e,1e3*t))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then(e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore.store(this.user),this.user)):Promise.resolve(null)}isGitBackend(){var e,t;return(null===(e=(t=this.implementation).isGitBackend)||void 0===e?void 0:e.call(t))||!1}authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then(e=>(this.user=M(M({},e),{},{backendName:this.backendName}),this.authStore&&this.authStore.store(this.user),this.user))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}async entryExist(e,t,n,r){const i=r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch(e=>e.name===p.EDITORIAL_WORKFLOW_ERROR&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e));if(i)return i;return await this.implementation.getEntry(t).then(e=>{let{data:t}=e;return t}).catch(()=>Promise.resolve(!1))}async generateUniqueSlug(e,t,n,r,i){const o=n.slug;let a;a=i?V(e,i):(0,E.slugFormatter)(e,t,o);let s=1,l=a;for(;r.includes(l)||await this.entryExist(e,(0,_.selectEntryPath)(e,l),l,(0,v.selectUseWorkflow)(n));)l=`${a}${(0,x.sanitizeChar)(" ",o)}${s++}`;return l}processEntries(e,t){const n=e.map(e=>(0,w.createEntry)(t.get("name"),(0,_.selectEntrySlug)(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:G(e.file.path,t)}})).map(this.entryWithFormat(t)),r=t.get("filter"),i=r?this.filterEntries({entries:n},r):n;if((0,T.hasI18n)(t)){const e=(0,_.selectFolderEntryExtension)(t);return(0,T.groupEntries)(t,e,i)}return i}async listEntries(e){var t;const n=(0,_.selectFolderEntryExtension)(e);let r;const i=e.get("type");if(i===O.FOLDER)r=()=>{const t=K(e);return this.implementation.entriesByFolder(e.get("folder"),n,t)};else{if(i!==O.FILES)throw new Error("Unknown collection type: "+i);{const t=e.get("files").map(e=>({path:e.get("file"),label:e.get("label")})).toArray();r=()=>this.implementation.entriesByFiles(t)}}const o=await r(),a=p.Cursor.create(o[p.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:null===(t=a.meta)||void 0===t?void 0:t.get("page"),cursor:a}}async listAllEntries(e){if(e.get("folder")&&this.implementation.allEntriesByFolder){const t=K(e),n=(0,_.selectFolderEntryExtension)(e);return this.implementation.allEntriesByFolder(e.get("folder"),n,t).then(t=>this.processEntries(t,e))}const t=await this.listEntries(e),{entries:n}=t;let{cursor:r}=t;for(;r&&r.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(r,"next");n.push(...e),r=t}return n}async search(e,t){const n=[],r=e.map(async e=>{const n=e.get("summary",""),r=D(n);let i=[];var o;e.get("type")===O.FILES?null===(o=e.get("files"))||void 0===o||o.forEach(e=>{const t=e.get("fields").map(e=>e.get("name")).toArray();i=[...i,...t]}):i=[(0,_.selectInferedField)(e,"title"),(0,_.selectInferedField)(e,"shortTitle"),(0,_.selectInferedField)(e,"author"),...r.map(t=>N[t]?(0,_.selectInferedField)(e,"date"):t)];const a=i.filter(Boolean),l=await this.listAllEntries(e);return f.filter(t,l,{extract:q((0,s.default)(a))})}).map(e=>e.catch(e=>(n.push(e),[]))),i=await Promise.all(r).then(e=>(0,u.default)(e));if(n.length>0)throw new Error({message:"Errors ocurred while searching entries locally!",errors:n});return{entries:i.filter(e=>{let{score:t}=e;return t>5}).sort($).map(e=>e.original)}}async query(e,t,n,r,i){let o=await this.listAllEntries(e);r&&(o=o.filter(e=>e.slug===r));const a=W(o,t);let s=f.filter(n,a,{extract:e=>U(e.field,e)}).sort($).map(e=>e.original);void 0!==i&&i>0&&(s=s.slice(0,i));return{query:n,hits:H(s)}}traverseCursor(e,t){const[n,r]=e.unwrapData(),i=n.get("collection");return this.implementation.traverseCursor(r,t).then(async e=>{let{entries:t,cursor:n}=e;return{entries:this.processEntries(t,i),cursor:p.Cursor.create(n).wrapData({cursorType:"collectionEntries",collection:i})}})}async getLocalDraftBackup(e,t){const n=z(e.get("name"),t),r=await p.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:i,path:o}=r;let{mediaFiles:a=[]}=r;a=a.map(e=>e.file?M(M({},e),{},{url:URL.createObjectURL(e.file)}):e);const s=(0,_.selectFileEntryLabel)(e,t),l=n=>this.entryWithFormat(e)((0,w.createEntry)(e.get("name"),t,o,{raw:n,label:s,mediaFiles:a,meta:{path:G(o,e)}})),u=l(i);if((0,T.hasI18n)(e)&&r.i18n){const e=(0,T.formatI18nBackup)(r.i18n,l);u.i18n=e}return{entry:u}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=z(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const i=await Promise.all(e.get("mediaFiles").toJS().map(async e=>{var t;if(null!==(t=e.url)&&void 0!==t&&t.startsWith("blob:")){const t=await fetch(e.url).then(e=>e.blob());return M(M({},e),{},{file:(0,p.blobToFileObj)(e.name,t)})}return e}));let o;(0,T.hasI18n)(t)&&(o=(0,T.getI18nBackup)(t,e,e=>this.entryToRaw(t,e))),await p.localForage.setItem(n,M({raw:r,path:e.get("path"),mediaFiles:i},o&&{i18n:o}));return await p.localForage.setItem(z(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{await this.backupSync.acquire(),await p.localForage.removeItem(z(e.get("name"),t)),t&&await p.localForage.removeItem(z(e.get("name")));return await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return p.localForage.removeItem(z())}async getEntry(e,t,n){const r=(0,_.selectEntryPath)(t,n),i=(0,_.selectFileEntryLabel)(t,n),o=(0,_.selectFolderEntryExtension)(t),a=async r=>{const o=await this.implementation.getEntry(r);let a=(0,w.createEntry)(t.get("name"),n,o.file.path,{raw:o.data,label:i,mediaFiles:[],meta:{path:G(o.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=(0,T.hasI18n)(t)?await(0,T.getI18nEntry)(t,o,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=(0,g.resolveFormat)(e,t);if(t&&void 0!==t.raw){const e=n&&(0,c.default)(n.fromFile.bind(n,t.raw))||{};return(0,l.default)(e)&&console.error(e),Object.assign(t,{data:(0,l.default)(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let i;if(e.get("type")===O.FILES){const t=e.get("files").find(e=>(null==e?void 0:e.get("name"))===r);i=(0,h.extname)(t.get("file"))}else i=(0,_.selectFolderEntryExtension)(e);const a=[];if(n){const n=t.diffs.filter(e=>!e.path.endsWith(i)),o=await Promise.all(n.map(t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id)));a.push(...o.map(e=>M(M({},e),{},{draft:!0})))}const s=(0,o.default)(t.diffs.filter(e=>e.path.endsWith(i)),e=>e.path.length),l=(n,i,o)=>{const s=(0,w.createEntry)(e.get("name"),r,i,{raw:n,isModification:!o,label:e&&(0,_.selectFileEntryLabel)(e,r),mediaFiles:a,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:G(i,e)}});return this.entryWithFormat(e)(s)},u=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return l(r,n.path,n.newFile)};if(s.length<=0){const t=await this.implementation.getEntry((0,_.selectEntryPath)(e,r));return l(t.data,t.file.path,!1)}if((0,T.hasI18n)(e)){const t=(0,_.selectEntryPath)(e,r),n=(0,T.getI18nDataFiles)(e,i,t,r,s);let o=await Promise.all(n.map(e=>u(e).catch(()=>null)));o=o.filter(Boolean);return(await(0,T.groupEntries)(e,i,o))[0]}return await u(s[0])}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map(async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,i=e.find(e=>e.get("name")===r);if(!i)return console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null;return await this.processUnpublishedEntry(i,n,!1)}))).filter(Boolean)}}async processEntry(e,t,n){const r=(0,b.selectIntegration)(e.integrations,null,"assetStore"),i=(0,_.selectMediaFolders)(e.config,t,(0,d.fromJS)(n));if(i.length>0&&!r){const e=await Promise.all(i.map(e=>this.implementation.getMedia(e)));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let i=await this.processUnpublishedEntry(t,r,!0);return i=await this.processEntry(e,t,i),i}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:(0,E.previewUrlFormatter)(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n){let{maxAttempts:r=1,interval:i=5e3}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let o,a=0;for(;!o&&a<r;)a++,o=await this.implementation.getDeployPreview(e.get("name"),t),o||await new Promise(e=>setTimeout(()=>e(void 0),i));return o?{url:(0,E.previewUrlFormatter)(o.url,e,t,n,this.config.slug),status:o.status?o.status.toUpperCase():""}:void 0}async persistEntry(e){let{config:t,collection:n,entryDraft:r,assetProxies:i,usedSlugs:o,unpublished:a=!1,status:s}=e;const l=await this.invokePreSaveEvent(r.get("entry")),u=l&&r.setIn(["entry","data"],l)||r,c=u.getIn(["entry","newRecord"])||!1,d=(0,v.selectUseWorkflow)(t),f=(0,C.selectCustomPath)(n,u);let p;if(c){if(!(0,_.selectAllowNewEntries)(n))throw new Error("Not allowed to create new entries in this collection");const e=await this.generateUniqueSlug(n,u.getIn(["entry","data"]),t,o,f),r=f||(0,_.selectEntryPath)(n,e);p={path:r,slug:e,raw:this.entryToRaw(n,u.get("entry"))},function(e,t,n,r,i){e.map(e=>{const o=e.path,a=(0,y.selectMediaFilePath)(t,n,r.get("entry").set("path",i),o,e.field);e.path=a})}(i,t,n,u,r)}else{const e=u.getIn(["entry","slug"]);p={path:u.getIn(["entry","path"]),slug:f&&!d?V(n,f):e,raw:this.entryToRaw(n,u.get("entry")),newPath:f}}const{slug:h,path:m,newPath:g}=p;let b=[p];if((0,T.hasI18n)(n)){const e=(0,_.selectFolderEntryExtension)(n);b=(0,T.getI18nFiles)(n,e,u.get("entry"),e=>this.entryToRaw(n,e),m,h,g)}const w=await this.currentUser(),x=M({newEntry:c,commitMessage:(0,E.commitMessageFormatter)(c?"create":"update",t,{collection:n,slug:h,path:m,authorLogin:w.login,authorName:w.name},w.useOpenAuthoring),collectionName:n.get("name"),useWorkflow:d},{unpublished:a,status:s});return d||await this.invokePrePublishEvent(u.get("entry")),await this.implementation.persistEntry({dataFiles:b,assets:i},x),await this.invokePostSaveEvent(u.get("entry")),d||await this.invokePostPublishEvent(u.get("entry")),h}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await(0,k.invokeEvent)({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:(0,E.commitMessageFormatter)("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async deleteEntry(e,t,n){const r=e.config,i=(0,_.selectEntryPath)(t,n),o=(0,_.selectFolderEntryExtension)(t);if(!(0,_.selectAllowDeletion)(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=(0,E.commitMessageFormatter)("delete",r,{collection:t,slug:n,path:i,authorLogin:a.login,authorName:a.name},a.useOpenAuthoring),l=(0,y.selectEntry)(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let u=[i];(0,T.hasI18n)(t)&&(u=(0,T.getFilePaths)(t,o,i,n)),await this.implementation.deleteFiles(u,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=(0,E.commitMessageFormatter)("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry(M(M({},e),{},{unpublished:!0}))}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=(0,g.resolveFormat)(e,t.toJS()),r=this.fieldsOrder(e,t),i=(0,_.selectFieldsComments)(e,t);return n&&n.toFile(t.get("data").toJS(),r,i)}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map(e=>e.get("name")).toArray();const n=(e.get("files")||(0,d.List)()).filter(e=>e.get("name")===t.get("slug")).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map(e=>e.get("name")).toArray()}filterEntries(e,t){return e.entries.filter(e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")})}}function Q(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new B,r=(0,k.getBackend)(t);if(r)return new Y(r,{backendName:t,authStore:n,config:e});throw new Error("Backend not found: "+t)}t.Backend=Y;const X=function(){let e;return t=>e||(e=Q(t))}();t.currentBackend=X},function(e,t,n){var r=n(954)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validations=t.stringTemplate=t.NetlifyCmsLibWidgets=void 0;var r=a(n(1003));t.stringTemplate=r;var i=a(n(1009));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.validations=i;const s={stringTemplate:r,validations:i};t.NetlifyCmsLibWidgets=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORT_ENTRIES_SUCCESS=t.SORT_ENTRIES_REQUEST=t.SORT_ENTRIES_FAILURE=t.REMOVE_DRAFT_ENTRY_MEDIA_FILE=t.GROUP_ENTRIES_SUCCESS=t.GROUP_ENTRIES_REQUEST=t.GROUP_ENTRIES_FAILURE=t.FILTER_ENTRIES_SUCCESS=t.FILTER_ENTRIES_REQUEST=t.FILTER_ENTRIES_FAILURE=t.ENTRY_SUCCESS=t.ENTRY_REQUEST=t.ENTRY_PERSIST_SUCCESS=t.ENTRY_PERSIST_REQUEST=t.ENTRY_PERSIST_FAILURE=t.ENTRY_FAILURE=t.ENTRY_DELETE_SUCCESS=t.ENTRY_DELETE_REQUEST=t.ENTRY_DELETE_FAILURE=t.ENTRIES_SUCCESS=t.ENTRIES_REQUEST=t.ENTRIES_FAILURE=t.DRAFT_VALIDATION_ERRORS=t.DRAFT_LOCAL_BACKUP_RETRIEVED=t.DRAFT_DISCARD=t.DRAFT_CREATE_FROM_LOCAL_BACKUP=t.DRAFT_CREATE_FROM_ENTRY=t.DRAFT_CREATE_EMPTY=t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY=t.DRAFT_CLEAR_ERRORS=t.DRAFT_CHANGE_FIELD=t.CHANGE_VIEW_STYLE=t.ADD_DRAFT_ENTRY_MEDIA_FILE=void 0,t.addDraftEntryMediaFile=function(e){return{type:"ADD_DRAFT_ENTRY_MEDIA_FILE",payload:e}},t.changeDraftField=function(e){let{field:t,value:n,metadata:r,entries:i,i18n:o}=e;return{type:"DRAFT_CHANGE_FIELD",payload:{field:t,value:n,metadata:r,entries:i,i18n:o}}},t.changeDraftFieldValidation=function(e,t){return{type:"DRAFT_VALIDATION_ERRORS",payload:{uniquefieldId:e,errors:t}}},t.changeViewStyle=function(e){return{type:"CHANGE_VIEW_STYLE",payload:{style:e}}},t.clearFieldErrors=function(){return{type:"DRAFT_CLEAR_ERRORS"}},t.createDraftDuplicateFromEntry=function(e){return t=>{t((0,b.waitUntil)({predicate:e=>{let{type:t}=e;return"DRAFT_CREATE_EMPTY"===t},run:()=>t(V(e))}))}},t.createDraftFromEntry=$,t.createEmptyDraft=function(e,t){return async(n,r)=>{new URLSearchParams(t).forEach((t,n)=>{e=(0,l.updateFieldByKey)(e,n,e=>e.set("default",function(e){if(["true","True","TRUE"].includes(e))return!0;if(["false","False","FALSE"].includes(e))return!1;return function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}(e)}(t)))});const o=e.get("fields",(0,i.List)()),a=function(e){return e.filter(e=>!e.get("meta")).toList()}(o),s=J(a),u=J(function(e){return e.filter(e=>!0===e.get("meta")).toList()}(o)),c=r(),f=(0,d.currentBackend)(c.config);e.has("media_folder")||await(0,y.waitForMediaLibraryToLoad)(n,r());const h=function(e,t){if(!(0,E.hasI18n)(e))return{};const n=J(t,(function(e){return e.get(E.I18N)!==E.I18N_FIELD.DUPLICATE&&e.get(E.I18N)!==E.I18N_FIELD.TRANSLATE}));return(0,E.duplicateDefaultI18nFields)(e,n)}(e,a);let m=(0,p.createEntry)(e.get("name"),"","",{data:s,i18n:h,mediaFiles:[],meta:u});m=await f.processEntry(c,e,m),n(H(m))}},t.createEmptyDraftData=J,t.deleteEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,d.currentBackend)(i.config);return n(U(e,t)),o.deleteEntry(i,e,t).then(()=>n(q(e,t))).catch(r=>(n(A({message:{details:r,key:"ui.toast.onFailToDelete"},kind:"danger",dismissAfter:8e3})),console.error(r),Promise.reject(n(W(e,t,r)))))}},t.deleteLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,d.currentBackend)(i.config).deleteLocalDraftBackup(e,t)}},t.discardDraft=function(){return{type:"DRAFT_DISCARD"}},t.draftDuplicateEntry=V,t.emptyDraftCreated=H,t.entriesFailed=L,t.entriesLoaded=M,t.entriesLoading=I,t.entryDeleteFail=W,t.entryDeleted=q,t.entryDeleting=U,t.entryLoadError=j,t.entryLoaded=R,t.entryLoading=P,t.entryPersistFail=z,t.entryPersisted=B,t.entryPersisting=F,t.filterByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,_.selectIsFetching)(i.entries,e.get("name"));if(n({type:"FILTER_ENTRIES_REQUEST",payload:{collection:e.get("name"),filter:t}}),!o)try{const r=await D(i,e);n({type:"FILTER_ENTRIES_SUCCESS",payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:"FILTER_ENTRIES_FAILURE",payload:{collection:e.get("name"),filter:t,error:r}})}}},t.getMediaAssets=ee,t.getSerializedEntry=te,t.groupByField=function(e,t){return async(n,r)=>{const i=r(),o=(0,_.selectIsFetching)(i.entries,e.get("name"));if(n({type:"GROUP_ENTRIES_REQUEST",payload:{collection:e.get("name"),group:t}}),!o)try{const r=await D(i,e);n({type:"GROUP_ENTRIES_SUCCESS",payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:"GROUP_ENTRIES_FAILURE",payload:{collection:e.get("name"),group:t,error:r}})}}},t.loadEntries=Z,t.loadEntry=K,t.loadLocalBackup=function(){return{type:"DRAFT_CREATE_FROM_LOCAL_BACKUP"}},t.localBackupRetrieved=G,t.persistEntry=function(e){return async(t,n)=>{const r=n(),i=r.entryDraft,o=i.get("fieldsErrors"),a=(0,u.selectPublishedSlugs)(r,e.get("name"));if(!o.isEmpty()){return o.some(e=>e.some(e=>e.type&&e.type===m.default.PRESENCE))&&t(A({message:{key:"ui.toast.missingRequiredField"},kind:"danger",dismissAfter:8e3})),Promise.reject()}const s=(0,d.currentBackend)(r.config),l=i.get("entry"),c=ee({entry:l}),f=te(e,l),p=i.set("entry",f);return t(F(e,f)),s.persistEntry({config:r.config,collection:e,entryDraft:p,assetProxies:c,usedSlugs:a}).then(async n=>{t(A({message:{key:"ui.toast.entrySaved"},kind:"success",dismissAfter:4e3})),c.length>0&&await t((0,y.loadMedia)()),t(B(e,f,n)),e.has("nested")&&await t(Z(e)),l.get("slug")!==n&&(await t(K(e,n)),(0,x.navigateToEntry)(e.get("name"),n))}).catch(n=>(console.error(n),t(A({message:{details:n,key:"ui.toast.onFailToPersist"},kind:"danger",dismissAfter:8e3})),Promise.reject(t(z(e,f,n)))))}},t.persistLocalBackup=function(e,t){return(n,r)=>{const i=r();return(0,d.currentBackend)(i.config).persistLocalDraftBackup(e,t)}},t.removeDraftEntryMediaFile=function(e){let{id:t}=e;return{type:"REMOVE_DRAFT_ENTRY_MEDIA_FILE",payload:{id:t}}},t.retrieveLocalBackup=function(e,t){return async(n,r)=>{const o=r(),a=(0,d.currentBackend)(o.config),{entry:s}=await a.getLocalDraftBackup(e,t);if(s){const t=s.mediaFiles||[],o=await Promise.all(t.map(t=>t.file||t.url?(0,h.createAssetProxy)({path:t.path,file:t.file,url:t.url,field:t.field}):(0,g.getAsset)({collection:e,entry:(0,i.fromJS)(s),path:t.path,field:t.field})(n,r)));return n((0,g.addAssets)(o)),n(G(s))}}},t.sortByField=N,t.traverseCollectionCursor=function(e,t){return async(n,r)=>{const i=r(),o=e.get("name");if(i.entries.getIn(["pages",""+o,"isFetching"]))return;const a=(0,d.currentBackend)(i.config),{action:l,append:u}=Q.has(t)?Q.get(t).toJS():{action:t,append:!1},c=(0,s.selectCollectionEntriesCursor)(i.cursors,e.get("name"));if(c.meta.get("usingOldPaginationAPI",!1))return n(Z(e,c.data.get("nextPage")));try{var f;n(I(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(a,c,l),i=null===(f=r.meta)||void 0===f?void 0:f.get("page");return n(M(e,t,i,X(r),u))}catch(t){return console.error(t),n(A({message:{details:t,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),Promise.reject(n(L(e,t)))}}},t.tryLoadEntry=Y,t.validateMetaField=function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){var a;if(!r)return ne(r,"invalidPath",o);const n=r.split("/").map((0,k.getProcessSegment)(e.config.slug)).join("/");if(r!==n)return ne(r,"invalidPath",o);const s=(0,w.selectCustomPath)(t,(0,i.fromJS)({entry:{meta:{path:r}}})),l=s?(0,_.selectEntryByPath)(e.entries,t.get("name"),s):void 0,u=null==l?void 0:l.get("path"),c=null===(a=e.entryDraft)||void 0===a?void 0:a.getIn(["entry","path"]);if(u&&u!==c)return ne(r,"pathExists",o)}return{error:!1}};var r=S(n(258)),i=n(4),o=n(165),a=n(40),s=n(426),l=n(71),u=n(121),c=n(424),d=n(145),f=n(1171),p=n(425),h=n(251),m=S(n(427)),g=n(200),v=n(423),y=n(171),b=n(609),_=n(126),w=n(428),x=n(221),k=n(319),E=n(199);function S(e){return e&&e.__esModule?e:{default:e}}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{notifSend:A}=o.actions;t.ENTRY_REQUEST="ENTRY_REQUEST";t.ENTRY_SUCCESS="ENTRY_SUCCESS";t.ENTRY_FAILURE="ENTRY_FAILURE";t.ENTRIES_REQUEST="ENTRIES_REQUEST";t.ENTRIES_SUCCESS="ENTRIES_SUCCESS";t.ENTRIES_FAILURE="ENTRIES_FAILURE";t.SORT_ENTRIES_REQUEST="SORT_ENTRIES_REQUEST";t.SORT_ENTRIES_SUCCESS="SORT_ENTRIES_SUCCESS";t.SORT_ENTRIES_FAILURE="SORT_ENTRIES_FAILURE";t.FILTER_ENTRIES_REQUEST="FILTER_ENTRIES_REQUEST";t.FILTER_ENTRIES_SUCCESS="FILTER_ENTRIES_SUCCESS";t.FILTER_ENTRIES_FAILURE="FILTER_ENTRIES_FAILURE";t.GROUP_ENTRIES_REQUEST="GROUP_ENTRIES_REQUEST";t.GROUP_ENTRIES_SUCCESS="GROUP_ENTRIES_SUCCESS";t.GROUP_ENTRIES_FAILURE="GROUP_ENTRIES_FAILURE";t.DRAFT_CREATE_FROM_ENTRY="DRAFT_CREATE_FROM_ENTRY";t.DRAFT_CREATE_EMPTY="DRAFT_CREATE_EMPTY";t.DRAFT_DISCARD="DRAFT_DISCARD";t.DRAFT_CHANGE_FIELD="DRAFT_CHANGE_FIELD";t.DRAFT_VALIDATION_ERRORS="DRAFT_VALIDATION_ERRORS";t.DRAFT_CLEAR_ERRORS="DRAFT_CLEAR_ERRORS";t.DRAFT_LOCAL_BACKUP_RETRIEVED="DRAFT_LOCAL_BACKUP_RETRIEVED";t.DRAFT_CREATE_FROM_LOCAL_BACKUP="DRAFT_CREATE_FROM_LOCAL_BACKUP";t.DRAFT_CREATE_DUPLICATE_FROM_ENTRY="DRAFT_CREATE_DUPLICATE_FROM_ENTRY";t.ENTRY_PERSIST_REQUEST="ENTRY_PERSIST_REQUEST";t.ENTRY_PERSIST_SUCCESS="ENTRY_PERSIST_SUCCESS";t.ENTRY_PERSIST_FAILURE="ENTRY_PERSIST_FAILURE";t.ENTRY_DELETE_REQUEST="ENTRY_DELETE_REQUEST";t.ENTRY_DELETE_SUCCESS="ENTRY_DELETE_SUCCESS";t.ENTRY_DELETE_FAILURE="ENTRY_DELETE_FAILURE";t.ADD_DRAFT_ENTRY_MEDIA_FILE="ADD_DRAFT_ENTRY_MEDIA_FILE";t.REMOVE_DRAFT_ENTRY_MEDIA_FILE="REMOVE_DRAFT_ENTRY_MEDIA_FILE";function P(e,t){return{type:"ENTRY_REQUEST",payload:{collection:e.get("name"),slug:t}}}function R(e,t){return{type:"ENTRY_SUCCESS",payload:{collection:e.get("name"),entry:t}}}function j(e,t,n){return{type:"ENTRY_FAILURE",payload:{error:e,collection:t.get("name"),slug:n}}}function I(e){return{type:"ENTRIES_REQUEST",payload:{collection:e.get("name")}}}function M(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{type:"ENTRIES_SUCCESS",payload:{collection:e.get("name"),entries:t,page:n,cursor:a.Cursor.create(r),append:i}}}function L(e,t){return{type:"ENTRIES_FAILURE",error:"Failed to load entries",payload:t.toString(),meta:{collection:e.get("name")}}}async function D(e,t){const n=(0,d.currentBackend)(e.config),r=(0,u.selectIntegration)(e,t.get("name"),"listEntries"),i=r?(0,c.getIntegrationProvider)(e.integrations,n.getToken,r):n;return await i.listAllEntries(t)}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.SortDirection.Ascending;return async(r,i)=>{const o=i(),a=(0,_.selectIsFetching)(o.entries,e.get("name"));if(r({type:"SORT_ENTRIES_REQUEST",payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const i=await D(o,e);r({type:"SORT_ENTRIES_SUCCESS",payload:{collection:e.get("name"),key:t,direction:n,entries:i}})}catch(i){r({type:"SORT_ENTRIES_FAILURE",payload:{collection:e.get("name"),key:t,direction:n,error:i}})}}}function F(e,t){return{type:"ENTRY_PERSIST_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}function B(e,t,n){return{type:"ENTRY_PERSIST_SUCCESS",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}function z(e,t,n){return{type:"ENTRY_PERSIST_FAILURE",error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}function U(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t}}}function q(e,t){return{type:"ENTRY_DELETE_SUCCESS",payload:{collectionName:e.get("name"),entrySlug:t}}}function W(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}function H(e){return{type:"DRAFT_CREATE_EMPTY",payload:e}}function $(e){return{type:"DRAFT_CREATE_FROM_ENTRY",payload:{entry:e}}}function V(e){return{type:"DRAFT_CREATE_DUPLICATE_FROM_ENTRY",payload:(0,p.createEntry)(e.get("collection"),"","",{data:e.get("data"),mediaFiles:e.get("mediaFiles").toJS()})}}function G(e){return{type:"DRAFT_LOCAL_BACKUP_RETRIEVED",payload:{entry:e}}}function K(e,t){return async(n,r)=>{await(0,y.waitForMediaLibraryToLoad)(n,r()),n(P(e,t));try{const i=await Y(r(),e,t);n(R(e,i)),n($(i))}catch(r){console.error(r),n(A({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),n(j(r,e,t))}}}async function Y(e,t,n){const r=(0,d.currentBackend)(e.config);return await r.getEntry(e,t,n)}t.CHANGE_VIEW_STYLE="CHANGE_VIEW_STYLE";const Q=(0,i.fromJS)({append_next:{action:"next",append:!0}});function X(e){return a.Cursor.create(e).updateStore("actions",e=>e.union(Q.filter(t=>e.has(t.get("action"))).keySeq()))}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return async(n,r)=>{if(e.get("isFetching"))return;const i=r(),o=(0,_.selectEntriesSortFields)(i.entries,e.get("name"));if(o&&o.length>0){const t=o[0];return n(N(e,t.get("key"),t.get("direction")))}const s=(0,d.currentBackend)(i.config),l=(0,u.selectIntegration)(i,e.get("name"),"listEntries"),f=l?(0,c.getIntegrationProvider)(i.integrations,s.getToken,l):s,p=!!(t&&!isNaN(t)&&t>0);n(I(e));try{const r=e.has("nested")||(0,E.hasI18n)(e);let i=await(r?f.listAllEntries(e).then(e=>({entries:e})):f.listEntries(e,t));i=C(C({},i),{},{cursor:l?a.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):a.Cursor.create(i.cursor)}),n(M(e,i.cursor.meta.get("usingOldPaginationAPI")?i.entries.reverse():i.entries,i.pagination,X(i.cursor),p))}catch(t){return n(A({message:{details:t,key:"ui.toast.onFailToLoadEntries"},kind:"danger",dismissAfter:8e3})),Promise.reject(n(L(e,t)))}}}function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!1;return e.reduce((e,n)=>{const o=e,a=n;if(t(a))return o;const s=a.get("field")||a.get("fields"),l="list"==a.get("widget"),u=a.get("name"),c=a.get("default",null);if(i.List.isList(s)||i.Map.isMap(s)){if(l&&i.List.isList(c))o[u]=c;else{const e=i.List.isList(s)?s:(0,i.List)([s]),n=l?[J(e,t)]:J(e,t);d=n,[[{}],{}].some(e=>(0,r.default)(d,e))||(o[u]=n)}return o}var d;return null!==c&&(o[u]=c),o},{})}function ee(e){let{entry:t}=e;return t.get("mediaFiles").toArray().filter(e=>e.get("draft")).map(e=>(0,h.createAssetProxy)({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")}))}function te(e,t){const n=(0,l.selectFields)(e,t.get("slug"));function r(e){return(0,f.serializeValues)(e,n)}const i=r(t.get("data"));let o=t.set("data",i);return(0,E.hasI18n)(e)&&(o=(0,E.serializeI18n)(e,o,r)),o}function ne(e,t,n){return{error:{type:m.default.CUSTOM,message:n("editor.editorControlPane.widget."+t,{path:e})}}}},function(e,t,n){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},function(e,t,n){"use strict";var r=n(1266);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},function(e,t,n){"use strict";e.exports=function(e){return e<0||32===e}},function(e,t,n){"use strict";class r{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}r.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=r},function(e,t,n){!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(e,t){var r=e.match(function(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}e.defineMode("htmlmixed",(function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},u=a&&a.tags,c=a&&a.scriptTypes;if(o(t,l),u&&o(u,l),c)for(var d=c.length-1;d>=0;d--)l.script.unshift(["type",c[d].matches,c[d].mode]);function f(t,o){var a,u=s.token(t,o.htmlState),c=/\btag\b/.test(u);if(c&&!/[<>\s\/]/.test(t.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&c&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}(l[d[1]],d[2]),h=e.getMode(n,p),m=i(d[1],!0),g=i(d[1],!1);o.token=function(e,t){return e.match(m,!1)?(t.token=f,t.localState=t.localMode=null,null):function(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,g,t.localMode.token(e,t.localState))},o.localMode=h,o.localState=e.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return u}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(5),n(272),n(225),n(271))},function(e,t,n){"use strict";n.r(t),n.d(t,"MemoryRouter",(function(){return b})),n.d(t,"Prompt",(function(){return w})),n.d(t,"Redirect",(function(){return S})),n.d(t,"Route",(function(){return A})),n.d(t,"Router",(function(){return y})),n.d(t,"StaticRouter",(function(){return L})),n.d(t,"Switch",(function(){return D})),n.d(t,"generatePath",(function(){return E})),n.d(t,"matchPath",(function(){return T})),n.d(t,"useHistory",(function(){return B})),n.d(t,"useLocation",(function(){return z})),n.d(t,"useParams",(function(){return U})),n.d(t,"useRouteMatch",(function(){return q})),n.d(t,"withRouter",(function(){return N})),n.d(t,"BrowserRouter",(function(){return W})),n.d(t,"HashRouter",(function(){return H})),n.d(t,"Link",(function(){return Q})),n.d(t,"NavLink",(function(){return J}));var r=n(45),i=n(0),o=n.n(i),a=n(94),s=n(759),l=n(39),u=n(11),c=n(485),d=n.n(c),f=(n(375),n(46)),p=n(105),h=n.n(p),m=function(e){var t=Object(s.a)();return t.displayName=e,t},g=m("Router-History"),v=m("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);var b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createMemoryHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return o.a.createElement(y,{history:this.history,children:this.props.children})},t}(o.a.Component);var _=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function w(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement(v.Consumer,null,(function(e){if(e||Object(l.a)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(_,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var x={},k=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d.a.compile(e);return k<1e4&&(x[e]=t,k++),t}(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(v.Consumer,null,(function(e){e||Object(l.a)(!1);var r=e.history,s=e.staticContext,c=i?r.push:r.replace,d=Object(a.createLocation)(t?"string"==typeof n?E(n,t.params):Object(u.a)({},n,{pathname:E(n.pathname,t.params)}):n);return s?(c(d),null):o.a.createElement(_,{onMount:function(){c(d)},onUpdate:function(e,t){var n=Object(a.createLocation)(t.to);Object(a.locationsAreEqual)(n,Object(u.a)({},d,{key:n.key}))||c(d)},to:n})}))}var O={},C=0;function T(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=O[n]||(O[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return C<1e4&&(r[e]=o,C++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(v.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,i=Object(u.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.a.Children.count(e)}(s)&&(s=null),o.a.createElement(v.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:c?o.a.createElement(c,i):d?d(i):null:"function"==typeof s?s(i):null)}))},t}(o.a.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function R(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"==typeof e?e:Object(a.createPath)(e)}function I(e){return function(){Object(l.a)(!1)}}function M(){}var L=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return M},t.handleBlock=function(){return M},t}Object(r.a)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,s=void 0===o?{}:o;s.action=t,s.location=function(e,t){return e?Object(u.a)({},t,{pathname:P(e)+t.pathname}):t}(i,Object(a.createLocation)(e)),s.url=j(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,s=e.location,l=void 0===s?"/":s,c=Object(f.a)(e,["basename","context","location"]),d={createHref:function(e){return P(n+j(e))},action:"POP",location:R(n,Object(a.createLocation)(l)),push:this.handlePush,replace:this.handleReplace,go:I(),goBack:I(),goForward:I(),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(y,Object(u.a)({},c,{history:d,staticContext:i}))},t}(o.a.Component);var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(v.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,Object(u.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function N(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(f.a)(t,["wrappedComponentRef"]);return o.a.createElement(v.Consumer,null,(function(t){return t||Object(l.a)(!1),o.a.createElement(e,Object(u.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var F=o.a.useContext;function B(){return F(g)}function z(){return F(v).location}function U(){var e=F(v).match;return e?e.params:{}}function q(e){var t=z(),n=F(v).match;return e?T(t.pathname,e):n}var W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createBrowserHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return o.a.createElement(y,{history:this.history,children:this.props.children})},t}(o.a.Component);var H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.createHashHistory)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return o.a.createElement(y,{history:this.history,children:this.props.children})},t}(o.a.Component);var $=function(e,t){return"function"==typeof e?e(t):e},V=function(e,t){return"string"==typeof e?Object(a.createLocation)(e,null,null,t):e},G=function(e){return e},K=o.a.forwardRef;void 0===K&&(K=G);var Y=K((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=Object(f.a)(e,["innerRef","navigate","onClick"]),s=a.target,l=Object(u.a)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=G!==K&&t||n,o.a.createElement("a",l)}));var Q=K((function(e,t){var n=e.component,r=void 0===n?Y:n,i=e.replace,s=e.to,c=e.innerRef,d=Object(f.a)(e,["component","replace","to","innerRef"]);return o.a.createElement(v.Consumer,null,(function(e){e||Object(l.a)(!1);var n=e.history,f=V($(s,e.location),e.location),p=f?n.createHref(f):"",h=Object(u.a)({},d,{href:p,navigate:function(){var t=$(s,e.location),r=Object(a.createPath)(e.location)===Object(a.createPath)(V(t));(i||r?n.replace:n.push)(t)}});return G!==K?h.ref=t||c:h.innerRef=c,o.a.createElement(r,h)}))})),X=function(e){return e},Z=o.a.forwardRef;void 0===Z&&(Z=X);var J=Z((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,c=e.className,d=e.exact,p=e.isActive,h=e.location,m=e.sensitive,g=e.strict,y=e.style,b=e.to,_=e.innerRef,w=Object(f.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement(v.Consumer,null,(function(e){e||Object(l.a)(!1);var n=h||e.location,i=V($(b,n),n),f=i.pathname,v=f&&f.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=v?T(n.pathname,{path:v,exact:d,sensitive:m,strict:g}):null,k=!!(p?p(x,n):x),E="function"==typeof c?c(k):c,S="function"==typeof y?y(k):y;k&&(E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(E,a),S=Object(u.a)({},S,s));var O=Object(u.a)({"aria-current":k&&r||null,className:E,style:S,to:i},w);return X!==Z?O.ref=t||_:O.innerRef=_,o.a.createElement(Q,O)}))}))},function(e,t,n){"use strict";var r,i=n(48),o=n(8),a=n(73),s=n(92),l=n(3),u=n(85),c=n(113),d=n(32),f=n(358),p=n(59),h=n(234),m=n(178),g=n(360),v=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return v(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?Object(d.c)(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(l.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s.e)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s.d)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Object(f.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=i.a.XYM&&this.layout!=i.a.XYZM)return null;var n=void 0!==t&&t;return Object(h.b)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return Object(p.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return Object(h.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return Object(g.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,i.a.XY)},t.prototype.getType=function(){return o.a.LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(m.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(u.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(a.a);t.a=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsApp=void 0;var r,i=n(491),o=(r=n(195))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(1386),"undefined"!=typeof window&&console.log("netlify-cms-app 2.15.72");const u=s(s({},i.NetlifyCmsCore),{},{moment:o.default});t.NetlifyCmsApp=u;var c=i.NetlifyCmsCore;t.default=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t),a=i.call(n);if(r!==a)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(l(t,n))return!0;var s=Object.keys(t),u=Object.keys(n),c=s.length;if(c!==u.length)return!1;for(var d=0;d<c;++d)if(!o.call(n,s[d]))return!1;for(d=0;d<c;++d){var f=s[d];if(!e(t[f],n[f]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(l(t,n))return!0;for(var p=t.entries(),h="[object Map]"===r;;){var m=p.next();if(m.done)break;var g=m.value,v=g[0],y=g[1];if(!n.has(v))return!1;if(h&&!e(y,n.get(v)))return!1}return!0}return!1}(e,t)}finally{a.clear()}}function l(e,t){var n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"createCenterConstraint",(function(){return A})),n.d(t,"createResolutionConstraint",(function(){return P})),n.d(t,"createRotationConstraint",(function(){return R})),n.d(t,"isNoopAnimation",(function(){return j}));var r=n(64),i=n(8),o=n(53),a=n(69),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},l=n(204),u=n(14),c=n(38),d=n(60),f=n(23),p=n(28),h=n(13);function m(e,t,n){return function(r,i,o,a,s){if(r){if(!i&&!t)return r;var l=t?0:o[0]*i,u=t?0:o[1]*i,c=s?s[0]:0,d=s?s[1]:0,f=e[0]+l/2+c,p=e[2]-l/2+c,m=e[1]+u/2+d,g=e[3]-u/2+d;f>p&&(p=f=(p+f)/2),m>g&&(g=m=(g+m)/2);var v=Object(h.b)(r[0],f,p),y=Object(h.b)(r[1],m,g);if(a&&n&&i){var b=30*i;v+=-b*Math.log(1+Math.max(0,f-r[0])/b)+b*Math.log(1+Math.max(0,r[0]-p)/b),y+=-b*Math.log(1+Math.max(0,m-r[1])/b)+b*Math.log(1+Math.max(0,r[1]-g)/b)}return[v,y]}}}function g(e){return e}var v=n(3),y=n(32);function b(e,t,n,r){var i=Object(v.D)(t)/n[0],o=Object(v.z)(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function _(e,t,n){var r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),Object(h.b)(r,n/2,2*t)}function w(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var u=r?b(e,r,s,i):e;return(void 0===n||n)&&l?_(o,u,t):Object(h.b)(o,t,u)}}}var x,k=n(141),E=n(86),S=n(93),O=(x=function(e,t){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=Object(p.a)({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(u.b)(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,r.projection&&Object(u.c)(),r.center&&(r.center=Object(u.e)(r.center,n.projection_)),r.extent&&(r.extent=Object(u.f)(r.extent,n.projection_)),n.applyOptions_(r),n}return O(t,e),t.prototype.applyOptions_=function(e){var t=Object(p.a)({},e);for(var n in s)delete t[n];this.setProperties(t,!0);var r=P(e);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=r.minZoom;var i=A(e),o=r.constraint,a=R(e);this.constraints_={center:i,resolution:o,rotation:a},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)},Object.defineProperty(t.prototype,"padding",{get:function(){return this.padding_},set:function(e){var t=this.padding_;this.padding_=e;var n=this.getCenter();if(n){var r=e||[0,0,0,0];t=t||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),a=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-a])}},enumerable:!1,configurable:!0}),t.prototype.getUpdatedOptions_=function(e){var t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object(p.a)({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&((r=Object(p.a)({},r)).center=Object(u.e)(r.center,this.getProjection())),r.anchor&&((r=Object(p.a)({},r)).anchor=Object(u.e)(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(t=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var o=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];r<n;++r){var d=arguments[r],f={start:o,complete:!1,anchor:d.anchor,duration:void 0!==d.duration?d.duration:1e3,easing:d.easing||E.c,callback:t};if(d.center&&(f.sourceCenter=s,f.targetCenter=d.center.slice(),s=f.targetCenter),void 0!==d.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(d.zoom),l=f.targetResolution):d.resolution&&(f.sourceResolution=l,f.targetResolution=d.resolution,l=f.targetResolution),void 0!==d.rotation){f.sourceRotation=u;var p=Object(h.g)(d.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+p,u=f.targetRotation}j(f)?f.complete=!0:o+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(a.a.ANIMATING,1),this.updateAnimations_()}else t&&T(t,!0)},t.prototype.getAnimating=function(){return this.hints_[a.a.ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[a.a.INTERACTING]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(a.a.ANIMATING,-this.hints_[a.a.ANIMATING]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&T(r[0].callback,!1),!e)for(var i=0,o=r.length;i<o;++i){var s=r[i];if(!s.complete){e=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,o=0,s=r.length;o<s;++o){var l=r[o];if(!l.complete){var u=e-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var d=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],m=l.targetCenter[0],g=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=f+d*(m-f),y=p+d*(g-p);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){var b=1===d?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){var _=this.getViewportSize_(this.getRotation()),w=this.constraints_.resolution(b,0,_,!0);this.targetCenter_=this.calculateCenterZoom(w,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=b,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===d?Object(h.g)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){var k=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(k,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),t=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(a.a.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=r[0].callback;E&&T(E,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Object(d.d)(n,e-this.getRotation()),Object(d.a)(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();void 0!==r&&void 0!==i&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]);return n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?Object(u.m)(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(s.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=this.calculateExtentInternal(e);return Object(u.n)(t,this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(f.a)(n,1);var r=this.getResolution();Object(f.a)(void 0!==r,2);var i=this.getRotation();return Object(f.a)(void 0!==i,3),Object(v.y)(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(s.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal(Object(u.f)(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSizeMinusPadding_(),r=Object(v.D)(e)/n[0],i=Object(v.z)(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){return n/Math.pow(t,e*i)}},t.prototype.getRotation=function(){return this.get(s.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}},t.prototype.getViewportSizeMinusPadding_=function(e){var t=this.getViewportSize_(e),n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t},t.prototype.getState=function(){var e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=I(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(y.e)(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=Object(h.b)(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,Object(h.b)(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n;if(Object(f.a)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e)){Object(f.a)(!Object(v.G)(e),25);var r=Object(u.f)(e,this.getProjection());n=Object(S.c)(r)}else if(e.getType()===i.a.CIRCLE){r=Object(u.f)(e.getExtent(),this.getProjection());(n=Object(S.c)(r)).rotate(this.getRotation(),Object(v.w)(r))}else{var o=Object(u.l)();n=o?e.clone().transform(o,this.getProjection()):e}this.fitInternal(n,t)},t.prototype.rotatedExtentForGeometry=function(e){for(var t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,d=i.length;c<d;c+=o){var f=i[c]*n-i[c+1]*r,p=i[c]*r+i[c+1]*n;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(e),l=this.getResolutionForExtentInternal(s,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var u=this.getRotation(),d=Math.sin(u),f=Math.cos(u),p=Object(v.w)(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var h=p[0]*f-p[1]*d,m=p[1]*f+p[0]*d,g=this.getConstrainedCenter([h,m],l),y=n.callback?n.callback:c.c;void 0!==n.duration?this.animateInternal({resolution:l,center:g,duration:n.duration,easing:n.easing},y):(this.targetResolution_=l,this.targetCenter_=g,this.applyTargetState_(!1,!0),T(y,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal(Object(u.e)(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){this.setCenterInternal(I(e,t,n,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,t,n,r){var i,o=this.padding_;if(o&&e){var a=this.getViewportSizeMinusPadding_(-n),s=I(e,r,[a[0]/2+o[3],a[1]/2+o[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=Object(u.m)(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&Object(u.e)(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=Object(u.e)(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(e?Object(u.e)(e,this.getProjection()):e)},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(s.ROTATION)!==r&&this.set(s.ROTATION,r),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&Object(d.b)(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(d.b)(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:E.b,anchor:u}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(a.a.INTERACTING,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&Object(u.e)(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(a.a.INTERACTING,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(r.a);function T(e,t){setTimeout((function(){e(t)}),0)}function A(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return m(e.extent,e.constrainOnlyCenter,t)}var n=Object(u.b)(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,m(r,!1,!1)}return g}function P(e){var t,n,r,i=void 0!==e.minZoom?e.minZoom:0,a=void 0!==e.maxZoom?e.maxZoom:28,s=void 0!==e.zoomFactor?e.zoomFactor:2,c=void 0!==e.multiWorld&&e.multiWorld,d=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,f=void 0!==e.showFullExtent&&e.showFullExtent,p=Object(u.b)(e.projection,"EPSG:3857"),m=p.getExtent(),g=e.constrainOnlyCenter,x=e.extent;if(c||x||!p.isGlobal()||(g=!1,x=m),void 0!==e.resolutions){var k=e.resolutions;n=k[i],r=void 0!==k[a]?k[a]:k[k.length-1],t=e.constrainResolution?function(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],u=e[e.length-1],c=n?b(l,n,a,r):l;if(s)return void 0===t||t?_(i,c,u):Object(h.b)(i,u,c);var d=Math.min(c,i),f=Math.floor(Object(y.e)(e,d,o));return e[f]>c&&f<e.length-1?e[f+1]:e[f]}}}(k,d,!g&&x,f):w(n,r,d,!g&&x,f)}else{var E=(m?Math.max(Object(v.D)(m),Object(v.z)(m)):360*u.a[o.b.DEGREES]/p.getMetersPerUnit())/l.b/Math.pow(2,0),S=E/Math.pow(2,28);void 0!==(n=e.maxResolution)?i=0:n=E/Math.pow(s,i),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(s,a):E/Math.pow(s,a):S),a=i+Math.floor(Math.log(n/r)/Math.log(s)),r=n/Math.pow(s,a-i),t=e.constrainResolution?function(e,t,n,r,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?b(t,i,l,o):t,d=void 0!==n?n:0;if(u)return void 0===r||r?_(a,c,d):Object(h.b)(a,d,c);var f=Math.ceil(Math.log(t/c)/Math.log(e)-1e-9),p=-s*(.5-1e-9)+.5,m=Math.min(c,a),g=Math.floor(Math.log(t/m)/Math.log(e)+p),v=Math.max(f,g),y=t/Math.pow(e,v);return Object(h.b)(y,d,c)}}}(s,n,r,d,!g&&x,f):w(n,r,d,!g&&x,f)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:i,zoomFactor:s}}function R(e){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;return void 0===t||!0===t?Object(k.b)():!1===t?k.d:"number"==typeof t?Object(k.a)(t):k.d}return k.c}function j(e){return!(e.sourceCenter&&e.targetCenter&&!Object(d.b)(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}function I(e,t,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;return[(s+=(t[0]/2-n[0])*r)*o-(l+=(n[1]-t[1]/2)*r)*(a=-a),l*o+s*a]}t.default=C},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(208),i=n(377);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(213);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";var r=n(96),i=n(295),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reducer=t.actions=t.Notifs=void 0;var r=a(n(921)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(533)),o=a(n(922));function a(e){return e&&e.__esModule?e:{default:e}}t.Notifs=o.default,t.actions=i,t.reducer=r.default},function(e,t,n){var r=n(214),i=n(539),o=n(392);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(143),i=n(109),o=n(538),a=n(49);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(192),i=n(299),o=n(544),a=n(300),s=n(133),l=n(543);e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=r(t)))return e;var u=a(e),c=o(u,a(t))+1;return i(u,0,c).join("")}},function(e,t,n){var r=n(1147),i=n(1148);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addParams=function(e,t){const n=s.default.parse(e,!0);return n.query=p(p({},n.query),t),s.default.format(n)},t.getCharReplacer=_,t.getCollectionUrl=function(e,t){return m("/collections/"+e,t)},t.getNewEntryUrl=function(e,t){return m(`/collections/${e}/new`,t)},t.joinUrlPath=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,l.default)(e,...n)},t.sanitizeChar=function(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return _(n,r)(e)},t.sanitizeSlug=function(e,t){if(!(0,a.default)(e))throw new Error("The input slug must be a string.");const{encoding:n,clean_accents:s,sanitize_replacement:l}=t||{},d=(0,i.default)([...s?[u.default.remove]:[],(0,r.default)(w,{replacement:l,encoding:n}),(0,r.default)(c.default,{replacement:l})])(e),f=new RegExp(`(?:${(0,o.default)(l)})+`,"g"),p=new RegExp((0,o.default)(l)+"$"),h=new RegExp("^"+(0,o.default)(l));return d.replace(f,l).replace(h,"").replace(p,"")},t.sanitizeURI=w,t.stripProtocol=function(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e};var r=d(n(607)),i=d(n(146)),o=d(n(422)),a=d(n(307)),s=d(n(1155)),l=d(n(1161)),u=d(n(1162)),c=d(n(1163));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return`${t?"/#":""}${e}`}const g=/[\w\-.~]/i,v=/[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u;function y(e){return g.test(e)}function b(e){return g.test(e)||v.test(e)}function _(e,t){let n;if("unicode"===e)n=b;else{if("ascii"!==e)throw new Error('`options.encoding` must be "unicode" or "ascii".');n=y}if(!Array.from(t).every(n))throw new Error("The replacement character(s) (options.replacement) is itself unsafe.");return e=>n(e)?e:t}function w(e,t){const{replacement:n="",encoding:r="unicode"}=t||{};if(!(0,a.default)(e))throw new Error("The input slug must be a string.");if(!(0,a.default)(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(_(r,n)).join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_REMOVE_INSERTED=t.MEDIA_PERSIST_SUCCESS=t.MEDIA_PERSIST_REQUEST=t.MEDIA_PERSIST_FAILURE=t.MEDIA_LOAD_SUCCESS=t.MEDIA_LOAD_REQUEST=t.MEDIA_LOAD_FAILURE=t.MEDIA_LIBRARY_OPEN=t.MEDIA_LIBRARY_CREATE=t.MEDIA_LIBRARY_CLOSE=t.MEDIA_INSERT=t.MEDIA_DISPLAY_URL_SUCCESS=t.MEDIA_DISPLAY_URL_REQUEST=t.MEDIA_DISPLAY_URL_FAILURE=t.MEDIA_DELETE_SUCCESS=t.MEDIA_DELETE_REQUEST=t.MEDIA_DELETE_FAILURE=void 0,t.clearMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}},t.closeMediaLibrary=function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:"MEDIA_LIBRARY_CLOSE"})}},t.createMediaLibrary=function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:"MEDIA_LIBRARY_CREATE",payload:t}},t.deleteMedia=w,t.getMediaDisplayURL=async function(e,t,n){const r=(0,c.selectMediaDisplayURL)(t,n.id);let i;if(r.get("url"))i=r.get("url");else if(r.get("err"))i=null;else{const t=n.id,o=(0,m.waitUntilWithTimeout)(e,e=>({predicate:e=>{let{type:n,payload:r}=e;return("MEDIA_DISPLAY_URL_SUCCESS"===n||"MEDIA_DISPLAY_URL_FAILURE"===n)&&r.key===t},run:(t,n,r)=>e(r.payload.url)}));r.get("isFetching")||e(x(n)),i=await o}return i},t.getMediaFile=async function(e,t){const n=(0,a.currentBackend)(e.config),{url:r}=await n.getMediaFile(t);return{url:r}},t.insertMedia=function(e,t){return(n,r)=>{const i=r(),o=i.config,a=i.entryDraft.get("entry"),s=i.entryDraft.getIn(["entry","collection"]),l=i.collections.get(s);n(function(e){return{type:"MEDIA_INSERT",payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map(e=>(0,u.selectMediaFilePublicPath)(o,l,e,a,t)):(0,u.selectMediaFilePublicPath)(o,l,e,a,t)))}},t.loadMedia=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{delay:t=0,query:n="",page:r=1,privateUpload:i}=e;return async(e,o)=>{const s=o(),u=(0,a.currentBackend)(s.config),c=(0,l.selectIntegration)(s,null,"assetStore");if(c){const t=(0,d.getIntegrationProvider)(s.integrations,u.getToken,c);e(E(r));try{const o=await t.retrieve(n,r,i);return e(S(o,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:i}))}catch(t){return e(O({privateUpload:i}))}}function f(){return u.getMedia().then(t=>e(S(t))).catch(t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(S([]))):e(O())})}return e(E(r)),t>0?new Promise(e=>{setTimeout(()=>e(f()),t)}):f()}},t.loadMediaDisplayURL=x,t.mediaDeleteFailed=j,t.mediaDeleted=R,t.mediaDeleting=P,t.mediaDisplayURLFailure=L,t.mediaDisplayURLRequest=I,t.mediaDisplayURLSuccess=M,t.mediaLoadFailed=O,t.mediaLoaded=S,t.mediaLoading=E,t.mediaPersistFailed=A,t.mediaPersisted=T,t.mediaPersisting=C,t.openMediaLibrary=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t,n)=>{const i=n().mediaLibrary.get("externalLibrary");if(i){const{controlID:t,value:n,config:o=(0,r.Map)(),allowMultiple:a,forImage:s}=e;i.show({id:t,value:n,config:o.toJS(),allowMultiple:a,imagesOnly:s})}t(k(e))}},t.persistMedia=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{privateUpload:n,field:r}=t;return async(t,i)=>{const m=i(),g=(0,a.currentBackend)(m.config),v=(0,l.selectIntegration)(m,null,"assetStore"),y=(0,c.selectMediaFiles)(m,r),x=(0,h.sanitizeSlug)(e.name.toLowerCase(),m.config.slug),k=y.find(e=>e.name.toLowerCase()===x),E=(0,u.selectEditingDraft)(m.entryDraft);if(!v&&k){if(!window.confirm(k.name+" already exists. Do you want to replace it?"))return;await t(w(k,{privateUpload:n}))}!v&&E||t(C());try{let i,a;if(v)try{const t=(0,d.getIntegrationProvider)(m.integrations,g.getToken,v),r=await t.upload(e,n);i=(0,s.createAssetProxy)({url:r.asset.url,path:r.asset.url})}catch(t){i=(0,s.createAssetProxy)({file:e,path:x})}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=m.entryDraft.get("entry"),n=m.collections.get(null==t?void 0:t.get("collection")),o=(0,u.selectMediaFilePath)(m.config,n,t,x,r);i=(0,s.createAssetProxy)({file:e,path:o,field:r})}}if(t((0,f.addAsset)(i)),v){a=_({id:await(0,o.getBlobSHA)(e),file:e,assetProxy:i,draft:!1})}else{if(E){return a=_({id:await(0,o.getBlobSHA)(e),file:e,assetProxy:i,draft:E}),t((0,p.addDraftEntryMediaFile)(a))}a=await g.persistMedia(m.config,i)}return t(T(a,{privateUpload:n}))}catch(e){return console.error(e),t(b({message:"Failed to persist media: "+e,kind:"danger",dismissAfter:8e3})),t(A({privateUpload:n}))}}},t.removeInsertedMedia=function(e){return{type:"MEDIA_REMOVE_INSERTED",payload:{controlID:e}}},t.removeMediaControl=function(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}},t.waitForMediaLibraryToLoad=async function(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await(0,m.waitUntilWithTimeout)(e,e=>({predicate:e=>{let{type:t}=e;return"MEDIA_LOAD_SUCCESS"===t||"MEDIA_LOAD_FAILURE"===t},run:()=>e()}))};var r=n(4),i=n(165),o=n(40),a=n(145),s=n(251),l=n(121),u=n(126),c=n(321),d=n(424),f=n(200),p=n(149),h=n(170),m=n(609);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{notifSend:b}=i.actions;t.MEDIA_LIBRARY_OPEN="MEDIA_LIBRARY_OPEN";t.MEDIA_LIBRARY_CLOSE="MEDIA_LIBRARY_CLOSE";t.MEDIA_LIBRARY_CREATE="MEDIA_LIBRARY_CREATE";t.MEDIA_INSERT="MEDIA_INSERT";t.MEDIA_REMOVE_INSERTED="MEDIA_REMOVE_INSERTED";t.MEDIA_LOAD_REQUEST="MEDIA_LOAD_REQUEST";t.MEDIA_LOAD_SUCCESS="MEDIA_LOAD_SUCCESS";t.MEDIA_LOAD_FAILURE="MEDIA_LOAD_FAILURE";t.MEDIA_PERSIST_REQUEST="MEDIA_PERSIST_REQUEST";t.MEDIA_PERSIST_SUCCESS="MEDIA_PERSIST_SUCCESS";t.MEDIA_PERSIST_FAILURE="MEDIA_PERSIST_FAILURE";t.MEDIA_DELETE_REQUEST="MEDIA_DELETE_REQUEST";t.MEDIA_DELETE_SUCCESS="MEDIA_DELETE_SUCCESS";t.MEDIA_DELETE_FAILURE="MEDIA_DELETE_FAILURE";t.MEDIA_DISPLAY_URL_REQUEST="MEDIA_DISPLAY_URL_REQUEST";t.MEDIA_DISPLAY_URL_SUCCESS="MEDIA_DISPLAY_URL_SUCCESS";function _(e){let{id:t,file:n,assetProxy:r,draft:i}=e;return{id:t,name:(0,o.basename)(r.path),displayURL:r.url,draft:i,file:n,size:n.size,url:r.url,path:r.path,field:r.field}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{privateUpload:n}=t;return async(t,r)=>{const i=r(),o=(0,a.currentBackend)(i.config),s=(0,l.selectIntegration)(i,null,"assetStore");if(s){const r=(0,d.getIntegrationProvider)(i.integrations,o.getToken,s);t(P());try{return await r.delete(e.id),t(R(e,{privateUpload:n}))}catch(e){return console.error(e),t(b({message:"Failed to delete media: "+e.message,kind:"danger",dismissAfter:8e3})),t(j({privateUpload:n}))}}try{if(e.draft)t((0,f.removeAsset)(e.path)),t((0,p.removeDraftEntryMediaFile)({id:e.id}));else{const n=(0,u.selectEditingDraft)(i.entryDraft);t(P()),t((0,f.removeAsset)(e.path)),await o.deleteMedia(i.config,e.path),t(R(e)),n&&t((0,p.removeDraftEntryMediaFile)({id:e.id}))}}catch(e){return console.error(e),t(b({message:"Failed to delete media: "+e.message,kind:"danger",dismissAfter:8e3})),t(j())}}}function x(e){return async(t,n)=>{const{displayURL:r,id:i}=e,o=n(),s=(0,c.selectMediaDisplayURL)(o,i);if(!i||!r||s.get("url")||s.get("isFetching")||s.get("err"))return Promise.resolve();if("string"==typeof r)return t(I(i)),void t(M(i,r));try{const e=(0,a.currentBackend)(o.config);t(I(i));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(M(i,n))}catch(e){console.error(e),t(L(i,e))}}}function k(e){return{type:"MEDIA_LIBRARY_OPEN",payload:e}}function E(e){return{type:"MEDIA_LOAD_REQUEST",payload:{page:e}}}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"MEDIA_LOAD_SUCCESS",payload:v({files:e},t)}}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{privateUpload:t}=e;return{type:"MEDIA_LOAD_FAILURE",payload:{privateUpload:t}}}function C(){return{type:"MEDIA_PERSIST_REQUEST"}}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{privateUpload:n}=t;return{type:"MEDIA_PERSIST_SUCCESS",payload:{file:e,privateUpload:n}}}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{privateUpload:t}=e;return{type:"MEDIA_PERSIST_FAILURE",payload:{privateUpload:t}}}function P(){return{type:"MEDIA_DELETE_REQUEST"}}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{privateUpload:n}=t;return{type:"MEDIA_DELETE_SUCCESS",payload:{file:e,privateUpload:n}}}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{privateUpload:t}=e;return{type:"MEDIA_DELETE_FAILURE",payload:{privateUpload:t}}}function I(e){return{type:"MEDIA_DISPLAY_URL_REQUEST",payload:{key:e}}}function M(e,t){return{type:"MEDIA_DISPLAY_URL_SUCCESS",payload:{key:e,url:t}}}function L(e,t){return{type:"MEDIA_DISPLAY_URL_FAILURE",payload:{key:e,err:t}}}t.MEDIA_DISPLAY_URL_FAILURE="MEDIA_DISPLAY_URL_FAILURE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r.DragSource}}),Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r.DropTarget}}),Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"FileUploadButton",{enumerable:!0,get:function(){return o.FileUploadButton}}),Object.defineProperty(t,"HTML5DragDrop",{enumerable:!0,get:function(){return r.HTML5DragDrop}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return a.Modal}}),Object.defineProperty(t,"SettingsDropdown",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Toast",{enumerable:!0,get:function(){return s.default}});var r=n(1184),i=u(n(1190)),o=n(1191),a=n(1192),s=u(n(1201)),l=u(n(1204));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(166),i=n(246),o=n(306),a=n(247),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){"use strict";var r=n(323);e.exports=function(e){return function(t){return e.test(r(t))}}},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,l,u,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),u=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return H})),n.d(t,"d",(function(){return W}));var r=n(11),i=n(22),o=n(80),a=n(81),s=n(91),l=n(279),u=n(0),c=n.n(u),d=n(26),f=n(114),p=n(130);for(var h={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},m=function(e){return Object(d.c)("span",Object(r.a)({css:h},e))},g={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,i=e.options,o=e.label,a=void 0===o?"":o,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if("menu"===t){var d=l?" disabled":"",f="".concat(u?"selected":"focused").concat(d);return"option ".concat(a," ").concat(f,", ").concat(c(i,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},v=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,f=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,v=l.isMulti,y=l.isOptionDisabled,b=l.isSearchable,_=l.menuIsOpen,w=l.options,x=l.screenReaderStatus,k=l.tabSelectsValue,E=l["aria-label"],S=l["aria-live"],O=Object(u.useMemo)((function(){return Object(i.k)(Object(i.k)({},g),f||{})}),[f]),C=Object(u.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.removedValue,a=t.value,s=o||r||(e=a,Array.isArray(e)?null:e),l=Object(i.k)({isDisabled:s&&y(s),label:s?p(s):""},t);n=O.onChange(l)}return n}),[t,y,p,O]),T=Object(u.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&O.onFocus){var o={focused:t,label:p(t),isDisabled:y(t),isSelected:i,options:w,context:t===n?"menu":"value",selectValue:s};e=O.onFocus(o)}return e}),[n,r,p,y,O,w,s]),A=Object(u.useMemo)((function(){var e="";if(_&&w.length&&O.onFilter){var t=x({count:o.length});e=O.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,_,O,w,x]),P=Object(u.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":_?"menu":"input";e=O.guidance({"aria-label":E,context:t,isDisabled:n&&y(n),isMulti:v,isSearchable:b,tabSelectsValue:k})}return e}),[E,n,r,v,y,b,_,O,k]),R="".concat(T," ").concat(A," ").concat(P);return Object(d.c)(m,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&Object(d.c)(c.a.Fragment,null,Object(d.c)("span",{id:"aria-selection"},C),Object(d.c)("span",{id:"aria-context"},R)))},y=[{base:"A",letters:"AⒶÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷḂḄḆɃƂƁ"},{base:"C",letters:"CⒸĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻḞƑꝻ"},{base:"G",letters:"GⒼǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿĴɈ"},{base:"K",letters:"KⓀḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂḾṀṂⱮƜ"},{base:"N",letters:"NⓃǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆꝖꝘɊ"},{base:"R",letters:"RⓇŔṘŘȐȒṚṜŖṞɌⱤꞦꞂ"},{base:"S",letters:"SⓈẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍẊẌ"},{base:"Y",letters:"YⓎỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑḃḅḇƀƃɓ"},{base:"c",letters:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕḟƒꝼ"},{base:"g",letters:"gⓖǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙĵǰɉ"},{base:"k",letters:"kⓚḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜḿṁṃɱɯ"},{base:"n",letters:"nⓝǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠɋꝗꝙ"},{base:"r",letters:"rⓡŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧẋẍ"},{base:"y",letters:"yⓨỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩźẑżžẓẕƶȥɀⱬꝣ"}],b=new RegExp("["+y.map((function(e){return e.letters})).join("")+"]","g"),_={},w=0;w<y.length;w++)for(var x=y[w],k=0;k<x.letters.length;k++)_[x.letters[k]]=x.base;var E=function(e){return e.replace(b,(function(e){return _[e]}))},S=Object(f.a)(E),O=function(e){return e.replace(/^\s+|\s+$/g,"")},C=function(e){return"".concat(e.label," ").concat(e.value)},T=function(e){return function(t,n){var r=Object(i.k)({ignoreCase:!0,ignoreAccents:!0,stringify:C,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,a=r.ignoreAccents,s=r.stringify,l=r.trim,u=r.matchFrom,c=l?O(n):n,d=l?O(s(t)):s(t);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=S(c),d=E(d)),"start"===u?d.substr(0,c.length)===c:d.indexOf(c)>-1}};function A(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Object(p.a)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Object(d.c)("input",Object(r.a)({ref:t},n,{css:Object(d.b)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var P=["boxSizing","height","overflow","paddingRight","position"],R={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function j(e){e.preventDefault()}function I(e){e.stopPropagation()}function M(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function L(){return"ontouchstart"in window||navigator.maxTouchPoints}var D=!("undefined"==typeof window||!window.document||!window.document.createElement),N=0,F={capture:!1,passive:!1};var B=function(){return document.activeElement&&document.activeElement.blur()},z={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function U(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=Object(u.useRef)(!1),l=Object(u.useRef)(!1),c=Object(u.useRef)(0),d=Object(u.useRef)(null),f=Object(u.useCallback)((function(e,t){if(null!==d.current){var i=d.current,u=i.scrollTop,c=i.scrollHeight,f=i.clientHeight,p=d.current,h=t>0,m=c-f-u,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(n&&!s.current&&n(e),p.scrollTop=c,g=!0,s.current=!0):!h&&-t>u&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),p=Object(u.useCallback)((function(e){f(e,e.deltaY)}),[f]),h=Object(u.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=Object(u.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)}),[f]),g=Object(u.useCallback)((function(e){if(e){var t=!!i.C&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",h,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,h,p]),v=Object(u.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",h,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,h,p]);return Object(u.useEffect)((function(){if(t){var e=d.current;return g(e),function(){v(e)}}}),[t,g,v]),function(e){d.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=Object(u.useRef)({}),o=Object(u.useRef)(null),a=Object(u.useCallback)((function(e){if(D){var t=document.body,n=t&&t.style;if(r&&P.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&N<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(R).forEach((function(e){var t=R[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&L()&&(t.addEventListener("touchmove",j,F),e&&(e.addEventListener("touchstart",M,F),e.addEventListener("touchmove",I,F))),N+=1}}),[]),s=Object(u.useCallback)((function(e){if(D){var t=document.body,n=t&&t.style;N=Math.max(N-1,0),r&&N<1&&P.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&L()&&(t.removeEventListener("touchmove",j,F),e&&(e.removeEventListener("touchstart",M,F),e.removeEventListener("touchmove",I,F)))}}),[]);return Object(u.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return Object(d.c)(c.a.Fragment,null,n&&Object(d.c)("div",{onClick:B,css:z}),t((function(e){o(e),a(e)})))}var q={clearIndicator:i.l,container:i.n,control:i.o,dropdownIndicator:i.p,group:i.q,groupHeading:i.r,indicatorsContainer:i.s,indicatorSeparator:i.t,input:i.u,loadingIndicator:i.v,loadingMessage:i.w,menu:i.x,menuList:i.y,menuPortal:i.z,multiValue:i.A,multiValueLabel:i.B,multiValueRemove:i.D,noOptionsMessage:i.E,option:i.F,placeholder:i.G,singleValue:i.H,valueContainer:i.I};function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(i.k)({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=function(n,i){return t[r](e[r](n,i),i)}:n[r]=t[r]})),n}var H={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Object(i.J)(),captureMenuScroll:!Object(i.J)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:T(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(i.a)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function V(e,t,n,r){return{type:"option",data:t,isDisabled:Z(e,t,n),isSelected:J(e,t,n),label:Q(e,t),value:X(e,t),index:r}}function G(e,t){return e.options.map((function(n,r){if(n.options){var i=n.options.map((function(n,r){return V(e,n,t,r)})).filter((function(t){return Y(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=V(e,n,t,r);return Y(e,o)?o:void 0})).filter((function(e){return!!e}))}function K(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Object(l.a)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Y(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!te(e)||!o)&&ee(e,{label:a,value:s,data:i},r)}var Q=function(e,t){return e.getOptionLabel(t)},X=function(e,t){return e.getOptionValue(t)};function Z(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function J(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=X(e,t);return n.some((function(t){return X(e,t)===r}))}function ee(e,t,n){return!e.filterOption||e.filterOption(t,n)}var te=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ne=1,re=function(e){Object(s.a)(n,e);var t=Object(i.j)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value"}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",name:o});i?r.setValue([].concat(Object(l.a)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=t?o:o[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=e?i:i[0]||null;r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.b.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Q(r.props,e)},r.getOptionValue=function(e){return X(r.props,e)},r.getStyles=function(e,t){var n=q[e](t);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return Object(i.c)(r.props)},r.buildCategorizedOptions=function(){return G(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return K(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Object(i.k)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(i.d)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return te(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++ne),r.state.selectValue=Object(i.e)(e.value),r}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(i.f)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(H):Object(i.k)(Object(i.k)({},H),this.props.theme):H}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Z(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return J(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ee(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=this.getComponents().Input,d=this.state.inputIsHidden,f=this.commonProps,p=o||this.getElementId("input"),h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?c.a.createElement(u,Object(r.a)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},h)):c.a.createElement(A,Object(r.a)({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:i.g,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:l,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,_=v.isFocused;if(!this.hasValue()||!f)return m?null:c.a.createElement(l,Object(r.a)({},u,{key:"placeholder",isDisabled:p,isFocused:_}),g);if(h)return y.map((function(t,s){var l=t===b;return c.a.createElement(n,Object(r.a)({},u,{components:{Container:i,Label:o,Remove:a},isFocused:l,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=y[0];return c.a.createElement(s,Object(r.a)({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.a.createElement(e,Object(r.a)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return c.a.createElement(e,Object(r.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return c.a.createElement(n,Object(r.a)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.a.createElement(e,Object(r.a)({},t,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,d=t.NoOptionsMessage,f=t.Option,p=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,_=m.minMenuHeight,w=m.maxMenuHeight,x=m.menuIsOpen,k=m.menuPlacement,E=m.menuPosition,S=m.menuPortalTarget,O=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,T=m.noOptionsMessage,A=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!x)return null;var R,j=function(t,n){var i=t.type,o=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,d=h===o,m=a?void 0:function(){return e.onOptionHover(o)},g=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return c.a.createElement(f,Object(r.a)({},p,{innerProps:y,data:o,isDisabled:a,isSelected:s,key:v,label:l,type:i,value:u,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return c.a.createElement(n,Object(r.a)({},p,{key:l,data:i,options:a,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return j(t,"".concat(t.index))}));else if(y){var I=b({inputValue:v});if(null===I)return null;R=c.a.createElement(u,p,I)}else{var M=T({inputValue:v});if(null===M)return null;R=c.a.createElement(d,p,M)}var L={minMenuHeight:_,maxMenuHeight:w,menuPlacement:k,menuPosition:E,menuShouldScrollIntoView:C},D=c.a.createElement(i.i,Object(r.a)({},p,L),(function(t){var n=t.ref,i=t.placerProps,o=i.placement,l=i.maxHeight;return c.a.createElement(a,Object(r.a)({},p,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:o}),c.a.createElement(U,{captureEnabled:g,onTopArrive:A,onBottomArrive:P,lockEnabled:O},(function(t){return c.a.createElement(s,Object(r.a)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:l,focusedOption:h}),R)})))}));return S||"fixed"===E?c.a.createElement(l,Object(r.a)({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:k,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=this.state.selectValue;if(o&&!r){if(i){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return c.a.createElement("input",{name:o,type:"hidden",value:s})}var l=a.length>0?a.map((function(t,n){return c.a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):c.a.createElement("input",{name:o,type:"hidden"});return c.a.createElement("div",null,l)}var u=a[0]?this.getOptionValue(a[0]):"";return c.a.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return c.a.createElement(v,Object(r.a)({},e,{ariaSelection:n,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,d=a.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return c.a.createElement(i,Object(r.a)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),c.a.createElement(t,Object(r.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:d}),c.a.createElement(o,Object(r.a)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c.a.createElement(n,Object(r.a)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,s=e.value,l=e.menuIsOpen,u=e.inputValue,c={};if(n&&(s!==n.value||a!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var d=Object(i.e)(s),f=l?function(e,t){return K(G(e,t))}(e,d):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;c={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f),focusedValue:p,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Object(i.k)(Object(i.k)(Object(i.k)({},c),h),{},{prevProps:e})}}]),n}(u.Component);re.defaultProps=$},function(e,t,n){var r=n(143),i=n(309),o=n(680),a=n(191),s=n(217),l=n(1467),u=n(304),c=n(407),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(3),i=n(358),o=n(116);function a(e,t,n,o,a){var s=Object(r.r)(Object(r.j)(),e,t,n,o);return!!Object(r.E)(a,s)&&(!!Object(r.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(i.a)(e,t,n,o,(function(e,t){return Object(r.F)(a,e,t)})))))}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(e,t,n[o],r,i))return!0;t=n[o]}return!1}function l(e,t,n,r,i){if(!function(e,t,n,r,i){return!!a(e,t,n,r,i)||(!!Object(o.b)(e,t,n,r,i[0],i[1])||(!!Object(o.b)(e,t,n,r,i[0],i[3])||(!!Object(o.b)(e,t,n,r,i[2],i[1])||!!Object(o.b)(e,t,n,r,i[2],i[3]))))}(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var s=1,l=n.length;s<l;++s)if(Object(o.a)(e,n[s-1],n[s],r,i)&&!a(e,n[s-1],n[s],r,i))return!1;return!0}function u(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(l(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}},function(e,t,n){"use strict";e.exports=n(1185)},function(e,t,n){var r=n(1410),i=n(304)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){"use strict";var r,i=n(63),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return o(t,e),t}(i.a);t.a=a},function(e,t,n){"use strict";var r,i=n(64),o=n(20),a=n(23),s=n(19),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){var r=t;n.setGeometry(r)}else{var i=t;n.setProperties(i)}return n}return l(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(s.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Object(s.a)(e,o.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?function(e){if("function"==typeof e)return e;var t;Array.isArray(e)?t=e:(Object(a.a)("function"==typeof e.getZIndex,41),t=[e]);return function(){return t}}(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(i.a);t.a=u},function(e,t,n){"use strict";t.a={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},function(e,t,n){"use strict";function r(e,t,n,r){for(;t<n-r;){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function i(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(e,t,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var u=n[s],c=i(e,t,u,r);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;t=u}return!0}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(e,t,l,r,i))return!1;l.length&&(t=l[l.length-1])}return!0}function s(e,t,n,o,a){for(var s=void 0!==a&&a,l=0,u=n.length;l<u;++l){var c=n[l],d=i(e,t,c,o);(0===l?s&&d||!s&&!d:s&&!d||!s&&d)&&r(e,t,c,o),t=c}return t}function l(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=s(e,t,n[o],r,i);return t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}))},function(e,t,n){var r=n(1242),i=n(2);e.exports=function(e,t,n){var i=e[t];if(i){var o=[];if(Object.keys(i).forEach((function(e){-1===r.indexOf(e)&&o.push(e)})),o.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+o.join(", "))}},e.exports.isRequired=function(t,n,r){if(!t[n])throw new Error("Prop "+n+" passed to "+r+" is required");return e.exports(t,n,r)},e.exports.supportingArrays=i.oneOfType([i.arrayOf(e.exports),e.exports])},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(2))),o=s(n(813)),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("span",{target:"ei6fm2r0",label:"IconWrapper"})("display:inline-block;line-height:0;width:",e=>e.size,";height:",e=>e.size,";transform:",e=>`rotate(${e.rotation})`,";& path:not(.no-fill),& circle:not(.no-fill),& polygon:not(.no-fill),& rect:not(.no-fill){fill:currentColor;}& path.clipped{fill:transparent;}svg{width:100%;height:100%;}");function u(e,t){if(!e||!t)return"0deg";const n={right:90,down:180,left:270,up:360};return n[t]-n[e]+"deg"}const c={xsmall:"12px",small:"18px",medium:"24px",large:"32px"};function d(e){let{type:t,direction:n,size:r="medium",className:i}=e;const s=o.default[t].image;return(0,a.jsx)(l,{className:i,size:c[r]||r,rotation:u(o.default[t].direction,n)},(0,a.jsx)(s,null))}d.propTypes={type:i.default.string.isRequired,direction:i.default.oneOf(["right","down","left","up"]),size:i.default.string,className:i.default.string};var f=(0,r.default)(d,{target:"ei6fm2r1"})("");t.default=f},function(e,t,n){var r=n(815),i=n(820);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(49),i=n(384),o=n(510),a=n(133);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(209),i=n(143),o=n(49),a=n(213),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){(function(t){!function(n){"use strict";var r=function(e){setTimeout(e,0)};void 0!==t&&t&&"function"==typeof t.nextTick&&(r=t.nextTick),e.exports=function(e){var t={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===t.firstHere){t.current++,t.firstHere=!0;var e=1}else e=0;var n={n:1};"function"==typeof arguments[0]?n.task=arguments[0]:n.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var r=n.task;if(n.task=function(){r(t.leave)},t.current+n.n-e>t.capacity)return 1===e&&(t.current--,t.firstHere=!1),t.queue.push(n);t.current+=n.n-e,n.task(t.leave),1===e&&(t.firstHere=!1)},leave:function(e){if(e=e||1,t.current-=e,t.queue.length){var n=t.queue[0];n.n+t.current>t.capacity||(t.queue.shift(),t.current+=n.n,r(n.task))}else if(t.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,t.current+e<=t.capacity}};return t}}()}).call(this,n(97))},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Et(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],y=!1;function b(e,t){var n,r,i,o=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=h(t)),l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)l(i=t[r=v[n]])||(e[r]=i);return e}function _(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,S={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),S[e]||(x(t),S[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function A(e){null!=e&&this.set(e)}function P(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},M={};function L(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(M[e]=i),t&&(M[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(M[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=N(t,e.localeData()),I[t]=I[t]||function(e){var t,n,r,i=e.match(R);for(t=0,n=i.length;t<n;t++)M[i[t]]?i[t]=M[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=C(i[r])?i[r].call(t,e):i[r];return o}}(t),I[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;n>=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var F={};function B(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function z(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)a(e,n)&&(t=z(n))&&(r[t]=e[n]);return r}var q={};function W(e,t){q[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function $(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=$(t)),n}function G(e,t){return function(n){return null!=n?(Y(this,e,n),r.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,X=/\d/,Z=/\d\d/,J=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){Q[e]=C(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(Q,e)?Q[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ge,ve={};function ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=V(e)}),r=e.length,n=0;n<r;n++)ve[e[n]]=i}function be(e,t){ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function _e(e,t,n){null!=t&&a(ve,e)&&ve[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?H(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",(function(){return this.month()+1})),L("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),L("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),W("month",8),pe("M",ne),pe("MM",ne,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=V(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:h(n).invalidMonth=e}));var xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=fe,Oe=fe;function Ce(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,a))?i:null:-1!==(i=ge.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ge.call(this._shortMonthsParse,a))||-1!==(i=ge.call(this._longMonthsParse,a))?i:null:-1!==(i=ge.call(this._longMonthsParse,a))||-1!==(i=ge.call(this._shortMonthsParse,a))?i:null}function Te(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=V(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(Te(this,e),r.updateOffset(this,!0),this):K(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=me(r[t]),i[t]=me(i[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Re(e){return H(e)?366:365}L("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),L(0,["YY",2],0,(function(){return this.year()%100})),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),B("year","y"),W("year",1),pe("Y",ue),pe("YY",ne,Z),pe("YYYY",ae,ee),pe("YYYYY",se,te),pe("YYYYYY",se,te),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):V(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var je=G("FullYear",!0);function Ie(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Me(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,n){var r=7+t-n;return-(7+Me(e,0,r).getUTCDay()-t)%7+r-1}function De(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Le(e,r,i);return s<=0?a=Re(o=e-1)+s:s>Re(e)?(o=e+1,a=s-Re(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ne(e,t,n){var r,i,o=Le(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Fe(i=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Fe(e,t,n){var r=Le(e,t,n),i=Le(e+1,t,n);return(Re(e)-r+i)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),W("week",5),W("isoWeek",5),pe("w",ne),pe("ww",ne,Z),pe("W",ne),pe("WW",ne,Z),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=V(e)})),L("d",0,"do","day"),L("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),L("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),L("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=V(e)}));var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=fe,He=fe,$e=fe;function Ve(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ye(e,t){L(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Ke),L("k",["kk",2],0,(function(){return this.hours()||24})),L("hmm",0,0,(function(){return""+Ke.apply(this)+P(this.minutes(),2)})),L("hmmss",0,0,(function(){return""+Ke.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),L("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),L("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Ye("a",!0),Ye("A",!1),B("hour","h"),W("hour",13),pe("a",Qe),pe("A",Qe),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,Z),pe("hh",ne,Z),pe("kk",ne,Z),pe("hmm",re),pe("hmmss",ie),pe("Hmm",re),pe("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=V(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=V(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(i)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(i))}));var Xe,Ze=G("Hours",!0),Je={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:ke,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var n=null;if(void 0===et[t]&&void 0!==e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=Xe._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(e){et[t]=null}return et[t]}function ot(e,t){var n;return e&&((n=l(t)?st(e):at(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function at(e,t){if(null!==t){var n,r=Je;if(t.abbr=e,null!=et[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new A(T(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e[o]).split("-")).length,n=(n=rt(e[o+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,i,o,a,s=e._i,l=ut.exec(s)||ct.exec(s),u=ft.length,c=pt.length;if(l){for(h(e).iso=!0,t=0,n=u;t<n;t++)if(ft[t][1].exec(l[1])){i=ft[t][0],r=!1!==ft[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(pt[t][1].exec(l[3])){o=(l[2]||" ")+pt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!dt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),xt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,i,o,a,s,l,u=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],i=u[2],o=u[5],a=u[6],s=u[7],l=[yt(n),ke.indexOf(r),parseInt(i,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=Me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function _t(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=_t(t.GG,e._a[0],Ne(St(),1,4).year),r=_t(t.W,1),((i=_t(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Ne(St(),o,a),n=_t(t.gg,e._a[0],u.year),r=_t(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Fe(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=De(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[0],i[0]),(e._dayOfYear>Re(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Me(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Me:Ie).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(i=N(e._f,e._locale).match(R)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(he(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),M[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=c-d,u.length>0&&h(e).unusedInput.push(u),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),lt(e)}else bt(e);else vt(e)}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(lt(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],xt(t),m(t)&&(a=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));f(e,n||t)}(e):n?xt(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):o(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,r,a){var l,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(l=new _(lt(kt(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function St(e,t,n,r){return Et(e,t,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ot=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Ct=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Tt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=U(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=At.length;for(t in e)if(a(e,t)&&(-1===ge.call(At,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[At[n]]){if(r)return!1;parseFloat(e[At[n]])!==V(e[At[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Rt(e){return e instanceof Pt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){L(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}It("Z",":"),It("ZZ",""),pe("Z",de),pe("ZZ",de),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Lt(de,e)}));var Mt=/([\+\-]|\d\d)/gi;function Lt(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Mt)||["-",0,0])[1]+V(n[2]))?0:"+"===n[0]?r:-r}function Dt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):St(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,i,o,s,l,c=e,d=null;return Rt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:V(d[2])*n,h:V(d[3])*n,m:V(d[4])*n,s:V(d[5])*n,ms:V(jt(1e3*d[6]))*n}):(d=zt.exec(e))?(n="-"===d[1]?-1:1,c={y:qt(d[2],n),M:qt(d[3],n),w:qt(d[4],n),d:qt(d[5],n),h:qt(d[6],n),m:qt(d[7],n),s:qt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=St(c.from),s=St(c.to),i=o.isValid()&&s.isValid()?(s=Dt(s,o),o.isBefore(s)?l=Wt(o,s):((l=Wt(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Pt(c),Rt(e)&&a(e,"_locale")&&(r._locale=e._locale),Rt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),$t(this,Ut(n,r),e),this}}function $t(e,t,n,i){var o=t._milliseconds,a=jt(t._days),s=jt(t._months);e.isValid()&&(i=null==i||i,s&&Te(e,K(e,"Month")+s*n),a&&Y(e,"Date",K(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Ut.fn=Pt.prototype,Ut.invalid=function(){return Ut(NaN)};var Vt=Ht(1,"add"),Gt=Ht(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Yt(e){return w(e)||c(e)||Kt(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Kt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!s(e),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)n=l[t],i=i||a(e,n);return r&&i}(e)||null==e}function Qt(e){var t,n=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||a(e,i[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),i.push(me(a[e].narrow)),o.push(me(a[e].name)),o.push(me(a[e].abbr)),o.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function sn(e,t){L(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Ne(this,r,i).year:(t>(o=Fe(e,r,i))&&(t=o),un.call(this,e,t,n,r,i))}function un(e,t,n,r,i){var o=De(e,t,n,r,i),a=Me(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?h(n).era=i:h(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),L(0,["gg",2],0,(function(){return this.weekYear()%100})),L(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,Z),pe("gg",ne,Z),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=V(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),L("Q",0,"Qo","quarter"),B("quarter","Q"),W("quarter",7),pe("Q",X),ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),L("D",["DD",2],"Do","date"),B("date","D"),W("date",9),pe("D",ne),pe("DD",ne,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=V(e.match(ne)[0])}));var cn=G("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),W("dayOfYear",4),pe("DDD",oe),pe("DDDD",J),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),L("m",["mm",2],0,"minute"),B("minute","m"),W("minute",14),pe("m",ne),pe("mm",ne,Z),ye(["m","mm"],4);var dn=G("Minutes",!1);L("s",["ss",2],0,"second"),B("second","s"),W("second",15),pe("s",ne),pe("ss",ne,Z),ye(["s","ss"],5);var fn,pn,hn=G("Seconds",!1);for(L("S",0,0,(function(){return~~(this.millisecond()/100)})),L(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),L(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),L(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),L(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),L(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),L(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),W("millisecond",16),pe("S",oe,X),pe("SS",oe,Z),pe("SSS",oe,J),fn="SSSS";fn.length<=9;fn+="S")pe(fn,le);function mn(e,t){t[6]=V(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ye(fn,mn);pn=G("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var gn=_.prototype;function vn(e){return e}gn.add=Vt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Yt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),i=Dt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(C(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,St(n)))},gn.clone=function(){return new _(this)},gn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Dt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=z(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:$(o)},gn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=D(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(St(),e)},gn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(St(),e)},gn.get=function(e){return C(this[e=z(e)])?this[e]():this},gn.invalidAt=function(){return h(this).overflow},gn.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.isBetween=function(e,t,n,r){var i=w(e)?e:St(e),o=w(t)?t:St(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},gn.isSame=function(e,t){var n,r=w(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return m(this)},gn.lang=Jt,gn.locale=Zt,gn.localeData=en,gn.max=Ct,gn.min=Ot,gn.parsingFlags=function(){return f({},h(this))},gn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:q[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(C(this[e=z(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.subtract=Gt,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},gn.toDate=function(){return new Date(this.valueOf())},gn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?D(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(n,"Z")):D(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},gn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},gn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},gn.eraYear=function(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},gn.year=je,gn.isLeapYear=function(){return H(this.year())},gn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=Ae,gn.daysInMonth=function(){return we(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},gn.date=cn,gn.day=gn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},gn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},gn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},gn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},gn.hour=gn.hours=Ze,gn.minute=gn.minutes=dn,gn.second=gn.seconds=hn,gn.millisecond=gn.milliseconds=pn,gn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Lt(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?$t(this,Ut(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Nt(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Ft,gn.isUTC=Ft,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=k("dates accessor is deprecated. Use date instead.",cn),gn.months=k("months accessor is deprecated. Use month instead",Ae),gn.years=k("years accessor is deprecated. Use year instead",je),gn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=kt(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&V(e[r])!==V(t[r]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=A.prototype;function bn(e,t,n,r){var i=st(),o=p().set(r,t);return i[n](o,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=vn,yn.postformat=vn,yn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)a(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n<i;++n){switch(typeof a[n].since){case"string":o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}}return a},yn.erasParse=function(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=He),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",st);var xn=Math.abs;function kn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var Tn=Cn("ms"),An=Cn("s"),Pn=Cn("m"),Rn=Cn("h"),jn=Cn("d"),In=Cn("w"),Mn=Cn("M"),Ln=Cn("Q"),Dn=Cn("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Nn("milliseconds"),Bn=Nn("seconds"),zn=Nn("minutes"),Un=Nn("hours"),qn=Nn("days"),Wn=Nn("months"),Hn=Nn("years"),$n=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function Yn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=Kn(this._milliseconds)/1e3,u=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=$(l/60),t=$(e/60),l%=60,e%=60,n=$(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Yn(this._months)!==Yn(d)?"-":"",a=Yn(this._days)!==Yn(d)?"-":"",s=Yn(this._milliseconds)!==Yn(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Xn=Pt.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},Xn.add=function(e,t){return kn(this,e,t,1)},Xn.subtract=function(e,t){return kn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Tn,Xn.asSeconds=An,Xn.asMinutes=Pn,Xn.asHours=Rn,Xn.asDays=jn,Xn.asWeeks=In,Xn.asMonths=Mn,Xn.asQuarters=Ln,Xn.asYears=Dn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*En(On(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=$(o/1e3),l.seconds=e%60,t=$(e/60),l.minutes=t%60,n=$(t/60),l.hours=n%24,a+=$(n/24),i=$(Sn(a)),s+=i,a-=En(On(i)),r=$(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Xn.clone=function(){return Ut(this)},Xn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Fn,Xn.seconds=Bn,Xn.minutes=zn,Xn.hours=Un,Xn.days=qn,Xn.weeks=function(){return $(this.days()/7)},Xn.months=Wn,Xn.years=Hn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Ut(e).abs(),o=$n(i.as("s")),a=$n(i.as("m")),s=$n(i.as("h")),l=$n(i.as("d")),u=$n(i.as("M")),c=$n(i.as("w")),d=$n(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,Gn.apply(null,f)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Qn,Xn.toString=Qn,Xn.toJSON=Qn,Xn.locale=Zt,Xn.localeData=en,Xn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Xn.lang=Jt,L("X",0,0,"unix"),L("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(V(e))})),
//! moment.js
r.version="2.29.2",t=St,r.fn=gn,r.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return _n(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=g,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Rt,r.monthsShort=function(e,t){return _n(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Je;null!=et[e]&&null!=et[e].parentLocale?et[e].set(T(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=T(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return E(et)},r.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},r.normalizeUnits=z,r.relativeTimeRounding=function(e){return void 0===e?$n:"function"==typeof e&&($n=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=gn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(161)(e))},function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n(1011),i=n(1012),o=n(575);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return q(U(t),e,n,r)}function E(e,t,n,r){return q(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(56))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(311),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(250));o.inherits=n(197);var a=n(579),s=n(417);o.inherits(d,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var c=l[u];d.prototype[c]||(d.prototype[c]=s.prototype[c])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18N_STRUCTURE=t.I18N_FIELD=t.I18N=void 0,t.duplicateDefaultI18nFields=function(e,t){const{locales:n,defaultLocale:r}=g(e);return Object.fromEntries(n.filter(e=>e!==r).map(e=>[e,{data:t}]))},t.duplicateI18nFields=function e(t,n,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[n.get("name")];const s=t.getIn(["entry","data",...o]);n.get(f)===h.DUPLICATE&&r.filter(e=>e!==i).forEach(e=>{t=t.setIn(["entry",...y(e,i),...o],s)});if(n.has("field")&&!a.List.isList(s)){[n.get("field")].forEach(n=>{t=e(t,n,r,i,[...o,n.get("name")])})}else if(n.has("fields")&&!a.List.isList(s)){n.get("fields").toArray().forEach(n=>{t=e(t,n,r,i,[...o,n.get("name")])})}return t},t.formatI18nBackup=function(e,t){return Object.entries(e).reduce((e,n)=>{let[r,{raw:i}]=n;const o=t(i);return c(c({},e),{},{[r]:{data:o.data}})},{})},t.getDataPath=y,t.getFilePath=b,t.getFilePaths=w,t.getI18nBackup=function(e,t,n){const{locales:r,defaultLocale:i}=g(e);return r.filter(e=>e!==i).reduce((e,r)=>{const o=y(r,i),a=t.getIn(o);if(!a)return e;const s=t.set("data",a);return c(c({},e),{},{[r]:{raw:n(s)}})},{})},t.getI18nDataFiles=function(e,t,n,r,i){const{structure:o}=g(e);if(o===p.SINGLE_FILE)return i;const a=w(e,t,n,r);return a.reduce((e,t)=>{const n=i.find(e=>e.path===t);return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]},[])},t.getI18nEntry=async function(e,t,n,r,i){const{structure:o,locales:a,defaultLocale:s}=g(e);let l;if(o===p.SINGLE_FILE)l=E(await i(n),s,a);else{const u=(await Promise.all(a.map(async e=>{const a=b(o,t,n,r,e);return{value:await i(a).catch(()=>null),locale:e}}))).filter(e=>null!==e.value);l=k(e,o,s,u)}return l},t.getI18nFiles=function(e,t,n,r,i,o,s){const{structure:l,defaultLocale:u,locales:d}=g(e);if(l===p.SINGLE_FILE){const e=d.reduce((e,t)=>{const r=y(t,u);return e.set(t,n.getIn(r))},(0,a.Map)({})),f=n.set("data",e);return[c({path:b(l,t,i,o,d[0]),slug:o,raw:r(f)},s&&{newPath:b(l,t,s,o,d[0])})]}return d.map(e=>{const a=y(e,u),d=n.set("data",n.getIn(a));return c({path:b(l,t,i,o,e),slug:o,raw:d.get("data")?r(d):""},s&&{newPath:b(l,t,s,o,e)})}).filter(e=>e.raw)},t.getI18nFilesDepth=function(e,t){const{structure:n}=g(e);if(n===p.MULTIPLE_FOLDERS)return t+1;return t},t.getI18nInfo=g,t.getLocaleDataPath=v,t.getLocaleFromPath=_,t.getPreviewEntry=function(e,t,n){if(t===n)return e;return e.set("data",e.getIn([f,t,"data"]))},t.groupEntries=function(e,t,n){const{structure:r,defaultLocale:o,locales:a}=g(e);if(r===p.SINGLE_FILE)return n.map(e=>E(e,o,a));const s=(0,i.default)(n.map(e=>({locale:_(r,t,e.path),value:e})),e=>{let{locale:t,value:n}=e;return x(r,n.path,t)});return Object.values(s).reduce((t,n)=>[...t,k(e,r,o,n)],[])},t.hasI18n=m,t.isFieldDuplicate=function(e,t,n){return t!==n&&e.get(f)===h.DUPLICATE},t.isFieldHidden=function(e,t,n){return t!==n&&e.get(f)===h.NONE},t.isFieldTranslatable=function(e,t,n){return t!==n&&e.get(f)===h.TRANSLATE},t.normalizeFilePath=x,t.serializeI18n=function(e,t,n){const{locales:r,defaultLocale:i}=g(e);return r.filter(e=>e!==i).forEach(e=>{const r=v(e);t=t.setIn(r,n(t.getIn(r)))}),t};var r=l(n(422)),i=l(n(603)),o=l(n(389)),a=n(4),s=n(71);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f="i18n";let p,h;function m(e){return e.has(f)}function g(e){if(!m(e))return{};const{structure:t,locales:n,default_locale:r}=e.get(f).toJS();return{structure:t,locales:n,defaultLocale:r}}function v(e){return[f,e,"data"]}function y(e,t){return e!==t?v(e):["data"]}function b(e,t,n,i,o){switch(e){case p.MULTIPLE_FOLDERS:return n.replace("/"+i,`/${o}/${i}`);case p.MULTIPLE_FILES:return n.replace(new RegExp((0,r.default)(t)+"$"),`${o}.${t}`);case p.SINGLE_FILE:default:return n}}function _(e,t,n){switch(e){case p.MULTIPLE_FOLDERS:{const e=n.split("/");return e.pop(),e.pop()}case p.MULTIPLE_FILES:return n.slice(0,-("."+t).length).split(".").pop();case p.SINGLE_FILE:default:return""}}function w(e,t,n,r){const{structure:i,locales:o}=g(e);if(i===p.SINGLE_FILE)return[n];return o.map(e=>b(i,t,n,r,e))}function x(e,t,n){switch(e){case p.MULTIPLE_FOLDERS:return t.replace(n+"/","");case p.MULTIPLE_FILES:return t.replace("."+n,"");case p.SINGLE_FILE:default:return t}}function k(e,t,n,r){let i=r.find(e=>e.locale===n);i||(i=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const a=r.filter(e=>e.locale!==i.locale).reduce((e,t)=>{let{locale:n,value:r}=t;const i=v(n);return(0,o.default)(e,i,r.data)},{}),l=x(t,i.value.path,n),u=(0,s.selectEntrySlug)(e,l);return c(c(c({},i.value),{},{raw:""},a),{},{path:l,slug:u})}function E(e,t,n){const r=e.data[t]||{},i=n.filter(e=>e!==t).map(t=>({locale:t,value:e.data[t]})).filter(e=>e.value).reduce((e,t)=>c(c({},e),{},{[t.locale]:{data:t.value}}),{});return c(c({},e),{},{data:r,i18n:i,raw:""})}t.I18N=f,t.I18N_STRUCTURE=p,function(e){e.MULTIPLE_FOLDERS="multiple_folders",e.MULTIPLE_FILES="multiple_files",e.SINGLE_FILE="single_file"}(p||(t.I18N_STRUCTURE=p={})),t.I18N_FIELD=h,function(e){e.TRANSLATE="translate",e.DUPLICATE="duplicate",e.NONE="none"}(h||(t.I18N_FIELD=h={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOVE_ASSET=t.LOAD_ASSET_SUCCESS=t.LOAD_ASSET_REQUEST=t.LOAD_ASSET_FAILURE=t.ADD_ASSETS=t.ADD_ASSET=void 0,t.addAsset=l,t.addAssets=function(e){return{type:"ADD_ASSETS",payload:e}},t.boundGetAsset=function(e,t,n){return function(r,i){return e(h({collection:t,entry:n,path:r,field:i}))}},t.getAsset=h,t.loadAsset=f,t.loadAssetFailure=d,t.loadAssetRequest=u,t.loadAssetSuccess=c,t.removeAsset=function(e){return{type:"REMOVE_ASSET",payload:e}};var r=n(40),i=n(251),o=n(126),a=n(321),s=n(171);t.ADD_ASSETS="ADD_ASSETS";t.ADD_ASSET="ADD_ASSET";t.REMOVE_ASSET="REMOVE_ASSET";t.LOAD_ASSET_REQUEST="LOAD_ASSET_REQUEST";t.LOAD_ASSET_SUCCESS="LOAD_ASSET_SUCCESS";function l(e){return{type:"ADD_ASSET",payload:e}}function u(e){return{type:"LOAD_ASSET_REQUEST",payload:{path:e}}}function c(e){return{type:"LOAD_ASSET_SUCCESS",payload:{path:e}}}function d(e,t){return{type:"LOAD_ASSET_FAILURE",payload:{path:e,error:t}}}function f(e){return async(t,n)=>{try{t(u(e)),await(0,s.waitForMediaLibraryToLoad)(t,n());const r=(0,a.selectMediaFileByPath)(n(),e);if(r){const o=await(0,s.getMediaDisplayURL)(t,n(),r);t(l((0,i.createAssetProxy)({path:e,url:o||e})))}else{const{url:r}=await(0,s.getMediaFile)(n(),e);t(l((0,i.createAssetProxy)({path:e,url:r})))}t(c(e))}catch(n){t(d(e,n))}}}t.LOAD_ASSET_FAILURE="LOAD_ASSET_FAILURE";const p=(0,i.createAssetProxy)({path:"empty.svg",file:new File(['<svg xmlns="http://www.w3.org/2000/svg"></svg>'],"empty.svg",{type:"image/svg+xml"})});function h(e){let{collection:t,entry:n,path:a,field:s}=e;return(e,u)=>{if(!a)return p;const c=u(),d=(0,o.selectMediaFilePath)(c.config,t,n,a,s);let{asset:h,isLoading:m,error:g}=c.medias[d]||{};return m?p:h||((0,r.isAbsolutePath)(d)||g?(h=(0,i.createAssetProxy)({path:d,url:a}),e(l(h))):(e(f(d)),h=p),h)}}},function(e,t,n){"use strict";var r=n(262);e.exports=function(e){return r({},e)}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=42,i=256},function(e,t,n){"use strict";(function(e){var r=n(57),i=n(769),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||i.a;t.a=l}).call(this,n(331)(e))},function(e,t,n){"use strict";t.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t,n){var r=n(120),i=n(89);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(88).Symbol;e.exports=r},function(e,t,n){var r=n(498),i=n(378),o=n(162);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(858),i=n(379),o=n(859),a=n(506),s=n(507),l=n(120),u=n(496),c=u(r),d=u(i),f=u(o),p=u(a),h=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(120),i=n(83);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(880),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],n[o[s]])};c.supportsDescriptors=!!l,e.exports=c},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(390),i=n(236);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},function(e,t,n){"use strict";function r(e){return null==e}e.exports.isNothing=r,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}},function(e,t,n){"use strict";var r=n(218),i=n(252),o=n(70);function a(e,t,n){var r=[];return e.include.forEach((function(e){n=a(e,t,n)})),e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof o})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG_SUCCESS=t.CONFIG_REQUEST=t.CONFIG_FAILURE=void 0,t.applyDefaults=D,t.configFailed=U,t.configLoaded=B,t.configLoading=z,t.detectProxyServer=q,t.handleLocalBackend=W,t.loadConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(window.CMS_CONFIG)return B(window.CMS_CONFIG);return async n=>{n(z());try{const i=S(),o=!(0,r.default)(e),a=!1===e.load_config_file?{}:await F(i,o),s=(0,l.default)(a,e);(0,d.validateConfig)(s);const u=L(await W(s));n(B(D(u))),"function"==typeof t&&t()}catch(e){throw n(U(e)),e}}},t.normalizeConfig=L,t.parseConfig=N;var r=y(n(135)),i=y(n(122)),o=y(n(123)),a=y(n(410)),s=n(4),l=y(n(1068)),u=n(144),c=n(124),d=n(1069),f=n(71),p=n(430),h=n(145),m=n(199),g=n(257);const v=["sortableFields"];function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.CONFIG_REQUEST="CONFIG_REQUEST";t.CONFIG_SUCCESS="CONFIG_SUCCESS";function k(e){return"types"in e||"field"in e}function E(e,t){return e.map(e=>{const n=t(e);return function(e){return"fields"in e}(n)?w(w({},n),{},{fields:E(n.fields,t)}):k(n)&&n.field?w(w({},n),{},{field:E([n.field],t)[0]}):k(n)&&n.types?w(w({},n),{},{types:E(n.types,t)}):n})}function S(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}function O(e){return"media_folder"in e&&!("public_folder"in e)?w(w({},e),{},{public_folder:e.media_folder}):e}t.CONFIG_FAILURE="CONFIG_FAILURE";const C={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function T(e){const t=Object.keys(C).filter(t=>t in e).map(t=>{const n=C[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}});return Object.assign({},e,...t)}function A(e){return!0===e[m.I18N]?w(w({},e),{},{[m.I18N]:m.I18N_FIELD.TRANSLATE}):!1!==e[m.I18N]&&e[m.I18N]?e:w(w({},e),{},{[m.I18N]:m.I18N_FIELD.NONE})}function P(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],i=(0,l.default)(t,e);return i.locales=n,i.default_locale=r,I(i),i}}function R(e,t){return E(e,t?A:e=>{const t=w({},e);return delete t[m.I18N],t})}function j(e){if(e&&e.structure!==m.I18N_STRUCTURE.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${m.I18N_STRUCTURE.SINGLE_FILE} structure`)}function I(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function M(e,t){const n=(0,p.getIntegrations)((0,s.fromJS)(e));return!!(0,p.selectIntegration)(n,t.name,"listEntries")}function L(e){const{collections:t=[]}=e,n=t.map(e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=E(t,T);r=w(w({},r),{},{fields:e})}if(n){const e=n.map(e=>{const t=E(e.fields,T);return w(w({},e),{},{fields:t})});r=w(w({},r),{},{files:e})}if(r.sortableFields){const{sortableFields:t}=r;r=w(w({},b(r,v)),{},{sortable_fields:t}),console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}return r});return w(w({},e),{},{collections:n})}function D(e){return(0,u.produce)(e,e=>{e.publish_mode=e.publish_mode||c.SIMPLE,e.slug=e.slug||{},e.collections=e.collections||[],!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t="/"+(0,o.default)(e.media_folder,"/");"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[m.I18N];n&&(n.default_locale=n.default_locale||n.locales[0]),I(n);const r=(0,h.resolveBackend)(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let a=t[m.I18N];n&&a?(a=P(a,n),t[m.I18N]=a):(a=void 0,delete t[m.I18N]),t.fields&&(t.fields=R(t.fields,Boolean(a)));const{folder:l,files:u,view_filters:c,view_groups:d,meta:p}=t;if(l&&(t.type=g.FOLDER,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=E(t.fields,O)),t.folder=(0,i.default)(l,"/"),p&&p.path)){const e=w({name:"path",meta:!0,required:!0},p.path);t.fields=[e,...t.fields||[]]}if(u){t.type=g.FILES,j(a),delete t.nested,delete t.meta;for(const e of u){e.file=(0,o.default)(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=E(e.fields,O));let t=e[m.I18N];t&&a?(t=P(t,a),e[m.I18N]=t):(t=void 0,delete e[m.I18N]),j(t),e.fields&&(e.fields=R(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=(0,f.selectDefaultSortableFields)((0,s.fromJS)(t),r,M(e,t))),t.view_filters=(c||[]).map(e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`})),t.view_groups=(d||[]).map(e=>w(w({},e),{},{id:`${e.field}__${e.pattern}`})),e.editor&&!t.editor&&(t.editor={preview:e.editor.preview})}})}function N(e){const t=a.default.parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}async function F(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch(e=>e);if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return!(-1!==r.indexOf("yaml"))&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:N(await n.text())}function B(e){return{type:"CONFIG_SUCCESS",payload:e}}function z(){return{type:"CONFIG_REQUEST"}}function U(e){return{type:"CONFIG_FAILURE",error:"Error loading config",payload:e}}async function q(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:(null==e?void 0:e.allowed_hosts)||[]].includes(location.hostname)||!e)return{};const t=!0===e?"http://localhost:8081/api/v1":e.url||"http://localhost:8081/api/v1".replace("localhost",location.hostname);try{console.log(`Looking for Netlify CMS Proxy Server at '${t}'`);const e=await fetch(""+t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:n,publish_modes:r,type:i}=await e.json();return"string"==typeof n&&Array.isArray(r)&&"string"==typeof i?(console.log(`Detected Netlify CMS Proxy Server at '${t}' with repo: '${n}'`),{proxyUrl:t,publish_modes:r,type:i}):(console.log(`Netlify CMS Proxy Server not detected at '${t}'`),{})}catch{return console.log(`Netlify CMS Proxy Server not detected at '${t}'`),{}}}async function W(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await q(e.local_backend);return t?(0,u.produce)(e,e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))}):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0,t.navigateToCollection=function(e){return r.push("/collections/"+e)},t.navigateToEntry=function(e,t){return r.replace(`/collections/${e}/entries/${t}`)},t.navigateToNewEntry=function(e){return r.replace(`/collections/${e}/new`)};const r=(0,n(94).createHashHistory)();t.history=r},function(e,t,n){"use strict";var r=n(443),i=n(651),o=n(653);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},u=e.properties,c=e.transform,d={},f={};for(t in u)n=new o(t,c(l,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new i(d,f,a)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&0!==e.length&&n.push(r("text","\n"));return n};var r=n(72)},function(e,t,n){"use strict";const r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const i=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[r.HTML]:{[i.ADDRESS]:!0,[i.APPLET]:!0,[i.AREA]:!0,[i.ARTICLE]:!0,[i.ASIDE]:!0,[i.BASE]:!0,[i.BASEFONT]:!0,[i.BGSOUND]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.BUTTON]:!0,[i.CAPTION]:!0,[i.CENTER]:!0,[i.COL]:!0,[i.COLGROUP]:!0,[i.DD]:!0,[i.DETAILS]:!0,[i.DIR]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EMBED]:!0,[i.FIELDSET]:!0,[i.FIGCAPTION]:!0,[i.FIGURE]:!0,[i.FOOTER]:!0,[i.FORM]:!0,[i.FRAME]:!0,[i.FRAMESET]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HEADER]:!0,[i.HGROUP]:!0,[i.HR]:!0,[i.HTML]:!0,[i.IFRAME]:!0,[i.IMG]:!0,[i.INPUT]:!0,[i.LI]:!0,[i.LINK]:!0,[i.LISTING]:!0,[i.MAIN]:!0,[i.MARQUEE]:!0,[i.MENU]:!0,[i.META]:!0,[i.NAV]:!0,[i.NOEMBED]:!0,[i.NOFRAMES]:!0,[i.NOSCRIPT]:!0,[i.OBJECT]:!0,[i.OL]:!0,[i.P]:!0,[i.PARAM]:!0,[i.PLAINTEXT]:!0,[i.PRE]:!0,[i.SCRIPT]:!0,[i.SECTION]:!0,[i.SELECT]:!0,[i.SOURCE]:!0,[i.STYLE]:!0,[i.SUMMARY]:!0,[i.TABLE]:!0,[i.TBODY]:!0,[i.TD]:!0,[i.TEMPLATE]:!0,[i.TEXTAREA]:!0,[i.TFOOT]:!0,[i.TH]:!0,[i.THEAD]:!0,[i.TITLE]:!0,[i.TR]:!0,[i.TRACK]:!0,[i.UL]:!0,[i.WBR]:!0,[i.XMP]:!0},[r.MATHML]:{[i.MI]:!0,[i.MO]:!0,[i.MN]:!0,[i.MS]:!0,[i.MTEXT]:!0,[i.ANNOTATION_XML]:!0},[r.SVG]:{[i.TITLE]:!0,[i.FOREIGN_OBJECT]:!0,[i.DESC]:!0}}},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ze(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?U:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&x(e,r)?"variable-2":t}}var E={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function O(){return S.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=E.state;if(E.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new P(r,n.vars,!0):null}return C(t,n.vars)?n:new P(n.prev,new R(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new R(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new R(e,t.globalVars))}}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function P(e,t,n){this.prev=e,this.vars=t,this.block=n}function R(e,t){this.name=e,this.next=t}var j=new R("this",new R("arguments",null));function I(){E.state.context=new P(E.state.context,E.state.localVars,!1),E.state.localVars=j}function M(){E.state.context=new P(E.state.context,E.state.localVars,!0),E.state.localVars=null}function L(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function D(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function N(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function F(e){return function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?S():O(t)}}function B(e,t){return"var"==e?O(D("vardef",t),ke,F(";"),N):"keyword a"==e?O(D("form"),W,B,N):"keyword b"==e?O(D("form"),B,N):"keyword d"==e?E.stream.match(/^\s*$/,!1)?O():O(D("stat"),$,F(";"),N):"debugger"==e?O(F(";")):"{"==e?O(D("}"),M,se,N,L):";"==e?O():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==N&&E.state.cc.pop()(),O(D("form"),W,B,N,Ae)):"function"==e?O(Ie):"for"==e?O(D("form"),M,Pe,B,L,N):"class"==e||c&&"interface"==t?(E.marked="keyword",O(D("form","class"==e?e:t),Fe,N)):"variable"==e?c&&"declare"==t?(E.marked="keyword",O(B)):c&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?O(Qe):"type"==t?O(Le,F("operator"),fe,F(";")):O(D("form"),Ee,F("{"),D("}"),se,N,N)):c&&"namespace"==t?(E.marked="keyword",O(D("form"),U,B,N)):c&&"abstract"==t?(E.marked="keyword",O(B)):O(D("stat"),ee):"switch"==e?O(D("form"),W,F("{"),D("}","switch"),M,se,N,N,L):"case"==e?O(U,F(":")):"default"==e?O(F(":")):"catch"==e?O(D("form"),I,z,B,N,L):"export"==e?O(D("stat"),qe,N):"import"==e?O(D("stat"),He,N):"async"==e?O(B):"@"==t?O(U,B):S(D("stat"),U,F(";"),N)}function z(e){if("("==e)return O(De,F(")"))}function U(e,t){return H(e,t,!1)}function q(e,t){return H(e,t,!0)}function W(e){return"("!=e?S():O(D(")"),$,F(")"),N)}function H(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?X:Q;if("("==e)return O(I,D(")"),oe(De,")"),N,F("=>"),r,L);if("variable"==e)return S(I,Ee,F("=>"),r,L)}var i=n?G:V;return _.hasOwnProperty(e)?O(i):"function"==e?O(Ie,i):"class"==e||c&&"interface"==t?(E.marked="keyword",O(D("form"),Ne,N)):"keyword c"==e||"async"==e?O(n?q:U):"("==e?O(D(")"),$,F(")"),N,i):"operator"==e||"spread"==e?O(n?q:U):"["==e?O(D("]"),Ye,N,i):"{"==e?ae(ne,"}",null,i):"quasi"==e?S(K,i):"new"==e?O(function(e){return function(t){return"."==t?O(e?J:Z):"variable"==t&&c?O(_e,e?G:V):S(e?q:U)}}(n)):O()}function $(e){return e.match(/[;\}\)\],]/)?S():S(U)}function V(e,t){return","==e?O($):G(e,t,!1)}function G(e,t,n){var r=0==n?V:G,i=0==n?U:q;return"=>"==e?O(I,n?X:Q,L):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?O(r):c&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(D(">"),oe(fe,">"),N,r):"?"==t?O(U,F(":"),i):O(i):"quasi"==e?S(K,r):";"!=e?"("==e?ae(q,")","call",r):"."==e?O(te,r):"["==e?O(D("]"),$,F("]"),N,r):c&&"as"==t?(E.marked="keyword",O(fe,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),O(i)):void 0:void 0}function K(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(K):O($,Y)}function Y(e){if("}"==e)return E.marked="string-2",E.state.tokenize=y,O(K)}function Q(e){return b(E.stream,E.state),S("{"==e?B:U)}function X(e){return b(E.stream,E.state),S("{"==e?B:q)}function Z(e,t){if("target"==t)return E.marked="keyword",O(V)}function J(e,t){if("target"==t)return E.marked="keyword",O(G)}function ee(e){return":"==e?O(N,B):S(V,F(";"),N)}function te(e){if("variable"==e)return E.marked="property",O()}function ne(e,t){return"async"==e?(E.marked="property",O(ne)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?O(re):(c&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),O(ie))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",O(ie)):"jsonld-keyword"==e?O(ie):c&&A(t)?(E.marked="keyword",O(ne)):"["==e?O(U,le,F("]"),ie):"spread"==e?O(q,ie):"*"==t?(E.marked="keyword",O(ne)):":"==e?S(ie):void 0;var n}function re(e){return"variable"!=e?S(ie):(E.marked="property",O(Ie))}function ie(e){return":"==e?O(q):"("==e?S(Ie):void 0}function oe(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=E.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?S(e):O(F(t))}return function(n,i){return n==t||i==t?O():S(e,r)}}function ae(e,t,n){for(var r=3;r<arguments.length;r++)E.cc.push(arguments[r]);return O(D(t,n),oe(e,t),N)}function se(e){return"}"==e?O():S(B,se)}function le(e,t){if(c){if(":"==e)return O(fe);if("?"==t)return O(le)}}function ue(e,t){if(c&&(":"==e||"in"==t))return O(fe)}function ce(e){if(c&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?O(U,de,fe):O(fe)}function de(e,t){if("is"==t)return E.marked="keyword",O()}function fe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(E.marked="keyword",O("typeof"==t?q:fe)):"variable"==e||"void"==t?(E.marked="type",O(be)):"|"==t||"&"==t?O(fe):"string"==e||"number"==e||"atom"==e?O(be):"["==e?O(D("]"),oe(fe,"]",","),N,be):"{"==e?O(D("}"),he,N,be):"("==e?O(oe(ye,")"),pe,be):"<"==e?O(oe(fe,">"),fe):"quasi"==e?S(ge,be):void 0}function pe(e){if("=>"==e)return O(fe)}function he(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(he):S(me,he)}function me(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",O(me)):"?"==t||"number"==e||"string"==e?O(me):":"==e?O(fe):"["==e?O(F("variable"),ue,F("]"),me):"("==e?S(Me,me):e.match(/[;\}\)\],]/)?void 0:O()}function ge(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?O(ge):O(fe,ve)}function ve(e){if("}"==e)return E.marked="string-2",E.state.tokenize=y,O(ge)}function ye(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?O(ye):":"==e?O(fe):"spread"==e?O(ye):S(fe)}function be(e,t){return"<"==t?O(D(">"),oe(fe,">"),N,be):"|"==t||"."==e||"&"==t?O(fe):"["==e?O(fe,F("]"),be):"extends"==t||"implements"==t?(E.marked="keyword",O(fe)):"?"==t?O(fe,F(":"),fe):void 0}function _e(e,t){if("<"==t)return O(D(">"),oe(fe,">"),N,be)}function we(){return S(fe,xe)}function xe(e,t){if("="==t)return O(fe)}function ke(e,t){return"enum"==t?(E.marked="keyword",O(Qe)):S(Ee,le,Ce,Te)}function Ee(e,t){return c&&A(t)?(E.marked="keyword",O(Ee)):"variable"==e?(T(t),O()):"spread"==e?O(Ee):"["==e?ae(Oe,"]"):"{"==e?ae(Se,"}"):void 0}function Se(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?O(Ee):"}"==e?S():"["==e?O(U,F("]"),F(":"),Se):O(F(":"),Ee,Ce)):(T(t),O(Ce))}function Oe(){return S(Ee,Ce)}function Ce(e,t){if("="==t)return O(q)}function Te(e){if(","==e)return O(ke)}function Ae(e,t){if("keyword b"==e&&"else"==t)return O(D("form","else"),B,N)}function Pe(e,t){return"await"==t?O(Pe):"("==e?O(D(")"),Re,N):void 0}function Re(e){return"var"==e?O(ke,je):"variable"==e?O(je):S(je)}function je(e,t){return")"==e?O():";"==e?O(je):"in"==t||"of"==t?(E.marked="keyword",O(U,je)):S(U,je)}function Ie(e,t){return"*"==t?(E.marked="keyword",O(Ie)):"variable"==e?(T(t),O(Ie)):"("==e?O(I,D(")"),oe(De,")"),N,ce,B,L):c&&"<"==t?O(D(">"),oe(we,">"),N,Ie):void 0}function Me(e,t){return"*"==t?(E.marked="keyword",O(Me)):"variable"==e?(T(t),O(Me)):"("==e?O(I,D(")"),oe(De,")"),N,ce,L):c&&"<"==t?O(D(">"),oe(we,">"),N,Me):void 0}function Le(e,t){return"keyword"==e||"variable"==e?(E.marked="type",O(Le)):"<"==t?O(D(">"),oe(we,">"),N):void 0}function De(e,t){return"@"==t&&O(U,De),"spread"==e?O(De):c&&A(t)?(E.marked="keyword",O(De)):c&&"this"==e?O(le,Ce):S(Ee,le,Ce)}function Ne(e,t){return"variable"==e?Fe(e,t):Be(e,t)}function Fe(e,t){if("variable"==e)return T(t),O(Be)}function Be(e,t){return"<"==t?O(D(">"),oe(we,">"),N,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(E.marked="keyword"),O(c?fe:U,Be)):"{"==e?O(D("}"),ze,N):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&A(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",O(ze)):"variable"==e||"keyword"==E.style?(E.marked="property",O(Ue,ze)):"number"==e||"string"==e?O(Ue,ze):"["==e?O(U,le,F("]"),Ue,ze):"*"==t?(E.marked="keyword",O(ze)):c&&"("==e?S(Me,ze):";"==e||","==e?O(ze):"}"==e?O():"@"==t?O(U,ze):void 0}function Ue(e,t){if("!"==t)return O(Ue);if("?"==t)return O(Ue);if(":"==e)return O(fe,Ce);if("="==t)return O(q);var n=E.state.lexical.prev;return S(n&&"interface"==n.info?Me:Ie)}function qe(e,t){return"*"==t?(E.marked="keyword",O(Ke,F(";"))):"default"==t?(E.marked="keyword",O(U,F(";"))):"{"==e?O(oe(We,"}"),Ke,F(";")):S(B)}function We(e,t){return"as"==t?(E.marked="keyword",O(F("variable"))):"variable"==e?S(q,We):void 0}function He(e){return"string"==e?O():"("==e?S(U):"."==e?S(V):S($e,Ve,Ke)}function $e(e,t){return"{"==e?ae($e,"}"):("variable"==e&&T(t),"*"==t&&(E.marked="keyword"),O(Ge))}function Ve(e){if(","==e)return O($e,Ve)}function Ge(e,t){if("as"==t)return E.marked="keyword",O($e)}function Ke(e,t){if("from"==t)return E.marked="keyword",O(U)}function Ye(e){return"]"==e?O():S(oe(q,"]"))}function Qe(){return S(D("form"),Ee,F("{"),D("}"),oe(Xe,"}"),N,N)}function Xe(){return S(Ee,Ce)}function Ze(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return I.lex=M.lex=!0,L.lex=!0,N.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new P(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==N)l=l.prev;else if(c!=Ae&&c!=L)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==V||i==G)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ze,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e.unicode&&(n+="u"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var s;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(s=r.local.endScan.exec(n.current()))&&(n.pos=n.start+s.index),o}for(var l=e[r.state],u=0;u<l.length;u++){var c=l[u],d=(!c.data.sol||n.sol())&&n.match(c.regex);if(d){c.data.next?r.state=c.data.next:c.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=c.data.push):c.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),c.data.mode&&a(t,r,c.data.mode,c.token),c.data.indent&&r.indent.push(n.indentation()+t.indentUnit),c.data.dedent&&r.indent.pop();var f=c.token;if(f&&f.apply&&(f=f(d)),d.length>2&&c.token&&"string"!=typeof c.token){for(var p=2;p<d.length;p++)d[p]&&(r.pending||(r.pending=[])).push({text:d[p],token:c.token[p-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function a(t,r,i,a){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?o(i.spec,l.spec):i.mode==l.mode)&&(s=l);var u=s?s.mode:i.mode||e.getMode(t,i.spec),c=s?s.state:e.startState(u);i.persistent&&!s&&(r.persistentStates={mode:u,spec:i.spec,state:c,next:r.persistentStates}),r.localState=c,r.local={mode:u,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function s(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var l=0;l<s.length;l++){var u=s[l];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var c=u.regex.exec(i);if(c&&c[0]){a--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(c[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,o){t(o,"start");var a={},l=o.meta||{},u=!1;for(var c in o)if(c!=l&&o.hasOwnProperty(c))for(var d=a[c]=[],f=o[c],p=0;p<f.length;p++){var h=f[p];d.push(new r(h,o)),(h.indent||h.dedent)&&(u=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:u?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:i(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:s(a,l)};if(l)for(var g in l)l.hasOwnProperty(g)&&(m[g]=l[g]);return m}}(n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return u})),n.d(t,"applyMiddleware",(function(){return g})),n.d(t,"bindActionCreators",(function(){return h})),n.d(t,"combineReducers",(function(){return f})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return d}));var r=n(34);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var i=e,o=t,l=[],f=l,p=!1;function h(){f===l&&(f=l.slice())}function m(){if(p)throw new Error(a(3));return o}function g(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),f.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=f.indexOf(e);f.splice(n,1),l=null}}}function v(e){if(!c(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,o=i(o,e)}finally{p=!1}for(var t=l=f,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!=typeof e)throw new Error(a(10));i=e,v({type:u.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return v({type:u.INIT}),(r={dispatch:v,subscribe:g,getState:m,replaceReducer:y})[s]=b,r}function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},l=0;l<s.length;l++){var u=s[l],c=n[u],d=e[u],f=c(d,t);if(void 0===f){t&&t.type;throw new Error(a(14))}i[u]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=p(i,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=m.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";var r=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}();t.a=r},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(e,t,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(e,t,l,i),t=l}return o}function o(e,t,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(e,t,l,r),t=l[l.length-1]}return o}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";var r,i=n(8),o=n(131),a=n(73),s=n(3),l=n(85),u=n(32),c=n(59),d=n(13),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return f(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?Object(u.c)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(s.e)(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,o=this.stride,a=0,l=i.length;a<l;a+=o){var u=Object(d.i)(e,t,i[a],i[a+1]);if(u<r){r=u;for(var c=0;c<o;++c)n[c]=i[a+c];n.length=o}}return r},t.prototype.getCoordinates=function(){return Object(c.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new o.a(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],i=0,a=e.length;i<a;i+=n){var s=new o.a(e.slice(i,i+n),t);r.push(s)}return r},t.prototype.getType=function(){return i.a.MULTI_POINT},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n){var o=t[r],a=t[r+1];if(Object(s.h)(e,o,a))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l.b)(this.flatCoordinates,0,e,this.stride),this.changed()},t}(a.a);t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(347),i=n(348),o=n(478),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=Object(o.a)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i.a[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)u(a[l])&&(r+=c(o)+":"+d(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,o=n(e);return p=i,f(e,t,o)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=f(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=f(n,t,e[s]),i&&(o+=a[s]);h.lastIndex=0;for(var l,u="";null!==(l=h.exec(o));)u+="-"+l[1];return{name:Object(r.a)(o)+u,styles:o,next:p}}},function(e,t,n){"use strict";n.r(t);var r=n(31),i=n(489);function o(e){var t=JSON.stringify(e);return Object(i.btoa)(encodeURIComponent(t))}function a(e){var t=decodeURIComponent(Object(i.atob)(e));return JSON.parse(t)}var s={deserialize:function(e,t){var n=a(e);return r.Value.fromJSON(n,t)},deserializeNode:function(e,t){var n=a(e);return r.Node.fromJSON(n,t)},serialize:function(e,t){return o(e.toJSON(t))},serializeNode:function(e,t){return o(e.toJSON(t))}};t.default=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(107),i=function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!=(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=o(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var i=o(e,t,n);this.cache_[i]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}();function o(e,t,n){return t+":"+e+":"+(n?Object(r.b)(n):"null")}var a=new i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(32),i=n(13);function o(e,t,n,o,a,s,l){var u,c,d=(n-t)/o;if(1===d)u=t;else if(2===d)u=t,c=a;else if(0!==d){for(var f=e[t],p=e[t+1],h=0,m=[0],g=t+o;g<n;g+=o){var v=e[g],y=e[g+1];h+=Math.sqrt((v-f)*(v-f)+(y-p)*(y-p)),m.push(h),f=v,p=y}var b=a*h,_=Object(r.a)(m,b);_<0?(c=(b-m[-_-2])/(m[-_-1]-m[-_-2]),u=t+(-_-2)*o):u=t+_*o}var w=l>1?l:2,x=s||new Array(w);for(g=0;g<w;++g)x[g]=void 0===u?NaN:void 0===c?e[u+g]:Object(i.e)(e[u+g],e[u+o+g],c);return x}function a(e,t,n,r,o,a){if(n==t)return null;var s;if(o<e[t+r-1])return a?((s=e.slice(t,t+r))[r-1]=o,s):null;if(e[n-1]<o)return a?((s=e.slice(n-r,n))[r-1]=o,s):null;if(o==e[t+r-1])return e.slice(t,t+r);for(var l=t/r,u=n/r;l<u;){var c=l+u>>1;o<e[(c+1)*r-1]?u=c:l=c+1}var d=e[l*r-1];if(o==d)return e.slice((l-1)*r,(l-1)*r+r);var f=(o-d)/(e[(l+1)*r-1]-d);s=[];for(var p=0;p<r-1;++p)s.push(Object(i.e)(e[(l-1)*r+p],e[l*r+p],f));return s.push(o),s}function s(e,t,n,r,i,o,s){if(s)return a(e,t,n[n.length-1],r,i,o);var l;if(i<e[r-1])return o?((l=e.slice(0,r))[r-1]=i,l):null;if(e[e.length-1]<i)return o?((l=e.slice(e.length-r))[r-1]=i,l):null;for(var u=0,c=n.length;u<c;++u){var d=n[u];if(t!=d){if(i<e[t+r-1])return null;if(i<=e[d-1])return a(e,t,d,r,i,!1);t=d}}return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},function(e,t,n){var r=n(494);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(823),i=n(83),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(88),i=n(824),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(161)(e))},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(191),i=n(163);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USE_OPEN_AUTHORING=t.LOGOUT=t.AUTH_SUCCESS=t.AUTH_REQUEST_DONE=t.AUTH_REQUEST=t.AUTH_FAILURE=void 0,t.authError=u,t.authenticate=l,t.authenticateUser=function(){return(e,t)=>{const n=t(),r=(0,i.currentBackend)(n.config);return e(s()),Promise.resolve(r.currentUser()).then(t=>{t?(t.useOpenAuthoring&&e(d()),e(l(t))):e(c())}).catch(t=>{e(u(t)),e(p())})}},t.authenticating=s,t.doneAuthenticating=c,t.loginUser=function(e){return(t,n)=>{const r=n(),a=(0,i.currentBackend)(r.config);return t(s()),a.authenticate(e).then(e=>{e.useOpenAuthoring&&t(d()),t(l(e))}).catch(e=>{console.error(e),t(o({message:{details:e.message,key:"ui.toast.onFailToAuth"},kind:"warning",dismissAfter:8e3})),t(u(e))})}},t.logout=f,t.logoutUser=p,t.useOpenAuthoring=d;var r=n(165),i=n(145);const{notifSend:o,notifClear:a}=r.actions;t.AUTH_REQUEST="AUTH_REQUEST";t.AUTH_SUCCESS="AUTH_SUCCESS";t.AUTH_FAILURE="AUTH_FAILURE";t.AUTH_REQUEST_DONE="AUTH_REQUEST_DONE";t.USE_OPEN_AUTHORING="USE_OPEN_AUTHORING";function s(){return{type:"AUTH_REQUEST"}}function l(e){return{type:"AUTH_SUCCESS",payload:e}}function u(e){return{type:"AUTH_FAILURE",error:"Failed to authenticate",payload:e}}function c(){return{type:"AUTH_REQUEST_DONE"}}function d(){return{type:"USE_OPEN_AUTHORING"}}function f(){return{type:"LOGOUT"}}function p(){return(e,t)=>{const n=t(),r=(0,i.currentBackend)(n.config);Promise.resolve(r.logout()).then(()=>{e({type:"LOGOUT"}),e(a())})}}t.LOGOUT="LOGOUT"},function(e,t,n){var r=n(294),i=n(936);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(120),i=n(398),o=n(83),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(e,t,n){var r=n(242);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(555),i=n(958),o=n(959),a=n(556),s=n(965),l=n(402),u=n(966),c=n(560),d=n(561),f=n(134),p=Math.max;e.exports=function(e,t,n,h,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var _=h?h.length:0;if(_||(t&=-97,h=m=void 0),v=void 0===v?v:p(f(v),0),y=void 0===y?y:f(y),_-=m?m.length:0,64&t){var w=h,x=m;h=m=void 0}var k=b?void 0:l(e),E=[e,t,n,h,m,w,x,g,v,y];if(k&&u(E,k),e=E[0],t=E[1],n=E[2],h=E[3],m=E[4],!(y=E[9]=void 0===E[9]?b?0:e.length:p(E[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?o(e,t,y):32!=t&&33!=t||m.length?a.apply(void 0,E):s(e,t,n,h);else var S=i(e,t,n);return d((k?r:c)(S,E),e,t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",o[i++]=n)}return o}},function(e,t){e.exports={}},function(e,t,n){var r=n(498),i=n(975),o=n(162);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(196).Buffer.isBuffer},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAssetProxy=function(e){let{url:t,file:n,path:r,field:o}=e;return new i({url:t,file:n,path:r,field:o})},t.default=void 0;class i{constructor(e){let{url:t,file:n,path:i,field:o}=e;r(this,"url",void 0),r(this,"fileObj",void 0),r(this,"path",void 0),r(this,"field",void 0),this.url=t||window.URL.createObjectURL(n),this.fileObj=n,this.path=i,this.field=o}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then(e=>e.blob());if(e.size<=0)return"";return await new Promise(t=>{const n=new FileReader;n.onload=e=>{var n;const r=(null===(n=e.target)||void 0===n?void 0:n.result)||"";t(r.toString().split("base64,")[1])},n.readAsDataURL(e)})}}t.default=i},function(e,t,n){"use strict";function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(219);e.exports=new r({include:[n(586)],implicit:[n(1054),n(1055)],explicit:[n(1056),n(1057),n(1058),n(1059)]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(1071),i=n(315),o=n(593),a=n(315),s=n(1072),l=n(1073),u=n(1074),c=n(35),d=n(148),f=n(316),p=n(44),h=n(255);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,c._`${d.default.data}, ${d.default.valCxt}`,r.$async,()=>{e.code(c._`"use strict"; ${g(n,i)}`),function(e,t){e.if(d.default.valCxt,()=>{e.var(d.default.instancePath,c._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,c._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,c._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,c._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{e.var(d.default.instancePath,c._`""`),e.var(d.default.parentData,c._`undefined`),e.var(d.default.parentDataProperty,c._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`{}`)})}(e,i),e.code(o)}):e.func(t,c._`${d.default.data}, ${function(e){return c._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?c._`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}(i)}`,r.$async,()=>e.code(g(n,i)).code(o))}function g(e,t){return"object"==typeof e&&e.$id&&(t.code.source||t.code.process)?c._`/*# sourceURL=${e.$id} */`:c.nil}function v(e,t){b(e)&&(_(e),y(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&x(e);(function(e){e.schema.$id&&(e.baseId=f.resolveUrl(e.baseId,e.schema.$id))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);w(e,o),r.var(t,c._`${o} === ${d.default.errors}`)}(e,t):r.boolOrEmptySchema(e,t)}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function _(e){p.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&p.schemaHasRulesButRef(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,t){if(e.opts.jtd)return k(e,[],!1,t);const n=i.getSchemaTypes(e.schema);k(e,n,!i.coerceAndCheckDataType(e,n),t)}function x({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(c._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=c.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(c._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function k(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:u,opts:f,self:h}=e,{RULES:m}=h;function g(p){o.shouldUseGroup(s,p)&&(p.type?(i.if(a.checkDataType(p.type,l,f.strictNumbers)),E(e,p),1===t.length&&t[0]===p.type&&n&&(i.else(),a.reportTypeError(e)),i.endIf()):E(e,p),u||i.if(c._`${d.default.errors} === ${r||0}`))}!s.$ref||!f.ignoreKeywordsWithRef&&p.schemaHasRulesButRef(s,m)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach(t=>{S(e.dataTypes,t)||O(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(e=>S(t,e))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&O(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&o.shouldUseRule(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some(e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r})&&O(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),i.block(()=>{for(const e of m.rules)g(e);g(m.post)})):i.block(()=>T(e,"$ref",m.all.$ref.definition))}function E(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&s.assignDefaults(e,t.type),n.block(()=>{for(const n of t.rules)o.shouldUseRule(r,n)&&T(e,n.keyword,n.definition,t.type)})}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function O(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,p.checkStrictMode(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(_(e),y(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&x(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&p.checkStrictMode(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`)),t.if(c._`${e.evaluated}.dynamicItems`,()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(c._`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw(c._`new ${i}(${d.default.vErrors})`)):(t.assign(c._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n);r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${d.default.errors} === 0`))}(e)})}(e):m(e,()=>r.topBoolOrEmptySchema(e))};class C{constructor(e,t,n){if(l.validateKeywordUsage(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=p.schemaRefOrVal(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",R(this.$data,e));else if(this.schemaCode=this.schemaValue,!l.validSchemaType(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.gen.if(c.not(e)),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(e,void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${c.or(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){h.reportError(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');h.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if(c.or(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return c.or(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${a.checkDataTypes(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const n=u.getSubschema(this.it,e);u.extendSubschemaData(n,this.it,e),u.extendSubschemaMode(n,e);const r={...this.it,...n,items:void 0,props:void 0};return v(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function T(e,t,n,r){const i=new C(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?l.funcKeywordCode(i,n):"macro"in n?l.macroKeywordCode(i,n):(n.compile||n.validate)&&l.funcKeywordCode(i,n)}t.KeywordCxt=C;const A=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function R(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!A.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o=d.default.rootData}else{const a=P.exec(e);if(!a)throw new Error("Invalid JSON-pointer: "+e);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=c._`${o}${c.getProperty(p.unescapeJsonPointer(e))}`,a=c._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(35),i=n(44),o=n(148);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,r._`[${n}]`),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`should pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:c,compositeRule:d,allErrors:f}=l,p=u(e,n,i);(null!=o?o:d||f)?a(c,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:c,allErrors:d}=i;a(l,u(e,n,r)),c||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(r._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,()=>e.assign(r._`${l}.instancePath`,r.strConcat(o.default.instancePath,s.errorPath))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))})};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function u(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[c(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]);d.verbose&&i.push([l.schema,u],[l.parentSchema,r._`${p}${h}`],[o.default.data,s]);f&&i.push([l.propertyName,f])}(e,t,s),i.object(...s)}(e,t,n)}function c({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${i.getErrorPath(t,i.Type.Str)}`:e;return[o.default.instancePath,r.strConcat(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${i.getErrorPath(n,i.Type.Str)}`),[l.schemaPath,a]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=i;class o extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof i&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function a(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)u(n,t[r]),n.push(e[++r]);return new o(n)}t._Code=o,t.nil=new o(""),t._=a;const s=new o("+");function l(e,...t){const n=[d(e[0])];let r=0;for(;r<t.length;)n.push(s),u(n,t[r]),n.push(s,d(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){const n=c(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new o(n)}function u(e,t){var n;t instanceof o?e.push(...t._items):t instanceof i?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:d(Array.isArray(n)?n.join(","):n))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof i||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof i?void 0:`"${e}${t.slice(1)}`}function d(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=l,t.addCodeArg=u,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:l`${e}${t}`},t.stringify=function(e){return new o(d(e))},t.safeStringify=d,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o("."+e):a`[${e}]`},t.regexpCode=function(e){return new o(e.toString())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOLDER=t.FILES=void 0;t.FILES="file_based_collection";t.FOLDER="folder_based_collection"},function(e,t,n){var r=n(381);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNPUBLISHED_ENTRY_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST=t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE=t.UNPUBLISHED_ENTRY_REQUEST=t.UNPUBLISHED_ENTRY_REDIRECT=t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS=t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST=t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE=t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS=t.UNPUBLISHED_ENTRY_PERSIST_REQUEST=t.UNPUBLISHED_ENTRY_PERSIST_FAILURE=t.UNPUBLISHED_ENTRY_DELETE_SUCCESS=t.UNPUBLISHED_ENTRY_DELETE_REQUEST=t.UNPUBLISHED_ENTRY_DELETE_FAILURE=t.UNPUBLISHED_ENTRIES_SUCCESS=t.UNPUBLISHED_ENTRIES_REQUEST=t.UNPUBLISHED_ENTRIES_FAILURE=void 0,t.deleteUnpublishedEntry=function(e,t){return(n,r)=>{const i=r(),o=(0,s.currentBackend)(i.config);return n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),o.deleteUnpublishedEntry(e,t).then(()=>{n(y({message:{key:"ui.toast.onDeleteUnpublishedChanges"},kind:"success",dismissAfter:4e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_SUCCESS",payload:{collection:e,slug:t}}}(e,t))}).catch(r=>{n(y({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},kind:"danger",dismissAfter:8e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t}}}(e,t))})}},t.loadUnpublishedEntries=E,t.loadUnpublishedEntry=k,t.persistUnpublishedEntry=function(e,t){return async(n,i)=>{const o=i(),a=o.entryDraft,u=a.get("fieldsErrors"),c=(0,l.selectUnpublishedSlugs)(o,e.get("name")),f=(0,l.selectPublishedSlugs)(o,e.get("name")).concat(c);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1)&&n(E(o.collections)),!u.isEmpty()){return u.some(e=>e.some(e=>e.type&&e.type===m.default.PRESENCE))&&n(y({message:{key:"ui.toast.missingRequiredField"},kind:"danger",dismissAfter:8e3})),Promise.reject()}const p=(0,s.currentBackend)(o.config),h=a.get("entry"),v=(0,d.getMediaAssets)({entry:h}),b=(0,d.getSerializedEntry)(e,h),S=a.set("entry",b);n(_(e,h.get("slug")));const O=t?p.persistUnpublishedEntry:p.persistEntry;try{const t=await O.call(p,{config:o.config,collection:e,entryDraft:S,assetProxies:v,usedSlugs:f});n(y({message:{key:"ui.toast.entrySaved"},kind:"success",dismissAfter:4e3})),n(w(e,b)),h.get("slug")!==t&&(n(k(e,t)),(0,g.navigateToEntry)(e.get("name"),t))}catch(t){return n(y({message:{key:"ui.toast.onFailToPersist",details:t},kind:"danger",dismissAfter:8e3})),Promise.reject(n(x(t,e,h.get("slug"))))}}},t.publishUnpublishedEntry=function(e,t){return async(n,r)=>{const i=r(),o=i.collections,a=(0,s.currentBackend)(i.config),c=(0,l.selectUnpublishedEntry)(i,e,t);n(function(e,t){return{type:"UNPUBLISHED_ENTRY_PUBLISH_REQUEST",payload:{collection:e,slug:t}}}(e,t));try{await a.publishUnpublishedEntry(c),n((0,h.loadMedia)()),n(y({message:{key:"ui.toast.entryPublished"},kind:"success",dismissAfter:4e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",payload:{collection:e,slug:t}}}(e,t));const r=o.get(e);if(!r.has("nested"))return n((0,d.loadEntry)(r,t));{n((0,d.loadEntries)(r));const e=(0,s.slugFromCustomPath)(r,c.get("path"));(0,d.loadEntry)(r,e),t!==e&&(0,u.selectEditingDraft)(i.entryDraft)&&(0,g.navigateToEntry)(r.get("name"),e)}}catch(r){n(y({message:{key:"ui.toast.onFailToPublishEntry",details:r},kind:"danger",dismissAfter:8e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_PUBLISH_FAILURE",payload:{collection:e,slug:t}}}(e,t))}}},t.unpublishPublishedEntry=function(e,t){return(n,r)=>{const i=r(),a=(0,s.currentBackend)(i.config),u=(0,l.selectEntry)(i,e.get("name"),t),f=(0,o.Map)().set("entry",u);return n(_(e,t)),a.deleteEntry(i,e,t).then(()=>a.persistEntry({config:i.config,collection:e,entryDraft:f,assetProxies:[],usedSlugs:(0,o.List)(),status:c.status.get("PENDING_PUBLISH")})).then(()=>{n(w(e,u)),n((0,d.entryDeleted)(e,t)),n(k(e,t)),n(y({message:{key:"ui.toast.entryUnpublished"},kind:"success",dismissAfter:4e3}))}).catch(t=>{n(y({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},kind:"danger",dismissAfter:8e3})),n(x(t,e,u.get("slug")))})}},t.updateUnpublishedEntryStatus=function(e,t,n,r){return(i,o)=>{if(n===r)return;const a=o(),l=(0,s.currentBackend)(a.config);i(function(e,t){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),l.updateUnpublishedEntryStatus(e,t,r).then(()=>{i(y({message:{key:"ui.toast.entryUpdated"},kind:"success",dismissAfter:4e3})),i(function(e,t,n){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))}).catch(n=>{i(y({message:{key:"ui.toast.onFailToUpdateStatus",details:n},kind:"danger",dismissAfter:8e3})),i(function(e,t){return{type:"UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",payload:{collection:e,slug:t}}}(e,t))})}};var r=v(n(103)),i=n(165),o=n(4),a=n(40),s=n(145),l=n(121),u=n(126),c=n(124),d=n(149),f=n(251),p=n(200),h=n(171),m=v(n(427)),g=n(221);function v(e){return e&&e.__esModule?e:{default:e}}const{notifSend:y}=i.actions;t.UNPUBLISHED_ENTRY_REQUEST="UNPUBLISHED_ENTRY_REQUEST";t.UNPUBLISHED_ENTRY_SUCCESS="UNPUBLISHED_ENTRY_SUCCESS";t.UNPUBLISHED_ENTRY_REDIRECT="UNPUBLISHED_ENTRY_REDIRECT";t.UNPUBLISHED_ENTRIES_REQUEST="UNPUBLISHED_ENTRIES_REQUEST";t.UNPUBLISHED_ENTRIES_SUCCESS="UNPUBLISHED_ENTRIES_SUCCESS";t.UNPUBLISHED_ENTRIES_FAILURE="UNPUBLISHED_ENTRIES_FAILURE";t.UNPUBLISHED_ENTRY_PERSIST_REQUEST="UNPUBLISHED_ENTRY_PERSIST_REQUEST";t.UNPUBLISHED_ENTRY_PERSIST_SUCCESS="UNPUBLISHED_ENTRY_PERSIST_SUCCESS";t.UNPUBLISHED_ENTRY_PERSIST_FAILURE="UNPUBLISHED_ENTRY_PERSIST_FAILURE";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS";t.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE";t.UNPUBLISHED_ENTRY_PUBLISH_REQUEST="UNPUBLISHED_ENTRY_PUBLISH_REQUEST";t.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS";t.UNPUBLISHED_ENTRY_PUBLISH_FAILURE="UNPUBLISHED_ENTRY_PUBLISH_FAILURE";t.UNPUBLISHED_ENTRY_DELETE_REQUEST="UNPUBLISHED_ENTRY_DELETE_REQUEST";t.UNPUBLISHED_ENTRY_DELETE_SUCCESS="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function b(e,t){return{type:"UNPUBLISHED_ENTRIES_SUCCESS",payload:{entries:e,pages:t}}}function _(e,t){return{type:"UNPUBLISHED_ENTRY_PERSIST_REQUEST",payload:{collection:e.get("name"),slug:t}}}function w(e,t){return{type:"UNPUBLISHED_ENTRY_PERSIST_SUCCESS",payload:{collection:e.get("name"),entry:t}}}function x(e,t,n){return{type:"UNPUBLISHED_ENTRY_PERSIST_FAILURE",payload:{error:e,collection:t.get("name"),slug:n},error:e}}function k(e,t){return async(n,i)=>{const o=i(),l=(0,s.currentBackend)(o.config);if(!(0,r.default)(o.editorialWorkflow.toJS(),"pages.ids",!1))try{const{entries:e,pagination:t}=await l.unpublishedEntries(o.collections);n(b(e,t))}catch(e){}n(function(e,t){return{type:"UNPUBLISHED_ENTRY_REQUEST",payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await l.unpublishedEntry(o,e,t),i=await Promise.all(r.mediaFiles.filter(e=>e.draft).map(e=>{let{url:t,file:n,path:r}=e;return(0,f.createAssetProxy)({path:r,url:t,file:n})}));n((0,p.addAssets)(i)),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_SUCCESS",payload:{collection:e.get("name"),entry:t}}}(e,r)),n((0,d.createDraftFromEntry)(r))}catch(r){r.name===a.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(function(e,t){return{type:"UNPUBLISHED_ENTRY_REDIRECT",payload:{collection:e.get("name"),slug:t}}}(e,t)),n((0,d.loadEntry)(e,t))):n(y({message:{key:"ui.toast.onFailToLoadEntries",details:r},kind:"danger",dismissAfter:8e3}))}}}function E(e){return(t,n)=>{const i=n(),o=(0,s.currentBackend)(i.config),a=(0,r.default)(i.editorialWorkflow.toJS(),"pages.ids",!1);i.config.publish_mode!==c.EDITORIAL_WORKFLOW||a||(t({type:"UNPUBLISHED_ENTRIES_REQUEST"}),o.unpublishedEntries(e).then(e=>t(b(e.entries,e.pagination))).catch(e=>{t(y({message:{key:"ui.toast.onFailToLoadEntries",details:e},kind:"danger",dismissAfter:8e3})),t(function(e){return{type:"UNPUBLISHED_ENTRIES_FAILURE",error:"Failed to load entries",payload:e}}(e)),Promise.reject(e)}))}}t.UNPUBLISHED_ENTRY_DELETE_FAILURE="UNPUBLISHED_ENTRY_DELETE_FAILURE"},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var r=n(89),i=n(1239),o=n(562),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(w,t),m?y(e):d}function _(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function w(){var e=i();if(_(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,c-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function k(){var e=i(),n=_(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},k.flush=function(){return void 0===f?d:x(i())},k}},function(e,t,n){"use strict";var r=Object.assign;e.exports=r},function(e,t,n){"use strict";var r=n(633);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},function(e,t,n){"use strict";var r=n(174)(/[\dA-Za-z]/);e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&e.length>0&&n.push(r("text","\n"));return n};var r=n(110)},function(e,t,n){"use strict";var r=n(650),i=n(652),o=n(655),a=n(656),s=n(659),l=n(1333);e.exports=r([o,i,a,s,l])},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!=typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImplicitAuthenticator",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"NetlifyAuthenticator",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsLibAuth=void 0,Object.defineProperty(t,"PkceAuthenticator",{enumerable:!0,get:function(){return o.default}});var r=a(n(1389)),i=a(n(1390)),o=a(n(1391));function a(e){return e&&e.__esModule?e:{default:e}}const s={NetlifyAuthenticator:r.default,ImplicitAuthenticator:i.default,PkceAuthenticator:o.default};t.NetlifyCmsLibAuth=s},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==t)return"";if(e.frozenBaseUrl&&"undefined"!=typeof URL)return String(new URL(t,e.frozenBaseUrl));return t}},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},u=n.mediaTypes||{},c=n.mediaFeatures||{},d=n.mediaValueKeywords||{},f=n.propertyKeywords||{},p=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent,w=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return i=t,e}function k(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?x(null,"compare"):'"'==n||"'"==n?(t.tokenize=E(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==n?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=S),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function E(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),x("string","string")}}function S(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=E(")"),x(null,"(")}function O(e,t,n){this.type=e,this.indent=t,this.prev=n}function C(e,t,n,r){return e.context=new O(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function A(e,t,n){return j[n.context.type](e,t,n)}function P(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return A(e,t,n)}function R(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var j={top:function(e,t,n){if("{"==e)return C(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(_&&/@component/i.test(e))return C(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return C(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return C(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return C(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return C(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return C(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o=w?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?j.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?C(n,t,"prop"):A(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return C(n,t,"propBlock");if("}"==e||"{"==e)return P(e,t,n);if("("==e)return C(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)R(t);else if("interpolation"==e)return C(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?P(e,t,n):")"==e?T(n):"("==e?C(n,t,"parens"):"interpolation"==e?C(n,t,"interpolation"):("word"==e&&R(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):A(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):j.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return C(n,t,"atBlock_parens");if("}"==e||";"==e)return P(e,t,n);if("{"==e)return T(n)&&C(n,t,y?"block":"top");if("interpolation"==e)return C(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?w?"string-2":"property":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?P(e,t,n):"{"==e?T(n)&&C(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?P(e,t,n,2):j.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?C(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):A(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?C(n,t,"top"):A(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?P(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?P(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new O(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||k)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=j[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(f),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),_=n.concat(i).concat(a).concat(l).concat(c).concat(f).concat(g).concat(y);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",_),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(5))},function(e,t,n){!function(e){"use strict";var t={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};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=d;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=d,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=d,t.state=y,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return e&&e.toLowerCase()}function m(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function g(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(h(n))||!l.contextGrabbers[h(n)].hasOwnProperty(h(t)))return;g(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?_:y}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,0,n)):(a="error",b)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(h(n.context.tagName))&&g(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",w):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",w(e,0,n)):(a="error",x)}function w(e,t,n){return"endTag"!=e?(a="error",w):(g(n),y)}function x(e,t,n){return a="error",w(e,0,n)}function k(e,t,n){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(h(r))?v(n,r):(v(n,r),n.context=new m(n,r,i==n.indented)),y}return a="error",k}function E(e,t,n){return"equals"==e?S:(l.allowMissing||(a="error"),k(e,0,n))}function S(e,t,n){return"string"==e?O:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,0,n))}function O(e,t,n){return"string"==e?O:k(e,0,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(h(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[h(i.tagName)];if(!a||!a.hasOwnProperty(h(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==S&&(e.state=k)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(5))},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={ACTIVE:"active"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n(8);var r=n(13);function i(e,t,n){var i=n||6371008.8,o=Object(r.l)(e[1]),a=Object(r.l)(t[1]),s=(a-o)/2,l=Object(r.l)(t[0]-e[0])/2,u=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(o)*Math.cos(a);return 2*i*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function o(e,t,n,i){var o=i||6371008.8,a=Object(r.l)(e[1]),s=Object(r.l)(e[0]),l=t/o,u=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(n)),c=s+Math.atan2(Math.sin(n)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(u));return[Object(r.k)(c),Object(r.k)(u)]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return x}));var r,i=n(41),o=n(362),a=n(107),s=n(102),l=n(42),u=n(18),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return(n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0]})||this).canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},t.prototype.getAnchor=function(){var e=this.size_;if(!e)return null;var t=this.getDisplacement();return[e[0]/2-t[0],e[1]/2+t[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(e){var t=this.canvas_[e];if(!t){var n=this.renderOptions_,r=Object(l.a)(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvas_[e]=t}return t},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return i.a.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.calculateLineJoinSize_=function(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=r-Math.sqrt(i*i-l*l),c=Math.sqrt(l*l+u*u),d=c/l;if("miter"===e&&d<=n)return d*t;var f=t/2/d,p=t/2*(u/c),h=Math.sqrt((r+f)*(r+f)+p*p)-r;if(void 0===this.radius2_||"bevel"===e)return 2*h;var m=r*Math.sin(s),g=i-Math.sqrt(r*r-m*m),v=Math.sqrt(m*m+g*g)/m;if(v<=n){var y=v*t/2-i-r;return 2*Math.max(h,y)}return 2*h},t.prototype.createRenderOptions=function(){var e,t=u.g,n=0,r=null,i=0,o=0;this.stroke_&&(null===(e=this.stroke_.getColor())&&(e=u.k),e=Object(s.a)(e),void 0===(o=this.stroke_.getWidth())&&(o=u.h),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(t=this.stroke_.getLineJoin())&&(t=u.g),void 0===(n=this.stroke_.getMiterLimit())&&(n=u.i));var a=this.calculateLineJoinSize_(t,o,n),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:e,strokeWidth:o,size:Math.ceil(2*l+a),lineDash:r,lineDashOffset:i,lineJoin:t,miterLimit:n}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]},t.prototype.draw_=function(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){var r=this.fill_.getColor();null===r&&(r=u.b),t.fillStyle=Object(s.a)(r),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t.prototype.createHitDetectionCanvas_=function(e){if(this.fill_){var t=this.fill_.getColor(),n=0;if("string"==typeof t&&(t=Object(a.a)(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=Object(l.a)(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},t.prototype.createPath_=function(e){var t=this.points_,n=this.radius_;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/t,a=0;a<t;a++){var s=i+a*o,l=a%2==0?n:r;e.lineTo(l*Math.cos(s),l*Math.sin(s))}e.closePath()}},t.prototype.drawHitDetectionCanvas_=function(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=u.b,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())},t}(o.a),f=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(t){var n=t||{};return e.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0]})||this}return f(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(d),h=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}(),m=n(8),g=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}(),v=n(23),y=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=k,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.setHitDetectionRenderer=function(e){this.hitDetectionRenderer_=e},e.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=k,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}();function b(e){var t;if("function"==typeof e)t=e;else{var n;if(Array.isArray(e))n=e;else Object(v.a)("function"==typeof e.getZIndex,41),n=[e];t=function(){return n}}return t}var _=null;function w(e,t){if(!_){var n=new h({color:"rgba(255,255,255,0.4)"}),r=new g({color:"#3399CC",width:1.25});_=[new y({image:new p({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return _}function x(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e[m.a.POLYGON]=[new y({fill:new h({color:[255,255,255,.5]})})],e[m.a.MULTI_POLYGON]=e[m.a.POLYGON],e[m.a.LINE_STRING]=[new y({stroke:new g({color:t,width:5})}),new y({stroke:new g({color:n,width:3})})],e[m.a.MULTI_LINE_STRING]=e[m.a.LINE_STRING],e[m.a.CIRCLE]=e[m.a.POLYGON].concat(e[m.a.LINE_STRING]),e[m.a.POINT]=[new y({image:new p({radius:6,fill:new h({color:n}),stroke:new g({color:t,width:1.5})}),zIndex:1/0})],e[m.a.MULTI_POINT]=e[m.a.POINT],e[m.a.GEOMETRY_COLLECTION]=e[m.a.POLYGON].concat(e[m.a.LINE_STRING],e[m.a.POINT]),e}function k(e){return e.getGeometry()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(275);var i=n(349);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,u=i.min,c=i.max,d=i.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(P[e])e=P[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:B(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(p=e.r,h=e.g,m=e.b,t={r:255*I(p,255),g:255*I(h,255),b:255*I(m,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(r=N(e.s),s=N(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6;return{r:255*[n,s,a,a,l,n][u],g:255*[l,n,n,s,a,a][u],b:255*[a,a,l,n,n,s][u]}}(e.h,r,s),d=!0,f="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(r=N(e.s),l=N(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,m;return n=j(n),{ok:d,format:e.format||f,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function h(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function m(e,t,n,r){var i=[D(l(e).toString(16)),D(l(t).toString(16)),D(l(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function g(e,t,n,r){return[D(F(r)),D(l(e).toString(16)),D(l(t).toString(16)),D(l(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=M(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=M(n.s),f(n)}function b(e){return f(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=M(n.l),f(n)}function w(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=c(0,u(255,n.r-l(-t/100*255))),n.g=c(0,u(255,n.g-l(-t/100*255))),n.b=c(0,u(255,n.b-l(-t/100*255))),f(n)}function x(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=M(n.l),f(n)}function k(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function E(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function T(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),i=360/n,o=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function A(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=j(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[D(l(e).toString(16)),D(l(t).toString(16)),D(l(n).toString(16)),D(F(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*I(this._r,255))+"%",g:l(100*I(this._g,255))+"%",b:l(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%)":"rgba("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:N(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=f.readability(e,t[u]))>l&&(l=r,s=f(t[u]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var P=f.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"},R=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(P);function j(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,c(0,e))}function L(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function F(e){return i.round(255*parseFloat(e)).toString(16)}function B(e){return L(e)/255}var z,U,q,W=(U="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",q="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+q),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 H(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";var r=n(0).createContext();e.exports=r},function(e,t,n){"use strict";var r=n(2);e.exports={refType:r.oneOfType([r.func,r.shape({current:r.elementType})])}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var r in n=n||{},t)t.hasOwnProperty(r)&&(n[r]||(e[r]=t[r]))}},function(e,t,n){var r=n(825),i=n(190),o=n(285),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){(function(e){var r=n(495),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(161)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(288),i=n(834),o=n(835),a=n(836),s=n(837),l=n(838);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(829),i=n(830),o=n(831),a=n(832),s=n(833);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(239);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(189)(Object,"create");e.exports=r},function(e,t,n){var r=n(847);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(380),i=n(852),o=n(853);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){"use strict";var r=n(385),i=n(96),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);if(l&&u){var n=l(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){"use strict";e.exports=n(883)},function(e,t,n){var r=n(242),i=n(537),o=n(166),a=n(541),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(243);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(945),i=n(395),o=n(946);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(393);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(120),i=n(83),o=n(244);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},function(e,t,n){var r=n(89),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(245),i=n(539),o=n(392);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(303),i=n(89);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(120),i=n(49),o=n(83);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(969),i=n(971);e.exports=function(e,t,n){return r(i,e,t,n)}},function(e,t,n){var r=n(287),i=n(405),o=n(390),a=n(563),s=n(974),l=n(564),u=n(216),c=n(977),d=n(978),f=n(502),p=n(407),h=n(212),m=n(979),g=n(980),v=n(567),y=n(49),b=n(238),_=n(984),w=n(89),x=n(986),k=n(210),E=n(249),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,O,C,T,A){var P,R=1&n,j=2&n,I=4&n;if(O&&(P=T?O(t,C,T,A):O(t)),void 0!==P)return P;if(!w(t))return t;var M=y(t);if(M){if(P=m(t),!R)return u(t,P)}else{var L=h(t),D="[object Function]"==L||"[object GeneratorFunction]"==L;if(b(t))return l(t,R);if("[object Object]"==L||"[object Arguments]"==L||D&&!T){if(P=j||D?{}:v(t),!R)return j?d(t,s(P,t)):c(t,a(P,t))}else{if(!S[L])return T?t:{};P=g(t,L,R)}}A||(A=new r);var N=A.get(t);if(N)return N;A.set(t,P),x(t)?t.forEach((function(r){P.add(e(r,n,O,r,t,A))})):_(t)&&t.forEach((function(r,i){P.set(i,e(r,n,O,i,t,A))}));var F=M?void 0:(I?j?p:f:j?E:k)(t);return i(F||t,(function(r,i){F&&(r=t[i=r]),o(P,i,e(r,n,O,i,t,A))})),P}},function(e,t,n){var r=n(162),i=n(83);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(97))},function(e,t){var n=Object.prototype.toString;function r(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";const r=n(585),i=n(419);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";var r=n(219);e.exports=r.DEFAULT=new r({include:[n(253)],explicit:[n(1060),n(1061),n(1062)]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(592),i=n(593),o=n(255),a=n(35),s=n(44);var l;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter(e=>c.has(e)||"array"===t&&"array"===e):[]}(t,o.coerceTypes),u=t.length>0&&!(0===s.length&&1===t.length&&i.schemaHasRulesForType(e,t[0]));if(u){const i=f(t,r,o.strictNumbers,l.Wrong);n.if(i,()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(f(t,i,o.strictNumbers),()=>r.assign(l,i)));r.if(a._`${l} !== undefined`);for(const e of n)(c.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),h(e),r.endIf(),r.if(a._`${l} !== undefined`,()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,()=>e.assign(a._`${t}[${n}]`,r))}(e,l)})}(e,t,s):h(e)})}return u};const c=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:a.not(o);function s(e=a.nil){return a.and(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function f(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=s.toHash(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=a.and(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=f;const p={message:({schema:e})=>"must be "+e,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=s.schemaRefOrVal(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);o.reportError(t,p)}t.reportTypeError=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(44),i=n(274),o=n(1075),a=n(594),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!u(e):!!t&&function e(t){let n=0;for(const i in t){if("$ref"===i)return 1/0;if(n++,!s.has(i)&&("object"==typeof t[i]&&r.eachItem(t[i],t=>n+=e(t)),n===1/0))return 1/0}return n}(e)<=t)};const l=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(e){for(const t in e){if(l.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(u))return!0;if("object"==typeof n&&u(n))return!0}return!1}function c(e="",t){!1!==t&&(e=p(e));return d(a.parse(e))}function d(e){return a.serialize(e).split("#")[0]+"#"}t.getFullPath=c,t._getFullPath=d;const f=/#\/?$/;function p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t){return t=p(t),a.resolve(e,t)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const t=p(e.$id),n={"":t},r=c(t,!1),s={},l=new Set;return o(e,{allKeys:!0},(e,t,i,o)=>{if(void 0===o)return;const c=r+t;let f=n[o];function m(t){if(t=p(f?a.resolve(f,t):t),l.has(t))throw d(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==p(c)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=c),t}function g(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);m.call(this,"#"+e)}}"string"==typeof e.$id&&(f=m.call(this,e.$id)),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),n[t]=f}),s;function u(e,t,n){if(void 0!==t&&!i(e,t))throw d(n)}function d(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePattern=t.metaSchemaRef=void 0;const r=n(35);t.metaSchemaRef=function({defaultMeta:e}={}){return!1===e?{}:{$ref:e||"http://json-schema.org/schema"}},t.usePattern=function({gen:e,it:{opts:t}},n,i=(t.unicodeRegExp?"u":"")){const o=new RegExp(n,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:r._`new RegExp(${n}, ${i})`})}},function(e,t,n){var r=n(1154);e.exports=function(e){return r(2,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitMessageFormatter=function(e,t,n,r){let{slug:i,path:o,collection:a,authorLogin:s,authorName:l}=n;const u=m(m({},x),t.backend.commit_messages||{}),c=u[e].replace(k,(e,t)=>{switch(t){case"slug":return i||"";case"path":return o||"";case"collection":return a?a.get("label_singular")||a.get("label"):"";case"author-login":return s||"";case"author-name":return l||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}});if(!r)return c;return u.openAuthoring.replace(k,(e,t)=>{switch(t){case"message":return c;case"author-login":return s||"";case"author-name":return l||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})},t.folderFormatter=function(e,t,n,r,i,o){if(!t||!t.get("data"))return e;let a=t.get("data").set(i,r);a=w(t.get("path"),a,n.get("folder"));const s=y(t,(0,u.selectInferedField)(n,"date"))||null,l=a.getIn(_((0,u.selectIdentifier)(n))),c=S(o,[r,a.get("dirname")]);return v(e,s,l,a,c)},t.getProcessSegment=S,t.prepareSlug=E,t.previewUrlFormatter=function(e,t,n,o,a){if(!e)return;const s=(0,i.default)(e,"/"),c=t.get("type")===d.FILES?(0,u.getFileFromSlug)(t,o.get("slug")):void 0;const f=null!==(p=null==c?void 0:c.get("preview_path"))&&void 0!==p?p:t.get("preview_path");var p;if(!f)return e;let h=o.get("data");h=w(o.get("path"),h,t.get("folder"));const m=(null!==(x=null==c?void 0:c.get("preview_path_date_field"))&&void 0!==x?x:t.get("preview_path_date_field"))||(0,u.selectInferedField)(t,"date"),g=y(o,m),_=S(a,[h.get("dirname")]);var x;let k;try{k=v(f,g,n,h,_)}catch(e){if(e.name===b)return console.error(l.stripIndent`
Collection "${t.get("name")}" configuration error:
\`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`.
`),s;throw e}const E=(0,r.default)(k," /");return`${s}/${E}`},t.slugFormatter=function(e,t,n){const r=e.get("slug")||"{{slug}}",i=t.getIn(_((0,u.selectIdentifier)(e)));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const o=S(n),a=new Date,s=v(r,a,i,t,o);if(e.has("path")){const n=E(e.get("path"));return v(n,a,s,t,e=>e===s?e:o(e))}return s},t.summaryFormatter=function(e,t,n){let r=t.get("data");const i=y(t,(0,u.selectInferedField)(n,"date"))||null,o=r.getIn(_((0,u.selectIdentifier)(n)));r=w(t.get("path"),r,n.get("folder")),t.get("author")&&!(0,u.selectField)(n,f.COMMIT_AUTHOR)&&(r=r.set(f.COMMIT_AUTHOR,t.get("author")));t.get("updatedOn")&&!(0,u.selectField)(n,f.COMMIT_DATE)&&(r=r.set(f.COMMIT_DATE,t.get("updatedOn")));return v(e,i,o,r)};var r=p(n(123)),i=p(n(168)),o=p(n(607)),a=p(n(146)),s=n(147),l=n(111),u=n(71),c=n(170),d=n(257),f=n(604);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{compileStringTemplate:v,parseDateFromEntry:y,SLUG_MISSING_REQUIRED_DATE:b,keyToPathArray:_,addFileTemplateFields:w}=s.stringTemplate,x={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},k=/\{\{([^}]+)\}\}/g;function E(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function S(e,t){return n=>t&&t.includes(n)?n:(0,a.default)([e=>String(e),E,(0,o.default)(c.sanitizeSlug,e)])(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEARCH_ENTRIES_SUCCESS=t.SEARCH_ENTRIES_REQUEST=t.SEARCH_ENTRIES_FAILURE=t.SEARCH_CLEAR=t.QUERY_SUCCESS=t.QUERY_REQUEST=t.QUERY_FAILURE=void 0,t.clearSearch=function(){return{type:"SEARCH_CLEAR"}},t.query=function(e,t,n,r,i,l){return async(u,c)=>{u(d(r));const h=c(),m=(0,o.currentBackend)(h.config),g=(0,s.selectIntegration)(h,t,"search"),v=h.collections.find(e=>e.get("name")===t),y=g?(0,a.getIntegrationProvider)(h.integrations,m.getToken,g).searchBy(n.map(e=>"data."+e),t,r):m.query(v,n,r,i,l);try{const t=await y;return u(f(e,t.hits))}catch(e){return u(p(e))}}},t.queryFailure=p,t.querySuccess=f,t.querying=d,t.searchEntries=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return async(r,d)=>{const f=d(),{search:p}=f,h=(0,o.currentBackend)(f.config),m=t||f.collections.keySeq().toArray(),g=m.filter(e=>(0,s.selectIntegration)(f,e,"search")),v=(0,s.selectIntegration)(f,g[0],"search");if(p.isFetching&&p.term===e&&(0,i.default)(m,p.collections)&&(p.page===n||!v))return;r(l(e,m,n));const y=v?(0,a.getIntegrationProvider)(f.integrations,h.getToken,v).search(g,e,n):h.search(f.collections.filter((e,t)=>-1!==m.indexOf(t)).valueSeq().toArray(),e);try{const e=await y;return r(u(e.entries,e.pagination))}catch(e){return r(c(e))}}},t.searchFailure=c,t.searchSuccess=u,t.searchingEntries=l;var r,i=(r=n(258))&&r.__esModule?r:{default:r},o=n(145),a=n(424),s=n(121);t.SEARCH_ENTRIES_REQUEST="SEARCH_ENTRIES_REQUEST";t.SEARCH_ENTRIES_SUCCESS="SEARCH_ENTRIES_SUCCESS";t.SEARCH_ENTRIES_FAILURE="SEARCH_ENTRIES_FAILURE";t.QUERY_REQUEST="QUERY_REQUEST";t.QUERY_SUCCESS="QUERY_SUCCESS";t.QUERY_FAILURE="QUERY_FAILURE";function l(e,t,n){return{type:"SEARCH_ENTRIES_REQUEST",payload:{searchTerm:e,searchCollections:t,page:n}}}function u(e,t){return{type:"SEARCH_ENTRIES_SUCCESS",payload:{entries:e,page:t}}}function c(e){return{type:"SEARCH_ENTRIES_FAILURE",payload:{error:e}}}function d(e){return{type:"QUERY_REQUEST",payload:{searchTerm:e}}}function f(e,t){return{type:"QUERY_SUCCESS",payload:{namespace:e,hits:t}}}function p(e){return{type:"QUERY_FAILURE",payload:{error:e}}}t.SEARCH_CLEAR="SEARCH_CLEAR"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectMediaDisplayURL=function(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,i.Map)())},t.selectMediaFileByPath=function(e,t){const n=h(e);return n.find(e=>e.path===t)},t.selectMediaFiles=h;var r,i=n(4),o=(r=n(169))&&r.__esModule?r:{default:r},a=n(98),s=n(171),l=n(126),u=n(121);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={isVisible:!1,showMediaButton:!0,controlMedia:(0,i.Map)(),displayURLs:(0,i.Map)(),config:(0,i.Map)()};function h(e,t){const{mediaLibrary:n,entryDraft:r}=e,o=(0,l.selectEditingDraft)(e.entryDraft),s=(0,u.selectIntegration)(e,null,"assetStore");let c;if(o&&!s){const n=r.getIn(["entry","mediaFiles"],(0,i.List)()).toJS(),o=r.get("entry"),s=e.collections.get(null==o?void 0:o.get("collection")),u=(0,l.selectMediaFolder)(e.config,s,o,t);c=n.filter(e=>(0,a.dirname)(e.path)===u).map(e=>d({key:e.id},e))}else c=n.get("files")||[];return c}var m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.Map)(p),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.MEDIA_LIBRARY_CREATE:return e.withMutations(e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())});case s.MEDIA_LIBRARY_OPEN:{const{controlID:n,forImage:r,privateUpload:o,config:a,field:s,value:l,replaceIndex:u}=t.payload,c=a||(0,i.Map)();return e.get("privateUpload")!==o?(0,i.Map)({isVisible:!0,forImage:r,controlID:n,canInsert:!!n,privateUpload:o,config:c,controlMedia:(0,i.Map)(),displayURLs:(0,i.Map)(),field:s,value:l,replaceIndex:u}):e.withMutations(e=>{e.set("isVisible",!0),e.set("forImage",r),e.set("controlID",n),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",c),e.set("field",s),e.set("value",l),e.set("replaceIndex",u)})}case s.MEDIA_LIBRARY_CLOSE:return e.set("isVisible",!1);case s.MEDIA_INSERT:{const{mediaPath:n}=t.payload,r=e.get("controlID"),i=e.get("value");if(!Array.isArray(i))return e.withMutations(e=>{e.setIn(["controlMedia",r],n)});const o=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=i;return"number"==typeof o?s[o]=a[0]:s.push(...a),e.withMutations(e=>{e.setIn(["controlMedia",r],s)})}case s.MEDIA_REMOVE_INSERTED:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case s.MEDIA_LOAD_REQUEST:return e.withMutations(e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)});case s.MEDIA_LOAD_SUCCESS:{const{files:n=[],page:r,canPaginate:i,dynamicSearch:a,dynamicSearchQuery:s,privateUpload:l}=t.payload;if(e.get("privateUpload")!==l)return e;const u=n.map(e=>d(d({},e),{},{key:(0,o.default)()}));return e.withMutations(e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",r),e.set("hasNextPage",i&&n.length>0),e.set("dynamicSearch",a),e.set("dynamicSearchQuery",s),e.set("dynamicSearchActive",!!s),r&&r>1){const t=e.get("files").concat(u);e.set("files",t)}else e.set("files",u)})}case s.MEDIA_LOAD_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case s.MEDIA_PERSIST_REQUEST:return e.set("isPersisting",!0);case s.MEDIA_PERSIST_SUCCESS:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=[d(d({},n),{},{key:(0,o.default)()}),...e.get("files")];e.set("files",t),e.set("isPersisting",!1)})}case s.MEDIA_PERSIST_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case s.MEDIA_DELETE_REQUEST:return e.set("isDeleting",!0);case s.MEDIA_DELETE_SUCCESS:{const{file:n,privateUpload:r}=t.payload,{key:i,id:o}=n;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=e.get("files").filter(e=>i?e.key!==i:e.id!==o);e.set("files",t),e.deleteIn(["displayURLs",o]),e.set("isDeleting",!1)})}case s.MEDIA_DELETE_FAILURE:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case s.MEDIA_DISPLAY_URL_REQUEST:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case s.MEDIA_DISPLAY_URL_SUCCESS:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case s.MEDIA_DISPLAY_URL_FAILURE:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectIsLoadingAsset=function(e){return Object.values(e).some(e=>e.isLoading)};var r=n(144),i=n(200);var o=(0,r.produce)((e,t)=>{switch(t.type){case i.ADD_ASSETS:t.payload.forEach(t=>{e[t.path]={asset:t,isLoading:!1,error:null}});break;case i.ADD_ASSET:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case i.REMOVE_ASSET:{const n=t.payload;delete e[n];break}case i.LOAD_ASSET_REQUEST:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case i.LOAD_ASSET_SUCCESS:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case i.LOAD_ASSET_FAILURE:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}},{});t.default=o},function(e,t,n){"use strict";var r=String.fromCharCode;e.exports=r},function(e,t,n){"use strict";var r=n(61),i=n(68),o={tokenize:function(e,t,n){return i(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},function(e,t,n){"use strict";var r=n(174)(/[A-Za-z]/);e.exports=r},function(e,t,n){"use strict";var r=a("start"),i=a("end");function o(e){return{start:r(e),end:i(e)}}function a(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=o,o.start=r,o.end=i},function(e,t,n){"use strict";var r=n(650),i=n(652),o=n(655),a=n(656),s=n(659),l=n(1327);e.exports=r([o,i,a,s,l])},function(e,t,n){"use strict";var r=0;function i(){return Math.pow(2,++r)}t.boolean=i(),t.booleanish=i(),t.overloadedBoolean=i(),t.number=i(),t.spaceSeparated=i(),t.commaSeparated=i(),t.commaOrSpaceSeparated=i()},function(e,t,n){"use strict";var r=n(443),i=n(653),o=n(654);e.exports=function(e,t){var n=r(t),d=t,f=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&"data"===n.slice(0,4)&&a.test(t)&&("-"===t.charAt(4)?d=function(e){var t=e.slice(5).replace(s,c);return"data"+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(s.test(t))return e;"-"!==(t=t.replace(l,u)).charAt(0)&&(t="-"+t);return"data"+t}(t),f=i);return new f(d,t)};var a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function c(e){return e.charAt(1).toUpperCase()}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToSlate=function(e){const t=(0,i.default)().use(c.default,{fragment:!0}).parse(e),n=(0,i.default)().use(p.default).use(d.default,{minify:!1}).runSync(t);return(0,i.default)().use(h.default).use(m.default).use(g.default).use(v.default).runSync(n)},t.markdownToHtml=function(e){let{getAsset:t,resolveWidget:n,remarkPlugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=O(e,r),a=(0,i.default)().use(f.default,{plugins:(0,E.getEditorComponents)(),getAsset:t,resolveWidget:n}).use(l.default,{allowDangerousHTML:!0}).runSync(o),s=(0,i.default)().use(u.default,{allowDangerousHtml:!0,allowDangerousCharacters:!0,closeSelfClosing:!0,entities:{useNamedReferences:!0}}).stringify(a);return s},t.markdownToRemark=O,t.markdownToSlate=function(e){let{voidCodeBlock:t,remarkPlugins:n=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=O(e,n),o=(0,i.default)().use(g.default).use(v.default,{voidCodeBlock:t}).runSync(r);return o},t.remarkToMarkdown=T,t.slateToMarkdown=function(e){let{voidCodeBlock:t,remarkPlugins:n=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,k.default)(e,{voidCodeBlock:t}),i=T(r,n);return i};var r=S(n(168)),i=S(n(1471)),o=S(n(72)),a=S(n(1480)),s=S(n(1527)),l=S(n(1569)),u=S(n(1595)),c=S(n(1615)),d=S(n(1638)),f=S(n(1679)),p=S(n(1683)),h=S(n(1684)),m=S(n(1688)),g=S(n(1692)),v=S(n(1693)),y=S(n(1694)),b=n(1696),_=S(n(1697)),w=S(n(1699)),x=S(n(1700)),k=S(n(1701)),E=n(452);function S(e){return e&&e.__esModule?e:{default:e}}function O(e,t){const n=(0,i.default)().use(a.default,{fences:!0,commonmark:!0}).use(C,{inlineTokenizers:["url"]}).use(b.remarkParseShortcodes,{plugins:(0,E.getEditorComponents)()}).use(x.default).use(y.default).use(t),r=n.parse(e);return n.runSync(r)}function C(e){let{inlineTokenizers:t}=e;t&&t.forEach(e=>{delete this.Parser.prototype.inlineTokenizers[e]})}function T(e,t){const n=e||(0,o.default)("root",[(0,o.default)("paragraph",[(0,o.default)("text","")])]),a=(0,i.default)().use({settings:{commonmark:!0,fences:!0,listItemIndent:"1",bullet:"*",emphasis:"*",strong:"*",rule:"-"}}).use(_.default).use(w.default).use(s.default).use((function(){this.Compiler.prototype.visitors.text=e=>e.value})).use((0,b.createRemarkShortcodeStringifier)({plugins:(0,E.getEditorComponents)()})).use(t),l=a.runSync(n),u=a.stringify(l).replace(/\r?/g,"");return(0,r.default)(u)}},function(e,t,n){"use strict";var r=n(453),i=n(1485),o=n(269),a=n(693),s=n(694),l=n(1486);e.exports=function(e,t){var n,o,a={};t||(t={});for(o in f)n=t[o],a[o]=null==n?f[o]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,o,a,f,b,_,w,x,k,E,S,O,C,T,A,P,R,j,I,M=t.additional,L=t.nonTerminated,D=t.text,N=t.reference,F=t.warning,B=t.textContext,z=t.referenceContext,U=t.warningContext,q=t.position,W=t.indent||[],H=e.length,$=0,V=-1,G=q.column||1,K=q.line||1,Y="",Q=[];"string"==typeof M&&(M=M.charCodeAt(0));P=Z(),x=F?function(e,t){var n=Z();n.column+=t,n.offset+=t,F.call(U,v[e],n,e)}:d,$--,H++;for(;++$<H;)if(10===b&&(G=W[V]||1),38===(b=e.charCodeAt($))){if(9===(w=e.charCodeAt($+1))||10===w||12===w||32===w||38===w||60===w||w!=w||M&&w===M){Y+=c(b),G++;continue}for(O=C=$+1,I=C,35===w?(I=++O,88===(w=e.charCodeAt(I))||120===w?(T=h,I=++O):T="decimal"):T=p,n="",S="",f="",A=g[T],I--;++I<H&&(w=e.charCodeAt(I),A(w));)f+=c(w),T===p&&u.call(r,f)&&(n=f,S=r[f]);(a=59===e.charCodeAt(I))&&(I++,(o=T===p&&l(f))&&(n=f,S=o)),j=1+I-C,(a||L)&&(f?T===p?(a&&!S?x(5,1):(n!==f&&(I=O+n.length,j=1+I-O,a=!1),a||(k=n?1:3,t.attribute?61===(w=e.charCodeAt(I))?(x(k,j),S=null):s(w)?S=null:x(k,j):x(k,j))),_=S):(a||x(2,j),_=parseInt(f,m[T]),(X=_)>=55296&&X<=57343||X>1114111?(x(7,j),_=c(65533)):_ in i?(x(6,j),_=i[_]):(E="",y(_)&&x(6,j),_>65535&&(E+=c((_-=65536)>>>10|55296),_=56320|1023&_),_=E+c(_))):T!==p&&x(4,j)),_?(J(),P=Z(),$=I-1,G+=I-C+1,Q.push(_),(R=Z()).offset++,N&&N.call(z,_,{start:P,end:R},e.slice(C-1,I)),P=R):(f=e.slice(C-1,I),Y+=f,G+=f.length,$=I-1)}else 10===b&&(K++,V++,G=0),b==b?(Y+=c(b),G++):J();var X;return Q.join("");function Z(){return{line:K,column:G,offset:$+(q.offset||0)}}function J(){Y&&(Q.push(Y),D&&D.call(B,Y,{start:P,end:Z()}),Y="")}}(e,a)};var u={}.hasOwnProperty,c=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",h="hexadecimal",m={hexadecimal:16,decimal:10},g={};g[p]=s,g.decimal=o,g[h]=a;var v={};function y(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}v[1]="Named character references must be terminated by a semicolon",v[2]="Numeric character references must be terminated by a semicolon",v[3]="Named character references cannot be empty",v[4]="Numeric character references cannot be empty",v[5]="Named character references must be known",v[6]="Numeric character references cannot be disallowed",v[7]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";e.exports=s;var r=n(698),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\n+$/,"")}},function(e,t,n){"use strict";e.exports=n(1602)},function(e,t,n){"use strict";const r=n(1624),i=n(461),o=n(1625),a=n(462),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE";function d(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function f(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function p(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function h(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function m(e){return h(e)||p(e)}function g(e){return m(e)||f(e)}function v(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function y(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function b(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function w(e){return String.fromCharCode(b(e))}function x(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class k{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:k.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const o=e.length;let a=0,l=t,u=void 0;for(;a<o;a++){if(a>0&&(l=this._consume(),r++),l===s.EOF){i=!1;break}if(u=e[a],l!==u&&(n||l!==b(u))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==l.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:k.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:k.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:k.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:k.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:k.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===k.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===k.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===k.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=k.CHARACTER_TOKEN;d(e)?t=k.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=k.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,_(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(k.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=x(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?x(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||g(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=_(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[c](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===s.AMPERSAND?(this.returnState=c,this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RCDATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RAWTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}SCRIPT_DATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}PLAINTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}TAG_OPEN_STATE(e){e===s.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===s.SOLIDUS?this.state="END_TAG_OPEN_STATE":m(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(c))}END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=c):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(e){d(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):p(e)?this.currentToken.tagName+=w(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=_(e)}RCDATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===s.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):m(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=w(e),this.tempBuff.push(e);else if(h(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(b(e)),this._emitCodePoint(e)):h(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(b(e)),this._emitCodePoint(e)):h(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):p(e)?this.currentAttr.name+=w(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=_(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=_(e)}AFTER_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(e){d(e)||(e===s.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===s.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}ATTRIBUTE_VALUE_UNQUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=_(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_(e)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=_(e)}MARKUP_DECLARATION_OPEN_STATE(e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=_(e)}COMMENT_LESS_THAN_SIGN_STATE(e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(e){d(e)||(p(e)?(this._createDoctypeToken(w(e)),this.state="DOCTYPE_NAME_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state="DOCTYPE_NAME_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(_(e)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(e){d(e)?this.state="AFTER_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):p(e)?this.currentToken.name+=w(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=_(e)}AFTER_DOCTYPE_NAME_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_(e)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_(e)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_(e)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_(e)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}CDATA_SECTION_BRACKET_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):g(e)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(e){g(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=_(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(e){!function(e){return f(e)||v(e)||y(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(e){f(e)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(e){v(e)?this.charRefCode=16*this.charRefCode+e-55:y(e)?this.charRefCode=16*this.charRefCode+e-87:f(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(e){f(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}k.CHARACTER_TOKEN="CHARACTER_TOKEN",k.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",k.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",k.START_TAG_TOKEN="START_TAG_TOKEN",k.END_TAG_TOKEN="END_TAG_TOKEN",k.COMMENT_TOKEN="COMMENT_TOKEN",k.DOCTYPE_TOKEN="DOCTYPE_TOKEN",k.EOF_TOKEN="EOF_TOKEN",k.HIBERNATION_TOKEN="HIBERNATION_TOKEN",k.MODE={DATA:c,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},k.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=k},function(e,t,n){"use strict";var r={}.hasOwnProperty;e.exports=function(e,t){var n,i;if(!e||!t||"object"!=typeof e||"element"!==e.type)return!1;return n=e.properties,null!=(i=n&&r.call(n,t)&&n[t])&&!1!==i}},function(e,t,n){"use strict";e.exports={}.hasOwnProperty},function(e,t,n){"use strict";var r=n(77),i=n(128),o=n(1653);e.exports=function(e){var t,n,i,o,a=e.children||[],s=p(e),u=y(e,{}),c=-1;if("text"===e.type||"comment"===e.type)return m(e,{whiteSpace:u,breakBefore:!0,breakAfter:!0});t=[];for(;++c<a.length;)t=t.concat(h(a[c],c,e,{whiteSpace:u,breakBefore:c?null:s,breakAfter:c<a.length-1?l(a[c+1]):s}));c=-1,n=[];for(;++c<t.length;)"number"==typeof(i=t[c])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,l=i("br"),u=i("p"),c=i(["th","td"]),d=i("tr"),f=i(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),p=i(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function h(e,t,n,r){return"element"===e.type?function(e,t,n,r){var i,a,s=y(e,r),m=e.children||[],g=-1,v=[];if(f(e))return v;l(e)||d(e)&&o(n,e,d)?a="\n":u(e)?(i=2,a=2):p(e)&&(i=1,a=1);for(;++g<m.length;)v=v.concat(h(m[g],g,e,{whiteSpace:s,breakBefore:g?null:i,breakAfter:g<m.length-1?l(m[g+1]):a}));c(e)&&o(n,e,c)&&v.push("\t");i&&v.unshift(i);a&&v.push(a);return v}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):g(e)]:[]}function m(e,t){for(var n,r,i,o=String(e.value),s=[],l=[],u=0,c=-1;u<o.length;)a.lastIndex=u,r=(n=a.exec(o))?n.index:o.length,s.push(v(o.slice(u,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),u=r+1;for(;++c<s.length;)8203===s[c].charCodeAt(s[c].length-1)||c<s.length-1&&8203===s[c+1].charCodeAt(0)?(l.push(s[c]),i=""):s[c]&&(i&&l.push(i),l.push(s[c]),i=" ");return l.join("")}function g(e){return String(e.value)}function v(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},function(e,t,n){"use strict";function r(e){return e&&(e.value||e.alt||e.title||"children"in e&&i(e.children)||"length"in e&&i(e))||""}function i(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t.join("")}e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"gql",(function(){return le})),n.d(t,"resetCaches",(function(){return ue})),n.d(t,"disableFragmentWarnings",(function(){return ce})),n.d(t,"enableExperimentalFragmentVariables",(function(){return de})),n.d(t,"disableExperimentalFragmentVariables",(function(){return fe}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;Object.create;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return l(e.source,a(e.source,e.start))}function l(e,t){var n=e.locationOffset.column-1,r=c(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,d="".concat(e.name,":").concat(a,":").concat(l,"\n"),f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){for(var h=Math.floor(l/80),m=l%80,g=[],v=0;v<p.length;v+=80)g.push(p.slice(v,v+80));return d+u([["".concat(a),g[0]]].concat(g.slice(1,h+1).map((function(e){return["",e]})),[[" ",c(m-1)+"^"],["",g[h+1]]]))}return d+u([["".concat(a-1),f[i-1]],["".concat(a),p],["",c(l-1)+"^"],["".concat(a+1),f[i+1]]])}function u(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return c(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function c(e){return Array(e+1).join(" ")}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function y(e,t,n){return(y=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_(i,n.prototype),i}).apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(v,e);var t,n,r,u,c,d=(t=v,n=b(),function(){var e,r=w(t);if(n){var i=w(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return m(this,e)});function v(e,t,n,r,o,s,l){var u,c,h,y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(y=d.call(this,e)).name="GraphQLError",y.originalError=null!=s?s:void 0,y.nodes=k(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],_=0,w=null!==(x=y.nodes)&&void 0!==x?x:[];_<w.length;_++){var x,E=w[_].loc;null!=E&&b.push(E)}b=k(b),y.source=null!=n?n:null===(u=b)||void 0===u?void 0:u[0].source,y.positions=null!=r?r:null===(c=b)||void 0===c?void 0:c.map((function(e){return e.start})),y.locations=r&&n?r.map((function(e){return a(n,e)})):null===(h=b)||void 0===h?void 0:h.map((function(e){return a(e.source,e.start)})),y.path=null!=o?o:void 0;var S=null==s?void 0:s.extensions;return null==l&&function(e){return"object"==i(e)&&null!==e}(S)?y.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},S):y.extensions=null!=l?l:{},Object.defineProperties(g(y),{message:{enumerable:!0},locations:{enumerable:null!=y.locations},path:{enumerable:null!=y.path},extensions:{enumerable:null!=y.extensions&&Object.keys(y.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(g(y),"stack",{value:s.stack,writable:!0,configurable:!0}),m(y)):(Error.captureStackTrace?Error.captureStackTrace(g(y),v):Object.defineProperty(g(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return r=v,(u=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+l(e.source,u)}return t}(this)}},{key:o,get:function(){return"Object"}}])&&h(r.prototype,u),c&&h(r,c),v}(v(Error));function k(e){return void 0===e||0===e.length?void 0:e}function E(e,t,n){return new x("Syntax Error: ".concat(n),void 0,e,[t])}var S=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var O="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function C(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,O&&(e.prototype[O]=t)}var T=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();C(T);var A=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();C(A);var P=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e){return I(e,[])}function I(e,t){switch(R(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(O)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:I(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(I(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+I(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function M(e,t){if(!Boolean(e))throw new Error(t)}var L=function(e,t){return e instanceof t};function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var N=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||M(0,"Body must be a string. Received: ".concat(j(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||M(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||M(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:o,get:function(){return"Source"}}])&&D(t.prototype,n),r&&D(t,r),e}();var F=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function B(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&z(t[i]);)++i;for(var o=t.length;o>i&&z(t[o-1]);)--o;return t.slice(i,o).join("\n")}function z(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var U=function(){function e(e){var t=new A(P.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==P.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=W(this,e)}while(e.kind===P.COMMENT);return e},e}();function q(e){return isNaN(e)?P.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function W(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,l=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new A(P.BANG,o,o+1,s,l,t);case 35:return $(n,o,s,l,t);case 36:return new A(P.DOLLAR,o,o+1,s,l,t);case 38:return new A(P.AMP,o,o+1,s,l,t);case 40:return new A(P.PAREN_L,o,o+1,s,l,t);case 41:return new A(P.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new A(P.SPREAD,o,o+3,s,l,t);break;case 58:return new A(P.COLON,o,o+1,s,l,t);case 61:return new A(P.EQUALS,o,o+1,s,l,t);case 64:return new A(P.AT,o,o+1,s,l,t);case 91:return new A(P.BRACKET_L,o,o+1,s,l,t);case 93:return new A(P.BRACKET_R,o,o+1,s,l,t);case 123:return new A(P.BRACE_L,o,o+1,s,l,t);case 124:return new A(P.PIPE,o,o+1,s,l,t);case 125:return new A(P.BRACE_R,o,o+1,s,l,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Y(n,o,s,l,t,e):K(n,o,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return V(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return X(n,o,s,l,t)}throw E(n,o,H(a))}var u=e.line,c=1+o-e.lineStart;return new A(P.EOF,i,i,u,c,t)}function H(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(q(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(q(e),".")}function $(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new A(P.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function V(e,t,n,r,i,o){var a=e.body,s=n,l=t,u=!1;if(45===s&&(s=a.charCodeAt(++l)),48===s){if((s=a.charCodeAt(++l))>=48&&s<=57)throw E(e,l,"Invalid number, unexpected digit after 0: ".concat(q(s),"."))}else l=G(e,l,s),s=a.charCodeAt(l);if(46===s&&(u=!0,s=a.charCodeAt(++l),l=G(e,l,s),s=a.charCodeAt(l)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++l))&&45!==s||(s=a.charCodeAt(++l)),l=G(e,l,s),s=a.charCodeAt(l)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw E(e,l,"Invalid number, expected digit but got: ".concat(q(s),"."));return new A(u?P.FLOAT:P.INT,t,l,r,i,o,a.slice(t,l))}function G(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw E(e,i,"Invalid number, expected digit but got: ".concat(q(o),"."))}function K(e,t,n,r,i){for(var o,a,s,l,u=e.body,c=t+1,d=c,f=0,p="";c<u.length&&!isNaN(f=u.charCodeAt(c))&&10!==f&&13!==f;){if(34===f)return p+=u.slice(d,c),new A(P.STRING,t,c+1,n,r,i,p);if(f<32&&9!==f)throw E(e,c,"Invalid character within String: ".concat(q(f),"."));if(++c,92===f){switch(p+=u.slice(d,c-1),f=u.charCodeAt(c)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var h=(o=u.charCodeAt(c+1),a=u.charCodeAt(c+2),s=u.charCodeAt(c+3),l=u.charCodeAt(c+4),Q(o)<<12|Q(a)<<8|Q(s)<<4|Q(l));if(h<0){var m=u.slice(c+1,c+5);throw E(e,c,"Invalid character escape sequence: \\u".concat(m,"."))}p+=String.fromCharCode(h),c+=4;break;default:throw E(e,c,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}d=++c}}throw E(e,c,"Unterminated string.")}function Y(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,u=0,c="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return c+=a.slice(l,s),new A(P.BLOCK_STRING,t,s+3,n,r,i,B(c));if(u<32&&9!==u&&10!==u&&13!==u)throw E(e,s,"Invalid character within String: ".concat(q(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(c+=a.slice(l,s)+'"""',l=s+=4):++s}throw E(e,s,"Unterminated string.")}function Q(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function X(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new A(P.NAME,t,s,n,r,i,o.slice(t,s))}var Z=function(){function e(e,t){var n=function(e){return L(e,N)}(e)?e:new N(e);this._lexer=new U(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(P.NAME);return{kind:S.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:S.DOCUMENT,definitions:this.many(P.SOF,this.parseDefinition,P.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(P.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(P.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(P.BRACE_L))return{kind:S.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(P.NAME)&&(t=this.parseName()),{kind:S.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(P.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(P.PAREN_L,this.parseVariableDefinition,P.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:S.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(P.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(P.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(P.DOLLAR),{kind:S.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:S.SELECTION_SET,selections:this.many(P.BRACE_L,this.parseSelection,P.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(P.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(P.COLON)?(e=r,t=this.parseName()):t=r,{kind:S.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(P.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(P.PAREN_L,t,P.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(P.COLON),{kind:S.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:S.ARGUMENT,name:this.parseName(),value:(this.expectToken(P.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(P.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(P.NAME)?{kind:S.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:S.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case P.BRACKET_L:return this.parseList(e);case P.BRACE_L:return this.parseObject(e);case P.INT:return this._lexer.advance(),{kind:S.INT,value:t.value,loc:this.loc(t)};case P.FLOAT:return this._lexer.advance(),{kind:S.FLOAT,value:t.value,loc:this.loc(t)};case P.STRING:case P.BLOCK_STRING:return this.parseStringLiteral();case P.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:S.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:S.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:S.NULL,loc:this.loc(t)};default:return{kind:S.ENUM,value:t.value,loc:this.loc(t)}}case P.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:S.STRING,value:e.value,block:e.kind===P.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:S.LIST,values:this.any(P.BRACKET_L,(function(){return t.parseValueLiteral(e)}),P.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:S.OBJECT,fields:this.any(P.BRACE_L,(function(){return t.parseObjectField(e)}),P.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(P.COLON),{kind:S.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(P.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(P.AT),{kind:S.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(P.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(P.BRACKET_R),e={kind:S.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(P.BANG)?{kind:S.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:S.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===P.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(P.STRING)||this.peek(P.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);return{kind:S.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(P.COLON);var n=this.parseNamedType();return{kind:S.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:S.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:S.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(P.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(P.AMP)||this.peek(P.NAME));return t}return this.delimitedMany(P.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(P.BRACE_L)&&this._lexer.lookahead().kind===P.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(P.BRACE_L,this.parseFieldDefinition,P.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(P.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:S.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(P.PAREN_L,this.parseInputValueDef,P.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(P.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(P.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:S.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:S.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:S.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(P.EQUALS)?this.delimitedMany(P.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:S.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(P.BRACE_L,this.parseEnumValueDefinition,P.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:S.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:S.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(P.BRACE_L,this.parseInputValueDef,P.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===P.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:S.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:S.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:S.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:S.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:S.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:S.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:S.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(P.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:S.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(P.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==F[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new T(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw E(this._lexer.source,t.start,"Expected ".concat(ee(e),", found ").concat(J(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==P.NAME||t.value!==e)throw E(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(J(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===P.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return E(this._lexer.source,t.start,"Unexpected ".concat(J(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function J(e){var t=e.value;return ee(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function ee(e){return function(e){return e===P.BANG||e===P.DOLLAR||e===P.AMP||e===P.PAREN_L||e===P.PAREN_R||e===P.SPREAD||e===P.COLON||e===P.EQUALS||e===P.AT||e===P.BRACKET_L||e===P.BRACKET_R||e===P.BRACE_L||e===P.PIPE||e===P.BRACE_R}(e)?'"'.concat(e,'"'):e}var te=new Map,ne=new Map,re=!0,ie=!1;function oe(e){return e.replace(/[\s,]+/g," ").trim()}function ae(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=oe((a=e.loc).source.body.substring(a.start,a.end)),o=ne.get(r);o&&!o.has(i)?re&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ne.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),r(r({},e),{definitions:n})}function se(e){var t=oe(e);if(!te.has(t)){var n=function(e,t){return new Z(e,t).parseDocument()}(e,{experimentalFragmentVariables:ie,allowLegacyFragmentVariables:ie});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");te.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(ae(n)))}return te.get(t)}function le(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),se(r)}function ue(){te.clear(),ne.clear()}function ce(){re=!1}function de(){ie=!0}function fe(){ie=!1}var pe,he={gql:le,resetCaches:ue,disableFragmentWarnings:ce,enableExperimentalFragmentVariables:de,disableExperimentalFragmentVariables:fe};(pe=le||(le={})).gql=he.gql,pe.resetCaches=he.resetCaches,pe.disableFragmentWarnings=he.disableFragmentWarnings,pe.enableExperimentalFragmentVariables=he.enableExperimentalFragmentVariables,pe.disableExperimentalFragmentVariables=he.disableExperimentalFragmentVariables,le.default=le;t.default=le},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),i=Object(r.createContext)({dragDropManager:void 0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=l(o),s=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";t.a=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(275);function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(11),i=n(130),o=n(80),a=n(81),s=n(91),l=n(22),u=n(0),c=n.n(u),d={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},f=function(e){var t,n;return n=t=function(t){Object(s.a)(u,t);var n=Object(l.j)(u);function u(){var e;Object(o.a)(this,u);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Object(a.a)(u,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var o=Object(i.a)(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return c.a.createElement(e,Object(r.a)({},o,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),u}(u.Component),t.defaultProps=d,n}},function(e,t,n){"use strict";n.r(t);var r=n(31),i=n(4),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delimiter,i=void 0===n?"\n":n;return"document"===e.object||"block"===e.object&&r.Block.isBlockList(e.nodes)?e.nodes.map(a).join(i):e.text}var s={deserialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,a=void 0===n?"line":n,s=t.defaultMarks,l=void 0===s?[]:s,u=t.delimiter,c=void 0===u?"\n":u,d=t.toJSON,f=void 0!==d&&d;i.Set.isSet(l)&&(l=l.toArray()),a=r.Node.createProperties(a),l=l.map(r.Mark.createProperties);var p={object:"value",document:{object:"document",data:{},nodes:e.split(c).map((function(e){return o({},a,{object:"block",data:{},nodes:[{object:"text",text:e,marks:l}]})}))}},h=f?p:r.Value.fromJSON(p);return h},serialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e.document,t)}};t.default=s},function(e,t,n){"use strict";var r,i=n(10),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=this,r="Assertion failed. See https://openlayers.org/en/"+("latest"===i.a?i.a:"v"+i.a.split("-")[0])+"/doc/errors/#"+t+" for details.";return(n=e.call(this,r)||this).code=t,n.name="AssertionError",n.message=r,n}return o(t,e),t}(Error);t.a=a},function(e,t,n){"use strict";var r,i=n(112),o=n(20),a=n(19),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=e.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return s(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.a.CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.onInternal=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=Object(a.a)(this,e[i],t);return r}return Object(a.a)(this,e,t)},t.prototype.onceInternal=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Object(a.b)(this,e[i],t)}else n=Object(a.b)(this,e,t);return t.ol_key=n,n},t.prototype.unInternal=function(e,t){var n=t.ol_key;if(n)!function(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)Object(a.c)(e[t]);else Object(a.c)(e)}(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(i.a);l.prototype.on,l.prototype.once,l.prototype.un,t.a=l},function(e,t,n){"use strict";var r,i=n(64),o=n(43),a=n(10),s=n(23),l=n(28),u=n(13),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un,n.background_=t.background;var r=Object(l.a)({},t);return"object"==typeof t.properties&&(delete r.properties,Object(l.a)(r,t.properties)),r[o.a.OPACITY]=void 0!==t.opacity?t.opacity:1,Object(s.a)("number"==typeof r[o.a.OPACITY],64),r[o.a.VISIBLE]=void 0===t.visible||t.visible,r[o.a.Z_INDEX]=t.zIndex,r[o.a.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,r[o.a.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,r[o.a.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,r[o.a.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return c(t,e),t.prototype.getBackground=function(){return this.background_},t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=Object(u.b)(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return Object(a.b)()},t.prototype.getLayerStatesArray=function(e){return Object(a.b)()},t.prototype.getExtent=function(){return this.get(o.a.EXTENT)},t.prototype.getMaxResolution=function(){return this.get(o.a.MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(o.a.MIN_RESOLUTION)},t.prototype.getMinZoom=function(){return this.get(o.a.MIN_ZOOM)},t.prototype.getMaxZoom=function(){return this.get(o.a.MAX_ZOOM)},t.prototype.getOpacity=function(){return this.get(o.a.OPACITY)},t.prototype.getSourceState=function(){return Object(a.b)()},t.prototype.getVisible=function(){return this.get(o.a.VISIBLE)},t.prototype.getZIndex=function(){return this.get(o.a.Z_INDEX)},t.prototype.setBackground=function(e){this.background_=e,this.changed()},t.prototype.setExtent=function(e){this.set(o.a.EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(o.a.MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(o.a.MIN_RESOLUTION,e)},t.prototype.setMaxZoom=function(e){this.set(o.a.MAX_ZOOM,e)},t.prototype.setMinZoom=function(e){this.set(o.a.MIN_ZOOM,e)},t.prototype.setOpacity=function(e){Object(s.a)("number"==typeof e,64),this.set(o.a.OPACITY,e)},t.prototype.setVisible=function(e){this.set(o.a.VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(o.a.Z_INDEX,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(i.a);t.a=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(116),i=n(32);function o(e,t,n,o,a,s,l){for(var u,c,d,f,p,h,m,g=a[s+1],v=[],y=0,b=n.length;y<b;++y){var _=n[y];for(f=e[_-o],h=e[_-o+1],u=t;u<_;u+=o)p=e[u],m=e[u+1],(g<=h&&m<=g||h<=g&&g<=m)&&(d=(g-h)/(m-h)*(p-f)+f,v.push(d)),f=p,h=m}var w=NaN,x=-1/0;for(v.sort(i.f),f=v[0],u=1,c=v.length;u<c;++u){p=v[u];var k=Math.abs(p-f);k>x&&(d=(f+p)/2,Object(r.c)(e,t,n,o,d,g)&&(w=d,x=k)),f=p}return isNaN(w)&&(w=a[s]),l?(l.push(w,g,x),l):[w,g,x]}function a(e,t,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var u=n[s];a=o(e,t,u,r,i,2*s,a),t=u[u.length-1]}return a}},function(e,t,n){"use strict";var r,i=n(64),o=n(53),a=n(10),s=n(29),l=n(3),u=n(14),c=n(38),d=n(65),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=Object(s.c)(),h=function(e){function t(){var t=e.call(this)||this;return t.extent_=Object(l.j)(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=Object(c.d)((function(e,t,n){if(!n)return this.getSimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})),t}return f(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return Object(a.b)()},t.prototype.closestPointXY=function(e,t,n,r){return Object(a.b)()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return Object(a.b)()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Object(l.l)(t),this.extentRevision_=this.getRevision()}return Object(l.H)(this.extent_,e)},t.prototype.rotate=function(e,t){Object(a.b)()},t.prototype.scale=function(e,t,n){Object(a.b)()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return Object(a.b)()},t.prototype.getType=function(){return Object(a.b)()},t.prototype.applyTransform=function(e){Object(a.b)()},t.prototype.intersectsExtent=function(e){return Object(a.b)()},t.prototype.translate=function(e,t){Object(a.b)()},t.prototype.transform=function(e,t){var n=Object(u.h)(e),r=n.getUnits()==o.b.TILE_PIXELS?function(e,r,i){var o=n.getExtent(),a=n.getWorldExtent(),c=Object(l.z)(a)/Object(l.z)(o);return Object(s.b)(p,a[0],a[3],c,-c,0,0,0),Object(d.c)(e,0,e.length,i,p,r),Object(u.j)(n,t)(e,r,i)}:Object(u.j)(n,t);return this.applyTransform(r),this},t}(i.a);t.a=h},function(e,t,n){"use strict";function r(e,t,n,r,i){var o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)))return o;return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i=n(63),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return o(t,e),t}(i.a);t.a=a},function(e,t,n){"use strict";function r(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],u=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i=n(48),o=n(8),a=n(156),s=n(73),l=n(92),u=n(3),c=n(85),d=n(113),f=n(32),p=n(59),h=n(234),m=n(178),g=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var d=a[u];0===u&&(o=d.getLayout()),Object(f.c)(s,d.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return g(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?Object(f.c)(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(u.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(l.a)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(l.b)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=i.a.XYM&&this.layout!=i.a.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,o=void 0!==n&&n;return Object(h.c)(this.flatCoordinates,0,this.ends_,this.stride,e,r,o)},t.prototype.getCoordinates=function(){return Object(p.b)(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new a.a(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,o=0,s=t.length;o<s;++o){var l=t[o],u=new a.a(e.slice(i,l),n);r.push(u),i=l}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=Object(h.a)(t,n,s,i,.5);Object(f.c)(e,l),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(d.b)(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,i.a.XY,r)},t.prototype.getType=function(){return o.a.MULTI_LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(m.b)(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c.c)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(s.a);t.a=v},function(e,t,n){"use strict";var r=n(10),i=n(66),o=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Object(i.c)(e.scale),this.displacement_=e.displacement}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getAnchor=function(){return Object(r.b)()},e.prototype.getImage=function(e){return Object(r.b)()},e.prototype.getHitDetectionImage=function(){return Object(r.b)()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return Object(r.b)()},e.prototype.getImageSize=function(){return Object(r.b)()},e.prototype.getOrigin=function(){return Object(r.b)()},e.prototype.getSize=function(){return Object(r.b)()},e.prototype.setDisplacement=function(e){this.displacement_=e},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Object(i.c)(e)},e.prototype.listenImageChange=function(e){Object(r.b)()},e.prototype.load=function(){Object(r.b)()},e.prototype.unlistenImageChange=function(e){Object(r.b)()},e}();t.a=o},function(e,t,n){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+d)),Math.min(o,Math.floor(r+(s-l)*c/s+d)),a)}var f=n[r],p=i,h=o;for(t(n,i,r),a(n[o],f)>0&&t(n,i,o);p<h;){for(t(n,p,h),p++,h--;a(n[p],f)<0;)p++;for(;a(n[h],f)>0;)h--}0===a(n[i],f)?t(n,i,h):t(n,++h,o),h<=r&&(i=h+1),r<=h&&(o=h-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=h(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function h(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;p(e,s)&&(t.leaf?n.push(a):f(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||f(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=h([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=i(e,a.children,t);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=h(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=h([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));m(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var d=Math.min(c+u-1,n);m(e,c,d,l,this.compareMinY);for(var f=c;f<=d;f+=l){var p=Math.min(f+l-1,d);i.children.push(this._build(e,f,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],u=c(l),d=(f=e,p=l,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u);d<o?(o=d,i=u<i?u:i,a=l):d===o&&u<i&&(i=u,a=l)}t=a||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=h(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=h([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,u,d,f=1/0,p=1/0,h=t;h<=n-t;h++){var m=a(e,0,h,this.toBBox),g=a(e,h,n,this.toBBox),v=(i=m,o=g,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,d-l)),y=c(m)+c(g);v<f?(f=v,r=h,p=y<p?y:p):v===f&&y<p&&(p=y,r=h)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),u=d(o)+d(l),c=t;c<n-t;c++){var f=e.children[c];s(o,e.leaf?i(f):f),u+=d(o)}for(var p=n-t-1;p>=t;p--){var h=e.children[p];s(l,e.leaf?i(h):h),u+=d(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},function(e,t,n){"use strict";var r,i=n(64),o=n(106),a=n(10),s=n(14),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this)||this;n.projection=Object(s.h)(t.projection),n.attributions_=c(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:o.a.READY,n.wrapX_=void 0!==t.wrapX&&t.wrapX,n.interpolate_=!!t.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise((function(e,t){r.viewResolver=e,r.viewRejector=t})),n}return l(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection},t.prototype.getResolutions=function(){return Object(a.b)()},t.prototype.getView=function(){return this.viewPromise_},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getInterpolate=function(){return this.interpolate_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=c(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(i.a);function c(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}t.a=u},function(e,t,n){"use strict";var r,i=n(366),o=n(24),a=n(42),s=n(371),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return l(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(e){this.image_=e,this.state=o.a.LOADED,this.unlistenImage_(),this.changed()},t.prototype.handleImageError_=function(){var e;this.state=o.a.ERROR,this.unlistenImage_(),this.image_=((e=Object(a.a)(1,1)).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=o.a.LOADED:this.state=o.a.EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==o.a.ERROR&&(this.state=o.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o.a.IDLE&&(this.state=o.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(s.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(i.a);t.a=u},function(e,t,n){"use strict";var r,i=n(112),o=n(20),a=n(24),s=n(10),l=n(86),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(t,e),t.prototype.changed=function(){this.dispatchEvent(o.a.CHANGE)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==a.a.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==a.a.LOADED){e.interimTile=null;break}e.getState()==a.a.LOADING?t=e:e.getState()==a.a.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(this.state!==a.a.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){Object(s.b)()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Object(l.a)(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(i.a);t.a=c},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(56))},function(e,t,n){"use strict";var r,i=n(119),o=n(20),a=n(366),s=n(24),l=n(3),u=n(14),c=n(13),d=function(){function e(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;var a={},s=Object(u.j)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(l.D)(r)==Object(l.D)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(l.D)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(l.D)(this.targetProj_.getExtent()):null;var d=Object(l.B)(n),f=Object(l.C)(n),p=Object(l.v)(n),h=Object(l.u)(n),m=this.transformInv_(d),g=this.transformInv_(f),v=this.transformInv_(p),y=this.transformInv_(h),b=10+(o?Math.max(0,Math.ceil(Object(c.f)(Object(l.t)(n)/(o*o*256*256)))):0);if(this.addQuad_(d,f,p,h,m,g,v,y,b),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(e,t,n){_=Math.min(_,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-_>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-_>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-_>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-_>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}a={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,r,i,o,a,s,u){var d=Object(l.b)([i,o,a,s]),f=this.sourceWorldWidth_?Object(l.D)(d)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,h=this.sourceProj_.canWrapX()&&f>.5&&f<1,m=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(l.b)([e,t,n,r]);m=Object(l.D)(g)/this.targetWorldWidth_>.25||m}!h&&this.sourceProj_.isGlobal()&&f&&(m=f>.25||m)}if(!(!m&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3]))||Object(l.E)(d,this.maxSourceExtent_)){var v=0;if(!(m||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])))if(u>0)m=!0;else if(1!=(v=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1))&&2!=v&&4!=v&&8!=v)return;if(u>0){if(!m){var y=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(y),_=void 0;if(h)_=(Object(c.g)(i[0],p)+Object(c.g)(a[0],p))/2-Object(c.g)(b[0],p);else _=(i[0]+a[0])/2-b[0];var w=(i[1]+a[1])/2-b[1];m=_*_+w*w>this.errorThresholdSquared_}if(m){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var x=[(t[0]+n[0])/2,(t[1]+n[1])/2],k=this.transformInv_(x),E=[(r[0]+e[0])/2,(r[1]+e[1])/2],S=this.transformInv_(E);this.addQuad_(e,t,x,E,i,o,k,S,u-1),this.addQuad_(E,x,n,r,S,k,a,s,u-1)}else{var O=[(e[0]+t[0])/2,(e[1]+t[1])/2],C=this.transformInv_(O),T=[(n[0]+r[0])/2,(n[1]+r[1])/2],A=this.transformInv_(T);this.addQuad_(e,O,T,r,i,C,A,s,u-1),this.addQuad_(O,t,n,T,C,o,a,A,u-1)}return}}if(h){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&v)&&this.addTriangle_(e,n,r,i,a,s),0==(14&v)&&this.addTriangle_(e,n,t,i,a,o),v&&(0==(13&v)&&this.addTriangle_(t,r,e,o,s,i),0==(7&v)&&this.addTriangle_(t,r,n,o,s,a))}},e.prototype.calculateSourceExtent=function(){var e=Object(l.j)();return this.triangles_.forEach((function(t,n,r){var i=t.source;Object(l.q)(e,i[0]),Object(l.q)(e,i[1]),Object(l.q)(e,i[2])})),e},e.prototype.getTriangles=function(){return this.triangles_},e}(),f=n(235),p=n(28),h=n(42);function m(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function g(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function v(e,t,n,r){var i=Object(u.p)(n,t,e),o=Object(u.i)(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var s=e.getMetersPerUnit();void 0!==s&&(o/=s);var c=e.getExtent();if(!c||Object(l.f)(c,i)){var d=Object(u.i)(e,o,i)/o;isFinite(d)&&d>0&&(o/=d)}return o}function y(e,t,n,i,o,a,s,u,d,v,y,b){var _=Object(h.a)(Math.round(n*e),Math.round(n*t));if(b||Object(p.a)(_,f.a),0===d.length)return _.canvas;function w(e){return Math.round(e*n)/n}_.scale(n,n),_.globalCompositeOperation="lighter";var x=Object(l.j)();d.forEach((function(e,t,n){Object(l.p)(x,e.extent)}));var k=Object(l.D)(x),E=Object(l.z)(x),S=Object(h.a)(Math.round(n*k/i),Math.round(n*E/i));b||Object(p.a)(S,f.a);var O=n/i;d.forEach((function(e,t,n){var r=e.extent[0]-x[0],i=-(e.extent[3]-x[3]),o=Object(l.D)(e.extent),a=Object(l.z)(e.extent);e.image.width>0&&e.image.height>0&&S.drawImage(e.image,v,v,e.image.width-2*v,e.image.height-2*v,r*O,i*O,o*O,a*O)}));var C=Object(l.B)(s);return u.getTriangles().forEach((function(e,t,o){var s=e.source,l=e.target,u=s[0][0],d=s[0][1],f=s[1][0],p=s[1][1],h=s[2][0],v=s[2][1],y=w((l[0][0]-C[0])/a),k=w(-(l[0][1]-C[1])/a),E=w((l[1][0]-C[0])/a),O=w(-(l[1][1]-C[1])/a),T=w((l[2][0]-C[0])/a),A=w(-(l[2][1]-C[1])/a),P=u,R=d;u=0,d=0;var j=[[f-=P,p-=R,0,0,E-y],[h-=P,v-=R,0,0,T-y],[0,0,f,p,O-k],[0,0,h,v,A-k]],I=Object(c.h)(j);if(I){if(_.save(),_.beginPath(),function(){if(void 0===r){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",m(e,4,5,4,0),m(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;r=g(t,0)||g(t,4)||g(t,8)}return r}()||!b){_.moveTo(E,O);for(var M=y-E,L=k-O,D=0;D<4;D++)_.lineTo(E+w((D+1)*M/4),O+w(D*L/3)),3!=D&&_.lineTo(E+w((D+1)*M/4),O+w((D+1)*L/3));_.lineTo(T,A)}else _.moveTo(E,O),_.lineTo(y,k),_.lineTo(T,A);_.clip(),_.transform(I[0],I[2],I[1],I[3],y,k),_.translate(x[0]-P,x[3]-R),_.scale(i/n,-i/n),_.drawImage(S.canvas,0,0),_.restore()}})),y&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,u.getTriangles().forEach((function(e,t,n){var r=e.target,i=(r[0][0]-C[0])/a,o=-(r[0][1]-C[1])/a,s=(r[1][0]-C[0])/a,l=-(r[1][1]-C[1])/a,u=(r[2][0]-C[0])/a,c=-(r[2][1]-C[1])/a;_.beginPath(),_.moveTo(s,l),_.lineTo(i,o),_.lineTo(u,c),_.closePath(),_.stroke()})),_.restore()),_.canvas}var b,_=n(19),w=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(e){function t(t,n,r,o,a,u,f,p,h,m,g,y){var b=e.call(this,a,s.a.IDLE,{interpolate:!!y})||this;b.renderEdges_=void 0!==g&&g,b.pixelRatio_=f,b.gutter_=p,b.canvas_=null,b.sourceTileGrid_=n,b.targetTileGrid_=o,b.wrappedTileCoord_=u||a,b.sourceTiles_=[],b.sourcesListenerKeys_=null,b.sourceZ_=0;var _=o.getTileCoordExtent(b.wrappedTileCoord_),w=b.targetTileGrid_.getExtent(),x=b.sourceTileGrid_.getExtent(),k=w?Object(l.A)(_,w):_;if(0===Object(l.t)(k))return b.state=s.a.EMPTY,b;var E=t.getExtent();E&&(x=x?Object(l.A)(x,E):E);var S=o.getResolution(b.wrappedTileCoord_[0]),O=function(e,t,n,r){var i=Object(l.w)(n),o=v(e,t,i,r);return(!isFinite(o)||o<=0)&&Object(l.s)(n,(function(n){return o=v(e,t,n,r),isFinite(o)&&o>0})),o}(t,r,k,S);if(!isFinite(O)||O<=0)return b.state=s.a.EMPTY,b;var C=void 0!==m?m:i.b;if(b.triangulation_=new d(t,r,k,x,O*C,S),0===b.triangulation_.getTriangles().length)return b.state=s.a.EMPTY,b;b.sourceZ_=n.getZForResolution(O);var T=b.triangulation_.calculateSourceExtent();if(x&&(t.canWrapX()?(T[1]=Object(c.b)(T[1],x[1],x[3]),T[3]=Object(c.b)(T[3],x[1],x[3])):T=Object(l.A)(T,x)),Object(l.t)(T)){for(var A=n.getTileRangeForExtentAndZ(T,b.sourceZ_),P=A.minX;P<=A.maxX;P++)for(var R=A.minY;R<=A.maxY;R++){var j=h(b.sourceZ_,P,R,f);j&&b.sourceTiles_.push(j)}0===b.sourceTiles_.length&&(b.state=s.a.EMPTY)}else b.state=s.a.EMPTY;return b}return w(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==s.a.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=s.a.ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"==typeof n?n:n[0],i="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=y(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.a.LOADED}this.changed()},t.prototype.load=function(){if(this.state==s.a.IDLE){this.state=s.a.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var i=t.getState();if(i==s.a.IDLE||i==s.a.LOADING){e++;var a=Object(_.a)(t,o.a.CHANGE,(function(n){var r=t.getState();r!=s.a.LOADED&&r!=s.a.ERROR&&r!=s.a.EMPTY||(Object(_.c)(a),0===--e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){e.getState()==s.a.IDLE&&e.load()}))}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(_.c),this.sourcesListenerKeys_=null},t}(a.a);t.a=x},function(e,t,n){"use strict";var r=n(48),i=n(8),o=n(230),a=n(93),s=n(73),l=n(92),u=n(3),c=n(85),d=n(32),f=n(356),p=n(59),h=n(178),m=n(184),g=n(229);var v,y=n(116),b=n(113),_=(v=function(e,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],u=0,c=a.length;u<c;++u){var f=a[u];0===u&&(o=f.getLayout());for(var p=s.length,h=f.getEnds(),m=0,g=h.length;m<g;++m)h[m]+=p;Object(d.c)(s,f.getFlatCoordinates()),l.push(h)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return _(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(d.c)(this.flatCoordinates,e.getFlatCoordinates());for(var r=0,i=(t=e.getEnds().slice()).length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();var i=new t(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(u.e)(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(l.f)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(l.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(y.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return Object(g.c)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(m.d)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,Object(p.c)(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=function(e,t,n,r){for(var i=[],o=Object(u.j)(),a=0,s=n.length;a<s;++a){var l=n[a];o=Object(u.n)(e,t,l[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=l[l.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(f.b)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new o.a(this.getFlatInteriorPoints().slice(),r.a.XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(m.b)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(m.d)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],i=[];return n.length=Object(b.d)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,i),new t(n,r.a.XY,i)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,s=r.length;o<s;++o)r[o]-=t;return new a.a(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,s=n.length;o<s;++o){var l=n[o].slice(),u=l[l.length-1];if(0!==i)for(var c=0,d=l.length;c<d;++c)l[c]-=i;var f=new a.a(t.slice(i,u),e,l);r.push(f),i=u}return r},t.prototype.getType=function(){return i.a.MULTI_POLYGON},t.prototype.intersectsExtent=function(e){return Object(h.d)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c.d)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(s.a);t.a=w},function(e,t,n){"use strict";var r,i=n(20),o=n(41),a=n(354),s=n(106),l=n(10),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return u(t,e),t.prototype.getFeatures=function(e){return Object(l.b)()},t.prototype.getData=function(e){return null},t.prototype.prepareFrame=function(e){return Object(l.b)()},t.prototype.renderFrame=function(e,t){return Object(l.b)()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return null},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){e.target.getState()===o.a.LOADED&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return t!=o.a.LOADED&&t!=o.a.ERROR&&e.addEventListener(i.a.CHANGE,this.boundHandleImageChange_),t==o.a.IDLE&&(e.load(),t=e.getState()),t==o.a.LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e.getVisible()&&e.getSourceState()==s.a.READY&&e.changed()},t.prototype.disposeInternal=function(){delete this.layer_,e.prototype.disposeInternal.call(this)},t}(a.a),d=n(359),f=n(115),p=n(29),h=n(107),m=n(3),g=n(42),v=n(32),y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=null;var _=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(p.c)(),n.pixelTransform=Object(p.c)(),n.inversePixelTransform=Object(p.c)(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return y(t,e),t.prototype.getImageData=function(e,t,n){var r,i;b||((r=document.createElement("canvas")).width=1,r.height=1,b=r.getContext("2d")),b.clearRect(0,0,1,1);try{b.drawImage(e,t,n,1,1,0,0,1,1),i=b.getImageData(0,0,1,1).data}catch(e){return null}return i},t.prototype.getBackground=function(e){var t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0},t.prototype.useContainer=function(e,t,n,r){var i,o,a=this.getLayer().getClassName();e&&e.className===a&&""===e.style.opacity&&1===n&&(!r||e.style.backgroundColor&&Object(v.b)(Object(h.a)(e.style.backgroundColor),Object(h.a)(r)))&&((l=e.firstElementChild)instanceof HTMLCanvasElement&&(o=l.getContext("2d")));if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(i=document.createElement("div")).className=a;var s=i.style;s.position="absolute",s.width="100%",s.height="100%",r&&(s.backgroundColor=r);var l=(o=Object(g.a)()).canvas;i.appendChild(l),(s=l.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=i,this.context=o}},t.prototype.clipUnrotated=function(e,t,n){var r=Object(m.B)(n),i=Object(m.C)(n),o=Object(m.v)(n),a=Object(m.u)(n);Object(p.a)(t.coordinateToPixelTransform,r),Object(p.a)(t.coordinateToPixelTransform,i),Object(p.a)(t.coordinateToPixelTransform,o),Object(p.a)(t.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Object(p.a)(s,r),Object(p.a)(s,i),Object(p.a)(s,o),Object(p.a)(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new d.a(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.frameState=t,this.dispatchRenderEvent_(f.a.PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(f.a.POSTRENDER,e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var s=i/2,l=o/2,u=r/t,c=-u,d=-e[0]+a,f=-e[1];return Object(p.b)(this.tempTransform,s,l,u,c,-n,d,f)},t.prototype.getDataAtPixel=function(e,t,n){var r=Object(p.a)(this.inversePixelTransform,e.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var a=Object(p.a)(t.pixelToCoordinateTransform,e.slice());if(!Object(m.f)(o,a))return null}var s,l=Math.round(r[0]),u=Math.round(r[1]),c=this.pixelContext_;if(!c){var d=document.createElement("canvas");d.width=1,d.height=1,c=d.getContext("2d"),this.pixelContext_=c}c.clearRect(0,0,1,1);try{c.drawImage(i.canvas,l,u,1,1,0,0,1,1),s=c.getImageData(0,0,1,1).data}catch(e){return"SecurityError"===e.name?(this.pixelContext_=null,new Uint8Array):s}return 0===s[3]?null:s},t.prototype.disposeInternal=function(){delete this.frameState,e.prototype.disposeInternal.call(this)},t}(c);t.a=_},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r,i=n(20),o=n(112),a=n(10),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return s(t,e),t.prototype.changed=function(){this.dispatchEvent(i.a.CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return Object(a.b)()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){Object(a.b)()},t}(o.a),u=n(41),c=n(58),d=n(3),f=n(19),p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function h(e,t,n){var r=e,o=!0,a=!1,s=!1,l=[Object(f.b)(r,i.a.LOAD,(function(){s=!0,a||t()}))];return r.src&&c.c?(a=!0,r.decode().then((function(){o&&t()})).catch((function(e){o&&(s?t():n())}))):l.push(Object(f.b)(r,i.a.ERROR,n)),function(){o=!1,l.forEach(f.c)}}!function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,u.a.IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=u.a.IDLE,s.imageLoadFunction_=a,s}p(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=u.a.ERROR,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(d.z)(this.extent)/this.image_.height),this.state=u.a.LOADED,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=u.a.IDLE&&this.state!=u.a.ERROR||(this.state=u.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e,this.resolution=Object(d.z)(this.extent)/this.image_.height},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(l)},function(e,t,n){"use strict";(function(r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1466)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(97))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),i={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=1;s<20;s++)a["f"+s]=111+s;function l(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return u(e,t)})),i=function(e){return r.some((function(t){return c(t,e)}))};return null==n?i:i(n)}function u(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),a=o.length;for(var s in i)r[i[s]]=!1;var l=!0,u=!1,c=void 0;try{for(var p,h=o[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var m=p.value,g=m.endsWith("?");g&&(m=m.slice(0,-1));var v=f(m),y=i[v];1!==a&&y||(n?r.key=v:r.which=d(m)),y&&(r[y]=!g||null)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}return r}function c(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&((null!=(i="key"===n?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r))return!1}return!0}function d(e){return e=f(e),a[e]||e.toUpperCase().charCodeAt(0)}function f(e){return e=e.toLowerCase(),e=o[e]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=u,t.compareHotkey=c,t.toKeyCode=d,t.toKeyName=f},,function(e,t,n){"use strict";e.exports=n(798)},function(e,t,n){var r=n(497),i=n(210);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(286),i=n(826),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(189)(n(88),"Map");e.exports=r},function(e,t,n){var r=n(839),i=n(846),o=n(848),a=n(849),s=n(850);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(851),i=n(83);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(504),i=n(505),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t,n){var r=n(49),i=n(213),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";var r=n(882);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(888);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n(0))&&r.__esModule?r:{default:r}).default.createContext();t.default=i},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(536);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(236),i=n(239),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(376),i=n(937)(r);e.exports=i},function(e,t,n){var r=n(941),i=n(540)(r);e.exports=i},function(e,t,n){var r=n(394),i=n(943),o=n(944);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(292),i=n(301),o=n(397),a=n(293),s=n(947),l=n(382);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,p=[],h=p;if(n)f=!1,c=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var g=e[u],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else c(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(499)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_ERROR=void 0;t.API_ERROR="API_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e),r(this,"message",void 0),r(this,"status",void 0),r(this,"api",void 0),r(this,"meta",void 0),this.message=e,this.status=t,this.api=n,this.name="API_ERROR",this.meta=i}}t.default=i},function(e,t,n){var r=n(303),i=n(401);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(551),i=n(547),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(303),i=n(401);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=s(n(554)),o=s(n(146)),a=s(n(307));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(t&&t.signal||"undefined"==typeof window||!window.AbortController)return fetch(e,t);const n=new AbortController,r=setTimeout(()=>n.abort(),6e4);return fetch(e,u(u({},t),{},{signal:n.signal})).then(e=>(clearTimeout(r),e)).catch(e=>{if("AbortError"===e.name||"DOMException"===e.name)throw new Error("Request timed out after 60 seconds");throw e})}function f(e){const[t,n]=e.split("?");return(0,r.Map)(u({url:t},n?{params:(i=n,(0,r.List)(i.split("&")).map(e=>(0,r.List)(e.split("=")).map(decodeURIComponent)).update(r.Map))}:{}));var i}function p(e){return`${e.get("url")}${e.get("params")?"?"+(t=e.get("params"),t.entrySeq().map(e=>{let[t,n]=e;return`${encodeURIComponent(t)}=${encodeURIComponent(n)}`}).join("&")):""}`;var t}function h(e){return(0,a.default)(e)?f(e):e?(0,r.fromJS)(e):(0,r.Map)()}const m=(g=e=>d(...function(e){return[p(e),e.remove("url").remove("params").toJS()]}(e)),e=>g(h(e)));var g;const v=(0,o.default)([function(e){return(t,n)=>e(t,h(n))},i.default]);function y(e){return v((t,n)=>n.setIn(e,t))}function b(e){return v((t,n)=>n.updateIn(e,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Map)();return e.merge(t)})))}const _=y(["method"]),w=y(["body"]),x=y(["cache"])("no-cache"),k=b(["params"]),E=b(["headers"]),S=new RegExp("^(?:[a-z]+:)?//","i");var O={toURL:p,fromURL:f,fromFetchArguments:function(e,t){return f(e).merge((t?(0,r.fromJS)(t):(0,r.Map)()).remove("url").remove("params"))},performRequest:m,withMethod:_,withBody:w,withHeaders:E,withParams:k,withRoot:v((e,t)=>t.update("url",t=>S.test(t)?t:e&&t&&"/"!==t[0]&&"/"!==e[e.length-1]?`${e}/${t}`:`${e}${t}`)),withNoCache:x,fetchWithTimeout:d};t.default=O},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(308)("map",n(167));r.placeholder=n(248),e.exports=r},function(e,t,n){var r=n(503),i=n(565),o=n(249);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(501);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.frontmatterFormats=t.formatExtensions=t.extensionFormatters=void 0,t.resolveFormat=function(e,t){const n=e.get("frontmatter_delimiter"),o=(s=n,i.List.isList(s)?n.toArray():n),a=e.get("format");var s;if(a)return d(a,o);const l=t&&t.path;if(l){const e=l.split(".").pop();if(e)return(0,r.default)(c,e)}const u=e.get("extension");if(u)return(0,r.default)(c,u);return d("frontmatter",o)};var r=u(n(103)),i=n(4),o=u(n(574)),a=u(n(577)),s=u(n(584)),l=n(1037);function u(e){return e&&e.__esModule?e:{default:e}}t.frontmatterFormats=["yaml-frontmatter","toml-frontmatter","json-frontmatter"];t.formatExtensions={yml:"yml",yaml:"yml",toml:"toml",json:"json",frontmatter:"md","json-frontmatter":"md","toml-frontmatter":"md","yaml-frontmatter":"md"};const c={yml:o.default,yaml:o.default,toml:a.default,json:s.default,md:l.FrontmatterInfer,markdown:l.FrontmatterInfer,html:l.FrontmatterInfer};function d(e,t){return{yml:o.default,yaml:o.default,toml:a.default,json:s.default,frontmatter:l.FrontmatterInfer,"json-frontmatter":(0,l.frontmatterJSON)(t),"toml-frontmatter":(0,l.frontmatterTOML)(t),"yaml-frontmatter":(0,l.frontmatterYAML)(t)}[e]}t.extensionFormatters=c},function(e,t,n){e.exports=n(1933).YAML},function(module,exports,__webpack_require__){"use strict";(function(global){module.exports=makeParserClass(__webpack_require__(1016)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(1017),createDateTimeFloat=__webpack_require__(1018),createDate=__webpack_require__(1019),createTime=__webpack_require__(1020),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}}).call(this,__webpack_require__(56))},function(e,t,n){"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},function(e,t,n){"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length;let o=" ";for(;o.length<i;)o+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let a=String(t+1);if(a.length<i&&(a=" "+a),e.line===t){n+=a+"> "+r[t]+"\n",n+=o+" ";for(let t=0;t<e.col;++t)n+=" ";n+="^\n"}else n+=a+": "+r[t]+"\n"}}return e.message=n+"\n",e}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(579)).Stream=t,t.Readable=t,t.Writable=n(417),t.Duplex=n(198),t.Transform=n(583),t.PassThrough=n(1030)},function(e,t,n){var r=n(196),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(311);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=v;var u=Object.create(n(250));u.inherits=n(197);var c={deprecate:n(1028)},d=n(580),f=n(416).Buffer,p=i.Uint8Array||function(){};var h,m=n(581);function g(){}function v(e,t){s=s||n(198),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(198),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=x(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof v)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof p);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(97),n(578).setImmediate,n(56))},function(e,t,n){"use strict";var r=n(219);e.exports=new r({explicit:[n(1047),n(1048),n(1049)]})},function(e,t,n){"use strict";(function(e){const r=n(1064),i=n(312);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=function(e){return"buffer"===i(e)},t.isObject=function(e){return"object"===i(e)},t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(196).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectLocale=function(e){return e.locale||"en"},t.selectUseWorkflow=function(e){return e.publish_mode===o.EDITORIAL_WORKFLOW};var r=n(144),i=n(220),o=n(124);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(0,r.produce)((e,t)=>{switch(t.type){case i.CONFIG_REQUEST:e.isFetching=!0;break;case i.CONFIG_SUCCESS:return s(s({},t.payload),{},{isFetching:!1,error:void 0});case i.CONFIG_FAILURE:e.isFetching=!1,e.error=t.payload.toString()}},{isFetching:!0});t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(274);r.code='require("ajv/dist/runtime/equal").default',t.default=r},function(e,t,n){var r=n(133),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,t.SortDirection=r,function(e){e.Ascending="Ascending",e.Descending="Descending",e.None="None"}(r||(t.SortDirection=r={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntegrationProvider=void 0,t.resolveIntegrations=s;var r=n(4),i=a(n(1167)),o=a(n(1169));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){let n=(0,r.Map)({});return e.get("providers").forEach((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new i.default(e));break;case"assetStore":n=n.set("assetStore",new o.default(e,t))}}),n}const l=function(){let e=null;return(t,n,r)=>(e||(e=s(t,n)),e.get(r))}();t.getIntegrationProvider=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o={collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:(0,i.default)(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}};return o};var r,i=(r=n(1168))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCollectionEntriesCursor=function(e,t){return new i.Cursor(e.getIn(["cursorsByType","collectionEntries",t]))};var r=n(4),i=n(40),o=n(149);var a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.fromJS)({cursorsByType:{collectionEntries:{}}}),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.ENTRIES_SUCCESS:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],i.Cursor.create(t.payload.cursor).store);case o.FILTER_ENTRIES_SUCCESS:case o.GROUP_ENTRIES_SUCCESS:case o.SORT_ENTRIES_SUCCESS:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={PRESENCE:"PRESENCE",PATTERN:"PATTERN",RANGE:"RANGE",CUSTOM:"CUSTOM"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectCustomPath=function(e,t){if(!(0,u.selectHasMetaPath)(e))return;const n=t.getIn(["entry","meta"]),i=n&&n.get("path"),o=(0,r.default)(e.toJS(),["meta","path","index_file"]),s=(0,u.selectFolderEntryExtension)(e);return i&&(0,a.join)(e.get("folder"),i,`${o}.${s}`)};var r=d(n(103)),i=n(4),o=d(n(169)),a=n(98),s=n(149),l=n(259),u=n(71),c=n(199);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,i.Map)({entry:(0,i.Map)(),fieldsMetaData:(0,i.Map)(),fieldsErrors:(0,i.Map)(),hasChanged:!1,key:""});var p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.Map)(),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.DRAFT_CREATE_FROM_ENTRY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!1),e.set("key",(0,o.default)())});case s.DRAFT_CREATE_EMPTY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!1),e.set("key",(0,o.default)())});case s.DRAFT_CREATE_FROM_LOCAL_BACKUP:return e.withMutations(e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!0),e.set("key",(0,o.default)())});case s.DRAFT_CREATE_DUPLICATE_FROM_ENTRY:return e.withMutations(e=>{e.set("entry",(0,i.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,i.List)()),e.set("fieldsMetaData",(0,i.Map)()),e.set("fieldsErrors",(0,i.Map)()),e.set("hasChanged",!0)});case s.DRAFT_DISCARD:return f;case s.DRAFT_LOCAL_BACKUP_RETRIEVED:{const{entry:n}=t.payload,r=new i.Map({entry:(0,i.fromJS)(n)});return e.set("localBackup",r)}case s.DRAFT_CHANGE_FIELD:return e.withMutations(e=>{const{field:n,value:r,metadata:o,entries:a,i18n:s}=t.payload,l=n.get("name"),u=n.get("meta"),d=s&&(0,c.getDataPath)(s.currentLocale,s.defaultLocale)||["data"];u?e.setIn(["entry","meta",l],r):(e.setIn(["entry",...d,l],r),s&&(e=(0,c.duplicateI18nFields)(e,n,s.locales,s.defaultLocale))),e.mergeDeepIn(["fieldsMetaData"],(0,i.fromJS)(o));const f=e.getIn(["entry",...d]),p=e.getIn(["entry","meta"]);e.set("hasChanged",!a.some(e=>f.equals(e.get(...d)))||!a.some(e=>p.equals(e.get("meta"))))});case s.DRAFT_VALIDATION_ERRORS:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case s.DRAFT_CLEAR_ERRORS:return e.set("fieldsErrors",(0,i.Map)());case s.ENTRY_PERSIST_REQUEST:case l.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entry","isPersisting"],!0);case s.ENTRY_PERSIST_FAILURE:case l.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.deleteIn(["entry","isPersisting"]);case l.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entry","isUpdatingStatus"],!0);case l.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:case l.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.deleteIn(["entry","isUpdatingStatus"]);case l.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entry","isPublishing"],!0);case l.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case l.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:return e.deleteIn(["entry","isPublishing"]);case s.ENTRY_PERSIST_SUCCESS:case l.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)});case s.ENTRY_DELETE_SUCCESS:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)});case s.ADD_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id).insert(0,(0,i.fromJS)(t.payload))),e.set("hasChanged",!0)});case s.REMOVE_DRAFT_ENTRY_MEDIA_FILE:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id)),e.set("hasChanged",!0)});default:return e}};t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_STYLE_LIST=t.VIEW_STYLE_GRID=void 0;t.VIEW_STYLE_LIST="VIEW_STYLE_LIST";t.VIEW_STYLE_GRID="VIEW_STYLE_GRID"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getIntegrations=u,t.selectIntegration=function(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)};var r=n(4),i=n(220);const o=["hooks","collections","provider"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){const t=(e.integrations||[]).reduce((t,n)=>{const{hooks:r,collections:i,provider:u}=n,c=l(n,o);if(t.providers[u]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c),!i)return r.forEach(e=>{t.hooks[e]=u}),t;return("*"===i?e.collections.map(e=>e.name):i).forEach(e=>{r.forEach(n=>{t.hooks[e]?t.hooks[e][n]=u:t.hooks[e]={[n]:u}})}),t},{providers:{},hooks:{}});return(0,r.fromJS)(t)}const c=(0,r.fromJS)({providers:{},hooks:{}});var d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.CONFIG_SUCCESS:return u(t.payload);default:return e}};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(1198);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewEntry=function(e){r.history.push((0,i.getNewEntryUrl)(e))},t.searchCollections=function(e,t){t?r.history.push(`/collections/${t}/search/${e}`):r.history.push("/search/"+e)},t.showCollection=function(e){r.history.push((0,i.getCollectionUrl)(e))};var r=n(221),i=n(170)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlButton=function(e){let{active:t,title:n}=e;return(0,i.jsx)(s,{css:(0,i.css)("color:",t?o.colors.active:void 0,";;label:ControlButton;")},n)};var r=a(n(21)),i=(a(n(0)),n(9)),o=n(17);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)(o.StyledDropdownButton,{target:"e1jezdn30",label:"Button"})(o.buttons.button,";",o.buttons.medium,";",o.buttons.grayText,";font-size:14px;&:after{top:11px;}")},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=r&&s(r)?r:[]):a=r&&l(r)?r:{},u(d,{name:n,newValue:e(h,a,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},function(e,t,n){"use strict";var r=n(151);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},function(e,t,n){"use strict";var r=n(1272),i=n(174)(r);e.exports=i},function(e,t,n){"use strict";var r=n(174)(/\s/);e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return e<32||127===e}},function(e,t,n){"use strict";var r=n(152),i=n(437),o=n(151),a=n(435),s=n(325),l=n(201),u=n(639),c=n(640),d=n(642),f=n(641),p={name:"labelEnd",tokenize:function(e,t,n){var r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?u(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(n){return 40===n?e.attempt(h,t,i?t:u)(n):91===n?e.attempt(m,t,i?e.attempt(g,t,u):u)(n):i?t(n):u(n)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,a,u,c,d,f,p=e.length,h=0;for(;p--;)if(u=e[p][1],c){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[p][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(d){if("enter"===e[p][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(c=p,"labelLink"!==u.type)){h=2;break}}else"labelEnd"===u.type&&(d=p);return n={type:"labelLink"===e[c][1].type?"link":"image",start:l(e[c][1].start),end:l(e[e.length-1][1].end)},r={type:"label",start:l(e[c][1].start),end:l(e[d][1].end)},a={type:"labelText",start:l(e[c+h+2][1].end),end:l(e[d-2][1].start)},f=i(f=[["enter",n,t],["enter",r,t]],e.slice(c+1,c+h+3)),f=i(f,[["enter",a,t]]),f=i(f,s(t.parser.constructs.insideSpan.null,e.slice(c+h+4,d-3),t)),f=i(f,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),f=i(f,e.slice(d+1)),f=i(f,[["exit",n,t]]),o(e,c,e.length,f),e},resolveAll:function(e){var t,n=-1;for(;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,i)};function i(t){return 41===t?s(t):u(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?f(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return c.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},g={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=p},function(e,t,n){"use strict";e.exports=s;var r=n(1303),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(r)},t.stringify=function(e){return e.join(" ").trim()};var r=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";t.parse=function(e){var t,n=[],r=String(e||""),i=r.indexOf(","),o=0,a=!1;for(;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(i+","+r).trim()}},function(e,t,n){var r=n(191),i=n(208),o=n(163);e.exports=function(e,t,n){var a=-1,s=(t=r(t,e)).length;for(s||(s=1,e=void 0);++a<s;){var l=null==e?void 0:e[o(t[a])];void 0===l&&(a=s,l=n),e=i(l)?l.call(e):l}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"VERSION",(function(){return i})),n.d(t,"atob",(function(){return R})),n.d(t,"atobPolyfill",(function(){return P})),n.d(t,"btoa",(function(){return y})),n.d(t,"btoaPolyfill",(function(){return v})),n.d(t,"fromBase64",(function(){return D})),n.d(t,"toBase64",(function(){return S})),n.d(t,"utob",(function(){return k})),n.d(t,"encode",(function(){return S})),n.d(t,"encodeURI",(function(){return O})),n.d(t,"encodeURL",(function(){return O})),n.d(t,"btou",(function(){return A})),n.d(t,"decode",(function(){return D})),n.d(t,"isValid",(function(){return N})),n.d(t,"fromUint8Array",(function(){return _})),n.d(t,"toUint8Array",(function(){return I})),n.d(t,"extendString",(function(){return B})),n.d(t,"extendUint8Array",(function(){return z})),n.d(t,"extendBuiltins",(function(){return U})),n.d(t,"Base64",(function(){return q}));const r="3.7.2",i=r,o="function"==typeof atob,a="function"==typeof btoa,s="function"==typeof Buffer,l="function"==typeof TextDecoder?new TextDecoder:void 0,u="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),d=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(c),f=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String),h="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),m=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),g=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),v=e=>{let t,n,r,i,o="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},y=a?e=>btoa(e):s?e=>Buffer.from(e,"binary").toString("base64"):v,b=s?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(p.apply(null,e.subarray(n,n+4096)));return y(t.join(""))},_=(e,t=!1)=>t?m(b(e)):b(e),w=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?p(192|t>>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,k=e=>e.replace(x,w),E=s?e=>Buffer.from(e,"utf8").toString("base64"):u?e=>b(u.encode(e)):e=>y(k(e)),S=(e,t=!1)=>t?m(E(e)):E(e),O=e=>S(e,!0),C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return p(55296+(t>>>10))+p(56320+(1023&t));case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},A=e=>e.replace(C,T),P=e=>{if(e=e.replace(/\s+/g,""),!f.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,i="";for(let o=0;o<e.length;)t=d[e.charAt(o++)]<<18|d[e.charAt(o++)]<<12|(n=d[e.charAt(o++)])<<6|(r=d[e.charAt(o++)]),i+=64===n?p(t>>16&255):64===r?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},R=o?e=>atob(g(e)):s?e=>Buffer.from(e,"base64").toString("binary"):P,j=s?e=>h(Buffer.from(e,"base64")):e=>h(R(e),e=>e.charCodeAt(0)),I=e=>j(L(e)),M=s?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(j(e)):e=>A(R(e)),L=e=>g(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),D=e=>M(L(e)),N=e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},F=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),B=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,F(t));e("fromBase64",(function(){return D(this)})),e("toBase64",(function(e){return S(this,e)})),e("toBase64URI",(function(){return S(this,!0)})),e("toBase64URL",(function(){return S(this,!0)})),e("toUint8Array",(function(){return I(this)}))},z=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,F(t));e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)}))},U=()=>{B(),z()},q={version:r,VERSION:i,atob:R,atobPolyfill:P,btoa:y,btoaPolyfill:v,fromBase64:D,toBase64:S,encode:S,encodeURI:O,encodeURL:O,utob:k,btou:A,decode:D,isValid:N,fromUint8Array:_,toUint8Array:I,extendString:B,extendUint8Array:z,extendBuiltins:U}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"GitHubBackend",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsBackendGithub=void 0;var r=a(n(1392)),i=a(n(449)),o=a(n(666));function a(e){return e&&e.__esModule?e:{default:e}}const s={GitHubBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendGithub=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PullRequestState=t.MOCK_PULL_REQUEST=t.API_NAME=void 0;var r=h(n(122)),i=h(n(123)),o=h(n(446)),a=h(n(173)),s=h(n(194)),l=h(n(1393)),u=n(447),c=h(n(193)),d=n(111),f=n(40),p=n(98);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.API_NAME="GitHub";var y;let b;function _(e,t){return e.labels.some(e=>(0,f.isCMSLabel)(e.name,t))}function w(e){return e.reduce((e,t)=>("removed"===t.status?e.push({sha:null,path:t.filename}):"renamed"===t.status?(e.push({sha:null,path:t.previous_filename}),e.push({sha:t.sha,path:t.filename})):e.push({sha:t.sha,path:t.filename}),e),[])}t.MOCK_PULL_REQUEST=-1,function(e){e.Error="error",e.Failure="failure",e.Pending="pending",e.Success="success"}(y||(y={})),t.PullRequestState=b,function(e){e.Open="open",e.Closed="closed",e.All="all"}(b||(t.PullRequestState=b={}));let x=!1;class k{constructor(e){v(this,"apiRoot",void 0),v(this,"token",void 0),v(this,"branch",void 0),v(this,"useOpenAuthoring",void 0),v(this,"repo",void 0),v(this,"originRepo",void 0),v(this,"repoOwner",void 0),v(this,"repoName",void 0),v(this,"originRepoOwner",void 0),v(this,"originRepoName",void 0),v(this,"repoURL",void 0),v(this,"originRepoURL",void 0),v(this,"mergeMethod",void 0),v(this,"initialWorkflowStatus",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"_userPromise",void 0),v(this,"_metadataSemaphore",void 0),v(this,"commitAuthor",void 0),v(this,"filterOpenAuthoringBranches",async e=>{try{const t=await this.getBranchPullRequest(e),{state:n,merged_at:r}=t;return-1!==t.number&&n===b.Closed&&r?(await this.deleteBranch(e),{branch:e,filter:!1}):{branch:e,filter:!0}}catch(t){return{branch:e,filter:!1}}}),this.apiRoot=e.apiRoot||"https://api.github.com",this.token=e.token||"",this.branch=e.branch||"master",this.useOpenAuthoring=e.useOpenAuthoring,this.repo=e.repo||"",this.originRepo=e.originRepo||this.repo,this.repoURL="/repos/"+this.repo,this.originRepoURL="/repos/"+this.originRepo;const[t,n]=[this.repo.split("/"),this.originRepo.split("/")];this.repoOwner=t[0],this.repoName=t[1],this.originRepoOwner=n[0],this.originRepoName=n[1],this.mergeMethod=e.squashMerges?"squash":"merge",this.cmsLabelPrefix=e.cmsLabelPrefix,this.initialWorkflowStatus=e.initialWorkflowStatus}user(){return this._userPromise||(this._userPromise=this.getUser()),this._userPromise}getUser(){return this.request("/user")}async hasWriteAccess(){try{const e=await this.request(this.repoURL);return this.repoOwner=e.owner.login,e.permissions.push}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}reset(){}requestHeaders(){const e=g({"Content-Type":"application/json; charset=utf-8"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return this.token?(e.Authorization="token "+this.token,Promise.resolve(e)):Promise.resolve(e)}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),this.apiRoot+e}parseResponse(e){const t=e.headers.get("Content-Type");if(t&&t.match(/json/))return this.parseJsonResponse(e);return e.text().then(t=>e.ok?t:Promise.reject(t))}handleRequestError(e,t){throw new f.APIError(e.message,t,"GitHub")}buildRequest(e){return e}async request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>this.parseResponse(e);t=g({cache:"no-cache"},t);const r=await this.requestHeaders(t.headers||{}),i=this.urlFor(e,t);let o=500;try{const e=f.unsentRequest.fromFetchArguments(i,g(g({},t),{},{headers:r})),a=await(0,f.requestWithBackoff)(this,e);o=a.status;return await n(a)}catch(e){return this.handleRequestError(e,o)}}nextUrlProcessor(){return e=>e}async requestAllPages(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=g({cache:"no-cache"},t);const n=await this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await(0,f.getAllResponses)(r,g(g({},t),{},{headers:n}),"next",this.nextUrlProcessor()),o=await Promise.all(i.map(e=>this.parseResponse(e)));return[].concat(...o)}generateContentKey(e,t){const n=(0,f.generateContentKey)(e,t);return this.useOpenAuthoring?`${this.repo}/${n}`:n}parseContentKey(e){return this.useOpenAuthoring?(0,f.parseContentKey)(e.slice(this.repo.length+1)):(0,f.parseContentKey)(e)}checkMetadataRef(){return this.request(this.repoURL+"/git/refs/meta/_netlify_cms").then(e=>e.object).catch(()=>this.uploadBlob({raw:"# Netlify CMS\n\nThis tree is used by the Netlify CMS to store metadata information for specific files and branches."}).then(e=>this.request(this.repoURL+"/git/trees",{method:"POST",body:JSON.stringify({tree:[{path:"README.md",mode:"100644",type:"blob",sha:e.sha}]})})).then(e=>this.commit("First Commit",e)).then(e=>this.createRef("meta","_netlify_cms",e.sha)).then(e=>e.object))}async storeMetadata(e,t){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise((n,r)=>{var i;return null===(i=this._metadataSemaphore)||void 0===i?void 0:i.take(async()=>{try{var i;const r=await this.checkMetadataRef(),o={path:e+".json",raw:JSON.stringify(t)};await this.uploadBlob(o);const a=await this.updateTree(r.sha,[o]),{sha:s}=await this.commit(`Updating “${e}” metadata`,a);await this.patchRef("meta","_netlify_cms",s),await f.localForage.setItem("gh.meta."+e,{expires:Date.now()+3e5,data:t}),null===(i=this._metadataSemaphore)||void 0===i||i.leave(),n()}catch(e){r(e)}})})}deleteMetadata(e){return this._metadataSemaphore||(this._metadataSemaphore=(0,c.default)(1)),new Promise(t=>{var n;return null===(n=this._metadataSemaphore)||void 0===n?void 0:n.take(async()=>{try{var n;const r=await this.checkMetadataRef(),i={path:e+".json",sha:null},o=await this.updateTree(r.sha,[i]),{sha:a}=await this.commit(`Deleting “${e}” metadata`,o);await this.patchRef("meta","_netlify_cms",a),null===(n=this._metadataSemaphore)||void 0===n||n.leave(),t()}catch(e){var r;null===(r=this._metadataSemaphore)||void 0===r||r.leave(),t()}})})}async retrieveMetadataOld(e){console.log("%c Checking for MetaData files","line-height: 30px;text-align: center;font-weight: bold");const t={params:{ref:"refs/meta/_netlify_cms"},headers:{Accept:"application/vnd.github.v3.raw"}};function n(t){throw"Not Found"===t.message&&console.log("%c %s does not have metadata","line-height: 30px;text-align: center;font-weight: bold",e),t}if(!this.useOpenAuthoring){return await this.request(`${this.repoURL}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n)}const[r,i]=e.split("/");return this.request(`/repos/${r}/${i}/contents/${e}.json`,t).then(e=>JSON.parse(e)).catch(n)}async getPullRequests(e,t,n){return(await this.requestAllPages(this.originRepoURL+"/pulls",{params:g(g({},e?{head:await this.getHeadReference(e)}:{}),{},{base:this.branch,state:t,per_page:100})})).filter(e=>e.head.ref.startsWith(f.CMS_BRANCH_PREFIX+"/")&&n(e))}async getOpenAuthoringPullRequest(e,t){const n=await this.getBranch(e).catch(()=>{throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}),r=t.filter(e=>e.head.sha===n.commit.sha)[0];if(r){r.labels=r.labels.filter(e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix));const e=r.state===b.Closed?{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}:{name:(0,f.statusToLabel)("pending_review",this.cmsLabelPrefix)};return r.labels.push(e),r}try{return{head:{sha:n.commit.sha},number:-1,labels:[{name:(0,f.statusToLabel)(this.initialWorkflowStatus,this.cmsLabelPrefix)}],state:b.Open}}catch(e){throw new f.EditorialWorkflowError("content is not under editorial workflow",!0)}}async getBranchPullRequest(e){if(this.useOpenAuthoring){const t=await this.getPullRequests(e,b.All,()=>!0);return this.getOpenAuthoringPullRequest(e,t)}{const t=await this.getPullRequests(e,b.Open,e=>_(e,this.cmsLabelPrefix));if(t.length<=0)throw new f.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}}async getPullRequestCommits(e){if(-1===e)return[];try{return await this.request(`${this.originRepoURL}/pulls/${e}/commits`)}catch(e){return console.log(e),[]}}async getPullRequestAuthor(e){var t;if(null!==(t=e.user)&&void 0!==t&&t.login)try{const t=await this.request("/users/"+e.user.login);return t.name||t.login}catch{return}}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=this.parseContentKey(e),r=(0,f.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),[{files:o},a]=await Promise.all([this.getDifferences(this.branch,i.head.sha),this.getPullRequestAuthor(i)]),s=await Promise.all(o.map(e=>this.diffFromFile(e))),l=i.labels.find(e=>(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix)),u=(0,f.labelToStatus)(l.name,this.cmsLabelPrefix),c=i.updated_at;return{collection:t,slug:n,status:u,diffs:s.map(e=>({path:e.path,newFile:e.newFile,id:e.sha})),updatedAt:c,pullRequestAuthor:a}}async readFile(e,t){let{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t||(t=await this.getFileSha(e,{repoURL:r,branch:n}));return await this.fetchBlobContent({sha:t,repoURL:r,parseText:i})}async readFileMetadata(e,t){return await(0,f.readFileMetadata)(t,async()=>{try{const t=await this.request(this.originRepoURL+"/commits",{params:{path:e,sha:this.branch}}),{commit:n}=t[0];return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(e){return{author:"",updatedOn:""}}},f.localForage)}async fetchBlobContent(e){let{sha:t,repoURL:n,parseText:r}=e;const i=await this.request(`${n}/git/blobs/${t}`,{cache:"force-cache"});if(r){return u.Base64.decode(i.content)}{const e=u.Base64.atob(i.content),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return new Blob([t])}}async listFiles(e){let{repoURL:t=this.repoURL,branch:n=this.branch,depth:i=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(0,r.default)(e,"/");try{return(await this.request(`${t}/git/trees/${n}:${o}`,{params:i>1?{recursive:1}:{}})).tree.filter(e=>"blob"===e.type&&e.path.split("/").length<=i).map(e=>({type:e.type,id:e.sha,name:(0,f.basename)(e.path),path:`${o}/${e.path}`,size:e.size}))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}async migrateToVersion1(e,t){const n=e.head.ref.slice("cms/".length),r=`${t.collection}/${n}`,i="cms/"+r;await this.getBranch(i).catch(()=>{})||await this.createBranch(i,e.head.sha);const o=(await this.getPullRequests(i,b.All,()=>!0))[0]||await this.createPR(e.title,i),a=g(g({},t),{},{pr:{number:o.number,head:o.head.sha},branch:i,version:"1"});return await this.storeMetadata(r,a),await this.closePR(e.number),await this.deleteBranch(e.head.ref),await this.deleteMetadata(n),{metadata:a,pullRequest:o}}async migrateToPullRequestLabels(e,t){await this.setPullRequestStatus(e,t.status);const n=e.head.ref.slice("cms/".length);await this.deleteMetadata(n)}async migratePullRequest(e,t){const{number:n}=e;console.log(`Migrating Pull Request '${n}' (${t})`);const r=(0,f.contentKeyFromBranch)(e.head.ref);let i=await this.retrieveMetadataOld(r).catch(()=>{});if(!i)return void console.log(`Skipped migrating Pull Request '${n}' (${t})`);let o=n;if(!i.version){console.log(`Migrating Pull Request '${n}' to version 1`);try{({metadata:i,pullRequest:e}=await this.migrateToVersion1(e,i))}catch(e){return console.log(`Failed to migrate Pull Request '${n}' to version 1. See error below.`),void console.error(e)}o=e.number,console.log(`Done migrating Pull Request '${n}' to version 1. New pull request '${o}' created.`)}"1"===i.version&&(console.log(`Migrating Pull Request '${o}' to labels`),await this.migrateToPullRequestLabels(e,i),console.log(`Done migrating Pull Request '${o}' to labels`)),console.log(`Done migrating Pull Request '${n===o?o:`${n} => ${o}`}'`)}async getOpenAuthoringBranches(){return await this.requestAllPages(`${this.repoURL}/git/refs/heads/cms/${this.repo}`).catch(()=>[])}async listUnpublishedBranches(){let e;if(console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold"),this.useOpenAuthoring){e=(await this.getOpenAuthoringBranches()).map(e=>e.ref.slice("refs/heads/".length));const t=await Promise.all(e.map(e=>this.filterOpenAuthoringBranches(e)));e=t.filter(e=>e.filter).map(e=>e.branch)}else{const t=await this.getPullRequests(void 0,b.Open,e=>!e.head.repo.fork&&function(e,t){return e.labels.every(e=>!(0,f.isCMSLabel)(e.name,t))}(e,this.cmsLabelPrefix));let n=0;for(const e of t)x||(x=!0,alert(d.oneLine`
Netlify CMS is adding labels to ${t.length} of your Editorial Workflow
entries. The "Workflow" tab will be unavailable during this migration. You may use other
areas of the CMS during this time. Note that closing the CMS will pause the migration.
`)),n+=1,await this.migratePullRequest(e,`${n} of ${t.length}`);e=(await this.getPullRequests(void 0,b.Open,e=>_(e,this.cmsLabelPrefix))).map(e=>e.head.ref)}return e}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha;return(await this.request(`${this.originRepoURL}/commits/${i}/status`)).statuses.map(e=>({context:e.context,target_url:e.target_url,state:e.state===y.Success?f.PreviewState.Success:f.PreviewState.Other}))}async persistFiles(e,t,n){const r=t.concat(e),o=r.map(e=>this.uploadBlob(e));if(await Promise.all(o),n.useWorkflow){const o=t.map(e=>{let{sha:t,path:n}=e;return{path:(0,i.default)(n,"/"),sha:t}}),a=e[0].slug;return this.editorialWorkflowGit(r,a,o,n)}return this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,r)).then(e=>this.commit(n.commitMessage,e)).then(e=>this.patchBranch(this.branch,e.sha))}async getFileSha(e){let{repoURL:t=this.repoURL,branch:n=this.branch}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e.split("/"),i=(0,s.default)(r),o=(0,l.default)(r).join("/"),a=`${t}/git/trees/${n}:${encodeURIComponent(o)}`,u=(await this.request(a)).tree.find(e=>e.path===i);if(u)return u.sha;throw new f.APIError("Not Found",404,"GitHub")}async deleteFiles(e,t){if(this.useOpenAuthoring)return Promise.reject("Cannot delete published entries as an Open Authoring user!");const n=await this.getDefaultBranch(),r=e.map(e=>({path:e,sha:null})),i=await this.updateTree(n.commit.sha,r),o=await this.commit(t,i);await this.patchBranch(this.branch,o.sha)}async createBranchAndPullRequest(e,t,n){return await this.createBranch(e,t),this.createPR(n,e)}async updatePullRequestLabels(e,t){await this.request(`${this.repoURL}/issues/${e}/labels`,{method:"PUT",body:JSON.stringify({labels:t})})}async diffFromFile(e){return{path:e.filename,newFile:"added"===e.status,sha:e.sha,binary:"renamed"!==e.status&&!e.patch||e.filename.endsWith(".svg")}}async editorialWorkflowGit(e,t,n,r){const i=this.generateContentKey(r.collectionName,t),o=(0,f.branchFromContentKey)(i);if(r.unpublished||!1){const{files:t}=await this.getDifferences(this.branch,await this.getHeadReference(o)),i=await Promise.all(t.map(e=>this.diffFromFile(e))),a=[];for(const e of i.filter(e=>e.binary))n.some(t=>t.path===e.path)||a.push({path:e.path,sha:null});const s=await this.rebaseBranch(o),l=a.concat(e),u=await this.updateTree(s.sha,l,o),c=await this.commit(r.commitMessage,u);return this.patchBranch(o,c.sha,{force:!0})}{const t=await this.getDefaultBranch(),n=await this.updateTree(t.commit.sha,e),i=await this.commit(r.commitMessage,n);if(this.useOpenAuthoring)await this.createBranch(o,i.sha);else{const e=await this.createBranchAndPullRequest(o,i.sha,r.commitMessage);await this.setPullRequestStatus(e,r.status||this.initialWorkflowStatus)}}}async getDifferences(e,t){const n=this.useOpenAuthoring?10:1;for(let r=1;r<=n;r++)try{return await this.request(`${this.originRepoURL}/compare/${e}...${t}`)}catch(e){if(r===n)throw console.warn(`Reached maximum number of attempts '${n}' for getDifferences`),e;await new Promise(e=>setTimeout(e,500*r))}throw new f.APIError("Not Found",404,"GitHub")}async rebaseSingleCommit(e,t){const n=w((await this.getDifferences(t.parents[0].sha,t.sha)).files);if(n.length>0){const r=await this.updateTree(e.sha,n),{message:i,author:o,committer:a}=t.commit;return await this.createCommit(i,r.sha,[e.sha],o,a)}return t}async rebaseCommits(e,t){if(0===t.length||t[0].parents[0].sha===e.sha){return(0,s.default)(t)}return t.reduce((e,t)=>e.then(e=>{const n=e,r=t;return this.rebaseSingleCommit(n,r)}),Promise.resolve(e))}async rebaseBranch(e){try{const{base_commit:t,commits:n}=await this.getDifferences(this.branch,await this.getHeadReference(e));return await this.rebaseCommits(t,n)}catch(e){throw console.error(e),e}}async setPullRequestStatus(e,t){const n=[...e.labels.filter(e=>!(0,f.isCMSLabel)(e.name,this.cmsLabelPrefix)).map(e=>e.name),(0,f.statusToLabel)(t,this.cmsLabelPrefix)];await this.updatePullRequestLabels(e.number,n)}async updateUnpublishedEntryStatus(e,t,n){const r=this.generateContentKey(e,t),i=(0,f.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);if(this.useOpenAuthoring){if("pending_publish"===status)throw new Error('Open Authoring entries may not be set to the status "pending_publish".');if(-1!==o.number){const{state:e}=o;e===b.Open&&"draft"===n&&await this.closePR(o.number),e===b.Closed&&"pending_review"===n&&await this.openPR(o.number)}else if("pending_review"===n){var a,s;const e=(0,f.branchFromContentKey)(r),t=(null===(a=(await this.getDifferences(this.branch,await this.getHeadReference(e))).commits[0])||void 0===a||null===(s=a.commit)||void 0===s?void 0:s.message)||k.DEFAULT_COMMIT_MESSAGE;await this.createPR(t,e)}}else await this.setPullRequestStatus(o,n)}async deleteUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);-1!==i.number&&await this.closePR(i.number),await this.deleteBranch(r)}async publishUnpublishedEntry(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePR(i),await this.deleteBranch(r)}async createRef(e,t,n){return await this.request(this.repoURL+"/git/refs",{method:"POST",body:JSON.stringify({ref:`refs/${e}/${t}`,sha:n})})}async patchRef(e,t,n){const r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).force||!1;return await this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify({sha:n,force:r})})}deleteRef(e,t){return this.request(`${this.repoURL}/git/refs/${e}/${encodeURIComponent(t)}`,{method:"DELETE"})}async getBranch(e){return await this.request(`${this.repoURL}/branches/${encodeURIComponent(e)}`)}async getDefaultBranch(){return await this.request(`${this.originRepoURL}/branches/${encodeURIComponent(this.branch)}`)}async backupBranch(e){try{const t=await this.getBranch(e);await this.createBranch(t.name.replace(new RegExp(f.CMS_BRANCH_PREFIX+"/"),`${f.CMS_BRANCH_PREFIX}_${Date.now()}/`),t.commit.sha)}catch(e){console.warn(e)}}async createBranch(e,t){try{return await this.createRef("heads",e,t)}catch(n){const r=String(n.message||"");if("Reference update failed"===r)await(0,f.throwOnConflictingBranches)(e,e=>this.getBranch(e),"GitHub");else if("Reference already exists"===r&&e.startsWith(f.CMS_BRANCH_PREFIX+"/"))try{await this.backupBranch(e);return await this.patchBranch(e,t,{force:!0})}catch(e){console.log(e)}throw n}}assertCmsBranch(e){return e.startsWith(f.CMS_BRANCH_PREFIX+"/")}patchBranch(e,t){const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).force||!1;if(n&&!this.assertCmsBranch(e))throw Error("Only CMS branches can be force updated, cannot force update "+e);return this.patchRef("heads",e,t,{force:n})}deleteBranch(e){return this.deleteRef("heads",e).catch(e=>"Reference does not exist"===e.message?Promise.resolve():(console.error(e),Promise.reject(e)))}async getHeadReference(e){return`${this.repoOwner}:${e}`}async createPR(e,t){return await this.request(this.originRepoURL+"/pulls",{method:"POST",body:JSON.stringify({title:e,body:f.DEFAULT_PR_BODY,head:await this.getHeadReference(t),base:this.branch})})}async openPR(e){console.log("%c Re-opening PR","line-height: 30px;text-align: center;font-weight: bold");return await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:b.Open})})}async closePR(e){console.log("%c Deleting PR","line-height: 30px;text-align: center;font-weight: bold");return await this.request(`${this.originRepoURL}/pulls/${e}`,{method:"PATCH",body:JSON.stringify({state:b.Closed})})}async mergePR(e){console.log("%c Merging PR","line-height: 30px;text-align: center;font-weight: bold");try{return await this.request(`${this.originRepoURL}/pulls/${e.number}/merge`,{method:"PUT",body:JSON.stringify({commit_message:f.MERGE_COMMIT_MESSAGE,sha:e.head.sha,merge_method:this.mergeMethod})})}catch(t){if(t instanceof f.APIError&&405===t.status)return this.forceMergePR(e);throw t}}async forceMergePR(e){const t=w((await this.getDifferences(e.base.sha,e.head.sha)).files);let n="Automatically generated. Merged on Netlify CMS\n\nForce merge of:";return t.forEach(e=>{n+=`\n* "${e.path}"`}),console.log("%c Automatic merge not possible - Forcing merge.","line-height: 30px;text-align: center;font-weight: bold"),this.getDefaultBranch().then(e=>this.updateTree(e.commit.sha,t)).then(e=>this.commit(n,e)).then(e=>this.patchBranch(this.branch,e.sha))}toBase64(e){return Promise.resolve(u.Base64.encode(e))}async uploadBlob(e){const t=await(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),n=await this.request(this.repoURL+"/git/blobs",{method:"POST",body:JSON.stringify({content:t,encoding:"base64"})});return e.sha=n.sha,e}async updateTree(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.branch;const r=[],o=t.reduce((e,t)=>{const n={path:(0,i.default)(t.path,"/"),mode:"100644",type:"blob",sha:t.sha};return t.newPath?r.push({from:t.path,to:t.newPath,sha:t.sha}):e.push(n),e},[]);for(const{from:e,to:t,sha:i}of r){const r=(0,p.dirname)(e),a=(0,p.dirname)(t),s=await this.listFiles(r,{branch:n,depth:100});for(const t of s)o.push({path:t.path,mode:"100644",type:"blob",sha:null}),o.push({path:t.path.replace(r,a),mode:"100644",type:"blob",sha:t.path===e?i:t.id})}return g(g({},await this.createTree(e,o)),{},{parentSha:e})}async createTree(e,t){return await this.request(this.repoURL+"/git/trees",{method:"POST",body:JSON.stringify({base_tree:e,tree:t})})}commit(e,t){const n=t.parentSha?[t.parentSha]:[];return this.createCommit(e,t.sha,n)}async createCommit(e,t,n,r,i){return await this.request(this.repoURL+"/git/commits",{method:"POST",body:JSON.stringify({message:e,tree:t,parents:n,author:r,committer:i})})}async getUnpublishedEntrySha(e,t){const n=this.generateContentKey(e,t),r=(0,f.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).head.sha}}t.default=k,v(k,"DEFAULT_COMMIT_MESSAGE","Automatically generated by Netlify CMS")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"GitLabBackend",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsBackendGitlab=void 0;var r=a(n(1404)),i=a(n(672)),o=a(n(671));function a(e){return e&&e.__esModule?e:{default:e}}const s={GitLabBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendGitlab=s},function(e,t,n){var r=n(684)(n(1453));e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getEditorComponents=function(){return p()},t.getEditorControl=function(){return f};var r=c(n(0)),i=c(n(2)),o=c(n(33)),a=n(4),s=c(n(1464)),l=c(n(1703)),u=n(9);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let f,p=()=>(0,a.Map)();class h extends r.default.Component{constructor(e){var t;super(e),d(this,"handleMode",e=>{this.setState({mode:e,pendingFocus:!0}),localStorage.setItem("cms.md-mode",e)}),d(this,"processRef",e=>this.ref=e),d(this,"setFocusReceived",()=>{this.setState({pendingFocus:!1})}),d(this,"getAllowedModes",()=>this.props.field.get("modes",(0,a.List)(["rich_text","raw"])).toArray()),f=e.editorControl;const n=null!==(t=localStorage.getItem("cms.md-mode"))&&void 0!==t?t:"rich_text";p=e.getEditorComponents,this.state={mode:-1!==this.getAllowedModes().indexOf(n)?n:this.getAllowedModes()[0],pendingFocus:!1}}render(){const{onChange:e,onAddAsset:t,getAsset:n,value:r,classNameWrapper:i,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,t:f,isDisabled:p}=this.props,{mode:h,pendingFocus:m}=this.state,g=this.getAllowedModes().length>1,v=(0,u.jsx)("div",{className:"cms-editor-visual",ref:this.processRef},(0,u.jsx)(l.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,getEditorComponents:a,getRemarkPlugins:c,resolveWidget:d,pendingFocus:m&&this.setFocusReceived,t:f,isDisabled:p})),y=(0,u.jsx)("div",{className:"cms-editor-raw",ref:this.processRef},(0,u.jsx)(s.default,{onChange:e,onAddAsset:t,isShowModeToggle:g,onMode:this.handleMode,getAsset:n,className:i,value:r,field:o,pendingFocus:m&&this.setFocusReceived,t:f}));return"rich_text"===h?v:y}}t.default=h,d(h,"propTypes",{onChange:i.default.func.isRequired,onAddAsset:i.default.func.isRequired,getAsset:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,editorControl:i.default.elementType.isRequired,value:i.default.string,field:o.default.map.isRequired,getEditorComponents:i.default.func,t:i.default.func.isRequired}),d(h,"defaultProps",{value:""})},function(e){e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a=e.length,s=-1;for(;++s<a;)if(i=e[s],(void 0===(o=i[1]||{}).pedantic||o.pedantic===n.options.pedantic)&&(void 0===o.commonmark||o.commonmark===n.options.commonmark)&&t[i[0]].apply(n,r))return!0;return!1}},function(e,t,n){"use strict";var r=n(701);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){"use strict";var r=n(267);e.exports=function(e,t){if(t||0===e.length||i.test(e)||r(e,"(")!==r(e,")"))return"<"+e+">";return e};var i=/\s/},function(e,t,n){"use strict";e.exports=function(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}},function(e,t,n){"use strict";var r=n(128);function i(e,t,n,i,o){var a=null!=i,s=null!=n,l=r(t);if(s&&("number"!=typeof n||n<0||n===1/0))throw new Error("Expected positive finite index for child node");if(a&&(!i.type||!i.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(a!==s)throw new Error("Expected both parent and index");return l.call(o,e,n,i)}e.exports=i,i.convert=r},function(e,t,n){"use strict";e.exports=function(e){var t;if(e&&"object"==typeof e&&"text"===e.type)t=e.value||"";else{if("string"!=typeof e)return!1;t=e}return""===t.replace(r,"")};var r=/[ \t\n\f\r]/g},function(e,t){e.exports=String.fromCharCode},function(e,t,n){"use strict";const r=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="<22>",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||r.indexOf(e)>-1}},function(e,t,n){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},function(e,t,n){"use strict";const r=n(153);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},function(e,t,n){"use strict";e.exports=s;var r=n(1645),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e,t){return i(r(e,t))};var r=n(84),i=n(466)},function(e,t,n){"use strict";e.exports=a,a.needed=l;var r=n(434),i=n(1648),o=n(731);function a(e){return s(e,(function(e){var t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function s(e,t,n){for(var r,o,a=n||c,s=function(e){var t,n=[],r=-1;for(;++r<e.length;)"delete"!==(t=e[r]).type&&"link"!==t.type||!l(t.children)?n.push(t):n=n.concat(u(t));return n}(e),d=[],f=-1;++f<s.length;)r=s[f],i(r)?(o||(o=[]),o.push(r)):(o&&(d=d.concat(t(o)),o=void 0),d=d.concat(a(r)));return o&&(d=d.concat(t(o))),d}function l(e){for(var t,n=-1;++n<e.length;)if(t=e[n],!i(t)||t.children&&l(t.children))return!0}function u(e){return s(e.children,(function(t){var n=r(!0,{},o(e));return n.children=t,n}),(function(t){var n=r(!0,{},o(e)),i=o(t);return i.children=[n],n.children=t.children,i}))}function c(e){return e}},function(e,t,n){var r=n(49);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetObject=void 0;var r=a(n(1728)),i=a(n(1729)),o=a(n(1730));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"object",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetObject=c;var d=c;t.default=d},function(e,t,n){!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var u,c,d=a.indentUnit,f=l.statementIndentUnit||d,p=l.dontAlignCalls,h=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},_=l.hooks||{},w=l.multiLineStrings,x=!1!==l.indentStatements,k=!1!==l.indentSwitch,E=l.namespaceSeparator,S=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,O=l.numberStart||/[\d\.]/,C=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,A=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,P=l.isReservedIdentifier||!1;function R(e,t){var n,r=e.next();if(_[r]){var i=_[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(O.test(r)){if(e.backUp(1),e.match(C))return"number";e.next()}if(S.test(r))return u=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=j,j(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(T););return"operator"}if(e.eatWhile(A),E)for(;e.match(E);)e.eatWhile(A);var o=e.current();return s(h,o)?(s(v,o)&&(u="newstatement"),s(y,o)&&(c=!0),"keyword"):s(m,o)?"type":s(g,o)||P&&P(o)?(s(v,o)&&(u="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function j(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function I(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return I(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==u)n(t,e.column(),"}");else if("["==u)n(t,e.column(),"]");else if("("==u)n(t,e.column(),")");else if("}"==u){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else u==a.type?r(t):x&&(("}"==a.type||"top"==a.type)&&";"!=u||"statement"==a.type&&"newstatement"==u)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),_.token){var d=_.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,I(e,t),s},indent:function(t,n){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(t,r,n,d);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||p&&")"==r.type?")"!=r.type||o?r.indented+(o?0:d)+(o||!s||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(o?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var g="case do else for if switch while struct enum union";function v(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=v;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function y(e,t){return"type"==t.prevToken&&"type"}function b(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function _(e){return e.eatWhile(/[\w\.']/),"number"}function w(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=E,E(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function x(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function k(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function E(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function S(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function O(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function C(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=C(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=C(e+1),n.tokenize(t,n)}return"comment"}}S(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:h,blockKeywords:a(g),defKeywords:a("struct enum union"),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:b,hooks:{"#":v,"*":y},modeProps:{fold:["brace","include"]}}),S(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+u),types:h,blockKeywords:a(g+" class try catch"),defKeywords:a("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:b,hooks:{"#":v,"*":y,u:w,U:w,L:w,R:w,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match('""\n')&&(t.tokenize=O,t.tokenize(e,t))}},modeProps:{fold:["brace","import"]}}),S("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=k,k(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),S("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=O,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),S("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),S(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":v},modeProps:{fold:["brace","include"]}}),S("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":v},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec",{name:"clike",keywords:a(l+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":v,"*":y},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec++",{name:"clike",keywords:a(l+" "+c+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a("struct enum union @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":v,"*":y,u:w,U:w,L:w,R:w,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":v},modeProps:{fold:["brace","include"]}});var T=null;S("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=function e(t){return function(n,r){for(var i,o=!1,a=!1;!n.eol();){if(!o&&n.match('"')&&("single"==t||n.match('""'))){a=!0;break}if(!o&&n.match("``")){T=e(t),a=!0;break}i=n.next(),o="single"==t&&!o&&"\\"==i}return a&&(r.tokenize=null),"string"}}(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!T||!e.match("`"))&&(t.tokenize=T,T=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var n=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],r=t(n),i=t(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),o=t(["end","until"]),a={"[":"]","{":"}","(":")"},s={"]":"[","}":"{",")":"("};e.defineMode("ruby",(function(t){var n;function l(e,t,n){return n.tokenize.push(e),e(t,n)}function u(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(p),"comment";if(e.eatSpace())return null;var r,i,o,s=e.next();if("`"==s||"'"==s||'"'==s)return l(f(s,"string",'"'==s||"`"==s),e,t);if("/"==s)return function(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?l(f(s,"string-2",!0),e,t):"operator";if("%"==s){var u="string",c=!0;e.eat("s")?u="atom":e.eat(/[WQ]/)?u="string":e.eat(/[r]/)?u="string-2":e.eat(/[wxq]/)&&(u="string",c=!1);var d=e.eat(/[^\w\s=]/);return d?(a.propertyIsEnumerable(d)&&(d=a[d]),l(f(d,u,c,!0),e,t)):"operator"}if("#"==s)return e.skipToEnd(),"comment";if("<"==s&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l((i=r[2],o=r[1],function(e,t){return o&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==s)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(s))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==s){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==s)return e.eat("'")?l(f("'","atom",!1),e,t):e.eat('"')?l(f('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==s&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==s)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(s))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=s||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(s))return n=s,null;if("-"==s&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(s)){var h=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=s||h||(n="."),"operator"}return null}return n="|",null}function c(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=c(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=c(e+1));return u(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,u(t,n))}}function f(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(c());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(d());break}}s=!s&&"\\"==a}return t}}function p(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[u],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){n=null,e.sol()&&(t.indented=e.indentation());var a,s=t.tokenize[t.tokenize.length-1](e,t),l=n;if("ident"==s){var u=e.current();"keyword"==(s="."==t.lastTok?"property":r.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(u)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=u,i.propertyIsEnumerable(u)?a="indent":o.propertyIsEnumerable(u)?a="dedent":"if"!=u&&"unless"!=u||e.column()!=e.indentation()?"do"==u&&t.context.indented<t.indented&&(a="indent"):a="indent")}return(n||s&&"comment"!=s)&&(t.lastTok=l),"|"==n&&(t.varList=!t.varList),"indent"==a||/[\(\[\{]/.test(n)?t.context={prev:t.context,type:n||s,indented:t.indented}:("dedent"==a||/[\)\]\}]/.test(n))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==n||"operator"==s),s},indent:function(n,r){if(n.tokenize[n.tokenize.length-1]!=u)return e.Pass;var i=r&&r.charAt(0),o=n.context,a=o.type==s[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(r);return o.indented+(a?0:t.indentUnit)+(n.continuedLine?t.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-ruby","ruby"),e.registerHelper("hintWords","ruby",n)}(n(5))},function(e,t,n){!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(u=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((d=a.close&&!o.startingInner?r(u,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(i.string=u.slice(0,d));var s=a.mode.token(i,o.inner);return d>-1?i.string=u:i.pos>i.start&&(o.startingInner=!1),d==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,u=i.string,c=0;c<n.length;++c){var d,f=n[c];if((d=r(u,f.open,i.pos))==i.pos){f.parseDelimiters||i.match(f.open),o.startingInner=!!f.parseDelimiters,o.innerActive=f;var p=0;if(t.indent){var h=t.indent(o.outer,"","");h!==e.Pass&&(p=h)}return o.inner=e.startState(f.mode,p),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}-1!=d&&d<l&&(l=d)}l!=1/0&&(i.string=u.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=u),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}(n(5))},function(e,t,n){var r=n(376),i=n(1881);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"SortableContainer",(function(){return me})),n.d(t,"sortableContainer",(function(){return me})),n.d(t,"SortableElement",(function(){return ye})),n.d(t,"sortableElement",(function(){return ye})),n.d(t,"SortableHandle",(function(){return oe})),n.d(t,"sortableHandle",(function(){return oe})),n.d(t,"arrayMove",(function(){return E}));var r=n(11);var i=n(349);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Object(i.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=n(34);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Object(a.a)(e,t,n[t])}))}return e}var l=n(80),u=n(81),c=n(350),d=n(30);function f(e,t){if(t&&("object"===Object(c.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(d.a)(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=n(91),m=n(0),g=n(54),v=n(186),y=n.n(v),b=n(279),_=n(2),w=n.n(_),x=function(){function e(){Object(l.a)(this,e),Object(a.a)(this,"refs",{})}return Object(u.a)(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(k)}}]),e}();function k(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function E(e,t,n){return(e=e.slice()).splice(n<0?e.length+n:n,0,e.splice(t,1)[0]),e}function S(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var O={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},C=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function T(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function A(e,t){e.style["".concat(C,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function P(e,t){e.style["".concat(C,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function R(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function j(e,t,n){return Math.max(e,Math.min(n,t))}function I(e){return"px"===e.substr(-2)?parseFloat(e):0}function M(e){var t=window.getComputedStyle(e);return{bottom:I(t.marginBottom),left:I(t.marginLeft),right:I(t.marginRight),top:I(t.marginTop)}}function L(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function D(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function N(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function F(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:B(e.parentNode,t,r)}}function z(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function U(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,o=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);y()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),o=parseFloat(t),a=s[1]}return y()(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",t),"%"===a&&(i=i*n/100,o=o*r/100),{x:i,y:o}}function q(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];y()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var a=o(i,2),s=a[0],l=a[1];return[U({height:t,lockOffset:s,width:n}),U({height:t,lockOffset:l,width:n})]}function W(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:W(e.parentNode):null}function H(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:I(t.gridColumnGap),y:I(t.gridRowGap)}:{x:0,y:0}}var $=27,V=32,G=37,K=38,Y=39,Q=40,X="A",Z="BUTTON",J="CANVAS",ee="INPUT",te="OPTION",ne="TEXTAREA",re="SELECT";function ie(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return Object(b.a)(r.querySelectorAll(t)).forEach((function(e,t){("file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===J&&n[t].width>0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),r}function oe(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Object(l.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=f(this,(e=p(n)).call.apply(e,[this].concat(i))),Object(a.a)(Object(d.a)(Object(d.a)(t)),"wrappedInstance",Object(m.createRef)()),t}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){Object(g.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return Object(m.createElement)(e,Object(r.a)({ref:t},this.props))}}]),n}(m.Component),Object(a.a)(t,"displayName",L("sortableHandle",e)),n}function ae(e){return null!=e.sortableHandle}var se=function(){function e(t,n){Object(l.a)(this,e),this.container=t,this.onScrollCallback=n}return Object(u.a)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},u=10,c=10,d=this.container,f=d.scrollTop,p=d.scrollLeft,h=d.scrollHeight,m=d.scrollWidth,g=0===f,v=h-f-d.clientHeight==0,y=0===p,b=m-p-d.clientWidth==0;n.y>=i.y-a/2&&!v?(s.y=1,l.y=c*Math.abs((i.y-a/2-n.y)/a)):n.x>=i.x-o/2&&!b?(s.x=1,l.x=u*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+a/2&&!g?(s.y=-1,l.y=c*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+o/2&&!y&&(s.x=-1,l.x=u*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var le={axis:w.a.oneOf(["x","y","xy"]),contentWindow:w.a.any,disableAutoscroll:w.a.bool,distance:w.a.number,getContainer:w.a.func,getHelperDimensions:w.a.func,helperClass:w.a.string,helperContainer:w.a.oneOfType([w.a.func,"undefined"==typeof HTMLElement?w.a.any:w.a.instanceOf(HTMLElement)]),hideSortableGhost:w.a.bool,keyboardSortingTransitionDuration:w.a.number,lockAxis:w.a.string,lockOffset:w.a.oneOfType([w.a.number,w.a.string,w.a.arrayOf(w.a.oneOfType([w.a.number,w.a.string]))]),lockToContainerEdges:w.a.bool,onSortEnd:w.a.func,onSortMove:w.a.func,onSortOver:w.a.func,onSortStart:w.a.func,pressDelay:w.a.number,pressThreshold:w.a.number,keyCodes:w.a.shape({lift:w.a.arrayOf(w.a.number),drop:w.a.arrayOf(w.a.number),cancel:w.a.arrayOf(w.a.number),up:w.a.arrayOf(w.a.number),down:w.a.arrayOf(w.a.number)}),shouldCancelStart:w.a.func,transitionDuration:w.a.number,updateBeforeSortStart:w.a.func,useDragHandle:w.a.bool,useWindowAsScrollContainer:w.a.bool},ue={lift:[V],drop:[V],cancel:[$],up:[K,G],down:[Q,Y]},ce={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ue,shouldCancelStart:function(e){return-1!==[ee,ne,re,te,Z].indexOf(e.target.tagName)||!!R(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},de=Object.keys(le);function fe(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function pe(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var he=Object(m.createContext)({manager:{}});function me(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;Object(l.a)(this,n),t=f(this,p(n).call(this,e)),Object(a.a)(Object(d.a)(Object(d.a)(t)),"state",{}),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=N(e);var o=R(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,l=s.index,u=s.collection;if(s.disabled)return;if(a&&!R(e.target,ae))return;t.manager.active={collection:u,index:l},F(e)||e.target.tagName!==X||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var o=N(e),a={x:t.position.x-o.x,y:t.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||i&&!(s>=i)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=p.sortableInfo.index,r=M(p),i=H(t.container),c=t.scrollContainer.getBoundingClientRect(),g=a({index:n,node:p,collection:h});if(t.node=p,t.margin=r,t.gridGap=i,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=B(p,t.container),t.initialOffset=N(m?s({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(ie(p)),T(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),m&&t.helper.focus(),u&&(t.sortableGhost=p,T(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},m){var v=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,y=v.top,b=v.left,_=v.width,w=y+v.height,x=b+_;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=x-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=y-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,m?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(O.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),O.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:p,index:n,collection:h,isKeySorting:m,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),m&&t.keyMove(0)},i=t.props,o=i.axis,a=i.getHelperDimensions,l=i.helperClass,u=i.hideSortableGhost,c=i.updateBeforeSortStart,d=i.onSortStart,f=i.useWindowAsScrollContainer,p=n.node,h=n.collection,m=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=pe((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:m},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager,a=o.active.collection,s=o.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(O.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),O.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&T(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=l.length;u<c;u++){var d=l[u],f=d.node;d.edgeOffset=null,d.boundingClientRect=null,A(f,null),P(f,null),d.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=s({},t.translate),i=0,o=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),i=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),o=t.translate.y-r.y),t.translate=r,A(t.helper,t.translate),t.scrollContainer.scrollLeft+=i,void(t.scrollContainer.scrollTop+=o)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,i=r.shouldCancelStart,o=r.keyCodes,a=s({},ue,void 0===o?{}:o);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||a.lift.includes(n)&&!i(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!t.manager.active?t.keyLift(e):a.drop.includes(n)&&t.manager.active?t.keyDrop(e):a.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):a.up.includes(n)?t.keyMove(-1):a.down.includes(n)&&t.keyMove(1))})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"keyLift",(function(e){var n=e.target,r=R(n,(function(e){return null!=e.sortableInfo})).sortableInfo,i=r.index,o=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:i,collection:o},t.handlePress(e)})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,i=t.newIndex+e,o=t.newIndex;if(!(i<0||i>r)){t.prevIndex=o,t.newIndex=i;var a=z(t.newIndex,t.prevIndex,t.index),s=n.find((function(e){return e.node.sortableInfo.index===a})),l=s.node,u=t.containerScrollDelta,c=s.boundingClientRect||D(l,u),d=s.translate||{x:0,y:0},f=c.top+d.y-u.top,p=c.left+d.x-u.left,h=o<i,m=h&&t.axis.x?l.offsetWidth-t.width:0,g=h&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+m,pageY:f+g,ignoreTransition:0===e})}})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Object(a.a)(Object(d.a)(Object(d.a)(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,i=R(r,(function(e){return null!=e.sortableInfo}));return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(n?ae(r):r.sortableInfo)}));var r=new x;return fe(e),t.manager=r,t.wrappedInstance=Object(m.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:W(e.container)||e.container,e.autoScroller=new se(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return O[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return O[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,a=t.transitionDuration,s=t.keyboardSortingTransitionDuration,l=void 0===s?a:s,u=this.manager.isKeySorting,c=e.ignoreTransition,d=N(e),f={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,i){var p=o(q({height:this.height,lockOffset:r,width:this.width}),2),h=p[0],m=p[1],g={x:this.width/2-h.x,y:this.height/2-h.y},v={x:this.width/2-m.x,y:this.height/2-m.y};f.x=j(this.minTranslate.x+g.x,this.maxTranslate.x-v.x,f.x),f.y=j(this.minTranslate.y+g.y,this.maxTranslate.y-v.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),u&&l&&!c&&P(this.helper,l),A(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,i=this.containerScrollDelta,o=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+i.left,l=this.offsetEdge.top+this.translate.y+i.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var d=0,f=a.length;d<f;d++){var p=a[d].node,h=p.sortableInfo.index,m=p.offsetWidth,g=p.offsetHeight,v={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=u&&h>this.index&&h<=c,b=u&&h<this.index&&h>=c,_={x:0,y:0},w=a[d].edgeOffset;w||(w=B(p,this.container),a[d].edgeOffset=w,u&&(a[d].boundingClientRect=D(p,i)));var x=d<a.length-1&&a[d+1],k=d>0&&a[d-1];x&&!x.edgeOffset&&(x.edgeOffset=B(x.node,this.container),u&&(x.boundingClientRect=D(x.node,i))),h!==this.index?(t&&P(p,t),this.axis.x?this.axis.y?b||h<this.index&&(s+o.left-v.width<=w.left&&l+o.top<=w.top+v.height||l+o.top+v.height<=w.top)?(_.x=this.width+this.marginOffset.x,w.left+_.x>this.containerBoundingRect.width-v.width&&x&&(_.x=x.edgeOffset.left-w.left,_.y=x.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=h)):(y||h>this.index&&(s+o.left+v.width>=w.left&&l+o.top+v.height>=w.top||l+o.top+v.height>=w.top+g))&&(_.x=-(this.width+this.marginOffset.x),w.left+_.x<this.containerBoundingRect.left+v.width&&k&&(_.x=k.edgeOffset.left-w.left,_.y=k.edgeOffset.top-w.top),this.newIndex=h):y||h>this.index&&s+o.left+v.width>=w.left?(_.x=-(this.width+this.marginOffset.x),this.newIndex=h):(b||h<this.index&&s+o.left<=w.left+v.width)&&(_.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(y||h>this.index&&l+o.top+v.height>=w.top?(_.y=-(this.height+this.marginOffset.y),this.newIndex=h):(b||h<this.index&&l+o.top<=w.top+v.height)&&(_.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),A(p,_),a[d].translate=_):n&&(this.sortableGhost=p,T(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var E=u?this.prevIndex:c;r&&this.newIndex!==E&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:u,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(g.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return Object(m.createElement)(he.Provider,{value:this.sortableContextValue},Object(m.createElement)(e,Object(r.a)({ref:t},S(this.props,de))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(m.Component),Object(a.a)(t,"displayName",L("sortableList",e)),Object(a.a)(t,"defaultProps",ce),Object(a.a)(t,"propTypes",le),n}var ge={index:w.a.number.isRequired,collection:w.a.oneOfType([w.a.number,w.a.string]),disabled:w.a.bool},ve=Object.keys(ge);function ye(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Object(l.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=f(this,(e=p(n)).call.apply(e,[this].concat(i))),Object(a.a)(Object(d.a)(Object(d.a)(t)),"wrappedInstance",Object(m.createRef)()),t}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,i=Object(g.findDOMNode)(this);i.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return Object(m.createElement)(e,Object(r.a)({ref:t},S(this.props,ve)))}}]),n}(m.Component),Object(a.a)(t,"displayName",L("sortableElement",e)),Object(a.a)(t,"contextType",he),Object(a.a)(t,"propTypes",ge),Object(a.a)(t,"defaultProps",{collection:0}),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return pn})),n.d(t,"cloneFragment",(function(){return Bt})),n.d(t,"findDOMNode",(function(){return hn})),n.d(t,"findDOMPoint",(function(){return mn})),n.d(t,"findDOMRange",(function(){return gn})),n.d(t,"findNode",(function(){return vn})),n.d(t,"findPath",(function(){return yn})),n.d(t,"findPoint",(function(){return bn})),n.d(t,"findRange",(function(){return wn})),n.d(t,"getEventRange",(function(){return xn})),n.d(t,"getEventTransfer",(function(){return Vt})),n.d(t,"setEventTransfer",(function(){return Yt})),n.d(t,"ReactPlugin",(function(){return dn}));var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=n(31);function l(e,t){function n(n,r,i,o,a){var s=r[i];return null!=s||n?null==s&&n?new Error("The "+a+" `"+i+"` is marked as required in `"+o+"`, but it was not supplied."):t(s)?null:new Error("Invalid "+a+" `"+i+"` supplied to `"+o+"`, expected a Slate `"+e+"` but received: "+s):null}function r(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!1].concat(t))}return r.isRequired=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!0].concat(t))},r}var u={block:l("Block",(function(e){return s.Block.isBlock(e)})),blocks:l("List<Block>",(function(e){return s.Block.isBlockList(e)})),change:l("Change",(function(e){return s.Change.isChange(e)})),data:l("Data",(function(e){return s.Data.isData(e)})),document:l("Document",(function(e){return s.Document.isDocument(e)})),inline:l("Inline",(function(e){return s.Inline.isInline(e)})),inlines:l("Inline",(function(e){return s.Inline.isInlineList(e)})),leaf:l("Leaf",(function(e){return s.Leaf.isLeaf(e)})),leaves:l("List<Leaf>",(function(e){return s.Leaf.isLeafList(e)})),mark:l("Mark",(function(e){return s.Mark.isMark(e)})),marks:l("Set<Mark>",(function(e){return s.Mark.isMarkSet(e)})),node:l("Node",(function(e){return s.Node.isNode(e)})),nodes:l("List<Node>",(function(e){return s.Node.isNodeList(e)})),range:l("Range",(function(e){return s.Range.isRange(e)})),ranges:l("List<Range>",(function(e){return s.Range.isRangeList(e)})),selection:l("Selection",(function(e){return s.Selection.isSelection(e)})),value:l("Value",(function(e){return s.Value.isValue(e)})),text:l("Text",(function(e){return s.Text.isText(e)})),texts:l("List<Text>",(function(e){return s.Text.isTextList(e)}))},c=n(33),d=n.n(c),f=n(95),p=n.n(f),h=function(e,t){0},m=n(52),g=n.n(m),v=n(768),y=n.n(v),b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_="object"===("undefined"==typeof window?"undefined":b(window))&&"object"===("undefined"==typeof document?"undefined":b(document))&&9===document.nodeType,w=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},x=void 0;if(_){var k=!0,E=!1,S=void 0;try{for(var O,C=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(k=(O=C.next()).done);k=!0){var T=O.value,A=w(T,2),P=A[0];if(A[1].test(window.navigator.userAgent)){x=P;break}}}catch(e){E=!0,S=e}finally{try{!k&&C.return&&C.return()}finally{if(E)throw S}}}var R=void 0;if(_){var j=!0,I=!1,M=void 0;try{for(var L,D=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(j=(L=D.next()).done);j=!0){var N=L.value,F=w(N,2),B=F[0];if(F[1].test(window.navigator.userAgent)){R=B;break}}}catch(e){I=!0,M=e}finally{try{!j&&D.return&&D.return()}finally{if(I)throw M}}}var z=[];if(_){var U=!0,q=!1,W=void 0;try{for(var H,$=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new e.InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]][Symbol.iterator]();!(U=(H=$.next()).done);U=!0){var V=H.value,G=w(V,2),K=G[0];(0,G[1])(window)&&z.push(K)}}catch(e){q=!0,W=e}finally{try{!U&&$.return&&$.return()}finally{if(q)throw W}}}var Y=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];var Q="firefox"===x,X="safari"===x,Z="ie"===x,J="edge"===x,ee="android"===R,te="ios"===R,ne="macos"===R,re=function(){if("android"!==R)return null;var e=window.navigator.userAgent.match(/Android\s([0-9\.]+)/);if(null==e)return null;var t=e[1],n=!0,r=!1,i=void 0;try{for(var o,a=Y[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=w(s,2),u=l[0],c=l[1];if(t.match(u))return c}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}(),ie=(z.includes("inputeventslevel1"),z.includes("inputeventslevel2")||ee&&(28===re||null===re)),oe=n(480),ae=n.n(oe),se=n(177),le=n.n(se),ue=n(4),ce=n(373),de={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},fe={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},pe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},he={},me=te||ne,ge=!me;[].concat(Object.keys(de)).concat(Object.keys(fe)).concat(Object.keys(pe)).forEach((function(e){var t="is"+e[0].toUpperCase()+e.slice(1);if(!he[t]){var n=de[e],r=fe[e],i=pe[e],o=n&&Object(ce.isKeyHotkey)(n),a=r&&Object(ce.isKeyHotkey)(r),s=i&&Object(ce.isKeyHotkey)(i);he[t]=function(e){return!(!o||!o(e))||(!!(me&&a&&a(e))||!!(ge&&s&&s(e)))}}}));var ve=he,ye=n(54),be=n.n(ye),_e=n(232),we=n(352),xe=n(39),ke=function(e,t){if(!e)throw new Error("Invariant failed: "+(t||""))},Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Oe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},Ce=0;var Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ce++,n=e.placeholder,r=e.when,o=e.style,a=void 0===o?{}:o;function s(e,n,i){if(!n.query(r,e))return i();var o=i(),a=e.texts(),s=Se(a,1)[0],l=e.texts({direction:"backward"}),u=Se(l,1)[0],c=Se(s,2),d=c[0],f=c[1],p=Se(u,2),h=p[0],m=p[1],g={type:"placeholder",data:{key:t},anchor:{key:d.key,offset:0,path:f},focus:{key:h.key,offset:h.text.length,path:m}};return[].concat(Oe(o),[g])}function l(e,r,o){var s=e.children,l=e.decoration;if("placeholder"===l.type&&l.data.get("key")===t){var u=Ee({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",verticalAlign:"text-top"},a);return i.a.createElement("span",null,i.a.createElement("span",{contentEditable:!1,style:u},n),s)}return o()}return ke("string"==typeof n,"You must pass `SlateReactPlaceholder` an `options.placeholder` string."),ke("string"==typeof r||"function"==typeof r,"You must pass `SlateReactPlaceholder` an `options.when` query."),{decorateNode:s,renderDecoration:l}},Ae=function(e,t){return e===t};var Pe=function(e,t){var n;void 0===t&&(t=Ae);var r,i=[],o=!1,a=function(e,n){return t(e,i[n],n)};return function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];return o&&n===this&&s.length===i.length&&s.every(a)||(r=e.apply(this,s),o=!0,n=this,i=s),r}},Re=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"],je="data-slate-editor",Ie="data-slate-fragment",Me="data-key",Le="data-slate-leaf",De="data-slate-length",Ne="data-slate-object",Fe="data-offset-key",Be="data-slate-spacer",ze="data-slate-string",Ue="data-slate-void",qe="data-slate-zero-width",We={BLOCK:"["+Ne+'="block"]',EDITOR:"["+je+"]",INLINE:"["+Ne+'="inline"]',KEY:"["+Me+"]",LEAF:"["+Le+"]",OBJECT:"["+Ne+"]",STRING:"["+ze+"]",TEXT:"["+Ne+'="text"]',VOID:"["+Ue+"]",ZERO_WIDTH:"["+qe+"]"},He=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ve=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Ye=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Qe=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Xe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},Ze=/^([\w-]+)(?::(\d+))?$/;var Je={parse:function(e){var t=Ze.exec(e);if(!t)throw new Error('Invalid offset key string "'+e+'".');var n=Qe(t,3),r=(n[0],n[1]),i=n[2];return{key:r,index:parseInt(i,10)}},stringify:function(e){return e.key+":"+e.index}},et=function(e){var t=e.text,n=void 0===t?"":t,r=e.isTrailing,o=void 0!==r&&r;return i.a.createElement("span",Ve({},ze,!0),n,o?"\n":null)},tt=function(e){var t,n=e.length,r=void 0===n?0:n,o=e.isLineBreak,a=void 0!==o&&o;return i.a.createElement("span",(Ve(t={},qe,a?"n":"z"),Ve(t,De,r),t),"\ufeff",a?i.a.createElement("br",null):null)},nt=function(e){var t,n=e.marks,r=e.annotations,o=e.decorations,a=e.node,s=e.index,l=e.offset,u=e.text,c=e.editor,d=e.parent,f=e.block,p=e.leaves,h=Je.stringify({key:a.key,index:s}),m=void 0;if(c.query("isVoid",d))m=i.a.createElement(tt,{length:d.text.length});else if(""===u&&"block"===d.object&&""===d.text&&d.nodes.last()===a)m=i.a.createElement(tt,{isLineBreak:!0});else if(""===u)m=i.a.createElement(tt,null);else{var g=f.getLastText(),v=u.charAt(u.length-1),y=a===g,b=s===p.size-1;m=y&&b&&"\n"===v?i.a.createElement(et,{isTrailing:!0,text:u}):i.a.createElement(et,{text:u})}var _={editor:c,marks:n,annotations:r,decorations:o,node:a,offset:l,text:u},w=!0,x=!1,k=void 0;try{for(var E,S=n[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){var O=E.value;(F=c.run("renderMark",Ge({},_,{mark:O,children:m,attributes:Ve({},Ne,"mark")})))&&(m=F)}}catch(e){x=!0,k=e}finally{try{!w&&S.return&&S.return()}finally{if(x)throw k}}var C=!0,T=!1,A=void 0;try{for(var P,R=o[Symbol.iterator]();!(C=(P=R.next()).done);C=!0){var j=P.value;(F=c.run("renderDecoration",Ge({},_,{decoration:j,children:m,attributes:Ve({},Ne,"decoration")})))&&(m=F)}}catch(e){T=!0,A=e}finally{try{!C&&R.return&&R.return()}finally{if(T)throw A}}var I=!0,M=!1,L=void 0;try{for(var D,N=r[Symbol.iterator]();!(I=(D=N.next()).done);I=!0){var F,B=D.value;(F=c.run("renderAnnotation",Ge({},_,{annotation:B,children:m,attributes:Ve({},Ne,"annotation")})))&&(m=F)}}catch(e){M=!0,L=e}finally{try{!I&&N.return&&N.return()}finally{if(M)throw L}}var z=(Ve(t={},Le,!0),Ve(t,Fe,h),t);return i.a.createElement("span",z,m)};nt.propTypes={annotations:d.a.list.isRequired,block:u.block.isRequired,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,index:a.a.number.isRequired,leaves:a.a.object.isRequired,marks:u.marks.isRequired,node:u.node.isRequired,offset:a.a.number.isRequired,parent:u.node.isRequired,text:a.a.string.isRequired};var rt=i.a.memo(nt,(function(e,t){return t.block===e.block&&t.index===e.index&&t.marks===e.marks&&t.parent===e.parent&&t.text===e.text&&t.annotations.equals(e.annotations)&&t.decorations.equals(e.decorations)})),it=i.a.forwardRef((function(e,t){var n,r=e.annotations,o=e.block,a=e.decorations,s=e.node,l=e.parent,u=e.editor,c=e.style,d=s.key,f=s.getLeaves(r,a),p=0;return i.a.createElement("span",Ge({ref:t,style:c},(Ve(n={},Ne,s.object),Ve(n,Me,d),n)),f.map((function(e,t){var n=e.text,r=p;return p+=n.length,i.a.createElement(rt,{key:s.key+"-"+t,block:o,editor:u,index:t,annotations:e.annotations,decorations:e.decorations,marks:e.marks,node:s,offset:r,parent:l,leaves:f,text:n})})))}));it.propTypes={annotations:d.a.map.isRequired,block:u.block,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node.isRequired,style:a.a.object};var ot=i.a.memo(it,(function(e,t){return t.node===e.node&&"block"===t.parent.object&&e.parent.nodes.last()===e.node&&t.parent.nodes.last()!==t.node&&t.annotations.equals(e.annotations)&&t.decorations.equals(e.decorations)})),at=p()("slate:void"),st=function(e){function t(){var e,n,r;He(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),lt.call(r),Ye(r,n)}return Ke(t,e),$e(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.node,o=t.readOnly,a="block"===r.object?"div":"span",s=Ve({},Be,!0),l=i.a.createElement(a,Ge({style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},s),this.renderText()),u=i.a.createElement(a,{contentEditable:!!o&&null},n);this.debug("render",{props:t});var c=(Ve(e={},Ue,!0),Ve(e,Me,r.key),e);return i.a.createElement(a,Ge({contentEditable:!(!o&&"block"!==r.object)&&null},c),o?null:l,u)}}]),t}(i.a.Component);st.propTypes={block:u.block,children:a.a.any.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node.isRequired,readOnly:a.a.bool.isRequired};var lt=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.props.node,a=o.key,s=o.type,l=a+" ("+s+")";at.apply(void 0,[t,""+l].concat(r))},this.renderText=function(){var t=e.props,n=t.annotations,r=t.block,o=t.decorations,a=t.node,s=t.readOnly,l=t.editor,u=t.textRef,c=a.getFirstText();return i.a.createElement(ot,{ref:u,annotations:n,block:"block"===a.object?a:r,decorations:o,editor:l,key:c.key,node:c,parent:a,readOnly:s})}},ut=p()("slate:node"),ct=function(e){function t(){var e,n,r;He(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),dt.call(r),Ye(r,n)}return Ke(t,e),$e(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.editor.run("shouldNodeComponentUpdate",t,e),r=e,i=t;if(null!=n){if(h(!1,'As of slate-react@0.22 the `shouldNodeComponentUpdate` middleware is deprecated. You can pass specific values down the tree using React\'s built-in "context" construct instead.'),n)return!0;h(!1!==n,"Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return r.readOnly!==i.readOnly||(r.node!==i.node||(!!(!r.selection&&i.selection||r.selection&&!i.selection||r.selection&&i.selection&&!r.selection.equals(i.selection))||(!r.annotations.equals(i.annotations)||!r.decorations.equals(i.decorations))))}},{key:"render",value:function(){var e,n=this;this.debug("render",this);var r=this.props,o=r.annotations,a=r.block,s=r.decorations,l=r.editor,u=r.node,c=r.parent,d=r.readOnly,f=r.selection,p=u.getDecorations(l),h=u.nodes.toArray().map((function(e,r){var c="text"===e.object?ot:t,h=f&&ft(u,r,f),m=p.concat(s).map((function(e){return ft(u,r,e)})).filter((function(e){return e})),g=o.map((function(e){return ft(u,r,e)})).filter((function(e){return e}));return i.a.createElement(c,{block:"block"===u.object?u:a,editor:l,annotations:g,decorations:m,selection:h,key:e.key,node:e,parent:u,readOnly:d,ref:function(e){e?n.tmp.nodeRefs[r]=e:delete n.tmp.nodeRefs[r]}})})),m=(Ve(e={},Ne,u.object),Ve(e,Me,u.key),Ve(e,"ref",this.ref),e);u.isLeafBlock()&&("rtl"===u.getTextDirection()&&(m.dir="rtl"));var g=void 0;"block"===u.object?g="renderBlock":"document"===u.object?g="renderDocument":"inline"===u.object&&(g="renderInline");var v=l.run(g,{attributes:m,children:h,editor:l,isFocused:!!f&&f.isFocused,isSelected:!!f,node:u,parent:c,readOnly:d});return l.isVoid(u)?i.a.createElement(st,Ge({},this.props,{textRef:function(e){e?n.tmp.nodeRefs[0]=e:delete n.tmp.nodeRefs[0]}}),v):v}}]),t}(i.a.Component);ct.propTypes={annotations:d.a.map.isRequired,block:u.block,decorations:d.a.list.isRequired,editor:a.a.object.isRequired,node:u.node.isRequired,parent:u.node,readOnly:a.a.bool.isRequired,selection:u.selection};var dt=function(){var e=this;this.tmp={nodeRefs:{}},this.ref=i.a.createRef(),this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=e.props.node,a=o.key,s=o.type;ut.apply(void 0,[t,a+" ("+s+")"].concat(r))}};function ft(e,t,n){if(n.isUnset)return null;var r=e.nodes.get(t),i=n,o=i.start,a=i.end,l=o.path,u=a.path,c=l.first(),d=u.first();if(c===t)o=o.setPath(l.rest());else if(c<t&&t<=d)if("text"===r.object)o=o.moveTo(s.PathUtils.create([t]),0).setKey(r.key);else{var f=r.texts(),p=Qe(f,1)[0],h=Qe(p,2),m=h[0],g=h[1];o=o.moveTo(g,0).setKey(m.key)}else o=null;if(d===t)a=a.setPath(u.rest());else if(c<=t&&t<d)if("text"===r.object){var v=r.text.length;a=a.moveTo(s.PathUtils.create([t]),v).setKey(r.key)}else{var y=r.texts({direction:"backward"}),b=Qe(y,1)[0],_=Qe(b,2),w=_[0],x=_[1];a=a.moveTo(x,w.text.length).setKey(w.key)}else a=null;return o&&a?n=(n=n.setAnchor(o)).setFocus(a):null}var pt=["auto","overlay","scroll"],ht=te&&!!window.navigator.userAgent.match(/os 11_/i);function mt(e){if(!ht&&e.anchorNode){var t=g()(e.anchorNode),n=function(e,t){for(var n=e.parentNode,r=void 0;!r&&n.parentNode;){var i=t.getComputedStyle(n).overflowY;if(pt.includes(i)){r=n;break}n=n.parentNode}return r||t.document.body}(e.anchorNode,t),r=n===t.document.body||n===t.document.documentElement,i=y()(e),o=e.getRangeAt(0).cloneRange();o.collapse(i);var a=o.getBoundingClientRect();X&&o.collapsed&&0===a.top&&0===a.height&&(0===o.startOffset?o.setEnd(o.endContainer,1):o.setStart(o.startContainer,o.startOffset-1),0===(a=o.getBoundingClientRect()).top&&0===a.height&&o.getClientRects().length&&(a=o.getClientRects()[0]));var s=void 0,l=void 0,u=void 0,c=void 0,d=0,f=0,p=0,h=0,m=0,v=0,b=0,_=0;if(r){s=t.innerWidth,l=t.innerHeight,u=t.pageYOffset,c=t.pageXOffset}else{var w=n.offsetWidth,x=n.offsetHeight,k=n.scrollTop,E=n.scrollLeft,S=t.getComputedStyle(n),O=S.borderTopWidth,C=S.borderBottomWidth,T=S.borderLeftWidth,A=S.borderRightWidth,P=S.paddingTop,R=S.paddingBottom,j=S.paddingLeft,I=S.paddingRight,M=n.getBoundingClientRect();s=w,l=x,d=M.top+parseInt(O,10),f=M.left+parseInt(T,10),p=parseInt(O,10)+parseInt(C,10),h=parseInt(T,10)+parseInt(A,10),m=parseInt(P,10),v=parseInt(R,10),b=parseInt(j,10),_=parseInt(I,10),u=k,c=E}var L=a.top+u-d,D=a.left+c-f,N=c,F=u;D<c?N=D-b:D+a.width+h>c+s&&(N=D+h+_-s),L<u?F=L-m:L+a.height+p>u+l&&(F=L+p+v+a.height-l),r?t.scrollTo(N,F):(n.scrollTop=F,n.scrollLeft=N)}}function gt(e){if(Z){var t=window.document.body.createTextRange();t.collapse(),t.select()}else e.removeAllRanges()}var vt=/Permission denied to access property "nodeType"/,yt=p()("slate:content");yt.update=p()("slate:update");var bt=function(e){function t(){var e,n,r;He(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.tmp={isUpdatingSelection:!1,nodeRef:i.a.createRef(),nodeRefs:{},contentKey:0,nativeSelection:{}},r.ref=i.a.createRef(),r.setRef=function(e){r.ref.current=e,r.props.editor.el=e},r.handlers=Re.reduce((function(e,t){return e[t]=function(e){return r.onEvent(t,e)},e}),{}),r.updateSelection=function(){var e=r.props.editor,t=e.value.selection,n=t.isBackward,i=g()(r.ref.current),o=i.getSelection(),a=i.document.activeElement;if(yt.update.enabled&&yt.update("updateSelection",{selection:t.toJSON()}),o){var s=o.rangeCount,l=o.anchorNode,u=!1;t.isBlurred&&a===r.ref.current&&(r.ref.current.blur(),u=!0);var c=!0,d=!0,f=!1,p=void 0;try{for(var m,v=["anchorNode","anchorOffset","focusNode","focusOffset","isCollapsed","rangeCount","type"][Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var y=m.value;r.tmp.nativeSelection[y]!==o[y]&&(c=!1)}}catch(e){f=!0,p=e}finally{try{!d&&v.return&&v.return()}finally{if(f)throw p}}if(t.isUnset&&s&&r.isInEditor(l)&&c&&(gt(o),u=!0),t.isFocused&&a!==r.ref.current&&(r.ref.current.focus({preventScroll:!0}),u=!0),t.isFocused&&t.isSet){var b=!!o.rangeCount&&o.getRangeAt(0),_=e.findDOMRange(t);if(!_)return void h(!1,"Unable to find a native DOM range from the current selection.");var w=_.startContainer,x=_.startOffset,k=_.endContainer,E=_.endOffset;if(b&&(w===b.startContainer&&x===b.startOffset&&k===b.endContainer&&E===b.endOffset||w===b.endContainer&&x===b.endOffset&&k===b.startContainer&&E===b.startOffset))return;u=!0,r.tmp.isUpdatingSelection=!0,gt(o),o.setBaseAndExtent?n?o.setBaseAndExtent(_.endContainer,_.endOffset,_.startContainer,_.startOffset):o.setBaseAndExtent(_.startContainer,_.startOffset,_.endContainer,_.endOffset):o.addRange(_),!0===e.userActionPerformed()&&mt(o),setTimeout((function(){Q&&r.ref.current&&r.ref.current.focus(),r.tmp.isUpdatingSelection=!1,yt.update("updateSelection:setTimeout",{anchorOffset:i.getSelection().anchorOffset})}))}u&&(yt.enabled||yt.update.enabled)&&(yt("updateSelection",{selection:t,native:o,activeElement:a}),yt.update("updateSelection:applied",{selection:t.toJSON(),native:{anchorOffset:o.anchorOffset,focusOffset:o.focusOffset}}))}},r.isInEditor=function(e){var t=void 0;try{if(8===e.nodeType)return!1;t=3===e.nodeType?e.parentNode:e}catch(e){if(Q&&vt.test(e.message))return!1;throw e}return t.isContentEditable&&(t===r.ref.current||t.closest(We.EDITOR)===r.ref.current)},r.onNativeSelectionChange=ae()((function(e){if(!r.props.readOnly){var t=g()(e.target),n=t.document.activeElement,i=t.getSelection();yt.update("onNativeSelectionChange",{anchorOffset:i.anchorOffset}),n===r.ref.current&&(r.tmp.nativeSelection={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset,isCollapsed:i.isCollapsed,rangeCount:i.rangeCount,type:i.type},r.props.onEvent("onSelect",e))}}),100),Ye(r,n)}return Ke(t,e),$e(t,[{key:"componentDidCatch",value:function(e,t){yt("componentDidCatch",{error:e,info:t}),this.setState({})}},{key:"componentDidMount",value:function(){g()(this.ref.current).document.addEventListener("selectionchange",this.onNativeSelectionChange),ie&&this.ref.current.addEventListener("beforeinput",this.handlers.onBeforeInput),this.updateSelection(),this.props.onEvent("onComponentDidMount")}},{key:"componentWillUnmount",value:function(){var e=g()(this.ref.current);e&&e.document.removeEventListener("selectionchange",this.onNativeSelectionChange),ie&&this.ref.current.removeEventListener("beforeinput",this.handlers.onBeforeInput),this.props.onEvent("onComponentWillUnmount")}},{key:"componentDidUpdate",value:function(){yt.update("componentDidUpdate"),this.updateSelection(),this.props.editor.clearUserActionPerformed(),this.props.onEvent("onComponentDidUpdate")}},{key:"onEvent",value:function(e,t){yt("onEvent",e);var n=t.nativeEvent||t,r="keydown"===t.type&&(ve.isUndo(n)||ve.isRedo(n));if(!this.tmp.isUpdatingSelection&&!r||"onSelect"!==e&&"onBlur"!==e&&"onFocus"!==e){if(!ee&&"onSelect"===e){var i=this.props.editor,o=i.value.selection,a=g()(t.target).getSelection(),s=i.findRange(a);if(s&&s.equals(o.toRange()))return void this.updateSelection()}if("onDragEnd"===e||"onDragEnter"===e||"onDragExit"===e||"onDragLeave"===e||"onDragOver"===e||"onDragStart"===e||"onDrop"===e)if(t.target.closest(We.EDITOR)!==this.ref.current)return;("onBeforeInput"!==e&&"onBlur"!==e&&"onCompositionEnd"!==e&&"onCompositionStart"!==e&&"onCopy"!==e&&"onCut"!==e&&"onFocus"!==e&&"onInput"!==e&&"onKeyDown"!==e&&"onKeyUp"!==e&&"onPaste"!==e&&"onSelect"!==e||this.isInEditor(t.target))&&this.props.onEvent(e,t)}}},{key:"render",value:function(){var e,n=this.props,r=this.handlers,o=n.id,a=n.className,s=n.readOnly,l=n.editor,u=n.tabIndex,c=n.role,d=n.tagName,f=n.spellCheck,p=l.value,h=d,m=p.document,g=p.selection,v=Ge({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},s?{}:{WebkitUserModify:"read-write-plaintext-only"},n.style);yt("render",{props:n}),yt.update("render",this.tmp.contentKey,m.text),this.props.onEvent("onRender");var y=(Ve(e={},je,!0),Ve(e,Me,m.key),e),b=le()(this.props,Object.keys(t.propTypes));return i.a.createElement(h,Ge({},b,{key:this.tmp.contentKey},r,y,{ref:this.setRef,contentEditable:!s||null,suppressContentEditableWarning:!0,id:o,className:a,autoCorrect:n.autoCorrect?"on":"off",spellCheck:f,style:v,role:s?null:c||"textbox",tabIndex:u,"data-gramm":!!b["data-gramm"]&&void 0}),i.a.createElement(ct,{annotations:p.annotations,block:null,decorations:Object(ue.List)(),editor:l,node:m,parent:null,readOnly:s,selection:g,ref:this.tmp.nodeRef}))}}]),t}(i.a.Component);bt.propTypes={autoCorrect:a.a.bool.isRequired,className:a.a.string,contentKey:a.a.number,editor:a.a.object.isRequired,id:a.a.string,onEvent:a.a.func.isRequired,readOnly:a.a.bool.isRequired,role:a.a.string,spellCheck:a.a.bool.isRequired,style:a.a.object,tabIndex:a.a.number,tagName:a.a.string},bt.defaultProps={style:{},tagName:"div"};var _t=[].concat(Xe(Re),["commands","decorateNode","queries","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark","schema"]);function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_t.reduce((function(t,n){return n in e&&(t[n]=e[n]),t}),{});return t}function xt(){return{decorateNode:function(){return[]},renderAnnotation:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)},renderBlock:function(e){var t=e.attributes,n=e.children;return i.a.createElement("div",Ge({},t,{style:{position:"relative"}}),n)},renderDecoration:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)},renderDocument:function(e){return e.children},renderEditor:function(e){return e.children},renderInline:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",Ge({},t,{style:{position:"relative"}}),n)},renderMark:function(e){var t=e.attributes,n=e.children;return i.a.createElement("span",t,n)}}}function kt(){return{queries:{findDOMNode:function(e,t){t=s.PathUtils.create(t);var n=e.tmp.contentRef.current;return n?t.size?function e(t,n){if(!t)return null;if(!n.size)return t.ref?t.ref.current||null:t||null;var r=n.first(),i=n.rest();return e(t.tmp.nodeRefs[r],i)}(n.tmp.nodeRef.current,t):n.ref.current||null:null},findDOMPoint:function(e,t){var n=e.findDOMNode(t.path),r=0;if(!n)return null;var i=Array.from(n.querySelectorAll(We.STRING+", "+We.ZERO_WIDTH)),o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value,d=c.childNodes[0],f=d.textContent.length,p=f;c.hasAttribute(De)&&(p=parseInt(c.getAttribute(De),10));var h=r+p;if(t.offset<=h)return{node:d,offset:Math.min(f,Math.max(0,t.offset-r))};r=h}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}return null},findDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=t.isBackward,o=t.isCollapsed,a=e.findDOMPoint(n),s=o?a:e.findDOMPoint(r);if(!a||!s)return null;var l=g()(a.node).document.createRange(),u=i?s:a,c=i?a:s;return l.setStart(u.node,u.offset),l.setEnd(c.node,c.offset),l},findEventRange:function(e,t){t.nativeEvent&&(t=t.nativeEvent);var n=t,r=n.clientX,i=n.clientY,o=n.target;if(null==r||null==i)return null;var a=e.value.document,s=e.findPath(t.target);if(!s)return null;var l=a.getNode(s);if(e.isVoid(l)){var u=o.getBoundingClientRect(),c="inline"===l.object?r-u.left<u.left+u.width-r:i-u.top<u.top+u.height-i,d=a.createRange(),f=c?"moveToEndOfNode":"moveToStartOfNode",p=a[c?"getPreviousText":"getNextText"](s);return p?d[f](p):null}var h=g()(o),m=void 0;if(h.document.caretRangeFromPoint)m=h.document.caretRangeFromPoint(r,i);else if(h.document.caretPositionFromPoint){var v=h.document.caretPositionFromPoint(r,i);(m=h.document.createRange()).setStart(v.offsetNode,v.offset),m.setEnd(v.offsetNode,v.offset)}else if(h.document.body.createTextRange){m=h.document.body.createTextRange();try{m.moveToPoint(r,i)}catch(e){return null}}return e.findRange(m)},findNode:function(e,t){var n=e.findPath(t);return n?e.value.document.getNode(n):null},findPath:function(e,t){var n=e.tmp.contentRef.current,r=t;if(r.hasAttribute(Me)||(r=r.closest(We.KEY)),!r||!r.getAttribute(Me))return null;if(r===n.ref.current)return s.PathUtils.create([]);var i=function e(t,n){if(r===t)return n;if(!t.ref)return null;if(r===t.ref.current)return n;if(!t.tmp)return null;var i=t.tmp.nodeRefs,o=Object.keys(i),a=!0,s=!1,l=void 0;try{for(var u,c=o[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=i[d],p=parseInt(d,10),h=e(f,[].concat(Xe(n),[p]));if(h)return h}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return null}(n.tmp.nodeRef.current,[]);return i?s.PathUtils.create(i):null},findPoint:function(e,t,n){var r=function(e,t){if(1===e.nodeType&&e.childNodes.length){var n=t===e.childNodes.length,r=n?"backward":"forward";for(e=Et(e,n?t-1:t,r);1===e.nodeType&&e.childNodes.length;){var i=n?e.childNodes.length-1:0;e=Et(e,i,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}(t,n),i=r.node,o=r.offset,a=g()(t),s=i.parentNode,l=s.closest(We.LEAF),u=void 0,c=void 0,d=void 0;if(l){u=l.closest(We.TEXT);var f=a.document.createRange();f.setStart(u,0),f.setEnd(i,o);var p=f.cloneContents(),h=p.querySelectorAll(We.ZERO_WIDTH);Array.from(h).forEach((function(e){e.parentNode.removeChild(e)})),c=p.textContent.length,d=u}else{var m=s.closest(We.VOID);if(!m)return null;if(!(l=m.querySelector(We.LEAF)))return null;u=l.closest(We.TEXT),c=(d=l).textContent.length}c===d.textContent.length&&s.hasAttribute(qe)&&c--;var v=e.findPath(u);return v?e.value.document.createPoint({path:v,offset:c}):null},findRange:function(e,t){var n=t.anchorNode||t.startContainer;if(!n)return null;var r=g()(n);(t instanceof r.Range||r.StaticRange&&t instanceof r.StaticRange)&&(t={anchorNode:t.startContainer,anchorOffset:t.startOffset,focusNode:t.endContainer,focusOffset:t.endOffset});var i=t,o=i.anchorNode,a=i.anchorOffset,s=i.focusNode,l=i.focusOffset,u=i.isCollapsed,c=e.value,d=e.findPoint(o,a),f=u?d:e.findPoint(s,l);return d&&f?c.document.createRange({anchor:d,focus:f}):null},findSelection:function(e,t){var n=e.value,r=n.document;if(!t.rangeCount)return null;var i=e.findRange(t);if(!i)return null;var o=i,a=o.anchor,l=o.focus,u=r.getNode(a.path),c=r.getNode(l.path),d=r.getClosestInline(a.path),f=r.getClosestInline(l.path),p=r.getClosestBlock(l.path),h=r.getClosestBlock(a.path);if(h&&!e.isVoid(h)&&0===a.offset&&p&&e.isVoid(p)&&0!==l.offset&&(i=i.setFocus(l.setOffset(0))),d&&!e.isVoid(d)&&a.offset===u.text.length){var m=r.getClosestBlock(a.path),g=r.getDepth(m.key),v=s.PathUtils.drop(a.path,g),y=m.texts({path:v}),b=Qe(y,1)[0];if(b){var _=Qe(b,2)[1],w=a.path.slice(0,g).concat(_);i=i.moveAnchorTo(w,0)}}if(f&&!e.isVoid(f)&&l.offset===c.text.length){var x=r.getClosestBlock(l.path),k=r.getDepth(x.key),E=s.PathUtils.drop(l.path,k),S=x.texts({path:E}),O=Qe(S,1)[0];if(O){var C=Qe(O,2)[1],T=l.path.slice(0,k).concat(C);i=i.moveFocusTo(T,0)}}var A=r.createSelection(i);return A=(A=A.setIsFocused(!0)).set("marks",n.selection.marks)}}}}function Et(e,t,n){for(var r=e.childNodes,i=r[t],o=t,a=!1,s=!1;(8===i.nodeType||1===i.nodeType&&0===i.childNodes.length||1===i.nodeType&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);)o>=r.length?(a=!0,o=t-1,n="backward"):o<0?(s=!0,o=t+1,n="forward"):(i=r[o],"forward"===n&&o++,"backward"===n&&o--);return i||null}function St(e,t){if(e===t)return null;var n=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length!==t.length?n:null}(e,t),r=function(e,t,n){for(var r=e.length,i=t.length,o=Math.min(r,i,n),a=0;a<o;a++){if(e.charAt(r-a-1)!==t.charAt(i-a-1))return a}return e.length!==t.length?o:null}(e,t,Math.min(e.length-n,t.length-n));return{start:n,end:r,total:n+r}}function Ot(e,t){return e.slice(t.start,e.length-t.end)}var Ct=p()("slate:composition-manager"),Tt=String.fromCharCode(65279),At=be.a.unstable_flushControlled;function Pt(e,t){At((function(){t(),e.controller.flush()}))}function Rt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,i=e,o=0;-1!==o&&-1!==(o=i.indexOf(Tt,o));)r>o&&r--,i=""+i.slice(0,o)+i.slice(o+1);var a=i.charAt(i.length-1);n&&"\n"===a&&(i=i.slice(0,-1));var s=i.length;return r>s&&(r=s),{text:i,offset:r}}function jt(e){var t=new window.MutationObserver((function(e){var t;Ct("flush"),(t=l).push.apply(t,Xe(e)),d()})),n=null,r={rootEl:null,diff:null,range:null,domNode:null};function i(){Ct("clearAction"),r.diff=null,r.domNode=null}function o(){Ct("applyDiff");var t=r.diff;if(null!=t){Ct("applyDiff:run");var n=e.value.document,i=e.value.selection.moveAnchorTo(t.path,t.start).moveFocusTo(t.path,t.end);i=n.resolveRange(i),e.insertTextAtRange(i,t.insertText)}}function a(){Ct("splitBlock"),Pt(e,(function(){o(),r.range?e.select(r.range):Ct("splitBlock:NO-SELECTION"),e.splitBlock().focus().restoreDOM(),i()}))}var s=null,l=[],u=null,c=!1;function d(){s&&(window.cancelAnimationFrame(s),s=null),c=!0,u&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame((function(){l.length>0&&function(t){if(Ct("flushAction",t.length,t),r.range&&!r.range.isCollapsed)return void Pt(e,(function(){e.select(r.range).deleteBackward().focus().restoreDOM()}));if(t.length>1){if(t.find((function(t){if("childList"!==t.type)return!1;if(0===t.addedNodes.length)return!1;var n=t.addedNodes[0];if(n.nodeType===window.Node.TEXT_NODE&&"\n"===n.textContent)return!0;if(n.nodeType!==window.Node.ELEMENT_NODE)return!1;var r=n.dataset.key;return null!=r&&!!e.value.document.getClosestBlock(r)})))return void a()}var s=t[0];"characterData"===s.type?function(t){Ct("resolveDOMNode");var n=e.value.document,i=t.closest("[data-key]").dataset.key,o=n.getPath(i),a=n.getClosestBlock(i),s=n.getDescendant(i),l=s.text,u=a.nodes.last()===s,c=Rt(t.textContent,0,u).text;if(c===l)return void(r.diff=null);var d=function(e,t){var n=St(e,t);if(null==n)return null;var r=Ot(t,n),i=Ot(e,n);return{start:n.start,end:e.length-n.end,cursor:n.start+r.length,insertText:r,removeText:i}}(l,c);r.diff={path:o,start:d.start,end:d.end,insertText:d.insertText},Ct("resolveDOMNode:diff",r.diff)}(s.target.parentNode):"childList"===s.type&&(s.removedNodes.length>0?1===t.length?function(t){if(Ct("removeNode"),t.nodeType!==window.Node.ELEMENT_NODE)return;var n=e.value,r=n.document,i=n.selection,o=e.findNode(t),a=r.resolveRange(i.moveToRangeOfNode(o));Pt(e,(function(){e.select(a).delete().restoreDOM()}))}(s.removedNodes[0]):(Ct("mergeBlock"),n.requestAnimationFrame((function(){Pt(e,(function(){o(),e.select(r.range).deleteBackward().focus().restoreDOM(),i()}))}))):s.addedNodes.length>0&&a())}(l),u=null,l=[],c=!1}))}return{clearDiff:function(){Ct("clearDIff"),r.diff=null},connect:function(){Ct("connect",{rootEl:i});var i=e.findDOMNode([]);r.rootEl!==i&&(Ct("connect:run"),n=g()(i),t.observe(i,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}))},disconnect:function(){Ct("disconnect"),t.disconnect(),r.rootEl=null},onKeyDown:d,onCompositionStart:function(){Ct("onCompositionStart")},onCompositionEnd:function(){Ct("onCompositionEnd"),window.setTimeout((function(){r.diff&&(Ct("onCompositionEnd:applyDiff"),Pt(e,(function(){o();var t=n.getSelection().getRangeAt(0),r=Rt(t.startContainer.textContent,t.startOffset),i=e.findRange({anchorNode:t.startContainer,anchorOffset:0,focusNode:t.startContainer,focusOffset:0,isCollapsed:!0}).moveTo(r.offset);e.select(i).focus().restoreDOM()}))),i()}),20)},onSelect:function(t){Ct("onSelect:try"),t=t.nativeEvent?t.nativeEvent:t,window.cancelAnimationFrame(s),s=null,c||(s=window.requestAnimationFrame((function(){Ct("onSelect:save-selection");var n,a=g()(t.target).getSelection(),s=e.findRange(a),l=Rt(a.anchorNode.textContent,a.anchorOffset),u=Rt(a.focusNode.textContent,a.focusOffset);s.anchor.offset!==l.offset&&(s=s.set("anchor",s.anchor.set("offset",l.offset))),s.focus.offset!==u.offset&&(s=s.set("focus",s.focus.set("offset",u.offset))),Ct("onSelect:save-data",{domSelection:(n=a,{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),range:s.toJS()}),a.isCollapsed&&r.node!==a.anchorNode&&null!=r.diff&&(Ct("onSelect:applyDiff",r.diff),o(),e.select(s),i()),r.range=s,r.node=a.anchorNode})))}}}function It(e){var t=new jt(e.editor);return{onComponentDidMount:function(){t.connect()},onComponentDidUpdate:function(){t.connect()},onComponentWillUnmount:function(){t.disconnect()},onCompositionEnd:function(){t.onCompositionEnd()},onCompositionStart:function(){t.onCompositionStart()},onRender:function(){t.disconnect(),t.clearDiff()},onSelect:function(e){!function(e){var t=e.getSelection(),n=t.anchorNode;if(null!=n){var r=n.parentElement.dataset;if(!!r&&"n"===r.slateZeroWidth&&1===n.textContent.length&&0!==t.anchorOffset){var i=e.document.createRange();i.setStart(n,0),i.setEnd(n,0),t.removeAllRanges(),t.addRange(i)}}}(g()(e.target)),t.onSelect(e)}}}function Mt(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Re[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e[i.value]=function(e,t,n){}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e}var Lt={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},Dt=Lt.FRAGMENT,Nt=Lt.HTML,Ft=Lt.TEXT;function Bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var r=g()(e.target),i=r.getSelection(),o=t.value,a=o.document,l=o.fragment,u=o.selection,c=u.start,d=u.end,f=a.getClosestVoid(c.path,t),p=a.getClosestVoid(d.path,t);if(!i.isCollapsed||f){var h=_e.default.serializeNode(l),m=i.getRangeAt(0),v=m.cloneContents(),y=v.childNodes[0];if(v.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(y=e)})),p){var b=m.cloneRange(),_=a.getPath(p.key);if(_){var w=t.findDOMNode(_);b.setEndAfter(w),v=b.cloneContents()}}if(f&&(y=v.childNodes[0].childNodes[1].firstChild),[].slice.call(v.querySelectorAll(We.ZERO_WIDTH)).forEach((function(e){var t="n"===e.getAttribute(qe);e.textContent=t?"\n":""})),3===y.nodeType){var x=r.document.createElement("span");x.style.whiteSpace="pre",x.appendChild(y),v.appendChild(x),y=x}y.setAttribute(Ie,h);var k=s.Value.create({document:l}),E=we.default.serialize(k),S=r.document.createElement("div");if(S.appendChild(v),e.clipboardData&&e.clipboardData.setData&&!Z)return e.preventDefault(),e.clipboardData.setData(Ft,E),e.clipboardData.setData(Dt,h),e.clipboardData.setData(Nt,S.innerHTML),void n();var O=e.target.closest(We.EDITOR);S.setAttribute("contenteditable",!0),S.style.position="absolute",S.style.left="-9999px",O.appendChild(S),i.selectAllChildren(S),r.requestAnimationFrame((function(){O.removeChild(S),gt(i),i.addRange(m),n()}))}}var zt=Lt.FRAGMENT,Ut=Lt.HTML,qt=Lt.NODE,Wt=Lt.RICH,Ht=Lt.TEXT,$t=/ data-slate-fragment="([^\s"]+)"/;function Vt(e){!Z&&e.nativeEvent&&(e=e.nativeEvent);var t=e.dataTransfer||e.clipboardData,n=Gt(t,zt),r=Gt(t,qt),i=Gt(t,Ut),o=Gt(t,Wt),a=Gt(t,Ht),s=void 0;if(!n&&i&&~i.indexOf(" "+Ie+'="')){var l=$t.exec(i),u=Qe(l,2),c=(u[0],u[1]);c&&(n=c)}if(a){var d=function(e){var t="SLATE-DATA-EMBED::";if(e.substring(0,t.length)!==t)return{TEXT:e};try{return JSON.parse(e.substring(t.length))}catch(e){throw new Error("Unable to parse custom Slate drag event data.")}}(a);d[zt]&&(n=d[zt]),d[qt]&&(r=d[qt]),d[Ht]&&(a=d[Ht])}n&&(n=_e.default.deserializeNode(n)),r&&(r=_e.default.deserializeNode(r));try{t.items&&t.items.length?s=Array.from(t.items).map((function(e){return"file"===e.kind?e.getAsFile():null})).filter((function(e){return e})):t.files&&t.files.length&&(s=Array.from(t.files))}catch(e){t.files&&t.files.length&&(s=Array.from(t.files))}var f={files:s,fragment:n,html:i,node:r,rich:o,text:a};return f.type=function(e){return e.fragment?"fragment":e.node?"node":e.rich&&e.html?"html":e.rich&&e.text?"text":e.files&&e.files.length?"files":e.html?"html":e.text?"text":"unknown"}(f),f}function Gt(e,t){return e.types&&e.types.length?-1!==Array.from(e.types).indexOf(t)&&e.getData(t)||null:t===Ht&&e.getData("Text")||null}var Kt=Lt.TEXT;function Yt(e,t,n){var r=Lt[t.toUpperCase()];if(!r)throw new Error('Cannot set unknown transfer type "'+r+'".');e.nativeEvent&&(e=e.nativeEvent);var i=e.dataTransfer||e.clipboardData;try{i.setData(r,n),i.setData("text",i.getData("text"))}catch(e){var o="SLATE-DATA-EMBED::",a=i.getData(Kt),s={};if(a.substring(0,o.length)===o)try{s=JSON.parse(a.substring(o.length))}catch(e){throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else s[Kt]=a;s[r]=n;var l=""+o+JSON.stringify(s);i.setData(Kt,l)}}var Qt=p()("slate:after");function Xt(){var e=null,t=!1;return{onBeforeInput:function(e,t,n){var r=t.value;if(!!e.nativeEvent)return e.preventDefault(),t.insertText(e.data),n();var i=e.getTargetRanges(),o=Qe(i,1)[0];if(!o)return n();Qt("onBeforeInput",{event:e}),e.preventDefault();var a=r.document,s=r.selection,l=t.findRange(o);switch(e.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":t.deleteAtRange(l);break;case"deleteWordBackward":t.deleteWordBackwardAtRange(l);break;case"deleteWordForward":t.deleteWordForwardAtRange(l);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":t.deleteLineBackwardAtRange(l);break;case"deleteSoftLineForward":case"deleteHardLineForward":t.deleteLineForwardAtRange(l);break;case"insertLineBreak":case"insertParagraph":a.hasVoidParent(s.start.path,t)?t.moveToStartOfNextText():t.splitBlockAtRange(l);break;case"insertFromYank":case"insertReplacementText":case"insertText":var u=null==e.data?e.dataTransfer.getData("text/plain"):e.data;if(null==u)break;t.insertTextAtRange(l,u,s.marks),s.marks&&r.document!==t.value.document&&t.select({marks:null})}n()},onBlur:function(e,t,n){Qt("onBlur",{event:e}),t.blur(),n()},onClick:function(e,t,n){if(t.readOnly)return n();var r=t.value.document,i=t.findPath(e.target);if(!i)return n();Qt("onClick",{event:e});var o=r.getNode(i),a=r.getAncestors(i);o&&(t.isVoid(o)||a.some((function(e){return t.isVoid(e)})))&&t.focus().moveToEndOfNode(o),n()},onCopy:function(e,t,n){Qt("onCopy",{event:e}),Bt(e,t),n()},onCut:function(e,t,n){Qt("onCut",{event:e}),Bt(e,t,(function(){var e=t.value,n=e.document,r=e.selection,i=r.end,o=void 0;if(r.isCollapsed){var a=!0,s=!1,l=void 0;try{for(var u,c=n.ancestors(i.path)[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=Qe(d,2),p=f[0],h=f[1];if(t.isVoid(p)){o=h;break}}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}}o?t.removeNodeByKey(o):t.delete()})),n()},onDragEnd:function(t,n,r){Qt("onDragEnd",{event:t}),e=null,r()},onDragStart:function(t,n,r){Qt("onDragStart",{event:t}),e=!0;var i=n.value,o=i.document,a=n.findPath(t.target),s=o.getNode(a),l=o.getAncestors(a),u=s&&(n.isVoid(s)||l.some((function(e){return n.isVoid(e)}))),c=i.blocks.some((function(e){return e===s}));u&&!c&&n.moveToRangeOfNode(s);var d=n.value.fragment;Yt(t,"fragment",_e.default.serializeNode(d)),r()},onDrop:function(t,n,r){var i=n.value,o=i.document,a=i.selection,s=g()(t.target),l=n.findEventRange(t);if(!l)return r();Qt("onDrop",{event:t});var u=Vt(t),c=u.type,d=u.fragment,f=u.text;n.focus();var p=n.findDOMNode(l.focus.path);p&&p.dispatchEvent(new MouseEvent("mouseup",{view:s,bubbles:!0,cancelable:!0}));var h=a;if(n.select(l),e&&n.deleteAtRange(h),"text"===c||"html"===c){var m=l.anchor,v=o.hasVoidParent(m.path,n);if(v){for(var y=m.path,b=o.getNode(m.path);v;){var _=o.texts({path:y}),w=Qe(_,1)[0];if(!w)break;var x=Qe(w,2);b=x[0],y=x[1],v=o.hasVoidParent(y,n)}b&&n.moveToStartOfNode(b)}f&&f.split("\n").forEach((function(e,t){t>0&&n.splitBlock(),n.insertText(e)}))}"fragment"===c&&n.insertFragment(d),r()},onFocus:function(e,n,r){Qt("onFocus",{event:e}),!t||Z||J?n.focus():n.deselect().focus(),r()},onInput:function(e,t,n){Qt("onInput");var r=g()(e.target).getSelection(),i=t.findSelection(r);i?t.select(i):t.blur();var o=r.anchorNode;t.reconcileDOMNode(o),n()},onKeyDown:function(e,t,n){Qt("onKeyDown",{event:e});var r=t.value,i=r.document,o=r.selection,a=o.start,s=i.hasVoidParent(a.path,t);if(ve.isSplitBlock(e)&&!te)return s?t.moveToStartOfNextText():t.splitBlock();if(ve.isDeleteBackward(e)&&!te)return t.deleteCharBackward();if(ve.isDeleteForward(e)&&!te)return t.deleteCharForward();if(ve.isDeleteLineBackward(e))return t.deleteLineBackward();if(ve.isDeleteLineForward(e))return t.deleteLineForward();if(ve.isDeleteWordBackward(e))return t.deleteWordBackward();if(ve.isDeleteWordForward(e))return t.deleteWordForward();if(ve.isRedo(e))return t.redo();if(ve.isUndo(e))return t.undo();if(ve.isMoveLineBackward(e))return e.preventDefault(),t.moveToStartOfBlock();if(ve.isMoveLineForward(e))return e.preventDefault(),t.moveToEndOfBlock();if(ve.isExtendLineBackward(e))return e.preventDefault(),t.moveFocusToStartOfBlock();if(ve.isExtendLineForward(e))return e.preventDefault(),t.moveFocusToEndOfBlock();if(ve.isMoveBackward(e))return e.preventDefault(),o.isCollapsed?t.moveBackward():t.moveToStart();if(ve.isMoveForward(e))return e.preventDefault(),o.isCollapsed?t.moveForward():t.moveToEnd();if(ve.isMoveWordBackward(e))return e.preventDefault(),t.moveWordBackward();if(ve.isMoveWordForward(e))return e.preventDefault(),t.moveWordForward();if(ve.isExtendBackward(e)){var l=i.getNode(a.path),u=i.texts({path:a.path,direction:"backward"}),c=Qe(u,1)[0],d=!1;if(c){var f=Qe(c,2)[1];d=i.hasVoidParent(f,t)}if(s||d||""===l.text)return e.preventDefault(),t.moveFocusBackward()}if(ve.isExtendForward(e)){var p=i.getNode(a.path),h=i.texts({path:a.path}),m=Qe(h,1)[0],g=!1;if(m){var v=Qe(m,2)[1];g=i.hasVoidParent(v,t)}if(s||g||""===p.text)return e.preventDefault(),t.moveFocusForward()}n()},onMouseDown:function(e,n,r){Qt("onMouseDown",{event:e}),t=!0,r()},onMouseUp:function(e,n,r){Qt("onMouseUp",{event:e}),t=!1,r()},onPaste:function(e,t,n){Qt("onPaste",{event:e});var r=t.value,i=Vt(e),o=i.type,a=i.fragment,s=i.text;if("fragment"===o&&t.insertFragment(a),"text"===o||"html"===o){if(!s)return n();var l=r.document,u=r.selection,c=r.startBlock;if(t.isVoid(c))return n();var d=c,f=l.getInsertMarksAtRange(u),p=we.default.deserialize(s,{defaultBlock:d,defaultMarks:f}).document;t.insertFragment(p)}n()},onSelect:function(e,n,r){Qt("onSelect",{event:e});var i=g()(e.target).getSelection(),o=n.findSelection(i);o?n.select(o):n.blur(),t=!1,r()}}}var Zt=p()("slate:before");function Jt(){var e=null,t=0,n=!1,r=!1,i=!1,o=!1;return{onBeforeInput:function(e,t,n){var r=!!e.nativeEvent;t.readOnly||(o=!0,r&&ie||(Zt("onBeforeInput",{event:e}),n()))},onBlur:function(t,n,i){if(!r&&!n.readOnly){var o=t.relatedTarget,a=t.target,s=g()(a);if(e!==s.document.activeElement){if(o){var l=n.findDOMNode([]);if(o===l)return;if(o.hasAttribute(Be))return;var u=n.findNode(o);if(l.contains(o)&&u&&!n.isVoid(u))return}Zt("onBlur",{event:t}),i()}}},onClick:function(e,t,n){Zt("onClick",{event:e}),o=!0,n()},onCompositionEnd:function(e,r,i){var a=t;o=!0,window.requestAnimationFrame((function(){t>a||(n=!1)})),Zt("onCompositionEnd",{event:e}),i()},onCompositionStart:function(e,r,i){n=!0,t++;var a=r.value.selection;o=!0,a.isCollapsed||r.delete(),Zt("onCompositionStart",{event:e}),i()},onCopy:function(e,t,n){var i=g()(e.target);r=!0,i.requestAnimationFrame((function(){return r=!1})),Zt("onCopy",{event:e}),n()},onCut:function(e,t,n){if(!t.readOnly){var i=g()(e.target);r=!0,i.requestAnimationFrame((function(){return r=!1})),Zt("onCut",{event:e}),n()}},onDragEnd:function(e,t,n){i=!1,Zt("onDragEnd",{event:e}),n()},onDragEnter:function(e,t,n){Zt("onDragEnter",{event:e}),n()},onDragExit:function(e,t,n){Zt("onDragExit",{event:e}),n()},onDragLeave:function(e,t,n){Zt("onDragLeave",{event:e}),n()},onDragOver:function(e,t,n){var r=t.findNode(e.target);r&&!t.isVoid(r)||e.preventDefault(),Z&&e.preventDefault(),i||(i=!0,Z||(e.nativeEvent.dataTransfer.dropEffect="move")),Zt("onDragOver",{event:e}),n()},onDragStart:function(e,t,n){i=!0,Zt("onDragStart",{event:e}),n()},onDrop:function(e,t,n){t.readOnly||(o=!0,e.preventDefault(),Zt("onDrop",{event:e}),n())},onFocus:function(t,n,i){if(!r&&!n.readOnly){var o=n.findDOMNode([]),a=g()(t.target);e=a.document.activeElement,Q&&t.target!==o?o.focus():(Zt("onFocus",{event:t}),i())}},onInput:function(e,t,r){n||t.value.selection.isBlurred||(o=!0,Zt("onInput",{event:e}),r())},onKeyDown:function(e,t,r){t.readOnly||(n?ve.isCompose(e)&&e.preventDefault():(!te&&(ve.isBold(e)||ve.isDeleteBackward(e)||ve.isDeleteForward(e)||ve.isDeleteLineBackward(e)||ve.isDeleteLineForward(e)||ve.isDeleteWordBackward(e)||ve.isDeleteWordForward(e)||ve.isItalic(e)||ve.isRedo(e)||ve.isSplitBlock(e)||ve.isTransposeCharacter(e)||ve.isUndo(e))&&e.preventDefault(),o=!0,Zt("onKeyDown",{event:e}),r()))},onPaste:function(e,t,n){t.readOnly||(o=!0,e.preventDefault(),Zt("onPaste",{event:e}),n())},onSelect:function(t,i,a){if(!r&&!n&&!i.readOnly){var s=g()(t.target);e=s.document.activeElement,o=!0,Zt("onSelect",{event:t}),a()}},queries:{userActionPerformed:function(){return o}},commands:{clearUserActionPerformed:function(){return o=!1,null}}}}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=Jt(),i=Xt(),o=ee?[It(e),Mt()]:[];return[].concat(o,[r],Xe(n),[i])}function tn(e){var t=e.nativeEvent||e;switch(t.type){case"keydown":return t.type+" "+JSON.stringify(t.key);case"input":case"beforeinput":case"textInput":return t.type+":"+t.inputType+" "+JSON.stringify(t.data);default:return t.type}}var nn=p()("slate:events");function rn(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Re[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e[i.value]=function(e,t,n){var r=tn(e);nn(r),n()}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e}var on=p()("slate:batch-events");function an(){var e=null,t=null,n=[];function r(){on("\n"+n.join("\n")),n.length=0}function i(i){0===n.length&&(e=new Date);var o=tn(i),a=new Date;n.push("- "+(a-e)+" - "+o),clearTimeout(t),t=setTimeout(r,2e3)}var o={},a=!0,s=!1,l=void 0;try{for(var u,c=Re[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){o[u.value]=function(e,t,n){i(e),n()}}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return o}var sn=p()("slate:mutations"),ln=["type","oldValue","target","addedNodes","removedNodes","attributeName","attributeNamespace","nextSibling","previousSibling"];function un(e){if(e.nodeType===window.Node.TEXT_NODE)return e.textContent;if(e.nodeType===window.Node.ELEMENT_NODE){var t=e.outerHTML,n=e.innerHTML;return null==t?JSON.stringify(e.textContent):t.slice(0,t.indexOf(n))}return"Node(type="+e.nodeType}function cn(){var e=new window.MutationObserver((function(e){var t=Array.from(e).map((function(e){var t={};return ln.forEach((function(n){var r=e[n];if(null!=r)if(r instanceof window.NodeList){if(0===r.length)return;t[n]=Array.from(r).map(un).join(", ")}else r instanceof window.Node&&(r=un(r)),t[n]=r})),t}));sn.apply(void 0,[t.length+" Mutations"].concat(Xe(t)))})),t=null;function n(n,r,i){var o=r.findDOMNode([]);if(o===t)return i();sn("start"),e.observe(o,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}),t=o,i()}return{onComponentDidMount:n,onComponentDidUpdate:n,onComponentWillUnmount:function(n,r,i){sn("stop"),e.disconnect(),t=null,i()}}}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.placeholder,n=void 0===t?"":t,r=p.a.enabled("slate:events")?rn():null,i=p.a.enabled("slate:batch-events")?an():null,o=p.a.enabled("slate:mutations")?cn():null,a=xt(),s={commands:{reconcileNode:function(e,t){var n=e.value,r=n.document,i=n.selection,o=r.getPath(t.key),a=e.findDOMNode(o),s=r.getClosestBlock(o),l=t.text,u=a.textContent,c=s.nodes.last()===t,d=u.charAt(u.length-1);if(c&&"\n"===d&&(u=u.slice(0,-1)),l!==u){var f=i.moveAnchorTo(o,0).moveFocusTo(o,l.length);f=r.resolveRange(f),e.insertTextAtRange(f,u,t.marks)}},reconcileDOMNode:function(e,t){var n=t.parentElement.closest("[data-key]"),r=e.findNode(n);e.reconcileNode(r)}}},l=kt(),u=wt(e),c=en(e),d={commands:{restoreDOM:function(e){var t=e.tmp.contentRef.current.tmp;t.contentKey=t.contentKey+1}}},f=ee?null:Te({placeholder:n,when:function(e,t){return"document"===t.object&&""===t.text&&1===t.nodes.size&&1===Array.from(t.texts()).length}});return[r,i,o,u,c,d,f,a,s,l]}var fn=p()("slate:editor"),pn=function(e){function t(){var e,n,r;He(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=Ye(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={value:r.props.defaultValue,contentKey:0},r.tmp={mounted:!1,change:null,resolves:0,updates:0,contentRef:i.a.createRef()},r.resolveController=Pe((function(){var e=arguments[5];h(r.tmp.resolves<5||r.tmp.resolves!==r.tmp.updates,"A Slate <Editor> component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),r.tmp.resolves++;var t=e(Ge({},r.props,{editor:r,value:r.props.value||r.state.value})),n=function(e){r.tmp.mounted?r.handleChange(e):r.tmp.change=e};r.controller=new s.Editor({plugins:[t],onChange:n},{controller:r,construct:!1}),r.controller.run("onConstruct")})),Ye(r,n)}return Ke(t,e),$e(t,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){var e=this;fn("render",this);var n=this.props,r=n.commands,o=n.placeholder,a=n.plugins,s=n.queries,l=n.schema;this.resolveController(a,l,r,s,o,dn);var u=this.props,c=u.options,d=u.readOnly,f=u.value,p=this.state.value,h=f||p,m=this.state.contentKey;this.controller.setReadOnly(d),this.controller.setValue(h,c);var g=this.props,v=g.autoCorrect,y=g.className,b=g.id,_=g.role,w=g.spellCheck,x=g.tabIndex,k=g.style,E=g.tagName,S=le()(this.props,Object.keys(t.propTypes)),O=i.a.createElement(bt,Ge({},S,{ref:this.tmp.contentRef,autoCorrect:v,className:y,contentKey:m,editor:this,id:b,onEvent:function(t,n){return e.run(t,n)},readOnly:d,role:_,spellCheck:w,style:k,tabIndex:x,tagName:E}));return this.controller.run("renderEditor",Ge({},this.props,{editor:this,children:O}))}},{key:"handleChange",value:function(e){var t=this.props.onChange;this.state.value&&this.setState({value:e.value}),t(e)}},{key:"applyOperation",value:function(){var e;return(e=this.controller).applyOperation.apply(e,arguments)}},{key:"command",value:function(){var e;return(e=this.controller).command.apply(e,arguments)}},{key:"hasCommand",value:function(){var e;return(e=this.controller).hasCommand.apply(e,arguments)}},{key:"hasQuery",value:function(){var e;return(e=this.controller).hasQuery.apply(e,arguments)}},{key:"normalize",value:function(){var e;return(e=this.controller).normalize.apply(e,arguments)}},{key:"query",value:function(){var e;return(e=this.controller).query.apply(e,arguments)}},{key:"registerCommand",value:function(){var e;return(e=this.controller).registerCommand.apply(e,arguments)}},{key:"registerQuery",value:function(){var e;return(e=this.controller).registerQuery.apply(e,arguments)}},{key:"run",value:function(){var e;return(e=this.controller).run.apply(e,arguments)}},{key:"withoutNormalizing",value:function(){var e;return(e=this.controller).withoutNormalizing.apply(e,arguments)}},{key:"call",value:function(){var e;return(e=this.controller).call.apply(e,arguments)}},{key:"change",value:function(){var e;return(e=this.controller).change.apply(e,arguments)}},{key:"onChange",value:function(){var e;return(e=this.controller).onChange.apply(e,arguments)}},{key:"applyOperations",value:function(){var e;return(e=this.controller).applyOperations.apply(e,arguments)}},{key:"setOperationFlag",value:function(){var e;return(e=this.controller).setOperationFlag.apply(e,arguments)}},{key:"getFlag",value:function(){var e;return(e=this.controller).getFlag.apply(e,arguments)}},{key:"unsetOperationFlag",value:function(){var e;return(e=this.controller).unsetOperationFlag.apply(e,arguments)}},{key:"withoutNormalization",value:function(){var e;return(e=this.controller).withoutNormalization.apply(e,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){Object(xe.a)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){Object(xe.a)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),t}(i.a.Component);function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMNode(key)` helper is deprecated in favor of `editor.findDOMNode(path)`."),s.Node.isNode(e)&&(e=e.key);var n=t.document.querySelector("["+Me+'="'+e+'"]');if(!n)throw new Error('Unable to find a DOM node for "'+e+'". This is often because of forgetting to add `props.attributes` to a custom component.');return n}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMPoint(point)` helper is deprecated in favor of `editor.findDOMPoint(point)`.");var n=hn(e.key,t),r=0,i=Array.from(n.querySelectorAll(We.STRING+", "+We.ZERO_WIDTH)),o=!0,a=!1,s=void 0;try{for(var l,u=i[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value,d=c.childNodes[0],f=d.textContent.length,p=f;c.hasAttribute(De)&&(p=parseInt(c.getAttribute(De),10));var m=r+p;if(e.offset<=m){var g=Math.min(f,Math.max(0,e.offset-r));return{node:d,offset:g}}r=m}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}return null}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;h(!1,"As of slate-react@0.22 the `findDOMRange(range)` helper is deprecated in favor of `editor.findDOMRange(range)`.");var n=e.anchor,r=e.focus,i=e.isBackward,o=e.isCollapsed,a=mn(n,t),s=o?a:mn(r,t);if(!a||!s)return null;var l=t.document.createRange(),u=i?s:a,c=i?a:s;return l.setStart(u.node,u.offset),l.setEnd(c.node,c.offset),l}function vn(e,t){h(!1,"As of slate-react@0.22 the `findNode(element)` helper is deprecated in favor of `editor.findNode(element)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.closest(We.KEY);if(!n)return null;var r=n.getAttribute(Me);return r&&t.value.document.getNode(r)||null}function yn(e,t){h(!1,"As of slate-react@0.22 the `findPath(element)` helper is deprecated in favor of `editor.findPath(element)`.");var n=vn(e,t);return n?t.value.document.getPath(n):null}function bn(e,t,n){h(!1,"As of slate-react@0.22 the `findPoint(node, offset)` helper is deprecated in favor of `editor.findPoint(node, offset)`."),Object(xe.a)(!s.Value.isValue(n),"As of Slate 0.42.0, the `findPoint` utility takes an `editor` instead of a `value`.");var r=function(e,t){if(1===e.nodeType&&e.childNodes.length){var n=t===e.childNodes.length,r=n?"backward":"forward";for(e=_n(e,n?t-1:t,r);1===e.nodeType&&e.childNodes.length;){var i=n?e.childNodes.length-1:0;e=_n(e,i,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}(e,t),i=r.node,o=r.offset,a=g()(e),l=i.parentNode,u=l.closest(We.LEAF),c=void 0,d=void 0;if(u){var f=a.document.createRange(),p=u.closest(We.TEXT);f.setStart(p,0),f.setEnd(i,o),d=p;var m=f.cloneContents(),v=m.querySelectorAll("["+qe+"]");c=m.textContent.length-v.length}else{var y=l.closest(We.VOID);if(!y)return null;if(!(u=y.querySelector(We.LEAF)))return null;c=(d=u).textContent.length}c===d.textContent.length&&l.hasAttribute(qe)&&c--;var b=u.getAttribute(Fe);if(!b)return null;var _=Je.parse(b).key,w=n.value;return w.document.hasDescendant(_)?w.document.createPoint({key:_,offset:c}):null}function _n(e,t,n){for(var r=e.childNodes,i=r[t],o=t,a=!1,s=!1;(8===i.nodeType||1===i.nodeType&&0===i.childNodes.length||1===i.nodeType&&"false"===i.getAttribute("contenteditable"))&&(!a||!s);)o>=r.length?(a=!0,o=t-1,n="backward"):o<0?(s=!0,o=t+1,n="forward"):(i=r[o],"forward"===n&&o++,"backward"===n&&o--);return i||null}function wn(e,t){h(!1,"As of slate-react@0.22 the `findRange(selection)` helper is deprecated in favor of `editor.findRange(selection)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.anchorNode||e.startContainer;if(!n)return null;var r=g()(n);(e instanceof r.Range||r.StaticRange&&e instanceof r.StaticRange)&&(e={anchorNode:e.startContainer,anchorOffset:e.startOffset,focusNode:e.endContainer,focusOffset:e.endOffset});var i=e,o=i.anchorNode,a=i.anchorOffset,l=i.focusNode,u=i.focusOffset,c=i.isCollapsed,d=t.value,f=bn(o,a,t),p=c?f:bn(l,u,t);return f&&p?d.document.createRange({anchor:f,focus:p}):null}function xn(e,t){h(!1,"As of slate-react@0.22 the `getEventRange(event, editor)` helper is deprecated in favor of `editor.findEventRange(event)`."),Object(xe.a)(!s.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),e.nativeEvent&&(e=e.nativeEvent);var n=e,r=n.clientX,i=n.clientY,o=n.target;if(null==r||null==i)return null;var a=t.value.document,l=yn(e.target,t);if(!l)return null;var u=a.getNode(l);if(t.isVoid(u)){var c=o.getBoundingClientRect(),d="inline"===u.object?r-c.left<c.left+c.width-r:i-c.top<c.top+c.height-i,f=a.createRange(),p=d?"moveToEndOfNode":"moveToStartOfNode",m=a[d?"getPreviousText":"getNextText"](l);return m?f[p](m):null}var v=g()(o),y=void 0;if(v.document.caretRangeFromPoint)y=v.document.caretRangeFromPoint(r,i);else if(v.document.caretPositionFromPoint){var b=v.document.caretPositionFromPoint(r,i);(y=v.document.createRange()).setStart(b.offsetNode,b.offset),y.setEnd(b.offsetNode,b.offset)}else if(v.document.body.createTextRange){y=v.document.body.createTextRange();try{y.moveToPoint(r,i)}catch(e){return null}}var _=wn(y,t);return _||null}pn.propTypes=Ge({autoCorrect:a.a.bool,autoFocus:a.a.bool,className:a.a.string,defaultValue:u.value,id:a.a.string,onChange:a.a.func,options:a.a.object,placeholder:a.a.any,plugins:a.a.array,readOnly:a.a.bool,role:a.a.string,schema:a.a.object,spellCheck:a.a.bool,style:a.a.object,tabIndex:a.a.number,value:u.value},Re.reduce((function(e,t){return e[t]=a.a.func,e}),{}),["decorateNode","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark"].reduce((function(e,t){return e[t]=a.a.func,e}),{})),pn.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};var kn={Editor:pn,cloneFragment:Bt,findDOMNode:hn,findDOMPoint:mn,findDOMRange:gn,findNode:vn,findPath:yn,findPoint:bn,findRange:wn,getEventRange:xn,getEventTransfer:Vt,setEventTransfer:Yt,ReactPlugin:dn};t.default=kn},function(e,t,n){"use strict";n.r(t),n.d(t,"createFilter",(function(){return r.b})),n.d(t,"defaultTheme",(function(){return r.c})),n.d(t,"mergeStyles",(function(){return r.d})),n.d(t,"components",(function(){return l.m})),n.d(t,"NonceProvider",(function(){return x}));var r=n(176),i=n(351),o=n(80),a=n(81),s=n(91),l=n(22),u=n(0),c=n.n(u),d=n(78);var f=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),p=n(37);n(203);var h=function(e,t,n){for(var r=0,i=0;r=i,i=Object(p.h)(),38===r&&12===i&&(t[n]=1),!Object(p.o)(i);)Object(p.g)();return Object(p.m)(e,p.i)},m=function(e,t){return Object(p.c)(function(e,t){var n=-1,r=44;do{switch(Object(p.o)(r)){case 0:38===r&&12===Object(p.h)()&&(t[n]=1),e[n]+=h(p.i-1,t,n);break;case 2:e[n]+=Object(p.d)(r);break;case 4:if(44===r){e[++n]=58===Object(p.h)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Object(p.e)(r)}}while(r=Object(p.g)());return e}(Object(p.a)(e),t))},g=new WeakMap,v=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||g.get(n))&&!r){g.set(e,!0);for(var i=[],o=m(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},y=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},b=[p.j],_=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||b;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l=[v,y];var u,c=[p.n,Object(p.k)((function(e){u.insert(e)}))],d=Object(p.f)(l.concat(r,c));o=function(e,t,n,r){var i;u=n,i=e?e+"{"+t.styles+"}":t.styles,Object(p.l)(Object(p.b)(i),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new f({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},w=n(114),x=(n(685),n(686),n(1458),n(688),n(689),n(344),n(1460),n(54),function(e){Object(s.a)(n,e);var t=Object(l.j)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).createEmotionCache=function(e,t){return _({nonce:e,key:t})},r.createEmotionCache=Object(w.a)(r.createEmotionCache),r}return Object(a.a)(n,[{key:"render",value:function(){var e=this.createEmotionCache(this.props.nonce,this.props.cacheKey);return c.a.createElement(d.a,{value:e},this.props.children)}}]),n}(u.Component)),k=Object(i.a)(r.a);t.default=k},function(e,t,n){"use strict";n.r(t),n.d(t,"DrawEvent",(function(){return z})),n.d(t,"createRegularPolygon",(function(){return q})),n.d(t,"createBox",(function(){return W}));var r,i=n(8),o=n(73),a=n(3),s=n(85),l=n(65),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r){var i=e.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,t);else{var o=n||0;i.setCenterAndRadius(t,o,r)}return i}return u(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);n[0]=i[0]+u*o,n[1]=i[1]+u*a;for(l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return Object(a.k)(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return i.a.CIRCLE},t.prototype.intersectsExtent=function(e){var t=this.getExtent();if(Object(a.E)(e,t)){var n=this.getCenter();return e[0]<=n[0]&&e[2]>=n[0]||(e[1]<=n[1]&&e[3]>=n[1]||Object(a.s)(e,this.intersectsCoordinate.bind(this)))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=Object(s.a)(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,a=this.stride;o<a;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(l.a)(n,0,n.length,r,e,t,n)),this.changed()},t.prototype.translate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(l.d)(n,0,n.length,r,e,t,n)),this.changed()},t}(o.a);c.prototype.transform;var d=c,f=n(63),p=n(20),h=n(182),m=n(276),g=n(156),v=n(118),y=n(36),b=n(361),_=n(230),w=n(369),x=n(131),k=n(79),E=n(93),S=n(482),O=n(483),C=n(38),T=n(47),A=n(278),P=n(14),R=n(60),j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I="Point",M="LineString",L="Polygon",D="Circle",N="drawstart",F="drawend",B="drawabort",z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return j(t,e),t}(f.a),U=function(e){function t(t){var n=this,r=t;r.stopDown||(r.stopDown=C.a),(n=e.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=function(e){switch(e){case i.a.POINT:case i.a.MULTI_POINT:return I;case i.a.LINE_STRING:case i.a.MULTI_LINE_STRING:return M;case i.a.POLYGON:case i.a.MULTI_POLYGON:return L;case i.a.CIRCLE:return D;default:throw new Error("Invalid type: "+e)}}(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===L?3:2,n.maxPoints_=n.mode_===D?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:C.b;var o,a=t.geometryFunction;if(!a){var s,l=n.mode_;if(l===D)a=function(e,t,n){var r=t||new d([NaN,NaN]),i=Object(P.e)(e[0],n),o=Object(R.f)(i,Object(P.e)(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o));var a=Object(P.l)();return a&&r.transform(n,a),r};else l===I?s=x.a:l===M?s=g.a:l===L&&(s=E.a),a=function(e,t,n){return t?l===L?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])]):t.setCoordinates([]):t.setCoordinates(e):t=new s(e),t}}return n.geometryFunction_=a,n.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new S.default({source:new O.default({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:(o=Object(A.b)(),function(e,t){return o[e.getGeometry().getType()]}),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:T.g,n.freehandCondition_,t.freehand?n.freehandCondition_=T.c:n.freehandCondition_=t.freehandCondition?t.freehandCondition:T.i,n.addChangeListener(m.a.ACTIVE,n.updateState_),n}return j(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===p.a.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==I&&this.freehandCondition_(t);var n=t.type===y.a.POINTERMOVE,r=!0;!this.freehand_&&this.lastDragTime_&&t.type===y.a.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&t.type===y.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),r=!1):this.freehand_&&t.type===y.a.POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=t.type===y.a.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===y.a.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===y.a.DBLCLICK&&(r=!1),e.prototype.handleEvent.call(this,t)&&r},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new v.a(y.a.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(e.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==I||(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.preventDefault(),t},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===I)t=!0;else if(i===D)t=2===this.sketchCoords_.length;else if(i===M)n=this.sketchCoords_.length>this.minPoints_;else if(i===L){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var u=r[s],c=a.getPixelFromCoordinate(u),d=e[0]-c[0],f=e[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(d*d+f*f)<=p){this.finishCoordinate_=u;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new h.a(new x.a(e)),this.updateSketchFeatures_())},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new h.a);var t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new g.a(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))},t.prototype.startDrawing_=function(e){var t=this.getMap().getView().getProjection();this.finishCoordinate_=e,this.mode_===I?this.sketchCoords_=e.slice():this.mode_===L?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new h.a(new g.a(this.sketchLineCoords_)));var n=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new h.a,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(n),this.updateSketchFeatures_(),this.dispatchEvent(new z(N,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){var t,n,r=this.getMap(),o=this.sketchFeature_.getGeometry(),a=r.getView().getProjection();(this.mode_===I?n=this.sketchCoords_:this.mode_===L?(n=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(r.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):n=(t=this.sketchCoords_)[t.length-1],n[0]=e[0],n[1]=e[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_)&&this.sketchPoint_.getGeometry().setCoordinates(e);if(o.getType()===i.a.POLYGON&&this.mode_!==L)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===M||o===D?(this.finishCoordinate_=e.slice(),(n=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),this.geometryFunction_(n,r,i)):o===L&&((n=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===M||r===D){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var o=this.finishCoordinate_.slice();e[e.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(e,t,n),t.getType()===i.a.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===L){(e=this.sketchCoords_[0]).splice(-2,1);var a=this.sketchLine_.getGeometry();if(e.length>=2){o=e[e.length-2].slice();e[e.length-1]=o,this.createOrUpdateSketchPoint_(o)}a.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===M?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===L&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),this.type_===i.a.MULTI_POINT?e.setGeometry(new _.a([t])):this.type_===i.a.MULTI_LINE_STRING?e.setGeometry(new b.a([t])):this.type_===i.a.MULTI_POLYGON&&e.setGeometry(new w.a([t])),this.dispatchEvent(new z(F,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new z(B,e))},t.prototype.appendCoordinates=function(e){var t,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(e[0]),n===M||n===D)t=this.sketchCoords_;else{if(n!==L)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new h.a(new x.a(n)),this.updateSketchFeatures_(),this.dispatchEvent(new z(N,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)},t}(k.b);function q(e,t){return function(n,r,i){var o=Object(P.e)(n[0],i),a=Object(P.e)(n[n.length-1],i),s=Math.sqrt(Object(R.f)(o,a)),l=r||Object(E.b)(new d(o),e),u=t;if(!t&&0!==t){var c=a[0]-o[0],f=a[1]-o[1];u=Math.atan2(f,c)}Object(E.d)(l,o,s,u);var p=Object(P.l)();return p&&l.transform(i,p),l}}function W(){return function(e,t,n){var r=Object(a.b)([e[0],e[e.length-1]].map((function(e){return Object(P.e)(e,n)}))),i=[[Object(a.u)(r),Object(a.v)(r),Object(a.C)(r),Object(a.B)(r),Object(a.u)(r)]],o=t;o?o.setCoordinates(i):o=new E.a(i);var s=Object(P.l)();return s&&o.transform(n,s),o}}t.default=U},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";var r=n(105),i=n.n(r);t.a=function(e,t){return i()(e,t)}},function(e,t,n){var r=n(261),i=n(89);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){
/**
* @license uploadcare-widget v3.17.2
*
* Copyright (c) 2020 Uploadcare, Inc.
*
* This source code is licensed under the BSD 2-Clause License
* found in the LICENSE file in the root directory of this source tree.
*/
e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=y(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var E=function(){return"object"===("undefined"==typeof window?"undefined":a(window))},S=Object.freeze({__proto__:null,isWindowDefined:E});E()&&window.XDomainRequest&&n.default.ajaxTransport((function(e){var t;if(e.crossDomain&&e.async)return e.timeout&&(e.xdrTimeout=e.timeout,delete e.timeout),{send:function(n,r){function i(e,n,i,o){t.onload=t.onerror=t.ontimeout=function(){},t=void 0,r(e,n,i,o)}(t=new XDomainRequest).onload=function(){i(200,"OK",{text:t.responseText},"Content-Type: "+t.contentType)},t.onerror=function(){i(404,"Not Found")},t.onprogress=function(){},t.ontimeout=function(){i(0,"timeout")},t.timeout=e.xdrTimeout||Number.MAX_VALUE,t.open(e.type,e.url.replace(/^https?:/,"")),t.send(e.hasContent&&e.data||null)},abort:function(){t&&(t.onerror=function(){},t.abort())}}}));var O=E()&&!!(window.File&&window.FileList&&window.FileReader),C=E()&&!(!window.FormData||!O),T=E()&&function(){var e;return"draggable"in(e=document.createElement("div"))||"ondragstart"in e&&"ondrop"in e}(),A=E()&&function(){var e;return!(!(e=document.createElement("canvas")).getContext||!e.getContext("2d"))}(),P=O&&T,R=null,j=E()&&/^[^(]+\(iP(?:hone|od|ad);\s*(.+?)\)/.exec(navigator.userAgent);if(j){var I=/OS (\d*)_(\d*)/.exec(j[1]);I&&(R=+I[1]+I[2]/10)}var M=E()&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),L=!1;try{E()&&new window.Blob&&(L=window.Blob)}catch(e){}var D=E()&&(window.URL||window.webkitURL||!1),N=D&&D.createObjectURL&&D,F=E()&&(null!=window.FileReader?window.FileReader.prototype.readAsArrayBuffer:void 0)&&window.FileReader,B=function(){var e;try{var t;return null!=(e=window.console)&&"function"==typeof e.log?(t=e).log.apply(t,arguments):void 0}catch(e){}},z=function(){var e;if(!(null!=(e=window.console)?e.debug:void 0))return B.apply(void 0,["Debug:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).debug.apply(t,arguments)}catch(e){}},U=function(){var e;if(!(null!=(e=window.console)?e.warn:void 0))return B.apply(void 0,["Warning:"].concat(Array.prototype.slice.call(arguments)));try{var t;return(t=window.console).warn.apply(t,arguments)}catch(e){}},q={},W=function(e){if(null==q[e])return q[e]=!0,U(e)},H=[].indexOf,$=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],H.call(i,t)<0&&i.push(t);return i},V=function(e){return setTimeout(e,0)},G=function(e,t){for(var n;t;)n=e%t,e=t,t=n;return e},K=function(e){var t,n;return t=!1,n=null,function(){return t||(n=e.apply(this,arguments),t=!0),n}},Y=function(e){return n.default.Deferred().resolve(e).promise()},Q=function(e,t,r,i){var o,a;return a=n.default.Deferred(),o=function(e,t){return e&&t?function(){return t.call(this,e.apply(this,arguments))}:e||t},e.then(o(t,a.resolve),o(r,a.reject),o(i,a.notify)),a.promise()},X=function(e,t){var r;return r={},n.default.each(t,(function(t,i){var o=e[i];n.default.isFunction(o)?r[i]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=o.apply(e,n);return a===e?r:a}:r[i]=o})),r},Z=function(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()},J=function(e){var t;return(t=e.add).add=e.add,t.remove=e.remove,t},ee=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},te=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)\??([^#]*)#?(.*)$/,ne=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,re=new RegExp("".concat(ne.source,"~[0-9]+"),"i"),ie=new RegExp("^/?(".concat(ne.source,")(?:/(-/(?:[^/]+/)+)?([^/]*))?$"),"i"),oe=function(e){return ie.exec(te.exec(e)[3])},ae=function(e){return e.replace(/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},se=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i";return t=n.default.map(e.split("*"),ae),new RegExp("^"+t.join(".+")+"$",r)},le=function(e){var t;return"http:"!==(t=document.location.protocol)&&(t="https:"),e.replace(/^\/\//,t+"//").replace(/\/+$/,"")},ue=function(e,t){if(e.length>t){var n=Math.ceil((t-3)/2),r=Math.floor((t-3)/2);return e.slice(0,n)+"..."+e.slice(-r)}return e},ce=function(e,t,n){var r,i;return e[0]>t[0]||e[1]>t[1]||n?(i=t[0]/e[0],r=t[1]/e[1],!t[0]||t[1]&&i>r?[Math.round(r*e[0]),t[1]]:[t[0],Math.round(i*e[1])]):e.slice()},de=function(e,t,r,i){var o,a,s,l,u,c,d;if(c=i.width,a=i.height,l=t.preferedSize,s="",(d=c===r[0]&&a===r[1])||(s+="-/crop/".concat(c,"x").concat(a,"/").concat(i.left,",").concat(i.top,"/")),o=t.downscale&&(c>l[0]||a>l[1]),u=t.upscale&&(c<l[0]||a<l[1]),o||u){var f=_(l,2);i.sw=f[0],i.sh=f[1],s+="-/resize/".concat(l.join("x"),"/")}else d||(s+="-/preview/");return(e=n.default.extend({},e)).cdnUrlModifiers=s,e.cdnUrl="".concat(e.originalUrl).concat(s||""),e.crop=i,e},fe=["image/*","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/avif","image/avif-sequence",".heif",".heifs",".heic",".heics",".avif",".avifs"].join(","),pe=function(e,t,r){var i,o,a;return o=null,""===(i=t.inputAcceptTypes)&&(i=t.imagesOnly?fe:null),(a=function(){return o=(t.multiple?n.default('<input type="file" multiple>'):n.default('<input type="file">')).attr("accept",i).css({position:"absolute",top:0,opacity:0,margin:0,padding:0,width:"auto",height:"auto",cursor:e.css("cursor")}).on("change",(function(){return r(this),n.default(this).hide(),a()})),e.append(o)})(),e.css({position:"relative",overflow:"hidden"}).mousemove((function(e){var t,r,i,a=n.default(this).offset();return t=a.left,r=a.top,i=o.width(),o.css({left:e.pageX-t-i+10,top:e.pageY-r-10})}))},he=function(e,t,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return""===(i=t.inputAcceptTypes)&&(i=t.imagesOnly?fe:null),n.default(t.multiple?'<input type="file" multiple>':'<input type="file">').attr("accept",i).attr(o).css({position:"fixed",bottom:0,opacity:0}).on("change",(function(){return r(this),n.default(this).remove()})).appendTo(e).focus().click().hide()},me="B KB MB GB TB PB EB ZB YB".split(" "),ge=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e=parseInt(e,10),isNaN(e))return o;for(t=2,r=0,i=1e3-5*Math.pow(10,2-Math.max(t,3));e>i&&r<me.length-1;)r++,e/=1024;return e+=1e-15,n=Math.max(0,t-Math.floor(e).toFixed(0).length),e=Number(e.toFixed(n)),"".concat(a).concat(e," ").concat(me[r]).concat(s)},ve={dataType:"json",crossDomain:!0,cache:!1},ye=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.default.ajax(n.default.extend({url:e,type:t,data:r},i,ve)).then((function(e){var t,r;return e.error?("string"==typeof e.error?(t=e.error,r=e.error_code):(t=e.error.content,r=e.error.error_code),n.default.Deferred().reject({message:t,code:r})):e}),(function(t,n,r){var i;return i="".concat(n," (").concat(r,")"),U("JSONP unexpected error: ".concat(i," while loading ").concat(e)),i}))},be=function(e,t,n,r){var i,o,a,s,l,u;if(window.HTMLCanvasElement.prototype.toBlob)return e.toBlob(r,t,n);for(a=(a=e.toDataURL(t,n)).split(","),o=window.atob(a[1]),i=new Uint8Array(o.length),s=l=0,u=o.length;l<u;s=l+=1)i[s]=o.charCodeAt(s);return r(new window.Blob([i],{type:/:(.+\/.+);/.exec(a[0])[1]}))},_e=function(e){var t,n,r;return r=0,t=[],n=function(){var e;return t.length?(e=t.shift(),V((function(){return e(n)}))):r-=1},function(i){return!e||r<e?(r+=1,V((function(){return i(n)}))):t.push(i)}},we=[["notify","progress",2],["resolve","done",0],["reject","fail",1]],xe=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n.default.Deferred((function(t){return n.default.each(we,(function(i,o){var a;return a=n.default.isFunction(r[o[2]])&&r[o[2]],e[o[1]]((function(){var r;return(r=a&&a.apply(this,arguments))&&n.default.isFunction(r.promise)?r.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this===e?t.promise():this,a?[r]:arguments)}))}))})).promise()},ke=55,Ee=110,Se=165,Oe=255,Ce="rgba(".concat(ke,", ").concat(Ee,", ").concat(Se,", ").concat(Oe/255,")");function Te(e,t){try{var n=[e-1,t-1,1,1],r=document.createElement("canvas");r.width=1,r.height=1;var i=document.createElement("canvas");i.width=e,i.height=t;var o=r.getContext("2d"),a=i.getContext("2d");a&&(a.fillStyle=Ce,a.fillRect.apply(a,n),o.drawImage(i,e-1,t-1,1,1,0,0,1,1));var s=o&&o.getImageData(0,0,1,1).data,l=!1;return s&&(l=s[0]===ke&&s[1]===Ee&&s[2]===Se&&s[3]===Oe),i.width=i.height=1,l}catch(n){return B("Failed to test for max canvas size of ".concat(e,"x").concat(t,"."),n),!1}}function Ae(e,t){var n={};return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=t(i,n);return a in n?n[a]:n[a]=e.apply(void 0,i)}}var Pe={squareSide:[Math.floor(Math.sqrt(5e6)),4096,8192,11180,10836,11402,14188,16384],dimension:[4096,8192,16384,32767,65535]},Re=Pe.squareSide[Pe.squareSide.length-1];function je(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=n.default.Deferred();return V((function(){var t=e.apply(void 0,r);o.resolve(t)})),o.promise()}}function Ie(e,t){for(var n=_(e,1)[0],r=Object.keys(t).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})),i=0;i<r.length;i++){var o=r[i],a=!!t[o];if(o>n&&a)return o;if(o<n&&!a)return o}return n}var Me=je(Ae(Te,Ie)),Le=je(Ae(Te,Ie));function De(e,t){var r=n.default.Deferred(),i=Pe.squareSide.find((function(n){return n*n>=e*t})),o=Pe.dimension.find((function(n){return n>=e&&n>=t}));if(!i||!o)return r.reject();var a=[Me(i,i),Le(o,1)];return n.default.when.apply(n.default,a).done((function(e,t){e&&t?r.resolve():r.reject()})),r.promise()}var Ne,Fe,Be,ze,Ue,qe,We,He,$e,Ve,Ge,Ke,Ye,Qe,Xe,Ze,Je,et,tt,nt=[].indexOf;Ue={live:!0,manualStart:!1,locale:null,localePluralize:null,localeTranslations:null,systemDialog:!1,crop:!1,previewStep:!1,imagesOnly:!1,clearable:!1,multiple:!1,multipleMax:1e3,multipleMin:1,multipleMaxStrict:!1,imageShrink:!1,pathValue:!0,tabs:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive",preferredTypes:"",inputAcceptTypes:"",doNotStore:!1,publicKey:null,secureSignature:"",secureExpire:"",pusherKey:"79ae88bd931ea68464d9",cdnBase:"https://ucarecdn.com",urlBase:"https://upload.uploadcare.com",socialBase:"https://social.uploadcare.com",previewProxy:null,previewUrlCallback:null,remoteTabSessionKey:null,imagePreviewMaxSize:26214400,multipartMinSize:10485760,multipartPartSize:5242880,multipartMinLastPartSize:1048576,multipartConcurrency:4,multipartMaxAttempts:3,parallelDirectUploads:10,passWindowOpen:!1,cameraMirrorDefault:!0,enableAudioRecording:!0,enableVideoRecording:!0,videoPreferredMimeTypes:null,audioBitsPerSecond:null,videoBitsPerSecond:null,scriptBase:"//ucarecdn.com/widget/".concat("3.17.2","/uploadcare/"),debugUploads:!1,integration:""},Je={multipleMax:{from:0,to:1e3}},Be={multipleMax:{min:1,max:1e3}},Ye={tabs:{all:"file camera url facebook gdrive gphotos dropbox instagram evernote flickr onedrive box vk huddle",default:Ue.tabs}},Qe=E()&&(document.currentScript||(tt=document.getElementsByTagName("script"))[tt.length-1]),(He=E()&&n.default(Qe).data("integration"))&&null!=He&&(Ue=n.default.extend(Ue,{integration:He})),Xe=function(e){return n.default.isArray(e)||(e=(e=n.default.trim(e))?e.split(" "):[]),e},Ne=function(e,t){var n,r,i,o,a,s,l,u,c=Object.prototype.hasOwnProperty;for(n=0,a=t.length;n<a;n++){if(o=t[n],u=l=Xe(e[o]),c.apply(Ye,[o]))for(u=[],i=0,s=l.length;i<s;i++)r=l[i],c.apply(Ye[o],[r])?u=u.concat(Xe(Ye[o][r])):u.push(r);e[o]=$(u)}return e},et=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=le(e[r]));return e},qe=function(e,t){var r,i,o,a;for(r=0,o=t.length;r<o;r++)null!=e[i=t[r]]&&("string"==typeof(a=e[i])?(a=n.default.trim(a).toLowerCase(),e[i]=!("false"===a||"disabled"===a)):e[i]=!!a);return e},We=function(e,t){var n,r,i;for(n=0,i=t.length;n<i;n++)null!=e[r=t[n]]&&(e[r]=parseInt(e[r]));return e},$e=function(e){return e._userAgent="UploadcareWidget/".concat("3.17.2","/").concat(e.publicKey," (JavaScript").concat(e.integration?"; ".concat(e.integration):"",")"),e},Ze=function(e,t){var n,r;for(n in t)r=t[n],null!=e[n]&&e[n]===r.from&&(e[n]=r.to);return e},Fe=function(e,t){var n,r,i;for(n in t){var o=t[n];i=o.min,r=o.max,null!=e[n]&&(e[n]=Math.min(Math.max(e[n],i),r))}return e},Ge=function(e){var t;return{downscale:"x"===(t=/^([0-9]+)([x:])([0-9]+)\s*(|upscale|minimum)$/i.exec(n.default.trim(e.toLowerCase()))||[])[2],upscale:!!t[4],notLess:"minimum"===t[4],preferedSize:t.length?[+t[1],+t[3]]:void 0}},Ke=function(e){var t=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i.exec(n.default.trim(e.toLowerCase()))||[];if(!t.length)return!1;var r=t[1]*t[2],i=Re*Re;return r>i?(W("Shrinked size can not be larger than ".concat(Math.floor(i/1e3/1e3),"MP. ")+"You have set ".concat(t[1],"x").concat(t[2]," (")+"".concat(Math.ceil(r/1e3/100)/10,"MP).")),!1):{quality:t[3]?t[3]/100:void 0,size:r}},ze=function(e,t){var n,r,i,o;return this.previewProxy?(r=(i=!/\?/.test(this.previewProxy))||!/=$/.test(this.previewProxy),n=!i&&!/[&?=]$/.test(this.previewProxy),o=encodeURIComponent(e),r&&(o="url="+o),n&&(o="&"+o),i&&(o="?"+o),this.previewProxy+o):e},Ve=function(e){var t;return Ne(e,["tabs","preferredTypes","videoPreferredMimeTypes"]),et(e,["cdnBase","socialBase","urlBase","scriptBase"]),qe(e,["doNotStore","imagesOnly","multiple","clearable","pathValue","previewStep","systemDialog","debugUploads","multipleMaxStrict","cameraMirrorDefault"]),We(e,["multipleMax","multipleMin","multipartMinSize","multipartPartSize","multipartMinLastPartSize","multipartConcurrency","multipartMaxAttempts","parallelDirectUploads"]),Ze(e,Je),Fe(e,Be),$e(e),!1===e.crop||n.default.isArray(e.crop)||(/^(disabled?|false|null)$/i.test(e.crop)?e.crop=!1:n.default.isPlainObject(e.crop)?e.crop=[e.crop]:e.crop=n.default.map((""+e.crop).split(","),Ge)),e.imageShrink&&!n.default.isPlainObject(e.imageShrink)&&(e.imageShrink=Ke(e.imageShrink)),(e.crop||e.multiple)&&(e.previewStep=!0),C||(e.systemDialog=!1),e.validators&&(e.validators=e.validators.slice()),e.previewProxy&&!e.previewUrlCallback&&(e.previewUrlCallback=ze),-1!==(t=e.tabs.indexOf("skydrive"))&&(e.tabs[t]="onedrive"),e};var rt,it=function(){var e,t,n;for(e in t={},Ue)null!=(n=window["UPLOADCARE_".concat(Z(e))])&&(t[e]=n);return t},ot=K((function(e,t){var r;return t||(Ue=n.default.extend(Ue,it())),r=Ve(n.default.extend(Ue,e||{})),st.fire(r),r})),at=function(e){var t;return t=n.default.extend({},ot()),n.default.isEmptyObject(e)||(t=Ve(n.default.extend(t,e))),t},st=E()&&n.default.Callbacks("once memory"),lt=function(){function e(){s(this,e),this.urls=[],this.styles=[]}return c(e,[{key:"addUrl",value:function(e){if(!/^https?:\/\//i.test(e))throw new Error("Embedded urls should be absolute. "+e);if(!(nt.call(this.urls,e)>=0))return this.urls.push(e)}},{key:"addStyle",value:function(e){return this.styles.push(e)}}]),e}(),ut=function(e,t){var r;return r=n.default.Deferred(),t&&(e.src=t),e.complete?r.resolve(e):(n.default(e).one("load",(function(){return r.resolve(e)})),n.default(e).one("error",(function(){return r.reject(e)}))),r.promise()},ct=function e(t){return n.default.isArray(t)?n.default.when.apply(null,n.default.map(t,e)):t.src?ut(t):ut(new window.Image,t)},dt=function(e){var t=n.default.Deferred();return n.default("<video></video>").on("loadeddata",t.resolve).on("error",t.reject).attr("src",e).get(0).load(),t.promise()},ft=function(){var e=n.default.Deferred();if(void 0!==rt)e.resolve(rt);else{var t=new window.Image;t.onload=function(){rt=t.naturalWidth<t.naturalHeight,t.src="//:0",e.resolve(rt)},t.src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k="}return e.promise()},pt=function(e,t,r){var i=n.default.Deferred();return V((function(){try{var n=document.createElement("canvas"),o=n.getContext("2d");n.width=t,n.height=r,o.imageSmoothingQuality="high",o.drawImage(e,0,0,t,r),e.src="//:0",e.width=e.height=1,i.resolve(n)}catch(e){B("Failed to shrink image to size ".concat(t,"x").concat(r,"."),e),i.reject(e)}})),i.promise()},ht=function(e,t,r,i,o){var a=function(e,t,n,r){var i=[],o=t,a=n;do{i.push([o,a]),o=Math.round(o/r),a=Math.round(a/r)}while(o<e*r);return i.reverse()}(t,r,i,o),s=n.default.Deferred(),l=n.default.Deferred();l.resolve(e);var u,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(a);try{var d=function(){var e=_(u.value,2),i=e[0],o=e[1];l=l.then((function(e){var t=n.default.Deferred();return De(i,o).then((function(){return t.resolve(e,!1)})).fail((function(){return t.resolve(e,!0)})),t.promise()})).then((function(e,t){return t?e:pt(e,i,o)})).then((function(e){return s.notify((t-i)/(t-r)),e}))};for(c.s();!(u=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}return l.done((function(e){s.resolve(e)})),l.fail((function(e){s.reject(e)})),s.promise()},mt=function(e,t){var r=n.default.Deferred();if(.71*e.width*e.height*.71<t.size)return r.reject("not required");var i=e.width,o=e.height,a=i/o,s=Math.floor(Math.sqrt(t.size*a)),l=Math.floor(t.size/Math.sqrt(t.size*a));return De(s,l).fail((function(){r.reject("not supported")})).then((function(){(!("imageSmoothingQuality"in document.createElement("canvas").getContext("2d"))||R||M?ht(e,i,s,l,.71):function(e,t,n){return pt(e,t,n)}(e,s,l)).done((function(e){return r.resolve(e)})).progress((function(e){return r.notify(e)})).fail((function(){return r.reject("not supported")}))})),r.promise()},gt=E()&&window.DataView,vt=_e(1),yt=function(e,t){var r=n.default.Deferred();return N&&gt&&L?(vt((function(i){r.always(i),Ct(e).then((function(e){if(e)return r.reject("skipped"),n.default.Deferred().reject()})).then((function(){return Ot(e).fail((function(){r.reject("not image")}))})).done((function(i){r.notify(.1);var o=n.default.when(xt(e),ft(),kt(e)).always((function(e,a,s){r.notify(.2);var l="resolved"===o.state(),u=mt(i,t);u.progress((function(e){return r.notify(.2+.6*e)})),u.fail(r.reject),u.done((function(i){var o="image/jpeg",u=t.quality||.8;!l&&Rt(i)&&(o="image/png",u=void 0),be(i,o,u,(function(t){i.width=i.height=1,r.notify(.9);var o=n.default.Deferred().resolve(t);e&&(o=o.then((function(t){return Et(t,e,a)})).catch((function(){return t}))),(null==s?void 0:s.length)>0&&(o=o.then((function(e){return St(e,s)})).catch((function(){return t}))),o.done(r.resolve),o.fail((function(){return r.resolve(t)}))}))}))}))}))})),r.promise()):r.reject("support")},bt=function(e,t,r,i,o){var a,s;return a=n.default.Deferred(),N?((s=ct(N.createObjectURL(e))).always((function(e){return N.revokeObjectURL(e.src)})),s.fail((function(){return a.reject("not image")})),s.done((function(s){return a.always((function(){s.src="//:0"})),o&&s.width*s.height>o?a.reject("max source"):n.default.when(xt(e),ft()).always((function(e,n){var o=n?1:At(e)||1,l=o>4,u=l?[s.height,s.width]:[s.width,s.height],c=_(ce(u,[t,r]),2),d=c[0],f=c[1],p=[[1,0,0,1,0,0],[-1,0,0,1,d,0],[-1,0,0,-1,d,f],[1,0,0,-1,0,f],[0,1,1,0,0,0],[0,1,-1,0,d,0],[0,-1,-1,0,d,f],[0,-1,1,0,0,f]][o-1];if(!p)return a.reject("bad image");var h=document.createElement("canvas");h.width=d,h.height=f;var m=h.getContext("2d");if(m.transform.apply(m,p),l){var g=[f,d];d=g[0],f=g[1]}return i&&(m.fillStyle=i,m.fillRect(0,0,d,f)),m.drawImage(s,0,0,d,f),a.resolve(h,u)}))})),a.promise()):a.reject("support")},_t=function(e){var t,r,i,o,a;return a=function(e,n){var r;return(r=new F).onload=function(){return n(new gt(r.result))},r.onerror=function(e){return t.reject("reader",e)},r.readAsArrayBuffer(e)},i=function(){return a(e.slice(r,r+128),(function(e){var t,n,i;for(t=n=0,i=e.byteLength;i>=0?n<i:n>i;t=i>=0?++n:--n)if(255===e.getUint8(t)){r+=t;break}return o()}))},o=function(){var n;return n=r,a(e.slice(r,r+=4),(function(o){var s,l;return 4!==o.byteLength||255!==o.getUint8(0)?t.reject("corrupted"):218===(l=o.getUint8(1))?t.resolve():(s=o.getUint16(2)-2,a(e.slice(r,r+=s),(function(e){return e.byteLength!==s?t.reject("corrupted"):(t.notify(n,s,l,e),i())})))}))},t=n.default.Deferred(),F&&gt?(r=2,a(e.slice(0,2),(function(e){return 65496!==e.getUint16(0)?t.reject("not jpeg"):i()})),t.promise()):t.reject("support")},wt=function(e,t,r){var i,o,a,s;return i=n.default.Deferred(),a=[],o=[],(s=_t(e)).fail(i.reject),s.progress((function(e,n,r){if(r===t)return a.push(e),o.push(n)})),s.done((function(){var n,s,l,u,c,d,f,p,h;for(f=[e.slice(0,2)],u=0,d=r.length;u<d;u++)n=r[u],(l=new gt(new ArrayBuffer(4))).setUint16(0,65280+t),l.setUint16(2,n.byteLength+2),f.push(l.buffer),f.push(n);for(p=2,s=c=0,h=a.length;h>=0?c<h:c>h;s=h>=0?++c:--c)a[s]>p&&f.push(e.slice(p,a[s])),p=a[s]+o[s]+4;return f.push(e.slice(p,e.size)),i.resolve(new L(f,{type:e.type}))})),i.promise()},xt=function(e){var t=null,r=_t(e);return r.progress((function(e,n,r,i){if(!t&&225===r&&i.byteLength>=14&&1165519206===i.getUint32(0)&&0===i.getUint16(4))return t=i})),r.then((function(){return t}),(function(){return n.default.Deferred().reject(t)}))},kt=function(e){var t=[],r=_t(e);return r.progress((function(e,n,r,i){226===r&&1229144927===i.getUint32(0)&&1347571526===i.getUint32(4)&&1229735168===i.getUint32(8)&&t.push(i)})),r.then((function(){return t}),(function(){return n.default.Deferred().reject(t)}))},Et=function(e,t,n){return n&&Tt(t,1),wt(e,225,[t.buffer])},St=function(e,t){return wt(e,226,t.map((function(e){return e.buffer})))},Ot=function(e){var t=n.default.Deferred();return St(e,[]).catch((function(){return e})).then((function(e){var n=ct(N.createObjectURL(e));n.always((function(e){N.revokeObjectURL(e.src)})),n.fail((function(){t.reject()})),n.done((function(e){t.resolve(e)}))})).fail((function(){t.reject()})),t.promise()},Ct=function(e){var t=[1,3],n=[192,193,194,195,197,198,199,201,202,203,205,206,207],r=!1,i=_t(e);return i.progress((function(e,i,o,a){if(!r&&n.indexOf(o)>=0){var s=a.getUint8(5);t.indexOf(s)<0&&(r=!0)}})),i.then((function(){return r})).catch((function(){return r}))},Tt=function(e,t){Pt(e,(function(n,r){return e.setUint16(n,t,r)}))},At=function(e){return Pt(e,(function(t,n){return e.getUint16(t,n)}))},Pt=function(e,t){var n,r,i,o;if(!e||e.byteLength<14||1165519206!==e.getUint32(0)||0!==e.getUint16(4))return null;if(18761===e.getUint16(6))r=!0;else{if(19789!==e.getUint16(6))return null;r=!1}if(42!==e.getUint16(8,r))return null;for(i=8+e.getUint32(10,r),n=0,o=e.getUint16(i-2,r);o>=0?n<o:n>o;o>=0?++n:--n){if(e.byteLength<i+10)return null;if(274===e.getUint16(i,r))return t(i+8,r);i+=12}return null},Rt=function(e){var t,n,r,i,o,a;for((t=document.createElement("canvas")).width=t.height=50,(n=t.getContext("2d")).drawImage(e,0,0,50,50),r=n.getImageData(0,0,50,50).data,t.width=t.height=1,i=o=3,a=r.length;o<a;i=o+=4)if(r[i]<254)return!0;return!1},jt=function(){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.settings=n,this.sourceInfo=i,this.fileId=null,this.fileName=null,this.sanitizedName=null,this.fileSize=null,this.isStored=null,this.cdnUrlModifiers=null,this.isImage=null,this.imageInfo=null,this.mimeType=null,this.s3Bucket=null,(r=this.sourceInfo).source||(r.source=this.sourceName),this.__setupValidation(),this.__initApi()}return c(e,[{key:"__startUpload",value:function(){return n.default.Deferred().resolve()}},{key:"__completeUpload",value:function(){var e,t,n,r,i=this;return n=0,this.settings.debugUploads&&(z("Load file info.",this.fileId,this.settings.publicKey),t=setInterval((function(){return z("Still waiting for file ready.",n,i.fileId,i.settings.publicKey)}),5e3),this.apiDeferred.done((function(){return z("File uploaded.",n,i.fileId,i.settings.publicKey)})).always((function(){return clearInterval(t)}))),r=100,(e=function(){if("pending"===i.apiDeferred.state())return n+=1,i.__updateInfo().done((function(){return setTimeout(e,r),r+=50}))})()}},{key:"__updateInfo",value:function(){var e=this;return ye("".concat(this.settings.urlBase,"/info/"),"GET",{jsonerrors:1,file_id:this.fileId,pub_key:this.settings.publicKey,wait_is_ready:+(null===this.isImage)},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return e.settings.debugUploads&&B("Can't load file info. Probably removed.",e.fileId,e.settings.publicKey,t.message),e.__rejectApi("info",t)})).done(this.__handleFileData.bind(this))}},{key:"__handleFileData",value:function(e){if(this.fileName=e.original_filename,this.sanitizedName=e.filename,this.fileSize=e.size,this.isImage=e.is_image,this.imageInfo=e.image_info,this.mimeType=e.mime_type,this.isStored=e.is_stored,this.s3Bucket=e.s3_bucket,e.default_effects&&(this.cdnUrlModifiers="-/"+e.default_effects),this.s3Bucket&&this.cdnUrlModifiers&&this.__rejectApi("baddata"),this.__runValidators(),e.is_ready)return this.__resolveApi()}},{key:"__progressInfo",value:function(){var e;return{state:this.__progressState,uploadProgress:this.__progress,progress:"ready"===(e=this.__progressState)||"error"===e?1:.9*this.__progress,incompleteFileInfo:this.__fileInfo()}}},{key:"__fileInfo",value:function(){var e;return e=this.s3Bucket?"https://".concat(this.s3Bucket,".s3.amazonaws.com/").concat(this.fileId,"/").concat(this.sanitizedName):"".concat(this.settings.cdnBase,"/").concat(this.fileId,"/"),{uuid:this.fileId,name:this.fileName,size:this.fileSize,isStored:this.isStored,isImage:!this.s3Bucket&&this.isImage,originalImageInfo:this.imageInfo,mimeType:this.mimeType,originalUrl:this.fileId?e:null,cdnUrl:this.fileId?"".concat(e).concat(this.cdnUrlModifiers||""):null,cdnUrlModifiers:this.cdnUrlModifiers,sourceInfo:this.sourceInfo}}},{key:"__setupValidation",value:function(){if(this.validators=this.settings.validators||this.settings.__validators||[],this.settings.imagesOnly)return this.validators.push((function(e){if(!1===e.isImage)throw new Error("image")}))}},{key:"__runValidators",value:function(){var e,t,n,r,i,o,a;n=this.__fileInfo();try{for(i=this.validators,o=[],t=0,r=i.length;t<r;t++)a=i[t],o.push(a(n));return o}catch(t){return e=t,this.__rejectApi(e.message)}}},{key:"__initApi",value:function(){return this.apiDeferred=n.default.Deferred(),this.__progressState="uploading",this.__progress=0,this.__notifyApi()}},{key:"__notifyApi",value:function(){return this.apiDeferred.notify(this.__progressInfo())}},{key:"__rejectApi",value:function(e,t){return this.__progressState="error",this.__notifyApi(),this.apiDeferred.reject(e,this.__fileInfo(),t)}},{key:"__resolveApi",value:function(){return this.__progressState="ready",this.__notifyApi(),this.apiDeferred.resolve(this.__fileInfo())}},{key:"__cancel",value:function(){return this.__rejectApi("user")}},{key:"__extendApi",value:function(e){var t=this;return e.cancel=this.__cancel.bind(this),e.pipe=e.then=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.__extendApi(xe.apply(void 0,[e].concat(r)))},e}},{key:"promise",value:function(){var e,t=this;return this.__apiPromise||(this.__apiPromise=this.__extendApi(this.apiDeferred.promise()),this.__runValidators(),"pending"===this.apiDeferred.state()&&((e=this.__startUpload()).done((function(){return t.__progressState="uploaded",t.__progress=1,t.__notifyApi(),t.__completeUpload()})),e.progress((function(e){if(e>t.__progress)return t.__progress=e,t.__notifyApi()})),e.fail((function(e){return t.__rejectApi("upload",e)})),this.apiDeferred.always(e.reject))),this.__apiPromise}}]),e}(),It=null,Mt=function(e){f(r,e);var t=v(r);function r(e){var n;return s(this,r),(n=t.apply(this,arguments)).__file=e,n.fileName=n.__file.name||"original",n.__notifyApi(),n}return c(r,[{key:"setFile",value:function(e){if(e&&(this.__file=e),this.sourceInfo.file=this.__file,this.__file)return this.fileSize=this.__file.size,this.fileType=this.__file.type||"application/octet-stream",this.settings.debugUploads&&z("Use local file.",this.fileName,this.fileType,this.fileSize),this.__runValidators(),this.__notifyApi()}},{key:"__startUpload",value:function(){var e,t,r,i=this;return this.apiDeferred.always((function(){return i.__file=null,i.__file})),this.__file.size>=this.settings.multipartMinSize&&L?(this.setFile(),this.multipartUpload()):(t=R,!this.settings.imageShrink||t&&t<8?(this.setFile(),this.directUpload()):(e=n.default.Deferred(),r=.4,yt(this.__file,this.settings.imageShrink).progress((function(t){return e.notify(t*r)})).done(this.setFile.bind(this)).fail((function(){return i.setFile(),r*=.1})).always((function(){return e.notify(r),i.directUpload().done(e.resolve).fail(e.reject).progress((function(t){return e.notify(r+t*(1-r))}))})),e))}},{key:"__autoAbort",value:function(e){return this.apiDeferred.fail(e.abort),e}},{key:"directRunner",value:function(e){return It||(It=_e(this.settings.parallelDirectUploads)),It(e)}},{key:"directUpload",value:function(){var e,t=this;return e=n.default.Deferred(),this.__file?this.fileSize>104857600?(this.__rejectApi("size"),e):(this.directRunner((function(r){var i;if(e.always(r),"pending"===t.apiDeferred.state())return(i=new window.FormData).append("UPLOADCARE_PUB_KEY",t.settings.publicKey),i.append("signature",t.settings.secureSignature),i.append("expire",t.settings.secureExpire),i.append("UPLOADCARE_STORE",t.settings.doNotStore?"":"auto"),i.append("file",t.__file,t.fileName),i.append("file_name",t.fileName),i.append("source",t.sourceInfo.source),t.__autoAbort(n.default.ajax({xhr:function(){var t;return t=n.default.ajaxSettings.xhr(),t.upload&&t.upload.addEventListener("progress",(function(t){return e.notify(t.loaded/t.total)}),!1),t},crossDomain:!0,type:"POST",url:"".concat(t.settings.urlBase,"/base/?jsonerrors=1"),headers:{"X-UC-User-Agent":t.settings._userAgent},contentType:!1,processData:!1,data:i,dataType:"json",error:e.reject,success:function(n){if(null!=n?n.file:void 0)return t.fileId=n.file,e.resolve();if(n.error){var r=n.error,i=r.content,o=r.error_code;return e.reject({message:i,code:o})}return e.reject()}}))})),e):(this.__rejectApi("baddata"),e)}},{key:"multipartUpload",value:function(){var e,t=this;return e=n.default.Deferred(),this.__file?(this.multipartStart().done((function(n){return t.uploadParts(n.parts,n.uuid).done((function(){return t.multipartComplete(n.uuid).done((function(n){return t.fileId=n.uuid,t.__handleFileData(n),e.resolve()})).fail(e.reject)})).progress(e.notify).fail(e.reject)})).fail(e.reject),e):e}},{key:"multipartStart",value:function(){var e,t=this;return e={UPLOADCARE_PUB_KEY:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,filename:this.fileName,source:this.sourceInfo.source,size:this.fileSize,content_type:this.fileType,part_size:this.settings.multipartPartSize,UPLOADCARE_STORE:this.settings.doNotStore?"":"auto"},this.__autoAbort(ye("".concat(this.settings.urlBase,"/multipart/start/?jsonerrors=1"),"POST",e,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(n){if(t.settings.debugUploads)return B("Can't start multipart upload.",n.message,e)}))}},{key:"uploadParts",value:function(e,t){var r,i,o,a,s,l,u,c,d,f,p=this;for(s=[],a=Date.now(),f=function(e,t){var n,i,o;if(s[e]=t,!(Date.now()-a<250)){for(a=Date.now(),o=0,n=0,i=s.length;n<i;n++)o+=t=s[n];return r.notify(o/p.fileSize)}},r=n.default.Deferred(),i=0,d=0,c=0,u=function(){var o,a,l,h,m;if(!(c>=p.fileSize))return l=c+p.settings.multipartPartSize,p.fileSize<l+p.settings.multipartMinLastPartSize&&(l=p.fileSize),a=p.__file.slice(c,l),c=l,h=d,i+=1,d+=1,o=0,(m=function(){if("pending"===p.apiDeferred.state())return s[h]=0,p.__autoAbort(n.default.ajax({xhr:function(){var e;return e=n.default.ajaxSettings.xhr(),e.responseType="text",e.upload&&e.upload.addEventListener("progress",(function(e){return f(h,e.loaded)}),!1),e},url:e[h],crossDomain:!0,type:"PUT",processData:!1,contentType:p.fileType,data:a,error:function(){return(o+=1)>p.settings.multipartMaxAttempts?(p.settings.debugUploads&&B("Part #".concat(h," and file upload is failed."),t),r.reject()):(p.settings.debugUploads&&z("Part #".concat(h,"(").concat(o,") upload is failed."),t),m())},success:function(){if(i-=1,u(),!i)return r.resolve()}}))})()},o=0,l=this.settings.multipartConcurrency;l>=0?o<l:o>l;l>=0?++o:--o)u();return r}},{key:"multipartComplete",value:function(e){var t,n=this;return t={UPLOADCARE_PUB_KEY:this.settings.publicKey,uuid:e},this.__autoAbort(ye("".concat(this.settings.urlBase,"/multipart/complete/?jsonerrors=1"),"POST",t,{headers:{"X-UC-User-Agent":this.settings._userAgent}})).fail((function(t){if(n.settings.debugUploads)return B("Can't complete multipart upload.",e,n.settings.publicKey,t.message)}))}}]),r}(jt);Mt.prototype.sourceName="local";var Lt=function(e){f(r,e);var t=v(r);function r(e){var i;return s(this,r),(i=t.apply(this,arguments)).__input=e,i.fileId=ee(),i.fileName=n.default(i.__input).val().split("\\").pop(),i.__notifyApi(),i}return c(r,[{key:"__startUpload",value:function(){var e,t,r,i;return e=n.default.Deferred(),i="".concat(this.settings.urlBase,"/iframe/"),r="uploadcare--iframe-".concat(this.fileId),this.__iframe=n.default("<iframe>").attr({id:r,name:r}).css("display","none").appendTo("body").on("load",e.resolve).on("error",e.reject),t=function(e,t){return n.default("<input/>",{type:"hidden",name:e,value:t})},n.default(this.__input).attr("name","file"),this.__iframeForm=n.default("<form>").attr({method:"POST",action:i,enctype:"multipart/form-data",target:r}).append(t("UPLOADCARE_PUB_KEY",this.settings.publicKey)).append(t("UPLOADCARE_SIGNATURE",this.settings.secureSignature)).append(t("UPLOADCARE_EXPIRE",this.settings.secureExpire)).append(t("UPLOADCARE_FILE_ID",this.fileId)).append(t("UPLOADCARE_STORE",this.settings.doNotStore?"":"auto")).append(t("UPLOADCARE_SOURCE",this.sourceInfo.source)).append(this.__input).css("display","none").appendTo("body").submit(),e.always(this.__cleanUp.bind(this))}},{key:"__cleanUp",value:function(){var e,t;return null!=(e=this.__iframe)&&e.off("load error").remove(),null!=(t=this.__iframeForm)&&t.remove(),this.__iframe=null,this.__iframeForm=null,this.__iframeForm}}]),r}(jt);Lt.prototype.sourceName="local-compat";var Dt=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){
/*!
* Pusher JavaScript Library v1.12.2
* http://pusherapp.com/
*
* Copyright 2011, Pusher
* Released under the MIT licence.
*/
var n=S.isWindowDefined;(function(){var e,t;(e=function(t,n){this.options=n||{},this.key=t,this.channels=new e.Channels,this.global_emitter=new e.EventsDispatcher;var r=this;this.checkAppKey(),this.connection=new e.Connection(this.key,this.options),this.connection.bind("connected",(function(){r.subscribeAll()})).bind("message",(function(e){var t,n=0===e.event.indexOf("pusher_internal:");e.channel&&(t=r.channel(e.channel))&&t.emit(e.event,e.data),n||r.global_emitter.emit(e.event,e.data)})).bind("disconnected",(function(){r.channels.disconnect()})).bind("error",(function(t){e.warn("Error",t)})),e.instances.push(this),e.isReady&&r.connect()}).instances=[],e.prototype={channel:function(e){return this.channels.find(e)},connect:function(){this.connection.connect()},disconnect:function(){this.connection.disconnect()},bind:function(e,t){return this.global_emitter.bind(e,t),this},bind_all:function(e){return this.global_emitter.bind_all(e),this},subscribeAll:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},subscribe:function(e){var t=this,n=this.channels.add(e,this);return"connected"===this.connection.state&&n.authorize(this.connection.socket_id,this.options,(function(r,i){r?n.emit("pusher:subscription_error",i):t.send_event("pusher:subscribe",{channel:e,auth:i.auth,channel_data:i.channel_data})})),n},unsubscribe:function(e){this.channels.remove(e),"connected"===this.connection.state&&this.send_event("pusher:unsubscribe",{channel:e})},send_event:function(e,t,n){return this.connection.send_event(e,t,n)},checkAppKey:function(){null!==this.key&&void 0!==this.key||e.warn("Warning","You must pass your app key when you instantiate Pusher.")}},e.Util={extend:function e(t,n){for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?t[r]=e(t[r]||{},n[r]):t[r]=n[r];return t},stringify:function(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):null==window.JSON?e.push(arguments[t].toString()):e.push(JSON.stringify(arguments[t]));return e.join(" : ")},arrayIndexOf:function(e,t){var n=Array.prototype.indexOf;if(null==e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(i=0,l=e.length;i<l;i++)if(e[i]===t)return i;return-1}},e.debug=function(){e.log&&e.log(e.Util.stringify.apply(this,arguments))},e.warn=function(){if(window.console&&window.console.warn)window.console.warn(e.Util.stringify.apply(this,arguments));else{if(!e.log)return;e.log(e.Util.stringify.apply(this,arguments))}},e.VERSION="1.12.2",e.host="ws.pusherapp.com",e.ws_port=80,e.wss_port=443,e.channel_auth_endpoint="/pusher/auth",e.cdn_http="http://js.pusher.com/",e.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",e.dependency_suffix=".min",e.channel_auth_transport="ajax",e.activity_timeout=12e4,e.pong_timeout=3e4,e.isReady=!1,e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},function(){function t(){this._callbacks={}}function n(e){this.callbacks=new t,this.global_callbacks=[],this.failThrough=e}t.prototype.get=function(e){return this._callbacks[this._prefix(e)]},t.prototype.add=function(e,t){var n=this._prefix(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push(t)},t.prototype.remove=function(t,n){if(this.get(t)){var r=e.Util.arrayIndexOf(this.get(t),n);this._callbacks[this._prefix(t)].splice(r,1)}},t.prototype._prefix=function(e){return"_"+e},n.prototype.bind=function(e,t){return this.callbacks.add(e,t),this},n.prototype.unbind=function(e,t){return this.callbacks.remove(e,t),this},n.prototype.emit=function(e,t){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var r=this.callbacks.get(e);if(r)for(n=0;n<r.length;n++)r[n](t);else this.failThrough&&this.failThrough(e,t);return this},n.prototype.bind_all=function(e){return this.global_callbacks.push(e),this},e.EventsDispatcher=n}(),function(){function t(e,t,n){void 0!==t[e]&&t[e](n)}function n(t,n,r){e.EventsDispatcher.call(this),this.state=void 0,this.errors=[],this.stateActions=r,this.transitions=n,this.transition(t)}n.prototype.transition=function(n,r){var i,o=this.state,a=this.stateActions;if(o&&-1==e.Util.arrayIndexOf(this.transitions[o],n))throw this.emit("invalid_transition_attempt",{oldState:o,newState:n}),new Error("Invalid transition ["+o+" to "+n+"]");t(o+"Exit",a,r),t(o+"To"+((i=n).substr(0,1).toUpperCase()+i.substr(1)),a,r),t(n+"Pre",a,r),this.state=n,this.emit("state_change",{oldState:o,newState:n}),t(n+"Post",a,r)},n.prototype.is=function(e){return this.state===e},n.prototype.isNot=function(e){return this.state!==e},e.Util.extend(n.prototype,e.EventsDispatcher.prototype),e.Machine=n}(),(t=function(){var t=this;e.EventsDispatcher.call(this),void 0!==window.addEventListener&&(window.addEventListener("online",(function(){t.emit("online",null)}),!1),window.addEventListener("offline",(function(){t.emit("offline",null)}),!1))}).prototype.isOnLine=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e.Util.extend(t.prototype,e.EventsDispatcher.prototype),e.NetInfo=t,function(){var t={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]};function n(t){t.connectionWait=0,"flash"===e.TransportType?t.openTimeout=5e3:t.openTimeout=2e3,t.connectedTimeout=2e3,t.connectionSecure=t.compulsorySecure,t.connectionAttempts=0}function r(r,i){var o=this;function a(){o.connectionWait<1e4&&(o.connectionWait+=2e3),o.openTimeout<1e4&&(o.openTimeout+=2e3),o.connectedTimeout<1e4&&(o.connectedTimeout+=2e3),!0!==o.compulsorySecure&&(o.connectionSecure=!o.connectionSecure),o.connectionAttempts++}function s(){o._machine.transition("impermanentlyClosing")}function l(){o._activityTimer&&clearTimeout(o._activityTimer),o._activityTimer=setTimeout((function(){o.send_event("pusher:ping",{}),o._activityTimer=setTimeout((function(){o.socket.close()}),o.options.pong_timeout||e.pong_timeout)}),o.options.activity_timeout||e.activity_timeout)}function u(){o._machine.transition("open")}function c(e){var t,n,r=f(e);void 0!==r&&("pusher:connection_established"===r.event?o._machine.transition("connected",r.data.socket_id):"pusher:error"===r.event&&(t=r.data.code,n=r.data.message,o.emit("error",{type:"PusherError",data:{code:t,message:n}}),4e3===t?(o.compulsorySecure=!0,o.connectionSecure=!0,o.options.encrypted=!0,s()):t<4100?o._machine.transition("permanentlyClosing"):t<4200?(o.connectionWait=1e3,o._machine.transition("waiting")):t<4300?s():o._machine.transition("permanentlyClosing")))}function d(t){l();var n=f(t);if(void 0!==n){switch(e.debug("Event recd",n),n.event){case"pusher:error":o.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":o.send_event("pusher:pong",{})}o.emit("message",n)}}function f(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){o.emit("error",{type:"MessageParseError",error:t,data:e.data})}}function p(){o._machine.transition("waiting")}function h(e){o.emit("error",{type:"WebSocketError",error:e})}function m(t,n){var r=o.state;o.state=t,r!==t&&(e.debug("State changed",r+" -> "+t),o.emit("state_change",{previous:r,current:t}),o.emit(t,n))}e.EventsDispatcher.call(this),this.options=e.Util.extend({encrypted:!1},i),this.netInfo=new e.NetInfo,this.netInfo.bind("online",(function(){o._machine.is("waiting")&&(o._machine.transition("connecting"),m("connecting"))})),this.netInfo.bind("offline",(function(){o._machine.is("connected")&&(o.socket.onclose=void 0,o.socket.onmessage=void 0,o.socket.onerror=void 0,o.socket.onopen=void 0,o.socket.close(),o.socket=void 0,o._machine.transition("waiting"))})),this._machine=new e.Machine("initialized",t,{initializedPre:function(){o.compulsorySecure=o.options.encrypted,o.key=r,o.socket=null,o.socket_id=null,o.state="initialized"},waitingPre:function(){o.connectionWait>0&&o.emit("connecting_in",o.connectionWait),o.netInfo.isOnLine()&&o.connectionAttempts<=4?m("connecting"):m("unavailable"),o.netInfo.isOnLine()&&(o._waitingTimer=setTimeout((function(){o._machine.transition("connecting")}),function(){var e=o.connectionWait;if(0===e&&o.connectedAt){var t=(new Date).getTime()-o.connectedAt;t<1e3&&(e=1e3-t)}return e}()))},waitingExit:function(){clearTimeout(o._waitingTimer)},connectingPre:function(){if(!1===o.netInfo.isOnLine())return o._machine.transition("waiting"),void m("unavailable");var t=function(t,n){var r=e.ws_port,i="ws://";(n||"https:"===document.location.protocol)&&(r=e.wss_port,i="wss://");var o="flash"===e.TransportType?"true":"false";return i+e.host+":"+r+"/app/"+t+"?protocol=5&client=js&version="+e.VERSION+"&flash="+o}(o.key,o.connectionSecure);e.debug("Connecting",t),o.socket=new e.Transport(t),o.socket.onopen=u,o.socket.onclose=p,o.socket.onerror=h,o._connectingTimer=setTimeout(s,o.openTimeout)},connectingExit:function(){clearTimeout(o._connectingTimer),o.socket.onopen=void 0},connectingToWaiting:function(){a()},connectingToImpermanentlyClosing:function(){a()},openPre:function(){o.socket.onmessage=c,o.socket.onerror=h,o.socket.onclose=p,o._openTimer=setTimeout(s,o.connectedTimeout)},openExit:function(){clearTimeout(o._openTimer),o.socket.onmessage=void 0},openToWaiting:function(){a()},openToImpermanentlyClosing:function(){a()},connectedPre:function(e){o.socket_id=e,o.socket.onmessage=d,o.socket.onerror=h,o.socket.onclose=p,n(o),o.connectedAt=(new Date).getTime(),l()},connectedPost:function(){m("connected")},connectedExit:function(){o._activityTimer&&clearTimeout(o._activityTimer),m("disconnected")},impermanentlyClosingPost:function(){o.socket&&(o.socket.onclose=p,o.socket.close())},permanentlyClosingPost:function(){o.socket?(o.socket.onclose=function(){n(o),o._machine.transition("permanentlyClosed")},o.socket.close()):(n(o),o._machine.transition("permanentlyClosed"))},failedPre:function(){m("failed"),e.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){m("disconnected")}})}r.prototype.connect=function(){this._machine.is("failed")||e.Transport?this._machine.is("initialized")?(n(this),this._machine.transition("waiting")):this._machine.is("waiting")&&!0===this.netInfo.isOnLine()?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(n(this),this._machine.transition("waiting")):this._machine.transition("failed")},r.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout((function(){t.socket.send(e)}),0),!0}return!1},r.prototype.send_event=function(t,n,r){var i={event:t,data:n};return r&&(i.channel=r),e.debug("Event sent",i),this.send(JSON.stringify(i))},r.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},e.Util.extend(r.prototype,e.EventsDispatcher.prototype),e.Connection=r}(),function(){e.Channels=function(){this.channels={}},e.Channels.prototype={add:function(t,n){var r=this.find(t);if(r)return r;var i=e.Channel.factory(t,n);return this.channels[t]=i,i},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},e.Channel=function(t,n){var r=this;e.EventsDispatcher.call(this,(function(n,r){e.debug("No callbacks on "+t+" for "+n)})),this.pusher=n,this.name=t,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",(function(e){r.onSubscriptionSucceeded(e)}))},e.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(e){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,n){return n(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},e.Util.extend(e.Channel.prototype,e.EventsDispatcher.prototype),e.Channel.PrivateChannel={authorize:function(t,n,r){var i=this;return new e.Channel.Authorizer(this,e.channel_auth_transport,n).authorize(t,(function(e,t){e||i.emit("pusher_internal:authorized",t),r(e,t)}))}},e.Channel.PresenceChannel={init:function(){this.members=new t(this)},onSubscriptionSucceeded:function(e){this.subscribed=!0}};var t=function(e){var t=this,n=function(){this._members_map={},this.count=0,this.me=null};n.call(this),e.bind("pusher_internal:authorized",(function(n){var r=JSON.parse(n.channel_data);e.bind("pusher_internal:subscription_succeeded",(function(n){t._members_map=n.presence.hash,t.count=n.presence.count,t.me=t.get(r.user_id),e.emit("pusher:subscription_succeeded",t)}))})),e.bind("pusher_internal:member_added",(function(n){null===t.get(n.user_id)&&t.count++,t._members_map[n.user_id]=n.user_info,e.emit("pusher:member_added",t.get(n.user_id))})),e.bind("pusher_internal:member_removed",(function(n){var r=t.get(n.user_id);r&&(delete t._members_map[n.user_id],t.count--,e.emit("pusher:member_removed",r))})),e.bind("pusher_internal:disconnected",(function(){n.call(t)}))};t.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},e.Channel.factory=function(t,n){var r=new e.Channel(t,n);return 0===t.indexOf("private-")?e.Util.extend(r,e.Channel.PrivateChannel):0===t.indexOf("presence-")&&(e.Util.extend(r,e.Channel.PrivateChannel),e.Util.extend(r,e.Channel.PresenceChannel)),r.init(),r}}(),e.Channel.Authorizer=function(e,t,n){this.channel=e,this.type=t,this.authOptions=(n||{}).auth||{}},e.Channel.Authorizer.prototype={composeQuery:function(e){var t="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},authorize:function(t,n){return e.authorizers[this.type].call(this,t,n)}},e.auth_callbacks={},e.authorizers={ajax:function(t,n){var r;for(var i in(r=e.XHR?new e.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open("POST",e.channel_auth_endpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(i,this.authOptions.headers[i]);return r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status){var t,i=!1;try{t=JSON.parse(r.responseText),i=!0}catch(e){n(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+r.responseText)}i&&n(!1,t)}else e.warn("Couldn't get auth info from your webapp",r.status),n(!0,r.status)},r.send(this.composeQuery(t)),r},jsonp:function(t,n){void 0!==this.authOptions.headers&&e.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=document.createElement("script");e.auth_callbacks[this.channel.name]=function(e){n(!1,e)};var i="Pusher.auth_callbacks['"+this.channel.name+"']";r.src=e.channel_auth_endpoint+"?callback="+encodeURIComponent(i)+this.composeQuery(t);var o=document.getElementsByTagName("head")[0]||document.documentElement;o.insertBefore(r,o.firstChild)}};var r=function(){function e(e,t){var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.setAttribute("src",e),r.setAttribute("type","text/javascript"),r.setAttribute("async",!0),function(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",(function(){"loaded"!=e.readyState&&"complete"!=e.readyState||t()}))}(r,(function(){t()})),n.appendChild(r)}return function(t,n){for(var r=0,i=0;i<t.length;i++)e(t[i],(function(){t.length==++r&&setTimeout(n,0)}))}}();!function(){n()&&!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),n()&&window.WebSocket&&(e.Transport=window.WebSocket,e.TransportType="native");var t=(n()&&("http:"==document.location.protocol?e.cdn_http:e.cdn_https))+e.VERSION,i=[];n()&&!window.JSON&&i.push(t+"/json2"+e.dependency_suffix+".js"),n()&&!window.WebSocket&&(window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0,i.push(t+"/flashfallback"+e.dependency_suffix+".js"));var o=n()&&window.WebSocket?function(){e.ready()}:function(){window.WebSocket?(e.Transport=window.WebSocket,e.TransportType="flash",window.WEB_SOCKET_SWF_LOCATION="https://s3.amazonaws.com/uploadcare-static/WebSocketMainInsecure.swf",WebSocket.__addTask((function(){e.ready()})),WebSocket.__initialize()):(e.Transport=null,e.TransportType="none",e.ready())},a=function(){var e;e=o,function t(){n()&&(document.body?e():setTimeout(t,0))}()};i.length>0?r(i,a):a()}(),this.Pusher=e}).call(t)})).Pusher,Nt={};Dt.prototype.constructor=Dt;var Ft=function(e){f(r,e);var t=v(r);function r(){return s(this,r),t.apply(this,arguments)}return c(r,[{key:"subscribe",value:function(e){return this.disconnectTimeout&&(clearTimeout(this.disconnectTimeout),this.disconnectTimeout=null),this.connect(),b(p(r.prototype),"subscribe",this).apply(this,arguments)}},{key:"unsubscribe",value:function(e){var t=this;b(p(r.prototype),"unsubscribe",this).apply(this,arguments),n.default.isEmptyObject(this.channels.channels)&&(this.disconnectTimeout=setTimeout((function(){return t.disconnectTimeout=null,t.disconnect()}),5e3))}}]),r}(Dt),Bt=function(e){return null==Nt[e]&&(Nt[e]=new Ft(e)),Nt[e].connect(),Nt[e]},zt=function(e){f(r,e);var t=v(r);function r(e){var n,i;if(s(this,r),(n=t.apply(this,arguments)).__url=e,i=te.exec(n.__url)[3].split("/").pop())try{n.fileName=decodeURIComponent(i)}catch(e){n.fileName=i}return n.__notifyApi(),n}return c(r,[{key:"setName",value:function(e){return this.fileName=e,this.__realFileName=e,this.__notifyApi()}},{key:"setIsImage",value:function(e){return this.isImage=e,this.__notifyApi()}},{key:"__startUpload",value:function(){var e,t,r,i,o=this;return t=n.default.Deferred(),i=new Ut(this.settings),r=new qt(this.settings),e={pub_key:this.settings.publicKey,signature:this.settings.secureSignature,expire:this.settings.secureExpire,source_url:this.__url,filename:this.__realFileName||"",source:this.sourceInfo.source,store:this.settings.doNotStore?"":"auto",jsonerrors:1},V((function(){if("pending"===o.apiDeferred.state())return ye("".concat(o.settings.urlBase,"/from_url/"),"GET",e,{headers:{"X-UC-User-Agent":o.settings._userAgent}}).fail((function(n){return o.settings.debugUploads&&z("Can't start upload from URL.",n.message,e),t.reject(n)})).done((function(e){var a;if("pending"===o.apiDeferred.state())return o.settings.debugUploads&&(z("Start watchers.",e.token),a=setInterval((function(){return z("Still watching.",e.token)}),5e3),t.done((function(){return z("Stop watchers.",e.token)})).always((function(){return clearInterval(a)}))),o.__listenWatcher(t,n.default([i,r])),t.always((function(){return n.default([i,r]).off(o.allEvents),i.stopWatching(),r.stopWatching()})),n.default(i).one(o.allEvents,(function(){if(r.interval)return o.settings.debugUploads&&z("Start using pusher.",e.token),r.stopWatching()})),i.watch(e.token),r.watch(e.token)}))})),t}},{key:"__listenWatcher",value:function(e,t){var r=this;return t.on("progress",(function(t,n){return r.fileSize=n.total,e.notify(n.done/n.total)})).on("success",(function(t,i){return n.default(t.target).trigger("progress",i),r.fileId=i.uuid,r.__handleFileData(i),e.resolve()})).on("error fail",(function(t,n){if(n.error_code){var r=n.error_code,i=n.msg;e.reject({code:r,message:i})}else e.reject(n)}))}}]),r}(jt);zt.prototype.sourceName="url",zt.prototype.allEvents="progress success error fail";var Ut=function(){function e(t){s(this,e),this.settings=t;try{this.pusher=Bt(this.settings.pusherKey)}catch(e){this.pusher=null}}return c(e,[{key:"watch",value:function(e){var t=this;if(this.token=e,this.pusher)return this.pusher.subscribe("task-status-".concat(this.token)).bind_all((function(e,r){return n.default(t).trigger(e,r)}))}},{key:"stopWatching",value:function(){if(this.pusher)return this.pusher.unsubscribe("task-status-".concat(this.token))}}]),e}(),qt=function(){function e(t){s(this,e),this.settings=t,this.poolUrl="".concat(this.settings.urlBase,"/from_url/status/")}return c(e,[{key:"watch",value:function(e){var t=this;return this.token=e,function e(){return t.interval=setTimeout((function(){t.__updateStatus().done((function(){t.interval&&e()}))}),333),t.interval}()}},{key:"stopWatching",value:function(){return this.interval&&clearTimeout(this.interval),this.interval=null,this.interval}},{key:"__updateStatus",value:function(){var e=this;return ye(this.poolUrl,"GET",{token:this.token},{headers:{"X-UC-User-Agent":this.settings._userAgent}}).fail((function(t){return n.default(e).trigger("error",t)})).done((function(t){return n.default(e).trigger(t.status,t)}))}}]),e}(),Wt=function(e){f(n,e);var t=v(n);function n(e){var r,i;return s(this,n),r=t.apply(this,arguments),(i=oe(e))?(r.fileId=i[1],i[2]&&(r.cdnUrlModifiers=i[2])):r.__rejectApi("baddata"),r}return c(n)}(jt);Wt.prototype.sourceName="uploaded";var Ht=function(e){f(n,e);var t=v(n);function n(e){var r;return s(this,n),r=t.apply(this,arguments),e?(r.fileId=e.uuid,r.__handleFileData(e)):r.__rejectApi("deleted"),r}return c(n)}(jt);Ht.prototype.sourceName="uploaded";var $t={object:Mt,input:Lt,url:zt,uploaded:Wt,ready:Ht},Vt=function(e,t,n){return Gt(e,[t],n)[0]},Gt=function(e,t,r){var i,o,a,s,l;for(r=at(r||{}),l=[],i=0,a=t.length;i<a;i++)s=t[i],o=void 0,n.default.isArray(s)&&(o=s[1],s=s[0]),l.push(new $t[e](s,r,o).promise());return l},Kt=function(e){return e&&e.done&&e.fail&&e.cancel},Yt=function(e,t){return e&&!Kt(e)&&(e=Vt("uploaded",e,t)),e||null},Qt=function(e){return e&&e.files&&e.promise},Xt=function(e,t){var r,i;if(e)if(n.default.isArray(e))r=function(){var n,r,o;for(o=[],n=0,r=e.length;n<r;n++)i=e[n],o.push(Yt(i,t));return o}(),e=fn(r,t);else if(!Qt(e))return pn(e,t);return Y(e||null)},Zt=function(e,t){var n,r,i,o,a;if(e===t)return!0;if(!Qt(e)||!Qt(t))return!1;if(n=e.files(),r=t.files(),n.length!==r.length)return!1;for(i=o=0,a=n.length;o<a;i=++o)if(n[i]!==r[i])return!1;return!0},Jt=[].indexOf,en=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,e),this.onAdd=n.default.Callbacks(),this.onRemove=n.default.Callbacks(),this.onSort=n.default.Callbacks(),this.onReplace=n.default.Callbacks(),this.__items=[],r||this.init(t)}return c(e,[{key:"init",value:function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)t=e[n],this.add(t)}},{key:"add",value:function(e){return this.__add(e,this.__items.length)}},{key:"__add",value:function(e,t){return this.__items.splice(t,0,e),this.onAdd.fire(e,t)}},{key:"remove",value:function(e){var t;if(-1!==(t=n.default.inArray(e,this.__items)))return this.__remove(e,t)}},{key:"__remove",value:function(e,t){return this.__items.splice(t,1),this.onRemove.fire(e,t)}},{key:"clear",value:function(){var e,t,n,r,i,o;for(n=this.get(),this.__items.length=0,o=[],e=r=0,i=n.length;r<i;e=++r)t=n[e],o.push(this.onRemove.fire(t,e));return o}},{key:"replace",value:function(e,t){var r;if(e!==t&&-1!==(r=n.default.inArray(e,this.__items)))return this.__replace(e,t,r)}},{key:"__replace",value:function(e,t,n){return this.__items[n]=t,this.onReplace.fire(e,t,n)}},{key:"sort",value:function(e){return this.__items.sort(e),this.onSort.fire()}},{key:"get",value:function(e){return null!=e?this.__items[e]:this.__items.slice(0)}},{key:"length",value:function(){return this.__items.length}}]),e}(),tn=function(e){f(n,e);var t=v(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"add",value:function(e){if(!(Jt.call(this.__items,e)>=0))return b(p(n.prototype),"add",this).apply(this,arguments)}},{key:"__replace",value:function(e,t,r){return Jt.call(this.__items,t)>=0?this.remove(e):b(p(n.prototype),"__replace",this).apply(this,arguments)}}]),n}(en),nn=function(e){f(r,e);var t=v(r);function r(){var e,i;return s(this,r),(i=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments),[!0]))).anyDoneList=n.default.Callbacks(),i.anyFailList=n.default.Callbacks(),i.anyProgressList=n.default.Callbacks(),i._thenArgs=null,i.anyProgressList.add((function(e,t){return n.default(e).data("lastProgress",t)})),b((e=m(i),p(r.prototype)),"init",e).call(e,arguments[0]),i}return c(r,[{key:"onAnyDone",value:function(e){var t,n,r,i,o;for(this.anyDoneList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"resolved"===(t=i[n]).state()?o.push(t.done((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))}))):o.push(void 0);return o}},{key:"onAnyFail",value:function(e){var t,n,r,i,o;for(this.anyFailList.add(e),o=[],n=0,r=(i=this.__items).length;n<r;n++)"rejected"===(t=i[n]).state()?o.push(t.fail((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,[t].concat(r))}))):o.push(void 0);return o}},{key:"onAnyProgress",value:function(e){var t,r,i,o,a;for(this.anyProgressList.add(e),a=[],r=0,i=(o=this.__items).length;r<i;r++)t=o[r],a.push(e(t,n.default(t).data("lastProgress")));return a}},{key:"lastProgresses",value:function(){var e,t,r,i,o;for(o=[],t=0,r=(i=this.__items).length;t<r;t++)e=i[t],o.push(n.default(e).data("lastProgress"));return o}},{key:"add",value:function(e){var t;if(e&&e.then)return this._thenArgs&&(e=(t=e).then.apply(t,w(this._thenArgs))),b(p(r.prototype),"add",this).call(this,e),this.__watchItem(e)}},{key:"__replace",value:function(e,t,n){return t&&t.then?(b(p(r.prototype),"__replace",this).apply(this,arguments),this.__watchItem(t)):this.remove(e)}},{key:"__watchItem",value:function(e){var t=this,n=function(n){return function(){if(Jt.call(t.__items,e)>=0){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.fire.apply(n,[e].concat(i))}}};return e.then(n(this.anyDoneList),n(this.anyFailList),n(this.anyProgressList))}},{key:"autoThen",value:function(){var e,t,n,r,i,o;if(this._thenArgs)throw new Error("CollectionOfPromises.then() could be used only once");for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];for(this._thenArgs=s,o=[],e=n=0,r=(i=this.__items).length;n<r;e=++n){var u;t=i[e],o.push(this.__replace(t,(u=t).then.apply(u,w(this._thenArgs)),e))}return o}}]),r}(tn),rn={ar:{translations:{uploading:"جاري الرفع... الرجاء الانتظار",loadingInfo:"جار تحميل المعلومات ...",errors:{default:"خطأ",baddata:"قيمة غير صحيحة",size:"ملف كبير جداً",upload:"يتعذر الرفع",user:"تم إلغاء الرفع",info:"يتعذر تحميل المعلومات",image:"يسمح بالصور فقط",createGroup:"لا يمكن إنشاء مجموعة ملفات",deleted:"تم حذف الملف"},draghere:"أسقط ملف هنا",file:{one:"%1 ملف",other:"%1 ملفات"},buttons:{cancel:"إلغاء",remove:"إزالة",choose:{files:{one:"اختر ملف",other:"اختر ملفات"},images:{one:"اختر صورة",other:"اختر صور"}}},dialog:{close:"أغلق",openMenu:"افتح القائمة",done:"موافق",showFiles:"اظهار الملفات",tabs:{names:{"empty-pubkey":"مرحبا!",preview:"معاينة",file:"ملفات محلية",url:"رابط مباشر",camera:"كاميرا",facebook:"فيس بوك",dropbox:"دروب بوكس",gdrive:"جوجل دريف",gphotos:"صور غوغل",instagram:"إينستجرام",vk:"في كي",evernote:"إيفرنوت",box:"بوكس",onedrive:"ون درايف",flickr:"فليكر",huddle:"هادل"},file:{drag:"سحب وإفلات<br>أي ملف",nodrop:"رفع ملفات من&nbsp;الحاسوب",cloudsTip:"مخازن على السحابة<br>والشبكات الاجتماعية",or:"أو",button:"اختر ملف محلي",also:"أو اختر من"},url:{title:"ملفات من شبكة الإنترنت",line1:"التقاط أي ملف من على شبكة الإنترنت",line2:"فقط قم بتوفير الرابط",input:"الصق الرابط هنا...",button:"رفع"},camera:{title:"ملف من كاميرا الويب",capture:"التقاط صورة",mirror:"عكس الصورة",startRecord:"سجل فيديو",stopRecord:"توقف",cancelRecord:"إلغاء",retry:"طلب الإذن مرة أخرى",pleaseAllow:{title:"يرجى السماح بالوصول إلى الكاميرا",text:"تمت مطالبتك بالسماح بالدخول إلى الكاميرا من هذا الموقع<br>من أجل التقاط الصور من الكاميرا يجب عليك الموافقة على هذا الطلب"},notFound:{title:"لم يتم اكتشاف أي كاميرا",text:"يبدو أنه ليس لديك كاميرا متصلة بهذا الجهاز"}},preview:{unknownName:"غير معروف",change:"إلغاء",back:"الرجوع",done:"إضافة",unknown:{title:"جار الرفع ... يرجى الانتظار للحصول على معاينة",done:"تخطي المعاينة والقبول"},regular:{title:"إضافة هذا الملف؟",line1:"أنت على وشك إضافة الملف أعلاه",line2:"يرجى التأكيد"},image:{title:"إضافة هذة الصورة",change:"إلغاء"},crop:{title:"قص وإضافة هذه الصورة",done:"موافق",free:"حر"},video:{title:"إضافة هذا الفيديو",change:"إلغاء"},error:{default:{title:"عفوا آسف",text:"حدث خطأ أثناء الرفع",back:"حاول مرة اخرى"},image:{title:"يتم قبول ملفات الصور فقط",text:"الرجاء إعادة المحاولة باستخدام ملف آخر",back:"اختر صورة"},size:{title:"الملف الذي حددتة يتجاوز الحد المسموح بة",text:"الرجاء إعادة المحاولة باستخدام ملف آخر"},loadImage:{title:"خطأ",text:"لا يمكن تحميل الصورة"}},multiple:{title:"لقد اخترت %files%",question:"إضافة %files%?",tooManyFiles:"لقد اخترت عددا كبيرا جدا من الملفات %max% هو الحد الأقصى",tooFewFiles:"لقد اخترت %files%. على الأقل %min% مطلوب",clear:"حذف الكل",done:"إضافة",file:{preview:"معاينة %file%",remove:"حذف %file%"}}}},footer:{text:"مدعوم بواسطة",link:"ابلود كير"}}},pluralize:function(e){var t;return 0===e?"zero":1===e?"one":2===e?"two":(t=e%100)>=3&&t<=10?"few":t>=11&&t<=99?"many":"other"}},az:{translations:{uploading:"Yüklənilir... Lütfən, gözləyin.",loadingInfo:"İnfo yüklənilir...",errors:{default:"Xəta",baddata:"Yanlış dəyər",size:"Fayl çox böyükdür",upload:"Yüklənilə bilmədi",user:"Yükləmə ləğv edildi",info:"İnfo yüklənə bilmədi",image:"Yalnız təsvirlərə icazə verilir",createGroup:"Fayl qrupu yaradıla bilmir",deleted:"Fayl silindi"},draghere:"Faylı bura atın",file:{one:"%1 fayl",other:"%1 fayl"},buttons:{cancel:"Ləğv edin",remove:"Silin",choose:{files:{one:"Fayl seçin",other:"Fayllar seçin"},images:{one:"Təsvir seçin",other:"Təsvirlər seçin"}}},dialog:{done:"Hazırdır",showFiles:"Faylları göstərin",tabs:{names:{"empty-pubkey":"Xoş gəlmisiniz",preview:"Önbaxış",file:"Lokal Fayllar",url:"İxtiyari linklər",camera:"Kamera",gdrive:"Google Disk"},file:{drag:"Faylı bura atın",nodrop:"Kompüterinizdən faylları yükləyin",cloudsTip:"Bulud yaddaşlar <br>və sosial xidmətlər",or:"or",button:"Lokal fayl seçin",also:"Həmçinin, buradan seçə bilərsiniz"},url:{title:"Vebdən fayllar",line1:"Vebdən istənilən faylı götürün.",line2:"Sadəcə, link verin.",input:"Linkinizi bura yerləşdirin...",button:"Yükləyin"},camera:{capture:"Şəkil çəkin",mirror:"Güzgü",retry:"Yenidən icazə sorğusu göndərin.",pleaseAllow:{title:"Lütfən, kameranıza giriş hüququ verin",text:"Bu saytdan kameranıza daxil olmaq icazəsi verildi. Kameranız ilə şəkil çəkmək üçün bu sorğunu təsdiq etməlisiniz."},notFound:{title:"Kamera aşkar edilmədi",text:"Görünür, bu cihaza kamera qoşulmayıb."}},preview:{unknownName:"naməlum",change:"Ləğv edin",back:"Geri",done:"Əlavə edin",unknown:{title:"Yüklənilir... Lütfən, önbaxış üçün gözləyin.",done:"Önbaxışı ötürün və qəbul edin"},regular:{title:"Bu fayl əlavə edilsin?",line1:"Yuxarıdakı faylı əlavə etmək üzrəsiniz.",line2:"Lütfən, təsdiq edin."},image:{title:"Bu təsvir əlavə edilsin?",change:"Ləğv edin"},crop:{title:"Bu təsviri kəsin və əlavə edin",done:"Hazırdır",free:"pulsuz"},error:{default:{title:"Ups!",text:"Yükləmə zamanı nəsə xəta baş verdi.",back:"Lütfən, y enidən cəhd edin."},image:{title:"Yaınız təsvir faylları qəbul olunur.",text:"Lütfən, başqa fayl ilə cəhd edin.",back:"Təsvir seçin"},size:{title:"Seçdiyiniz fayl limiti keçir.",text:"Lütfən, başqa fayl ilə cəhd edin."},loadImage:{title:"Xəta",text:"Təsvir yüklənilə bilmir"}},multiple:{title:"%files% fayl seçdiniz.",question:"Bütün bu faylları əlavə etmək istəyirsiniz?",tooManyFiles:"Həddindən çox fayl seçdiniz. %max% maksimumdur.",tooFewFiles:"%files% fayl seçdiniz. Ən azı %min% tələb olunur.",clear:"Hamısını silin",done:"Hazırdır"}}}}},pluralize:function(e){return"other"}},ca:{translations:{uploading:"Carregant... Si us plau esperi.",loadingInfo:"Carregant informació...",errors:{default:"Error",baddata:"Valor incorrecte",size:"Massa gran",upload:"No s'ha pogut carregar",user:"Carrega cancel·lada",info:"No s'ha pogut carregar la informació",image:"Només es permeten imatges",createGroup:"No es pot crear el grup d'arxius",deleted:"Fitxer eliminat"},draghere:"Arrossega els fitxers fins aquí",file:{one:"%1 fitxer",other:"%1 fitxers"},buttons:{cancel:"Cancel·lar",remove:"Eliminar",choose:{files:{one:"Escull un fitxer",other:"Escull fitxers"},images:{one:"Escull una imatge",other:"Escull imatges"}}},dialog:{done:"Fet",showFiles:"Mostra fitxers",tabs:{names:{"empty-pubkey":"Benvingut",preview:"Avanci",file:"Ordinador",url:"Enllaços arbitraris",camera:"Càmera"},file:{drag:"Arrossega un fitxer aquí",nodrop:"Carrega fitxers des del teu ordinador",cloudsTip:"Emmagatzematge al núvol<br>i xarxes socials",or:"o",button:"Escull un fitxer des del teu ordinador",also:"També pots seleccionar-lo de"},url:{title:"Fitxers de la web",line1:"Selecciona qualsevol fitxer de la web.",line2:"Només proporcioni el link.",input:"Copiï el link aquí...",button:"Pujar"},camera:{capture:"Realitza una foto",mirror:"Mirall",retry:"Demanar permisos una altra vegada",pleaseAllow:{title:"Si us plau, permet accés a la teva càmera",text:"Aquest lloc t'ha demanat de permetre accés a la càmera. Per tal de realitzar imatges amb la teva càmera has d'acceptar aquesta petició."},notFound:{title:"No s'ha detectat cap càmera",text:"Sembla que no tens cap càmera connectada a aquest dispositiu."}},preview:{unknownName:"desconegut",change:"Cancel·lar",back:"Endarrere",done:"Pujar",unknown:{title:"Carregant. Si us plau esperi per la visualització prèvia.",done:"Saltar visualització prèvia i acceptar"},regular:{title:"Vols pujar aquest fitxer?",line1:"Estàs a punt de pujar el fitxer superior.",line2:"Confirmi, si us plau."},image:{title:"Vols pujar aquesta imatge?",change:"Cancel·lar"},crop:{title:"Tallar i pujar aquesta imatge",done:"Fet",free:"lliure"},error:{default:{title:"La pujada ha fallat!",text:"S'ha produït un error durant la pujada.",back:"Si us plau, provi-ho de nou."},image:{title:"Només s'accepten fitxers d'imatges.",text:"Si us plau, provi-ho de nou amb un altre fitxer.",back:"Escull imatge"},size:{title:"La mida del fitxer que has seleccionat sobrepassa el límit.",text:"Si us plau, provi-ho de nou amb un altre fitxer."},loadImage:{title:"Error",text:"No s'ha pogut carregar la imatge"}},multiple:{title:"N'has escollit %files%",question:"Vols afegir tots aquests fitxers?",tooManyFiles:"Has escollit massa fitxers. %max% és el màxim.",tooFewFiles:"Has escollit %files%. Com a mínim en calen %min%.",clear:"Eliminar-los tots",done:"Fet"}}}}},pluralize:function(e){return 1===e?"one":"other"}},cs:{translations:{uploading:"Nahrávám... Malý moment.",loadingInfo:"Nahrávám informace...",errors:{default:"Chyba",baddata:"Neplatná hodnota",size:"Soubor je příliš velký",upload:"Nelze nahrát",user:"Nahrávání zrušeno",info:"Nelze nahrát informace",image:"Lze nahrát pouze obrázky",createGroup:"Nelze vytvořit adresář",deleted:"Soubor byl smazán"},draghere:"Přetáhněte soubor sem",file:{one:"%1 soubor",few:"%1 soubory",many:"%1 souborů"},buttons:{cancel:"Zrušit",remove:"Odstranit",choose:{files:{one:"Vyberte soubor",other:"Vyberte soubory"},images:{one:"Vyberte obrázek",other:"Vyberte obrázky"}}},dialog:{done:"Hotovo",showFiles:"Zobrazit soubory",tabs:{names:{"empty-pubkey":"Vítejte",preview:"Náhled",file:"Soubor z počítače",url:"Soubor z internetu",camera:"Webkamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Přetáhněte soubor sem",nodrop:"Nahrajte soubory z vašeho počítače",cloudsTip:"Cloudové úložiště<br>a sociální sítě",or:"nebo",button:"Vyberte soubor z počítače",also:"Můžete také nahrát soubor z"},url:{title:"Soubory z internetu",line1:"Nahrajte jakýkoliv soubor z internetu.",line2:"Stačí vložit odkaz.",input:"Odkaz vložte zde...",button:"Nahrát"},camera:{capture:"Pořídit fotografii",mirror:"Zrcadlo",retry:"Znovu požádat o povolení",pleaseAllow:{title:"Prosím povolte přístup k webkameře",text:"Byl(a) jste požádán(a) o přístup k webkameře. Abyste mohl(a) pořídit fotografii, musíte přístup povolit."},notFound:{title:"Nebyla nalezena webkamera",text:"Zdá se, že k tomuto zařízení není připojena žádná webkamera."}},preview:{unknownName:"neznámý",change:"Zrušit",back:"Zpět",done:"Přidat",unknown:{title:"Nahrávám... Prosím vyčkejte na náhled.",done:"Přeskočit náhled a odeslat"},regular:{title:"Přidat tento soubor?",line1:"Tímto přidáte výše vybraný soubor.",line2:"Prosím potvrďte."},image:{title:"Přidat tento obrázek?",change:"Zrušit"},crop:{title:"Oříznout a přidat tento obrázek",done:"Hotovo",free:"zdarma"},error:{default:{title:"Jejda!",text:"Něco se v průběhu nahrávání nepodařilo.",back:"Zkuste to prosím znovu."},image:{title:"Lze nahrávat pouze obrázky.",text:"Zkuste to prosím s jiným souborem.",back:"Vyberte obrázek"},size:{title:"Soubor přesahuje povolenou velikost.",text:"Prosím zkuste to s jiným souborem."},loadImage:{title:"Chyba",text:"Nelze nahrát obrázek"}},multiple:{title:"Bylo vybráno %files% souborů",question:"Chcete přidat všechny tyto soubory?",tooManyFiles:"Bylo vybráno moc souborů. Maximum je %max%",tooFewFiles:"Bylo vybráno %files% souborů. Musíte vybrat minimálně %min%",clear:"Odstranit vše",done:"Hotovo"}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},da:{translations:{uploading:"Uploader... Vent venligst.",loadingInfo:"Henter information...",errors:{default:"Fejl",baddata:"Forkert værdi",size:"Filen er for stor",upload:"Kan ikke uploade / sende fil",user:"Upload fortrudt",info:"Kan ikke hente information",image:"Kun billeder er tilladt",createGroup:"Kan ikke oprette fil gruppe",deleted:"Filen blev slettet"},draghere:"Drop en fil her",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Annuller",remove:"Fjern",choose:{files:{one:"Vælg en fil",other:"Vælg filer"},images:{one:"Vælg et billede",other:"Vælg billeder"}}},dialog:{done:"Færdig",showFiles:"Vis filer",tabs:{names:{preview:"Vis",file:"Computer",gdrive:"Google Drev",url:"Direkte link"},file:{drag:"Drop en fil her",nodrop:"Hent filer fra din computer",or:"eller",button:"Hent fil fra din computer",also:"Du kan også hente fra"},url:{title:"Filer fra en Web adresse",line1:"Vælg en fil fra en web adresse.",line2:"Skriv bare linket til filen.",input:"Indsæt link her...",button:"Upload / Send"},preview:{unknownName:"ukendt",change:"Annuller",back:"Tilbage",done:"Fortsæt",unknown:{title:"Uploader / sender... Vent for at se mere.",done:"Fortsæt uden at vente på resultat"},regular:{title:"Tilføje fil?",line1:"Du er ved at tilføje filen ovenfor.",line2:"Venligst accepter."},image:{title:"Tilføj billede?",change:"Annuller"},crop:{title:"Beskær og tilføj dette billede",done:"Udfør"},error:{default:{title:"Hov!",text:"Noget gik galt under upload.",back:"Venligst prøv igen"},image:{title:"Du kan kun vælge billeder.",text:"Prøv igen med en billedfil.",back:"Vælg billede"},size:{title:"Den fil du valgte, er desværre større end tilladt.",text:"Venligst prøv med en mindre fil."},loadImage:{title:"Fejl",text:"Kan ikke åbne billede"}},multiple:{title:"Du har valgt %files% filer",question:"Vil du tilføje alle disse filer?",tooManyFiles:"Du har valgt for mange filer. %max% er maximum.",tooFewFiles:"Du har valgt %files% filer. Men du skal vælge mindst %min%.",clear:"Fjern alle",done:"Fortsæt"}}}}},pluralize:function(e){return 1===e?"one":"other"}},de:{translations:{uploading:"Upload läuft… Bitte warten…",loadingInfo:"Informationen werden geladen…",errors:{default:"Fehler",baddata:"Falscher Wert",size:"Datei zu groß",upload:"Kann nicht hochgeladen werden",user:"Hochladen abgebrochen",info:"Informationen können nicht geladen werden",image:"Nur Bilder sind erlaubt",createGroup:"Datei-Gruppe kann nicht erstellt werden",deleted:"Datei wurde gelöscht"},draghere:"Ziehen Sie eine Datei hierhin",file:{one:"%1 Datei",other:"%1 Dateien"},buttons:{cancel:"Abbrechen",remove:"Löschen",choose:{files:{one:"Datei auswählen",other:"Dateien auswählen"},images:{one:"Bild auswählen",other:"Bilder auswählen"}}},dialog:{close:"Schließen",openMenu:"Menü öffnen",done:"Fertig",showFiles:"Dateien anzeigen",tabs:{names:{"empty-pubkey":"Willkommen",preview:"Vorschau",file:"Lokale Dateien",url:"Web-Links",camera:"Kamera"},file:{drag:"Ziehen Sie eine Datei hierhin",nodrop:"Laden Sie Dateien von Ihrem PC hoch",cloudsTip:"Cloud-Speicher<br>und soziale Dienste",or:"oder",button:"Wählen Sie eine Datei",also:"Sie können sie auch Dateien wählen aus"},url:{title:"Eine Datei aus dem Web hochladen",line1:"Sie können eine Datei aus dem Internet hochladen.",line2:"Geben Sie hier einfach den Link ein.",input:"Bitte geben Sie hier den Link ein…",button:"Hochladen"},camera:{title:"Foto mit Webcam aufnehmen",capture:"Machen Sie ein Foto",mirror:"Andere Kamera",retry:"Berechtigungen erneut anfordern",pleaseAllow:{title:"Bitte erlauben Sie den Zugriff auf Ihre Kamera",text:"Sie wurden gebeten, dieser Website den Zugriff auf Ihre Kamera zu erlauben. Um mit Ihrer Kamera Fotos machen zu können, müssen Sie diese Erlaubnis erteilen."},notFound:{title:"Keine Kamera gefunden",text:"Es sieht so aus, als hätten Sie keine Kamera an dieses Gerät angeschlossen."}},preview:{unknownName:"nicht bekannt",change:"Abbrechen",back:"Zurück",done:"Hinzufügen",unknown:{title:"Upload läuft… Bitte warten Sie auf die Vorschau.",done:"Vorschau überspringen und Datei annehmen"},regular:{title:"Diese Datei hinzufügen?",line1:"Diese Datei wird nun hinzugefügt.",line2:"Bitte bestätigen Sie."},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},error:{default:{title:"Oops!",text:"Etwas ist während dem Hochladen schief gelaufen.",back:"Bitte versuchen Sie es erneut"},image:{title:"Nur Bilder sind akzeptiert.",text:"Bitte veruschen Sie es erneut mit einer anderen Datei.",back:"Bild wählen"},size:{title:"Die gewählte Datei ist zu groß.",text:"Bitte versuchen Sie es erneut mit einer anderen Datei."},loadImage:{title:"Fehler",text:"Das Bild kann nicht geladen werden"}},multiple:{title:"Sie haben %files% Dateien gewählt",question:"Möchten Sie all diese Dateien hinzufügen?",tooManyFiles:"Sie haben zu viele Dateien gewählt. %max% ist das Maximum.",tooFewFiles:"Sie haben %files% Dateien gewählt. Es sind mindestens %min% nötig.",clear:"Alle löschen",done:"Fertig",file:{preview:"Vorschau: %file%",remove:"Datei löschen: %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},el:{translations:{loadingInfo:"Φόρτωση πληροφοριών...",errors:{default:"Σφάλμα",baddata:"Λανθασμένη αξία",size:"Πολύ μεγάλο αρχείο",upload:"Δεν μπορεί να γίνει φόρτωση",user:"Η φόρτωση ακυρώθηκε",info:"Δεν μπορούν να φορτωθούν πληροφορίες",image:"Μόνο εικόνες επιτρέπονται",createGroup:"Δεν μπορεί να δημιουργηθεί ομάδα αρχείων",deleted:"Το αρχείο διαγράφηκε"},uploading:"Φόρτωση... Παρακαλούμε περιμένετε.",draghere:"Αποθέστε ένα αρχείο εδώ",file:{one:"%1 αρχείο",other:"%1 αρχεία"},buttons:{cancel:"Ακύρωση",remove:"Κατάργηση",choose:{files:{one:"Επιλέξτε ένα αρχείο",other:"Επιλέξτε αρχεία"},images:{one:"Επιλέξτε μία εικόνα",other:"Επιλέξτε εικόνες"}}},dialog:{close:"Κλείσιμο",openMenu:"Άνοιγμα μενού",done:"Εντάξει",showFiles:"Προβολή αρχείων",tabs:{names:{"empty-pubkey":"Καλώς ήρθατε",preview:"Προεπισκόπηση",file:"Τοπικά αρχεία",url:"Απευθείας σύνδεσμος",camera:"Κάμερα",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"σύρετε & αποθέστε<br>οποιαδήποτε αρχεία",nodrop:"Φορτώστε αρχεία από τον&nbsp;υπολογιστή σας",cloudsTip:"Αποθήκευση νέφους<br>και κοινωνικά δίκτυα",or:"ή",button:"Επιλέξτε ένα τοπικό αρχείο",also:"ή επιλέξτε από"},url:{title:"Αρχεία από τον Ιστό",line1:"Πάρτε οποιοδήποτε αρχείο από το διαδίκτυο.",line2:"Γράψτε απλώς τον σύνδεσμο.",input:"Επικολλήστε τον σύνδεσμό σας εδώ...",button:"Φόρτωση"},camera:{title:"Αρχείο από κάμερα web",capture:"Τραβήξτε μια φωτογραφία",mirror:"Καθρέφτης",startRecord:"Εγγραφή βίντεο",cancelRecord:"Ακύρωση",stopRecord:"Διακοπή",retry:"Νέο αίτημα για άδεια",pleaseAllow:{text:"Έχετε δεχτεί υπόδειξη να επιτρέψετε την πρόσβαση στην κάμερα από αυτόν τον ιστότοπο.<br>Για να τραβήξετε φωτογραφίες με την κάμερά σας πρέπει να εγκρίνετε αυτό το αίτημα.",title:"Παρακαλούμε επιτρέψτε την πρόσβαση στην κάμερά σας"},notFound:{title:"Δεν εντοπίστηκε κάμερα",text:"Φαίνεται ότι δεν έχετε κάμερα συνδεδεμένη με αυτή τη συσκευή."}},preview:{unknownName:"άγνωστο",change:"Ακύρωση",back:"Πίσω",done:"Προσθήκη",unknown:{title:"Φόρτωση... Παρακαλούμε περιμένετε για προεπισκόπηση.",done:"Παράλειψη επισκόπησης και αποδοχή"},regular:{title:"Να προστεθεί αυτό το αρχείο;",line1:"Πρόκειται να προσθέσετε το παραπάνω αρχείο.",line2:"Παρακαλούμε επιβεβαιώστε."},image:{title:"Να προστεθεί αυτή η εικόνα;",change:"Ακύρωση"},crop:{title:"Περικοπή και προσθήκη αυτής της εικόνας",done:"Εντάξει",free:"δωρεάν"},video:{title:"Να προστεθεί αυτό το βίντεο;",change:"Ακύρωση"},error:{default:{title:"Ουπς!",back:"Παρακαλούμε προσπαθήστε ξανά",text:"Κάτι πήγε στραβά κατά τη φόρτωση."},image:{title:"Μόνο αρχεία εικόνων γίνονται δεκτά.",text:"Δοκιμάστε ξανά με άλλο αρχείο.",back:"Επιλέξτε εικόνα"},size:{title:"Το αρχείο που επιλέξατε υπερβαίνει το όριο.",text:"Δοκιμάστε ξανά με άλλο αρχείο."},loadImage:{title:"Σφάλμα",text:"Δεν μπορεί να φορτωθεί η εικόνα"}},multiple:{title:"Έχετε επιλέξει %files%",question:"Προσθήκη %files%;",tooManyFiles:"Έχετε επιλέξει πάρα πολλά αρχεία. Το μέγιστο είναι %max%.",tooFewFiles:"Έχετε επιλέξει %files%. Απαιτούνται τουλάχιστον %min%.",clear:"Κατάργηση όλων",file:{preview:"Προεπισκόπηση %file%",remove:"Αφαίρεση %file%"},done:"Προσθήκη"}}},footer:{text:"παρέχεται από",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},en:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Uploading... Please wait.",loadingInfo:"Loading info...",errors:{default:"Error",baddata:"Incorrect value",size:"File too big",upload:"Cant upload",user:"Upload canceled",info:"Cant load info",image:"Only images allowed",createGroup:"Cant create file group",deleted:"File was deleted"},draghere:"Drop a file here",file:{one:"%1 file",other:"%1 files"},buttons:{cancel:"Cancel",remove:"Remove",choose:{files:{one:"Choose a file",other:"Choose files"},images:{one:"Choose an image",other:"Choose images"}}},dialog:{close:"Close",openMenu:"Open menu",done:"Done",showFiles:"Show files",tabs:{names:{"empty-pubkey":"Welcome",preview:"Preview",file:"Local Files",url:"Direct Link",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle",nft:"NFT"},file:{drag:"drag & drop<br>any files",nodrop:"Upload files from your&nbsp;computer",cloudsTip:"Cloud storages<br>and social networks",or:"or",button:"Choose a local file",also:"or choose from"},url:{title:"Files from the Web",line1:"Grab any file off the web.",line2:"Just provide the link.",input:"Paste your link here...",button:"Upload"},camera:{title:"File from web camera",capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site.<br>In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"unknown",change:"Cancel",back:"Back",done:"Add",unknown:{title:"Uploading... Please wait for a preview.",done:"Skip preview and accept"},regular:{title:"Add this file?",line1:"You are about to add the file above.",line2:"Please confirm."},image:{title:"Add this image?",change:"Cancel"},crop:{title:"Crop and add this image",done:"Done",free:"free"},video:{title:"Add this video?",change:"Cancel"},error:{default:{title:"Oops!",text:"Something went wrong during the upload.",back:"Please try again"},image:{title:"Only image files are accepted.",text:"Please try again with another file.",back:"Choose image"},size:{title:"The file you selected exceeds the limit.",text:"Please try again with another file."},loadImage:{title:"Error",text:"Cant load image"}},multiple:{title:"Youve chosen %files%.",question:"Add %files%?",tooManyFiles:"Youve chosen too many files. %max% is maximum.",tooFewFiles:"Youve chosen %files%. At least %min% required.",clear:"Remove all",done:"Add",file:{preview:"Preview %file%",remove:"Remove %file%"}}}},footer:{text:"powered by",link:"uploadcare"}},serverErrors:{AccountBlockedError:"Administrator's account has been blocked. Please, contact support.",AccountUnpaidError:"Administrator's account has been blocked. Please, contact support.",AccountLimitsExceededError:"Administrator's account has reached its limits. Please, contact support.",FileSizeLimitExceededError:"File is too large.",MultipartFileSizeLimitExceededError:"File is too large.",FileTypeForbiddenOnCurrentPlanError:"Uploading of these files types is not allowed.",DownloadFileSizeLimitExceededError:"Downloaded file is too big."}}},es:{translations:{uploading:"Subiendo... Por favor espere.",loadingInfo:"Cargando información...",errors:{default:"Error",baddata:"Valor incorrecto",size:"Archivo demasiado grande",upload:"No se puede subir",user:"Subida cancelada",info:"No se puede cargar la información",image:"Solo se permiten imágenes",createGroup:"No se puede crear el grupo de archivos",deleted:"El archivo fue eliminado"},draghere:"Arrastra un archivo aquí",file:{one:"%1 archivo",other:"%1 archivos"},buttons:{cancel:"Cancelar",remove:"Eliminar",choose:{files:{one:"Escoge un archivo",other:"Escoge archivos"},images:{one:"Escoge una imagen",other:"Escoge imágenes"}}},dialog:{close:"Cerrar",openMenu:"Menú abierto",done:"Hecho",showFiles:"Mostrar archivos",tabs:{names:{"empty-pubkey":"Bienvenido",preview:"Previsualización",file:"Archivos locales",url:"Enlaces arbitrarios",camera:"Cámara"},file:{drag:"Arrastra un archivo aquí",nodrop:"Sube fotos desde tu dispositivo",cloudsTip:"Almacenamiento en la nube<br>y redes sociales",or:"o",button:"Elige un archivo de tu dispositivo",also:"Tambien puedes seleccionarlo de"},url:{title:"Archivos de la Web",line1:"Coge cualquier archivo de la web.",line2:"Solo danos el link.",input:"Pega tu link aquí...",button:"Subir"},camera:{title:"Archivo desde la cámara web",capture:"Hacer una foto",mirror:"Espejo",startRecord:"Grabar un video",stopRecord:"Detener",cancelRecord:"Cancelar",retry:"Solicitar permisos de nuevo",pleaseAllow:{title:"Por favor, permite el acceso a tu cámara",text:"Este sitio ha pedido permiso para acceder a la cámara. Para tomar imágenes con tu cámara debes aceptar esta petición."},notFound:{title:"No se ha detectado ninguna cámara",text:"Parece que no tienes ninguna cámara conectada a este dispositivo."}},preview:{unknownName:"desconocido",change:"Cancelar",back:"Atrás",done:"Añadir",unknown:{title:"Subiendo. Por favor espera para una vista previa.",done:"Saltar vista previa y aceptar"},regular:{title:"¿Quieres subir este archivo?",line1:"Estás a punto de subir el archivo de arriba.",line2:"Confírmalo por favor."},image:{title:"¿Quieres subir esta imagen?",change:"Cancelar"},crop:{title:"Cortar y añadir esta imagen",done:"Listo",free:"libre"},video:{title:"¿Añadir este video?",change:"Cancelar"},error:{default:{title:"Ups!",text:"Algo salió mal durante la subida.",back:"Por favor, inténtalo de nuevo."},image:{title:"Solo se aceptan archivos de imagen.",text:"Por favor, inténtalo de nuevo con otro archivo.",back:"Escoger imagen"},size:{title:"El archivo que has seleccinado excede el límite.",text:"Por favor, inténtalo de nuevo con otro archivo."},loadImage:{title:"Error",text:"No puede cargar la imagen"}},multiple:{title:"Has escogido %files%",question:"¿Quieres añadir todos estos archivos?",tooManyFiles:"Has escogido demasiados archivos. %max% es el máximo.",tooFewFiles:"Has escogido %files%. Hacen falta al menos %min%.",clear:"Eliminar todo",done:"Hecho",file:{preview:"Vista previa %file%",remove:"Quitar %file%"}}}},footer:{text:"alimentado por"}}},pluralize:function(e){return 1===e?"one":"other"}},et:{translations:{uploading:"Üleslaadimine… Palun oota.",loadingInfo:"Info laadimine...",errors:{default:"Viga",baddata:"Incorrect value",size:"Fail on liiga suur",upload:"Ei saa üles laadida",user:"Üleslaadimine tühistatud",info:"Ei saa infot laadida",image:"Ainult pildid lubatud",createGroup:"Ei saa luua failigruppi",deleted:"Fail on kustutatud"},draghere:"Tiri fail siia",file:{one:"%1 fail",other:"%1 failid"},buttons:{cancel:"Tühista",remove:"Kustuta",choose:{files:{one:"Vali fail",other:"Vali failid"},images:{one:"Vali pilt",other:"Vali pildid"}}},dialog:{done:"Valmis",showFiles:"Näita faile",tabs:{names:{"empty-pubkey":"Tere",preview:"Eelvaade",file:"Failid Kõvakettalt",url:"Veebilink",camera:"Kaamera"},file:{drag:"Tiri failid siia",nodrop:"Lae failid arvutist",cloudsTip:"Pilv<br>ja sotsiaalmeedia",or:"või",button:"Vali fail kõvakettalt",also:"Saad samuti valida"},url:{title:"Failid veebist",line1:"Ükskõik mis fail otse veebist.",line2:"Lihtsalt sisesta URL.",input:"Kleebi link siia...",button:"Lae üles"},camera:{capture:"Take a photo",mirror:"Mirror",startRecord:"Record a video",stopRecord:"Stop",cancelRecord:"Cancel",retry:"Request permissions again",pleaseAllow:{title:"Please allow access to your camera",text:"You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."},notFound:{title:"No camera detected",text:"Looks like you have no camera connected to this device."}},preview:{unknownName:"teadmata",change:"Tühista",back:"Tagasi",done:"Lisa",unknown:{title:"Üleslaadimine... Palun oota eelvaadet.",done:"Jäta eelvaade vahele ja nõustu"},regular:{title:"Lisa see fail?",line1:"Oled lisamas ülaltoodud faili.",line2:"Palun kinnita."},image:{title:"Lisa pilt?",change:"Tühista"},crop:{title:"Lõika ja lisa pilt",done:"Valmis",free:"vaba"},video:{title:"Lisa video?",change:"Tühista"},error:{default:{title:"Oihh!",text:"Midagi läks üleslaadimisel valesti.",back:"Palun proovi uuesti"},image:{title:"Ainult pildifailid on lubatud.",text:"Palun proovi uuesti teise failiga.",back:"Vali pilt"},size:{title:"Valitud fail ületab maksimaalse suuruse.",text:"Palun proovi uuesti teise failiga."},loadImage:{title:"Viga",text:"Ei saa pilti laadida"}},multiple:{title:"Oled valinud %files%",question:"Kas sa soovid lisada kõik failid?",tooManyFiles:"Oled valinud liiga suure hulga faile. %max% on maksimaalne.",tooFewFiles:"Oled valinud %files%. Vähemalt %min% nõutud.",clear:"Eemalda kõik",done:"Valmis"}}}}},pluralize:function(e){return 1===e?"one":"other"}},fr:{translations:{uploading:"Envoi en cours... Merci de patienter.",loadingInfo:"Chargement des informations...",errors:{default:"Erreur",baddata:"Valeur incorrecte",size:"Fichier trop volumineux",upload:"Envoi impossible",user:"Envoi annulé",info:"Impossible de charger les informations",image:"Seules les images sont autorisées",createGroup:"Création d'1 groupe impossible",deleted:"Le fichier a été supprimé"},draghere:"Glissez-déposez un fichier ici",file:{one:"%1 fichier",other:"%1 fichiers"},buttons:{cancel:"Annuler",remove:"Supprimer",choose:{files:{one:"Sélectionner un fichier",other:"Sélectionner des fichiers"},images:{one:"Sélectionner une image",other:"Sélectionner des images"}}},dialog:{close:"Fermer",openMenu:"Ouvrir le menu",done:"Terminer",showFiles:"Voir les fichiers",tabs:{names:{"empty-pubkey":"Bienvenue",preview:"Avant-première",file:"Fichier en local",url:"Une adresse web",camera:"Caméra",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"Glissez-déposez un fichier ici",nodrop:"Envoyez des fichiers depuis votre ordinateur",cloudsTip:"Stockage sur le cloud<br>et réseaux sociaux",or:"ou",button:"Choisir un fichier local",also:"Vous pouvez également le sélectionner depuis"},url:{title:"Fichiers depuis le Web",line1:"Prenez n'importe quel fichier depuis un site web.",line2:"Saisissez simplement son adresse.",input:"Collez le lien ici...",button:"Envoi"},camera:{title:"Fichier depuis la caméra",capture:"Prendre une photo",mirror:"Miroir",startRecord:"Enregistrer une vidéo",stopRecord:"Arrêter",cancelRecord:"Annuler",retry:"Envoyer une nouvelle demande de permission",pleaseAllow:{title:"Autorisez l'accès à votre appareil photo",text:"Vous avez été invité à autoriser l'accès à votre appareil photo. Pour prendre des photos avec votre caméra vous devez approuver cette demande."},notFound:{title:"Aucun appareil photo détecté",text:"Il semblerait que vous n'ayez pas d'appareil photo connecté à cet appareil."}},preview:{unknownName:"inconnu",change:"Annuler",back:"Retour",done:"Ajouter",unknown:{title:"Envoi en cours... Merci de patienter pour prévisualiser.",done:"Passer la prévisualisation et accepter"},regular:{title:"Ajouter ce fichier ?",line1:"Vous êtes sur le point d'ajouter le fichier ci-dessus.",line2:"Merci de confirmer."},image:{title:"Ajouter cette image ?",change:"Annuler"},crop:{title:"Recadrer et ajouter cette image",done:"Terminer",free:"libre"},video:{title:"Ajouter cette vidéo ?",change:"Annuler"},error:{default:{title:"Oups!",text:"Quelque chose n'a pas fonctionné pendant l'envoi.",back:"Merci de bien vouloir recommencer"},image:{title:"Seules les images sont acceptées.",text:"Merci de bien vouloir recommencer avec un autre fichier.",back:"Choisir une image"},size:{title:"Le fichier sélectionné est trop volumineux.",text:"Merci de bien vouloir recommencer avec un autre fichier."},loadImage:{title:"Erreur",text:"Impossible de charger l'image"}},multiple:{title:"Vous avez choisi %files%",question:"Voulez vous ajouter tous ces fichiers ?",tooManyFiles:"Vous avez choisi trop de fichiers. %max% est le maximum.",tooFewFiles:"Vous avez choisi %fichiers%. %min% est le minimum.",clear:"Tout retirer",done:"Terminer",file:{preview:"Prévisualiser %file%",remove:"Supprimer %file%"}}}}}},pluralize:function(e){return 1===e?"one":"other"}},he:{translations:{uploading:"טוען... אנא המתן.",loadingInfo:"טוען מידע...",errors:{default:"שגיאה",baddata:"ערך שגוי",size:"קובץ גדול מידי",upload:"לא ניתן להעלות",user:"העלאה בוטלה",info:"לא ניתן לטעון מידע",image:"ניתן להעלות רק תמונות",createGroup:"לא ניתן ליצור קבוצה",deleted:"הקובץ נמחק"},draghere:"שחרר כאן קובץ",file:{one:"קובץ %1",other:"%1 קבצים"},buttons:{cancel:"ביטול",remove:"הסר",choose:{files:{one:"בחר קובץ",other:"בחר קבצים"},images:{one:"בחר תמונה",other:"בחר תמונות"}}},dialog:{done:"סיום",showFiles:"הצג קבצים",tabs:{names:{facebook:"פייסבוק",dropbox:"דרופבוקס",gdrive:"כונן גוגל",instagram:"אינסטגרם",url:"לינק מהאינטרנט"},file:{drag:"שחרר כאן קובץ",nodrop:"העלה קבצים מהמחשב",or:"או",button:"בחר קובץ מהמחשב",also:"ניתן לבחור גם מ"},url:{title:"קובץ מהאינטרנט",line1:"גרור קובץ מהאינטרנט",line2:"ספק את כתובת הקובץ",input:"הדבק את כתובת הקובץ...",button:"העלה"},preview:{unknownName:"לא ידוע",change:"ביטול",back:"חזרה",done:"הוסף",unknown:{title:"מעלה... נא המתן לתצוגה מקדימה.",done:"דלג על תצוגה מקדימה"},regular:{title:"להוסיף קובץ זה?",line1:"קובץ זה יועלה",line2:"נא אשר."},image:{title:"להוסיף תמונה זו?",change:"ביטול"},crop:{title:"חתוך והוסף תמונה זו",done:"סיום"},error:{default:{title:"אופס!",text:"משהו השתבש בזמן ההעלאה.",back:"נא נסה שוב"},image:{title:"ניתן לקבל רק קבצי תמונות.",text:"נא נסה שוב עם קובץ אחר.",back:"בחר תמונה"},size:{title:"הקובץ שבחרת חורג מהגבול.",text:"נא נסה שוב עם קובץ אחר."},loadImage:{title:"שגיאה",text:"טעינת התמונה נכשלה"}},multiple:{title:"בחרת %files%",question:"אתה מעוניין להוסיף את כל הקבצים האלו?",tooManyFiles:"בחרת יותר מידי קבצים. יש לבחור מקסימום %max% קבצים.",tooFewFiles:"בחרת %files%. יש לבחור לפחות %min%.",clear:"הסר הכל",done:"סיום"}}}}},pluralize:function(e){return 1===e?"one":"other"}},is:{pluralize:function(e){return 1===e?"one":"other"},translations:{uploading:"Hleð upp... Vinsamlegast bíðið.",loadingInfo:"Hleð upp upplýsingum...",errors:{default:"Villa",baddata:"Rangt gildi",size:"Skráin er of stór",upload:"Ekki tókst að hlaða upp skrá",user:"Hætt var við",info:"Ekki tókst að sækja upplýsingar",image:"Myndir eru einungis leyfðar",createGroup:"Ekki tókst að búa til hóp",deleted:"Skrá hefur verið eytt"},draghere:"Dragðu skrá hingað",file:{one:"%1 skrá",other:"%1 skráa"},buttons:{cancel:"Hætta við",remove:"Fjarlægja",choose:{files:{one:"Veldu skrá",other:"Veldu skrár"},images:{one:"Veldu mynd",other:"Veldu myndir"}}},dialog:{close:"Loka",openMenu:"Opna valmynd",done:"Búið",showFiles:"Sjá skrár",tabs:{names:{"empty-pubkey":"Velkomin/n/ð",preview:"Forskoðun",file:"Staðbundnar skrár",url:"Beinn hlekkur",camera:"Myndavél",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"dragðu & slepptu<br>skrám",nodrop:"Hlaða upp þínum skrám",cloudsTip:"Skýjaþjónustur<br>og samfélagsmiðlar",or:"eða",button:"Veldu staðbundna skrá",also:"eða veldu"},url:{title:"Skrár af netinu",line1:"Sæktu hvaða skrá sem er frá netinu",line2:"Settu bara inn hlekk",input:"Límdu hlekkinn hér...",button:"Hlaða upp"},camera:{title:"Skrá frá myndavél",capture:"Taktu mynd",mirror:"Spegill",startRecord:"Taktu upp myndband",stopRecord:"Stopp",cancelRecord:"Hætta við",retry:"Biðja aftur um heimild",pleaseAllow:{title:"Vinsamlegast gefðu heimild til þess að nota myndavélina",text:"Þú hefur verið beðin/n/ð um að gefa heimild til myndavélanotkunar frá þessari síðu<br>Til þess að geta tekið myndir er nauðsynlegt að gefa heimild."},notFound:{title:"Engin myndavél fannst.",text:"Það lítur út fyrir að það sé engin myndavél tengd."}},preview:{unknownName:"óþekkt",change:"Hætta við",back:"Bakka",done:"Bæta við",unknown:{title:"Hleð upp ... vinsamlegast bíðið eftir forskoðun. ",done:"Sleppa forskoðun og samþykkja"},regular:{title:"Bæta þessari skrá við?",line1:"Þú ert að fara bæta þessari skrá við.",line2:"Vinsamlegast staðfestið."},image:{title:"Bæta þessari mynd við?",change:"Hætta við"},crop:{title:"Kroppa og bæta þessari mynd við?",done:"Búið",free:"frítt"},video:{title:"Bæta þessu myndbandi við?",change:"Hætta við"},error:{default:{title:"Úps!",text:"Eitthvað fór úrskeiðis.",back:"Vinsamlegast reyndu aftur"},image:{title:"Myndir eru einungis leyfðar.",text:"Vinsamlegast reyndu aftur.",back:"Velja mynd"},size:{title:"Skráin er of stór.",text:"Vinsamlegast reyndu aftur."},loadImage:{title:"Villa",text:"Gat ekki hlaðið upp mynd."}},multiple:{title:"Þú hefur valið %files%.",question:"Bæta við %files%?",tooManyFiles:"Þú hefur valið of margar skrár. %max% er hámarkið.",tooFewFiles:"Þú hefur valið %files%. Að minnsta kosti %min% er lágmarkið.",clear:"Fjarlægja allar skrár",done:"Bæta við",file:{preview:"Forskoða %file%",remove:"Fjarlægja %file%"}}}}}}},it:{translations:{uploading:"Caricamento in corso... Si prega di attendere.",loadingInfo:"Caricamento informazioni in corso...",errors:{default:"Errore",baddata:"Valore errato",size:"Il file è troppo grande",upload:"Impossibile fare lupload",user:"Upload cancellato",info:"Impossibile caricare le informazioni",image:"Sono ammesse solo immagini",createGroup:"Impossibile creare gruppo di file",deleted:"Il file è stato eliminato"},draghere:"Trascina un file qui",file:{one:"file %1",other:"file %1"},buttons:{cancel:"Cancella",remove:"Rimuovi",choose:{files:{one:"Seleziona un file",other:"Seleziona file"},images:{one:"Seleziona unimmagine",other:"Seleziona immagini"}}},dialog:{done:"Fatto",showFiles:"Mostra file",tabs:{names:{"empty-pubkey":"Benvenuto",preview:"Anteprima",file:"File locali",url:"Link arbitrari",camera:"Fotocamera"},file:{drag:"Trascina un file qui",nodrop:"Carica file dal tuo computer",cloudsTip:"Salvataggi nel cloud<br>e servizi sociali",or:"o",button:"Seleziona un file locale",also:"Puoi anche scegliere da"},url:{title:"File dal web",line1:"Preleva un file dal web.",line2:"È sufficiente fornire il link.",input:"Incolla il tuo link qui...",button:"Carica"},camera:{capture:"Scatta una foto",mirror:"Specchio",retry:"Richiedi di nuovo le autorizzazioni",pleaseAllow:{title:"Consenti laccesso alla tua fotocamera",text:"Ti è stato richiesto di consentire laccesso alla fotocamera da questo sito. Per scattare le foto con la tua fotocamera devi accettare questa richiesta."},notFound:{title:"Nessuna fotocamera rilevata",text:"Non risulta che tu non abbia una fotocamera collegata a questo dispositivo."}},preview:{unknownName:"sconosciuto",change:"Cancella",back:"Indietro",done:"Aggiungi",unknown:{title:"Caricamento in corso... Attendi lanteprima.",done:"Salta lanteprima e accetta"},regular:{title:"Vuoi aggiungere questo file?",line1:"Stai per aggiungere il file sopra.",line2:"Conferma."},image:{title:"Vuoi aggiungere questa immagine?",change:"Cancella"},crop:{title:"Ritaglia e aggiungi questa immagine",done:"Fatto",free:"gratis"},error:{default:{title:"Ops!",text:"Si è verificato un problema durante lupload.",back:"Si prega di riprovare"},image:{title:"Sono accettati solo file immagine.",text:"Riprova con un altro file.",back:"Scegli immagine"},size:{title:"Il file selezionato supera il limite.",text:"Riprova con un altro file."},loadImage:{title:"Errore",text:"Impossibile caricare limmagine"}},multiple:{title:"Hai selezionato %files%",question:"Vuoi aggiungere tutti questi file?",tooManyFiles:"Hai selezionato troppi file. %max% è il massimo.",tooFewFiles:"Hai selezionato %files%. È richiesto almeno %min%.",clear:"Rimuovi tutto",done:"Fatto"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ja:{translations:{uploading:"アップロードしています… 完了までお待ち下さい。",loadingInfo:"読み込み中…",errors:{default:"エラー",baddata:"間違った値",size:"ファイルが大きすぎます",upload:"アップロードできませんでした",user:"アップロードがキャンセルされました",info:"読み込みに失敗しました",image:"アップロードできるのは画像ファイルのみです",createGroup:"グループの作成に失敗しました",deleted:"削除されたファイルです"},draghere:"ここにファイルをドロップ",file:{other:"%1ファイル"},buttons:{cancel:"キャンセル",remove:"削除",choose:{files:{one:"ファイルを選択",other:"ファイルを選択"},images:{one:"画像を選択",other:"画像を選択"}}},dialog:{done:"完了",showFiles:"ファイルを表示",tabs:{names:{preview:"プレビュー",file:"ローカルファイル",url:"URLを直接入力"},file:{drag:"ここにファイルをドロップ",nodrop:"ファイルを選択してアップロード",cloudsTip:"クラウドストレージ<br>およびソーシャルサービス",or:"もしくは",button:"ローカルのファイルを選択",also:"次からも選択可能です:"},url:{title:"ウェブ上のファイル",line1:"ウェブ上からファイルを取得します。",line2:"URLを入力してください。",input:"ここにURLを貼り付けしてください…",button:"アップロード"},preview:{unknownName:"不明なファイル",change:"キャンセル",back:"戻る",done:"追加",unknown:{title:"アップロードしています… プレビューの表示をお待ちください。",done:"プレビューの確認をスキップして完了"},regular:{title:"このファイルを追加しますか?",line1:"こちらのファイルを追加しようとしています。",line2:"確認してください。"},image:{title:"この画像を追加しますか?",change:"キャンセル"},crop:{title:"画像の切り取りと追加",done:"完了",free:"リセット"},error:{default:{title:"失敗しました",text:"アップロード中に不明なエラーが発生しました。",back:"もう一度お試し下さい"},image:{title:"画像ファイルのみ許可されています",text:"他のファイルで再度お試し下さい。",back:"画像を選択"},size:{title:"ファイルサイズが大きすぎます。",text:"他のファイルで再度お試し下さい。"},loadImage:{title:"エラー",text:"画像のロードに失敗しました。"}},multiple:{title:"%files%つのファイルを選択中",question:"これら全てのファイルを追加しますか?",tooManyFiles:"選択ファイルが多すぎます。%max%つ以下にしてください。",tooFewFiles:"選択ファイルが少なすぎます。%files%つ選択中です。少なくとも%min%つ選択してください。",clear:"全て削除",done:"完了"}}}}},pluralize:function(e){return"other"}},ko:{translations:{uploading:"업로드중 기다려주세요",loadingInfo:"정보 로드중...",errors:{default:"오류",baddata:"잘못된 값",size:"파일용량 초과",upload:"업로드 실패",user:"업로드 취소됨",info:"정보를 불러올 수 없습니다",image:"허용된 이미지만 가능",createGroup:"파일 그룹 만들기 실패",deleted:"파일이 삭제되었습니다"},draghere:"여기에 끌어다 놓기",file:{one:"%1 파일",other:"%1 파일"},buttons:{cancel:"취소",remove:"삭제",choose:{files:{one:"파일 첨부",other:"파일 첨부"},images:{one:"이미지 첨부",other:"이미지 첨부"}}},dialog:{close:"닫기",openMenu:"메뉴 열기",done:"완료",showFiles:"파일 표시",tabs:{names:{"empty-pubkey":"반갑습니다",preview:"미리보기",file:"파일 첨부",url:"링크 연결",camera:"카메라",facebook:"페이스북",dropbox:"드롭박스",gdrive:"구글 드라이브",gphotos:"구글 포토",instagram:"인스타그램",evernote:"에버노트",box:"박스",onedrive:"스카이드라이브",flickr:"플리커"},file:{drag:"모든 파일을<br>드래그 & 드롭",nodrop:"파일 업로드",cloudsTip:"클라우드 스토리지 및 소셜",or:"또는",button:"파일 선택",also:"또는 선택하십시오"},url:{title:"웹에서 파일 링크 연결",line1:"웹에서 모든파일을 가져옵니다",line2:"링크만 연결합니다.",input:"링크 붙여 넣기...",button:"업로드"},camera:{title:"카메라 연결",capture:"사진 찍기",mirror:"거울",startRecord:"비디오 녹화",stopRecord:"정지",cancelRecord:"취소",retry:"재 시도",pleaseAllow:{title:"카메라 접근 허용",text:"카메라 접근을 허용하시겠습니까?<br>승인 요청을 해주셔야 합니다"},notFound:{title:"카메라가 없습니다",text:"이 기기에 연결된 카메라가 없습니다"}},preview:{unknownName:"알수없음",change:"취소",back:"뒤로",done:"추가",unknown:{title:"업로드중, 기다려주세요",done:"미리보기 건너뛰기"},regular:{title:"이 파일을 추가하시겠습니까?",line1:"위 파일을 추가하려고 합니다",line2:"확인 하십시오"},image:{title:"이미지를 추가하시겠습니까?",change:"취소"},crop:{title:"이미지 자르기 및 추가",done:"완료",free:"무료"},video:{title:"비디오를 추가하시겠습니까?",change:"취소"},error:{default:{title:"죄송합니다",text:"업로드에 문제가 있습니다",back:"다시 시도해 주세요"},image:{title:"이미지 파일만 허용됩니다",text:"다른 파일로 다시 시도하세요",back:"이미지 선택"},size:{title:"선택한 파일이 한도 초과하였습니다",text:"다른 파일로 다시 시도하세요"},loadImage:{title:"오류",text:"이미지를 불러올 수 없습니다"}},multiple:{title:"%files%을(를) 선택하였습니다",question:"%files%을 추가하시겠습니까?",tooManyFiles:"너무 많은 파일을 추가하셨습니다. %max%가 최대 한도입니다",tooFewFiles:"%files%을(를) 선택하였습니다 최소 %min%이상 필요합니다",clear:"모두 삭제",done:"추가",file:{preview:"%file% 미리보기",remove:"%file% 삭제"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},lv:{translations:{uploading:"Augšupielādē... Lūdzu, gaidiet.",errors:{default:"Kļūda",image:"Atļauti tikai attēli"},draghere:"Velciet failus šeit",file:{zero:"%1 failu",one:"%1 fails",other:"%1 faili"},buttons:{cancel:"Atcelt",remove:"Dzēst"},dialog:{title:"Ielādēt jebko no jebkurienes",poweredby:"Darbināts ar",support:{images:"Attēli",audio:"Audio",video:"Video",documents:"Dokumenti"},tabs:{file:{title:"Mans dators",line1:"Paņemiet jebkuru failu no jūsu datora.",line2:"Izvēlēties ar dialogu vai ievelciet iekšā.",button:"Meklēt failus"},url:{title:"Faili no tīmekļa",line1:"Paņemiet jebkuru failu no tīmekļa.",line2:"Tikai uzrādiet linku.",input:"Ielīmējiet linku šeit...",button:"Ielādēt"}}}},pluralize:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"}},nb:{translations:{uploading:"Laster opp... Vennligst vent.",loadingInfo:"Laster inn info...",errors:{default:"Feil",baddata:"Ugyldig verdi",size:"Filen er for stor",upload:"Kan ikke laste opp",user:"Opplasting avbrutt",info:"Kan ikke laste inn info",image:"Kun bilder er tillatt",createGroup:"Kan ikke opprette filgruppe",deleted:"Filen er slettet"},draghere:"Dra en fil hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Fjern",choose:{files:{one:"Velg en fil",other:"Velg filer"},images:{one:"Velg et bilde",other:"Velg bilder"}}},dialog:{done:"Ferdig",showFiles:"Vis filer",tabs:{names:{preview:"Forhåndsvising",file:"Lokale filer",url:"Direktelink"},file:{drag:"Dra og slipp en fil her",nodrop:"Last opp filer fra datamaskinen",cloudsTip:"Skylagring<br>og sosiale tjenester",or:"eller",button:"Velg en lokal fil",also:"Du kan også velge det fra"},url:{title:"Filer fra internett",line1:"Velg hvilken som helst fil fra internett.",line2:"Bare gi oss linken.",input:"Lim inn linken her...",button:"Last opp"},preview:{unknownName:"ukjent",change:"Avbryt",back:"Tilbake",done:"Legg til",unknown:{title:"Laster opp... Vennligst vent på forhåndsvisning.",done:"Hopp over forhåndsvisning og godkjenn"},regular:{title:"Legge til denne filen?",line1:"Filen legges nå til.",line2:"Vennligst bekreft."},image:{title:"Legge til dette bildet?",change:"Avbryt"},crop:{title:"Kutt og legg til dette bildet",done:"Ferdig",free:"frigjør"},error:{default:{title:"Ops!",text:"Noe gikk galt under opplastingen.",back:"Vennligst prøv igjen"},image:{title:"Kun bilder er akseptert.",text:"Prøv igjen med en annen fil.",back:"Velg bilde"},size:{title:"Den valgte filen overskrider tilatt størrelse.",text:"Vennligst prøv igjen med en annen fil."},loadImage:{title:"Feil",text:"Kan ikke laste bildet"}},multiple:{title:"Du har valgt %files%",question:"Ønsker du å legge til alle filene?",tooManyFiles:"Du har valgt for mange filer. %max% er maksimum.",tooFewFiles:"Du har valgt %files%. Minimum %min% er påkrevd.",clear:"Fjern alle",done:"Ferdig"}}}}},pluralize:function(e){return 1===e?"one":"other"}},nl:{translations:{uploading:"Uploaden... Even geduld.",loadingInfo:"Laden informatie...",errors:{default:"Fout",baddata:"Ongeldige waarde",size:"Bestand is te groot",upload:"Kan niet uploaden",user:"Upload geannuleerd",info:"Kan informatie niet laden",image:"Alleen afbeeldingen toegestaan",createGroup:"Kan bestandsgroep niet maken",deleted:"Bestand is verwijderd"},draghere:"Drop hier een bestand",file:{one:"%1 bestand",other:"%1 bestanden"},buttons:{cancel:"Annuleren",remove:"Verwijderen",choose:{files:{one:"Kies een bestand",other:"Kies bestanden"},images:{one:"Kies een afbeelding",other:"Kies afbeeldingen"}}},dialog:{done:"Klaar",showFiles:"Toon bestanden",tabs:{names:{preview:"Voorvertoning",file:"Computer",url:"Directe links"},file:{drag:"Drop hier een bestand",nodrop:"Upload bestanden van je computer",or:"of",button:"Selecteer een bestand op je computer",also:"Je kan ook selecteren van"},camera:{title:"Bestand van webcamera",retry:"Opnieuw toegang aanvragen"},url:{title:"Bestanden op het web",line1:"Selecteer een bestand op het web.",line2:"Voer de link in.",input:"Plak de link hier...",button:"Upload"},preview:{unknownName:"onbekend",change:"Annuleren",back:"Terug",done:"Toevoegen",unknown:{title:"Uploaden... Wacht op de voorvertoning.",done:"Voorvertoning overslaan an accepteren"},regular:{title:"Dit bestand toevoegen?",line1:"Je staat op het punt bovenstaand bestand toe te voegen.",line2:"Bevestig"},image:{title:"Voeg deze afbeelding toe?",change:"Annuleren"},crop:{title:"Afbeelding bijknippen en toevoegen",done:"Klaar"},error:{default:{title:"Oeps!",text:"Er is een fout opgetreden tijdens het uploaden.",back:"Probeer opnieuw"},image:{title:"Alleen afbeeldingen worden geaccepteerd.",text:"Probeer opnieuw met een andere bestand.",back:"Selecteer afbeelding"},size:{title:"Het geselecteerd bestand is groter dan de limiet.",text:"Probeer opnieuw met een andere bestand."},loadImage:{title:"Fout",text:"Kan afbeelding niet laden"}},multiple:{title:"Je hebt de volgende bestanden geselecteerd %files%",question:"Wil je al deze bestanden toevoegen?",tooManyFiles:"Je hebt teveel bestanden geselecteerd. %max% is het maximum.",tooFewFiles:"Je hebt de volgende bestanden geselecteerd %files%. Minimaal %min% is verplicht.",clear:"Verwijder alle bestanden",done:"Klaar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},pl:{translations:{uploading:"Przesyłanie... Proszę czekać.",loadingInfo:"Ładowanie...",errors:{default:"Błąd",baddata:"Niepoprawna wartość",size:"Plik zbyt duży",upload:"Nie udało się przesłać",user:"Przesyłanie anulowane",info:"Nie udało się załadować informacji",image:"Dozwolone są tylko obrazy",createGroup:"Nie udało się utworzyć grupy plików",deleted:"Plik został usunięty"},draghere:"Upuść plik tutaj",file:{one:"%1 plik",few:"%1 pliki",many:"%1 plików"},buttons:{cancel:"Anuluj",remove:"Usuń",choose:{files:{one:"Wybierz plik",other:"Wybierz pliki"},images:{one:"Wybierz obraz",other:"Wybierz obrazy"}}},dialog:{close:"Zamknij",openMenu:"Otwórz menu",done:"Wykonano",showFiles:"Pokaż pliki",tabs:{names:{"empty-pubkey":"Witaj",preview:"Podgląd",file:"Pliki lokalne",url:"Plik z Sieci",camera:"Aparat"},file:{drag:"Upuść plik tutaj",nodrop:"Prześlij pliki z Twojego komputera",cloudsTip:"Dane w chmurze<br>i sieci społecznościowe",or:"lub",button:"Wybierz plik lokalny",also:"Możesz również wybrać z"},url:{title:"Pliki z Sieci",line1:"Złap jakikolwiej plik z sieci.",line2:"Podaj adres.",input:"Wklej link...",button:"Prześlij"},camera:{title:"Plik z kamery internetowej",capture:"Zrób zdjęcie",mirror:"Odbicie lustrzane",startRecord:"Nagraj film",stopRecord:"Zakończ",cancelRecord:"Anuluj",retry:"Poproś ponownie o dostęp",pleaseAllow:{title:"Prośba o udostępnienie aparatu",text:"Zostałeś poproszony przez tę stronę o dostęp do aparatu. Aby robić zdjecia, musisz zaakceptować tę prośbę."},notFound:{title:"Nie wykryto aparatu.",text:"Wygląda na to, że nie masz podłączonego aparatu do tego urządzenia."}},preview:{unknownName:"nieznany",change:"Anuluj",back:"Wstecz",done:"Dodaj",unknown:{title:"Przesyłanie... Proszę czekać na podgląd.",done:"Omiń podgląd i zaakceptuj."},regular:{title:"Dodać ten plik?",line1:"Zamierzasz dodać nowy plik.",line2:"Potwierdź, proszę."},image:{title:"Dodać ten obraz?",change:"Anuluj"},crop:{title:"Przytnij i dodaj ten obraz",done:"Wykonano",free:"wolny"},video:{title:"Dodać ten film?",change:"Anuluj"},error:{default:{title:"Oops!",text:"Coś poszło nie tak podczas przesyłania.",back:"Spróbuj ponownie"},image:{title:"Akceptowane są tylko obrazy.",text:"Spróbuj ponownie z innym plikiem.",back:"Wybierz obraz"},size:{title:"Plik, który wybrałeś, przekracza dopuszczalny rozmiar",text:"Spróbuj ponownie z innym plikiem."},loadImage:{title:"Błąd",text:"Nie udało się załadować obrazu"}},multiple:{title:"Wybrałeś %files%",question:"Czy chcesz dodać wszystkie te pliki?",tooManyFiles:"Wybrałeś zbyt wiele plików. Maksimum to %max%.",tooFewFiles:"Wybrałeś %files%. Wymagane jest co najmniej %min%.",clear:"Usuń wszystkie",done:"Wykonano",file:{preview:"Zobacz %file%",remove:"Usuń %file%"}}}}}},pluralize:function(e){var t;return 1===e?"one":(t=e%10)>=2&&t<=4&&1!=(e/10%10|0)?"few":"many"}},pt:{translations:{uploading:"Fazendo upload... Aguarde.",loadingInfo:"Carregando informações...",errors:{default:"Erro",baddata:"Valor incorreto",size:"Arquivo muito grande",upload:"Não foi possível fazer o upload",user:"Upload cancelado",info:"Não foi possível carregar as informações",image:"Apenas imagens são permitidas",createGroup:"Não foi possível criar o grupo de arquivos",deleted:"O arquivo foi excluído"},draghere:"Arraste um arquivo aqui",file:{one:"%1 arquivo",other:"%1 arquivos"},buttons:{cancel:"Cancelar",remove:"Excluir",choose:{files:{one:"Escolha um arquivo",other:"Escolha arquivos"},images:{one:"Escolha uma imagem",other:"Escolha imagens"}}},dialog:{done:"OK",showFiles:"Mostrar arquivos",tabs:{names:{preview:"Visualizar",file:"Computador",url:"Link da web"},file:{drag:"Arraste um arquivo aqui",nodrop:"Faça upload de arquivos do seu computador",or:"ou",button:"Escolha um arquivo do computador",also:"Você também pode escolher arquivos de"},url:{title:"Arquivos da web",line1:"Faça upload de qualquer arquivo da web.",line2:"Apenas informe o link.",input:"Cole seu link aqui...",button:"Upload"},camera:{capture:"Tirar uma foto",mirror:"Espelhar",startRecord:"Gravar um vídeo",stopRecord:"Parar",cancelRecord:"Cancelar",retry:"Requisitar permissão novamente",pleaseAllow:{title:"Por favor permita o acesso a sua câmera",text:"Você foi solicitado a permitir o acesso à câmera a partir deste site. Para tirar fotos com sua câmera, você deve aprovar este pedido."},notFoud:{title:"Câmera não detectada",text:"Parece que você não tem uma câmera conectada a este dispositivo"}},preview:{unknownName:"desconhecido",change:"Cancelar",back:"Voltar",done:"Adicionar",unknown:{title:"Fazendo upload... Aguarde a visualização.",done:"Pular visualização e aceitar"},regular:{title:"Adicionar esse arquivo?",line1:"Você está prestes a adicionar o arquivo acima.",line2:"Por favor, confirme."},image:{title:"Adicionar essa imagem?",change:"Cancelar"},crop:{title:"Cortar e adicionar essa imagem",done:"OK",free:"livre"},error:{default:{title:"Oops!",text:"Alguma coisa deu errado durante o upload.",back:"Por favor, tente novamente"},image:{title:"Apenas arquivos de imagem são aceitos.",text:"Por favor, tente novamente com outro arquivo.",back:"Escolher a imagem"},size:{title:"O arquivo que você escolheu excede o limite.",text:"Por favor, tente novamente com outro arquivo."},loadImage:{title:"Erro",text:"Não foi possível carregar a imagem"}},multiple:{title:"Você escolheu",question:"Você quer adicionar todos esses arquivos?",clear:"Excluir todos",done:"OK"}}}}},pluralize:function(e){return 1===e?"one":"other"}},ro:{translations:{uploading:"Se încarcă... Răbdare.",loadingInfo:"Info încărcare...",errors:{default:"Eroare",baddata:"Valoare incorectă",size:"Fișier prea mare",upload:"Nu pot încărca",user:"Încărcare anulată",info:"Nu pot încărca info",image:"Doar imagini, vă rog",createGroup:"Nu pot crea grup de fișiere",deleted:"Fișierul a fost șters"},draghere:"Trage un fișier aici",file:{one:"%1 fișier",other:"%1 fișiere"},buttons:{cancel:"Anulare",remove:"Șterge",choose:{files:{one:"Alege un fișier",other:"Alege fișiere"},images:{one:"Alege o imagine",other:"Alege imagini"}}},dialog:{close:"Închide",openMenu:"Deschide meniu",done:"Gata",showFiles:"Arată fișiere",tabs:{names:{"empty-pubkey":"Bine ai venit",preview:"Previzualizare",file:"Fișiere locale",url:"Link direct",camera:"Camera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"trage aici<br>fișierele",nodrop:"Încarcă fișiere din computer",cloudsTip:"Cloud <br>și rețle sociale",or:"sau",button:"Alege un fișier local",also:"sau alege din"},url:{title:"Fișiere din Web",line1:"Ia orice fișier din Web.",line2:"Trebuie să ai doar linkul.",input:"Lipește linkul aici...",button:"Încarcă"},camera:{title:"Fișier din camera web",capture:"Fă o fotografie",mirror:"Mirror",startRecord:"Înregistrează un video",stopRecord:"Stop",cancelRecord:"Anulează",retry:"Cere permisiune din nou",pleaseAllow:{title:"Te rog sa-mi dai acces la cameră",text:"Ai fost rugat să dai acces la cameră de acest site.<br>Pentru a putea face fotografii cu camera, trebuie să aprobi această cerere."},notFound:{title:"Nicio cameră detectată",text:"Se pare că nu ai nicio cameră atașată acestui device."}},preview:{unknownName:"necunoscut",change:"Anulează",back:"Înapoi",done:"Adaugă",unknown:{title:"Se încarcă... Te rog așteaptă previzualizarea.",done:"Sari peste previzualizare și acceptă"},regular:{title:"Adaug acest fișier?",line1:"Ești pe punctul de a adăuga fișierul de mai sus.",line2:"Te rog confirmă."},image:{title:"Adaug această imagine?",change:"Anulează"},crop:{title:"Decupează și adaugă aceasta imagine",done:"Gata",free:"gratis"},video:{title:"Adaug acest video?",change:"anulează"},error:{default:{title:"Oops!",text:"A intervenit o problemă la încărcare.",back:"te rog încearcă din nou"},image:{title:"Sunt acceptate doar imagini.",text:"Te rog încearcă din nou cu un alt fișier.",back:"Alege imagine"},size:{title:"Fișierul selectat de tine este prea mare.",text:"Te rog să încerci cu alt fișier."},loadImage:{title:"Eroare",text:"Nu pot încărca imaginea"}},multiple:{title:"Ai ales %files%.",question:"Adaug %files%?",tooManyFiles:"Ai ales prea multe fișiere. %max% is maximum.",tooFewFiles:"Ai ales %files%. Minimul este %min% .",clear:"Șterge toate",done:"Adaugă",file:{preview:"Previzualizare %file%",remove:"Șterge %file%"}}}},footer:{text:"powered by",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},ru:{translations:{uploading:"Идет загрузка",loadingInfo:"Загрузка информации...",errors:{default:"Ошибка",baddata:"Некорректные данные",size:"Слишком большой файл",upload:"Ошибка при загрузке",user:"Загрузка прервана",info:"Ошибка при загрузке информации",image:"Разрешены только изображения",createGroup:"Не удалось создать группу файлов",deleted:"Файл удалён"},draghere:"Перетащите файл сюда",file:{one:"%1 файл",few:"%1 файла",many:"%1 файлов"},buttons:{cancel:"Отмена",remove:"Удалить",choose:{files:{one:"Выбрать файл",other:"Выбрать файлы"},images:{one:"Выбрать изображение",other:"Выбрать изображения"}}},dialog:{done:"Готово",showFiles:"Показать файлы",tabs:{names:{preview:"Предпросмотр","empty-pubkey":"Приветствие",file:"Локальные файлы",vk:"ВКонтакте",url:"Ссылка",camera:"Камера"},file:{drag:"Перетащите файл сюда",nodrop:"Загрузка файлов с вашего компьютера",cloudsTip:"Облачные хранилища<br>и социальные сети",or:"или",button:"Выберите локальный файл",also:"Вы также можете загрузить файлы, используя:"},url:{title:"Файлы с других сайтов",line1:"Загрузите любой файл из сети.",line2:"",input:"Укажите здесь ссылку...",button:"Загрузить"},camera:{title:"Файл из видеокамеры",capture:"Сделать снимок",mirror:"Отразить",retry:"Повторно запросить разрешение",pleaseAllow:{title:"Пожалуйста, разрешите доступ к камере",text:"Для того, чтобы сделать снимок, мы запросили разрешение на доступ к камере с этого сайта."},notFound:{title:"Камера не найдена",text:"Скорее всего камера не подключена или не настроена."}},preview:{unknownName:"неизвестно",change:"Отмена",back:"Назад",done:"Добавить",unknown:{title:"Загрузка... Пожалуйста подождите.",done:"Пропустить предварительный просмотр"},regular:{title:"Загрузить этот файл?",line1:"Вы собираетесь добавить этот файл:",line2:"Пожалуйста, подтвердите."},image:{title:"Добавить это изображение?",change:"Отмена"},video:{title:"Добавить это видео?",change:"Отмена"},crop:{title:"Обрезать и добавить это изображение",done:"Готово",free:"произв."},error:{default:{title:"Ой!",text:"Что-то пошло не так во время загрузки.",back:"Пожалуйста, попробуйте ещё раз"},image:{title:"Можно загружать только изображения.",text:"Попробуйте загрузить другой файл.",back:"Выберите изображение"},size:{title:"Размер выбранного файла превышает лимит.",text:"Попробуйте загрузить другой файл."},loadImage:{title:"Ошибка",text:"Изображение не удалось загрузить"}},multiple:{title:"Вы выбрали %files%",question:"Добавить все эти файлы?",tooManyFiles:"Вы выбрали слишком много файлов. %max% максимум.",tooFewFiles:"Вы выбрали %files%. Нужно не меньше %min%.",clear:"Удалить все",done:"Добавить",file:{preview:"Предпросмотр %file%",remove:"Удалить %file%"}}}}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},sk:{translations:{uploading:"Nahrávam... Prosím počkajte.",loadingInfo:"Nahrávam informácie...",errors:{default:"Chyba",baddata:"Nesprávna hodnota",size:"Súbor je príliš veľký",upload:"Nedá sa nahrať",user:"Nahrávanie bolo zrušené",info:"Informácie sa nedajú nahrať",image:"Povolené sú len obrázky",createGroup:"Nie je možné vytvoriť priečinok",deleted:"Súbor bol odstránený"},draghere:"Sem presuňte súbor",file:{one:"%1 súbor",few:"%1 súbory",other:"%1 súborov"},buttons:{cancel:"Zrušiť",remove:"Odstrániť",choose:{files:{one:"Vyberte súbor",other:"Vyberte súbory"},images:{one:"Vyberte obrázok",other:"Vyberte obrázky"}}},dialog:{close:"Zavrieť",openMenu:"Otvoriť menu",done:"Hotovo",showFiles:"Ukázať súbory",tabs:{names:{"empty-pubkey":"Vitajte",preview:"Náhľad",file:"Z počítača",url:"Z internetu",camera:"Kamera",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Disk Google",gphotos:"Google Obrázky",instagram:"Instagram",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"presuňte a vložte<br>akékoľvek súbory",nodrop:"Nahrajte súbory z vášho&nbsp;počítača",cloudsTip:"Cloud úložiská<br>a sociálne siete",or:"alebo",button:"Vyberte súbor z počítača",also:"alebo vyberte z"},url:{title:"Súbory z internetu",line1:"Uložte akýkoľvek súbor z internetu.",line2:"Stačí pridať odkaz na neho.",input:"Vložte svoj odkaz sem...",button:"Nahrať"},camera:{title:"Súbor z webkamery",capture:"Odfotiť",mirror:"Zrkadliť",startRecord:"Natočte video",stopRecord:"Prestať natáčať",cancelRecord:"Zrušiť",retry:"Znovu požiadať o prístup",pleaseAllow:{title:"Prosím povoľte prístup k vašej kamere",text:"Boli ste vyzvaní aby ste umožnili tejto stránke prístup ku kamere.<br>Prístup musíte povolit aby ste mohli fotiť s vašou kamerou."},notFound:{title:"Kamera nebola nájdená",text:"Zdá sa, že k tomuto zariadeniu nemáte pripojenú kameru."}},preview:{unknownName:"neznámy",change:"Zrušiť",back:"Späť",done:"Pridať",unknown:{title:"Nahráva sa... Prosím počkajte na náhľad.",done:"Preskočiť náhľad a nahrať"},regular:{title:"Pridať tento súbor?",line1:"Chystáte sa pridať vyššie uvedený súbor.",line2:"Prosím potvrďte váš výber."},image:{title:"Pridať tento obrázok?",change:"Zrušiť"},crop:{title:"Orezať a pridať túto fotku",done:"Hotovo",free:"obnoviť"},video:{title:"Pridať toto video?",change:"Zrušiť"},error:{default:{title:"Ejha!",text:"Pri nahrávaní sa vyskytla chyba.",back:"Skúste to znovu"},image:{title:"Je možné nahrávať len obrázky",text:"Skúste to znovu s iným súborom.",back:"Vybrať obrázok"},size:{title:"Súbor, ktorý ste vybrali presahuje povolenú veľkosť.",text:"Skúste to znovu s iným súborom."},loadImage:{title:"Chyba",text:"Obrázok nie je možné vyhľadať"}},multiple:{title:"Vybrali ste %files%.",question:"Pridať %files%?",tooManyFiles:"Vybrali ste príliš veľa súborov. Maximum je %max%.",tooFewFiles:"Vybrali ste %files%. Potrebných je aspoň %min%.",clear:"Odstrániť všetky",done:"Pridať",file:{preview:"Nahliadnuť na %file%",remove:"Odstrániť %file%"}}}}}},pluralize:function(e){return 1===e?"one":e>=2&&e<=4?"few":"many"}},sr:{translations:{uploading:"Шаљем... Молимо сачекајте.",loadingInfo:"Учитавам информације...",errors:{default:"Грешка",baddata:"Погрешна вредност",size:"Фајл је сувише велик",upload:"Не могу да пошаљем",user:"Слање прекинуто",info:"Не могу да учитам информације",image:"Дозвољене су само слике",createGroup:"Не могу да направим групу фајлова",deleted:"Фајл је обрисан"},draghere:"Убаците фајл овде",file:{one:"%1 фајл",other:"%1 фајлова"},buttons:{cancel:"Поништи",remove:"Избаци",choose:{files:{one:"Изабери фајл",other:"Изабери фајлове"},images:{one:"Изабери слику",other:"Изабери слике"}}},dialog:{close:"Затвори",openMenu:"Отвори мени",done:"Готово",showFiles:"Покажи фајлове",tabs:{names:{"empty-pubkey":"Добродошли",preview:"Погледај",file:"Локални фајлови",url:"Директан линк",camera:"Камера",facebook:"Фејсбук",dropbox:"Dropbox",gdrive:"Google Drive",gphotos:"Google Photos",instagram:"Инстаграм",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"превуци<br>било које фајлове",nodrop:"Пошаљи фајлове са твог&nbsp;компјутера",cloudsTip:"Клауд<br>и социјалне мреже",or:"или",button:"Изабери локални фајл",also:"или изабери"},url:{title:"Фајлове са Интернета",line1:"Изабери било који фајл са Интернета.",line2:"Само убаци линк.",input:"Убаци линк овде...",button:"Пошаљи"},camera:{title:"Фајл са камере",capture:"Усликај",mirror:"Огледало",startRecord:"Сними видео",stopRecord:"Заустави",cancelRecord:"Поништи",retry:"Тражи дозволу поново",pleaseAllow:{title:"Молимо вас да дозволите приступ вашој камери",text:"Упитани сте да дозволите приступ вашој камери са овог сајта.<br>Уколико желите да сликате, морате одобрити овај захтев."},notFound:{title:"Камера није препозната",text:"Изгледа да немате камеру на овом уређају."}},preview:{unknownName:"непознато",change:"Поништи",back:"Назад",done:"Додај",unknown:{title:"Шаљем... Сачекајте за приказ.",done:"Прескочи приказ и прихвати"},regular:{title:"Додај овај фајл?",line1:"Управо ћете додати овај фајл изнад.",line2:"Молимо потврдите."},image:{title:"Додај ову слику?",change:"Поништи"},crop:{title:"Кропуј и додај ову слику",done:"Урађено",free:"слободно"},video:{title:"Додај овај видео?",change:"Поништи"},error:{default:{title:"Ооопс!",text:"Нешто је искрсло у току слања.",back:"Молимо покушајте поново"},image:{title:"Дозвљене су само слике.",text:"Молимо покушајте са другим фајлом.",back:"Изабери слику"},size:{title:"Фајл који сте изабрали премашује лимит.",text:"Молимо покушајте са другим фајлом."},loadImage:{title:"Грешка",text:"Не могу да учитам слику"}},multiple:{title:"Изабрали сте %files%.",question:"Додај %files%?",tooManyFiles:"Изабрали сте превише фајлова. %max% је максимално.",tooFewFiles:"Изабрали сте %files%. Морате најмање %min% фајла.",clear:"Избаци све",done:"Додај",file:{preview:"Прегледај %file%",remove:"Избаци %file%"}}}},footer:{text:"направио",link:"uploadcare"}}},pluralize:function(e){return 1===e?"one":"other"}},sv:{translations:{uploading:"Laddar... Var god vänta.",loadingInfo:"Laddar info...",errors:{default:"Fel",baddata:"Felaktigt värde",size:"Filen är för stor",upload:"Kan inte ladda upp",user:"Uppladdning avbruten",info:"Kan inte ladda informationen",image:"Endast bilder tillåtna",createGroup:"Kan inte skapa filgrupp",deleted:"Fil raderad"},draghere:"Dra filen hit",file:{one:"%1 fil",other:"%1 filer"},buttons:{cancel:"Avbryt",remove:"Ta bort",choose:{files:{one:"Välj fil",other:"Välj filer"},images:{one:"Välj en bild",other:"Välj bilder"}}},dialog:{done:"Klar",showFiles:"Visa filer",tabs:{names:{"empty-pubkey":"Välkommen",preview:"Förhandsgranskning",file:"Lokala filer",url:"Direkta länkar",camera:"Kamera"},file:{drag:"Släpp filen här",nodrop:"Ladda upp filer från din dator",cloudsTip:"Molnlagring<br>och sociala nätverk",or:"eller",button:"Välj en lokal fil",also:"Du kan också välja den från"},url:{title:"Filer från webben",line1:"Välj en fil från en webbadress.",line2:"Ange bara länken till filen.",input:"Klistra in din länk här...",button:"Ladda upp"},camera:{capture:"Ta ett foto",mirror:"Spegel",retry:"Begär tillstånd igen",pleaseAllow:{title:"Vänligen ge tillgång till din kamera",text:"Du har uppmanats att tillåta att denna webbplats får tillgång till din kamera.För att ta bilder med din kamera måste du godkänna denna begäran."},notFound:{title:"Ingen kamera hittades",text:"Det verkar som att du inte har någon kamera ansluten till denna enheten."}},preview:{unknownName:"okänd",change:"Avbryt",back:"Tillbaka",done:"Lägg till",unknown:{title:"Laddar... Vänligen vänta på förhandsgranskning.",done:"Skippa förhandsgranskning och acceptera"},regular:{title:"Lägg till denna filen?",line1:"Du håller på att lägga till filen ovan.",line2:"Vänligen bekräfta."},image:{title:"Lägg till denna bilden?",change:"Avbryt"},crop:{title:"Beskär och lägg till denna bild",done:"Klar",free:"fri"},error:{default:{title:"Oops!",text:"Någonting gick fel under uppladdningen.",back:"Vänligen försök igen"},image:{title:"Endast bildfiler accepteras.",text:"Vänligen försök igen med en annan fil.",back:"Välj bild"},size:{title:"Filen du har valt är för stor.",text:"Vänligen försök igen med en annan fil."},loadImage:{title:"Fel",text:"Kan inte ladda bild"}},multiple:{title:"Du har valt %files%",question:"Vill du lägga till alla dessa filer?",tooManyFiles:"Du har valt för många filer. %max% är max.",tooFewFiles:"Du har valt %files%. Minst %min% krävs.",clear:"Ta bort alla",done:"Klar"}}}}},pluralize:function(e){return 1===e?"one":"other"}},tr:{translations:{uploading:"Yükleniyor... Lütfen bekleyin.",loadingInfo:"Bilgiler yükleniyor...",errors:{default:"Hata",baddata:"Geçersiz değer",size:"Dosya çok büyük",upload:"Yüklenemedi",user:"Yükleme iptal edildi",info:"Bilgiler getirilemedi",image:"Sadece resim dosyası yüklenebilir",createGroup:"Dosya grubu yaratılamıyor",deleted:"Dosya silinmiş"},draghere:"Buraya bir dosya bırakın",file:{other:"%1 dosya"},buttons:{cancel:"İptal",remove:"Kaldır",choose:{files:{one:"Dosya Seçin",other:"Dosya Seçin"},images:{one:"Resim Dosyası Seçin",other:"Resim Dosyası Seçin"}}},dialog:{done:"Bitti",showFiles:"Dosyaları Göster",tabs:{names:{"empty-pubkey":"Hoş geldiniz",preview:"Önizleme",file:"Bilgisayar",url:"Dış Bağlantılar",camera:"Kamera"},file:{drag:"Buraya bir dosya bırakın",nodrop:"Bilgisayarınızdan dosya yükleyin",or:"ya da",button:"Bilgisayardan bir dosya seç",also:"Diğer yükleme seçenekleri",cloudsTip:"Bulut depolamalar<br>ve sosyal hizmetler"},url:{title:"Webden dosyalar",line1:"Webden herhangi bir dosya seçin.",line2:"Dosya bağlantısını sağlayın.",input:"Bağlantınızı buraya yapıştırın...",button:"Yükle"},camera:{capture:"Fotoğraf çek",mirror:"Ayna",retry:"Tekrar izin iste",pleaseAllow:{title:"Lütfen kameranıza erişilmesine izin verin",text:"Bu siteden kamera erişimine izin vermeniz talep ediliyor. Kameranızla fotoğraf çekmek için bu isteği onaylamanız gerekmektedir."},notFound:{title:"Kamera algılanamadı",text:"Bu cihaza kamera bağlantısının olmadığı görünüyor."}},preview:{unknownName:"bilinmeyen",change:"İptal",back:"Geri",done:"Ekle",unknown:{title:"Yükleniyor... Önizleme için lütfen bekleyin.",done:"Önizlemeyi geç ve kabul et"},regular:{title:"Bu dosya eklensin mi?",line1:"Yukarıdaki dosyayı eklemek üzeresiniz.",line2:"Lütfen onaylayın."},image:{title:"Bu görsel eklensin mi?",change:"İptal"},crop:{title:"Bu görseli kes ve ekle",done:"Bitti"},error:{default:{title:"Aman!",text:"Yükleme sırasında bir hata oluştu.",back:"Lütfen tekrar deneyin."},image:{title:"Sadece resim dosyaları kabul edilmektedir.",text:"Lütfen başka bir dosya ile tekrar deneyin.",back:"Resim dosyası seç"},size:{title:"Seçtiğiniz dosya limitleri aşıyor.",text:"Lütfen başka bir dosya ile tekrar deneyin."},loadImage:{title:"Hata",text:"Resim dosyası yüklenemedi"}},multiple:{title:"%files% dosya seçtiniz",question:"Bu dosyaların hepsini eklemek istiyor musunuz?",tooManyFiles:"Fazla sayıda dosya seçtiniz, en fazla %max% dosya olabilir.",tooFewFiles:"%files% dosya seçtiniz, en az %min% dosya olmalıdır.",clear:"Hepsini kaldır",done:"Bitti"}}}}},pluralize:function(e){return"other"}},uk:{translations:{uploading:"Завантаження... Зачекайте.",loadingInfo:"Завантаження інформації...",errors:{default:"Помилка",baddata:"Неправильне значення",size:"Завеликий файл",upload:"Помилка завантаження",user:"Завантаження скасовано",info:"Помилка завантаження інформації",image:"Дозволені лише зображення",createGroup:"Неможливо створити групу файлів",deleted:"Файл видалено"},draghere:"Перетягніть файл сюди",file:{one:"%1 файл",few:"%1 файли",many:"%1 файлів"},buttons:{cancel:"Скасувати",remove:"Видалити",choose:{files:{one:"Вибрати файл",other:"Вибрати файли"},images:{one:"Вибрати зображення",other:"Вибрати зображення"}}},dialog:{close:"Закрити",openMenu:"Відкрити меню",done:"Готово",showFiles:"Показати файли",tabs:{names:{"empty-pubkey":"Вітання",preview:"Попередній перегляд",file:"Локальні файли",url:"Пряме посилання",camera:"Камера"},file:{drag:"Перетягніть<br>будь-які файли",nodrop:"Завантаження файлів з вашого комп'ютера",cloudsTip:"Хмарні сховища<br>та соціальні мережі",or:"або",button:"Обрати локальний файл",also:"або обрати з"},url:{title:"Файли з інших сайтів",line1:"Візьміть будь-який файл з Інтернету..",line2:"Вкажіть тут посилання.",input:"Вставте ваше посилання тут...",button:"Завантажити"},camera:{title:"Файл із відеокамери",capture:"Зробити знімок",mirror:"Віддзеркалити",startRecord:"Записати відео",stopRecord:"Стоп",cancelRecord:"Скасувати",retry:"Повторний запит дозволу",pleaseAllow:{title:"Будь ласка, надайте доступ до вашої камери",text:"Вам буде запропоновано дозволити доступ до камери з цього сайту.<br>Для того, щоб фотографувати за допомогою камери, ви повинні схвалити цей запит."},notFound:{title:"Камера не виявлена",text:"Схоже, у вас немає камери, підключеної до цього пристрою."}},preview:{unknownName:"невідомо",change:"Скасувати",back:"Назад",done:"Додати",unknown:{title:"Завантаження... Зачекайте на попередній перегляд.",done:"Пропустити перегляд і прийняти"},regular:{title:"Додати цей файл?",line1:"Ви збираєтеся додати файл вище.",line2:"Будь ласка, підтвердіть."},image:{title:"Додати це зображення?",change:"Скасувати"},crop:{title:"Обрізати та додати це зображення",done:"Готово",free:"довільно"},video:{title:"Додати це відео?",change:"Скасувати"},error:{default:{title:"Ой!",text:"Під час завантаження сталася помилка.",back:"Будь ласка, спробуйте ще раз"},image:{title:"Приймаються лише файли зображень.",text:"Повторіть спробу з іншим файлом.",back:"Виберіть зображення"},size:{title:"Розмір вибраного файлу перевищує ліміт.",text:"Повторіть спробу з іншим файлом."},loadImage:{title:"Помилка",text:"Помилка завантаження зображення"}},multiple:{title:"Ви вибрали %files%.",question:"Додати %files%?",tooManyFiles:"Ви вибрали забагато файлів. Максимальна кількість %max%.",tooFewFiles:"Ви вибрали %files%. Мінімальна кількість %min%.",clear:"Видалити все",done:"Додати",file:{preview:"Попередній перегляд %file%",remove:"Видалити %file%"}}}},footer:{text:"працює на",link:"uploadcare"}}},pluralize:function(e){return 1==(e/10%10|0)||e%10==0||e%10>4?"many":e%10==1?"one":"few"}},vi:{translations:{loadingInfo:"Đang tải thông tin...",errors:{default:"Lỗi",baddata:"Giá trị không đúng",size:"Tệp quá lớn",upload:"Không thể tải lên",user:"Tải lên bị hủy",info:"Không thể nạp thông tin",image:"Chỉ cho phép các hình ảnh",createGroup:"Không thể tạo nhóm tệp",deleted:"Tệp đã bị xóa"},uploading:"Đang tải lên... Vui lòng chờ đợi.",draghere:"Thả một tệp vào đây",file:{other:"%1 tệp"},buttons:{cancel:"Hủy",remove:"Xóa",choose:{files:{other:"Lựa chọn các tệp"},images:{other:"Lựa chọn hình ảnh"}}},dialog:{close:"Đóng",openMenu:"Mở menu",done:"Xong",showFiles:"Hiển thị tệp",tabs:{names:{"empty-pubkey":"Chào mừng",preview:"Xem trước",file:"Các tệp trên máy",url:"Liên kết tr.tiếp",camera:"Máy ảnh",facebook:"Facebook",dropbox:"Dropbox",gdrive:"Google Drive",instagram:"Instagram",gphotos:"Google Photos",vk:"VK",evernote:"Evernote",box:"Box",onedrive:"OneDrive",flickr:"Flickr",huddle:"Huddle"},file:{drag:"kéo & thả<br>bất kỳ tệp nào",nodrop:"Tải lên các tệp từ &nbsp;máy tính của bạn",cloudsTip:"Lưu trữ Đám mây<br>và các mạng xã hội",or:"hoặc",button:"Lựa chọn một tệp trên máy",also:"hoặc lựa chọn từ"},url:{title:"Các tệp trên Web",line1:"Chọn bất từ tệp nào từ web.",line2:"Chỉ cần cung cấp liên kết.",input:"Dán liên kết của bạn xuống đây...",button:"Tải lên"},camera:{title:"Tệp từ web cam",capture:"Chụp một bức ảnh",mirror:"Gương",startRecord:"Quay một video",cancelRecord:"Hủy",stopRecord:"Dừng",retry:"Yêu cầu cấp phép lần nữa",pleaseAllow:{text:"Bạn đã được nhắc nhở để cho phép truy cập vào camera từ trang này.<br>Để có thể chụp ảnh với camera, bạn phải chấp thuận yêu cầu này.",title:"Vui lòng cho phép truy cập tới camera của bạn"},notFound:{title:"Không tìm thấy camera nào",text:"Có vẻ như bạn không có camera nào nối với thiết bị này."}},preview:{unknownName:"vô danh",change:"Hủy",back:"Quay lại",done:"Thêm",unknown:{title:"Đang tải lên...Vui lòng đợi để xem trước.",done:"Bỏ qua và chấp nhận"},regular:{title:"Thêm tệp này?",line1:"Bạn dự định thêm tệp ở trên.",line2:"Vui lòng chấp thuận."},image:{title:"Thêm hình ảnh này?",change:"Hủy"},crop:{title:"Cắt và thêm ảnh này",done:"Xong",free:"miễn phí"},video:{title:"Thêm video này?",change:"Hủy"},error:{default:{title:"Ồ!",back:"Vui lòng thử lại",text:"Có lỗi gì đó trong quá trình tải lên."},image:{title:"Chỉ chấp thuận các tệp hình ảnh.",text:"Vui lòng thử lại với một tệp mới.",back:"Lựa chọn hình ảnh"},size:{title:"Tệp bạn đã lựa chọn vượt quá giới hạn",text:"Vui lòng thử lại với một tệp khác."},loadImage:{title:"Lỗi",text:"Không thể tải hình ảnh"}},multiple:{title:"Bạn đã lựa chọn %files%",question:"Thêm %files%?",tooManyFiles:"Bạn đã lựa chọn quá nhiều tệp. %max% là tối đa.",tooFewFiles:"Bạn đã lựa chọn %files%. Ít nhất cần %min%",clear:"Xoá Tất cả",file:{preview:"Xem trước %file%",remove:"Xóa %file%"},done:"Thêm"}}},footer:{text:"được hỗ trợ bởi",link:"uploadcare"}}},pluralize:function(e){return"other"}},zhTW:{translations:{uploading:"上傳中...請等待",loadingInfo:"正在讀取資訊...",errors:{default:"錯誤",baddata:"錯誤資料",size:"檔案太大",upload:"無法上傳",user:"上傳被取消",info:"無法讀取資訊",image:"只允許圖片檔案",createGroup:"無法建立檔案群組",deleted:"檔案已被刪除"},draghere:"拖放檔案到這裡",file:{other:"%1 個檔案"},buttons:{cancel:"取消",remove:"刪除",choose:{files:{one:"選擇檔案",other:"選擇檔案"},images:{one:"選擇圖片",other:"選擇圖片"}}},dialog:{done:"完成",showFiles:"顯示檔案",tabs:{names:{"empty-pubkey":"歡迎",preview:"預覽",file:"從本機上傳",url:"任意圖片連結",camera:"相機"},file:{drag:"拖放檔案到這裡",nodrop:"從你的本機中上傳",cloudsTip:"雲端硬碟<br>與社群網站",or:"或者",button:"從本機中選取檔案",also:"你也可以選自"},url:{title:"來自網際網路的檔案",line1:"從網際網路選取檔案",line2:"只需提供連結",input:"將連結複製至此...",button:"上傳"},camera:{capture:"拍照",mirror:"鏡像",retry:"重新取得相機權限",pleaseAllow:{title:"請允許使存取您的相機",text:"你一直在提示允許來自這個網站的訪問攝像頭。為了拍照用你的相機,你必須批准這一請求。"},notFound:{title:"沒有找到相機",text:"看起來你有沒有將連接相機。"}},preview:{unknownName:"未知",change:"取消",back:"返回",done:"加入",unknown:{title:"上傳中...請等待預覽",done:"跳過預覽,直接接受"},regular:{title:"加入這個檔案?",line1:"你將加入上面的檔案。",line2:"請確認。"},image:{title:"加入這個圖片?",change:"取消"},crop:{title:"裁切並加入這個圖片",done:"完成",free:"自由裁切"},error:{default:{title:"錯誤!",text:"上傳過程中出錯。",back:"請重試"},image:{title:"只允許上傳圖片檔案。",text:"請選擇其他檔案重新上傳。",back:"選擇圖片"},size:{title:"你選取的檔案超過了100MB的上限",text:"請用另一個檔案再試一次。"},loadImage:{title:"錯誤",text:"無法讀取圖片"}},multiple:{title:"你已經選擇 %files%",question:"你要加入所有檔案嗎?",tooManyFiles:"你選了太多的檔案. 最多可選擇%max%. 請刪除一些。",tooFewFiles:"你所選擇的檔案 %files%. 至少要 %min% .",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}},zh:{translations:{uploading:"上传中...请等待",loadingInfo:"正在读取信息...",errors:{default:"错误",baddata:"错误数据",size:"文件太大",upload:"无法上传",user:"上传被取消",info:"无法读取信息",image:"只允许图形文件",createGroup:"无法建立文件组",deleted:"文件已被删除"},draghere:"拖放文件到这里",file:{other:"%1 个文件"},buttons:{cancel:"取消",remove:"删除"},dialog:{done:"完成",showFiles:"显示文件",tabs:{names:{url:"任意图片链接"},file:{drag:"拖放文件到这里",nodrop:"从你的电脑中上传",or:"或者",button:"从电脑中选取文件",also:"你也可以选自"},url:{title:"来自互联网的文件",line1:"从互联网选取文件",line2:"只需提供链接",input:"将链接拷贝至此...",button:"上传"},preview:{unknownName:"未知",change:"取消",back:"返回",done:"添加",unknown:{title:"上传中...请等待预览",done:"跳过预览,直接接受"},regular:{title:"添加这个文件?",line1:"你将添加上面的文件。",line2:"请确认。"},image:{title:"添加这个图片?",change:"取消"},crop:{title:"剪裁并添加这个图片",done:"完成"},error:{default:{title:"错误!",text:"上传过程中出错。",back:"请重试"},image:{title:"只允许上传图片文件。",text:"请选择其他文件重新上传。",back:"选择图片"},size:{title:"你选取的文件超过了100MB的上限",text:"请用另一个文件再试一次。"},loadImage:{title:"错误",text:"无法读取图片"}},multiple:{title:"你已经选择 %files%",question:"你要添加所有文件吗?",tooManyFiles:"你选了太多的文件. 最多可选择%max%. 请删除一些。",clear:"清空",done:"完成"}}}}},pluralize:function(e){return"other"}}},on=null,an={translations:Object.keys(rn).reduce((function(e,t){return e[t]=rn[t].translations,e}),{}),pluralize:Object.keys(rn).reduce((function(e,t){return e[t]=rn[t].pluralize,e}),{}),rebuild:function(e){return on=null,ln(e)},t:function(e,t){var n,r,i;return n=ln(),null==(i=un(e,n.translations))&&n.lang!==sn.lang&&(i=un(e,(n=sn).translations)),null!=t&&(i=null!=n.pluralize?(null!=(r=i[n.pluralize(t)])?r.replace("%1",t):void 0)||t:""),i||""}},sn={lang:"en",translations:rn.en.translations,pluralize:rn.en.pluralize},ln=function(e){if(!on){var t=at(e),r=t.locale||sn.lang,i=n.default.extend(!0,{},an.translations[r],t.localeTranslations),o=n.default.isFunction(t.localePluralize)?t.localePluralize:an.pluralize[r];on={lang:r,translations:i,pluralize:o}}return on},un=function(e,t){for(var n=e.split("."),r=0,i=n.length;r<i;r++){var o=n[r];if(null==t)return null;t=t[o]}return t},cn=function(){function e(t,r){var i,o=this;s(this,e),this.__uuid=null,this.settings=at(r),this.__fileColl=new nn(t),this.__allFilesDf=n.default.when.apply(n.default,w(this.files())),this.__fileInfosDf=(t=function(){var e,t,r,o;for(o=[],e=0,t=(r=this.files()).length;e<t;e++)i=r[e],o.push(i.then(null,(function(e,t){return n.default.when(t)})));return o}.call(o),n.default.when.apply(n.default,w(t))),this.__createGroupDf=n.default.Deferred(),this.__initApiDeferred()}return c(e,[{key:"files",value:function(){return this.__fileColl.get()}},{key:"__save",value:function(){var e=this;if(!this.__saved)return this.__saved=!0,this.__allFilesDf.done((function(){return e.__createGroup().done((function(t){return e.__uuid=t.id,e.__buildInfo((function(t){return e.settings.imagesOnly&&!t.isImage?e.__createGroupDf.reject("image",t):e.__createGroupDf.resolve(t)}))})).fail((function(t){return e.__createGroupDf.reject("createGroup",t)}))}))}},{key:"promise",value:function(){return this.__save(),this.__apiDf.promise()}},{key:"__initApiDeferred",value:function(){var e,t,r,i=this;return this.__apiDf=n.default.Deferred(),this.__progressState="uploading",t=function(e){return i.__buildInfo((function(t){return i.__apiDf.reject(e,t)}))},r=function(e){return i.__apiDf.resolve(e)},(e=function(){return i.__apiDf.notify(i.__progressInfo())})(),this.__fileColl.onAnyProgress(e),this.__allFilesDf.done((function(){return i.__progressState="uploaded",e()})).fail(t),this.__createGroupDf.done((function(t){return i.__progressState="ready",e(),r(t)})).fail(t)}},{key:"__progressInfo",value:function(){var e,t,n,r,i;for(n=0,e=0,t=(i=this.__fileColl.lastProgresses()).length;e<t;e++)n+=((null!=(r=i[e])?r.progress:void 0)||0)/i.length;return{state:this.__progressState,uploadProgress:n,progress:"ready"===this.__progressState?1:.9*n}}},{key:"__buildInfo",value:function(e){var t;return t={uuid:this.__uuid,cdnUrl:this.__uuid?"".concat(this.settings.cdnBase,"/").concat(this.__uuid,"/"):null,name:an.t("file",this.__fileColl.length()),count:this.__fileColl.length(),size:0,isImage:!0,isStored:!0},this.__fileInfosDf.done((function(){for(var n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];for(r=0,i=a.length;r<i;r++)n=a[r],t.size+=n.size,n.isImage||(t.isImage=!1),n.isStored||(t.isStored=!1);return e(t)}))}},{key:"__createGroup",value:function(){var e,t=this;return e=n.default.Deferred(),this.__fileColl.length()?this.__fileInfosDf.done((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o;return ye("".concat(t.settings.urlBase,"/group/?jsonerrors=1"),"POST",{pub_key:t.settings.publicKey,signature:t.settings.secureSignature,expire:t.settings.secureExpire,files:function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push("/".concat(o.uuid,"/").concat(o.cdnUrlModifiers||""));return n}()},{headers:{"X-UC-User-Agent":t.settings._userAgent}}).fail((function(n){return t.settings.debugUploads&&B("Can't create group.",t.settings.publicKey,n.message),e.reject(n)})).done(e.resolve)})):e.reject(),e.promise()}},{key:"api",value:function(){return this.__api||(this.__api=X(this,["promise","files"])),this.__api}}]),e}(),dn=function(e){f(n,e);var t=v(n);function n(e,r){var i,o;return s(this,n),o=Gt("ready",e.files,r),(i=t.call(this,o,r)).__data=e,i}return c(n,[{key:"__createGroup",value:function(){return Y(this.__data)}}]),n}(cn),fn=function(){var e,t,n,r,i,o,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;for(t=[],r=0,o=l.length;r<o;r++)if(n=l[r],Kt(n))t.push(n);else if(Qt(n))for(i=0,a=(s=n.files()).length;i<a;i++)e=s[i],t.push(e);return new cn(t,u).api()},pn=function(e,t){var r,i;return t=at(t),r=n.default.Deferred(),(i=re.exec(e))?ye("".concat(t.urlBase,"/group/info/"),"GET",{jsonerrors:1,pub_key:t.publicKey,group_id:i[0]},{headers:{"X-UC-User-Agent":t._userAgent}}).fail((function(e){return t.debugUploads&&B("Can't load group info. Probably removed.",i[0],t.publicKey,e.message),r.reject(e)})).done((function(e){var n;return n=new dn(e,t),r.resolve(n.api())})):r.reject(),r.promise()},hn={};E()&&n.default(window).on("message",(function(e){var t,n,r,i,o,a,s=e.originalEvent;try{i=JSON.parse(s.data)}catch(e){return}if((null!=i?i.type:void 0)&&i.type in hn){for(a=[],t=0,r=(o=hn[i.type]).length;t<r;t++)n=o[t],s.source===n[0]?a.push(n[1](i)):a.push(void 0);return a}}));var mn=function(e,t,n){return e in hn||(hn[e]=[]),hn[e].push([t,n])},gn=function(e,t){if(e in hn)return hn[e]=n.default.grep(hn[e],(function(e){return e[0]!==t})),hn[e]},vn=new lt,yn=function(){function e(t,n,r,i,o){var a=this;s(this,e),this.__createIframe=this.__createIframe.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.dialogApi.progress((function(e){return e===a.name&&(a.__createIframe(),a.container.find(".uploadcare--tab__iframe").focus()),a.__sendMessage({type:"visibility-changed",visible:e===a.name})}))}return c(e,[{key:"remoteUrl",value:function(){var e={lang:this.settings.locale,public_key:this.settings.publicKey,widget_version:"3.17.2",images_only:this.settings.imagesOnly,pass_window_open:this.settings.passWindowOpen};return this.settings.remoteTabSessionKey&&(e.session_key=this.settings.remoteTabSessionKey),"".concat(this.settings.socialBase,"/window3/").concat(this.name,"?")+n.default.param(e)}},{key:"__sendMessage",value:function(e){var t,n;return null!=(t=this.iframe)&&null!=(n=t[0].contentWindow)?n.postMessage(JSON.stringify(e),"*"):void 0}},{key:"__createIframe",value:function(){var e,t=this;if(!this.iframe)return this.iframe=n.default("<iframe>",{src:this.remoteUrl(),marginheight:0,marginwidth:0,frameborder:0,allowTransparency:"true"}).addClass("uploadcare--tab__iframe").appendTo(this.container).on("load",(function(){var e,n,r,i,o,a,s,l;for(t.iframe.css("opacity","1"),e=0,r=(o=vn.urls).length;e<r;e++)l=o[e],t.__sendMessage({type:"embed-css",url:l});for(n=0,i=(a=vn.styles).length;n<i;n++)s=a[n],t.__sendMessage({type:"embed-css",style:s})})),this.container.addClass("uploadcare--tab_remote"),e=this.iframe[0].contentWindow,mn("file-selected",e,(function(e){var r,i,o;return o=function(){var n,r,i,o,a;if(e.alternatives)for(n=0,i=(o=t.settings.preferredTypes).length;n<i;n++)for(r in a=o[n],a=se(a),e.alternatives)if(a.test(r))return e.alternatives[r];return e.url}(),i=n.default.extend({source:t.name},e.info||{}),r=new zt(o,t.settings,i),e.filename&&r.setName(e.filename),null!=e.is_image&&r.setIsImage(e.is_image),t.dialogApi.addFiles([r.promise()])})),mn("open-new-window",e,(function(e){var n,r,i;if(t.settings.debugUploads&&z("Open new window message.",t.name),r=window.open(e.url,"_blank"))return i=function(){return t.settings.debugUploads&&z("Window is closed.",t.name),t.__sendMessage({type:"navigate",fragment:""})},"closed"in r?n=setInterval((function(){if(r.closed)return clearInterval(n),i()}),100):r.addEventListener("exit",i);U("Can't open new window. Possible blocked.",t.name)})),this.dialogApi.done((function(){return gn("file-selected",e),gn("open-new-window",e)}))}}]),e}(),bn={version:"3.17.2",jQuery:n.default,utils:{abilities:{fileAPI:O,sendFileAPI:C,dragAndDrop:T,canvas:A,fileDragAndDrop:P,iOSVersion:R,Blob:L,URL:N,FileReader:F},Collection:en,UniqCollection:tn,CollectionOfPromises:nn,imageLoader:ct,videoLoader:dt,log:B,debug:z,warn:U,warnOnce:W,registerMessage:mn,unregisterMessage:gn,unique:$,defer:V,gcd:G,once:K,wrapToPromise:Y,then:Q,bindAll:X,upperCase:Z,publicCallbacks:J,uuid:ee,splitUrlRegex:te,uuidRegex:ne,groupIdRegex:re,cdnUrlRegex:ie,splitCdnUrl:oe,escapeRegExp:ae,globRegexp:se,normalizeUrl:le,fitText:ue,fitSizeInCdnLimit:function(e){return ce(e,[2048,2048])},fitSize:ce,applyCropCoordsToInfo:de,fileInput:pe,fileSelectDialog:he,fileSizeLabels:me,readableFileSize:ge,ajaxDefaults:ve,jsonp:ye,canvasToBlob:be,taskRunner:_e,fixedPipe:xe,isFile:Kt,valueToFile:Yt,image:{shrinkFile:yt,shrinkImage:mt,drawFileToCanvas:bt,readJpegChunks:_t,replaceJpegChunk:wt,getExif:xt,parseExifOrientation:At,hasTransparency:Rt},pusher:{getPusher:Bt},isFileGroup:Qt,valueToGroup:Xt,isFileGroupsEqual:Zt},settings:{globals:it,build:at,common:ot,waitForSettings:st,CssCollector:lt},locale:an,tabsCss:vn,files:{BaseFile:jt,ObjectFile:Mt,InputFile:Lt,UrlFile:zt,UploadedFile:Wt,ReadyFile:Ht,FileGroup:cn,SavedFileGroup:dn},Pusher:Dt,FileGroup:fn,loadFileGroup:pn,fileFrom:Vt,filesFrom:Gt,__exports:{},namespace:function(e,t){var n=bn;if(e)for(var r=e.split("."),i=0,o=r.length;i<o;i++){var a=r[i];n[a]||(n[a]={}),n=n[a]}return t(n)},expose:function(e,t){for(var n=e.split("."),r=n.pop(),i=bn.__exports,o=bn,a=0,s=n.length;a<s;a++){var l=n[a];i[l]||(i[l]={}),i=i[l],o=null!=o?o[l]:void 0}i[r]=t||o[r]}};function _n(e){return function(t){return t(e)}}var wn={plugin:_n(bn),version:"3.17.2",jQuery:n.default,defaults:o(o({},Ue),{},{allTabs:Ye.tabs.all}),globals:ot,start:ot,fileFrom:Vt,filesFrom:Gt,FileGroup:fn,loadFileGroup:pn,locales:["en"]},xn=/["'&<>]/,kn=function(e){var t,n=""+e,r=xn.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i},En={dialog:function(){return'<div class="uploadcare--dialog"><div class="uploadcare--dialog__container"><button type="button" title="'.concat(an.t("dialog.close"),'" aria-label="').concat(an.t("dialog.close"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--dialog__close"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-close"></use></svg></button><div class="uploadcare--dialog__placeholder"></div></div><div class="uploadcare--powered-by uploadcare--dialog__powered-by">').concat(an.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.17.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(an.t("dialog.footer.link"),"</a></div></div>")},dialog__panel:function(){return'<div class="uploadcare--panel"><div class="uploadcare--menu uploadcare--panel__menu"><button type="button" title="'.concat(an.t("dialog.openMenu"),'" aria-label="').concat(an.t("dialog.openMenu"),'" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--menu__toggle"><svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_menu"><use xlink:href="#uploadcare--icon-menu"></use></svg> <svg role="presentation" width="32" height="32" class="uploadcare--icon uploadcare--menu__toggle-icon uploadcare--menu__toggle-icon_back"><use xlink:href="#uploadcare--icon-back"></use></svg></button><div class="uploadcare--menu__items"></div></div><div class="uploadcare--panel__content"><div class="uploadcare--footer uploadcare--panel__footer"><div class="uploadcare--footer__additions uploadcare--panel__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--panel__show-files">').concat(an.t("dialog.showFiles"),'<div class="uploadcare--panel__file-counter"></div></button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--panel__done">').concat(an.t("dialog.done"),'</button></div><div class="uploadcare--powered-by uploadcare--panel__powered-by">').concat(an.t("dialog.footer.text"),' <a class="uploadcare--link uploadcare--powered-by__link" href="https://uploadcare.com/uploader/').concat("3.17.2",'/" target="_blank"><svg width="32" height="32" role="presentation" class="uploadcare--icon uploadcare--powered-by__logo"><use xlink:href="#uploadcare--icon-uploadcare"></use></svg> ').concat(an.t("dialog.footer.link"),"</a></div></div></div>")},progress__text:function(){return'<div class="uploadcare--progress__text-container"><div class="uploadcare--progress__text"></div></div>'},"tab-camera-capture":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(an.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_photo">').concat(an.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_video">').concat(an.t("dialog.tabs.camera.startRecord"),"</button></div></div>")},"tab-camera":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(an.t("dialog.tabs.camera.title"),'</div><div class="uploadcare--media uploadcare--camera__video-container"><video muted class="uploadcare--media__video uploadcare--camera__video uploadcare--camera__video_mirrored"></video><button type="button" class="uploadcare--button uploadcare--button_size_small uploadcare--button_overlay uploadcare--camera__button uploadcare--camera__button_type_mirror">').concat(an.t("dialog.tabs.camera.mirror"),'</button></div><div class="uploadcare--camera__controls"><button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_start-record">').concat(an.t("dialog.tabs.camera.startRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_capture">').concat(an.t("dialog.tabs.camera.capture"),'</button> <button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_cancel-record">').concat(an.t("dialog.tabs.camera.cancelRecord"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--camera__button uploadcare--camera__button_type_stop-record">').concat(an.t("dialog.tabs.camera.stopRecord"),'</button></div><div class="uploadcare--camera__please-allow"><div class="uploadcare--text uploadcare--text_size_medium">').concat(an.t("dialog.tabs.camera.pleaseAllow.title"),'</div><div class="uploadcare--text">').concat(an.t("dialog.tabs.camera.pleaseAllow.text"),'</div></div><div class="uploadcare--camera__not-found"><div class="uploadcare--text uploadcare--text_size_medium">').concat(an.t("dialog.tabs.camera.notFound.title"),'</div><div class="uploadcare--text">').concat(an.t("dialog.tabs.camera.notFound.text"),'</div></div><button type="button" class="uploadcare--button uploadcare--camera__button uploadcare--camera__button_type_retry">').concat(an.t("dialog.tabs.camera.retry"),"</button></div>")},"tab-file":function(){return'<div class="uploadcare--tab__content uploadcare--draganddrop"><div class="uploadcare--text uploadcare--text_size_extra-large uploadcare--dragging__show">'.concat(an.t("draghere"),'</div><div class="uploadcare--draganddrop__title uploadcare--dragging__hide"><div class="uploadcare--draganddrop__supported"><div class="uploadcare--text uploadcare--text_size_extra-large">').concat(an.t("dialog.tabs.file.drag"),'</div><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted">').concat(an.t("dialog.tabs.file.or"),'</div></div><div class="uploadcare--text uploadcare--text_size_large uploadcare--draganddrop__not-supported">').concat(an.t("dialog.tabs.file.nodrop"),'</div></div><button type="button" class="uploadcare--button uploadcare--button_size_big uploadcare--button_primary uploadcare--tab__action-button needsclick uploadcare--dragging__hide">').concat(an.t("dialog.tabs.file.button"),'</button><div class="uploadcare--file-sources uploadcare--dragging__hide"><div class="uploadcare--text uploadcare--text_size_small uploadcare--text_muted uploadcare--file-sources__caption">').concat(an.t("dialog.tabs.file.also"),'</div><div class="uploadcare--file-sources__items"><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--file-source uploadcare--file-source_all uploadcare--file-sources_item"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-more"></use></svg></button></div></div></div>')},"tab-preview-error":function(e){var t=e.debugUploads,n=e.errorType,r=e.error;return'<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--error"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(an.t("dialog.tabs.preview.error."+n+".title")||an.t("dialog.tabs.preview.error.default.title"),'</div><div class="uploadcare--text">').concat(t&&(null==r?void 0:r.message)||an.t("serverErrors.".concat(null==r?void 0:r.code))||(null==r?void 0:r.message)||an.t("dialog.tabs.preview.error."+n+".text")||an.t("dialog.tabs.preview.error.default.text"),'</div><button type="button" class="uploadcare--button uploadcare--preview__back">').concat(an.t("dialog.tabs.preview.error."+n+".back")||an.t("dialog.tabs.preview.error.default.back"),"</button></div>")},"tab-preview-image":function(e){var t=e.src,n=e.name,r=void 0===n?"":n,i=e.crop;return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(an.t("dialog.tabs.preview.image.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><img src="').concat(t,'" title="').concat(kn(r),'" alt="').concat(kn(r),'" class="uploadcare--media__image uploadcare--preview__image"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions">').concat(i?'<div class="uploadcare--crop-sizes"><div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item" data-caption="free"><div class="uploadcare--crop-sizes__icon"></div></div></div>':"",'</div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(an.t("dialog.tabs.preview.image.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(an.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-multiple-file":function(){return'<div class="uploadcare--file uploadcare--files__item uploadcare--file_status_uploading"><div class="uploadcare--file__description" tabindex="0"><div class="uploadcare--file__preview"></div><div class="uploadcare--file__name">'.concat(an.t("dialog.tabs.preview.unknownName"),'</div><div class="uploadcare--file__size"></div><div class="uploadcare--file__error"></div></div><div class="uploadcare--file__progressbar"><div class="uploadcare--progressbar"><div class="uploadcare--progressbar__value"></div></div></div><button type="button" class="uploadcare--button uploadcare--button_icon uploadcare--button_muted uploadcare--file__remove"><svg role="presentation" width="32" height="32" class="uploadcare--icon"><use xlink:href="#uploadcare--icon-remove"></use></svg></button></div>')},"tab-preview-multiple":function(){return'<div class="uploadcare--tab__header"><div id="preview__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title" role="status" aria-live="assertive"></div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--files"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><div class="uploadcare--footer__additions uploadcare--preview__message"></div><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">'.concat(an.t("dialog.tabs.preview.multiple.clear"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="preview_title">').concat(an.t("dialog.tabs.preview.multiple.done"),"</button></div>")},"tab-preview-regular":function(e){var t=e.file;return'<div class="uploadcare--tab__header"><div id="tab__title" class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title" role="status" aria-live="assertive">'.concat(an.t("dialog.tabs.preview.regular.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name">').concat(kn(t.name)||an.t("dialog.tabs.preview.unknownName")," ").concat(ge(t.size,"",", "),'</div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(an.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done" aria-describedby="tab__title">').concat(an.t("dialog.tabs.preview.done"),"</button></div>")},"tab-preview-unknown":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(an.t("dialog.tabs.preview.unknown.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--text uploadcare--preview__file-name"></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(an.t("dialog.tabs.preview.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(an.t("dialog.tabs.preview.unknown.done"),"</button></div>")},"tab-preview-video":function(){return'<div class="uploadcare--tab__header"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title">'.concat(an.t("dialog.tabs.preview.video.title"),'</div></div><div class="uploadcare--tab__content uploadcare--preview__content"><div class="uploadcare--media"><video controls class="uploadcare--media__video uploadcare--preview__video"></video></div></div><div class="uploadcare--footer uploadcare--tab__footer"><button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back">').concat(an.t("dialog.tabs.preview.video.change"),'</button> <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done">').concat(an.t("dialog.tabs.preview.done"),"</button></div>")},"tab-url":function(){return'<div class="uploadcare--tab__content"><div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">'.concat(an.t("dialog.tabs.url.title"),'</div><div class="uploadcare--text">').concat(an.t("dialog.tabs.url.line1"),'</div><div class="uploadcare--text">').concat(an.t("dialog.tabs.url.line2"),'</div><form class="uploadcare--form"><input type="text" class="uploadcare--input" placeholder="').concat(an.t("dialog.tabs.url.input"),'"> <button type="submit" class="uploadcare--button uploadcare--button_primary uploadcare--tab__action-button" type="submit">').concat(an.t("dialog.tabs.url.button"),"</button></form></div>")},"widget-button":function(e){var t=e.caption,n=e.name;return'<button type="button" class="uploadcare--widget__button uploadcare--widget__button_type_'.concat(n,'">').concat(t,"</button>")},"widget-file-name":function(e){var t=e.name,n=e.size;return'<div class="uploadcare--link uploadcare--widget__file-name" tabindex="0" role="link">'.concat(kn(ue(t,20)),'</div><div class="uploadcare--widget__file-size">, ').concat(ge(n),"</div>")},widget:function(){return'<div class="uploadcare--widget" aria-describedby="uploadcare--widget__text uploadcare--widget__progress"><div class="uploadcare--widget__dragndrop-area">'.concat(an.t("draghere"),'</div><div id="uploadcare--widget__progress" class="uploadcare--widget__progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div><div id="uploadcare--widget__text" class="uploadcare--widget__text" aria-live="polite"></div></div>')},icons:function(){return'<svg width="0" height="0" style="position:absolute"><symbol viewBox="0 0 32 32" id="uploadcare--icon-back" xmlns="http://www.w3.org/2000/svg"><path d="M21.132 9.06a1.5 1.5 0 00-2.122-2.12L9.88 16.07l9.06 9.061a1.5 1.5 0 102.122-2.121l-6.94-6.94 7.01-7.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-box" xmlns="http://www.w3.org/2000/svg"><path d="M4.962 9C4.385 9 4 9.384 4 9.96v8.243C4 20.793 6.213 23 8.811 23c1.829 0 3.464-1.043 4.33-2.578.866 1.535 2.406 2.578 4.33 2.578 2.695 0 4.812-2.206 4.812-4.797 0-2.686-2.117-4.886-4.811-4.886-1.829 0-3.465 1.043-4.33 2.578-.77-1.535-2.406-2.578-4.33-2.578a4.957 4.957 0 00-2.887.96V9.958c0-.48-.482-.959-.963-.959zm17.08 4.257a.841.841 0 00-.33.15c-.385.288-.5.965-.211 1.349l2.526 3.357-2.526 3.358c-.289.384-.174 1.061.21 1.35.385.287 1.065.173 1.354-.21l2.105-2.879 2.105 2.878c.288.384.968.498 1.353.21.385-.288.499-.965.21-1.349l-2.526-3.358 2.526-3.357c.289-.384.175-1.061-.21-1.35-.385-.287-1.065-.203-1.353.18l-2.105 2.879-2.105-2.878c-.217-.288-.657-.406-1.023-.33zm-13.23 2.068c1.539 0 2.886 1.344 2.886 2.878.096 1.535-1.25 2.878-2.887 2.878a2.89 2.89 0 01-2.886-2.878c0-1.63 1.347-2.878 2.886-2.878zm8.66 0a2.89 2.89 0 012.886 2.878c0 1.535-1.347 2.878-2.886 2.878a2.89 2.89 0 01-2.887-2.878c0-1.63 1.347-2.878 2.887-2.878z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-camera" xmlns="http://www.w3.org/2000/svg"><path d="M21 10h3c1.653 0 3 1.343 3 3v9c0 1.656-1.344 3-3.001 3H8A3 3 0 015 22v-9a3 3 0 013-3h3v-.999C11 7.901 11.895 7 13 7h6c1.113 0 2 .896 2 2.001V10zm-5 12a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm0-2a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-close" xmlns="http://www.w3.org/2000/svg"><path d="M10.06 7.94a1.5 1.5 0 00-2.12 2.12L13.878 16l-5.94 5.94a1.5 1.5 0 002.122 2.12L16 18.122l5.94 5.94a1.5 1.5 0 002.12-2.122L18.122 16l5.94-5.94a1.5 1.5 0 00-2.122-2.12L16 13.878l-5.94-5.94z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-crop-free" xmlns="http://www.w3.org/2000/svg"><path d="M8 12a2.004 2.004 0 01-2-2.01V8.01C6 6.897 6.893 6 8.01 6h1.98c1.109 0 2.005.888 2.01 2h8c.005-1.107.896-2 2.01-2h1.98C25.103 6 26 6.893 26 8.01v1.98A2.004 2.004 0 0124 12v8c1.107.005 2 .896 2 2.01v1.98c0 1.112-.893 2.01-2.01 2.01h-1.98A2.004 2.004 0 0120 24h-8a2.004 2.004 0 01-2.01 2H8.01A2.004 2.004 0 016 23.99v-1.98c0-1.109.888-2.005 2-2.01v-8zm2 0v8a2.004 2.004 0 012 2h8a2.004 2.004 0 012-2v-8a2.004 2.004 0 01-2-2h-8a2.004 2.004 0 01-2 2zm12 10.01v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01h-1.98c-.01 0-.01 0-.01.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C24 8 24 8 23.99 8h-1.98C22 8 22 8 22 8.01zm-14 14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01v-1.98c0-.01 0-.01-.01-.01H8.01C8 22 8 22 8 22.01zm0-14v1.98c0 .01 0 .01.01.01h1.98c.01 0 .01 0 .01-.01V8.01C10 8 10 8 9.99 8H8.01C8 8 8 8 8 8.01z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-dropbox" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5L16 9.141l-6.5 4.141L3 9.141 9.5 5zm13 0L29 9.141l-6.5 4.141L16 9.141 22.5 5zM3 17.423l6.5-4.141 6.5 4.141-6.5 4.141L3 17.423zm19.5-4.141l6.5 4.141-6.5 4.141-6.5-4.141 6.5-4.141zm-13 9.662l6.5-4.14 6.5 4.14-6.5 4.141-6.5-4.14z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-empty-pubkey" xmlns="http://www.w3.org/2000/svg"><path d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-error" xmlns="http://www.w3.org/2000/svg"><path d="M18.122 23.93V21a.583.583 0 00-.179-.434.585.585 0 00-.423-.175h-2.616a.585.585 0 00-.424.175.583.583 0 00-.179.434v2.93c0 .172.06.316.18.433.118.117.26.175.423.175h2.616a.585.585 0 00.423-.175.583.583 0 00.18-.434zm-.037-6.326l.339-9.05a.404.404 0 00-.189-.351c-.163-.135-.313-.203-.452-.203H14.64c-.138 0-.288.068-.452.203-.125.086-.188.215-.188.388l.32 9.013c0 .123.063.224.188.304.126.08.277.12.452.12h2.484c.176 0 .324-.04.443-.12a.41.41 0 00.198-.304z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-evernote" xmlns="http://www.w3.org/2000/svg"><path d="M7.998 8.648h2.245a.233.233 0 00.232-.233s-.028-1.931-.028-2.468v-.006c0-.441.093-.825.253-1.148l.077-.144a.05.05 0 00-.026.014l-4.359 4.34a.05.05 0 00-.016.025c.09-.044.213-.106.23-.113.38-.172.84-.267 1.392-.267M24.196 6.56c-.553-.2-1.675-.408-3.084-.575-1.134-.134-2.467-.123-3.272-.098-.097-.665-.56-1.272-1.08-1.482-1.384-.56-3.523-.424-4.071-.27-.437.123-.92.373-1.188.76-.18.258-.297.59-.298 1.051 0 .262.007.878.014 1.426.006.548.014 1.04.014 1.043a.887.887 0 01-.884.888H8.103c-.479 0-.845.08-1.124.208-.28.127-.478.3-.628.503-.3.404-.352.902-.351 1.411 0 0 .004.416.104 1.22.083.622.756 4.971 1.394 6.294.248.514.413.73.9.956 1.083.466 3.559.984 4.72 1.133 1.158.148 1.885.46 2.318-.451.002-.003.087-.227.204-.557.377-1.144.43-2.16.43-2.894 0-.075.108-.078.108 0 0 .519-.098 2.354 1.283 2.847.545.194 1.676.367 2.826.502 1.039.12 1.793.53 1.793 3.208 0 1.628-.34 1.851-2.122 1.851-1.444 0-1.994.038-1.994-1.113 0-.932.917-.834 1.596-.834.304 0 .083-.226.083-.8 0-.572.357-.902.02-.91-2.35-.066-3.733-.003-3.733 2.947 0 2.679 1.021 3.176 4.357 3.176 2.614 0 3.536-.086 4.616-3.45.213-.663.73-2.69 1.043-6.092.197-2.15-.187-8.644-.491-10.282-.178-.958-.746-1.43-1.259-1.616zm-3.3 8.792a4.75 4.75 0 00-.923.056c.081-.66.353-1.473 1.316-1.439 1.066.037 1.216 1.049 1.22 1.734-.45-.201-1.006-.33-1.613-.35"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-facebook" xmlns="http://www.w3.org/2000/svg"><path d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.99 4.388 10.954 10.125 11.854V19.47h-3.047V16h3.047v-2.644c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H19.83c-1.491 0-1.956.925-1.956 1.875V16h3.328l-.532 3.469h-2.796v8.385C23.612 26.954 28 21.99 28 16z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-file" xmlns="http://www.w3.org/2000/svg"><path d="M19 6l5 5h-4c-.556 0-1-.448-1-1V6zm5 7v11.192c0 .995-.808 1.808-1.804 1.808H9.804A1.808 1.808 0 018 24.2V7.74C8 6.602 8.627 6 9.778 6H17v4.994c0 1.12.898 2.006 2.006 2.006H24z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-flickr" xmlns="http://www.w3.org/2000/svg"><path d="M11 20c-2.212 0-4-1.79-4-4s1.79-4 4-4a4 4 0 010 8zm10.001 0a4 4 0 11-.002-8 4 4 0 01.002 8z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gdrive" xmlns="http://www.w3.org/2000/svg"><path d="M19.461 6l7.109 12h-7.004L12.539 6h6.922zm-9.27 19l3.467-6H27l-3.466 6H10.192zM5 18.841l6.618-11.36 3.566 5.929-6.722 11.36L5 18.84z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-gphotos" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.318 11.39V4.681A.682.682 0 0116 4h.682a6.341 6.341 0 013.929 11.318h6.707A.682.682 0 0128 16v.682a6.342 6.342 0 01-11.318 3.929v6.707A.682.682 0 0116 28h-.682a6.342 6.342 0 01-3.929-11.318H4.682A.682.682 0 014 16v-.682a6.341 6.341 0 0111.318-3.929zm1.362 5.292a4.977 4.977 0 109.955 0H16.68zm0-11.318a4.977 4.977 0 010 9.954V5.364zm-1.362 9.954H5.364a4.977 4.977 0 119.954 0zm0 1.362v9.956a4.977 4.977 0 01-.056-9.954l.056-.002z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-huddle" xmlns="http://www.w3.org/2000/svg"><path d="M13.63 14.39c.07-.102.17-.26.2-.313 1.474-2.683 6.857-2.686 8.49 1.002.43.968.67 1.97.675 3.023.008 1.978.004 3.957.002 5.936 0 1.192-.68 1.945-1.763 1.962-1.087.016-1.856-.766-1.865-1.944-.014-1.874.003-3.749-.006-5.623-.006-1.351-.654-2.388-1.719-2.793-1.775-.675-3.59.305-3.892 2.159-.122.747-.104 1.52-.114 2.281-.016 1.336-.002 2.673-.005 4.01-.003 1.125-.669 1.866-1.707 1.907-1.06.042-1.828-.668-1.922-1.78-.007-.086-.003-.173-.003-.26 0-5.31-.002-10.622.002-15.932 0-1.2.731-2.016 1.79-2.025 1.05-.01 1.832.74 1.837 1.792.01 2.013.003 4.026.005 6.04 0 .12.002.391-.005.558"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-instagram" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c2.987 0 3.362.013 4.535.066 1.171.054 1.97.24 2.67.511a5.391 5.391 0 011.949 1.27 5.392 5.392 0 011.269 1.948c.272.7.457 1.499.51 2.67.054 1.173.067 1.548.067 4.535s-.013 3.362-.066 4.535c-.054 1.171-.24 1.97-.511 2.67a5.392 5.392 0 01-1.27 1.949 5.391 5.391 0 01-1.948 1.269c-.7.271-1.499.457-2.67.51-1.173.054-1.548.067-4.535.067s-3.362-.013-4.535-.066c-1.171-.054-1.97-.24-2.67-.511a5.392 5.392 0 01-1.949-1.27 5.391 5.391 0 01-1.268-1.948c-.273-.7-.458-1.499-.512-2.67C5.013 19.362 5 18.987 5 16s.013-3.362.066-4.535c.054-1.171.24-1.97.512-2.67a5.391 5.391 0 011.268-1.949 5.392 5.392 0 011.949-1.269c.7-.271 1.499-.457 2.67-.51C12.638 5.012 13.013 5 16 5zm0 1.982c-2.937 0-3.285.011-4.445.064-1.072.049-1.655.228-2.042.379-.514.2-.88.438-1.265.823a3.41 3.41 0 00-.823 1.264c-.15.388-.33.97-.379 2.043-.053 1.16-.064 1.508-.064 4.445 0 2.937.011 3.285.064 4.445.049 1.072.228 1.655.379 2.043.2.513.438.88.823 1.264.385.385.751.624 1.265.823.387.15.97.33 2.042.379 1.16.053 1.508.064 4.445.064 2.937 0 3.285-.011 4.445-.064 1.072-.049 1.655-.228 2.042-.379.514-.2.88-.438 1.265-.823.385-.385.624-.751.823-1.264.15-.388.33-.97.379-2.043.053-1.16.064-1.508.064-4.445 0-2.937-.011-3.285-.064-4.445-.049-1.072-.228-1.655-.379-2.043-.2-.513-.438-.88-.823-1.264a3.408 3.408 0 00-1.265-.823c-.387-.15-.97-.33-2.042-.379-1.16-.053-1.508-.064-4.445-.064zm0 3.37a5.649 5.649 0 110 11.297 5.649 5.649 0 010-11.298zm0 9.315a3.667 3.667 0 100-7.334 3.667 3.667 0 000 7.334zm7.192-9.539a1.32 1.32 0 11-2.64 0 1.32 1.32 0 012.64 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-menu" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 10a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17zm0 7a1.5 1.5 0 010-3h17a1.5 1.5 0 010 3h-17z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-more" xmlns="http://www.w3.org/2000/svg"><path d="M21 16a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0zm-8 0a3 3 0 116 0 3 3 0 01-6 0z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-nft" xmlns="http://www.w3.org/2000/svg"><path d="M15.76 3.252c-.059.138-1.805 3.07-3.881 6.515-2.077 3.446-3.793 6.31-3.814 6.365-.028.072 1.1.773 3.955 2.46l3.995 2.36 3.992-2.36c2.87-1.697 3.983-2.39 3.955-2.463C23.817 15.753 16.052 3 15.968 3c-.057 0-.151.113-.209.252zM8.073 17.829c.154.263 7.908 11.172 7.94 11.171.053-.002 7.98-11.203 7.95-11.234-.03-.029-7.439 4.335-7.748 4.563l-.19.14-3.835-2.265a734.48 734.48 0 01-4.01-2.377c-.158-.101-.167-.101-.107.002z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-onedrive" xmlns="http://www.w3.org/2000/svg"><path d="M11.715 16.427c.584-2.413 2.699-4.177 5.209-4.177 1.483 0 2.873.621 3.878 1.7.425-.14.922-.248 1.364-.258v-.16c0-3.054-2.214-5.532-4.944-5.532-1.952 0-3.624 1.278-4.428 3.115a3.55 3.55 0 00-2.033-.658c-2.142 0-3.877 1.94-3.877 4.336 0 .258.028.51.068.754-1.652.167-2.946 1.9-2.946 3.79 0 .02.005.037.005.056-.001.017-.011.035-.011.052 0 .757.257 1.449.673 2.007a3.14 3.14 0 002.568 1.317h1.513a4.49 4.49 0 01-.477-1.987c-.001-2.138 1.476-3.93 3.438-4.355zm13.752 2.375c-.03 0-.06.01-.09.01.008-.09.026-.18.026-.273 0-1.812-1.431-3.279-3.198-3.279-.703 0-1.347.24-1.877.635-.655-1.249-1.924-2.107-3.405-2.107-2.146 0-3.885 1.784-3.885 3.984 0 .029.008.053.009.082a2.764 2.764 0 00-.431-.045c-1.602 0-2.898 1.33-2.898 2.973 0 .205.02.406.059.599C10.05 22.87 11.322 24 12.856 24h12.847v-.023C26.99 23.85 28 22.753 28 21.402c0-1.435-1.134-2.6-2.533-2.6z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-remove" xmlns="http://www.w3.org/2000/svg"><path d="M22.142 24.009c-.078 1.1-1.044 1.991-2.15 1.991h-7.983c-1.11 0-2.073-.897-2.151-1.991l-.786-11.002A.924.924 0 0110.007 12h11.986c.556 0 .975.45.935 1.007l-.786 11.002zM13 7V6c0-.556.444-1 .99-1h4.02A1 1 0 0119 6v1h4c.556 0 1 .447 1 .999v1.002A.997.997 0 0123 10H9c-.555 0-1-.447-1-.999V7.999A.996.996 0 019 7h4z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-uploadcare" xmlns="http://www.w3.org/2000/svg"><path fill="#ffd800" d="M16 31C7.716 31 1 24.284 1 16 1 7.716 7.716 1 16 1c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15zm0-13.704a1.296 1.296 0 100-2.592 1.296 1.296 0 000 2.592z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-url" xmlns="http://www.w3.org/2000/svg"><path d="M16 5c6.074 0 11 4.926 11 11s-4.926 11-11 11S5 22.074 5 16 9.926 5 16 5zm6.076 6.327a.992.992 0 10-1.403-1.403l-1.128 1.128c-1.431-.92-3.47-.768-4.697.461l-3.186 3.185a3.7 3.7 0 00-1.09 2.636c0 .748.22 1.46.624 2.067l-1.272 1.272a.992.992 0 101.402 1.403l1.273-1.272c.606.405 1.32.623 2.067.623.997 0 1.933-.386 2.634-1.089l3.187-3.186a3.729 3.729 0 00.464-4.7l1.125-1.125zm-4.252 3.841a.982.982 0 00.701-.29l.95-.95c.067.188.114.385.114.591 0 .466-.178.904-.505 1.23l-3.186 3.187c-.472.47-1.197.588-1.813.382l.793-.792a.992.992 0 10-1.404-1.404l-.801.802a1.752 1.752 0 01-.115-.59c0-.468.179-.905.506-1.232l3.186-3.186a1.736 1.736 0 011.23-.507c.207 0 .404.049.592.116l-.948.95a.992.992 0 00.7 1.693z"/></symbol><symbol viewBox="0 0 32 32" id="uploadcare--icon-vk" xmlns="http://www.w3.org/2000/svg"><path d="M27.791 21.484c-.416-.767-1.212-1.708-2.386-2.824l-.038-.038c-.558-.532-.895-.882-1.037-1.06-.258-.341-.316-.686-.175-1.036.1-.264.475-.821 1.125-1.673.341-.451.612-.813.812-1.086 1.441-1.959 2.066-3.21 1.874-3.756l-.074-.127c-.05-.077-.18-.147-.387-.211-.209-.064-.475-.075-.8-.032l-3.599.025a.457.457 0 00-.25.007l-.163.038-.062.032-.05.039a.56.56 0 00-.137.134.882.882 0 00-.125.223 21.072 21.072 0 01-1.337 2.875 27.31 27.31 0 01-.85 1.373c-.258.388-.475.673-.65.856a4.57 4.57 0 01-.475.44c-.141.112-.25.158-.324.141a8.987 8.987 0 01-.213-.05.843.843 0 01-.281-.314 1.425 1.425 0 01-.144-.498c-.025-.2-.04-.373-.044-.518-.003-.144-.002-.349.007-.613.008-.264.012-.443.012-.536 0-.324.007-.675.019-1.054l.031-.901c.009-.222.013-.456.013-.703 0-.247-.015-.44-.044-.581a2.02 2.02 0 00-.131-.409.684.684 0 00-.256-.307 1.426 1.426 0 00-.419-.172c-.441-.102-1.004-.158-1.687-.166-1.55-.017-2.545.085-2.986.307a1.69 1.69 0 00-.475.383c-.15.187-.171.29-.063.306.5.077.854.26 1.062.55l.075.153c.059.11.117.307.175.588.059.28.096.592.113.932.041.622.041 1.154 0 1.597-.042.443-.081.788-.119 1.035a2.107 2.107 0 01-.169.6 2.55 2.55 0 01-.15.281.217.217 0 01-.062.064.918.918 0 01-.337.064c-.117 0-.259-.06-.425-.179a3.024 3.024 0 01-.519-.492c-.179-.208-.38-.5-.606-.875a15.385 15.385 0 01-.7-1.328l-.2-.37a32.156 32.156 0 01-.512-1.042 20.306 20.306 0 01-.575-1.323.84.84 0 00-.3-.408l-.062-.039a.85.85 0 00-.2-.108 1.304 1.304 0 00-.287-.083L4.8 9.64c-.35 0-.587.081-.712.243l-.05.077a.421.421 0 00-.038.204c0 .094.025.209.075.345.5 1.201 1.043 2.36 1.63 3.475C6.294 15.1 6.804 16 7.237 16.68c.433.681.875 1.324 1.325 1.929.45.604.748.992.893 1.162.146.17.26.298.344.384l.312.306c.2.205.494.45.881.735.388.285.817.566 1.287.843.471.277 1.019.503 1.644.677a5.564 5.564 0 001.824.211h1.437c.292-.026.512-.12.662-.281l.05-.064a.858.858 0 00.094-.236c.029-.107.044-.224.044-.351a4.301 4.301 0 01.08-.99c.063-.294.134-.516.213-.665a1.632 1.632 0 01.482-.562.806.806 0 01.1-.045c.2-.068.434-.002.705.199.271.2.525.447.763.74.237.295.522.625.856.99.333.367.625.64.874.818l.25.154c.167.102.384.196.65.28.266.086.5.107.7.065l3.199-.051c.316 0 .562-.054.737-.16.175-.107.279-.224.312-.351.034-.128.035-.273.007-.435a1.632 1.632 0 00-.088-.338 1.694 1.694 0 00-.082-.16z"/></symbol></svg>'},styles:function(){return'.uploadcare--jcrop-handle{box-sizing:border-box;padding:12.5px;width:45px;height:45px;background:transparent;z-index:2147483621}@media (min-width:760px){.uploadcare--jcrop-handle{height:35px;width:35px;padding:10px}}.uploadcare--jcrop-handle:before{content:"";display:block;width:20px;height:20px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border-radius:50%}@media (min-width:760px){.uploadcare--jcrop-handle:before{height:15px;width:15px}}.uploadcare--jcrop-handle.ord-nw{margin-top:-22.5px;margin-left:-22.5px;top:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-nw{margin-left:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-ne{margin-top:-22.5px;margin-right:-22.5px;top:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-ne{margin-right:-17.5px;margin-top:-17.5px}}.uploadcare--jcrop-handle.ord-se{margin-bottom:-22.5px;margin-right:-22.5px;bottom:0;right:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-se{margin-right:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-handle.ord-sw{margin-bottom:-22.5px;margin-left:-22.5px;bottom:0;left:0}@media (min-width:760px){.uploadcare--jcrop-handle.ord-sw{margin-left:-17.5px;margin-bottom:-17.5px}}.uploadcare--jcrop-hline{width:100%;height:1px!important;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-hline.bottom{bottom:0}.uploadcare--jcrop-vline{width:1px!important;height:100%;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);z-index:2147483620}.uploadcare--jcrop-vline.right{right:0}.uploadcare--jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.uploadcare--jcrop-holder img{max-width:none;max-height:none}.uploadcare--text{margin:0 0 10px;padding:0;font-size:17.5px;line-height:25px}.uploadcare--text:empty{display:none}.uploadcare--text_muted{color:#a4a2a1}.uploadcare--text_pre{box-sizing:border-box;overflow-x:auto;padding:20px;max-width:100%;background:#e3e1e1;font-family:monospace;white-space:pre;text-align:left}.uploadcare--text_size_small{font-size:15px;line-height:20px}.uploadcare--text_size_medium{font-size:20px;font-weight:700;line-height:25px}.uploadcare--text_size_large{font-size:22px;font-weight:700;line-height:25px}.uploadcare--text_size_extra-large{font-size:35px;line-height:45px}@media (min-width:760px){.uploadcare--text_size_extra-large{font-size:42.5px;line-height:50px}}.uploadcare--icon{all:initial;color:inherit;fill:currentColor;margin:0;padding:0;max-width:100%;width:32px;height:32px;cursor:inherit}.uploadcare--link,.uploadcare--link:link,.uploadcare--link:visited{cursor:pointer;color:#157cfc;text-decoration:underline}.uploadcare--link:focus,.uploadcare--link:hover{color:#3891ff;text-decoration:none}.uploadcare--link:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--link:active{color:#0969ee}.uploadcare--button{all:initial;-ms-flex-negative:0;flex-shrink:0;display:inline-block;overflow:hidden;box-sizing:border-box;margin:0;padding:10px;width:auto;min-width:100px;height:auto;min-height:0;border-radius:6px;border:1px solid #157cfc;background:transparent;color:#157cfc;cursor:default;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:inherit;font-size:15px;font-weight:400;font-style:normal;line-height:20px;box-shadow:none;text-shadow:none;transition:background .3s,color .3s,border .3s}.uploadcare--button svg{pointer-events:none}.uploadcare--button:focus,.uploadcare--button:hover{background:transparent;border-color:#3891ff;color:#3891ff;font-weight:400;font-style:normal;box-shadow:none;text-shadow:none}.uploadcare--button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--button:active{border-color:#0969ee;color:#0969ee}.uploadcare--button:disabled,.uploadcare--button[aria-disabled=true]{background:transparent!important;border-color:#d4d2d2!important;color:#d4d2d2!important;cursor:not-allowed}@media (min-width:760px){.uploadcare--button{padding:10px 20px;font-size:17.5px;line-height:25px}}.uploadcare--button_icon{padding:14px;min-width:0;width:60px;height:60px}.uploadcare--button_muted{border-color:transparent!important;color:#a4a2a1;border-radius:0}.uploadcare--button_muted:focus,.uploadcare--button_muted:hover{color:#157cfc}.uploadcare--button_muted:disabled,.uploadcare--button_muted[aria-disabled=true]{border-color:transparent!important}.uploadcare--button_overlay{background:rgba(53,53,53,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:focus,.uploadcare--button_overlay:hover{background:hsla(0,0%,40%,.5);border-color:transparent;color:#fff}.uploadcare--button_overlay:active{background:rgba(33,33,33,.5)}.uploadcare--button_primary{background:#157cfc;border-color:#157cfc;color:#fff}.uploadcare--button_primary:focus,.uploadcare--button_primary:hover{background:#3891ff;border-color:#3891ff;color:#fff}.uploadcare--button_primary:active{background:#0969ee;border-color:#0969ee}.uploadcare--button_primary:disabled,.uploadcare--button_primary[aria-disabled=true]{background:#d4d2d2!important;border-color:#d4d2d2!important;color:#fff!important}.uploadcare--button_size_big{padding:10px 25px;font-size:20px;line-height:30px}.uploadcare--button_size_small{padding:5px 10px;min-width:80px;font-size:15px;line-height:20px}.uploadcare--input{-webkit-appearance:none;appearance:none;-ms-flex-negative:0;flex-shrink:0;display:block;box-sizing:border-box;margin:5px 0 15px;padding:10px 15px;width:100%;font-size:17.5px;line-height:25px;background:#fff;color:#353535;border:1px solid #a4a2a1;border-radius:2px;box-shadow:none}.uploadcare--input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--input::placeholder{color:#a4a2a1}.uploadcare--form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;box-sizing:border-box;max-width:400px;width:100%}.uploadcare--error{color:#e66a6a}.uploadcare--powered-by{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:7.5px 0;font-size:12.5px;line-height:15px;color:#fff;text-align:center}.uploadcare--powered-by__link{display:-ms-inline-flexbox;display:inline-flex;color:inherit!important;text-decoration:none!important}.uploadcare--powered-by__logo{display:-ms-inline-flexbox;display:inline-flex;width:20px;height:15px;vertical-align:text-bottom}.uploadcare--progress__canvas{width:100%;height:100%}.uploadcare--progress__text{display:table-cell;vertical-align:middle;text-align:center;font-size:60%;line-height:1}.uploadcare--progress__text-container{width:100%;height:100%;display:table;white-space:normal}.uploadcare--progress_type_canvas{padding:2px;width:32px;height:32px;color:#ffd800;border-color:#e3e1e1}.uploadcare--progressbar{overflow:hidden;width:100%;height:100%;background:#e3e1e1;border-radius:6px}.uploadcare--progressbar__value{width:0;height:100%;background:#ffd800}.uploadcare--menu{-ms-flex-negative:0;flex-shrink:0;width:100%;width:100vw;max-width:100%;height:100%;overflow:hidden}@media (min-width:760px){.uploadcare--menu{width:60px}}@media (max-width:759px){.uploadcare--menu{height:60px}}.uploadcare--menu__icon{-ms-flex-negative:0;flex-shrink:0;margin:14px}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__item_current:not(.uploadcare--menu__item_tab_file) .uploadcare--menu__icon{position:absolute;top:0;left:50%;transform:translateX(-50%);margin-left:0}}.uploadcare--menu__item{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100vw;height:60px;overflow:hidden;cursor:default;background:#e3e1e1;color:#666;transition:background .3s,color .3s}@media (min-width:760px){.uploadcare--menu__item{width:60px}}.uploadcare--menu__item:focus,.uploadcare--menu__item:hover{color:#157cfc}.uploadcare--menu__item:active{background-color:#fff;color:#0969ee}.uploadcare--menu__item:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(21,124,252,.5)}.uploadcare--menu__item[aria-disabled=true]{background:#e3e1e1!important;color:#666!important;cursor:not-allowed}.uploadcare--menu__item:after{content:attr(title);-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;height:30px;font-size:17px;line-height:30px;white-space:nowrap}@media (min-width:760px){.uploadcare--menu__item:after{overflow:hidden;max-width:170px;text-overflow:ellipsis}}.uploadcare--menu__item_current,.uploadcare--menu__item_current:active,.uploadcare--menu__item_current:focus,.uploadcare--menu__item_current:hover{background-color:#fff;color:#353535}.uploadcare--menu__item_hidden{display:none}.uploadcare--menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding-right:100vw;overflow-y:auto;overflow-x:hidden;background:#e3e1e1}.uploadcare--menu__toggle{width:60px;height:60px;transition:none}.uploadcare--menu__toggle:focus{outline-offset:-2px}@media (min-width:760px){.uploadcare--menu__toggle{display:none}}@media (max-width:759px){.uploadcare--menu:not(.uploadcare--menu_opened) .uploadcare--menu__toggle-icon_back{display:none}}@media (max-width:759px){.uploadcare--menu_opened{position:relative;z-index:1000;height:100%}.uploadcare--menu_opened .uploadcare--menu__toggle{-ms-flex-pack:start;justify-content:flex-start;width:100%;text-align:left;background:#e3e1e1}.uploadcare--menu_opened .uploadcare--menu__toggle-icon_menu{display:none}.uploadcare--menu_opened .uploadcare--menu__items{height:calc(100% - 60px)}}.uploadcare--footer{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:100%;margin-top:10px;padding:5px 20px 15px}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer{display:block}}.uploadcare--footer:empty{display:none}.uploadcare--footer__additions{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;padding:0 0 15px;text-align:center}@media (max-width:759px) and (orientation:landscape){.uploadcare--footer__additions{padding:0 20px}}@media (max-width:500px) and (orientation:landscape){.uploadcare--footer__additions{display:none}}@media (min-width:760px){.uploadcare--footer__additions{padding:0 20px}}.uploadcare--footer__additions:empty{visibility:hidden;padding:0}.uploadcare--footer__button{margin-top:5px;margin-bottom:5px}.uploadcare--footer__button:first-of-type{-ms-flex-order:0;order:0}.uploadcare--footer__button:nth-of-type(2){-ms-flex-order:2;order:2}@media (max-width:759px){.uploadcare--footer__button{max-width:calc(50% - 20px)}}@media (max-width:759px) and (orientation:portrait){.uploadcare--footer__button:first-of-type{float:left}.uploadcare--footer__button:nth-of-type(2){float:right}}.uploadcare--dragging .uploadcare--draganddrop{margin:20px;background:#e3e1e1;color:#a4a2a1;border:2px dashed;border-radius:20px}.uploadcare--draganddrop.uploadcare--dragging{color:#157cfc!important}@media (max-width:759px){.uploadcare--draganddrop__title{display:none}}.uploadcare--draganddrop:not(.uploadcare--draganddrop_supported) .uploadcare--draganddrop__supported,.uploadcare--draganddrop_supported .uploadcare--draganddrop__not-supported,.uploadcare--dragging .uploadcare--dialog__close,.uploadcare--dragging__show{display:none}.uploadcare--dragging .uploadcare--dragging__show{display:block}.uploadcare--dragging .uploadcare--dragging__hide{display:none}.uploadcare--file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;padding:5px 0 5px 20px;color:#353535;cursor:default}.uploadcare--file:hover{background:rgba(21,124,252,.1)}.uploadcare--file__description{-ms-flex-positive:1;flex-grow:1;min-width:0;padding-right:20px;text-align:left}.uploadcare--file__description:focus,.uploadcare--file__description:focus .uploadcare--file__preview,.uploadcare--file__description:hover,.uploadcare--file__description:hover .uploadcare--file__preview{color:#157cfc}.uploadcare--file__description:active,.uploadcare--file__description:active .uploadcare--file__preview{color:#0969ee}.uploadcare--file__description:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:2px}.uploadcare--file__icon{max-width:100%;max-height:100%}.uploadcare--file__name{overflow:hidden;margin:0;max-width:calc(100vw - 200px);line-height:25px;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}@media (min-width:760px){.uploadcare--file__name{max-width:350px}}.uploadcare--file__preview{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;float:left;box-sizing:border-box;margin-right:10px;padding:2px;width:60px;height:60px;overflow:hidden;border:1px solid;border-radius:6px;background:transparent;color:#e3e1e1;transition:border .3s}.uploadcare--file__progressbar{-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;margin:0 10px;width:60px;height:10px}.uploadcare--file__size{font-size:12.5px;color:#a4a2a1}.uploadcare--file_status_error,.uploadcare--file_status_error .uploadcare--file__description,.uploadcare--file_status_error .uploadcare--file__preview{color:#e66a6a!important}.uploadcare--file_status_error .uploadcare--file__name{color:rgba(230,106,106,.5)!important}.uploadcare--file_status_error .uploadcare--file__progressbar,.uploadcare--file_status_error .uploadcare--file__size,.uploadcare--file_status_uploaded .uploadcare--file__progressbar{display:none}.uploadcare--file_status_uploading,.uploadcare--file_status_uploading .uploadcare--file__description{color:#353535!important}.uploadcare--file_status_uploading .uploadcare--file__name{max-width:calc(100vw - 280px)}@media (min-width:760px){.uploadcare--file_status_uploading .uploadcare--file__name{max-width:270px}}.uploadcare--file_status_uploading .uploadcare--file__preview{background:#ffd800;color:#ffd800!important}.uploadcare--files{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;width:100%;height:100%}.uploadcare--files__item{-ms-flex-negative:0;flex-shrink:0}.uploadcare--crop-sizes{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.uploadcare--crop-sizes__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;height:65px;background:transparent;border-color:transparent;color:#353535}.uploadcare--crop-sizes__item:focus,.uploadcare--crop-sizes__item:hover{background:transparent;border-color:transparent;color:#157cfc}.uploadcare--crop-sizes__item:active{background:transparent;border-color:transparent;color:#0969ee}.uploadcare--crop-sizes__item:disabled,.uploadcare--crop-sizes__item[aria-disabled=true]{border-color:transparent!important}.uploadcare--crop-sizes__item:after{content:attr(data-caption);display:block;font-size:14px;line-height:25px;text-transform:uppercase}@media (max-width:400px),(max-width:600px) and (orientation:landscape){.uploadcare--crop-sizes__item:after{font-size:12px}}.uploadcare--crop-sizes__item:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare--crop-sizes__item_current:active,.uploadcare--crop-sizes__item_current:focus,.uploadcare--crop-sizes__item_current:hover{color:#353535}.uploadcare--crop-sizes__item_current:before{background:#157cfc}.uploadcare--crop-sizes__icon{box-sizing:border-box;width:30px;height:30px;border:2px solid;border-radius:2px;color:inherit;transform:scale(.666)}.uploadcare--crop-sizes__icon_free{border:none;border-radius:0;transform:none}.uploadcare--file-source{margin:10px;border-color:#e3e1e1;background:#e3e1e1;color:#353535}.uploadcare--file-source_all{-ms-flex-order:1;order:1;border-color:currentColor;background:transparent;color:#157cfc}.uploadcare--file-sources{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%}@media (max-width:759px) and (max-height:450px),(min-width:760px){.uploadcare--file-sources{display:none}}.uploadcare--file-sources__caption{margin:15px 0 5px}@media (max-width:759px) and (max-height:550px){.uploadcare--file-sources__item:nth-child(4),.uploadcare--file-sources__item:nth-child(5),.uploadcare--file-sources__item:nth-child(6){display:none}}.uploadcare--file-sources__items{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:300px}.uploadcare--file-sources__items:empty,.uploadcare--file-sources__items:not(.uploadcare--file-sources__items_many) .uploadcare--file-source__all{display:none}.uploadcare--media{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100%}.uploadcare--media__image{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;transform:translateX(-50%) translateY(-50%)}.uploadcare--media__video{all:initial;width:auto;max-width:100%;height:auto;min-height:100px;max-height:100%}@media (max-width:759px) and (max-height:379px){.uploadcare--media__video{max-height:120px}}@media (max-width:759px) and (min-height:380px) and (max-height:499px){.uploadcare--media__video{max-height:160px}}@media (max-width:759px) and (min-height:500px),(min-width:760px){.uploadcare--media__video{max-height:300px}}.uploadcare--camera__button{margin:5px 10px}.uploadcare--camera__button_type_mirror{position:absolute;top:15px;left:50%;margin:0;transform:translateX(-50%)}.uploadcare--camera__video{transition:transform .8s cubic-bezier(.23,1,.32,1)}.uploadcare--camera__video_mirrored{transform:scaleX(-1)}.uploadcare--camera__video-container{-ms-flex-positive:0;flex-grow:0;position:relative;margin-bottom:10px}.uploadcare--camera_status_denied .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_capture,.uploadcare--camera_status_denied .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_denied .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_denied .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_denied .uploadcare--camera__controls,.uploadcare--camera_status_denied .uploadcare--camera__not-found,.uploadcare--camera_status_denied .uploadcare--camera__please-allow,.uploadcare--camera_status_denied .uploadcare--camera__video-container,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_capture,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_retry,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_not-founded .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_not-founded .uploadcare--camera__controls,.uploadcare--camera_status_not-founded .uploadcare--camera__please-allow,.uploadcare--camera_status_not-founded .uploadcare--camera__video-container,.uploadcare--camera_status_ready .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_ready .uploadcare--camera__button_type_retry,.uploadcare--camera_status_ready .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_ready .uploadcare--camera__not-found,.uploadcare--camera_status_ready .uploadcare--camera__please-allow,.uploadcare--camera_status_recording .uploadcare--camera__button_type_capture,.uploadcare--camera_status_recording .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_recording .uploadcare--camera__button_type_retry,.uploadcare--camera_status_recording .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_recording .uploadcare--camera__not-found,.uploadcare--camera_status_recording .uploadcare--camera__please-allow,.uploadcare--camera_status_requested .uploadcare--camera__button_type_cancel-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_capture,.uploadcare--camera_status_requested .uploadcare--camera__button_type_mirror,.uploadcare--camera_status_requested .uploadcare--camera__button_type_retry,.uploadcare--camera_status_requested .uploadcare--camera__button_type_start-record,.uploadcare--camera_status_requested .uploadcare--camera__button_type_stop-record,.uploadcare--camera_status_requested .uploadcare--camera__controls,.uploadcare--camera_status_requested .uploadcare--camera__not-found,.uploadcare--camera_status_requested .uploadcare--camera__video-container{display:none}.uploadcare--crop-widget>.uploadcare--preview__image{filter:brightness(60%);transform:none}.uploadcare--tab{overflow:hidden;-ms-flex-align:stretch;align-items:stretch;text-align:center}.uploadcare--tab,.uploadcare--tab__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.uploadcare--tab__content{-ms-flex-negative:1;flex-shrink:1;-ms-flex-align:center;align-items:center;overflow-y:auto;padding:0 20px}.uploadcare--tab__header{-ms-flex-negative:0;flex-shrink:0;padding:0 20px;overflow:hidden}@media (min-width:760px){.uploadcare--tab__header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding-right:60px;height:60px}}.uploadcare--tab__iframe{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;border:0;opacity:0}.uploadcare--tab__title{margin-top:10px;margin-bottom:10px}.uploadcare--tab:not(.uploadcare--tab_current),.uploadcare--tab_name_preview.uploadcare--tab_current~.uploadcare--panel__footer{display:none}.uploadcare--tab_remote.uploadcare--tab_current~.uploadcare--panel__footer{margin-top:0}.uploadcare--panel{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;overflow:hidden;width:100%;height:500px;border:1px solid #a4a2a1;border-radius:6px;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px}@media (min-width:760px){.uploadcare--panel{-ms-flex-direction:row;flex-direction:row}}.uploadcare--panel__content{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.uploadcare--panel__file-counter{display:inline}.uploadcare--panel__footer{padding-top:15px;background:#fff9d8}.uploadcare--panel__icon{box-sizing:border-box;padding:3px}.uploadcare--panel__menu_hidden{display:none}.uploadcare--panel__message_hidden{color:#d4d2d2}.uploadcare--panel__powered-by{background:#353535;color:hsla(0,0%,100%,.5)}@media (min-width:760px){.uploadcare--panel__powered-by{display:none}}.uploadcare--tab:not(:nth-child(2)).uploadcare--tab_current~.uploadcare--panel__powered-by{display:none}@media (max-width:759px){.uploadcare--panel_menu-hidden .uploadcare--tab__header{padding:6px 60px 0;min-height:60px}}.uploadcare--panel:not(.uploadcare--panel_multiple) .uploadcare--panel__footer{display:none}.uploadcare--panel_multiple .uploadcare--panel__content{position:relative}.uploadcare--panel_multiple .uploadcare--tab_name_preview{position:absolute;top:0;left:0;height:100%;width:100%}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__content{padding-left:0;padding-right:0}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer{position:relative;margin-top:0;padding-top:15px}.uploadcare--panel_multiple .uploadcare--tab_name_preview .uploadcare--tab__footer:before{content:"";position:absolute;top:0;left:20px;width:calc(100% - 40px);height:1px;background:#e3e1e1}.uploadcare--preview__content{overflow:hidden}.uploadcare--preview__content_crop{padding:10px 20px}.uploadcare--dialog{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;position:fixed;top:0;left:0;z-index:2147483647;box-sizing:border-box;overflow:hidden;-ms-touch-action:none;touch-action:none;width:100%;height:100%;background:#fff;color:#353535;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;font-weight:400;font-size:15px;line-height:20px;opacity:0;transition:opacity .33s cubic-bezier(.05,.7,.25,1)}@media (min-width:760px){.uploadcare--dialog{-ms-flex-align:center;align-items:center;overflow-y:auto;background:rgba(0,0,0,.5)}}@media (min-width:760px) and (max-height:559px){.uploadcare--dialog{padding-top:30px}}@media (min-width:760px) and (min-height:560px){.uploadcare--dialog{-ms-flex-pack:center;justify-content:center}}.uploadcare--dialog__close{position:absolute;top:0;right:0;z-index:49}.uploadcare--dialog__close:focus{outline-offset:-2px}.uploadcare--dialog__container{display:-ms-flexbox;display:flex;position:relative;overflow:hidden}@media (max-width:759px){.uploadcare--dialog__container{-ms-flex-positive:1;flex-grow:1;height:100%}}@media (min-width:760px){.uploadcare--dialog__container{width:calc(100% - 60px);max-width:900px;height:calc(100% - 60px);min-height:500px;max-height:660px;border-radius:6px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}}@media (min-width:1210px){.uploadcare--dialog__container{max-width:1050px}}.uploadcare--dialog__panel{height:100%;border:none;border-radius:0}@media (min-width:1210px){.uploadcare--dialog__panel .uploadcare--menu,.uploadcare--dialog__panel .uploadcare--menu__item{width:250px}}.uploadcare--dialog__powered-by{-ms-flex-negative:0;flex-shrink:0}@media (max-width:759px){.uploadcare--dialog__powered-by{display:none}}.uploadcare--dialog_status_active{opacity:1}.uploadcare--widget{display:inline-block;vertical-align:baseline}.uploadcare--dragging .uploadcare--widget,.uploadcare--widget.uploadcare--dragging{position:relative}.uploadcare--widget__button{all:initial;display:inline-block;box-sizing:border-box;margin:0;padding:.4em 1em;width:auto;min-width:0;height:auto;min-height:0;border-radius:6px;border:none;background:#c3c3c3;color:#fff;cursor:default;text-align:center;white-space:nowrap;font:inherit;line-height:inherit;box-shadow:none;text-shadow:inherit;transition:background .3s}.uploadcare--widget__button:focus,.uploadcare--widget__button:hover{background:#b3b3b3;color:#fff;font:inherit;box-shadow:none;text-shadow:inherit}.uploadcare--widget__button:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}.uploadcare--widget__button:active{background:#b3b3b3}.uploadcare--widget__button:disabled{background:#c3c3c3;color:#fff;cursor:not-allowed}.uploadcare--widget__button_type_open{background:#157cfc;color:#fff}.uploadcare--widget__button_type_open:focus,.uploadcare--widget__button_type_open:hover{background:#3891ff}.uploadcare--widget__button_type_open:active{background:#0969ee}.uploadcare--widget__button_type_open:disabled{background:#c3c3c3}.uploadcare--widget__dragndrop-area{position:absolute;top:0;left:0;box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:calc(.4em - 1.5px) 1em;font:inherit;line-height:inherit;text-align:center;white-space:nowrap;border:1.5px dashed;border-radius:6px;background:#e3e1e1;color:#a4a2a1;transition:color .3s;display:none}.uploadcare--dragging .uploadcare--widget__dragndrop-area{display:block}.uploadcare--widget.uploadcare--dragging .uploadcare--widget__dragndrop-area{color:#157cfc}.uploadcare--widget__file-name,.uploadcare--widget__file-size{display:inline}.uploadcare--widget__progress{display:inline-block;width:1.8em;height:1.8em;margin:0 .2em 0 0;padding:0;line-height:0;vertical-align:middle}.uploadcare--widget__text{display:inline-block;box-sizing:border-box;margin-right:.2em;padding:.4em 0;white-space:nowrap}.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_error .uploadcare--widget__button_type_remove,.uploadcare--widget:not(.uploadcare--widget_option_clearable).uploadcare--widget_status_loaded .uploadcare--widget__button_type_remove,.uploadcare--widget_option_clearable.uploadcare--widget_status_error .uploadcare--widget__button_type_open,.uploadcare--widget_status_error .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_error .uploadcare--widget__progress,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_loaded .uploadcare--widget__button_type_open,.uploadcare--widget_status_loaded .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__button_type_cancel,.uploadcare--widget_status_ready .uploadcare--widget__button_type_remove,.uploadcare--widget_status_ready .uploadcare--widget__progress,.uploadcare--widget_status_ready .uploadcare--widget__text,.uploadcare--widget_status_started .uploadcare--widget__button_type_open,.uploadcare--widget_status_started .uploadcare--widget__button_type_remove{display:none}.uploadcare--page{width:auto;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.uploadcare--mouse-focused:focus{outline:none}'}},Sn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=En[e];return null!=n?n(o({},t)):""};E()&&st.add((function(e){var t=Sn("styles",{settings:e}),r=document.createElement("style");return r.setAttribute("type","text/css"),null!=r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),n.default("head").prepend(r)}));var On=function(e){return!e.find(".uploadcare--widget").is("[data-status=started], [data-status=error]")},Cn=function(e,t){return e.attr("data-uploadcare-submitted",t),e.find(":submit").attr("disabled",t)},Tn='[role~="uploadcare-upload-form"]',An=Tn+"[data-uploadcare-submitted]";E()&&(n.default(document).on("submit",Tn,(function(){var e;return e=n.default(this),!!On(e)||(Cn(e,!0),!1)})),n.default(document).on("loaded.uploadcare",An,(function(){return n.default(this).submit()})),n.default(document).on("ready.uploadcare error.uploadcare",An,(function(){var e;if(e=n.default(this),On(e))return Cn(e,!1)})));var Pn=[".uploadcare--menu__item",".uploadcare--file__description",".uploadcare--crop-sizes__item"].join(", ");E()&&n.default(document.documentElement).on("mousedown",Pn,(function(e){return V((function(){var e;if((e=document.activeElement)&&e!==document.body)return n.default(e).addClass("uploadcare--mouse-focused").one("blur",(function(){return n.default(e).removeClass("uploadcare--mouse-focused")}))}))})).on("keypress",Pn,(function(e){if(13===e.which||32===e.which)return n.default(this).click(),e.preventDefault(),e.stopPropagation()}));var Rn=function(){function e(t){s(this,e),this.renderer=A?new Mn(t):new In(t),this.observed=null}return c(e,[{key:"listen",value:function(e,t){var n,r=this;return this.reset(),n=null!=t?function(e){return e[t]}:function(e){return e},this.observed=e,"resolved"===this.observed.state()?this.renderer.setValue(1,!0):this.observed.progress((function(t){e===r.observed&&r.renderer.setValue(n(t))})).always((function(t){e===r.observed&&r.renderer.setValue(1,!1)})),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.observed=null,this.renderer.setValue(e?1:0,!0)}},{key:"update",value:function(){this.renderer.update()}}]),e}(),jn=function(){function e(t){s(this,e),this.element=n.default(t),this.element.data("uploadcare-progress-renderer",this),this.element.addClass("uploadcare--progress")}return c(e,[{key:"update",value:function(){}}]),e}(),In=function(e){f(n,e);var t=v(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).element.addClass("uploadcare--progress_type_text"),e.element.html(Sn("progress__text")),e.text=e.element.find(".uploadcare--progress__text"),e}return c(n,[{key:"setValue",value:function(e){e=Math.round(100*e),this.text.html("".concat(e," %"))}}]),n}(jn),Mn=function(e){f(r,e);var t=v(r);function r(){var e;return s(this,r),(e=t.apply(this,arguments)).canvasEl=n.default("<canvas>").addClass("uploadcare--progress__canvas").get(0),e.element.addClass("uploadcare--progress_type_canvas"),e.element.html(e.canvasEl),e.setValue(0,!0),e}return c(r,[{key:"update",value:function(){var e=this;window.cancelAnimationFrame(this.__rafId),this.__rafId=window.requestAnimationFrame((function(){var t=Math.floor(Math.min(e.element.width(),e.element.height())),n=2*t;if(t){e.canvasEl.width===n&&e.canvasEl.height===n||(e.canvasEl.width=n,e.canvasEl.height=n);var r=e.canvasEl.getContext("2d"),i=function(e,n){var i;i=-Math.PI/2,r.beginPath(),r.moveTo(t,t),r.arc(t,t,e,i,i+2*Math.PI*n,!1),r.fill()};r.clearRect(0,0,n,n),r.globalCompositeOperation="source-over",r.fillStyle=e.element.css("border-left-color"),i(t-.5,1),r.fillStyle=e.element.css("color"),i(t,e.val),r.globalCompositeOperation="destination-out",i(t/7,1)}}))}},{key:"__animateValue",value:function(e){var t,n,r,i=this;r=this.val,n=new Date,t=e>r?2:-2,this.__animIntervalId=setInterval((function(){var o;o=r+(new Date-n)/1e3*t,(o=(t>0?Math.min:Math.max)(o,e))===e&&i.__stopAnimation(),i.__setValue(o)}),15)}},{key:"__stopAnimation",value:function(){this.__animIntervalId&&clearInterval(this.__animIntervalId),this.__animIntervalId=null}},{key:"__setValue",value:function(e){this.val=e,this.element.attr("aria-valuenow",(100*e).toFixed(0)),this.update()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.__stopAnimation(),t?this.__setValue(e):this.__animateValue(e)}}]),r}(jn),Ln=P,Dn=function(e,t,n){return n=at(n),Nn(e,(function(e,r){return t(n.multiple?Gt(e,r,n):Vt(e,r[0],n))}))},Nn=Ln?function(e,t){Fn(e),n.default(e).on({dragover:function(e){e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},drop:function(e){var r,i,o,a,s,l;if(e.preventDefault(),r=e.originalEvent.dataTransfer){if(r.files.length)return t("object",r.files);for(l=[],i=0,o=(a=r.getData("text/uri-list").split()).length;i<o;i++)s=a[i],(s=n.default.trim(s))&&"#"!==s[0]&&l.push(s);return l?t("url",l):void 0}}})}:function(){},Fn=Ln?function(e,t){var r,i,o;return o=!1,i=0,r=function(t){if(o!==t)return o=t,n.default(e).toggleClass("uploadcare--dragging",t)},n.default(t||e).on({dragenter:function(){return i+=1,r(!0)},dragleave:function(){if(0==(i-=1))return r(!1)},"drop mouseenter":function(){return i=0,r(!1)}})}:function(){};E()&&Fn("body",document);var Bn,zn,Un=function(){function e(t,r){s(this,e),this.settings=t,this.element=r,this.content=n.default(Sn("widget")),this.element.after(this.content),this.circle=new Rn(this.content.find(".uploadcare--widget__progress").removeClass("uploadcare--widget__progress")),this.content.find(".uploadcare--progress").addClass("uploadcare--widget__progress"),this.statusText=this.content.find(".uploadcare--widget__text"),this.content.toggleClass("uploadcare--widget_option_clearable",this.settings.clearable)}return c(e,[{key:"addButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.default(Sn("widget-button",{name:e,caption:t})).appendTo(this.content)}},{key:"setStatus",value:function(e){var t;return t="uploadcare--widget_status_",this.content.removeClass(t+this.content.attr("data-status")),this.content.attr("data-status",e),this.content.addClass(t+e),this.element.trigger("".concat(e,".uploadcare"))}},{key:"reset",value:function(){return this.circle.reset(),this.setStatus("ready"),this.content.attr("aria-busy",!1),this.__file=void 0,this.__file}},{key:"loaded",value:function(){return this.setStatus("loaded"),this.content.attr("aria-busy",!1),this.circle.reset(!0)}},{key:"listen",value:function(e){var t=this;return this.__file=e,this.circle.listen(e,"uploadProgress"),this.setStatus("started"),this.content.attr("aria-busy",!0),e.progress((function(n){if(e===t.__file)switch(n.state){case"uploading":return t.statusText.text(an.t("uploading"));case"uploaded":return t.statusText.text(an.t("loadingInfo"))}}))}},{key:"error",value:function(e,t){var n=this.settings.debugUploads&&(null==t?void 0:t.message)||an.t("serverErrors.".concat(null==t?void 0:t.code))||(null==t?void 0:t.message)||an.t("errors.".concat(e||"default"));return this.statusText.text(n),this.content.attr("aria-busy",!1),this.setStatus("error")}},{key:"setFileInfo",value:function(e){return this.statusText.html(Sn("widget-file-name",e)).find(".uploadcare--widget__file-name").toggleClass("needsclick",this.settings.systemDialog)}}]),e}(),qn=function(){function e(t,n,r,i,o){s(this,e),this.__initTabsList=this.__initTabsList.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.container.append(Sn("tab-file")),this.__setupFileButton(),this.__initDragNDrop(),this.__initTabsList()}return c(e,[{key:"__initDragNDrop",value:function(){var e,t=this;if(e=this.container.find(".uploadcare--draganddrop"),P)return Nn(e,(function(e,n){return t.settings.multiple?t.dialogApi.addFiles(e,n):t.dialogApi.addFiles(e,[n[0]]),t.dialogApi.switchTab("preview")})),e.addClass("uploadcare--draganddrop_supported")}},{key:"__setupFileButton",value:function(){var e,t=this;return e=this.container.find(".uploadcare--tab__action-button"),C?e.on("click",(function(){return he(t.container,t.settings,(function(e){return t.dialogApi.addFiles("object",e.files),t.dialogApi.switchTab("preview")})),!1})):pe(e,this.settings,(function(e){return t.dialogApi.addFiles("input",[e]),t.dialogApi.switchTab("preview")}))}},{key:"__initTabsList",value:function(){var e,t,n,r,i,o,a=this;for((n=this.container.find(".uploadcare--file-sources__items")).remove(".uploadcare--file-sources__item:not(.uploadcare--file-source_all)"),r=0,e=0,t=(i=this.settings.tabs).length;e<t;e++)"file"!==(o=i[e])&&"url"!==o&&"camera"!==o&&this.dialogApi.isTabVisible(o)&&((r+=1)>5||n.append([this.__tabButton(o)," "]));return n.find(".uploadcare--file-source_all").on("click",(function(){return a.dialogApi.openMenu()})),r>5&&n.addClass("uploadcare--file-sources__items_many"),this.container.find(".uploadcare--file-sources").attr("hidden",0===r)}},{key:"__tabButton",value:function(e){var t,r=this;return t=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--file-source__icon"),n.default("<button>").addClass("uploadcare--button").addClass("uploadcare--button_icon").addClass("uploadcare--file-source").addClass("uploadcare--file-source_".concat(e)).addClass("uploadcare--file-sources__item").attr("type","button").attr("title",an.t("dialog.tabs.names.".concat(e))).attr("data-tab",e).append(t).on("click",(function(){return r.dialogApi.switchTab(e)}))}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--tab__action-button").focus()}}]),e}(),Wn=function(){function e(t,r,i,o,a){var l,u,c=this;s(this,e),this.container=t,this.tabButton=r,this.dialogApi=i,this.settings=o,this.name=a,this.container.append(Sn("tab-url")),(u=this.container.find(".uploadcare--input")).on("change keyup input",(function(){var e=!n.default.trim(this.value);return l.attr("disabled",e).attr("aria-disabled",e)})),l=this.container.find(".uploadcare--button[type=submit]").attr("disabled",!0),this.container.find(".uploadcare--form").on("submit",(function(){var e=Bn(u.val());return e&&(c.dialogApi.addFiles("url",[[e,{source:"url-tab"}]]),u.val("").trigger("change")),!1}))}return c(e,[{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--input").focus()}}]),e}();zn=/^[a-z][a-z0-9+\-.]*:?\/\//,Bn=function(e){return e=n.default.trim(e),zn.test(e)?e:"http://"+e};var Hn=E()&&"https:"===document.location.protocol,$n=function(){function e(t,n,r,i,o){var a;if(s(this,e),this.__captureInput=this.__captureInput.bind(this),this.__captureInputHandle=this.__captureInputHandle.bind(this),this.__setState=this.__setState.bind(this),this.__requestCamera=this.__requestCamera.bind(this),this.__revoke=this.__revoke.bind(this),this.__mirror=this.__mirror.bind(this),this.__capture=this.__capture.bind(this),this.__startRecording=this.__startRecording.bind(this),this.__stopRecording=this.__stopRecording.bind(this),this.__cancelRecording=this.__cancelRecording.bind(this),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.__checkCapture())this.container.append(Sn("tab-camera-capture")),this.container.addClass("uploadcare--camera"),this.container.find(".uploadcare--camera__button_type_photo").on("click",this.__captureInput("image/*")),a=this.container.find(".uploadcare--camera__button_type_video").on("click",this.__captureInput("video/*")),this.settings.imagesOnly&&a.hide();else{if(!this.__checkCompatibility())return void this.dialogApi.hideTab(this.name);this.__initCamera()}}return c(e,[{key:"__captureInput",value:function(e){var t=this;return function(){return he(t.container,{inputAcceptTypes:e},t.__captureInputHandle,{capture:"camera"})}}},{key:"__captureInputHandle",value:function(e){return this.dialogApi.addFiles("object",e.files),this.dialogApi.switchTab("preview")}},{key:"__initCamera",value:function(){var e,t=this;return this.__loaded=!1,this.mirrored=this.settings.cameraMirrorDefault,this.container.append(Sn("tab-camera")),this.container.addClass("uploadcare--camera"),this.container.addClass("uploadcare--camera_status_requested"),this.container.find(".uploadcare--camera__button_type_capture").on("click",this.__capture),e=this.container.find(".uploadcare--camera__button_type_start-record").on("click",this.__startRecording),this.container.find(".uploadcare--camera__button_type_stop-record").on("click",this.__stopRecording),this.container.find(".uploadcare--camera__button_type_cancel-record").on("click",this.__cancelRecording),this.container.find(".uploadcare--camera__button_type_mirror").on("click",this.__mirror),this.container.find(".uploadcare--camera__button_type_retry").on("click",this.__requestCamera),this.MediaRecorder&&!this.settings.imagesOnly&&this.settings.enableVideoRecording||e.hide(),this.video=this.container.find(".uploadcare--camera__video"),this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored),this.video.on("loadeddata",(function(){return this.play()})),this.dialogApi.progress((function(e){if(e===t.name){if(!t.__loaded)return t.__requestCamera()}else if(t.__loaded&&Hn)return t.__revoke()})),this.dialogApi.always(this.__revoke)}},{key:"__checkCompatibility",value:function(){var e;return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?this.getUserMedia=function(e,t,n){return navigator.mediaDevices.getUserMedia(e).then(t).catch(n)}:this.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,this.URL=window.URL||window.webkitURL,this.MediaRecorder=window.MediaRecorder,Hn||U("Camera is not allowed for HTTP. Please use HTTPS connection."),e="localhost"===document.location.hostname,!!this.getUserMedia&&Uint8Array&&(Hn||e)}},{key:"__checkCapture",value:function(){var e;return(e=document.createElement("input")).setAttribute("capture","camera"),!!e.capture}},{key:"__setState",value:function(e){var t=["","ready","requested","denied","not-founded","recording","error"].join(" uploadcare--camera_status_");this.container.removeClass(t).addClass("uploadcare--camera_status_".concat(e)),this.container.find(".uploadcare--camera__button").focus()}},{key:"__requestCamera",value:function(){var e=this;return this.__loaded=!0,this.getUserMedia.call(navigator,{audio:this.settings.enableAudioRecording,video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}}},(function(t){return e.__setState("ready"),e.__stream=t,"srcObject"in e.video[0]?(e.video.prop("srcObject",t),e.video.on("loadedmetadata",(function(){return e.video[0].play()}))):(e.URL?(e.__streamObject=e.URL.createObjectURL(t),e.video.prop("src",e.__streamObject)):e.video.prop("src",t),e.video[0].play())}),(function(t){var n=Object.create(null);return n.NotFoundError=function(){e.__setState("not-founded")},n.NotAllowedError=function(){e.__setState("denied")},n.other=function(){e.__setState("denied"),console.warn("Camera error occurred: "+t.name)},(n[t.name]||n.other)(),e.__loaded=!1,e.__loaded}))}},{key:"__revoke",value:function(){var e;if(this.__setState("requested"),this.__loaded=!1,this.__stream)return this.__streamObject&&this.URL.revokeObjectURL(this.__streamObject),this.__stream.getTracks?n.default.each(this.__stream.getTracks(),(function(){return"function"==typeof this.stop?this.stop():void 0})):"function"==typeof(e=this.__stream).stop&&e.stop(),this.__stream=null,this.__stream}},{key:"__mirror",value:function(){return this.mirrored=!this.mirrored,this.video.toggleClass("uploadcare--camera__video_mirrored",this.mirrored)}},{key:"__capture",value:function(){var e,t,n,r,i,o=this;return i=(r=this.video[0]).videoWidth,n=r.videoHeight,(e=document.createElement("canvas")).width=i,e.height=n,t=e.getContext("2d"),this.mirrored&&(t.translate(i,0),t.scale(-1,1)),t.drawImage(r,0,0,i,n),be(e,"image/jpeg",.9,(function(t){return e.width=e.height=1,t.name="camera.jpg",o.dialogApi.addFiles("object",[[t,{source:"camera"}]]),o.dialogApi.switchTab("preview")}))}},{key:"__startRecording",value:function(){var e=this;this.__setState("recording"),this.__chunks=[];var t={},r=this.settings.videoPreferredMimeTypes;if(null!=r){var i=function(e,t){for(var n=e.length,r=0;r<n;){var i=e[r];if(t(i))return i;r++}}(n.default.isArray(r)?r:[r],(function(t){return e.MediaRecorder.isTypeSupported(t)}));null!=i&&(t.mimeType=i)}var o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1;return null==t.mimeType&&o&&this.MediaRecorder.isTypeSupported("video/webm")&&(t.mimeType="video/webm"),null!==this.settings.audioBitsPerSecond&&(t.audioBitsPerSecond=this.settings.audioBitsPerSecond),null!==this.settings.videoBitsPerSecond&&(t.videoBitsPerSecond=this.settings.videoBitsPerSecond),0!==Object.keys(t).length?this.__recorder=new this.MediaRecorder(this.__stream,t):this.__recorder=new this.MediaRecorder(this.__stream),this.__recorder.start(),this.__recorder.ondataavailable=function(t){return e.__chunks.push(t.data)},this.__recorder.ondataavailable}},{key:"__stopRecording",value:function(){var e=this;return this.__setState("ready"),this.__recorder.onstop=function(){var t,n;return t=new window.Blob(e.__chunks,{type:e.__recorder.mimeType}),n=e.__guessExtensionByMime(e.__recorder.mimeType),t.name="record.".concat(n),e.dialogApi.addFiles("object",[[t,{source:"camera"}]]),e.dialogApi.switchTab("preview"),e.__chunks=[],e.__chunks},this.__recorder.stop()}},{key:"__cancelRecording",value:function(){return this.__setState("ready"),this.__recorder.stop(),this.__chunks=[],this.__chunks}},{key:"__guessExtensionByMime",value:function(e){var t={mp4:"mp4",ogg:"ogg",webm:"webm",quicktime:"mov","x-matroska":"mkv"};if(""===e)return"webm";if(e&&"video"===(e=e.split("/"))[0]){var n=(e=e.slice(1).join("/")).split(";")[0];if(t[n])return t[n]}return"avi"}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--camera__button").focus()}}]),e}();E()&&function(e){e.Jcrop=function(t,n){var r,i=e.extend({},e.Jcrop.defaults);function o(e){return Math.round(e)+"px"}function s(e){return i.baseClass+"-"+e}function l(t){var n=e(t).offset();return[n.left,n.top]}function u(e){return[e.pageX-r[0],e.pageY-r[1]]}function c(t){"object"!==a(t)&&(t={}),i=e.extend(i,t),e.each(["onChange","onSelect","onRelease","onDblClick"],(function(e,t){"function"!=typeof i[t]&&(i[t]=function(){})}))}function d(e,t){if(r=l(O),"move"===e)return K.activateHandlers(function(e){var t=e;return Y.watchKeys(),function(e){$.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,G.update()}}(t),m);var n=$.getFixed(),o=f(e),a=$.getCorner(f(o));$.setPressed($.getCorner(o)),$.setCurrent(a),K.activateHandlers(function(e,t){return function(n){if(i.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":case"s":n[0]=t.x2}$.setCurrent(n),G.update()}}(e,n),m)}function f(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function p(e){return function(t){return!(i.disabled||"move"===e&&!i.allowMove||(r=l(O),B=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}}function h(e){return{x:e.x*N,y:e.y*F,x2:e.x2*N,y2:e.y2*F,w:e.w*N,h:e.h*F}}function m(e){$.getFixed(),G.enableHandles(),G.done()}function g(){var t=e("<div></div>").addClass(s("tracker"));return t.css({opacity:0,backgroundColor:"white"}),t}"object"!==a(t)&&(t=e(t)[0]),"object"!==a(n)&&(n={}),c(n);var v,y,b,_,w,x={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},k=e(t),E=!0;if("IMG"==t.tagName){if(0!=k[0].width&&0!=k[0].height)k.width(k[0].width),k.height(k[0].height);else{var S=new Image;S.src=k[0].src,k.width(S.width),k.height(S.height)}var O=k.clone().removeAttr("id").css(x).show();O.width(k.width()),O.height(k.height()),k.after(O).hide()}else O=k.css(x).show(),E=!1,null===i.shade&&(i.shade=!0);v=O,y=i.boxWidth,b=i.boxHeight,_=v.width(),w=v.height(),_>y&&y>0&&(_=y,w=y/v.width()*v.height()),w>b&&b>0&&(w=b,_=b/v.height()*v.width()),N=v.width()/_,F=v.height()/w,v.width(_).height(w);var C=O.width(),T=O.height(),A=e("<div></div>").width(C).height(T).addClass(s("holder")).css({position:"relative",backgroundColor:i.bgColor}).insertAfter(k).append(O);i.addClass&&A.addClass(i.addClass);var P=e("<div></div>"),R=e("<div></div>").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),j=e("<div></div>").css({position:"absolute",zIndex:600}).dblclick((function(){var e=$.getFixed();i.onDblClick.call(J,e)})).insertBefore(O).append(R);E&&(P=e("<img />").attr("src",O.attr("src")).css(x).width(C).height(T),R.append(P));var I,M,L,D,N,F,B,z=i.boundary,U=g().width(C+2*z).height(T+2*z).css({position:"absolute",top:o(-z),left:o(-z),zIndex:290}),q=i.bgColor,W=i.bgOpacity;r=l(O);var H=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],r=document.createElement("div");try{for(e=0;e<n.length;e++){var i=n[e],o=(i="on"+i)in r;o||(r.setAttribute(i,"return;"),o="function"==typeof r[i]),t[n[e]]=o}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,!(i.disabled||"move"===e&&!i.allowMove||(B=!0,d(e,u(t)),t.stopPropagation(),t.preventDefault(),1))}},isSupported:e,support:!0===i.touchSupport||!1===i.touchSupport?i.touchSupport:e()}}(),$=function(){var e,t,n=0,r=0,o=0,a=0;function s(){if(!i.aspectRatio)return t=o-n,s=a-r,I&&Math.abs(t)>I&&(o=t>0?n+I:n-I),M&&Math.abs(s)>M&&(a=s>0?r+M:r-M),D/F&&Math.abs(s)<D/F&&(a=s>0?r+D/F:r-D/F),L/N&&Math.abs(t)<L/N&&(o=t>0?n+L/N:n-L/N),n<0&&(o-=n,n-=n),r<0&&(a-=r,r-=r),o<0&&(n-=o,o-=o),a<0&&(r-=a,a-=a),o>C&&(n-=e=o-C,o-=e),a>T&&(r-=e=a-T,a-=e),n>C&&(a-=e=n-T,r-=e),r>T&&(a-=e=r-T,r-=e),c(u(n,r,o,a));var e,t,s,l=i.aspectRatio,d=i.minSize[0]/N,f=i.maxSize[0]/N;i.maxSize[1];var p,h,m,g,v=o-n,y=a-r,b=Math.abs(v),_=Math.abs(y);return 0===f&&(f=10*C),b/_<l?(h=a,m=_*l,(p=v<0?n-m:m+n)<0?(p=0,g=Math.abs((p-n)/l),h=y<0?r-g:g+r):p>C&&(p=C,g=Math.abs((p-n)/l),h=y<0?r-g:g+r)):(p=o,g=b/l,(h=y<0?r-g:r+g)<0?(h=0,m=Math.abs((h-r)*l),p=v<0?n-m:m+n):h>T&&(h=T,m=Math.abs(h-r)*l,p=v<0?n-m:m+n)),p>n?(p-n<d?p=n+d:p-n>f&&(p=n+f),h=h>r?r+(p-n)/l:r-(p-n)/l):p<n&&(n-p<d?p=n-d:n-p>f&&(p=n-f),h=h>r?r+(n-p)/l:r-(n-p)/l),p<0?(n-=p,p=0):p>C&&(n-=p-C,p=C),h<0?(r-=h,h=0):h>T&&(r-=h-T,h=T),c(u(n,r,p,h))}function l(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>C&&(e[0]=C),e[1]>T&&(e[1]=T),[e[0],e[1]]}function u(e,t,n,r){var i=e,o=n,a=t,s=r;return n<e&&(i=n,o=e),r<t&&(a=r,s=t),[i,a,o,s]}function c(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}return{flipCoords:u,setPressed:function(e){e=l(e),o=n=e[0],a=r=e[1]},setCurrent:function(n){n=l(n),e=n[0]-o,t=n[1]-a,o=n[0],a=n[1]},getOffset:function(){return[e,t]},moveOffset:function(e){var t=e[0],i=e[1];0>n+t&&(t-=t+n),0>r+i&&(i-=i+r),T<a+i&&(i+=T-(a+i)),C<o+t&&(t+=C-(o+t)),n+=t,o+=t,r+=i,a+=i},getCorner:function(e){var t=s();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:s}}(),V=function(){var t=!1,n=e("<div></div>").css({position:"absolute",zIndex:240,opacity:0}),r={top:l(),left:l().height(T),right:l().height(T),bottom:l()};function a(){return s($.getFixed())}function s(e){r.top.css({left:o(e.x),width:o(e.w),height:o(e.y)}),r.bottom.css({top:o(e.y2),left:o(e.x),width:o(e.w),height:o(T-e.y2)}),r.right.css({left:o(e.x2),width:o(C-e.x2)}),r.left.css({width:o(e.x)})}function l(){return e("<div></div>").css({position:"absolute",backgroundColor:i.shadeColor||i.bgColor}).appendTo(n)}function u(){t||(t=!0,n.insertBefore(O),a(),G.setBgOpacity(1,0,1),P.hide(),c(i.shadeColor||i.bgColor,1),G.isAwake()?f(i.bgOpacity,1):f(1,1))}function c(e,t){X(p(),e,t)}function d(){t&&(n.remove(),P.show(),t=!1,G.isAwake()?G.setBgOpacity(i.bgOpacity,1,1):G.setBgOpacity(1,1,1),X(A,0,1))}function f(e,r){t&&(i.bgFade&&!r?n.animate({opacity:1-e},{queue:!1,duration:i.fadeTime}):n.css({opacity:1-e}))}function p(){return n.children()}return{update:a,updateRaw:s,getShades:p,setBgColor:c,enable:u,disable:d,resize:function(e,t){r.left.css({height:o(t)}),r.right.css({height:o(t)})},refresh:function(){i.shade?u():d(),G.isAwake()&&f(i.bgOpacity)},opacity:f}}(),G=function(){var t,n={},r={};function a(t){return function(t){var n=e("<div></div>").mousedown(p(t)).css({cursor:t+"-resize",position:"absolute"}).append("<div></div>").addClass("ord-"+t);return H.support&&n.on("touchstart.jcrop",H.createDragger(t)),j.append(n),n}(t).addClass(s("handle"))}function l(){var e=$.getFixed();$.setPressed([e.x,e.y]),$.setCurrent([e.x2,e.y2]),u()}function u(e){if(t)return c(e)}function c(e){var n,r,a=$.getFixed();!function(e,t){j.width(Math.round(e)).height(Math.round(t))}(a.w,a.h),n=a.x,r=a.y,i.shade||P.css({top:o(-r),left:o(-n)}),j.css({top:o(r),left:o(n)}),i.shade&&V.updateRaw(a),t||(j.show(),i.shade?V.opacity(W):d(W,!0),t=!0),e?i.onSelect.call(J,h(a)):i.onChange.call(J,h(a))}function d(e,n,r){(t||n)&&(i.bgFade&&!r?O.animate({opacity:e},{queue:!1,duration:i.fadeTime}):O.css("opacity",e))}function f(){if(i.allowResize)return!0}function m(e){e||f()}e.isArray(i.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)r[e[t]]=a(e[t])}(i.createHandles),i.drawBorders&&e.isArray(i.createBorders)&&function(t){var r,i,o,a;for(i=0;i<t.length;i++){switch(t[i]){case"n":r="hline";break;case"s":r="hline bottom";break;case"e":r="vline right";break;case"w":r="vline"}n[t[i]]=(o=r,a=void 0,a=e("<div></div>").css({position:"absolute"}).addClass(s(o)),j.append(a),a)}}(i.createBorders),e(document).on("touchstart.jcrop-ios",(function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}));var v=g().mousedown(p("move")).css({cursor:"move",position:"absolute",zIndex:360});return H.support&&v.on("touchstart.jcrop",H.createDragger("move")),R.append(v),{updateVisible:u,update:c,release:function(){j.hide(),i.shade?V.opacity(1):d(1),t=!1,i.onRelease.call(J)},refresh:l,isAwake:function(){return t},setCursor:function(e){v.css("cursor",e)},enableHandles:f,enableOnly:function(){},disableHandles:function(){},animMode:m,setBgOpacity:d,done:function(){m(!1),l()}}}(),K=function(){var t=function(){},n=function(){},r=i.trackDocument;function o(e){return t(u(e)),!1}function a(r){return r.preventDefault(),r.stopPropagation(),B&&(B=!1,n(u(r)),G.isAwake()&&i.onSelect.call(J,h($.getFixed())),U.css({zIndex:290}),e(document).off(".jcrop"),t=function(){},n=function(){}),!1}function s(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,o(e)}function l(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,a(e)}return r||U.mousemove(o).mouseup(a).mouseout(a),O.before(U),{activateHandlers:function(i,u){return B=!0,t=i,n=u,U.css({zIndex:450}),H.support&&e(document).on("touchmove.jcrop",s).on("touchend.jcrop",l),r&&e(document).on("mousemove.jcrop",o).on("mouseup.jcrop",a),!1}}}(),Y=function(){var t=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),n=e("<div></div>").css({position:"absolute",overflow:"hidden"}).append(t);function r(e,t,n){i.allowMove&&($.moveOffset([t,n]),G.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}return i.keySupport&&(t.keydown((function(e){if(e.ctrlKey||e.metaKey)return!0;var t=e.shiftKey?10:1;switch(e.keyCode){case 37:r(e,-t,0);break;case 39:r(e,t,0);break;case 38:r(e,0,-t);break;case 40:r(e,0,t);break;case 9:return!0}return!1})).blur((function(e){t.hide()})),t.css({position:"absolute",left:"-20px"}),n.append(t).insertBefore(O)),{watchKeys:function(){i.keySupport&&(t.show(),t.focus())}}}();function Q(e){!function(e){$.setPressed([e[0],e[1]]),$.setCurrent([e[2],e[3]]),G.update()}([e[0]/N,e[1]/F,e[2]/N,e[3]/F]),i.onSelect.call(J,h($.getFixed())),G.enableHandles()}function X(t,n,r){var o=n||i.bgColor;i.bgFade&&e.fx.step.hasOwnProperty("backgroundColor")&&i.fadeTime&&!r?t.animate({backgroundColor:o},{queue:!1,duration:i.fadeTime}):t.css("backgroundColor",o)}function Z(e){i.allowResize&&(e||G.enableHandles()),G.setCursor(i.allowMove?"move":"default"),i.hasOwnProperty("trueSize")&&(N=i.trueSize[0]/C,F=i.trueSize[1]/T),i.hasOwnProperty("setSelect")&&(Q(i.setSelect),G.done(),delete i.setSelect),V.refresh(),i.bgColor!=q&&(X(i.shade?V.getShades():A,i.shade&&i.shadeColor||i.bgColor),q=i.bgColor),W!=i.bgOpacity&&(W=i.bgOpacity,i.shade?V.refresh():G.setBgOpacity(W)),I=i.maxSize[0]||0,M=i.maxSize[1]||0,L=i.minSize[0]||0,D=i.minSize[1]||0,i.hasOwnProperty("outerImage")&&(O.attr("src",i.outerImage),delete i.outerImage),G.refresh()}Z(!0);var J={setSelect:Q,setOptions:function(e){c(e),Z()},tellSelect:function(){return h($.getFixed())},tellScaled:function(){return $.getFixed()},setClass:function(e){A.removeClass().addClass(s("holder")).addClass(e)},disable:function(){i.disabled=!0,G.setCursor("default")},enable:function(){i.disabled=!1,Z()},cancel:function(){G.done(),K.activateHandlers(null,null)},release:G.release,destroy:function(){A.remove(),k.show(),k.css("visibility","visible"),e(t).removeData("Jcrop")},focus:Y.watchKeys,getBounds:function(){return[C*N,T*F]},getWidgetSize:function(){return[C,T]},getScaleFactor:function(){return[N,F]},getOptions:function(){return i},ui:{holder:A,selection:j}};return k.data("Jcrop",J),J},e.fn.Jcrop=function(t,n){var r;return this.each((function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,(function(){e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r)})):(e(this).css({display:"block",visibility:"hidden"}),r=e.Jcrop(this,t),e.isFunction(n)&&n.call(r))})),this},e.Jcrop.Loader=function(t,n,r){var i=e(t),o=i[0];i.on("load.jcloader",(function t(){o.complete?(i.off(".jcloader"),e.isFunction(n)&&n.call(o)):window.setTimeout(t,50)})).on("error.jcloader",(function(t){i.off(".jcloader"),e.isFunction(r)&&r.call(o)})),o.complete&&e.isFunction(n)&&(i.off(".jcloader"),n.call(o))},e.Jcrop.defaults={allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(n.default);var Vn=/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\//i,Gn=function(){function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.element=t,this.originalSize=r,this.__api=n.default.Jcrop(this.element[0],{trueSize:this.originalSize,baseClass:"uploadcare--jcrop",addClass:"uploadcare--crop-widget",createHandles:["nw","ne","se","sw"],bgColor:"transparent",bgOpacity:.8}),this.setCrop(i),this.setSelection()}return c(e,[{key:"setCrop",value:function(e){return this.crop=e,this.__api.setOptions({aspectRatio:e.preferedSize?e.preferedSize[0]/e.preferedSize[1]:0,minSize:e.notLess?ce(e.preferedSize,this.originalSize):[0,0]})}},{key:"setSelection",value:function(e){var t,n,r,i;return e?(t=e.center,r=[e.width,e.height]):(t=!0,r=this.originalSize),this.crop.preferedSize&&(r=ce(this.crop.preferedSize,r,!0)),t?(n=(this.originalSize[0]-r[0])/2,i=(this.originalSize[1]-r[1])/2):(n=e.left||0,i=e.top||0),this.__api.setSelect([n,i,r[0]+n,r[1]+i])}},{key:"__parseModifiers",value:function(e){var t=null!=e?e.match(Vn):void 0;if(t)return{width:parseInt(t[1],10),height:parseInt(t[2],10),center:"center"===t[4],left:parseInt(t[5],10)||void 0,top:parseInt(t[6],10)||void 0}}},{key:"setSelectionFromModifiers",value:function(e){return this.setSelection(this.__parseModifiers(e))}},{key:"getSelection",value:function(){var e,t,n;return e=this.__api.tellSelect(),{left:t=Math.round(Math.max(0,e.x)),top:n=Math.round(Math.max(0,e.y)),width:Math.round(Math.min(this.originalSize[0],e.x2))-t,height:Math.round(Math.min(this.originalSize[1],e.y2))-n}}},{key:"applySelectionToFile",value:function(e){var t=this;return e.then((function(e){return de(e,t.crop,t.originalSize,t.getSelection())}))}}]),e}(),Kn=function(){function e(t,n,r,i,o){var a=this;s(this,e),this.container=t,this.tabButton=n,this.dialogApi=r,this.settings=i,this.name=o,this.__initTabButtonCircle(),this.container.addClass("uploadcare--preview"),this.container.on("click",".uploadcare--preview__back:not(:disabled)",(function(){return a.dialogApi.fileColl.clear()})),this.container.on("click",".uploadcare--preview__done:not(:disabled)",this.dialogApi.resolve)}return c(e,[{key:"__initTabButtonCircle",value:function(){var e,t,r,i,o=this;return r=this.tabButton.find(".uploadcare--panel__icon"),t=n.default.Deferred(),i=function(){var e,n,r,i,a;for(i=0,e=0,r=(n=o.dialogApi.fileColl.lastProgresses()).length;e<r;e++)i+=((null!=(a=n[e])?a.progress:void 0)||0)/n.length;return t.notify(i)},this.dialogApi.fileColl.onAnyProgress(i),this.dialogApi.fileColl.onAdd.add(i),this.dialogApi.fileColl.onRemove.add(i),i(),e=new Rn(r).listen(t.promise()),this.dialogApi.progress((function(){var t;return(t=e).update.apply(t,arguments)}))}}]),e}(),Yn=function(e){f(r,e);var t=v(r);function r(e,i,o,a,l){var u;return s(this,r),(u=t.apply(this,arguments)).container=e,u.tabButton=i,u.dialogApi=o,u.settings=a,u.name=l,n.default.each(u.dialogApi.fileColl.get(),(function(e,t){return u.__setFile(t)})),u.dialogApi.fileColl.onAdd.add(u.__setFile.bind(m(u))),u.widget=null,u.__state=null,u}return c(r,[{key:"__setFile",value:function(e){var t,n,r,i=this;return this.file=e,t=function(t){return function(){if(e===i.file){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(null,r)}}},n=K(this.__tryToLoadImagePreview.bind(this)),r=K(this.__tryToLoadVideoPreview.bind(this)),this.__setState("unknown",{}),this.file.progress(t((function(t){var o,a,s;if(a=((t=t.incompleteFileInfo).name||"")+ge(t.size,"",", "),i.container.find(".uploadcare--preview__file-name").text(a),s=t.sourceInfo,o=L,s.file&&o&&s.file instanceof o)return s.file.type&&-1!==s.file.type.search(/^image\//i)?n(e,s.file):s.file.type&&-1!==s.file.type.search(/^video\//i)?r(e,s.file):n(e,s.file).fail((function(){return r(e,s.file)}))}))),this.file.done(t((function(e){var t,n;if("video"!==i.__state)return e.isImage?"image"!==i.__state?(n=e.originalUrl,n+="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",i.settings.previewUrlCallback&&(n=i.settings.previewUrlCallback(n,e)),t=e.originalImageInfo,i.__setState("image",{src:n,name:e.name,info:e}),i.initImage([t.width,t.height],e.cdnUrlModifiers)):void 0:i.__setState("regular",{file:e})}))),this.file.fail(t((function(e,t,n){return i.__setState("error",{errorType:e,error:n,file:t})})))}},{key:"__tryToLoadImagePreview",value:function(e,t){var r,i=this;return r=n.default.Deferred(),"pending"!==e.state()||!t.size||t.size>=this.settings.multipartMinSize?r.reject().promise():(bt(t,1550,924,"#ffffff",this.settings.imagePreviewMaxSize).done((function(t,n){return be(t,"image/jpeg",.95,(function(o){var a;if(r.resolve(),t.width=t.height=1,"pending"===e.state()&&"pending"===i.dialogApi.state()&&i.file===e)return a=N.createObjectURL(o),i.dialogApi.always((function(){return N.revokeObjectURL(a)})),"image"!==i.__state?(i.__setState("image",{src:a,name:""}),i.initImage(n)):void 0}))})).fail(r.reject),r.promise())}},{key:"__tryToLoadVideoPreview",value:function(e,t){var r,i,o=this;return r=n.default.Deferred(),N&&t.size?(i=N.createObjectURL(t),dt(i).fail((function(){return N.revokeObjectURL(i),r.reject()})).done((function(){if("pending"===e.state()&&"pending"===o.dialogApi.state()&&o.file===e){o.dialogApi.always((function(){return N.revokeObjectURL(i)})),r.resolve(),o.__setState("video");var t=o.container.find(".uploadcare--preview__video");return t.on("loadeddata",(function(){return t.get(0).currentTime=36e4,t.off("loadeddata")})),t.on("ended",(function(){return t.get(0).currentTime=0,t.off("ended")})),t.attr("src",i),t.get(0).load()}N.revokeObjectURL(i)})),r.promise()):r.reject().promise()}},{key:"__setState",value:function(e,t){this.__state=e,(t=t||{}).crop=this.settings.crop,this.container.empty().append(Sn("tab-preview-".concat(e),o(o({},t),{},{debugUploads:this.settings.debugUploads}))),this.container.removeClass((function(e,t){return t.split(" ").filter((function(e){return!!~e.indexOf("uploadcare--preview_status_")})).join(" ")})),"unknown"===e&&this.settings.crop&&this.container.find(".uploadcare--preview__done").hide(),"error"===e&&this.container.addClass("uploadcare--preview_status_error-"+t.errorType),this.container.find(".uploadcare--preview__done").focus()}},{key:"initImage",value:function(e,t){var n,r,i,o,a=this;if(r=this.container.find(".uploadcare--preview__image"),n=this.container.find(".uploadcare--preview__done"),i=ct(r[0]).done((function(){return a.container.addClass("uploadcare--preview_status_loaded")})).fail((function(){return a.file=null,a.__setState("error",{error:"loadImage"})})),o=function(){return a.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!1).attr("tabindex",0),n.attr("disabled",!1).attr("aria-disabled",!1),a.widget=new Gn(r,e,a.settings.crop[0]),t&&a.widget.setSelectionFromModifiers(t),n.on("click",(function(){var e;return e=a.widget.applySelectionToFile(a.file),a.dialogApi.fileColl.replace(a.file,e),!0}))},this.settings.crop)return this.container.find(".uploadcare--preview__title").text(an.t("dialog.tabs.preview.crop.title")),this.container.find(".uploadcare--preview__content").addClass("uploadcare--preview__content_crop"),n.attr("disabled",!0).attr("aria-disabled",!0),n.text(an.t("dialog.tabs.preview.crop.done")),this.populateCropSizes(),this.container.find(".uploadcare--crop-sizes__item").attr("aria-disabled",!0).attr("tabindex",-1),i.done((function(){return V(o)}))}},{key:"populateCropSizes",value:function(){var e,t,r,i=this;return e=this.container.find(".uploadcare--crop-sizes"),r=e.children(),t="uploadcare--crop-sizes__item_current",n.default.each(this.settings.crop,(function(o,a){var s,l,u,c,d,f;return(d=a.preferedSize)?(l=G(d[0],d[1]),s="".concat(d[0]/l,":").concat(d[1]/l)):s=an.t("dialog.tabs.preview.crop.free"),c=r.clone().appendTo(e).attr("data-caption",s).on("click",(function(r){"true"!==n.default(r.currentTarget).attr("aria-disabled")&&!n.default(r.currentTarget).hasClass(t)&&i.settings.crop.length>1&&i.widget&&(i.widget.setCrop(a),e.find(">*").removeClass(t),c.addClass(t))})),d?(f=ce(d,[30,30],!0),c.children().css({width:Math.max(20,f[0]),height:Math.max(12,f[1])})):(u=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-crop-free'/></svg>").attr("role","presentation").attr("class","uploadcare--icon"),c.children().append(u).addClass("uploadcare--crop-sizes__icon_free"))})),r.remove(),e.find(">*").eq(0).addClass(t)}},{key:"displayed",value:function(){this.dialogApi.takeFocus()&&this.container.find(".uploadcare--preview__done").focus()}}]),r}(Kn);E()&&function(e){function t(e){this.targets=e,this.last=null,this.update()}t.prototype={update:function(){var t={};this.targets.each((function(n){var r=e(this).offset();r.top in t||(t[r.top]=[]),t[r.top].push([r.left+this.offsetWidth/2,this])})),this.rows=t},find:function(e,t){var n,r,i,o=1/0,a=this.rows;for(r in a)(l=Math.abs(r-t))<o&&(o=l,n=a[r]);o=Math.abs(n[0][0]-e),i=n[0][1];for(var s=1;s<n.length;s++){var l;(l=Math.abs(n[s][0]-e))<o&&(o=l,i=n[s][1])}return i},findNotLast:function(e,t){var n=this.find(e,t);return this.last&&n&&this.last==n?null:this.last=n}};var n="uploadcareMovable",r={uploadcareMovable:function(t){function r(e){if(t.touch){var n,r;if((r=e.originalEvent.touches)&&r.length)n=r[0];else{if(!(r=e.originalEvent.changedTouches)||!r.length)return;n=r[0]}e.pageX=n.pageX,e.pageY=n.pageY,e.which=1}}t=e.extend({distance:4,anyButton:!1,axis:!1,zIndex:1e3,start:e.noop,move:e.noop,finish:e.noop,items:null,keepFake:!1,touch:!0},t);var i="mousedown.{} touchstart.{}".replace(/\{}/g,n);this.on(i,t.items,null,(function(i){if(r(i),t.anyButton||1==i.which){i.preventDefault();var o=!1,a=e(this),s=!1,l=a.position();l.top+=a.offsetParent().scrollTop(),l.left+=a.offsetParent().scrollLeft();var u="mousemove.{} touchmove.{}".replace(/\{}/g,n);e(document).on(u,(function(e){if(r(e),!o&&(Math.abs(e.pageX-i.pageX)>t.distance||Math.abs(e.pageY-i.pageY)>t.distance)&&(o=!0,s=a.clone().css({position:"absolute",zIndex:t.zIndex,width:a.width()}).appendTo(a.offsetParent()),t.start({event:e,dragged:a,fake:s})),o){e.preventDefault();var n="y"==t.axis?0:e.pageX-i.pageX,u="x"==t.axis?0:e.pageY-i.pageY;s.css({left:n+l.left,top:u+l.top}),t.move({event:e,dragged:a,fake:s,dx:n,dy:u})}})),u="mouseup.{} touchend.{} touchcancel.{} touchleave.{}",e(document).on(u.replace(/\{}/g,n),(function(l){if(r(l),e(document).off("mousemove.{} touchmove.{} mouseup.{} touchend.{} touchcancel.{} touchleave.{}".replace(/\{}/g,n)),o){l.preventDefault();var u=l.pageX-i.pageX,c=l.pageY-i.pageY;o=!1,t.finish({event:l,dragged:a,fake:s,dx:u,dy:c}),t.keepFake||s.remove()}}))}}))},uploadcareSortable:function(r){var i,o=e.extend({items:">*"},r),a=(r=e.extend({checkBounds:function(){return!0},start:e.noop,attach:e.noop,move:e.noop,finish:e.noop},r),!1),s=this;return o.start=function(e){r.start(e),i=new t(s.find(o.items).not(e.fake)),a=e.dragged.next()},o.move=function(t){if(t.nearest=null,r.checkBounds(t)){var n=t.fake.offset(),o=i.findNotLast(n.left+t.dragged.width()/2,n.top);t.nearest=e(o),o&&o!=t.dragged[0]&&(t.dragged.nextAll().filter(o).length>0?t.dragged.insertAfter(o):t.dragged.insertBefore(o),r.attach(t),i.last=null,i.update())}else null!==i.last&&(i.last=null,a.length?t.dragged.insertBefore(a):t.dragged.parent().append(t.dragged),r.attach(t),i.update());r.move(t)},o.finish=function(t){var n=t.fake.offset();t.nearest=null,r.checkBounds(t)&&(t.nearest=e(i.find(n.left+t.dragged.width()/2,n.top))),r.finish(t),i=null},this[n](o)}};e.fn.extend(r)}(n.default);var Qn=function(e){f(r,e);var t=v(r);function r(){var e;return s(this,r),(e=t.apply(this,arguments)).container.append(Sn("tab-preview-multiple")),e.__fileTpl=n.default(Sn("tab-preview-multiple-file")),e.fileListEl=e.container.find(".uploadcare--files"),e.doneBtnEl=e.container.find(".uploadcare--preview__done"),n.default.each(e.dialogApi.fileColl.get(),(function(t,n){return e.__fileAdded(n)})),e.__updateContainerView(),e.dialogApi.fileColl.onAdd.add(e.__fileAdded.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onRemove.add(e.__fileRemoved.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onReplace.add(e.__fileReplaced.bind(m(e)),(function(){return e.__updateContainerView()})),e.dialogApi.fileColl.onAnyProgress(e.__fileProgress.bind(m(e))),e.dialogApi.fileColl.onAnyDone(e.__fileDone.bind(m(e))),e.dialogApi.fileColl.onAnyFail(e.__fileFailed.bind(m(e))),e.fileListEl.addClass(e.settings.imagesOnly?"uploadcare--files_type_tiles":"uploadcare--files_type_table"),e.__setupSorting(),e}return c(r,[{key:"__setupSorting",value:function(){var e=this;return this.fileListEl.uploadcareSortable({touch:!1,axis:this.settings.imagesOnly?"xy":"y",start:function(e){return e.dragged.css("visibility","hidden")},finish:function(t){var n,r;return t.dragged.css("visibility","visible"),n=e.container.find(".uploadcare--file"),r=function(t){return n.index(e.__fileToEl(t))},e.dialogApi.fileColl.sort((function(e,t){return r(e)-r(t)}))}})}},{key:"__updateContainerView",value:function(){var e,t,n,r,i,o,a;if(o=(t=this.dialogApi.fileColl.length())>this.settings.multipleMax,i=t<this.settings.multipleMin,n=o||i,this.doneBtnEl.attr("disabled",n).attr("aria-disabled",n),r=an.t("dialog.tabs.preview.multiple.question").replace("%files%",an.t("file",t)),this.container.find(".uploadcare--preview__title").text(r),(e=this.container.find(".uploadcare--preview__message")).empty(),n)return a=o?an.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):t&&i?an.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin).replace("%files%",an.t("file",t)):void 0,e.addClass("uploadcare--error").text(a)}},{key:"__updateFileInfo",value:function(e,t){var n;return n=t.name||an.t("dialog.tabs.preview.unknownName"),e.find(".uploadcare--file__name").text(n),e.find(".uploadcare--file__description").attr("aria-label",an.t("dialog.tabs.preview.multiple.file.preview").replace("%file%",n)),e.find(".uploadcare--file__remove").attr("title",an.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)).attr("aria-label",an.t("dialog.tabs.preview.multiple.file.remove").replace("%file%",n)),e.find(".uploadcare--file__size").text(ge(t.size,""))}},{key:"__fileProgress",value:function(e,t){var n;return(n=this.__fileToEl(e)).find(".uploadcare--progressbar__value").css("width",Math.round(100*t.progress)+"%"),this.__updateFileInfo(n,t.incompleteFileInfo)}},{key:"__fileDone",value:function(e,t){var r,i,o,a,s=this;return(i=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_uploaded")).find(".uploadcare--progressbar__value").css("width","100%"),this.__updateFileInfo(i,t),t.isImage?(r="".concat(t.cdnUrl,"-/quality/lightest/-/preview/108x108/"),this.settings.previewUrlCallback&&(r=this.settings.previewUrlCallback(r,t)),a=i.find(".uploadcare--file__name").text(),o=n.default("<img>").attr("src",r).attr("alt",a).addClass("uploadcare--file__icon")):o=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-file'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon"),i.find(".uploadcare--file__preview").html(o),i.find(".uploadcare--file__description").on("click",(function(){return rr(e,s.settings).done((function(t){return s.dialogApi.fileColl.replace(e,t)}))}))}},{key:"__fileFailed",value:function(e,t,r,i){var o=this.settings.debugUploads&&(null==i?void 0:i.message)||an.t("serverErrors.".concat(null==i?void 0:i.code))||(null==i?void 0:i.message)||an.t("errors.".concat(t)),a=this.__fileToEl(e).removeClass("uploadcare--file_status_uploading").addClass("uploadcare--file_status_error");a.find(".uploadcare--file__error").text(o);var s=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-error'/></svg>").attr("role","presentation").attr("class","uploadcare--icon uploadcare--file__icon");return a.find(".uploadcare--file__preview").html(s)}},{key:"__fileAdded",value:function(e){return this.__createFileEl(e).appendTo(this.fileListEl)}},{key:"__fileRemoved",value:function(e){return this.__fileToEl(e).remove(),n.default(e).removeData()}},{key:"__fileReplaced",value:function(e,t){return this.__createFileEl(t).insertAfter(this.__fileToEl(e)),this.__fileRemoved(e)}},{key:"__fileToEl",value:function(e){return n.default(e).data("dpm-el")||n.default()}},{key:"__createFileEl",value:function(e){var t,r=this;return t=this.__fileTpl.clone().on("click",".uploadcare--file__remove",(function(){return r.dialogApi.fileColl.remove(e)})),n.default(e).data("dpm-el",t),t}},{key:"displayed",value:function(){this.container.find(".uploadcare--preview__done").focus()}}]),r}(Kn);E()&&n.default(window).on("keydown",(function(e){if(er()&&(27===e.which&&(e.stopImmediatePropagation(),null!=Xn&&Xn.reject()),9===e.which))return function(e){return!e.shiftKey&&Jn.last().is(e.target)?(e.preventDefault(),Jn.first().focus()):e.shiftKey&&Jn.first().is(e.target)?(e.preventDefault(),Jn.last().focus()):void 0}(e)}));var Xn=null,Zn=null,Jn=null,er=function(){return null!==Xn},tr=function(){Xn&&(Xn.reject(),Xn=null)},nr=function(e,t,r){var i,o,a;return tr(),Zn=document.activeElement,o=n.default(Sn("dialog")).appendTo("body"),a=ir(o.find(".uploadcare--dialog__placeholder"),e,t,r,{inModal:!0}),o.find(".uploadcare--panel").addClass("uploadcare--dialog__panel"),o.addClass("uploadcare--dialog_status_active"),a.dialogElement=o,(Jn=o.find("select, input, textarea, button, a[href]")).first().focus(),i=function(e,t){var n,r;return r=e.scrollTop(),n=e.scrollLeft(),t&&e.scrollTop(0).scrollLeft(0),function(){return e.scrollTop(r).scrollLeft(n)}}(n.default(window),"absolute"===o.css("position")),n.default("html, body").addClass("uploadcare--page"),o.find(".uploadcare--dialog__close").on("click",a.reject),o.on("dblclick",(function(e){var t;if(n.default.contains(document.documentElement,e.target)&&(t=".uploadcare--dialog__panel, .uploadcare--dialog__powered-by",!n.default(e.target).is(t)&&!n.default(e.target).parents(t).length))return a.reject()})),Xn=a.always((function(){return n.default("html, body").removeClass("uploadcare--page"),Xn=null,o.remove(),i(),Zn.focus()}))},rr=function(e,t){var r,i;return i=Xn,Xn=null,t=n.default.extend({},t,{multiple:!1,tabs:""}),r=nr(e,"preview",t),null!=i&&i.dialogElement.addClass("uploadcare--dialog_status_inactive"),r.always((function(){if(Xn=i,null!=i)return n.default("html, body").addClass("uploadcare--page"),i.dialogElement.removeClass("uploadcare--dialog_status_inactive")})),r.onTabVisibility((function(e,t){if("preview"===e&&!t)return r.reject()})),r},ir=function(e,t,r,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{inModal:!1};return n.default.isPlainObject(r)&&(i=r,r=null),t?Qt(t)?t=t.files():n.default.isArray(t)||(t=[t]):t=[],i=at(i),a=new sr(i,e,t,r,s).publicPromise(),Q(a,o=function(e){return i.multiple?fn(e,i):e[0]},o).promise(a)},or={},ar=function(e,t){return or[e]=t,or[e]};ar("file",qn),ar("url",Wn),ar("camera",$n),ar("facebook",yn),ar("dropbox",yn),ar("gdrive",yn),ar("gphotos",yn),ar("instagram",yn),ar("flickr",yn),ar("vk",yn),ar("evernote",yn),ar("box",yn),ar("onedrive",yn),ar("huddle",yn),ar("nft",yn),ar("empty-pubkey",(function(e,t,n,r){return e.append('<div class="uploadcare--tab__content">\n<div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title">Hello!</div>\n<div class="uploadcare--text">Your <a class="uploadcare--link" href="https://uploadcare.com/dashboard/">public key</a> is not set.</div>\n<div class="uploadcare--text">Add this to the &lt;head&gt; tag to start uploading files:</div>\n<div class="uploadcare--text uploadcare--text_pre">&lt;script&gt;\nUPLOADCARE_PUBLIC_KEY = \'your_public_key\';\n&lt;/script&gt;</div>\n</div>')})),ar("preview",(function(e,t,n,r,i){if(r.previewStep||0!==n.fileColl.length())return new(r.multiple?Qn:Yn)(e,t,n,r,i)}));var sr=function(){function e(t,r,i,o,a){var l,u=this;s(this,e),this.inModal=a.inModal||!1,this.addFiles=this.addFiles.bind(this),this.__resolve=this.__resolve.bind(this),this.__reject=this.__reject.bind(this),this.__updateFooter=this.__updateFooter.bind(this),this.__closePanel=this.__closePanel.bind(this),this.switchTab=this.switchTab.bind(this),this.showTab=this.showTab.bind(this),this.hideTab=this.hideTab.bind(this),this.isTabVisible=this.isTabVisible.bind(this),this.openMenu=this.openMenu.bind(this),this.settings=t,this.dfd=n.default.Deferred(),this.dfd.always(this.__closePanel),l=".uploadcare--panel",this.content=n.default(Sn("dialog__panel")),this.panel=this.content.find(l).add(this.content.filter(l)),this.placeholder=n.default(r),this.placeholder.replaceWith(this.content),this.panel.append(n.default(Sn("icons"))),this.settings.multiple&&this.panel.addClass("uploadcare--panel_multiple"),this.panel.find(".uploadcare--menu__toggle").on("click",(function(){return u.panel.find(".uploadcare--menu").toggleClass("uploadcare--menu_opened")})),this.files=new nn(i),this.files.onRemove.add((function(){if(0===u.files.length())return u.hideTab("preview")})),this.__autoCrop(this.files),this.tabs={},this.__prepareFooter(),this.onTabVisibility=n.default.Callbacks().add((function(e,t){return u.panel.find(".uploadcare--menu__item_tab_".concat(e)).toggleClass("uploadcare--menu__item_hidden",!t)})),this.settings.publicKey?this.__prepareTabs(o):this.__welcome()}return c(e,[{key:"takeFocus",value:function(){return this.inModal}},{key:"publicPromise",value:function(){return this.promise||(this.promise=this.dfd.promise({reject:this.__reject,resolve:this.__resolve,fileColl:this.files,addFiles:this.addFiles,switchTab:this.switchTab,hideTab:this.hideTab,showTab:this.showTab,isTabVisible:this.isTabVisible,openMenu:this.openMenu,takeFocus:this.takeFocus.bind(this),onTabVisibility:J(this.onTabVisibility)})),this.promise}},{key:"addFiles",value:function(e,t){var n,r,i;for(t&&(e=Gt(e,t,this.settings)),this.settings.multiple||(this.files.clear(),e=[e[0]]),r=0,i=e.length;r<i;r++)n=e[r],this.settings.multipleMaxStrict&&this.files.length()>=this.settings.multipleMax?n.cancel():this.files.add(n);return this.settings.previewStep?(this.showTab("preview"),this.settings.multiple?void 0:this.switchTab("preview")):this.__resolve()}},{key:"__autoCrop",value:function(e){var t,n,r,i=this;if(this.settings.crop&&this.settings.multiple){for(t=0,n=(r=this.settings.crop).length;t<n;t++)if(!r[t].preferedSize)return;return e.autoThen((function(e){var t,n;return!e.isImage||e.cdnUrlModifiers||e.crop?e:(t=e.originalImageInfo,n=ce(i.settings.crop[0].preferedSize,[t.width,t.height],!0),de(e,i.settings.crop[0],[t.width,t.height],{width:n[0],height:n[1],left:Math.round((t.width-n[0])/2),top:Math.round((t.height-n[1])/2)}))}))}}},{key:"__resolve",value:function(){return this.dfd.resolve(this.files.get())}},{key:"__reject",value:function(){return this.dfd.reject(this.files.get())}},{key:"__prepareTabs",value:function(e){var t,n,r,i;for(this.addTab("preview"),t=0,n=(r=this.settings.tabs).length;t<n;t++)i=r[t],this.addTab(i);if(this.files.length()?(this.showTab("preview"),this.switchTab("preview")):(this.hideTab("preview"),this.switchTab(e||this.__firstVisibleTab())),0===this.settings.tabs.length)return this.panel.addClass("uploadcare--panel_menu-hidden"),this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--panel__menu_hidden")}},{key:"__prepareFooter",value:function(){var e=this;return this.footer=this.panel.find(".uploadcare--panel__footer"),this.footer.on("click",".uploadcare--panel__show-files:not(:disabled)",(function(){return e.switchTab("preview")})),this.footer.on("click",".uploadcare--panel__done:not(:disabled)",this.__resolve),this.__updateFooter(),this.files.onAdd.add(this.__updateFooter),this.files.onRemove.add(this.__updateFooter)}},{key:"__updateFooter",value:function(){var e,t,n,r=this.files.length();return n=r>this.settings.multipleMax,t=r<this.settings.multipleMin,this.footer.find(".uploadcare--panel__done").attr("disabled",n||t).attr("aria-disabled",n||t),this.footer.find(".uploadcare--panel__show-files").attr("disabled",0===r).attr("aria-disabled",0===r),e=n?an.t("dialog.tabs.preview.multiple.tooManyFiles").replace("%max%",this.settings.multipleMax):r&&t?an.t("dialog.tabs.preview.multiple.tooFewFiles").replace("%min%",this.settings.multipleMin):an.t("dialog.tabs.preview.multiple.title"),this.footer.find(".uploadcare--panel__message").toggleClass("uploadcare--panel__message_hidden",0===r).toggleClass("uploadcare--error",n||t).text(e.replace("%files%",an.t("file",r))),this.footer.find(".uploadcare--panel__file-counter").toggleClass("uploadcare--error",n||t).text(r?"(".concat(r,")"):"")}},{key:"__closePanel",value:function(){return this.panel.replaceWith(this.placeholder),this.content.remove()}},{key:"addTab",value:function(e){var t,r,i,o,a=this;if(!(e in this.tabs)){if(!(t=or[e]))throw new Error("No such tab: ".concat(e));return o=n.default("<div>").addClass("uploadcare--tab").addClass("uploadcare--tab_name_".concat(e)).insertBefore(this.footer),i="preview"===e?n.default('<div class="uploadcare--menu__icon uploadcare--panel__icon" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">'):n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),r=n.default("<div>",{role:"button",tabindex:"0"}).addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("title",an.t("dialog.tabs.names.".concat(e))).append(i).appendTo(this.panel.find(".uploadcare--menu__items")).on("click",(function(){return e===a.currentTab?a.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened"):a.switchTab(e)})),this.tabs[e]=new t(o,r,this.publicPromise(),this.settings,e),this.tabs[e]}}},{key:"switchTab",value:function(e){var t;if(e&&this.currentTab!==e)return this.currentTab=e,this.panel.find(".uploadcare--panel__menu").removeClass("uploadcare--menu_opened").attr("data-current",e),this.panel.find(".uploadcare--menu__item").removeClass("uploadcare--menu__item_current").filter(".uploadcare--menu__item_tab_".concat(e)).addClass("uploadcare--menu__item_current"),t="uploadcare--tab",this.panel.find(".".concat(t)).removeClass("".concat(t,"_current")).filter(".".concat(t,"_name_").concat(e)).addClass("".concat(t,"_current")),this.tabs[e].displayed&&this.tabs[e].displayed(),this.dfd.notify(e)}},{key:"showTab",value:function(e){return this.onTabVisibility.fire(e,!0)}},{key:"hideTab",value:function(e){if(this.onTabVisibility.fire(e,!1),this.currentTab===e)return this.switchTab(this.__firstVisibleTab())}},{key:"isTabVisible",value:function(e){return!this.panel.find(".uploadcare--menu__item_tab_".concat(e)).is(".uploadcare--menu__item_hidden")}},{key:"openMenu",value:function(){return this.panel.find(".uploadcare--panel__menu").addClass("uploadcare--menu_opened")}},{key:"__firstVisibleTab",value:function(){var e,t,n,r;for(e=0,t=(n=this.settings.tabs).length;e<t;e++)if(r=n[e],this.isTabVisible(r))return r}},{key:"__welcome",value:function(){var e,t,n,r;for(this.addTab("empty-pubkey"),this.switchTab("empty-pubkey"),e=0,t=(n=this.settings.tabs).length;e<t;e++)r=n[e],this.__addFakeTab(r);return null}},{key:"__addFakeTab",value:function(e){var t;return t=n.default("<svg width='32' height='32'><use xlink:href='#uploadcare--icon-".concat(e,"'/></svg>")).attr("role","presentation").attr("class","uploadcare--icon uploadcare--menu__icon"),"empty-pubkey"===e&&t.addClass("uploadcare--panel__icon"),n.default("<div>").addClass("uploadcare--menu__item").addClass("uploadcare--menu__item_tab_".concat(e)).attr("aria-disabled",!0).attr("title",an.t("dialog.tabs.names.".concat(e))).append(t).appendTo(this.panel.find(".uploadcare--menu__items"))}}]),e}(),lr=function(){function e(t,r){var i=this;s(this,e),this.element=t,this.settings=r,this.validators=this.settings.validators=[],this.currentObject=null,this.__onDialogOpen=n.default.Callbacks(),this.__onUploadComplete=n.default.Callbacks(),this.__onChange=n.default.Callbacks().add((function(e){return null!=e?e.promise().done((function(e){return i.__onUploadComplete.fire(e)})):void 0})),this.__setupWidget(),this.element.on("change.uploadcare",this.reloadInfo.bind(this)),this.__hasValue=!1,V((function(){if(!i.__hasValue)return i.reloadInfo()}))}return c(e,[{key:"__setupWidget",value:function(){var e,t=this;return this.template=new Un(this.settings,this.element),(e=["buttons.choose"]).push(this.settings.imagesOnly?"images":"files"),e.push(this.settings.multiple?"other":"one"),this.template.addButton("open",an.t(e.join("."))).toggleClass("needsclick",this.settings.systemDialog).on("click",(function(){return t.openDialog()})),this.template.addButton("cancel",an.t("buttons.cancel")).on("click",(function(){return t.__setObject(null)})),this.template.addButton("remove",an.t("buttons.remove")).on("click",(function(){return t.__setObject(null)})),this.template.content.on("click",".uploadcare--widget__file-name",(function(){return t.openDialog()})),Nn(this.template.content,this.__handleDirectSelection.bind(this)),this.template.reset()}},{key:"__infoToValue",value:function(e){return e.cdnUrlModifiers||this.settings.pathValue?e.cdnUrl:e.uuid}},{key:"__reset",value:function(){var e;return e=this.currentObject,this.currentObject=null,null!=e&&"function"==typeof e.cancel&&e.cancel(),this.template.reset()}},{key:"__setObject",value:function(e){if(e!==this.currentObject)return this.__reset(),e?(this.currentObject=e,this.__watchCurrentObject()):this.element.val(""),this.__onChange.fire(this.currentObject)}},{key:"__watchCurrentObject",value:function(){var e,t=this;if(e=this.__currentFile())return this.template.listen(e),e.done((function(n){if(e===t.__currentFile())return t.__onUploadingDone(n)})).fail((function(n,r,i){if(e===t.__currentFile())return t.__onUploadingFailed(n,i)}))}},{key:"__onUploadingDone",value:function(e){return this.element.val(this.__infoToValue(e)),this.template.setFileInfo(e),this.template.loaded()}},{key:"__onUploadingFailed",value:function(e,t){return this.template.reset(),this.template.error(e,t)}},{key:"__setExternalValue",value:function(e){return this.__setObject(Yt(e,this.settings))}},{key:"value",value:function(e){return void 0!==e?(this.__hasValue=!0,this.__setExternalValue(e),this):this.currentObject}},{key:"reloadInfo",value:function(){return this.value(this.element.val())}},{key:"openDialog",value:function(e){var t=this;return this.settings.systemDialog?he(this.template.content,this.settings,(function(e){return t.__handleDirectSelection("object",e.files)})):this.__openDialog(e)}},{key:"__openDialog",value:function(e){var t;return t=nr(this.currentObject,e,this.settings),this.__onDialogOpen.fire(t),t.done(this.__setObject.bind(this))}},{key:"api",value:function(){return this.__api||(this.__api=X(this,["openDialog","reloadInfo","value","validators"]),this.__api.onChange=J(this.__onChange),this.__api.onUploadComplete=J(this.__onUploadComplete),this.__api.onDialogOpen=J(this.__onDialogOpen),this.__api.inputElement=this.element.get(0)),this.__api}}]),e}(),ur=function(e){f(n,e);var t=v(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"__currentFile",value:function(){return this.currentObject}},{key:"__handleDirectSelection",value:function(e,t){var n=Vt(e,t[0],this.settings);return this.settings.systemDialog||!this.settings.previewStep?this.__setObject(n):this.__openDialog("preview").addFiles([n])}}]),n}(lr);ur._name="SingleWidget";var cr=function(e){f(n,e);var t=v(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"__currentFile",value:function(){var e;return null!=(e=this.currentObject)?e.promise():void 0}},{key:"__setObject",value:function(e){return Zt(this.currentObject,e)?e?void 0:(this.__reset(),this.element.val("")):b(p(n.prototype),"__setObject",this).call(this,e)}},{key:"__setExternalValue",value:function(e){var t,n=this;return this.__lastGroupPr=t=Xt(e,this.settings),e&&(this.template.setStatus("started"),this.template.statusText.text(an.t("loadingInfo"))),t.done((function(e){if(n.__lastGroupPr===t)return n.__setObject(e)})).fail((function(){if(n.__lastGroupPr===t)return n.__onUploadingFailed("createGroup")}))}},{key:"__handleDirectSelection",value:function(e,t){var n=Gt(e,t,this.settings);return this.settings.systemDialog?this.__setObject(fn(n,this.settings)):this.__openDialog("preview").addFiles(n)}}]),n}(lr);cr._name="MultipleWidget";var dr="uploadcareWidget",fr='[role~="uploadcare-uploader"]',pr=function(){var e,t,r,i,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";for(o=[],t=0,r=(i=n.default(s)).length;t<r;t++)e=i[t],a=hr(e.querySelectorAll(fr)),o=o.concat(a);return o},hr=function(e){var t,r,i,o,a;for(i=[],t=0,r=e.length;t<r;t++)o=e[t],(a=n.default(o).data(dr))&&a.inputElement===o||i.push(yr(o));return i},mr=function(e,t){return yr(e,t,ur)},gr=function(e,t){return yr(e,t,cr)},vr=function(e,t){return yr(e,t)},yr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n.default(e);if(0===i.length)throw new Error("No DOM elements found matching selector");i.length>1&&U("There are multiple DOM elements matching selector"),e=i.eq(0);var a=at(o(o({},t),e.data())),s=a.multiple?cr:ur;if(r&&s!==r)throw new Error("This element should be processed using ".concat(s._name));var l=e.data(dr);if(!l||l.inputElement!==e[0]){br(e);var u=new s(e,a);l=u.api(),e.data(dr,l),u.template.content.data(dr,l)}return l},br=function(e){return e.off(".uploadcare").each((function(){var e,t;if((e=(t=n.default(this).next(".uploadcare--widget")).data(dr))&&e.inputElement===this)return t.remove()}))},_r=K((function(e,t){if(e=ot(e,t),!t)return e.live&&setInterval(pr,100),pr()}));E()&&n.default((function(){window.UPLOADCARE_MANUAL_START||_r()}));var wr=o(o({},bn),{},{templates:{JST:En,tpl:Sn},crop:{CropWidget:Gn},dragdrop:{support:Ln,uploadDrop:Dn,watchDragging:Fn,receiveDrop:Nn},ui:{progress:{Circle:Rn,BaseRenderer:jn,TextRenderer:In,CanvasRenderer:Mn}},widget:{tabs:{FileTab:qn,UrlTab:Wn,CameraTab:$n,RemoteTab:yn,BasePreviewTab:Kn,PreviewTab:Yn,PreviewTabMultiple:Qn},Template:Un,BaseWidget:lr,Widget:ur,MultipleWidget:cr},isDialogOpened:er,closeDialog:tr,openDialog:nr,openPreviewDialog:rr,openPanel:ir,registerTab:ar,initialize:pr,SingleWidget:mr,MultipleWidget:gr,Widget:vr,start:_r}),xr=_n(wr),kr=o(o({},wn),{},{plugin:xr,start:_r,initialize:pr,openDialog:nr,closeDialog:tr,openPanel:ir,registerTab:ar,Circle:Rn,SingleWidget:mr,MultipleWidget:gr,Widget:vr,tabsCss:vn,dragdrop:{receiveDrop:Nn,support:Ln,uploadDrop:Dn}}),Er=_n(wr);return o(o({},kr),{},{plugin:Er,locales:Object.keys(an.translations)})}(n(1922))},function(e,t,n){"use strict";n.r(t);var r,i=n(101),o=n(363),a=n.n(o),s=n(28),l=n(278),u=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c="renderOrder",d=function(e){function t(t){var n=this,r=t||{},i=Object(s.a)({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,(n=e.call(this,i)||this).declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return u(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(c)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new a.a(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set(c,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:l.a,this.styleFunction_=null===e?void 0:Object(l.c)(this.style_),this.changed()},t}(i.a),f={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},p=[f.FILL],h=[f.STROKE],m=[f.BEGIN_PATH],g=[f.CLOSE_PATH],v=f,y=n(8),b=n(67),_=function(){function e(){}return e.prototype.drawCustom=function(e,t,n,r){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}(),w=n(102),x=n(3),k=n(18),E=n(32),S=n(59),O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return O(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatPointCoordinates=function(e,t){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)r[0]=e[a],r[1]=e[a+1],Object(x.f)(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},t.prototype.appendFlatLineCoordinates=function(e,t,n,r,i,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(t+=r);var u,c,d,f=e[t],p=e[t+1],h=this.tmpCoordinate_,m=!0;for(u=t+r;u<n;u+=r)h[0]=e[u],h[1]=e[u+1],(d=Object(x.i)(l,h))!==c?(m&&(a[s++]=f,a[s++]=p,m=!1),a[s++]=h[0],a[s++]=h[1]):d===b.a.INTERSECTING?(a[s++]=h[0],a[s++]=h[1],m=!1):m=!0,f=h[0],p=h[1],c=d;return(i&&m||u===t+r)&&(a[s++]=f,a[s++]=p),s},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n,r){this.beginGeometry(e,t);var i,o,a,s,l,u=e.getType(),c=e.getStride(),d=this.coordinates.length;switch(u){case y.a.MULTI_POLYGON:i=e.getOrientedFlatCoordinates(),s=[];var f=e.getEndss();l=0;for(var p=0,h=f.length;p<h;++p){var m=[];l=this.drawCustomCoordinates_(i,l,f[p],c,m),s.push(m)}this.instructions.push([v.CUSTOM,d,s,e,n,S.c]),this.hitDetectionInstructions.push([v.CUSTOM,d,s,e,r||n,S.c]);break;case y.a.POLYGON:case y.a.MULTI_LINE_STRING:a=[],i=u==y.a.POLYGON?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),l=this.drawCustomCoordinates_(i,0,e.getEnds(),c,a),this.instructions.push([v.CUSTOM,d,a,e,n,S.b]),this.hitDetectionInstructions.push([v.CUSTOM,d,a,e,r||n,S.b]);break;case y.a.LINE_STRING:case y.a.CIRCLE:i=e.getFlatCoordinates(),o=this.appendFlatLineCoordinates(i,0,i.length,c,!1,!1),this.instructions.push([v.CUSTOM,d,o,e,n,S.a]),this.hitDetectionInstructions.push([v.CUSTOM,d,o,e,r||n,S.a]);break;case y.a.MULTI_POINT:i=e.getFlatCoordinates(),(o=this.appendFlatPointCoordinates(i,c))>d&&(this.instructions.push([v.CUSTOM,d,o,e,n,S.a]),this.hitDetectionInstructions.push([v.CUSTOM,d,o,e,r||n,S.a]));break;case y.a.POINT:i=e.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),o=this.coordinates.length,this.instructions.push([v.CUSTOM,d,o,e,n]),this.hitDetectionInstructions.push([v.CUSTOM,d,o,e,r||n])}this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[v.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[v.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)(r=(n=t[e])[0])==v.END_GEOMETRY?o=e:r==v.BEGIN_GEOMETRY&&(n[2]=e,Object(E.g)(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=Object(w.a)(r||k.b)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=Object(w.a)(i||k.k);var o=t.getLineCap();n.lineCap=void 0!==o?o:k.d;var a=t.getLineDash();n.lineDash=a?a.slice():k.e;var s=t.getLineDashOffset();n.lineDashOffset=s||k.f;var l=t.getLineJoin();n.lineJoin=void 0!==l?l:k.g;var u=t.getWidth();n.lineWidth=void 0!==u?u:k.h;var c=t.getMiterLimit();n.miterLimit=void 0!==c?c:k.i,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[v.SET_FILL_STYLE,t];return"string"!=typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[v.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"==typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!Object(E.b)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[v.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(x.d)(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;Object(x.c)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(_),T=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return T(t,e),t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([v.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([v.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getHitDetectionImage(),o=e.getImage(this.pixelRatio),a=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=i,this.image_=o,this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=a[0]*this.imagePixelRatio_,this.originY_=a[1]*this.imagePixelRatio_,this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterImageWithText_=t},t}(C),P=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return P(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[v.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,k.e,k.f],m);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(h),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],m);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(a,l,o[u],s);this.hitDetectionInstructions.push(h),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(h),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(h),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(m)},t}(C),j=n(113),I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return I(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(m),this.hitDetectionInstructions.push(m);for(var l=0;l<s;++l){var u=n[l],c=this.coordinates.length,d=this.appendFlatLineCoordinates(e,t,u,r,!0,!a),f=[v.MOVE_TO_LINE_TO,c,d];this.instructions.push(f),this.hitDetectionInstructions.push(f),a&&(this.instructions.push(g),this.hitDetectionInstructions.push(g)),t=u}return o&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),a&&(this.instructions.push(h),this.hitDetectionInstructions.push(h)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,k.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var l=[v.CIRCLE,s];this.instructions.push(m,l),this.hitDetectionInstructions.push(m,l),void 0!==n.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==n.strokeStyle&&(this.instructions.push(h),this.hitDetectionInstructions.push(h)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,k.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,k.b]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(a,l,o[u],s);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=Object(j.e)(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(C),L="line",D=n(10);function N(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h=n,m=n,g=0,v=0,y=n;for(o=n;o<r;o+=i){var b=t[o],_=t[o+1];void 0!==l&&(f=b-l,p=_-u,s=Math.sqrt(f*f+p*p),void 0!==c&&(v+=a,Math.acos((c*f+d*p)/(a*s))>e&&(v>g&&(g=v,h=y,m=o),v=0,y=o-i)),a=s,c=f,d=p),l=b,u=_}return(v+=s)>g?[y,o]:[h,m]}var F=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},z={Circle:M,Default:C,Image:A,LineString:R,Polygon:M,Text:function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return F(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o=this.coordinates,a=o.length,s=e.getType(),l=null,u=e.getStride();if(i.placement!==L||s!=y.a.LINE_STRING&&s!=y.a.MULTI_LINE_STRING&&s!=y.a.POLYGON&&s!=y.a.MULTI_POLYGON){var c=i.overflow?null:[];switch(s){case y.a.POINT:case y.a.MULTI_POINT:l=e.getFlatCoordinates();break;case y.a.LINE_STRING:l=e.getFlatMidpoint();break;case y.a.CIRCLE:l=e.getCenter();break;case y.a.MULTI_LINE_STRING:l=e.getFlatMidpoints(),u=2;break;case y.a.POLYGON:l=e.getFlatInteriorPoint(),i.overflow||c.push(l[2]/this.resolution),u=3;break;case y.a.MULTI_POLYGON:var d=e.getFlatInteriorPoints();l=[];for(O=0,C=d.length;O<C;O+=3)i.overflow||c.push(d[O+2]/this.resolution),l.push(d[O],d[O+1]);if(0===l.length)return;u=2}if((M=this.appendFlatPointCoordinates(l,u))===a)return;if(c&&(M-a)/2!=l.length/u){var f=a/2;c=c.filter((function(e,t){var n=o[2*(f+t)]===l[t*u]&&o[2*(f+t)+1]===l[t*u+1];return n||--f,n}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var p=i.padding;if(p!=k.j&&(i.scale[0]<0||i.scale[1]<0)){var h=i.padding[0],m=i.padding[1],g=i.padding[2],b=i.padding[3];i.scale[0]<0&&(m=-m,b=-b),i.scale[1]<0&&(h=-h,g=-g),p=[h,m,g,b]}var _=this.pixelRatio;this.instructions.push([v.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,p==k.j?k.j:p.map((function(e){return e*_})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]);var w=1/_;this.hitDetectionInstructions.push([v.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[w,w],NaN,this.declutterImageWithText_,p,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,c]),this.endGeometry(t)}else{if(!Object(x.E)(this.getBufferedMaxExtent(),e.getExtent()))return;var E=void 0;if(l=e.getFlatCoordinates(),s==y.a.LINE_STRING)E=[l.length];else if(s==y.a.MULTI_LINE_STRING)E=e.getEnds();else if(s==y.a.POLYGON)E=e.getEnds().slice(0,1);else if(s==y.a.MULTI_POLYGON){var S=e.getEndss();E=[];for(var O=0,C=S.length;O<C;++O)E.push(S[O][0])}this.beginGeometry(e,t);for(var T=i.textAlign,A=0,P=void 0,R=0,j=E.length;R<j;++R){if(null==T){var I=N(i.maxAngle,l,A,E[R],u);A=I[0],P=I[1]}else P=E[R];for(var O=A;O<P;O+=u)o.push(l[O],l[O+1]);var M=o.length;A=E[R],this.drawChars_(a,M),a=M}this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||k.l,textBaseline:t.textBaseline||k.m,scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t){var n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=B[r.textBaseline],u=this.textOffsetY_*s,c=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([v.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,s,u,i,d*s,c,o,1]),this.hitDetectionInstructions.push([v.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,1,u,i,d,c,o,1/s])},t.prototype.setTextStyle=function(e,t){var n,r,i;if(e){var o=e.getFill();o?((r=this.textFillState_)||(r={},this.textFillState_=r),r.fillStyle=Object(w.a)(o.getColor()||k.b)):(r=null,this.textFillState_=r);var a=e.getStroke();if(a){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),c=a.getMiterLimit();i.lineCap=a.getLineCap()||k.d,i.lineDash=s?s.slice():k.e,i.lineDashOffset=void 0===l?k.f:l,i.lineJoin=a.getLineJoin()||k.g,i.lineWidth=void 0===u?k.h:u,i.miterLimit=void 0===c?k.i:c,i.strokeStyle=Object(w.a)(a.getColor()||k.k)}else i=null,this.textStrokeState_=i;n=this.textState_;var d=e.getFont()||k.c;Object(k.q)(d);var f=e.getScaleArray();n.overflow=e.getOverflow(),n.font=d,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.textBaseline=e.getTextBaseline()||k.m,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||k.j,n.scale=void 0===f?[1,1]:f;var p=e.getOffsetX(),h=e.getOffsetY(),m=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===p?0:p,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(D.c)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(D.c)(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=t},t}(C)},U=function(){function e(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];void 0===i&&(i=new(0,z[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i);return i},e}(),q=n(370),W="Circle",H="Default",$="Image",V="LineString",G="Polygon",K="Text",Y=n(58),Q=n(29),X=n(13),Z=n(65);function J(e,t,n,r,i,o,a,s,l,u,c,d){var f=e[t],p=e[t+1],h=0,m=0,g=0,v=0;function y(){h=f,m=p,f=e[t+=r],p=e[t+1],v+=g,g=Math.sqrt((f-h)*(f-h)+(p-m)*(p-m))}do{y()}while(t<n-r&&v+g<o);for(var b=0===g?0:(o-v)/g,_=Object(X.e)(h,f,b),w=Object(X.e)(m,p,b),x=t-r,k=v,E=o+s*l(u,i,c);t<n-r&&v+g<E;)y();b=0===g?0:(E-v)/g;var S,O=Object(X.e)(h,f,b),C=Object(X.e)(m,p,b);if(d){var T=[_,w,O,C];Object(Z.a)(T,0,4,2,d,T,T),S=T[0]>T[2]}else S=_>O;var A,P=Math.PI,R=[],j=x+r===t;if(g=0,v=k,f=e[t=x],p=e[t+1],j){y(),A=Math.atan2(p-m,f-h),S&&(A+=A>0?-P:P);var I=(O+_)/2,M=(C+w)/2;return R[0]=[I,M,(E-o)/2,A,i],R}for(var L=0,D=i.length;L<D;){y();var N=Math.atan2(p-m,f-h);if(S&&(N+=N>0?-P:P),void 0!==A){var F=N-A;if(F+=F>P?-2*P:F<-P?2*P:0,Math.abs(F)>a)return null}A=N;for(var B=L,z=0;L<D;++L){var U=s*l(u,i[S?D-L-1:L],c);if(t+r<n&&v+g<o+z+U/2)break;z+=U}if(L!==B){var q=S?i.substring(D-B,D-L):i.substring(B,L);b=0===g?0:(o+z/2-v)/g;I=Object(X.e)(h,f,b),M=Object(X.e)(m,p,b);R.push([I,M,z/2,N,q]),o+=z}}return R}var ee=n(360),te=Object(x.j)(),ne=[],re=[],ie=[],oe=[];function ae(e){return e[3].declutterBox}var se=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function le(e,t){return"start"!==t&&"end"!==t||se.test(e)||(t="start"===t?"left":"right"),B[t]}function ue(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}var ce=function(){function e(e,t,n,r){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(Q.c)(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var i=e+t+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,u=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(e),d=le(c?e[0]:e,s.textAlign||k.l),f=r&&o.lineWidth?o.lineWidth:0,p=c?e:e.split("\n").reduce(ue,[]),h=Object(k.o)(s,p),m=h.width,g=h.height,v=h.widths,y=h.heights,b=h.lineWidths,_=m+f,w=[],x=(_+2)*u[0],E=(g+f)*u[1],S={width:x<0?Math.floor(x):Math.ceil(x),height:E<0?Math.floor(E):Math.ceil(E),contextInstructions:w};(1==u[0]&&1==u[1]||w.push("scale",u),r)&&(w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",f),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit),(Y.g?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset)));n&&w.push("fillStyle",a.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");for(var O,C=.5-d,T=d*_+C*f,A=[],P=[],R=0,j=0,I=0,M=0,L=0,D=p.length;L<D;L+=2){var N=p[L];if("\n"!==N){var F=p[L+1]||s.font;F!==O&&(r&&A.push("font",F),n&&P.push("font",F),O=F),R=Math.max(R,y[I]);var B=[N,T+C*v[I]+d*(v[I]-b[M]),.5*(f+R)+j];T+=v[I],r&&A.push("strokeText",B),n&&P.push("fillText",B),++I}else j+=R,R=0,T=d*_+C*f,++M}return Array.prototype.push.apply(w,A),Array.prototype.push.apply(w,P),this.labels_[i]=S,S},e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m){var g,v=n-(a*=d[0]),y=r-(s*=d[1]),b=i+l>e?e-l:i,_=o+u>t?t-u:o,w=p[3]+b*d[0]+p[1],k=p[0]+_*d[1]+p[2],E=v-p[3],S=y-p[0];return(h||0!==c)&&(ne[0]=E,oe[0]=E,ne[1]=S,re[1]=S,re[0]=E+w,ie[0]=re[0],ie[1]=S+k,oe[1]=ie[1]),0!==c?(g=Object(Q.b)(Object(Q.c)(),n,r,1,1,c,-n,-r),Object(Q.a)(g,ne),Object(Q.a)(g,re),Object(Q.a)(g,ie),Object(Q.a)(g,oe),Object(x.k)(Math.min(ne[0],re[0],ie[0],oe[0]),Math.min(ne[1],re[1],ie[1],oe[1]),Math.max(ne[0],re[0],ie[0],oe[0]),Math.max(ne[1],re[1],ie[1],oe[1]),te)):Object(x.k)(Math.min(E,E+w),Math.min(S,S+k),Math.max(E,E+w),Math.max(S,S+k),te),f&&(v=Math.round(v),y=Math.round(y)),{drawImageX:v,drawImageY:y,drawImageW:b,drawImageH:_,originX:l,originY:u,declutterBox:{minX:te[0],minY:te[1],maxX:te[2],maxY:te[3],value:m},canvasTransform:g,scale:d}},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a){var s=!(!o&&!a),l=r.declutterBox,u=e.canvas,c=a?a[2]*r.scale[0]/2:0;return l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0&&(s&&this.replayTextBackground_(e,ne,re,ie,oe,o,a),Object(k.n)(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=Object(Q.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var i=this.textStates[t],o=this.createLabel(e,t,r,n),a=this.strokeStates[n],s=this.pixelRatio,l=le(Array.isArray(e)?e[0]:e,i.textAlign||k.l),u=B[i.textBaseline||k.m],c=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*i.scale[0])+2*(.5-l)*c,anchorY:u*o.height/s+2*(.5-u)*c}},e.prototype.execute_=function(e,t,n,r,i,o,a,s){var l;this.pixelCoordinates_&&Object(E.b)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(Z.c)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(Q.f)(this.renderedTransform_,n));for(var u,c,d,f,p,h,m,g,y,b,_,w,S,O,C,T,A=0,P=r.length,R=0,j=0,I=0,M=null,L=null,D=this.coordinateCache_,N=this.viewRotation_,F=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,z={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:N},U=this.instructions!=r||this.overlaps?0:200;A<P;){var q=r[A];switch(q[0]){case v.BEGIN_GEOMETRY:S=q[1],T=q[3],S.getGeometry()?void 0===a||Object(x.E)(a,T.getExtent())?++A:A=q[2]+1:A=q[2];break;case v.BEGIN_PATH:j>U&&(this.fill_(e),j=0),I>U&&(e.stroke(),I=0),j||I||(e.beginPath(),f=NaN,p=NaN),++A;break;case v.CIRCLE:var W=l[R=q[1]],H=l[R+1],$=l[R+2]-W,V=l[R+3]-H,G=Math.sqrt($*$+V*V);e.moveTo(W+G,H),e.arc(W,H,G,0,2*Math.PI,!0),++A;break;case v.CLOSE_PATH:e.closePath(),++A;break;case v.CUSTOM:R=q[1],u=q[2];var K=q[3],Y=q[4],X=6==q.length?q[5]:void 0;z.geometry=K,z.feature=S,A in D||(D[A]=[]);var te=D[A];X?X(l,R,u,2,te):(te[0]=l[R],te[1]=l[R+1],te.length=2),Y(te,z),++A;break;case v.DRAW_IMAGE:R=q[1],u=q[2],g=q[3],c=q[4],d=q[5];var ne=q[6],re=q[7],ie=q[8],oe=q[9],se=q[10],le=q[11],ue=q[12],ce=q[13],de=q[14];if(!g&&q.length>=19){y=q[18],b=q[19],_=q[20],w=q[21];var fe=this.drawLabelWithPointPlacement_(y,b,_,w);g=fe.label,q[3]=g;var pe=q[22];c=(fe.anchorX-pe)*this.pixelRatio,q[4]=c;var he=q[23];d=(fe.anchorY-he)*this.pixelRatio,q[5]=d,ne=g.height,q[6]=ne,ce=g.width,q[13]=ce}var me=void 0;q.length>24&&(me=q[24]);var ge=void 0,ve=void 0,ye=void 0;q.length>16?(ge=q[15],ve=q[16],ye=q[17]):(ge=k.j,ve=!1,ye=!1),se&&F?le+=N:se||F||(le-=N);for(var be=0;R<u;R+=2)if(!(me&&me[be++]<ce/this.pixelRatio)){var _e=[e,t,g,Ge=this.calculateImageOrLabelDimensions_(g.width,g.height,l[R],l[R+1],ce,ne,c,d,ie,oe,le,ue,i,ge,ve||ye,S),re,ve?M:null,ye?L:null],we=void 0,xe=void 0;if(s&&de){var ke=u-R;if(!de[ke]){de[ke]=_e;continue}if(we=de[ke],delete de[ke],xe=ae(we),s.collides(xe))continue}s&&s.collides(Ge.declutterBox)||(we&&(s&&s.insert(xe),this.replayImageOrLabel_.apply(this,we)),s&&s.insert(Ge.declutterBox),this.replayImageOrLabel_.apply(this,_e))}++A;break;case v.DRAW_CHARS:var Ee=q[1],Se=q[2],Oe=q[3],Ce=q[4];w=q[5];var Te=q[6],Ae=q[7],Pe=q[8];_=q[9];var Re=q[10];y=q[11],b=q[12];var je=[q[13],q[13]],Ie=this.textStates[b],Me=Ie.font,Le=[Ie.scale[0]*Ae,Ie.scale[1]*Ae],De=void 0;Me in this.widths_?De=this.widths_[Me]:(De={},this.widths_[Me]=De);var Ne=Object(ee.a)(l,Ee,Se,2),Fe=Math.abs(Le[0])*Object(k.p)(Me,y,De);if(Ce||Fe<=Ne){var Be=this.textStates[b].textAlign,ze=J(l,Ee,Se,2,y,(Ne-Fe)*B[Be],Te,Math.abs(Le[0]),k.p,Me,De,F?0:this.viewRotation_);e:if(ze){var Ue=[],qe=void 0,We=void 0,He=void 0,$e=void 0,Ve=void 0;if(_)for(qe=0,We=ze.length;qe<We;++qe){He=(Ve=ze[qe])[4],$e=this.createLabel(He,b,"",_),c=Ve[2]+(Le[0]<0?-Re:Re),d=Oe*$e.height+2*(.5-Oe)*Re*Le[1]/Le[0]-Pe;var Ge=this.calculateImageOrLabelDimensions_($e.width,$e.height,Ve[0],Ve[1],$e.width,$e.height,c,d,0,0,Ve[3],je,!1,k.j,!1,S);if(s&&s.collides(Ge.declutterBox))break e;Ue.push([e,t,$e,Ge,1,null,null])}if(w)for(qe=0,We=ze.length;qe<We;++qe){He=(Ve=ze[qe])[4],$e=this.createLabel(He,b,w,""),c=Ve[2],d=Oe*$e.height-Pe;Ge=this.calculateImageOrLabelDimensions_($e.width,$e.height,Ve[0],Ve[1],$e.width,$e.height,c,d,0,0,Ve[3],je,!1,k.j,!1,S);if(s&&s.collides(Ge.declutterBox))break e;Ue.push([e,t,$e,Ge,1,null,null])}s&&s.load(Ue.map(ae));for(var Ke=0,Ye=Ue.length;Ke<Ye;++Ke)this.replayImageOrLabel_.apply(this,Ue[Ke])}}++A;break;case v.END_GEOMETRY:if(void 0!==o){var Qe=o(S=q[1],T);if(Qe)return Qe}++A;break;case v.FILL:U?j++:this.fill_(e),++A;break;case v.MOVE_TO_LINE_TO:for(R=q[1],u=q[2],O=l[R],m=(C=l[R+1])+.5|0,(h=O+.5|0)===f&&m===p||(e.moveTo(O,C),f=h,p=m),R+=2;R<u;R+=2)h=(O=l[R])+.5|0,m=(C=l[R+1])+.5|0,R!=u-2&&h===f&&m===p||(e.lineTo(O,C),f=h,p=m);++A;break;case v.SET_FILL_STYLE:M=q,this.alignFill_=q[2],j&&(this.fill_(e),j=0,I&&(e.stroke(),I=0)),e.fillStyle=q[1],++A;break;case v.SET_STROKE_STYLE:L=q,I&&(e.stroke(),I=0),this.setStrokeStyle_(e,q),++A;break;case v.STROKE:U?I++:e.stroke(),++A;break;default:++A}}j&&this.fill_(e),I&&e.stroke()},e.prototype.execute=function(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}(),de=n(42),fe=[G,W,V,$,K,H],pe=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(Q.c)(),this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t];for(var i in r){var o=r[i];n[i]=new ce(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){var a=2*(r=Math.round(r))+1,s=Object(Q.b)(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=Object(de.a)(a,a));var u,c=this.hitDetectionContext_;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):l||c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(u=Object(x.j)(),Object(x.q)(u,e),Object(x.c)(u,t*(this.renderBuffer_+r),u));var d,f=function(e){if(void 0!==he[e])return he[e];for(var t=2*e+1,n=e*e,r=new Array(n+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var l=[],u=(i=0,r.length);i<u;++i)r[i]&&l.push.apply(l,r[i]);return he[e]=l,l}(r);function p(e,t){for(var n=c.getImageData(0,0,a,a).data,s=0,l=f.length;s<l;s++)if(n[f[s]]>0){if(!o||d!==$&&d!==K||-1!==o.indexOf(e)){var u=(f[s]-3)/4,p=r-u%a,h=r-(u/a|0),m=i(e,t,p*p+h*h);if(m)return m}c.clearRect(0,0,a,a);break}}var h,m,g,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(E.f),h=b.length-1;h>=0;--h){var _=b[h].toString();for(g=this.executorsByZIndex_[_],m=fe.length-1;m>=0;--m)if(void 0!==(v=g[d=fe[m]])&&(y=v.executeHitDetection(c,s,n,p,u)))return y}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Object(Z.c)(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return Object(s.d)(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(E.f),this.maxExtent_&&(e.save(),this.clip(e,n));var l,u,c,d,f,p,h=o||fe;for(a&&s.reverse(),l=0,u=s.length;l<u;++l){var m=s[l].toString();for(f=this.executorsByZIndex_[m],c=0,d=h.length;c<d;++c){void 0!==(p=f[h[c]])&&p.execute(e,t,n,r,i,a)}}this.maxExtent_&&e.restore()},e}(),he={};var me=pe,ge=n(69),ve=n(73),ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=r,l.transform_=i,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Object(Q.c)(),l}return ye(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Object(Z.c)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=i.length;u<c;u+=2){var d=i[u]-this.imageAnchorX_,f=i[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var p=d+this.imageAnchorX_,h=f+this.imageAnchorY_;Object(Q.b)(a,p,h,1,1,l,-p,-h),o.setTransform.apply(o,a),o.translate(p,h),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(Z.c)(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var u=Object(Q.b)(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,u),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Object(Z.c)(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(Object(x.E)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=Object(ve.b)(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){switch(e.getType()){case y.a.POINT:this.drawPoint(e);break;case y.a.LINE_STRING:this.drawLineString(e);break;case y.a.POLYGON:this.drawPolygon(e);break;case y.a.MULTI_POINT:this.drawMultiPoint(e);break;case y.a.MULTI_LINE_STRING:this.drawMultiLineString(e);break;case y.a.MULTI_POLYGON:this.drawMultiPolygon(e);break;case y.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(e);break;case y.a.CIRCLE:this.drawCircle(e)}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&Object(x.E)(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x.E)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if(Object(x.E)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var u=e.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x.E)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x.E)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var u=e.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&(Object(E.b)(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:k.l;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){var n=this;if(e){var r=e.getColor();this.fillState_={fillStyle:Object(w.a)(r||k.b)}}else this.fillState_=null;if(t){var i=t.getColor(),o=t.getLineCap(),a=t.getLineDash(),s=t.getLineDashOffset(),l=t.getLineJoin(),u=t.getWidth(),c=t.getMiterLimit(),d=a||k.e;this.strokeState_={lineCap:void 0!==o?o:k.d,lineDash:1===this.pixelRatio_?d:d.map((function(e){return e*n.pixelRatio_})),lineDashOffset:(s||k.f)*this.pixelRatio_,lineJoin:void 0!==l?l:k.g,lineWidth:(void 0!==u?u:k.h)*this.pixelRatio_,miterLimit:void 0!==c?c:k.i,strokeStyle:Object(w.a)(i||k.k)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){var t;if(e&&(t=e.getSize())){var n=e.getAnchor(),r=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=t[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=t[0]*this.pixelRatio_}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:Object(w.a)(n||k.b)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),u=r.getWidth(),c=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:k.d,lineDash:a||k.e,lineDashOffset:s||k.f,lineJoin:void 0!==l?l:k.g,lineWidth:void 0!==u?u:k.h,miterLimit:void 0!==c?c:k.i,strokeStyle:Object(w.a)(i||k.k)}}else this.textStrokeState_=null;var d=e.getFont(),f=e.getOffsetX(),p=e.getOffsetY(),h=e.getRotateWithView(),m=e.getRotation(),g=e.getScaleArray(),v=e.getText(),y=e.getTextAlign(),b=e.getTextBaseline();this.textState_={font:void 0!==d?d:k.c,textAlign:void 0!==y?y:k.l,textBaseline:void 0!==b?b:k.m},this.text_=void 0!==v?Array.isArray(v)?v.reduce((function(e,t,n){return e+(n%2?" ":t)}),""):v:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==p?this.pixelRatio_*p:0,this.textRotateWithView_=void 0!==h&&h,this.textRotation_=void 0!==m?m:0,this.textScale_=[this.pixelRatio_*g[0],this.pixelRatio_*g[1]]}else this.text_=""},t}(_),_e="fraction",we="pixels",xe=n(20),ke="bottom-left",Ee="bottom-right",Se="top-left",Oe="top-right",Ce=n(41),Te=n(362),Ae=n(107),Pe=n(23),Re=n(112),je=n(233),Ie=n(371),Me=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Le=null,De=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return Me(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===Ce.a.LOADED){Le||(Le=Object(de.a)(1,1)),Le.drawImage(this.image_,0,0);try{Le.getImageData(0,0,1,1),this.tainted_=!1}catch(e){Le=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(xe.a.CHANGE)},t.prototype.handleImageError_=function(){this.imageState_=Ce.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=Ce.a.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=Object(de.a)(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==Ce.a.IDLE){this.imageState_=Ce.a.LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=Object(Ie.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]&&this.imageState_===Ce.a.LOADED){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(Ae.b)(this.color_),n.fillRect(0,0,t.width/e,t.height/e),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,t.width,t.height),i=r.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,l=this.color_[3],u=0,c=i.length;u<c;u+=4)i[u]*=o,i[u+1]*=a,i[u+2]*=s,i[u+3]*=l;n.putImageData(r,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(Re.a);var Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.opacity?r.opacity:1,o=void 0!==r.rotation?r.rotation:0,a=void 0!==r.scale?r.scale:1,s=void 0!==r.rotateWithView&&r.rotateWithView;(n=e.call(this,{opacity:i,rotation:o,scale:a,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:s})||this).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:Se,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:_e,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:_e,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var l=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var u=r.src;Object(Pe.a)(!(void 0!==u&&l),4),Object(Pe.a)(!l||l&&n.imgSize_,5),void 0!==u&&0!==u.length||!l||(u=l.src||Object(D.c)(l)),Object(Pe.a)(void 0!==u&&u.length>0,6);var c=void 0!==r.src?Ce.a.IDLE:Ce.a.LOADED;return n.color_=void 0!==r.color?Object(Ae.a)(r.color):null,n.iconImage_=function(e,t,n,r,i,o){var a=je.a.get(t,r,o);return a||(a=new De(e,t,n,r,i,o),je.a.set(t,r,o,a)),a}(l,u,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:Se,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return Ne(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(e)?e.slice():e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc()})},t.prototype.getAnchor=function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var t=this.getSize();if(this.anchorXUnits_==_e||this.anchorYUnits_==_e){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==_e&&(e[0]*=t[0]),this.anchorYUnits_==_e&&(e[1]*=t[1])}if(this.anchorOrigin_!=Se){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=Oe&&this.anchorOrigin_!=Ee||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=ke&&this.anchorOrigin_!=Ee||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}var n=this.getDisplacement();return[e[0]-n[0],e[1]+n[1]]},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=Se){var t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),this.offsetOrigin_!=Oe&&this.offsetOrigin_!=Ee||(e[0]=n[0]-t[0]-e[0]),this.offsetOrigin_!=ke&&this.offsetOrigin_!=Ee||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(xe.a.CHANGE,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(xe.a.CHANGE,e)},t}(Te.a);var Be=n(55),ze={Point:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();i&&(e=i,o=a&&s&&s.getText()?{}:void 0);if(a){if(a.getImageState()!=Ce.a.LOADED)return;var l=e.getBuilder(n.getZIndex(),$);l.setImageStyle(a,o),l.drawPoint(t,r)}if(s&&s.getText()){var u=e.getBuilder(n.getZIndex(),K);u.setTextStyle(s,o),u.drawText(t,r)}},LineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),V);a.setFillStrokeStyle(null,o),a.drawLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),K);l.setTextStyle(s),l.drawText(t,r)}},Polygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),G);s.setFillStrokeStyle(o,a),s.drawPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),K);u.setTextStyle(l),u.drawText(t,r)}},MultiPoint:function(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();i&&(e=i,o=a&&s&&s.getText()?{}:void 0);if(a){if(a.getImageState()!=Ce.a.LOADED)return;var l=e.getBuilder(n.getZIndex(),$);l.setImageStyle(a,o),l.drawMultiPoint(t,r)}if(s&&s.getText()){var u=(i||e).getBuilder(n.getZIndex(),K);u.setTextStyle(s,o),u.drawText(t,r)}},MultiLineString:function(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),V);a.setFillStrokeStyle(null,o),a.drawMultiLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),K);l.setTextStyle(s),l.drawText(t,r)}},MultiPolygon:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=e.getBuilder(n.getZIndex(),G);s.setFillStrokeStyle(o,a),s.drawMultiPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),K);u.setTextStyle(l),u.drawText(t,r)}},GeometryCollection:function(e,t,n,r,i){var o,a,s=t.getGeometriesArray();for(o=0,a=s.length;o<a;++o){(0,ze[s[o].getType()])(e,s[o],n,r,i)}},Circle:function(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),W);s.setFillStrokeStyle(o,a),s.drawCircle(t,r)}var l=n.getText();if(l&&l.getText()){var u=(i||e).getBuilder(n.getZIndex(),K);u.setTextStyle(l),u.drawText(t,r)}}};function Ue(e,t){return parseInt(Object(D.c)(e),10)-parseInt(Object(D.c)(t),10)}function qe(e,t){return.5*e/t}function We(e,t,n,r,i,o,a){var s=!1,l=n.getImage();if(l){var u=l.getImageState();u==Ce.a.LOADED||u==Ce.a.ERROR?l.unlistenImageChange(i):(u==Ce.a.IDLE&&l.load(),u=l.getImageState(),l.listenImageChange(i),s=!0)}return function(e,t,n,r,i,o){var a=n.getGeometryFunction()(t);if(!a)return;var s=a.simplifyTransformed(r,i);if(n.getRenderer())!function e(t,n,r,i){if(n.getType()==y.a.GEOMETRY_COLLECTION){for(var o=n.getGeometries(),a=0,s=o.length;a<s;++a)e(t,o[a],r,i);return}t.getBuilder(r.getZIndex(),H).drawCustom(n,i,r.getRenderer(),r.getHitDetectionRenderer())}(e,s,n,t);else{(0,ze[s.getType()])(e,s,n,t,o)}}(e,t,n,r,o,a),s}var He=n(14),$e=n(60),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ge=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(x.j)(),n.wrappedRenderedExtent_=Object(x.j)(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n}return Ve(t,e),t.prototype.renderWorlds=function(e,t,n){var r=t.extent,i=t.viewState,o=i.center,a=i.resolution,s=i.projection,l=i.rotation,u=s.getExtent(),c=this.getLayer().getSource(),d=t.pixelRatio,f=t.viewHints,p=!(f[ge.a.ANIMATING]||f[ge.a.INTERACTING]),h=this.context,m=Math.round(t.size[0]*d),g=Math.round(t.size[1]*d),v=c.getWrapX()&&s.canWrapX(),y=v?Object(x.D)(u):null,b=v?Math.ceil((r[2]-u[2])/y)+1:1,_=v?Math.floor((r[0]-u[0])/y):0;do{var w=this.getRenderTransform(o,a,l,d,m,g,_*y);e.execute(h,1,w,l,p,void 0,n)}while(++_<b)},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree)},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];Object(Q.e)(this.pixelTransform,1/n,1/n),Object(Q.d)(this.inversePixelTransform,this.pixelTransform);var i=Object(Q.g)(this.pixelTransform);this.useContainer(t,i,r.opacity,this.getBackground(e));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var u=Math.round(e.size[0]*n),c=Math.round(e.size[1]*n);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,e);var d=e.viewState,f=d.projection,p=!1,h=!0;if(r.extent&&this.clipping){var m=Object(He.f)(r.extent,f);(p=(h=Object(x.E)(m,e.extent))&&!Object(x.g)(m,e.extent))&&this.clipUnrotated(o,e,m)}h&&this.renderWorlds(s,e),p&&o.restore(),this.postRender(o,e);var g=Object(Be.e)(r.opacity),v=this.container;return g!==v.style.opacity&&(v.style.opacity=g),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(Q.a)(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),u=[],c=.5*n[0],d=.5*n[1];u.push(this.getRenderTransform(r,i,o,.5,c,d,0).slice());var f=l.getSource(),p=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!Object(x.g)(p,s)){for(var h=s[0],m=Object(x.D)(p),g=0,v=void 0;h<p[0];)v=m*--g,u.push(this.getRenderTransform(r,i,o,.5,c,d,v).slice()),h+=m;for(g=0,h=s[2];h>p[2];)v=m*++g,u.push(this.getRenderTransform(r,i,o,.5,c,d,v).slice()),h-=m}this.hitDetectionImageData_=function(e,t,n,r,i,o,a){var s=.5*e[0],l=.5*e[1],u=Object(de.a)(s,l);u.imageSmoothingEnabled=!1;for(var c=u.canvas,d=new be(u,.5,i,null,a),f=n.length,p=Math.floor(16777215/f),h={},m=1;m<=f;++m){var g=n[m-1],v=g.getStyleFunction()||r;if(r){var b=v(g,o);if(b){Array.isArray(b)||(b=[b]);for(var _="#"+("000000"+(m*p).toString(16)).slice(-6),w=0,k=b.length;w<k;++w){var S=b[w],O=S.getGeometryFunction()(g);if(O&&Object(x.E)(i,O.getExtent())){var C=S.clone(),T=C.getFill();T&&T.setColor(_);var A=C.getStroke();A&&(A.setColor(_),A.setLineDash(null)),C.setText(void 0);var P=S.getImage();if(P&&0!==P.getOpacity()){var R=P.getImageSize();if(!R)continue;var j=Object(de.a)(R[0],R[1],void 0,{alpha:!1}),I=j.canvas;j.fillStyle=_,j.fillRect(0,0,I.width,I.height),C.setImage(new Fe({img:I,imgSize:R,anchor:P.getAnchor(),anchorXUnits:we,anchorYUnits:we,offset:P.getOrigin(),opacity:1,size:P.getSize(),scale:P.getScale(),rotation:P.getRotation(),rotateWithView:P.getRotateWithView()}))}var M=C.getZIndex()||0;(N=h[M])||(N={},h[M]=N,N[y.a.POLYGON]=[],N[y.a.CIRCLE]=[],N[y.a.LINE_STRING]=[],N[y.a.POINT]=[]),N[O.getType().replace("Multi","")].push(O,C)}}}}}for(var L=Object.keys(h).map(Number).sort(E.f),D=(m=0,L.length);m<D;++m){var N=h[L[m]];for(var F in N){var B=N[F];for(w=0,k=B.length;w<k;w+=2){d.setStyle(B[w+1]);for(var z=0,U=t.length;z<U;++z)d.setTransform(t[z]),d.drawGeometry(B[w])}}}return u.getImageData(0,0,c.width,c.height)}(n,u,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}t(function(e,t,n){var r=[];if(n){var i=Math.floor(.5*Math.round(e[0])),o=Math.floor(.5*Math.round(e[1])),a=4*(Object(X.b)(i,0,n.width-1)+Object(X.b)(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],u=n.data[a+2]+256*(l+256*s),c=Math.floor(16777215/t.length);u&&u%c==0&&r.push(t[u/c-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,l=t.viewState.rotation,u=this.getLayer(),c={},d=function(e,t,n){var o=Object(D.c)(e),a=c[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return c[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,u,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return c[o]=!0,r(e,u,t);i.push(c[o]={feature:e,layer:u,geometry:t,distanceSq:n,callback:r})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(r){return a=r.forEachFeatureAtCoordinate(e,s,l,n,d,r===o.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((function(e){return e.value})):null)})),a}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[ge.a.ANIMATING],i=e.viewHints[ge.a.INTERACTING],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=e.extent,l=e.viewState,u=l.projection,c=l.resolution,d=e.pixelRatio,f=t.getRevision(),p=t.getRenderBuffer(),h=t.getRenderOrder();void 0===h&&(h=Ue);var m=l.center.slice(),g=Object(x.c)(s,p*c),v=g.slice(),y=[g.slice()],b=u.getExtent();if(n.getWrapX()&&u.canWrapX()&&!Object(x.g)(b,e.extent)){var _=Object(x.D)(b),w=Math.max(Object(x.D)(g)/2,_);g[0]=b[0]-w,g[2]=b[2]+w,Object($e.g)(m,u);var k=Object(x.I)(y[0],u);k[0]<b[0]&&k[2]<b[2]?y.push([k[0]+_,k[1],k[2]+_,k[3]]):k[0]>b[0]&&k[2]>b[2]&&y.push([k[0]-_,k[1],k[2]-_,k[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==h&&Object(x.g)(this.wrappedRenderedExtent_,g))return Object(E.b)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var S,O=new U(qe(c,d),g,c,d);this.getLayer().getDeclutter()&&(S=new U(qe(c,d),g,c,d));var C,T=Object(He.l)();if(T){for(var A=0,P=y.length;A<P;++A){var R=y[A],j=Object(He.n)(R,u);n.loadFeatures(j,Object(He.o)(c,u),T)}C=Object(He.k)(T,u)}else for(A=0,P=y.length;A<P;++A)n.loadFeatures(y[A],c,u);var I=function(e,t){var n=qe(e,t);return n*n}(c,d),M=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,c)),n){var i=this.renderFeature(e,I,n,O,C,S);this.dirty_=this.dirty_||i}}.bind(this),L=Object(He.n)(g,u),D=n.getFeaturesInExtent(L);h&&D.sort(h);for(A=0,P=D.length;A<P;++A)M(D[A]);this.renderedFeatures_=D;var N=O.finish(),F=new me(g,c,d,n.getOverlaps(),N,t.getRenderBuffer());return S&&(this.declutterExecutorGroup=new me(g,c,d,n.getOverlaps(),S.finish(),t.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=f,this.renderedRenderOrder_=h,this.renderedExtent_=v,this.wrappedRenderedExtent_=g,this.renderedCenter_=m,this.renderedProjection_=u,this.replayGroup_=F,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=We(r,e,n[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=We(r,e,n,t,this.boundHandleStyleImageChange_,i,o);return a},t}(q.a),Ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye=function(e){function t(t){return e.call(this,t)||this}return Ke(t,e),t.prototype.createRenderer=function(){return new Ge(this)},t}(d);t.default=Ye},function(e,t,n){"use strict";n.r(t),n.d(t,"VectorSourceEvent",(function(){return I}));var r=n(82),i=n(74),o=n(63),a=n(20),s=n(129),l=n(363),u=n.n(l),c=n(3),d=n(10),f=n(28),p=function(){function e(e){this.rbush_=new u.a(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Object(d.c)(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],a=t[r],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[r]=s,this.items_[Object(d.c)(a)]=s}this.rbush_.load(n)},e.prototype.remove=function(e){var t=Object(d.c)(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[Object(d.c)(t)],r=[n.minX,n.minY,n.maxX,n.maxY];Object(c.o)(r,e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){return this.rbush_.all().map((function(e){return e.value}))},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]))return n;return n},e.prototype.isEmpty=function(){return Object(f.d)(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return Object(c.k)(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}(),h=n(364),m=n(106),g="addfeature",v="changefeature",y="clear",b="removefeature",_="featuresloadstart",w="featuresloadend",x="featuresloaderror",k=n(38);n(14);function E(e,t){return[[-1/0,-1/0,1/0,1/0]]}var S=n(23),O=n(32),C=n(19),T=n(183),A=!1;function P(e,t){return function(n,r,i,o,a){var s=this;!function(e,t,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof e?e(n,r,i):e,!0),t.getType()==T.a.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=A,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var r=t.getType(),l=void 0;r==T.a.JSON||r==T.a.TEXT?l=s.responseText:r==T.a.XML?(l=s.responseXML)||(l=(new DOMParser).parseFromString(s.responseText,"application/xml")):r==T.a.ARRAY_BUFFER&&(l=s.response),l?o(t.readFeatures(l,{extent:n,featureProjection:i}),t.readProjection(l)):a()}else a()},s.onerror=a,s.send()}(e,t,n,r,i,(function(e,t){s.addFeatures(e),void 0!==o&&o(e)}),a||k.c)}}var R,j=(R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.feature=n,i.features=r,i}return j(t,e),t}(o.a),M=function(e){function t(t){var n=this,i=t||{};(n=e.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:m.a.READY,wrapX:void 0===i.wrapX||i.wrapX})||this).on,n.once,n.un,n.loader_=k.c,n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&(Object(S.a)(n.format_,7),n.loader_=P(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:E;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new p:null,n.loadedExtentsRtree_=new p,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(o=i.features).getArray()),s||void 0!==o||(o=new r.a(a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return j(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=Object(d.c)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new I(g,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Object(C.a)(t,a.a.CHANGE,this.handleFeatureChange_,this),Object(C.a)(t,s.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(Object(S.a)(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=Object(d.c)(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=Object(d.c)(a);this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var c=u.getExtent();t.push(c),r.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(g)){i=0;for(var f=n.length;i<f;i++)this.dispatchEvent(new I(g,n[i]))}},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(g,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(b,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(i.a.ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(i.a.REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(C.c)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(e){this.removeFeatureInternal(e)}.bind(this);for(var r in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new I(y);this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){return n.getGeometry().intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){if(n.getGeometry().intersectsExtent(e)){var r=t(n);if(r)return r}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Object(f.d)(this.nullGeometryFeatures_)||Object(O.c)(e,Object(f.c)(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e){return this.featuresRtree_?this.featuresRtree_.getInExtent(e):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||k.b;return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),u=a;if((a=t.closestPointXY(n,r,o,a))<u){i=e;var c=Math.sqrt(a);s[0]=n-c,s[1]=r-c,s[2]=n+c,s[3]=r+c}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=Object(d.c)(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new I(v,t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:Object(d.c)(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(f.d)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},t.prototype.loadFeatures=function(e,t,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n),o=function(e,o){var s=i[e];r.forEachInExtent(s,(function(e){return Object(c.g)(e.extent,s)}))||(++a.loadingExtentsCount_,a.dispatchEvent(new I(_)),a.loader_.call(a,s,t,n,function(e){--this.loadingExtentsCount_,this.dispatchEvent(new I(w,void 0,e))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new I(x))}.bind(a)),r.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if(Object(c.o)(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){if(e){var t=Object(d.c)(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}},t.prototype.removeFeatureInternal=function(e){var t=Object(d.c)(e),n=this.featureChangeKeys_[t];if(n){n.forEach(C.c),delete this.featureChangeKeys_[t];var r=e.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[t],this.dispatchEvent(new I(b,e)),e}},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){Object(S.a)(this.format_,7),this.url_=e,this.setLoader(P(e,this.format_))},t}(h.a);t.default=M},function(e,t,n){"use strict";var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=n(37),o=(n(203),n(478),function(e,t,n){for(var r=0,o=0;r=o,o=Object(i.h)(),38===r&&12===o&&(t[n]=1),!Object(i.o)(o);)Object(i.g)();return Object(i.m)(e,i.i)}),a=function(e,t){return Object(i.c)(function(e,t){var n=-1,r=44;do{switch(Object(i.o)(r)){case 0:38===r&&12===Object(i.h)()&&(t[n]=1),e[n]+=o(i.i-1,t,n);break;case 2:e[n]+=Object(i.d)(r);break;case 4:if(44===r){e[++n]=58===Object(i.h)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Object(i.e)(r)}}while(r=Object(i.g)());return e}(Object(i.a)(e),t))},s=new WeakMap,l=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||s.get(n))&&!r){s.set(e,!0);for(var i=[],o=a(t,i),l=n.props,u=0,c=0;u<o.length;u++)for(var d=0;d<l.length;d++,c++)e.props[c]=i[u]?o[u].replace(/&\f/g,l[d]):l[d]+" "+o[u]}}},u=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},c=[i.j];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||c;var a,s,d={},f=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)d[t[n]]=!0;f.push(e)}));var p=[l,u];var h,m=[i.n,Object(i.k)((function(e){h.insert(e)}))],g=Object(i.f)(p.concat(o,m));s=function(e,t,n,r){var o;h=n,o=e?e+"{"+t.styles+"}":t.styles,Object(i.l)(Object(i.b)(o),g),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:s};return v.sheet.hydrate(f),v}},function(e,t,n){var r=n(802);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,k="?"===b||"*"===b,E=n[2]||c,S=v||y;r.push({name:g||o++,prefix:m||"",delimiter:E,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?u(S):_?".*":"[^"+l(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),a+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var i=void 0;function o(){return void 0===i&&(i=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),i}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};function l(e,t,n,r){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new s(e));var i=function(e){if(e)return o()?e:!!e.capture}(r);return e.__consolidated_events_handlers__.add(t,n,i)}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/esrever v0.2.0 by @mathias */!function(o){var a=t,s=(e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var l=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,u=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){for(var t="",n=(e=e.replace(l,(function(e,t,n){return c(n)+t})).replace(u,"$2$1")).length;n--;)t+=e.charAt(n);return t},d={version:"0.2.0",reverse:c};void 0===(i=function(){return d}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(161)(e),n(56))},function(e,t,n){"use strict";t.atob=self.atob.bind(self),t.btoa=self.btoa.bind(self)},function(e,t,n){"use strict";(function(e){var r=n(367),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=s}).call(this,n(331)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsCore=void 0;var r=i(n(794));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=a(a({},i(n(136)).default),{},{init:r.default});t.NetlifyCmsCore=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DropdownButton",{enumerable:!0,get:function(){return a.Button}}),t.DropdownCheckedItem=x,t.DropdownItem=b,t.StyledDropdownButton=void 0,t.default=y;var r=c(n(21)),i=(c(n(0)),c(n(2))),o=n(9),a=n(805),s=n(132),l=c(n(188));const u=["isActive","isCheckedItem"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const p=(0,r.default)(a.Wrapper,{target:"e1d27pw00",label:"StyledWrapper"})({name:"p2aa31",styles:"position:relative;font-size:14px;user-select:none;"}),h=(0,r.default)(a.Button,{target:"e1d27pw01",label:"StyledDropdownButton"})(s.buttons.button,";",s.buttons.default,";display:block;padding-left:20px;padding-right:40px;position:relative;&:after{",s.components.caretDown,";content:'';display:block;position:absolute;top:16px;right:10px;color:currentColor;}");t.StyledDropdownButton=h;const m=(0,r.default)("ul",{target:"e1d27pw02",label:"DropdownList"})(s.components.dropdownList,";margin:0;position:absolute;top:0;left:0;min-width:100%;z-index:",s.zIndex.zIndex299,";",e=>(0,o.css)("width:",e.width,";top:",e.top,";left:","left"===e.position?0:"auto",";right:","right"===e.position?0:"auto",";;label:DropdownList;"),";");function g(e){let{isActive:t,isCheckedItem:n=!1}=e,r=f(e,u);return(0,o.jsx)(a.MenuItem,d({css:(0,o.css)(s.components.dropdownItem,";&:focus,&:active,&:not(:focus),&:not(:active){background-color:",t?s.colors.activeBackground:"inherit",";color:",t?s.colors.active:"inherit",";",n?"display: flex; justify-content: start":"",";}&:hover{color:",s.colors.active,";background-color:",s.colors.activeBackground,";}&.active{text-decoration:underline;};label:StyledMenuItem;")},r))}const v=(0,r.default)("div",{target:"e1d27pw03",label:"MenuItemIconContainer"})("flex:1 0 32px;text-align:right;position:relative;top:",e=>e.iconSmall?"0":"2px",";");function y(e){let{closeOnSelection:t=!0,renderButton:n,dropdownWidth:r="auto",dropdownPosition:i="left",dropdownTopOverlap:s="0",className:l,children:u}=e;return(0,o.jsx)(p,{closeOnSelection:t,onSelection:e=>e(),className:l},n(),(0,o.jsx)(a.Menu,null,(0,o.jsx)(m,{width:r,top:s,position:i},u)))}function b(e){let{label:t,icon:n,iconDirection:r,iconSmall:i,isActive:a,onClick:s,className:u}=e;return(0,o.jsx)(g,{value:s,isActive:a,className:u},(0,o.jsx)("span",null,t),n?(0,o.jsx)(v,{iconSmall:i},(0,o.jsx)(l.default,{type:n,direction:r,size:i?"xsmall":"small"})):null)}y.propTypes={renderButton:i.default.func.isRequired,dropdownWidth:i.default.string,dropdownPosition:i.default.string,dropdownTopOverlap:i.default.string,className:i.default.string,children:i.default.node},b.propTypes={label:i.default.string,icon:i.default.string,iconDirection:i.default.string,onClick:i.default.func,className:i.default.string};var _={name:"5afxk1-StyledDropdownCheckbox",styles:"margin-right:10px;;label:StyledDropdownCheckbox;"};function w(e){let{checked:t,id:n}=e;return(0,o.jsx)("input",{readOnly:!0,type:"checkbox",css:_,checked:t,id:n})}function x(e){let{label:t,id:n,checked:r,onClick:i}=e;return(0,o.jsx)(g,{isCheckedItem:!0,isActive:r,onClick:i},(0,o.jsx)(w,{checked:r,id:n}),(0,o.jsx)("span",{htmlFor:n},t))}x.propTypes={label:i.default.string.isRequired,id:i.default.string.isRequired,checked:i.default.bool.isRequired,onClick:i.default.func.isRequired}},function(e,t,n){"use strict";var r={},i="a menu outside a mounted Wrapper with an id, or a menu that does not exist";e.exports={registerManager:function(e,t){r[e]=t},unregisterManager:function(e){delete r[e]},openMenu:function(e,t){var n=r[e];if(!n)throw new Error("Cannot open "+i);n.openMenu(t)},closeMenu:function(e,t){var n=r[e];if(!n)throw new Error("Cannot close "+i);n.closeMenu(t)}}},function(e,t,n){var r=n(189),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(56))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(821)();e.exports=r},function(e,t,n){var r=n(822),i=n(237),o=n(49),a=n(238),s=n(211),l=n(284),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),p=n||c||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(292),i=n(854),o=n(293);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(88).Uint8Array;e.exports=r},function(e,t,n){var r=n(503),i=n(383),o=n(210);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(294),i=n(49);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(189)(n(88),"Set");e.exports=r},function(e,t,n){var r=n(189)(n(88),"WeakMap");e.exports=r},function(e,t,n){var r=n(89);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(862),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(864),i=n(512);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(191),i=n(237),o=n(49),a=n(211),s=n(377),l=n(163);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(132),s=u(n(188)),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("a",{target:"ett28fv0",label:"GoBackButtonStyle"})({name:"uebubq",styles:"display:flex;align-items:center;margin-top:50px;padding:10px;font-size:14px;"}),d=(0,r.default)("p",{target:"ett28fv1",label:"ButtonText"})("color:",a.colorsRaw.gray,";margin:0 10px;");class f extends i.default.Component{render(){const{href:e,t:t}=this.props;return(0,l.jsx)(c,{href:e},(0,l.jsx)(s.default,{type:"arrow",size:"small"}),(0,l.jsx)(d,null,t("ui.default.goBackToSite")))}}t.default=f,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(f,"propTypes",{href:o.default.string.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(517);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(385);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(96),i=n(164),o=r("%TypeError%"),a=n(884),s=n(520),l=n(889),u=n(890),c=n(891),d=n(908),f=n(524),p=n(909),h=i("String.prototype.split"),m=Object("a"),g="a"!==m[0]||!(0 in m);e.exports=function(e){var t,n=d(this),r=g&&p(this)?h(this,""):n,i=c(r);if(!u(e))throw new o("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=0;m<i;){var v=f(m),y=l(r,v);if(y){var b=s(r,v);a(e,t,[b,m,r])}m+=1}}},function(e,t,n){"use strict";var r=n(96)("%TypeError%"),i=n(886),o=n(521),a=n(386);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,r)}catch(e){e!==i&&(a=null)}else a=null;var s=/^\s*class\b/,l=function(e){try{var t=o.call(e);return s.test(t)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=a?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==i)return!1}return!l(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!l(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(l(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(517);e.exports=function(){return r()&&!!Symbol.toStringTag}},function(e,t,n){"use strict";var r=n(96),i=r("%String%"),o=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r=n(910),i=n(519);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:i}},function(e,t,n){"use strict";var r=n(296),i=n(164),o=i("Object.prototype.propertyIsEnumerable"),a=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)o(t,i)&&a(n,[i,t[i]]);return n}},function(e,t,n){"use strict";var r=n(526);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(296),i=n(524),o=n(164)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(r(this));return o(o(e,a,""),s,"")}},function(e,t,n){"use strict";var r=n(529);e.exports=function(){return String.prototype.trim&&""==="".trim()?String.prototype.trim:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;var r=n(227),i=n(918),o=l(n(919)),a=n(532),s=l(n(920));function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.createStore)((0,s.default)(),(0,i.composeWithDevTools)((0,r.applyMiddleware)(o.default,a.waitUntilAction)));t.store=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntilAction=t.WAIT_UNTIL_ACTION=void 0;t.WAIT_UNTIL_ACTION="WAIT_UNTIL_ACTION";t.waitUntilAction=e=>{let{dispatch:t,getState:n}=e,r=[];return e=>i=>{if("WAIT_UNTIL_ACTION"===i.type)return r.push(i),null;const o=e(i);return function(e){const i=[],o=[];for(const t of r)t.predicate(e)?i.push(t):o.push(t);r=o;for(const r of i)r.run(t,n,e)}(i),o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notifSend=function(e){var t=r({},e);t.id||(t.id=(new Date).getTime());return function(e){e({type:i,payload:t}),t.dismissAfter&&setTimeout((function(){e({type:o,payload:t.id})}),t.dismissAfter)}},t.notifDismiss=function(e){return{type:o,payload:e}},t.notifClear=function(){return{type:a}};var r=n(207),i=t.NOTIF_SEND="NOTIF_SEND",o=t.NOTIF_DISMISS="NOTIF_DISMISS",a=t.NOTIF_CLEAR="NOTIF_CLEAR"},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};i(n(0));var r=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},function(e,t,n){var r=n(390),i=n(191),o=n(211),a=n(89),s=n(163);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:o(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},function(e,t,n){var r=n(143),i=n(240),o=n(109),a=n(538),s=n(938),l=n(190),u=n(939),c=n(214),d=n(49);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,l(o));var p=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(p,(function(e,t){return u(e,t,n)}))}},function(e,t,n){var r=n(391),i=n(162);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(298),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(239),i=n(162),o=n(211),a=n(89);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(543),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(393);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(393);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(396);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(298),i=n(166),o=n(302),a=i((function(e,t){try{return r(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},function(e,t,n){var r;r={},e.exports=r,r.simpleFilter=function(e,t){return t.filter((function(t){return r.test(e,t)}))},r.test=function(e,t){return null!==r.match(e,t)},r.match=function(e,t,n){n=n||{};var r,i=0,o=[],a=t.length,s=0,l=0,u=n.pre||"",c=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)r=t[f],d[f]===e[i]?(r=u+r+c,i+=1,l+=1+l):l=0,s+=l,o[o.length]=r;return i===e.length?(s=d===e?1/0:s,{rendered:o.join(""),score:s}):null},r.filter=function(e,t,n){return t&&0!==t.length?"string"!=typeof e?t:(n=n||{},t.reduce((function(t,i,o,a){var s=i;n.extract&&(s=n.extract(i));var l=r.match(e,s,n);return null!=l&&(t[t.length]={string:l.rendered,score:l.score,index:o,original:i}),t}),[]).sort((function(e,t){var n=t.score-e.score;return n||e.index-t.index}))):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basename=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return e;const n=(e=i(e)).split("/"),r=n[n.length-1];if(""===r&&n.length>1)return n[n.length-2];if(t.length>0){if(r.slice(-t.length)===t)return r.slice(0,-t.length)}return r},t.fileExtension=function(e){const t=o(e);return""===t?t:t.slice(1)},t.fileExtensionWithSeparator=o,t.isAbsolutePath=function(e){return r.test(e)};const r=new RegExp("^(?:[a-z]+:)?//","i");function i(e){return e.replace(/[\\/]+/g,"/")}function o(e){const t=(e=i(e)).split("/");if(""===(e=t.pop())&&t.length>0&&(e=t.pop()),".."===e)return"";const n=e.lastIndexOf(".");return-1===n||0===n?"":e.slice(n)}},function(e,t,n){var r=n(507),i=r&&new r;e.exports=i},function(e,t,n){var r=n(955),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t,n){var r=n(403),i=n(402),o=n(552),a=n(956);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t,n){var r=n(246);function i(e,t,n){var o=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return o.placeholder=i.placeholder,o}i.placeholder={},e.exports=i},function(e,t,n){var r=n(214),i=n(551),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(557),i=n(558),o=n(960),a=n(305),s=n(559),l=n(306),u=n(964),c=n(247),d=n(88);e.exports=function e(t,n,f,p,h,m,g,v,y,b){var _=128&n,w=1&n,x=2&n,k=24&n,E=512&n,S=x?void 0:a(t);return function O(){for(var C=arguments.length,T=Array(C),A=C;A--;)T[A]=arguments[A];if(k)var P=l(O),R=o(T,P);if(p&&(T=r(T,p,h,k)),m&&(T=i(T,m,g,k)),C-=R,k&&C<b){var j=c(T,P);return s(t,n,e,O.placeholder,f,T,j,v,y,b-C)}var I=w?f:this,M=x?I[t]:t;return C=T.length,v?T=u(T,v):E&&C>1&&T.reverse(),_&&y<C&&(T.length=y),this&&this!==d&&this instanceof O&&(M=S||a(M)),M.apply(I,T)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=n(a-s,0),d=Array(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=t.length,d=n(a-l,0),f=Array(d+c),p=!i;++o<d;)f[o]=e[o];for(var h=o;++u<c;)f[h+u]=t[u];for(;++s<l;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}},function(e,t,n){var r=n(553),i=n(560),o=n(561);e.exports=function(e,t,n,a,s,l,u,c,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?u:void 0,p?void 0:l,p?void 0:u,c,d,f],m=n.apply(void 0,h);return r(e)&&i(m,h),m.placeholder=a,o(m,e,t)}},function(e,t,n){var r=n(555),i=n(540)(r);e.exports=i},function(e,t,n){var r=n(961),i=n(962),o=n(392),a=n(963);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},function(e,t,n){var r=n(542),i=n(89),o=n(213),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(217),i=n(210);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){(function(e){var r=n(88),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(161)(e))},function(e,t,n){var r=n(294),i=n(398),o=n(383),a=n(505),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(408);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(303),i=n(398),o=n(286);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(993);t.default=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=e=>{let{target:n}=e;return t((0,r.sha256)((null==n?void 0:n.result)||""))},i.onerror=e=>{i.abort(),n(e)},i.readAsArrayBuffer(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncLock=function(){let e=(0,i.default)(1);return{acquire:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15e3;const n=new Promise(n=>{const r=setTimeout(()=>{e=(0,i.default)(1),n(!1)},t);e.take(()=>{clearTimeout(r),n(!0)})});return n},release:function(){try{e.leave()}catch(t){if("leave called too many times."!==t.message)throw t;console.warn("leave called too many times."),e=(0,i.default)(1)}}}};var r,i=(r=n(193))&&r.__esModule?r:{default:r}},function(e,t,n){var r=n(308)("fromPairs",n(568));r.placeholder=n(248),e.exports=r},function(e,t,n){var r=n(308)("flow",n(146));r.placeholder=n(248),e.exports=r},function(e,t,n){var r=n(192),i=n(299),o=n(395),a=n(89),s=n(1004),l=n(1006),u=n(300),c=n(134),d=n(133),f=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var h="separator"in t?t.separator:h;n="length"in t?c(t.length):n,p="omission"in t?r(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=u(e);m=g.length}if(n>=m)return e;var v=n-l(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===h)return y+p;if(g&&(v+=y.length-v),s(h)){if(e.slice(v).search(h)){var b,_=y;for(h.global||(h=RegExp(h.source,d(f.exec(h))+"g")),h.lastIndex=0;b=h.exec(_);)var w=b.index;y=y.slice(0,void 0===w?v:w)}}else if(e.indexOf(r(h),v)!=v){var x=y.lastIndexOf(h);x>-1&&(y=y.slice(0,x))}return y+p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(410))&&r.__esModule?r:{default:r},o=n(576);const a={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()};var s={fromFile:e=>(e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3)),i.default.parse(e,{customTags:[a]})),toFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=i.default.createNode(e);!function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.forEach(t=>{if(void 0!==t.key){var i;const o=t.key.toString(),a=r?`${r}.${o}`:o;if(n[a]){const e=n[a].split("\\n").join("\n ");t.commentBefore=" "+e}Array.isArray(null===(i=t.value)||void 0===i?void 0:i.items)&&e(t.value.items,n,a)}})}(r.items,n),r.items.sort((0,o.sortKeys)(t,e=>{var t;return null===(t=e.key)||void 0===t?void 0:t.toString()}));const a=new i.default.Document;return a.contents=r,a.toString()}};t.default=s},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortKeys=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return(n,r)=>{const i=e.indexOf(t(n)),o=e.indexOf(t(r));return-1===i||-1===o?0:i>o?1:i<o?-1:0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1013)),i=l(n(1036)),o=l(n(195)),a=l(n(251)),s=n(576);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return o.default.isMoment(t)?t.format(t._f):t instanceof a.default?""+t.path:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}var c={fromFile:e=>r.default.parse(e),toFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i.default.toToml(e,{replace:u,sort:(0,s.sortKeys)(t)})}};t.default=c},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(1022),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(56))},function(e,t,n){"use strict";(function(t,r){var i=n(311);e.exports=b;var o,a=n(575);b.ReadableState=y;n(414).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(580),u=n(416).Buffer,c=t.Uint8Array||function(){};var d=Object.create(n(250));d.inherits=n(197);var f=n(1025),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=n(1026),g=n(581);d.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(198));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(582).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(198),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,a)):(i||(o=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(582).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){p("emit readable"),e.emit("readable"),A(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function C(e){p("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function u(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",d);var f=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",v),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):i.nextTick(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(T,e,t))}(this,e)),this},b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this,n(56),n(97))},function(e,t,n){e.exports=n(414).EventEmitter},function(e,t,n){"use strict";var r=n(311);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(1029).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(198),i=Object.create(n(250));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(197),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)};t.default=r},function(module,exports,__webpack_require__){"use strict";const yaml=__webpack_require__(1043),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},function(e,t,n){"use strict";var r=n(219);e.exports=new r({include:[n(587)]})},function(e,t,n){"use strict";var r=n(219);e.exports=new r({include:[n(418)],implicit:[n(1050),n(1051),n(1052),n(1053)]})},function(e,t,n){"use strict";const r=n(312),i=n(589),o=n(313);function a(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,n){if(null==t&&null==n)switch(r(e)){case"object":t=e.data,n={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const s=e.content,l=o(n);if(null==t){if(!l.data)return e;t=l.data}const u=e.language||l.language,c=i(u,l);if("function"!=typeof c.stringify)throw new TypeError('expected "'+u+'.stringify" to be a function');t=Object.assign({},e.data,t);const d=l.delimiters[0],f=l.delimiters[1],p=c.stringify(t,n).trim();let h="";return"{}"!==p&&(h=a(d)+a(p)+a(f)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===s.indexOf(e.excerpt.trim())&&(h+=a(e.excerpt)+a(f)),h+a(s)}},function(e,t,n){"use strict";e.exports=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(1070),i=n(1077),o=n(1110),a=n(1112),s=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=n(254);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=n(35);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(256);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const u in e){const c=e[u];if(!c)continue;const d=a[u]=a[u]||new Map;c.forEach(e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)})}return l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},function(e,t,n){"use strict";function r(e,t){return t.rules.some(t=>i(e,t))}function i(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=i},function(e,t,n){
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i<r;++i)t[i]=t[i].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){var r=t("[0-9]","[A-Fa-f]"),i=n(n("%[EFef]"+r+"%"+r+r+"%"+r+r)+"|"+n("%[89A-Fa-f]"+r+"%"+r+r)+"|"+n("%"+r+r)),o="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",a=t("[\\:\\/\\?\\#\\[\\]\\@]",o),s=e?"[\\uE000-\\uF8FF]":"[]",l=t("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),u=n("[A-Za-z]"+t("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),c=n(n(i+"|"+t(l,o,"[\\:]"))+"*"),d=(n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("[1-9][0-9]")+"|[0-9]"),n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("0?[1-9][0-9]")+"|0?0?[0-9]")),f=n(d+"\\."+d+"\\."+d+"\\."+d),p=n(r+"{1,4}"),h=n(n(p+"\\:"+p)+"|"+f),m=n(n(p+"\\:")+"{6}"+h),g=n("\\:\\:"+n(p+"\\:")+"{5}"+h),v=n(n(p)+"?\\:\\:"+n(p+"\\:")+"{4}"+h),y=n(n(n(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+n(p+"\\:")+"{3}"+h),b=n(n(n(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+n(p+"\\:")+"{2}"+h),_=n(n(n(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+h),w=n(n(n(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+h),x=n(n(n(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),k=n(n(n(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),E=n([m,g,v,y,b,_,w,x,k].join("|")),S=n(n(l+"|"+i)+"+"),O=(n(E+"\\%25"+S),n(E+n("\\%25|\\%(?!"+r+"{2})")+S)),C=n("[vV]"+r+"+\\."+t(l,o,"[\\:]")+"+"),T=n("\\["+n(O+"|"+E+"|"+C)+"\\]"),A=n(n(i+"|"+t(l,o))+"*"),P=n(T+"|"+f+"(?!"+A+")|"+A),R=n("[0-9]*"),j=n(n(c+"@")+"?"+P+n("\\:"+R)+"?"),I=n(i+"|"+t(l,o,"[\\:\\@]")),M=n(I+"*"),L=n(I+"+"),D=n(n(i+"|"+t(l,o,"[\\@]"))+"+"),N=n(n("\\/"+M)+"*"),F=n("\\/"+n(L+N)+"?"),B=n(D+N),z=n(L+N),U="(?!"+I+")",q=(n(N+"|"+F+"|"+B+"|"+z+"|"+U),n(n(I+"|"+t("[\\/\\?]",s))+"*")),W=n(n(I+"|[\\/\\?]")+"*"),H=n(n("\\/\\/"+j+N)+"|"+F+"|"+z+"|"+U),$=n(u+"\\:"+H+n("\\?"+q)+"?"+n("\\#"+W)+"?"),V=n(n("\\/\\/"+j+N)+"|"+F+"|"+B+"|"+U),G=n(V+n("\\?"+q)+"?"+n("\\#"+W)+"?");return n($+"|"+G),n(u+"\\:"+H+n("\\?"+q)+"?"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+z+"|"+U+")"),n("\\?("+q+")"),n("\\#("+W+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+B+"|"+U+")"),n("\\?("+q+")"),n("\\#("+W+")"),n(n("\\/\\/("+n("("+c+")@")+"?("+P+")"+n("\\:("+R+")")+"?)")+"?("+N+"|"+F+"|"+z+"|"+U+")"),n("\\?("+q+")"),n("\\#("+W+")"),n("("+c+")@"),n("\\:("+R+")"),{NOT_SCHEME:new RegExp(t("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,o),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,o),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,o),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,o),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,o,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,o,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,o),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,a),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+E+")"+n(n("\\%25|\\%(?!"+r+"{2})")+"("+S+")")+"?\\]?$")}}var a=o(!1),s=o(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=2147483647,c=/^xn--/,d=/[^\0-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(p[e])}function v(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(f,".")).split("."),t).join(".");return r+i}function y(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var b=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_=function(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=36)e=h(e/35);return h(r+36*e/(e+38))},w=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&g("not-basic"),n.push(e.charCodeAt(l));for(var c=s>0?s+1:0;c<r;){for(var d=i,f=1,p=36;;p+=36){c>=r&&g("invalid-input");var m=(t=e.charCodeAt(c++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(m>=36||m>h((u-i)/f))&&g("overflow"),i+=m*f;var v=p<=a?1:p>=a+26?26:p-a;if(m<v)break;var y=36-v;f>h(u/y)&&g("overflow"),f*=y}var b=n.length+1;a=_(i-d,b,0==d),h(i/b)>u-o&&g("overflow"),o+=h(i/b),i%=b,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},x=function(e){var t=[],n=(e=y(e)).length,r=128,i=0,o=72,a=!0,s=!1,l=void 0;try{for(var c,d=e[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var f=c.value;f<128&&t.push(m(f))}}catch(e){s=!0,l=e}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}var p=t.length,v=p;for(p&&t.push("-");v<n;){var w=u,x=!0,k=!1,E=void 0;try{for(var S,O=e[Symbol.iterator]();!(x=(S=O.next()).done);x=!0){var C=S.value;C>=r&&C<w&&(w=C)}}catch(e){k=!0,E=e}finally{try{!x&&O.return&&O.return()}finally{if(k)throw E}}var T=v+1;w-r>h((u-i)/T)&&g("overflow"),i+=(w-r)*T,r=w;var A=!0,P=!1,R=void 0;try{for(var j,I=e[Symbol.iterator]();!(A=(j=I.next()).done);A=!0){var M=j.value;if(M<r&&++i>u&&g("overflow"),M==r){for(var L=i,D=36;;D+=36){var N=D<=o?1:D>=o+26?26:D-o;if(L<N)break;var F=L-N,B=36-N;t.push(m(b(N+F%B,0))),L=h(F/B)}t.push(m(b(L,0))),o=_(i,T,v==p),i=0,++v}}}catch(e){P=!0,R=e}finally{try{!A&&I.return&&I.return()}finally{if(P)throw R}}++i,++r}return t.join("")},k=function(e){return v(e,(function(e){return d.test(e)?"xn--"+x(e):e}))},E=function(e){return v(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))},S={};function O(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function C(e){for(var t="",n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var o=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function T(e,t){function n(e){var n=C(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,i)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(A).join("."):e}function R(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),i=r[1],o=r[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),u=s[0],c=s[1],d=c?c.split(":").map(A):[],f=u.split(":").map(A),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,g=Array(h),v=0;v<h;++v)g[v]=d[v]||f[m+v]||"";p&&(g[h-1]=P(g[h-1],t));var y=g.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var _=g.slice(0,y.index),w=g.slice(y.index+y.length);b=_.join(":")+"::"+w.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var j=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,I=void 0==="".match(/(){0}/)[1];function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(j);if(i){I?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==e.indexOf("@")?i[3]:void 0,n.host=-1!==e.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==e.indexOf("?")?i[7]:void 0,n.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=R(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var o=S[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)T(n,r);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=k(n.host.replace(r.PCT_ENCODED,C).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}T(n,a)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function L(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(R(P(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var D=/^\.\.?\//,N=/^\/\.(\/|$)/,F=/^\/\.\.(\/|$)/,B=/^\/?(?:.|\n)*?(?=\/|$)/;function z(e){for(var t=[];e.length;)if(e.match(D))e=e.replace(D,"");else if(e.match(N))e=e.replace(N,"/");else if(e.match(F))e=e.replace(F,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(B);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],i=S[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?E(e.host):k(e.host.replace(n.PCT_ENCODED,C).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}T(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var o=L(e,t);if(void 0!==o&&("suffix"!==t.reference&&r.push("//"),r.push(o),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var l=e.path;t.absolutePath||i&&i.absolutePath||(l=z(l)),void 0===o&&(l=l.replace(/^\/\//,"/%2F")),r.push(l)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i={};return r||(e=M(U(e,n),n),t=M(U(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=z(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=z(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=z(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function W(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,C)}var H={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize};function V(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var G={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=V(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(V(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=l(n,2),i=r[0],o=r[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},K={scheme:"wss",domainHost:G.domainHost,parse:G.parse,serialize:G.serialize},Y={},Q="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",X="[0-9A-Fa-f]",Z=n(n("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+n("%[89A-Fa-f]"+X+"%"+X+X)+"|"+n("%"+X+X)),J=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ee=new RegExp(Q,"g"),te=new RegExp(Z,"g"),ne=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),re=new RegExp(t("[^]",Q,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ie=re;function oe(e){var t=C(e);return t.match(ee)?t:e}var ae={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,o={},a=n.query.split("&"),s=0,l=a.length;s<l;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)r.push(c[d]);break;case"subject":n.subject=W(u[1],t);break;case"body":n.body=W(u[1],t);break;default:i=!0,o[W(u[0],t)]=W(u[1],t)}}i&&(n.headers=o)}n.query=void 0;for(var p=0,h=r.length;p<h;++p){var m=r[p].split("@");if(m[0]=W(m[0]),t.unicodeSupport)m[1]=W(m[1],t).toLowerCase();else try{m[1]=k(W(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[p]=m.join("@")}return n},serialize:function(e,t){var n,r=e,o=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(o){for(var a=0,s=o.length;a<s;++a){var l=String(o[a]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(te,oe).replace(te,i).replace(ne,O),d=l.slice(u+1);try{d=t.iri?E(d):k(W(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[a]=c+"@"+d}r.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==Y[h]&&p.push(h.replace(te,oe).replace(te,i).replace(re,O)+"="+f[h].replace(te,oe).replace(te,i).replace(ie,O));return p.length&&(r.query=p.join("&")),r}},se=/^([^\:]+)\:(.*)/,le={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(se),r=e;if(n){var i=t.scheme||r.scheme||"urn",o=n[1].toLowerCase(),a=n[2],s=i+":"+(t.nid||o),l=S[s];r.nid=o,r.nss=a,r.path=void 0,l&&(r=l.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,i=n+":"+(t.nid||r),o=S[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},ue=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ce={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(ue)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};S[H.scheme]=H,S[$.scheme]=$,S[G.scheme]=G,S[K.scheme]=K,S[ae.scheme]=ae,S[le.scheme]=le,S[ce.scheme]=ce,e.SCHEMES=S,e.pctEncChar=O,e.pctDecChars=C,e.parse=M,e.removeDotSegments=z,e.serialize=U,e.resolveComponents=q,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return U(q(M(e,r),M(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=U(M(e,t),t):"object"===r(e)&&(e=M(U(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=U(M(e,n),n):"object"===r(e)&&(e=U(e,n)),"string"==typeof t?t=U(M(t,n),n):"object"===r(t)&&(t=U(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:a.ESCAPE,O)},e.unescapeComponent=W,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(316);class i extends Error{constructor(e,t,n){super(n||`can't resolve reference ${t} from id ${e}`),this.missingRef=r.resolveUrl(e,t),this.missingSchema=r.normalizeId(r.getFullPath(this.missingRef))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(35),i=n(595),o=n(148),a=n(316),s=n(44),l=n(254),u=n(594);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:a.normalizeId(null==n?void 0:n.$id),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function d(e){const t=p.call(this,e);if(t)return t;const n=a.getFullPath(e.root.baseId),{es5:s,lines:u}=this.opts.code,{ownProperties:c}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:u,ownProperties:c});let f;e.$async&&(f=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=d.scopeName("validate");e.validateName=h;const m={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:r.stringify(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),l.validateFunctionCode(m),d.optimize(this.opts.code.optimize);const t=d.toString();g=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const n=new Function(""+o.default.self,""+o.default.scope,g)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=r.stringify(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function f(e){return a.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:d.call(this,e)}function p(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function h(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){const n=u.parse(t),r=a._getFullPath(n);let i=a.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&r===i)return v.call(this,n,e);const o=a.normalizeId(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=m.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return v.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||d.call(this,s),o===a.normalizeId(t)){const{schema:t}=s;return t.$id&&(i=a.resolveUrl(i,t.$id)),new c({schema:t,root:e,baseId:i})}return v.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=d,t.resolveRef=function(e,t,n){var r;n=a.resolveUrl(t,n);const i=e.refs[n];if(i)return i;let o=h.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n];i&&(o=new c({schema:i,root:e,baseId:t}))}return void 0!==o?e.refs[n]=f.call(this,o):void 0},t.getCompilingSchema=p,t.resolveSchema=m;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;if(void 0===(n=n[s.unescapeFragment(r)]))return;!g.has(r)&&"object"==typeof n&&n.$id&&(t=a.resolveUrl(t,n.$id))}let o;if("boolean"!=typeof n&&n.$ref&&!s.schemaHasRulesButRef(n,this.RULES)){const e=a.resolveUrl(t,n.$ref);o=m.call(this,r,e)}return o=o||new c({schema:n,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(35),i=n(44),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):i.checkStrictMode(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const u=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${u} <= ${t.length}`);else if("object"==typeof o&&!i.alwaysValidSchema(l,o)){const o=n.var("valid",r._`${u} <= ${t.length}`);n.if(r.not(o),()=>function(o){n.forRange("i",t.length,u,t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if(r.not(o),()=>n.break())})}(o)),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(35),i=n(44),o=n(125),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,i.alwaysValidSchema(n,t)||e.ok(o.validateArray(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;i.checkStrictMode(u,e,r.strictTuples)}}(a),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const c=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach((t,n)=>{i.alwaysValidSchema(u,t)||(o.if(r._`${d} > ${n}`,()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},c)),e.ok(c))})}t.validateTuple=s,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(125),i=n(35),o=n(148),a=n(44),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:u,it:c}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&a.alwaysValidSchema(c,n))return;const p=r.allSchemaProperties(s.properties),h=r.allSchemaProperties(s.patternProperties);function m(e){t.code(i._`delete ${l}[${e}]`)}function g(r){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!a.alwaysValidSchema(c,n)){const n=t.name("valid");"failing"===f.removeAdditional?(v(r,n,!1),t.if(i.not(n),()=>{e.reset(),m(r)})):(v(r,n),d||t.if(i.not(n),()=>t.break()))}}}function v(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,n=>{p.length||h.length?t.if(function(n){let o;if(p.length>8){const e=a.schemaRefOrVal(c,s.properties,"properties");o=r.isOwnProperty(t,e,n)}else o=p.length?i.or(...p.map(e=>i._`${n} === ${e}`)):i.nil;return h.length&&(o=i.or(o,...h.map(t=>i._`${r.usePattern(e,t)}.test(${n})`))),i.not(o)}(n),()=>g(n)):g(n)}),e.ok(i._`${u} === ${o.default.errors}`)}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,n]){return function(t,n){if(t>n||"exclusiveRange"===e&&t===n)throw new Error("There are no numbers in range")}(t,n),"range"===e?{minimum:t,maximum:n}:{exclusiveMinimum:t,exclusiveMaximum:n}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(t){if(0===t.length)return!0;if(1===t.length)return{required:t};return{["anyRequired"===e?"anyOf":"oneOf"]:t.map(e=>({required:[e]}))}},metaSchema:{type:"array",items:{type:"string"}}})}},function(e,t,n){var r=n(236),i=n(1150),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMIT_DATE=t.COMMIT_AUTHOR=void 0;t.COMMIT_AUTHOR="commit_author";t.COMMIT_DATE="commit_date"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SORTABLE_FIELDS=t.INFERABLE_FIELDS=t.IDENTIFIER_FIELDS=void 0;(r=n(0))&&r.__esModule;var r,i=n(9);t.IDENTIFIER_FIELDS=["title","path"];t.SORTABLE_FIELDS=["title","date","author","description"];const o={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>(0,i.jsx)("h1",null,e),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>(0,i.jsx)("h2",null,e),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>(0,i.jsx)("strong",null,e),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}};t.INFERABLE_FIELDS=o},function(e,t,n){var r=n(537),i=n(49);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(166),i=n(246),o=n(306),a=n(247),s=r((function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(240),i=n(536),o=n(191);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitUntil=i,t.waitUntilWithTimeout=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4,r=!1;const o=new Promise(n=>{e(i(t(n)))}),a=new Promise(e=>{setTimeout(()=>{r?e():(console.warn("Wait Action timed out"),e(null))},n)}),s=await Promise.race([o.then(e=>(r=!0,e)).catch(null),a]);return s};var r=n(532);function i(e){let{predicate:t,run:n}=e;return{type:r.WAIT_UNTIL_ACTION,predicate:t,run:n}}},function(e,t,n){var r=n(611),i=n(192),o=n(134),a=n(133);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPLOY_PREVIEW_SUCCESS=t.DEPLOY_PREVIEW_REQUEST=t.DEPLOY_PREVIEW_FAILURE=void 0,t.loadDeployPreview=function(e,t,n,r,l){return async(u,c)=>{const d=c(),f=(0,i.currentBackend)(d.config),p=e.get("name"),h=(0,o.selectDeployPreview)(d,p,t);if(!h||!h.isFetching){u(function(e,t){return{type:"DEPLOY_PREVIEW_REQUEST",payload:{collection:e,slug:t}}}(p,t));try{const i=r?f.getDeploy(e,t,n):await f.getDeployPreview(e,t,n,l);return u(i?function(e,t,n){const{url:r,status:i}=n;return{type:"DEPLOY_PREVIEW_SUCCESS",payload:{collection:e,slug:t,url:r,status:i}}}(p,t,i):s(p,t))}catch(e){console.error(e),u(a({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},kind:"danger",dismissAfter:8e3})),u(s(p,t))}}}};var r=n(165),i=n(145),o=n(121);const{notifSend:a}=r.actions;t.DEPLOY_PREVIEW_REQUEST="DEPLOY_PREVIEW_REQUEST";t.DEPLOY_PREVIEW_SUCCESS="DEPLOY_PREVIEW_SUCCESS";function s(e,t){return{type:"DEPLOY_PREVIEW_FAILURE",payload:{collection:e,slug:t}}}t.DEPLOY_PREVIEW_FAILURE="DEPLOY_PREVIEW_FAILURE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_SUCCESS=t.STATUS_REQUEST=t.STATUS_FAILURE=void 0,t.checkBackendStatus=function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e(s());const r=(0,i.currentBackend)(n.config),u=await r.status(),c="ui.toast.onBackendDown",d=n.notifs.filter(e=>{var t;return(null===(t=e.message)||void 0===t?void 0:t.key)===c});if(!1===u.api.status)return 0===d.length&&e(o({message:{details:u.api.statusPage,key:"ui.toast.onBackendDown"},kind:"danger"})),e(l(u));!0===u.api.status&&d.length>0&&d.forEach(t=>{e(a(t.id))});if(!1===u.auth.status){const t="ui.toast.onLoggedOut";n.notifs.find(e=>{var n;return(null===(n=e.message)||void 0===n?void 0:n.key)===t})||e(o({message:{key:"ui.toast.onLoggedOut"},kind:"danger"}))}e(l(u))}catch(t){e(u(t))}}},t.statusFailure=u,t.statusRequest=s,t.statusSuccess=l;var r=n(165),i=n(145);const{notifSend:o,notifDismiss:a}=r.actions;t.STATUS_REQUEST="STATUS_REQUEST";t.STATUS_SUCCESS="STATUS_SUCCESS";function s(){return{type:"STATUS_REQUEST"}}function l(e){return{type:"STATUS_SUCCESS",payload:{status:e}}}function u(e){return{type:"STATUS_FAILURE",payload:{error:e}}}t.STATUS_FAILURE="STATUS_FAILURE"},function(e,t,n){var r=n(236),i=n(239);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(179),i=n(0),o=n(1936),a=n(343),s=["children"];function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=0,f=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),p=Object(i.memo)((function(e){var t=e.children,n=l(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[f]||(i[f]={dragDropManager:Object(o.a)(e,t,n,r)});return i[f]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(c(e,s)),2),u=n[0],p=n[1];return Object(i.useEffect)((function(){if(p){var e=h();return++d,function(){0==--d&&(e[f]=null)}}}),[]),Object(r.jsx)(a.a.Provider,Object.assign({value:u},{children:t}),void 0)}));function h(){return void 0!==e?e:window}}).call(this,n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1187);t.AsapQueue=class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=r.makeRequestCall(this.flush),this.requestErrorThrow=r.makeRequestCallFromTimer(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1188);t.TaskFactory=class{create(e){const t=this.freeTasks,n=t.length?t.pop():new r.RawTask(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}},function(e,t,n){"use strict";function r(e,{target:t=document.body}={}){const n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const i=document.getSelection();let o=!1;i.rangeCount>0&&(o=i.getRangeAt(0)),t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}return n.remove(),o&&(i.removeAllRanges(),i.addRange(o)),r&&r.focus(),a}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};
/*!
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,i=n(528),o=(r=i)&&r.__esModule?r:{default:r},a=n(431);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){i=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},i=new r;t.default=i},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Waypoint",(function(){return m}));var r=n(45),i=n(487),o=n(0),a=n.n(o),s=n(761);function l(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}function u(e){return"string"==typeof e.type}var c;var d=[];function f(e){d.push(e),c||(c=setTimeout((function(){var e;for(c=null;e=d.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=d.indexOf(e);-1!==n&&(d.splice(n,1),!d.length&&c&&(clearTimeout(c),c=null))}}}var p="undefined"!=typeof window,h={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},m=function(t){function n(e){var n;return(n=t.call(this,e)||this).refElement=function(e){n._ref=e},n}Object(r.a)(n,t);var o=n.prototype;return o.componentDidMount=function(){var e=this;p&&(this.cancelOnNextTick=f((function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug;!function(e,t){if(e&&!u(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(i.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(i.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))},o.componentDidUpdate=function(){var e=this;p&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=f((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))},o.componentWillUnmount=function(){p&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},o._findScrollableAncestor=function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(n?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return i}return window},o._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?"invisible":e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?"inside":e.viewportBottom<e.waypointTop?"below":e.waypointTop<e.viewportTop?"above":"invisible"}(t),r=this._previousPosition,i=this.props,o=(i.debug,i.onPositionChange),a=i.onEnter,s=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var u={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};o.call(this,u),"inside"===n?a.call(this,u):"inside"===r&&s.call(this,u),l&&("below"===r&&"above"===n||"above"===r&&"below"===n)&&(a.call(this,{currentPosition:"inside",previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:"inside",event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}},o._getBounds=function(){var e,t,n=this.props,r=n.horizontal,i=(n.debug,this._ref.getBoundingClientRect()),o=i.left,a=i.top,s=i.right,u=i.bottom,c=r?o:a,d=r?s:u;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var f=this.props,p=f.bottomOffset;return{waypointTop:c,waypointBottom:d,viewportTop:t+l(f.topOffset,e),viewportBottom:t+e-l(p,e)}},o.render=function(){var e=this,t=this.props.children;if(!t)return a.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(u(t)||Object(s.isForwardRef)(t)){return a.a.cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}})}return a.a.cloneElement(t,{innerRef:this.refElement})},n}(a.a.PureComponent);m.above="above",m.below="below",m.inside="inside",m.invisible="invisible",m.defaultProps=h,m.displayName="Waypoint"}.call(this,n(56))},function(e,t,n){"use strict";n.r(t),n.d(t,"VariableSizeGrid",(function(){return S})),n.d(t,"VariableSizeList",(function(){return I})),n.d(t,"FixedSizeGrid",(function(){return M})),n.d(t,"FixedSizeList",(function(){return L})),n.d(t,"areEqual",(function(){return N})),n.d(t,"shouldComponentUpdate",(function(){return F}));var r=n(11),i=n(45),o=n(30),a=n(114),s=n(0),l=n(46),u="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function c(e){cancelAnimationFrame(e.id)}function d(e,t){var n=u();var r={id:requestAnimationFrame((function i(){u()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var f=-1;var p=null;function h(e){if(void 0===e&&(e=!1),null===p||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?p="positive-descending":(t.scrollLeft=1,p=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),p}return p}var m=function(e){var t=e.columnIndex;e.data;return e.rowIndex+":"+t};function g(e){var t,n,l=e.getColumnOffset,u=e.getColumnStartIndexForOffset,p=e.getColumnStopIndexForStartIndex,g=e.getColumnWidth,y=e.getEstimatedTotalHeight,b=e.getEstimatedTotalWidth,_=e.getOffsetForColumnAndAlignment,w=e.getOffsetForRowAndAlignment,x=e.getRowHeight,k=e.getRowOffset,E=e.getRowStartIndexForOffset,S=e.getRowStopIndexForStartIndex,O=e.initInstanceProps,C=e.shouldResetStyleCacheOnItemSizeChange,T=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=O(n.props,Object(o.a)(Object(o.a)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(a.a)((function(e,t,r,i,o,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Object(a.a)((function(e,t,r,i,o){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,i=n.props,o=i.columnWidth,a=i.direction,s=i.rowHeight,u=n._getItemStyleCache(C&&o,C&&a,C&&s),c=e+":"+t;if(u.hasOwnProperty(c))r=u[c];else{var d=l(n.props,t,n._instanceProps),f="rtl"===a;u[c]=r={position:"absolute",left:f?void 0:d,right:f?d:void 0,top:k(n.props,e,n._instanceProps),height:x(n.props,e,n._instanceProps),width:g(n.props,t,n._instanceProps)}}return r},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(a.a)((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=n.props.direction,u=o;if("rtl"===t)switch(h()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&c(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=d(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return v(e,t),T(e),null};var n=t.prototype;return n.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,s=o.height,l=o.rowCount,u=o.width,c=this.state,d=c.scrollLeft,p=c.scrollTop,h=function(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,l-1)));var m=y(this.props,this._instanceProps),g=b(this.props,this._instanceProps)>u?h:0,v=m>s?h:0;this.scrollTo({scrollLeft:void 0!==r?_(this.props,r,n,d,this._instanceProps,v):d,scrollTop:void 0!==i?w(this.props,i,n,p,this._instanceProps,g):p})},n.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(h()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,f=e.itemKey,p=void 0===f?m:f,h=e.outerElementType,g=e.outerTagName,v=e.rowCount,_=e.style,w=e.useIsScrolling,x=e.width,k=this.state.isScrolling,E=this._getHorizontalRangeToRender(),S=E[0],O=E[1],C=this._getVerticalRangeToRender(),T=C[0],A=C[1],P=[];if(i>0&&v)for(var R=T;R<=A;R++)for(var j=S;j<=O;j++)P.push(Object(s.createElement)(t,{columnIndex:j,data:d,isScrolling:w?k:void 0,key:p({columnIndex:j,data:d,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,j)}));var I=y(this.props,this._instanceProps),M=b(this.props,this._instanceProps);return Object(s.createElement)(h||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},_)},Object(s.createElement)(u||c||"div",{children:P,ref:l,style:{height:I,pointerEvents:k?"none":void 0,width:M}}))},n._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],f=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,s,d,f,l,u,p,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(v,y,g,_,b)}},n._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,i=e.overscanCount,o=e.rowCount,a=this.state,s=a.horizontalScrollDirection,l=a.isScrolling,c=a.scrollLeft,d=n||r||i||1;if(0===t||0===o)return[0,0,0,0];var f=u(this.props,c,this._instanceProps),h=p(this.props,f,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,d),g=l&&"forward"!==s?1:Math.max(1,d);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},n._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=E(this.props,u,this._instanceProps),f=S(this.props,d,u,this._instanceProps),p=s&&"backward"!==l?1:Math.max(1,c),h=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-p),Math.max(0,Math.min(o-1,f+h)),d,f]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var v=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},y=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},b=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},_=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},w=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?x(e,t,n,o,0,r):k(e,t,n,Math.max(0,o),r)},x=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=_(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},k=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&_(e,t,r,n).offset<i;)r+=a,a*=2;return x(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},E=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=_(e,t,n,o),u="column"===e?b(t,o):y(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);case"auto":default:return i>=d&&i<=c?i:d>c||i<d?d:c}},S=g({getColumnOffset:function(e,t,n){return _("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return w("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=_("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:y,getEstimatedTotalWidth:b,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return E("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return E("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return _("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return w("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=_("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=_("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),O=function(e,t){return e};function C(e){var t,n,l=e.getItemOffset,u=e.getEstimatedTotalSize,f=e.getItemSize,p=e.getOffsetForIndexAndAlignment,m=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,v=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=v(n.props,Object(o.a)(Object(o.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(o.a)(Object(o.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Object(a.a)((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=Object(a.a)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,s=n._getItemStyleCache(y&&o,y&&a,y&&i);if(s.hasOwnProperty(e))t=s[e];else{var u=l(n.props,e,n._instanceProps),c=f(n.props,e,n._instanceProps),d="horizontal"===i||"horizontal"===a,p="rtl"===i,h=d?u:0;s[e]=t={position:"absolute",left:p?void 0:h,right:p?h:void 0,top:d?0:u,height:d?"100%":c,width:d?c:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Object(a.a)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(h()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&c(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=d(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return T(e,t),b(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(p(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(h()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&c(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,f=e.itemData,p=e.itemKey,h=void 0===p?O:p,m=e.layout,g=e.outerElementType,v=e.outerTagName,y=e.style,b=e.useIsScrolling,_=e.width,w=this.state.isScrolling,x="horizontal"===i||"horizontal"===m,k=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),S=E[0],C=E[1],T=[];if(d>0)for(var A=S;A<=C;A++)T.push(Object(s.createElement)(t,{data:f,key:h(A,f),index:A,isScrolling:b?w:void 0,style:this._getItemStyle(A)}));var P=u(this.props,this._instanceProps);return Object(s.createElement)(g||v||"div",{className:n,onScroll:k,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:o,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},Object(s.createElement)(l||c||"div",{children:T,ref:a,style:{height:x?"100%":P,pointerEvents:w?"none":void 0,width:x?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=m(this.props,a,this._instanceProps),l=g(this.props,s,a,this._instanceProps),u=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-u),Math.max(0,Math.min(t-1,l+c)),s,l]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var T=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},A=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},P=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=A(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&A(e,n,t).offset<r;)n+=o,o*=2;return P(e,t,Math.min(n,i-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},I=C({getItemOffset:function(e,t,n){return A(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,i){var o=e.direction,a=e.height,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:a,c=A(e,t,i),d=j(e,i),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch("smart"===n&&(n=r>=p-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return p;case"center":return Math.round(p+(f-p)/2);case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?P(e,t,i,0,n):R(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=A(e,t,r),d=n+u,f=c.offset+c.size,p=t;p<a-1&&f<d;)p++,f+=A(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),M=g({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){var a=e.columnCount,s=e.columnWidth,l=e.width,u=Math.max(0,a*s-l),c=Math.min(u,t*s),d=Math.max(0,t*s-l+o+s);switch("smart"===n&&(n=r>=d-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(l/2)?0:f>u+Math.floor(l/2)?u:f;case"auto":default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){var a=e.rowHeight,s=e.height,l=e.rowCount,u=Math.max(0,l*a-s),c=Math.min(u,t*a),d=Math.max(0,t*a-s+o+a);switch("smart"===n&&(n=r>=d-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var f=Math.round(d+(c-d)/2);return f<Math.ceil(s/2)?0:f>u+Math.floor(s/2)?u:f;case"auto":default:return r>=d&&r<=c?r:d>c||r<d?d:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,i=e.columnCount,o=e.width,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,i=e.rowCount,o=e.height,a=t*r,s=Math.ceil((o+n-a)/r);return Math.max(0,Math.min(i-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),L=C({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,l=e.layout,u=e.width,c="horizontal"===i||"horizontal"===l?u:o,d=Math.max(0,a*s-c),f=Math.min(d,t*s),p=Math.max(0,t*s-c+s);switch("smart"===n&&(n=r>=p-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return p;case"center":var h=Math.round(p+(f-p)/2);return h<Math.ceil(c/2)?0:h>d+Math.floor(c/2)?d:h;case"auto":default:return r>=p&&r<=f?r:r<p?p:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,u=t*a,c="horizontal"===r||"horizontal"===s?l:i,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(o-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function D(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function N(e,t){var n=e.style,r=Object(l.a)(e,["style"]),i=t.style,o=Object(l.a)(t,["style"]);return!D(n,i)&&!D(r,o)}function F(e,t){return!N(this.props,e)||D(this.state,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(21)),i=d(n(2)),o=d(n(0)),a=d(n(33)),s=n(51),l=n(17),u=d(n(1227)),c=n(9);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e18jbcla0",label:"PaginationMessage"})("width:",l.lengths.topCardWidth,";padding:16px;text-align:center;"),p=(0,r.default)(f,{target:"e18jbcla1",label:"NoEntriesMessage"})({name:"1yuhvjn",styles:"margin-top:16px;"});function h(e){var t;let{collections:n,entries:r,isFetching:i,viewStyle:a,cursor:s,handleCursorActions:d,t:h,page:m}=e;const g=[h("collection.entries.loadingEntries"),h("collection.entries.cachingEntries"),h("collection.entries.longerLoading")];if(i&&void 0===m)return(0,c.jsx)(l.Loader,{active:!0},g);return r&&r.size>0||(null==s||null===(t=s.actions)||void 0===t?void 0:t.has("append_next"))?(0,c.jsx)(o.default.Fragment,null,(0,c.jsx)(u.default,{collections:n,entries:r,viewStyle:a,cursor:s,handleCursorActions:d,page:m}),i&&void 0!==m&&r.size>0?(0,c.jsx)(f,null,h("collection.entries.loadingEntries")):null):(0,c.jsx)(p,null,h("collection.entries.noEntries"))}h.propTypes={collections:a.default.iterable.isRequired,entries:a.default.list,page:i.default.number,isFetching:i.default.bool,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,t:i.default.func.isRequired};var m=(0,s.translate)()(h);t.default=m},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return o(r).default}});var i=n(12);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return o(i).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(i),a=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.panes={},r.registerPane=function(e,t){t.forEach((function(t){r.panes[t]||(r.panes[t]=[]),r.findPane(e,t)||(r.panes[t].length>0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))})),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach((function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))}))},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find((function(t){return t===e}))},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame((function(){r.syncScrollPositions(e,t)}))},r.syncScrollPositions=function(e,t){t.forEach((function(n){r.panes[n].forEach((function(i){e!==i&&(r.removeEvents(i,n),r.syncScrollPosition(e,i),window.requestAnimationFrame((function(){r.addEvents(i,t)})))}))})),r.props.onSync&&r.props.onSync(e)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getChildContext",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight,o=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,l=r-i,u=a-s,c=this.props,d=c.proportional,f=c.vertical,p=c.horizontal,h=t.scrollHeight-i,m=t.scrollWidth-s;f&&l>0&&(t.scrollTop=d?h*n/l:n),p&&u>0&&(t.scrollLeft=d?m*o/u:o)}},{key:"render",value:function(){return o.default.Children.only(this.props.children)}}]),t}(i.Component);c.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},c.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},c.childContextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=c,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(6),i=n(7),o=n(8),a=n(9),s=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(r.thatReturnsNull),arrayOf:function(e){return d((function(t,n,r,i,o){if("function"!=typeof e)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new c("Invalid "+i+" `"+o+"` of type `"+h(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,o+"["+l+"]",a);if(u instanceof Error)return u}return null}))},element:d((function(t,n,r,i,o){var a=t[n];return e(a)?null:new c("Invalid "+i+" `"+o+"` of type `"+h(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return d((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||"<<anonymous>>";return new c("Invalid "+i+" `"+o+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:"<<anonymous>>")+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:d((function(e,t,n,r,i){return p(e[t])?null:new c("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return d((function(t,n,r,i,o){if("function"!=typeof e)return new c("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=h(s);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var d=e(s,u,r,i,o+"."+u,a);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?d((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(l=a,u=e[s],l===u?0!==l||1/l==1/u:l!=l&&u!=u)return null;var l,u;return new c("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return o(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",g(i),n),r.thatReturnsNull}return d((function(t,n,r,i,o){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,o,a))return null;return new c("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return d((function(t,n,r,i,o){var s=t[n],l=h(s);if("object"!==l)return new c("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var d=e[u];if(d){var f=d(s,u,r,i,o+"."+u,a);if(f)return f}}return null}))}};function c(e){this.message=e,this.stack=""}function d(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,u,d,f,p,h,m){if(f=f||"<<anonymous>>",h=h||d,m!==a)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=f+":"+d;!r[g]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,f),r[g]=!0,s++)}return null==u[d]?l?null===u[d]?new c("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `null`."):new c("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,p,h)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function f(e){return d((function(t,n,r,i,o,a){var s=t[n];return h(s)!==e?new c("Invalid "+i+" `"+o+"` of type `"+m(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function p(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(p);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!p(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!p(o[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function m(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function g(e){var t=m(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return c.prototype=Error.prototype,u.checkPropTypes=s,u.PropTypes=u,u}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,l){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r,i=n(6);"production"!==t.env.NODE_ENV&&(r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}},i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[t].concat(i))}}),e.exports=i}).call(t,n(4))},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(7),i=n(8),o=n(9),a={};e.exports=function(e,n,s,l,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,c),d=e[c](n,c,l,s,null,o)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),i=n(7),o=n(9);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=s(n(13)),a=s(n(3));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.toArray=function(e){return[].concat(e)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.node=this.props.attachTo||o.default.findDOMNode(this),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component);c.propTypes={children:a.default.node.isRequired,attachTo:a.default.object,group:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string)]),enabled:a.default.bool},c.defaultProps={group:"default",enabled:!0},c.contextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=c,e.exports=t.default},function(e,n){e.exports=t}])},e.exports=r(n(0),n(54))},function(e,t,n){var r=n(133),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){"use strict";e.exports=n(1246)},function(e,t,n){"use strict";var r={}.hasOwnProperty;function i(e){return e&&"object"==typeof e||(e={}),a(e.line)+":"+a(e.column)}function o(e){return e&&"object"==typeof e||(e={}),i(e.start)+"-"+i(e.end)}function a(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return"";if(r.call(e,"position")||r.call(e,"type"))return o(e.position);if(r.call(e,"start")||r.call(e,"end"))return o(e);if(r.call(e,"line")||r.call(e,"column"))return i(e);return""}},function(e,t,n){"use strict";e.exports=function(e){if(e)throw e}},function(e,t,n){"use strict";var r=n(1255);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var l=e[++t],u=i.call(arguments,0),c=u.slice(1),d=n.length,f=-1;if(s)o(s);else{for(;++f<d;)null!==c[f]&&void 0!==c[f]||(c[f]=n[f]);n=c,l?r(l,a).apply(null,n):o.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},function(e,t,n){"use strict";var r={}.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"==typeof e[t]?e[t].length:1;return n}},function(e,t,n){"use strict";var r=n(262),i=n(151),o=n(201);function a(e,t){for(var n,r,o,a,s,l,u=e[t][1],c=e[t][2],d=t-1,f=[],p=u._tokenizer||c.parser[u.contentType](u.start),h=p.events,m=[],g={};u;){for(;e[++d][1]!==u;);f.push(d),u._tokenizer||(n=c.sliceStream(u),u.next||n.push(null),r&&p.defineSkip(u.start),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),u.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=u,u=u.next}for(u=r,o=h.length;o--;)"enter"===h[o][0]?a=!0:a&&h[o][1].type===h[o-1][1].type&&h[o][1].start.line!==h[o][1].end.line&&(v(h.slice(o+1,s)),u._tokenizer=u.next=void 0,u=u.previous,s=o+1);for(p.events=u._tokenizer=u.next=void 0,v(h.slice(0,s)),o=-1,l=0;++o<m.length;)g[l+m[o][0]]=l+m[o][1],l+=m[o][1]-m[o][0]-1;return g;function v(t){var n=f.pop();m.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,l,u,c,d,f={},p=-1;++p<e.length;){for(;p in f;)p=f[p];if(t=e[p],p&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[p-1][1].type&&((s=0)<(c=t[1]._tokenizer.events).length&&"lineEndingBlank"===c[s][1].type&&(s+=2),s<c.length&&"content"===c[s][1].type))for(;++s<c.length&&"content"!==c[s][1].type;)"chunkText"===c[s][1].type&&(c[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(f,a(e,p)),p=f[p],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=p,n=void 0;s--&&("lineEnding"===(l=e[s])[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(n&&(e[n][1].type="lineEndingBlank"),l[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(u=e.slice(n,p)).unshift(t),i(e,n,p-n+1,u))}}return!d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(262),i=n(201),o=l("text"),a=l("string"),s={resolveAll:u()};function l(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:u("text"===e?c:void 0)}}function u(e){return function(t,n){var r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function c(e,t){for(var n,o,a,s,l,u,c,d,f=-1;++f<=e.length;)if((f===e.length||"lineEnding"===e[f][1].type)&&"data"===e[f-1][1].type){for(o=e[f-1][1],s=(n=t.sliceStream(o)).length,l=-1,u=0,c=void 0;s--;)if("string"==typeof(a=n[s])){for(l=a.length;32===a.charCodeAt(l-1);)u++,l--;if(l)break;l=-1}else if(-2===a)c=!0,u++;else if(-1!==a){s++;break}u&&(d={type:f===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-u,offset:o.end.offset-u,_index:o.start._index+s,_bufferIndex:s?l:o.start._bufferIndex+l},end:i(o.end)},o.end=i(d.start),o.start.offset===o.end.offset?r(o,d):(e.splice(f,0,["enter",d,t],["exit",d,t]),f+=2)),f++}return e}t.resolver=s,t.string=a,t.text=o},function(e,t,n){"use strict";var r=n(632),i=n(151),o=n(436);function a(e,t){var n,i,a,l;for(n in t)for(l in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[l]=s(o(a[l]),r.call(i,l)?i[l]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},function(e,t,n){"use strict";var r=n(152),i=n(438),o=n(439);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},function(e,t,n){"use strict";var r=n(174)(/\d/);e.exports=r},function(e,t,n){"use strict";var r=n(440),i=n(152),o=n(61);e.exports=function(e,t,n,a,s,l,u,c,d){var f=d||1/0,p=0;return function(t){if(60===t)return e.enter(a),e.enter(s),e.enter(l),e.consume(t),e.exit(l),h;if(r(t)||41===t)return n(t);return e.enter(a),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),v(t)};function h(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(o){return 40===o?++p>f?n(o):(e.consume(o),v):41===o?p--?(e.consume(o),v):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):null===o||i(o)?p?n(o):(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},function(e,t,n){"use strict";var r=n(61),i=n(150);e.exports=function(e,t,n,o,a,s){var l,u=this,c=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(i){return null===i||91===i||93===i&&!l||94===i&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs||c>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(i))}function f(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),d(t)):(e.consume(t),l=l||!i(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}}},function(e,t,n){"use strict";var r=n(61),i=n(150),o=n(68);e.exports=function(e,t){var n;return function a(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a;if(i(s))return o(e,a,n?"linePrefix":"lineSuffix")(s);return t(s)}}},function(e,t,n){"use strict";var r=n(61),i=n(68);e.exports=function(e,t,n,o,a,s){var l;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),l=40===t?41:t,u};function u(n){return n===l?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),c(n))}function c(t){return t===l?(e.exit(s),u(l)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||r(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?f:d)}function f(t){return t===l||92===t?(e.consume(t),d):d(t)}}},function(e,t,n){"use strict";var r=n(61),i=n(150),o=n(68),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,l(t)};function l(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):i(c)?o(e,l,"whitespace")(c):s<3||null!==c&&!r(c)?n(c):(e.exit("thematicBreak"),t(c))}function u(t){return t===a?(e.consume(t),s++,u):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=a},function(e,t,n){"use strict";e.exports=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler;return("function"==typeof r?r:a)(e,t,n)};var r=n(110),i=n(99),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",l=-1;"number"==typeof t.start&&1!==t.start&&(a.start=t.start);n=i(e,t),o=n.length;for(;++l<o;)if(n[l].properties.className&&-1!==n[l].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(265),i=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);-1===n.indexOf(i)&&n.push(i);return e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(110)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+l);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l));return n};var r=n(110),i=n(99)},function(e,t,n){"use strict";var r=n(62),i=n(651);e.exports=function(e){var t,n,o=e.length,a=[],s=[],l=-1;for(;++l<o;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},function(e,t,n){"use strict";e.exports=i;var r=i.prototype;function i(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}r.space=null,r.normal={},r.property={}},function(e,t,n){"use strict";var r=n(222);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},function(e,t,n){"use strict";var r=n(654),i=n(329);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var u,c=-1;for(l(this,"space",s),r.call(this,e,t);++c<a;)l(this,u=o[c],(n&i[u])===i[u])}function l(e,t,n){n&&(e[t]=n)}},function(e,t,n){"use strict";e.exports=i;var r=i.prototype;function i(e,t){this.property=e,this.attribute=t}r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1},function(e,t,n){"use strict";var r=n(222);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},function(e,t,n){"use strict";var r=n(222),i=n(657);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},function(e,t,n){"use strict";var r=n(658);e.exports=function(e,t){return r(e,t.toLowerCase())}},function(e,t,n){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},function(e,t,n){"use strict";var r=n(329),i=n(222),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},function(e,t){e.exports=function(e,t,n){var r,i,o,a=e.children||[],s=[],l=-1,u=n.before;for(;++l<a.length;)o=a[l],l+1<a.length?((i=t.handle.handlers[a[l+1].type])&&i.peek&&(i=i.peek),r=i?i(a[l+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===u||"\n"===u)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),u=" "),s.push(t.handle(o,e,t,{before:u,after:r})),u=s[s.length-1].slice(-1);return s.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1372);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}});var i=n(662);Object.defineProperty(t,"FrameContext",{enumerable:!0,get:function(){return i.FrameContext}}),Object.defineProperty(t,"FrameContextConsumer",{enumerable:!0,get:function(){return i.FrameContextConsumer}}),Object.defineProperty(t,"useFrame",{enumerable:!0,get:function(){return i.useFrame}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.useFrame=t.FrameContext=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0;"undefined"!=typeof document&&(a=document),"undefined"!=typeof window&&(s=window);var l=t.FrameContext=o.default.createContext({document:a,window:s}),u=(t.useFrame=function(){return o.default.useContext(l)},l.Provider),c=l.Consumer;t.FrameContextProvider=u,t.FrameContextConsumer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(268),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1uivwef0",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"});class f extends i.default.Component{constructor(){super(...arguments),c(this,"state",{}),c(this,"handleLogin",e=>{e.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})})}componentDidMount(){this.auth=new a.ImplicitAuthenticator({base_url:"https://login.microsoftonline.com/"+this.props.config.backend.tenant_id,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?alert(e):this.props.onLogin(t)})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"azure"}),n(e?"auth.loggingIn":"auth.loginWithAzure")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNonce=function(){const e=(0,i.default)();return window.sessionStorage.setItem("netlify-cms-auth",JSON.stringify({nonce:e})),e},t.isInsecureProtocol=function(){return"https:"!==document.location.protocol&&"localhost"!==document.location.hostname&&"127.0.0.1"!==document.location.hostname},t.validateNonce=function(e){const t=window.sessionStorage.getItem("netlify-cms-auth"),n=t&&JSON.parse(t).nonce;return window.localStorage.removeItem("netlify-cms-auth"),e===n};var r,i=(r=n(169))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r=c(n(123)),i=c(n(122)),o=c(n(446)),a=c(n(173)),s=n(447),l=n(40),u=n(98);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h="Azure DevOps";t.API_NAME=h;var m,g,v,y,b,_;function w(e){return new Promise(t=>setTimeout(t,e))}function x(e){switch(e.action){case g.ADD:return{changeType:g.ADD,item:{path:e.path},newContent:{content:e.base64Content,contentType:v.BASE64}};case g.EDIT:return{changeType:g.EDIT,item:{path:e.path},newContent:{content:e.base64Content,contentType:v.BASE64}};case g.DELETE:return{changeType:g.DELETE,item:{path:e.path}};case g.RENAME:return{changeType:g.RENAME,item:{path:e.path},sourceServerItem:e.oldPath};default:return{}}}!function(e){e.ERROR="error",e.FAILED="failed",e.NOT_APPLICABLE="notApplicable",e.NOT_SET="notSet",e.PENDING="pending",e.SUCCEEDED="succeeded"}(m||(m={})),function(e){e.ADD="add",e.DELETE="delete",e.RENAME="rename",e.EDIT="edit"}(g||(g={})),function(e){e.BASE64="base64encoded"}(v||(v={})),function(e){e.ACTIVE="active",e.COMPLETED="completed",e.ABANDONED="abandoned"}(y||(y={})),function(e){e.CONFLICTS="conflicts",e.FAILURE="failure",e.QUEUED="queued",e.REJECTED="rejectedByPolicy",e.SUCCEEDED="succeeded"}(b||(b={})),function(e){e.BLOB="blob",e.TREE="tree"}(_||(_={}));t.default=class{constructor(e,t){var n=this;p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"branch",void 0),p(this,"mergeStrategy",void 0),p(this,"endpointUrl",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"withHeaders",e=>l.unsentRequest.withHeaders({Authorization:"Bearer "+this.token,"Content-Type":"application/json; charset=utf-8"},e)),p(this,"withAzureFeatures",e=>{if(e.hasIn(["params","api-version"]))return e;return l.unsentRequest.withParams({"api-version":""+this.apiVersion},e)}),p(this,"buildRequest",e=>{const t=this.withHeaders(e),n=this.withAzureFeatures(t);if(n.has("cache"))return n;return l.unsentRequest.withNoCache(n)}),p(this,"request",e=>{try{return(0,l.requestWithBackoff)(this,e)}catch(e){throw new l.APIError(e.message,null,h)}}),p(this,"responseToJSON",(0,l.responseParser)({format:"json",apiName:h})),p(this,"responseToBlob",(0,l.responseParser)({format:"blob",apiName:h})),p(this,"responseToText",(0,l.responseParser)({format:"text",apiName:h})),p(this,"requestJSON",e=>this.request(e).then(this.responseToJSON)),p(this,"requestText",e=>this.request(e).then(this.responseToText)),p(this,"toBase64",e=>Promise.resolve(s.Base64.encode(e))),p(this,"fromBase64",e=>s.Base64.decode(e)),p(this,"branchToRef",e=>"refs/heads/"+e),p(this,"refToBranch",e=>e.slice("refs/heads/".length)),p(this,"user",async()=>{var e,t,n,r,i,o,a;const s=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{"api-version":"6.1-preview.2"}}),l=null===(e=s.coreAttributes)||void 0===e||null===(t=e.DisplayName)||void 0===t?void 0:t.value,u=null===(n=s.coreAttributes)||void 0===n||null===(r=n.EmailAddress)||void 0===r?void 0:r.value;return{name:l||u||"",avatar_url:"data:image/png;base64,"+(null===(i=s.coreAttributes)||void 0===i||null===(o=i.Avatar)||void 0===o||null===(a=o.value)||void 0===a?void 0:a.value),email:u}}),p(this,"readFile",(function(e,t){let{parseText:r=!0,branch:i=n.branch}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=()=>n.request({url:n.endpointUrl+"/items/",params:{version:i,path:e},cache:"no-store"}).then(r?n.responseToText:n.responseToBlob);return(0,l.readFile)(t,o,l.localForage,r)})),p(this,"listFiles",(async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.branch;try{const{value:o}=await n.requestJSON({url:n.endpointUrl+"/items/",params:{version:i,scopePath:e,recursionLevel:t?"full":"oneLevel"}});return o.filter(e=>e.gitObjectType===_.BLOB).map(e=>({id:e.objectId,path:(0,r.default)(e.path,"/"),name:(0,u.basename)(e.path)}))}catch(e){if(e&&404===e.status)return console.log("This 404 was expected and handled appropriately."),[];throw e}}));const{repo:o}=e,a=(0,i.default)(e.apiRoot,"/");this.endpointUrl=`${a}/${o.org}/${o.project}/_apis/git/repositories/${o.repoName}`,this.token=t,this.branch=e.branch,this.mergeStrategy=e.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=e.initialWorkflowStatus,this.apiVersion=e.apiVersion,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){let{branch:n=this.branch}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await(0,l.readFileMetadata)(t,async()=>{try{const{value:t}=await this.requestJSON({url:this.endpointUrl+"/commits/",params:{"searchCriteria.itemPath":e,"searchCriteria.itemVersion.version":n,"searchCriteria.$top":1}}),[r]=t;return{author:r.author.name||r.author.email,updatedOn:r.author.date}}catch(e){return{author:"",updatedOn:""}}},l.localForage)}async getRef(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.branch;const{value:t}=await this.requestJSON({url:this.endpointUrl+"/refs",params:{$top:"1",filter:"heads/"+e}});return t.find(t=>t.name==this.branchToRef(e))}async deleteRef(e){const t=[{name:e.name,oldObjectId:e.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:this.endpointUrl+"/refs",body:JSON.stringify(t)})}async uploadAndCommit(e,t,n,r){const i=await this.getRef(r?this.branch:n),o={refUpdates:[{name:this.branchToRef(n),oldObjectId:i.objectId}],commits:[{comment:t,changes:e.map(e=>x(e))}]};return this.requestJSON({url:this.endpointUrl+"/pushes",method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(e){var t,n;const{collection:i,slug:o}=(0,l.parseContentKey)(e),a=(0,l.branchFromContentKey)(e),s=await this.getBranchPullRequest(a),u=await this.getDifferences(s.sourceRefName),c=await Promise.all(u.map(async e=>{const t=(0,r.default)(e.item.path,"/"),n=e.changeType===g.ADD;return{id:e.item.objectId,path:t,newFile:n}})),d=s.labels.find(e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)),f=d&&d.name?d.name:this.cmsLabelPrefix;return{collection:i,slug:o,status:(0,l.labelToStatus)(f,this.cmsLabelPrefix),diffs:c,updatedAt:s.closedDate?s.closedDate:s.creationDate,pullRequestAuthor:(null===(t=s.createdBy)||void 0===t?void 0:t.displayName)||(null===(n=s.createdBy)||void 0===n?void 0:n.uniqueName)}}async getPullRequestStatues(e){const{value:t}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${e.pullRequestId}/commits`,params:{$top:1}}),{value:n}=await this.requestJSON({url:`${this.endpointUrl}/commits/${t[0].commitId}/statuses`,params:{latestOnly:!0}});return n}async getStatuses(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);return(await this.getPullRequestStatues(i)).map(e=>{let{context:t,state:n,targetUrl:r}=e;return{context:t.name,state:n===m.SUCCEEDED?l.PreviewState.Success:l.PreviewState.Other,target_url:r}})}async getCommitItems(e,t){const n=await Promise.all(e.map(async e=>{const[n,r]=await Promise.all([(0,o.default)(e,"toBase64",(0,a.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]),i=e.newPath||e.path,s=e.path,l=i!==s?g.RENAME:g.EDIT;return{action:r?l:g.ADD,base64Content:n,path:i,oldPath:s}}));for(const e of n.filter(e=>e.oldPath&&e.action===g.RENAME)){const r=(0,u.dirname)(e.oldPath),i=(0,u.dirname)(e.path);(await this.listFiles(r,!0,t)).filter(t=>t.path!==e.oldPath).forEach(e=>{n.push({action:g.RENAME,path:e.path.replace(r,i),oldPath:e.path})})}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,n.commitMessage,this.branch,!0)}}async deleteFiles(e,t){const n=await this.getRef(this.branch),r={refUpdates:[{name:n.name,oldObjectId:n.objectId}],commits:[{comment:t,changes:e.map(e=>x({action:g.DELETE,path:e}))}]};return this.requestJSON({url:this.endpointUrl+"/pushes",method:"POST",body:JSON.stringify(r)})}async getPullRequests(e){const{value:t}=await this.requestJSON({url:this.endpointUrl+"/pullrequests",params:f({"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1},e?{"searchCriteria.sourceRefName":this.branchToRef(e)}:{})});return t.filter(e=>e.labels.some(e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)))}async listUnpublishedBranches(){return(await this.getPullRequests()).map(e=>this.refToBranch(e.sourceRefName))}async isFileExists(e,t){try{return await this.requestText({url:this.endpointUrl+"/items/",params:{version:t,path:e},cache:"no-store"}),!0}catch(e){if(e instanceof l.APIError&&404===e.status)return!1;throw e}}async createPullRequest(e,t,n){const r={sourceRefName:this.branchToRef(e),targetRefName:this.branchToRef(this.branch),title:t,description:l.DEFAULT_PR_BODY,labels:[{name:(0,l.statusToLabel)(n,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:this.endpointUrl+"/pullrequests",params:{supportsIterations:!1},body:JSON.stringify(r)})}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new l.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){return(await this.requestJSON({url:this.endpointUrl+"/diffs/commits",params:{baseVersion:this.branch,targetVersion:this.refToBranch(e)}})).changes.filter(e=>e.item.gitObjectType===_.BLOB&&Object.values(g).includes(e.changeType))}async editorialWorkflowGit(e,t,n){const r=(0,l.generateContentKey)(n.collectionName,t),i=(0,l.branchFromContentKey)(r);if(n.unpublished||!1){const t=await this.getCommitItems(e,i);await this.uploadAndCommit(t,n.commitMessage,i,!1)}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,n.commitMessage,i,!0),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,l.generateContentKey)(e,t),i=(0,l.branchFromContentKey)(r),o=await this.getBranchPullRequest(i),a=[...o.labels.filter(e=>!(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix)).map(e=>e.name),(0,l.statusToLabel)(n,this.cmsLabelPrefix)];await this.updatePullRequestLabels(o,a)}async deleteUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.abandonPullRequest(i)}async publishUnpublishedEntry(e,t){const n=(0,l.generateContentKey)(e,t),r=(0,l.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.completePullRequest(i)}async updatePullRequestLabels(e,t){const n=e.labels.filter(e=>(0,l.isCMSLabel)(e.name,this.cmsLabelPrefix));await Promise.all(n.map(t=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels/${encodeURIComponent(t.id)}`}))),await Promise.all(t.map(t=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}/labels`,body:JSON.stringify({name:t})})))}async completePullRequest(e){const t={status:y.COMPLETED,lastMergeSourceCommit:e.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:l.MERGE_COMMIT_MESSAGE,mergeStrategy:this.mergeStrategy}};let n=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)});let r=1;for(;n.mergeStatus===b.QUEUED&&r<=10;)await w(500),n=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`}),r+=1}async abandonPullRequest(e){const t={status:y.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(e.pullRequestId)}`,body:JSON.stringify(t)}),await this.deleteRef({name:e.sourceRefName,objectId:e.lastMergeSourceCommit.commitId})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(268),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)(s.Icon,{target:"e191r7590",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"}),p=(0,r.default)("div",{target:"e191r7591",label:"ForkApprovalContainer"})({name:"1u9l27n",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;flex-grow:0.2;"}),h=(0,r.default)("div",{target:"e191r7592",label:"ForkButtonsContainer"})({name:"1r81mxl",styles:"display:flex;flex-flow:column nowrap;justify-content:space-around;align-items:center;"});class m extends i.default.Component{constructor(){super(...arguments),d(this,"state",{}),d(this,"getPermissionToFork",()=>new Promise((e,t)=>{this.setState({requestingFork:!0,approveFork:()=>{this.setState({requestingFork:!1}),e()},refuseFork:()=>{this.setState({requestingFork:!1}),t()}})})),d(this,"handleLogin",e=>{e.preventDefault();const t={base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint},n=new a.NetlifyAuthenticator(t),{open_authoring:r=!1,auth_scope:i=""}=this.props.config.backend,o=i||(r?"public_repo":"repo");n.authenticate({provider:"github",scope:o},(e,t)=>{if(!e)return r?this.loginWithOpenAuthoring(t).then(()=>this.props.onLogin(t)):void this.props.onLogin(t);this.setState({loginError:e.toString()})})}),d(this,"renderLoginButton",()=>{const{inProgress:e,t:t}=this.props;return e||this.state.findingFork?t("auth.loggingIn"):(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(f,{type:"github"}),t("auth.loginWithGitHub"))})}loginWithOpenAuthoring(e){const{backend:t}=this.props;return this.setState({findingFork:!0}),t.authenticateWithFork({userData:e,getPermissionToFork:this.getPermissionToFork}).catch(e=>{throw this.setState({findingFork:!1}),console.error(e),e})}getAuthenticationPageRenderArgs(){const{requestingFork:e}=this.state;if(e){const{approveFork:e,refuseFork:t}=this.state;return{renderPageContent:n=>{let{LoginButton:r,TextButton:i,showAbortButton:o}=n;return(0,l.jsx)(p,null,(0,l.jsx)("p",null,"Open Authoring is enabled: we need to use a fork on your github account. (If a fork already exists, we'll use that.)"),(0,l.jsx)(h,null,(0,l.jsx)(r,{onClick:e},"Fork the repo"),o&&(0,l.jsx)(i,{onClick:t},"Don't fork the repo")))}}}return{renderButtonContent:this.renderLoginButton}}render(){const{inProgress:e,config:t,t:n}=this.props,{loginError:r,requestingFork:i,findingFork:o}=this.state;return(0,l.jsx)(s.AuthenticationPage,c({onLogin:this.handleLogin,loginDisabled:e||o||i,loginErrorMessage:r,logoUrl:t.logo_url,siteUrl:t.site_url},this.getAuthenticationPageRenderArgs(),{t:n}))}}t.default=m,d(m,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloClient",(function(){return A})),n.d(t,"ApolloError",(function(){return v})),n.d(t,"FetchType",(function(){return g})),n.d(t,"NetworkStatus",(function(){return r})),n.d(t,"ObservableQuery",(function(){return y})),n.d(t,"isApolloError",(function(){return m}));var r,i=n(6),o=n(15),a=n(158),s=n(75),l=n(117),u=n(762),c=n(25),d=n(108);function f(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}));var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype[u.a]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(s.a);function h(e){return Array.isArray(e)&&e.length>0}function m(e){return e.hasOwnProperty("graphQLErrors")}var g,v=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=o||[],u.networkError=a||null,u.message=s||(i="",h((r=u).graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";i+="GraphQL error: "+t+"\n"})),r.networkError&&(i+="Network error: "+r.networkError.message+"\n"),i=i.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return Object(i.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(g||(g={}));var y=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,a=void 0===i||i,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=r,s.variables=r.variables||{},s.queryId=n.generateQueryId(),s.shouldSubscribe=a;var l=Object(o.m)(r.query);return s.queryName=l&&l.name&&l.name.value,s.queryManager=n,s}return Object(i.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:r.error}}var t,n,o,a=this.queryManager.getCurrentQueryResult(this),s=a.data,l=a.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,d="network-only"===c||"no-cache"===c;if(u){var p=u.networkStatus;if(n=u,void 0===(o=this.options.errorPolicy)&&(o="none"),n&&(n.networkError||"none"===o&&h(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:p,error:new v({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:s,loading:f(p),networkStatus:p},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var m=d||l&&"cache-only"!==c;t={data:s,loading:m,networkStatus:m?r.loading:r.ready}}return l||this.updateLastResult(Object(i.a)(Object(i.a)({},t),{stale:!1})),Object(i.a)(Object(i.a)({},t),{partial:l})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(a.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new c.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(a.a)(this.variables,e)||(this.variables=Object(i.a)(Object(i.a)({},this.variables),e)),Object(a.a)(this.options.variables,this.variables)||(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(i.a)(Object(i.a)({},this.options),{fetchPolicy:t}),g.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(c.b)(e.updateQuery,2);var n=Object(i.a)(Object(i.a)({},e.query?e:Object(i.a)(Object(i.a)(Object(i.a)({},this.options),e),{variables:Object(i.a)(Object(i.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,g.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(i.a)(Object(i.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(a.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,a=n.document,s=Object(o.I)((function(){return e(r,{variables:i})}));s&&(t.dataStore.markUpdateQueryResult(a,i,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){w(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(o.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=b)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(w(this),t.startPollingQuery(this.options,n));var o=function(t){e.updateLastResult(Object(i.a)(Object(i.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:r.error,loading:!1})),_(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,s=i.variables,l=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,s).then((function(i){var s=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==l&&t.transform(o).serverQuery&&!Object(a.a)(s,i)?e.refetch():_(e.observers,"next",n)})):_(e.observers,"next",n)}},error:o}).catch(o)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(p);function b(e){}function _(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function w(e){var t=e.options.fetchPolicy;Object(c.b)("cache-first"!==t&&"cache-only"!==t,3)}var x=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),k=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(c.b)(!t||t.document===e.document||Object(a.a)(t.document,e.document),19);var n,i=!1,o=null;e.storePreviousVariables&&t&&t.networkStatus!==r.loading&&(Object(a.a)(t.variables,e.variables)||(i=!0,o=t.variables)),n=i?r.setVariables:e.isPoll?r.poll:e.isRefetch?r.refetch:r.loading;var s=[];t&&t.graphQLErrors&&(s=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:o,networkError:null,graphQLErrors:s,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=r.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=h(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=r.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=r.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=r.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=r.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=r.loading}))},e}();var E=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(o.A)(t.resolvers,e)})):this.resolvers=Object(o.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,s).then((function(e){return Object(i.a)(Object(i.a)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(o.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(o.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(i.a)(Object(i.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(c.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(i.a)(Object(i.a)({},t),e.exportedVariables)}))]:[2,Object(i.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(d.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return d.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(o.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,a,s){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(i.b)(this,void 0,void 0,(function(){var l,u,c,d,f,p,h,m,g;return Object(i.d)(this,(function(v){var y;return l=Object(o.l)(e),u=Object(o.j)(e),c=Object(o.g)(u),d=l.operation,f=d?(y=d).charAt(0).toUpperCase()+y.slice(1):"Query",h=(p=this).cache,m=p.client,g={fragmentMap:c,context:Object(i.a)(Object(i.a)({},n),{cache:h,client:m}),variables:r,fragmentMatcher:a,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(l.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(i.b)(this,void 0,void 0,(function(){var r,a,s,l,u,d=this;return Object(i.d)(this,(function(f){return r=n.fragmentMap,a=n.context,s=n.variables,l=[t],u=function(e){return Object(i.b)(d,void 0,void 0,(function(){var u,d;return Object(i.d)(this,(function(i){return Object(o.F)(e,s)?Object(o.t)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&l.push(((n={})[Object(o.E)(e)]=t,n))}))]:(Object(o.v)(e)?u=e:(u=r[e.name.value],Object(c.b)(u,7)),u&&u.typeCondition&&(d=u.typeCondition.name.value,n.fragmentMatcher(t,d,a))?[2,this.resolveSelectionSet(u.selectionSet,t,n).then((function(e){l.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Object(o.B)(l)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(i.b)(this,void 0,void 0,(function(){var r,a,s,l,u,c,d,f,p,h=this;return Object(i.d)(this,(function(i){return r=n.variables,a=e.name.value,s=Object(o.E)(e),l=a!==s,u=t[s]||t[a],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[l?a:s])&&(c=Promise.resolve(p(t,Object(o.b)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function S(e){var t=new Set,n=null;return new p((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var O=Object.prototype.hasOwnProperty,C=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,l=e.ssrMode,u=void 0!==l&&l,c=e.clientAwareness,d=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.mutationStore=new x,this.queryStore=new k,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(o.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=d,this.localState=f||new E({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new c.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,u=e.awaitRefetchQueries,d=void 0!==u&&u,f=e.update,p=e.errorPolicy,m=void 0===p?"none":p,g=e.fetchPolicy,y=e.context,b=void 0===y?{}:y;return Object(i.b)(this,void 0,void 0,(function(){var e,s,u,p=this;return Object(i.d)(this,(function(y){switch(y.label){case 0:return Object(c.b)(t,9),Object(c.b)(!g||"no-cache"===g,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,b)]:[3,2];case 1:n=y.sent(),y.label=2;case 2:return s=function(){var e={};return a&&p.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var i=r.queryName;i&&O.call(a,i)&&(e[n]={updater:a[i],query:p.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:s(),update:f,optimisticResponse:r}),this.broadcastQueries(),u=this,[2,new Promise((function(a,c){var p,y;u.getObservableFromLink(t,Object(i.a)(Object(i.a)({},b),{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(o.q)(r)&&"none"===m?y=new v({graphQLErrors:r.errors}):(u.mutationStore.markMutationResult(e),"no-cache"!==g&&u.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:s(),update:f}),p=r)},error:function(t){u.mutationStore.markMutationError(e,t),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),u.setQuery(e,(function(){return{document:null}})),c(new v({networkError:t}))},complete:function(){if(y&&u.mutationStore.markMutationError(e,y),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),y)c(y);else{"function"==typeof l&&(l=l(p));var t=[];h(l)&&l.forEach((function(e){if("string"==typeof e)u.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(u.query(n))}})),Promise.all(d?t:[]).then((function(){u.setQuery(e,(function(){return{document:null}})),"ignore"===m&&p&&Object(o.q)(p)&&delete p.errors,a(p)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return Object(i.b)(this,void 0,void 0,(function(){var a,s,l,u,c,d,f,p,h,y,b,_,w,x,k,E,S,O,C=this;return Object(i.d)(this,(function(T){switch(T.label){case 0:return a=t.metadata,s=void 0===a?null:a,l=t.fetchPolicy,u=void 0===l?"cache-first":l,c=t.context,d=void 0===c?{}:c,f=this.transform(t.query).document,p=this.getVariables(f,t.variables),this.transform(f).hasClientExports?[4,this.localState.addExportedVariables(f,p,d)]:[3,2];case 1:p=T.sent(),T.label=2;case 2:if(t=Object(i.a)(Object(i.a)({},t),{variables:p}),b=y="network-only"===u||"no-cache"===u,y||(_=this.dataStore.getCache().diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),w=_.complete,x=_.result,b=!w||"cache-and-network"===u,h=x),k=b&&"cache-only"!==u&&"standby"!==u,Object(o.s)(["live"],f)&&(k=!0),E=this.idCounter++,S="no-cache"!==u?this.updateQueryWatch(e,f,t):void 0,this.setQuery(e,(function(){return{document:f,lastRequestId:E,invalidated:!0,cancel:S}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:f,storePreviousVariables:k,variables:p,isPoll:n===g.poll,isRefetch:n===g.refetch,metadata:s,fetchMoreForQueryId:r}),this.broadcastQueries(),k){if(O=this.fetchRequest({requestId:E,queryId:e,document:f,options:t,fetchMoreForQueryId:r}).catch((function(t){throw m(t)?t:(E>=C.getQuery(e).lastRequestId&&(C.queryStore.markQueryError(e,t,r),C.invalidate(e),C.invalidate(r),C.broadcastQueries()),new v({networkError:t}))})),"cache-and-network"!==u)return[2,O];O.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!k),this.invalidate(e),this.invalidate(r),this.transform(f).hasForcedResolvers?[2,this.localState.runResolvers({document:f,remoteResult:{data:h},context:d,variables:p,onlyRunForcedResolvers:!0}).then((function(n){return C.markQueryResult(e,n,t,r),C.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:h}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,l=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=f(n.networkStatus),d=s&&s.getLastResult(),p=!(!d||d.networkStatus===n.networkStatus),m=t.returnPartialData||!o&&n.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||m){var g=h(n.graphQLErrors),y=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===y&&g||n.networkError)return i("error",new v({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var b=void 0,_=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),b=o.result,_=!o.complete;else{var w=s&&s.getLastError(),x="none"!==y&&(w&&w.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!x)b=d.data,_=!1;else{var k=r.dataStore.getCache().diff({query:l,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});b=k.result,_=!k.complete}}var E=_&&!(t.returnPartialData||"cache-only"===u),S={data:E?d&&d.data:b,loading:c,networkStatus:n.networkStatus,stale:E};"all"===y&&g&&(S.errors=n.graphQLErrors),i("next",S)}catch(e){i("error",new v({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=Object(o.D)(n.transformForLink(r)),a=this.localState.clientQuery(r),s=this.localState.serverQuery(i),l={document:r,hasClientExports:Object(o.r)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:s,defaultVars:Object(o.h)(Object(o.m)(r))},u=function(e){e&&!t.has(e)&&t.set(e,l)};u(e),u(r),u(a),u(s)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(i.a)(Object(i.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(c.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(i.a)({},e);return new y({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(c.b)(e.query,12),Object(c.b)("Document"===e.query.kind,13),Object(c.b)(!e.returnPartialData,14),Object(c.b)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new c.a(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var a=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),Object(o.q)(i))throw new v({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var s=this.localState.addExportedVariables(n,i).then(a);return new p((function(e){var t=null;return s.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return a(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),l=this.getQuery(e.queryId).newData;if(l&&l.complete)return{data:l.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),c=u.result,d=u.complete;return{data:d||a?c:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;Object(c.b)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var a,s=this;void 0===r&&(r=this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var c=this.inFlightLinkObservables,d=this.link,f={query:u,variables:n,operationName:Object(o.n)(u)||void 0,context:this.prepareContext(Object(i.a)(Object(i.a)({},t),{forceFetch:!r}))};if(t=f.context,r){var h=c.get(u)||new Map;c.set(u,h);var m=JSON.stringify(n);if(!(a=h.get(m))){h.set(m,a=S(Object(l.b)(d,f)));var g=function(){h.delete(m),h.size||c.delete(u),v.unsubscribe()},v=a.subscribe({next:g,error:g,complete:g})}}else a=S(Object(l.b)(d,f))}else a=p.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(a=function(e,t){return new p((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,l={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&l.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},u=e.subscribe(l);return function(){return u.unsubscribe()}}))}(a,(function(e){return s.localState.runResolvers({document:y,remoteResult:e,context:t,variables:n})}))),a},e.prototype.fetchRequest=function(e){var t,n,i=this,o=e.requestId,a=e.queryId,s=e.document,l=e.options,u=e.fetchMoreForQueryId,c=l.variables,d=l.errorPolicy,f=void 0===d?"none":d,p=l.fetchPolicy;return new Promise((function(e,d){var m=i.getObservableFromLink(s,l.context,c),g="fetchRequest:"+a;i.fetchQueryRejectFns.set(g,d);var y=function(){i.fetchQueryRejectFns.delete(g),i.setQuery(a,(function(e){e.subscriptions.delete(b)}))},b=m.map((function(e){if(o>=i.getQuery(a).lastRequestId&&(i.markQueryResult(a,e,l,u),i.queryStore.markQueryResult(a,e,u),i.invalidate(a),i.invalidate(u),i.broadcastQueries()),"none"===f&&h(e.errors))return d(new v({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),u||"no-cache"===p)t=e.data;else{var r=i.dataStore.getCache().diff({variables:c,query:s,optimistic:!1,returnPartialData:!0}),m=r.result;(r.complete||l.returnPartialData)&&(t=m)}})).subscribe({error:function(e){y(),d(e)},complete:function(){y(),e({data:t,errors:n,loading:!1,networkStatus:r.ready,stale:!1})}});i.setQuery(a,(function(e){e.subscriptions.add(b)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=Object(i.a)(Object(i.a)({},n),t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(i.a)(Object(i.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==r.ready&&t.networkStatus!==r.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,o=e.pollInterval;if(Object(c.b)(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=o,a.options=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?l():r.fetchQuery(t,e.options,g.poll).then(l,l))},l=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),l()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),T=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var a=!Object(o.q)(e);i&&Object(o.q)(e)&&e.data&&(a=!0),!r&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(o.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(o.q)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var a=r[i],s=a.query,l=a.updater,u=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var d=Object(o.I)((function(){return l(c,{mutationResult:e.result,queryName:Object(o.n)(s.document)||void 0,queryVariables:s.variables})}));d&&n.push({result:d,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&Object(o.I)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),A=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,d=void 0===u||u,f=e.defaultOptions,p=e.assumeImmutableResults,h=void 0!==p&&p,m=e.resolvers,g=e.typeDefs,v=e.fragmentMatcher,y=e.name,b=e.version,_=e.link;if(!_&&m&&(_=l.a.empty()),!_||!n)throw new c.a(4);this.link=_,this.cache=n,this.store=new T(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=d,this.defaultOptions=f||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new E({cache:n,client:this,resolvers:m,fragmentMatcher:v}),this.queryManager=new C({link:this.link,store:this.store,queryDeduplication:d,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.query),e)),Object(c.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(i.a)(Object(i.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(i.a)(Object(i.a)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(l.b)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=r},function(e,t,n){"use strict";n.r(t),n.d(t,"setContext",(function(){return a}));var r=n(6),i=n(117),o=n(75);function a(e){return new i.a((function(t,n){var i=Object(r.e)(t,[]);return new o.a((function(r){var o;return Promise.resolve(i).then((function(n){return e(n,t.getContext())})).then(t.setContext).then((function(){o=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})})).catch(r.error.bind(r)),function(){o&&o.unsubscribe()}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treeEntry=t.repository=t.pullRequest=t.object=t.fileEntry=t.branch=t.blobWithText=void 0;var r=n(342);const i=r.gql`
fragment RepositoryParts on Repository {
id
isFork
}
`;t.repository=i;const o=r.gql`
fragment BlobWithTextParts on Blob {
id
text
is_binary: isBinary
}
`;t.blobWithText=o;const a=r.gql`
fragment ObjectParts on GitObject {
id
sha: oid
}
`;t.object=a;const s=r.gql`
fragment BranchParts on Ref {
commit: target {
...ObjectParts
}
id
name
prefix
repository {
...RepositoryParts
}
}
${a}
${i}
`;t.branch=s;const l=r.gql`
fragment PullRequestParts on PullRequest {
id
baseRefName
baseRefOid
body
headRefName
headRefOid
number
state
title
merged_at: mergedAt
updated_at: updatedAt
user: author {
login
... on User {
name
}
}
repository {
...RepositoryParts
}
labels(last: 100) {
nodes {
name
}
}
}
${i}
`;t.pullRequest=l;const u=r.gql`
fragment TreeEntryParts on TreeEntry {
path: name
sha: oid
type
mode
}
`;t.treeEntry=u;const c=r.gql`
fragment FileEntryParts on TreeEntry {
name
sha: oid
type
blob: object {
... on Blob {
size: byteSize
}
}
}
`;t.fileEntry=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(268),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"e1224wm40",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"}),f={pkce:e=>{let{base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:i}=e;return new a.PkceAuthenticator({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:i})},implicit:e=>{let{base_url:t,auth_endpoint:n,app_id:r,clearHash:i}=e;return new a.ImplicitAuthenticator({base_url:t,auth_endpoint:n,app_id:r,clearHash:i})}};class p extends i.default.Component{constructor(){super(...arguments),c(this,"state",{}),c(this,"handleLogin",e=>{e.preventDefault(),this.auth.authenticate({provider:"gitlab",scope:"api"},(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})})}componentDidMount(){const{auth_type:e="",base_url:t="https://gitlab.com",auth_endpoint:n="oauth/authorize",app_id:r=""}=this.props.config.backend;f[e]?(this.auth=f[e]({base_url:t,auth_endpoint:n,app_id:r,auth_token_endpoint:"oauth/token",clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})):this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint})}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"gitlab"})," ",n(e?"auth.loggingIn":"auth.loginWithGitLab")),t:n})}}t.default=p,c(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0,t.getMaxAccess=k;var r=v(n(123)),i=v(n(446)),o=v(n(173)),a=v(n(146)),s=n(667),l=n(755),u=n(756),c=n(669),d=n(40),f=n(447),p=n(4),h=n(98),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(1405));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w,x;function k(e){return e.reduce((e,t)=>t.group_access_level>e.group_access_level?t:e,e[0])}function E(e,t,n){for(let r=0;r<e.length;r+=t){n(e.slice(r,r+t))}}t.API_NAME="GitLab",function(e){e.CREATE="create",e.DELETE="delete",e.MOVE="move",e.UPDATE="update"}(w||(w={})),function(e){e.Pending="pending",e.Running="running",e.Success="success",e.Failed="failed",e.Canceled="canceled"}(x||(x={}));t.default=class{constructor(e){var t=this;_(this,"apiRoot",void 0),_(this,"graphQLAPIRoot",void 0),_(this,"token",void 0),_(this,"branch",void 0),_(this,"useOpenAuthoring",void 0),_(this,"repo",void 0),_(this,"repoURL",void 0),_(this,"commitAuthor",void 0),_(this,"squashMerges",void 0),_(this,"initialWorkflowStatus",void 0),_(this,"cmsLabelPrefix",void 0),_(this,"graphQLClient",void 0),_(this,"withAuthorizationHeaders",e=>{const t=d.unsentRequest.withHeaders(this.token?{Authorization:"Bearer "+this.token}:{},e);return Promise.resolve(t)}),_(this,"buildRequest",async e=>{const t=d.unsentRequest.withRoot(this.apiRoot)(e),n=await this.withAuthorizationHeaders(t);if(n.has("cache"))return n;return d.unsentRequest.withNoCache(n)}),_(this,"request",async e=>{try{return(0,d.requestWithBackoff)(this,e)}catch(e){throw new d.APIError(e.message,null,"GitLab")}}),_(this,"responseToJSON",(0,d.responseParser)({format:"json",apiName:"GitLab"})),_(this,"responseToBlob",(0,d.responseParser)({format:"blob",apiName:"GitLab"})),_(this,"responseToText",(0,d.responseParser)({format:"text",apiName:"GitLab"})),_(this,"requestJSON",e=>this.request(e).then(this.responseToJSON)),_(this,"requestText",e=>this.request(e).then(this.responseToText)),_(this,"user",()=>this.requestJSON("/user")),_(this,"WRITE_ACCESS",30),_(this,"MAINTAINER_ACCESS",40),_(this,"hasWriteAccess",async()=>{const{shared_with_groups:e,permissions:t}=await this.requestJSON(this.repoURL),{project_access:n,group_access:r}=t;if(n&&n.access_level>=this.WRITE_ACCESS)return!0;if(r&&r.access_level>=this.WRITE_ACCESS)return!0;if(e&&e.length>0){const t=k(e);if(t.group_access_level>=this.MAINTAINER_ACCESS)return!0;if(t.group_access_level>=this.WRITE_ACCESS)try{const e=await this.getDefaultBranch();if(e.developers_can_merge&&e.developers_can_push)return!0}catch(e){console.log("Failed getting default branch",e)}}return!1}),_(this,"readFile",(async function(e,n){let{parseText:r=!0,branch:i=t.branch}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=async()=>await t.request({url:`${t.repoURL}/repository/files/${encodeURIComponent(e)}/raw`,params:{ref:i},cache:"no-store"}).then(r?t.responseToText:t.responseToBlob),a=await(0,d.readFile)(n,o,d.localForage,r);return a})),_(this,"getCursorFromHeaders",e=>{const t=parseInt(e.get("X-Page"),10),n=parseInt(e.get("X-Total-Pages"),10),r=parseInt(e.get("X-Per-Page"),10),i=parseInt(e.get("X-Total"),10),o=(0,d.parseLinkHeader)(e.get("Link")),a=(0,p.Map)(o).keySeq().flatMap(e=>"prev"===e&&t>1||"next"===e&&t<n||"first"===e&&t>1||"last"===e&&t<n?[e]:[]);return d.Cursor.create({actions:a,meta:{page:t,count:i,pageSize:r,pageCount:n},data:{links:o}})}),_(this,"getCursor",e=>{let{headers:t}=e;return this.getCursorFromHeaders(t)}),_(this,"fetchCursor",e=>(0,a.default)([d.unsentRequest.withMethod("HEAD"),this.request,(0,d.then)(this.getCursor)])(e)),_(this,"fetchCursorAndEntries",e=>(0,a.default)([d.unsentRequest.withMethod("GET"),this.request,e=>Promise.all([e.then(this.getCursor),e.then(this.responseToJSON).catch(e=>{if(404===e.status)return[];throw e})]),(0,d.then)(e=>{let[t,n]=e;return{cursor:t,entries:n}})])(e)),_(this,"listFiles",(async function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{entries:r,cursor:i}=await t.fetchCursorAndEntries({url:t.repoURL+"/repository/tree",params:{path:e,ref:t.branch,recursive:n}});return{files:r.filter(e=>{let{type:t}=e;return"blob"===t}),cursor:i}})),_(this,"traverseCursor",async(e,t)=>{const n=e.data.getIn(["links",t]),{entries:r,cursor:i}=await this.fetchCursorAndEntries(n);return{entries:r.filter(e=>{let{type:t}=e;return"blob"===t}),cursor:i}}),_(this,"listAllFilesGraphQL",async(e,t,n)=>{const r=[];let i,o;do{i=await this.graphQLClient.query({query:m.files,variables:{repo:this.repo,branch:n,path:e,recursive:t,cursor:o}}),r.push(...i.data.project.repository.tree.blobs.nodes),o=i.data.project.repository.tree.blobs.pageInfo.endCursor}while(i.data.project.repository.tree.blobs.pageInfo.hasNextPage);return r}),_(this,"readFilesGraphQL",async e=>{const t=e.map(e=>{let{path:t}=e;return t}),n=[];E(t,90,e=>{n.push(this.graphQLClient.query({query:m.blobs,variables:{repo:this.repo,branch:this.branch,paths:e},fetchPolicy:"cache-first"}))});const r=[];E(t,8,e=>{r.push(this.graphQLClient.query({query:m.lastCommits(e),variables:{repo:this.repo,branch:this.branch},fetchPolicy:"cache-first"}))});const[i,o]=await Promise.all([(await Promise.all(n)).map(e=>e.data.project.repository.blobs.nodes),(await Promise.all(r)).map(e=>Object.values(e.data.project.repository).map(e=>{let{lastCommit:t}=e;return t}).filter(Boolean))]),a=i.flat().map(e=>e.data),s=o.flat().map(e=>{let{author:t,authoredDate:n,authorName:r}=e;return{author:t?t.name||t.username||t.publicEmail:r,updatedOn:n}});return e.map((e,t)=>({file:b(b({},e),s[t]),data:a[t]}))}),_(this,"listAllFiles",(async function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.branch;if(t.graphQLClient)return await t.listAllFilesGraphQL(e,n,r);const i=[];let{cursor:o,entries:a}=await t.fetchCursorAndEntries({url:t.repoURL+"/repository/tree",params:{path:e,ref:r,per_page:100,recursive:n}});for(i.push(...a);o&&o.actions.has("next");){const e=o.data.getIn(["links","next"]),{cursor:n,entries:r}=await t.fetchCursorAndEntries(e);i.push(...r),o=n}return i.filter(e=>{let{type:t}=e;return"blob"===t})})),_(this,"toBase64",e=>Promise.resolve(f.Base64.encode(e))),_(this,"fromBase64",e=>f.Base64.decode(e)),_(this,"deleteFiles",(e,t)=>{const n={commit_message:t,branch:this.branch};if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.author_name=e,n.author_email=t}const r=e.map(e=>({path:e,action:w.DELETE}));return this.uploadAndCommit(r,{commitMessage:t})}),this.apiRoot=e.apiRoot||"https://gitlab.com/api/v4",this.graphQLAPIRoot=e.graphQLAPIRoot||"https://gitlab.com/api/graphql",this.token=e.token||!1,this.branch=e.branch||"master",this.repo=e.repo||"",this.repoURL="/projects/"+encodeURIComponent(this.repo),this.squashMerges=e.squashMerges,this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix,!0===e.useGraphQL&&(this.graphQLClient=this.getApolloClient())}getApolloClient(){const e=(0,c.setContext)((e,t)=>{let{headers:n}=t;return{headers:b(b({"Content-Type":"application/json; charset=utf-8"},n),{},{authorization:this.token?"token "+this.token:""})}}),t=(0,u.createHttpLink)({uri:this.graphQLAPIRoot});return new s.ApolloClient({link:e.concat(t),cache:new l.InMemoryCache,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}reset(){var e;return null===(e=this.graphQLClient)||void 0===e?void 0:e.resetStore()}async readFileMetadata(e,t){return await(0,d.readFileMetadata)(t,async()=>{try{const t=(await this.requestJSON({url:this.repoURL+"/repository/commits",params:{path:e,ref_name:this.branch}}))[0];return{author:t.author_name||t.author_email,updatedOn:t.authored_date}}catch(e){return{author:"",updatedOn:""}}},d.localForage)}async getBranch(e){return await this.requestJSON(`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`)}async uploadAndCommit(e,t){let{commitMessage:n="",branch:r=this.branch,newBranch:i=!1}=t;const o=e.map(e=>b(b({action:e.action,file_path:e.path},e.oldPath?{previous_path:e.oldPath}:{}),void 0!==e.base64Content?{content:e.base64Content,encoding:"base64"}:{})),a=b({branch:r,commit_message:n,actions:o},i?{start_branch:this.branch}:{});if(this.commitAuthor){const{name:e,email:t}=this.commitAuthor;a.author_name=e,a.author_email=t}try{return await this.requestJSON({url:this.repoURL+"/repository/commits",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(a)})}catch(e){const t=e.message||"";throw i&&t.includes("Could not update "+r)&&await(0,d.throwOnConflictingBranches)(r,e=>this.getBranch(e),"GitLab"),e}}async getCommitItems(e,t){const n=await Promise.all(e.map(async e=>{const[n,a]=await Promise.all([(0,i.default)(e,"toBase64",(0,o.default)(this.toBase64,e.raw)),this.isFileExists(e.path,t)]);let s=w.CREATE,l=(0,r.default)(e.path,"/"),u=void 0;return a&&(u=e.newPath&&l,s=e.newPath&&e.newPath!==u?w.MOVE:w.UPDATE,l=e.newPath?(0,r.default)(e.newPath,"/"):l),{action:s,base64Content:n,path:l,oldPath:u}}));for(const e of n.filter(e=>e.oldPath&&e.action===w.MOVE)){const r=(0,h.dirname)(e.oldPath),i=(0,h.dirname)(e.path);(await this.listAllFiles(r,!0,t)).filter(t=>t.path!==e.oldPath).forEach(e=>{n.push({action:w.MOVE,path:e.path.replace(r,i),oldPath:e.path})})}return n}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}{const e=await this.getCommitItems(r,this.branch);return this.uploadAndCommit(e,{commitMessage:n.commitMessage})}}async getMergeRequests(e){return(await this.requestJSON({url:this.repoURL+"/merge_requests",params:b({state:"opened",labels:"Any",per_page:100,target_branch:this.branch},e?{source_branch:e}:{})})).filter(e=>e.source_branch.startsWith(d.CMS_BRANCH_PREFIX)&&e.labels.some(e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix)))}async listUnpublishedBranches(){console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold");return(await this.getMergeRequests()).map(e=>e.source_branch)}async getFileId(e,t){return(await this.request({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}})).headers.get("X-Gitlab-Blob-Id")}async isFileExists(e,t){return await this.requestText({method:"HEAD",url:`${this.repoURL}/repository/files/${encodeURIComponent(e)}`,params:{ref:t}}).then(()=>!0).catch(e=>{if(e instanceof d.APIError&&404===e.status)return!1;throw e})}async getBranchMergeRequest(e){const t=await this.getMergeRequests(e);if(t.length<=0)throw new d.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async getDifferences(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.branch;if(e===t)return[];const n=await this.requestJSON({url:this.repoURL+"/repository/compare",params:{from:t,to:e}});if(n.diffs.length>=1e3)throw new d.APIError("Diff limit reached",null,"GitLab");return n.diffs.map(e=>{let t="modified";return e.new_file?t="added":e.deleted_file?t="deleted":e.renamed_file&&(t="renamed"),{status:t,oldPath:e.old_path,newPath:e.new_path,newFile:e.new_file,path:e.new_path||e.old_path,binary:e.diff.startsWith("Binary")||/.svg$/.test(e.new_path)}})}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,d.parseContentKey)(e),r=(0,d.branchFromContentKey)(e),i=await this.getBranchMergeRequest(r),o=await this.getDifferences(i.sha),a=await Promise.all(o.map(async e=>{const{path:t,newFile:n}=e;return{id:await this.getFileId(t,r),path:t,newFile:n}})),s=i.labels.find(e=>(0,d.isCMSLabel)(e,this.cmsLabelPrefix));return{collection:t,slug:n,status:(0,d.labelToStatus)(s,this.cmsLabelPrefix),diffs:a,updatedAt:i.updated_at,pullRequestAuthor:i.author.name}}async rebaseMergeRequest(e){let t=await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/rebase?skip_ci=true`}),n=1;for(;t.rebase_in_progress&&(await new Promise(e=>setTimeout(e,1e3)),t=await this.requestJSON({url:`${this.repoURL}/merge_requests/${e.iid}`,params:{include_rebase_in_progress:!0}}),t.rebase_in_progress&&!(n>30));)n++;if(t.rebase_in_progress)throw new d.APIError("Timed out rebasing merge request",null,"GitLab");if(t.merge_error)throw new d.APIError("Rebase error: "+t.merge_error,null,"GitLab")}async createMergeRequest(e,t,n){await this.requestJSON({method:"POST",url:this.repoURL+"/merge_requests",params:{source_branch:e,target_branch:this.branch,title:t,description:d.DEFAULT_PR_BODY,labels:(0,d.statusToLabel)(n,this.cmsLabelPrefix),remove_source_branch:!0,squash:this.squashMerges}})}async editorialWorkflowGit(e,t,n){const r=(0,d.generateContentKey)(n.collectionName,t),i=(0,d.branchFromContentKey)(r);if(n.unpublished||!1){const t=await this.getBranchMergeRequest(i);await this.rebaseMergeRequest(t);const[r,o]=await Promise.all([this.getCommitItems(e,i),this.getDifferences(i)]);for(const e of o.filter(e=>e.binary))r.some(t=>t.path===e.path)||r.push({action:w.DELETE,path:e.newPath});await this.uploadAndCommit(r,{commitMessage:n.commitMessage,branch:i})}else{const t=await this.getCommitItems(e,this.branch);await this.uploadAndCommit(t,{commitMessage:n.commitMessage,branch:i,newBranch:!0}),await this.createMergeRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async updateMergeRequestLabels(e,t){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{labels:t.join(",")}})}async updateUnpublishedEntryStatus(e,t,n){const r=(0,d.generateContentKey)(e,t),i=(0,d.branchFromContentKey)(r),o=await this.getBranchMergeRequest(i),a=[...o.labels.filter(e=>!(0,d.isCMSLabel)(e,this.cmsLabelPrefix)),(0,d.statusToLabel)(n,this.cmsLabelPrefix)];await this.updateMergeRequestLabels(o,a)}async mergeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}/merge`,params:{merge_commit_message:d.MERGE_COMMIT_MESSAGE,squash_commit_message:d.MERGE_COMMIT_MESSAGE,squash:this.squashMerges,should_remove_source_branch:!0}})}async publishUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.mergeMergeRequest(i)}async closeMergeRequest(e){await this.requestJSON({method:"PUT",url:`${this.repoURL}/merge_requests/${e.iid}`,params:{state_event:"close"}})}async getDefaultBranch(){return await this.getBranch(this.branch)}async isShaExistsInBranch(e,t){return(await this.requestJSON({url:`${this.repoURL}/repository/commits/${t}/refs`,params:{type:"branch"}})).some(t=>t.name===e)}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/repository/branches/${encodeURIComponent(e)}`})}async deleteUnpublishedEntry(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);await this.closeMergeRequest(i),await this.deleteBranch(r)}async getMergeRequestStatues(e,t){return await this.requestJSON({url:`${this.repoURL}/repository/commits/${e.sha}/statuses`,params:{ref:t}})}async getStatuses(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n),i=await this.getBranchMergeRequest(r);return(await this.getMergeRequestStatues(i,r)).map(e=>{let{name:t,status:n,target_url:r}=e;return{context:t,state:n===x.Success?d.PreviewState.Success:d.PreviewState.Other,target_url:r}})}async getUnpublishedEntrySha(e,t){const n=(0,d.generateContentKey)(e,t),r=(0,d.branchFromContentKey)(n);return(await this.getBranchMergeRequest(r)).sha}}},function(e,t,n){var r=n(143),i=n(1408),o=n(166),a=n(1409),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONHTTPError=t.TextHTTPError=t.HTTPError=t.getPagination=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1412);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"getPagination",{enumerable:!0,get:function(){return o.getPagination}});var u=t.HTTPError=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.statusText));return n.name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(n,n.constructor):n.stack=new Error(e.statusText).stack,n.status=e.status,n}return l(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),c=t.TextHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.data=n,r}return l(t,e),t}(u),d=t.JSONHTTPError=function(e){function t(e,n){a(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.json=n,r}return l(t,e),t}(u),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1];a(this,e),this.apiURL=t,this.apiURL.match(/\/[^\/]?/)&&(this._sameOrigin=!0),this.defaultHeaders=n&&n.defaultHeaders||{}}return i(e,[{key:"headers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({},this.defaultHeaders,{"Content-Type":"application/json"},e)}},{key:"parseJsonResponse",value:function(e){return e.json().then((function(t){if(!e.ok)return Promise.reject(new d(e,t));var n=(0,o.getPagination)(e);return n?{pagination:n,items:t}:t}))}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.headers(n.headers||{});return this._sameOrigin&&(n.credentials=n.credentials||"same-origin"),fetch(this.apiURL+e,r({},n,{headers:i})).then((function(e){var n=e.headers.get("Content-Type");return n&&n.match(/json/)?t.parseJsonResponse(e):e.ok?e.text().then((function(e){})):e.text().then((function(t){return Promise.reject(new c(e,t))}))}))}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BitbucketBackend",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsBackendBitbucket=void 0;var r=a(n(1417)),i=a(n(677)),o=a(n(676));function a(e){return e&&e.__esModule?e:{default:e}}const s={BitbucketBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendBitbucket=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(268),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.default)(s.Icon,{target:"eu4xeqg0",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"});class f extends i.default.Component{constructor(){super(...arguments),c(this,"state",{}),c(this,"handleLogin",e=>{e.preventDefault(),this.auth.authenticate(this.authSettings,(e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)})})}componentDidMount(){const{auth_type:e=""}=this.props.config.backend;if("implicit"===e){const{base_url:e="https://bitbucket.org",auth_endpoint:t="site/oauth2/authorize",app_id:n=""}=this.props.config.backend;this.auth=new a.ImplicitAuthenticator({base_url:e,auth_endpoint:t,app_id:n,clearHash:this.props.clearHash}),this.auth.completeAuth((e,t)=>{e?this.setState({loginError:e.toString()}):this.props.onLogin(t)}),this.authSettings={scope:"repository:write"}}else this.auth=new a.NetlifyAuthenticator({base_url:this.props.base_url,site_id:"localhost"===document.location.host.split(":")[0]?"cms.netlify.com":this.props.siteId,auth_endpoint:this.props.authEndpoint}),this.authSettings={provider:"bitbucket",scope:"repo"}}render(){const{inProgress:e,config:t,t:n}=this.props;return(0,l.jsx)(s.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:e,loginErrorMessage:this.state.loginError,logoUrl:t.logo_url,siteUrl:t.site_url,renderButtonContent:()=>(0,l.jsx)(i.default.Fragment,null,(0,l.jsx)(d,{type:"bitbucket"}),n(e?"auth.loggingIn":"auth.loginWithBitbucket")),t:n})}}t.default=f,c(f,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,base_url:o.default.string,siteId:o.default.string,authEndpoint:o.default.string,config:o.default.object.isRequired,clearHash:o.default.func,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.API_NAME=void 0;var r,i,o=d(n(103)),a=d(n(146)),s=n(40),l=n(98),u=n(111),c=n(1418);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.MERGED="MERGED",e.SUPERSEDED="SUPERSEDED",e.OPEN="OPEN",e.DECLINED="DECLINED"}(r||(r={})),function(e){e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="INPROGRESS",e.Stopped="STOPPED"}(i||(i={}));t.API_NAME="Bitbucket";function h(e){return e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),{size:0,values:[]}):Promise.reject(e)}t.default=class{constructor(e){var t=this;p(this,"apiRoot",void 0),p(this,"branch",void 0),p(this,"repo",void 0),p(this,"requestFunction",void 0),p(this,"repoURL",void 0),p(this,"commitAuthor",void 0),p(this,"mergeStrategy",void 0),p(this,"initialWorkflowStatus",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"buildRequest",e=>{const t=s.unsentRequest.withRoot(this.apiRoot)(e);if(t.has("cache"))return t;return s.unsentRequest.withNoCache(t)}),p(this,"request",e=>{try{return(0,s.requestWithBackoff)(this,e)}catch(e){throw new s.APIError(e.message,null,"Bitbucket")}}),p(this,"responseToJSON",(0,s.responseParser)({format:"json",apiName:"Bitbucket"})),p(this,"responseToBlob",(0,s.responseParser)({format:"blob",apiName:"Bitbucket"})),p(this,"responseToText",(0,s.responseParser)({format:"text",apiName:"Bitbucket"})),p(this,"requestJSON",e=>this.request(e).then(this.responseToJSON)),p(this,"requestText",e=>this.request(e).then(this.responseToText)),p(this,"user",()=>this.requestJSON("/user")),p(this,"hasWriteAccess",async()=>{const e=await this.request(this.repoURL);if(404===e.status)throw Error("Repo not found");return e.ok}),p(this,"getBranch",async e=>await this.requestJSON(`${this.repoURL}/refs/branches/${e}`)),p(this,"branchCommitSha",async e=>{const{target:{hash:t}}=await this.getBranch(e);return t}),p(this,"defaultBranchCommitSha",()=>this.branchCommitSha(this.branch)),p(this,"isFile",e=>{let{type:t}=e;return"commit_file"===t}),p(this,"getFileId",(e,t)=>`${e}/${t}`),p(this,"processFile",e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,type:e.type,path:e.path,name:(0,s.basename)(e.path)},e.commit&&e.commit.hash?{id:this.getFileId(e.commit.hash,e.path)}:{})),p(this,"processFiles",e=>e.filter(this.isFile).map(this.processFile)),p(this,"readFile",(async function(e,n){let{parseText:r=!0,branch:i=t.branch,head:o=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=async()=>{const n=o||await t.branchCommitSha(i);return await t.request({url:`${t.repoURL}/src/${n}/${e}`,cache:"no-store"}).then(r?t.responseToText:t.responseToBlob)},l=await(0,s.readFile)(n,a,s.localForage,r);return l})),p(this,"getEntriesAndCursor",e=>{const{size:t,page:n,pagelen:r,next:i,previous:o,values:a}=e,l=r&&t?Math.ceil(t/r):void 0;return{entries:a,cursor:s.Cursor.create({actions:[...i?["next"]:[],...o?["prev"]:[]],meta:{page:n,count:t,pageSize:r,pageCount:l},data:{links:{next:i,prev:o}}})}}),p(this,"listFiles",(async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;const o=await t.branchCommitSha(i),a=await t.requestJSON({url:`${t.repoURL}/src/${o}/${e}`,params:{max_depth:n,pagelen:r}}).catch(h),{entries:s,cursor:l}=t.getEntriesAndCursor(a);return{entries:t.processFiles(s),cursor:l}})),p(this,"traverseCursor",async(e,t)=>(0,a.default)([this.requestJSON,(0,s.then)(this.getEntriesAndCursor),(0,s.then)(e=>{let{cursor:t,entries:n}=e;return{cursor:t,entries:this.processFiles(n)}})])(e.data.getIn(["links",t]))),p(this,"listAllFiles",async(e,t,n)=>{const{cursor:r,entries:i}=await this.listFiles(e,t,100,n),o=[...i];let a=r;for(;a&&a.actions.has("next");){const{cursor:e,entries:t}=await this.traverseCursor(a,"next");o.push(...t),a=e}return this.processFiles(o)}),p(this,"deleteFiles",(e,t)=>{const n=new FormData;if(e.forEach(e=>{n.append("files",e)}),n.append("branch",this.branch),t&&n.append("message",t),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;n.append("author",`${e} <${t}>`)}return(0,a.default)([s.unsentRequest.withMethod("POST"),s.unsentRequest.withBody(n),this.request])(this.repoURL+"/src")}),this.apiRoot=e.apiRoot||"https://api.bitbucket.org/2.0",this.branch=e.branch||"master",this.repo=e.repo||"",this.requestFunction=e.requestFunction||s.unsentRequest.performRequest,this.hasWriteAccess=e.hasWriteAccess||this.hasWriteAccess,this.repoURL=this.repo?"/repositories/"+this.repo:"",this.mergeStrategy=e.squashMerges?"squash":"merge_commit",this.initialWorkflowStatus=e.initialWorkflowStatus,this.cmsLabelPrefix=e.cmsLabelPrefix}async readFileMetadata(e,t){return await(0,s.readFileMetadata)(t,async()=>{try{const{values:t}=await this.requestJSON({url:this.repoURL+"/commits",params:{path:e,include:this.branch}}),n=t[0];return{author:n.author.user?n.author.user.display_name||n.author.user.nickname:n.author.raw,updatedOn:n.date}}catch(e){return{author:"",updatedOn:""}}},s.localForage)}async isShaExistsInBranch(e,t){const{values:n}=await this.requestJSON({url:this.repoURL+"/commits",params:{include:e,pagelen:100}}).catch(t=>(console.log(`Failed getting commits for branch '${e}'`,t),[]));return n.some(e=>e.hash===t)}async uploadFiles(e,t){let{commitMessage:n,branch:r,parentSha:i}=t;const a=new FormData,u=[];e.forEach(e=>{if(e.delete)a.append("files",e.path);else if(e.newPath){const t=(0,o.default)(e,"fileObj",new Blob([e.raw]));u.push({from:e.path,to:e.newPath,contentBlob:t})}else{const t=(0,o.default)(e,"fileObj",new Blob([e.raw]));a.append(e.path,t,(0,s.basename)(e.path))}});for(const{from:e,to:t,contentBlob:n}of u){const o=(0,l.dirname)(e),u=(0,l.dirname)(t),c=i?this.branch:r,d=await this.listAllFiles(o,100,c);for(const t of d){a.append("files",t.path);const r=t.path===e?n:await this.readFile(t.path,null,{branch:c,parseText:!1});a.append(t.path.replace(o,u),r,(0,s.basename)(t.path))}}if(n&&a.append("message",n),this.commitAuthor){const{name:e,email:t}=this.commitAuthor;a.append("author",`${e} <${t}>`)}a.append("branch",r),i&&a.append("parents",i);try{await this.requestText({url:this.repoURL+"/src",method:"POST",body:a})}catch(e){const t=e.message||"";throw i&&t.includes("Something went wrong")&&await(0,s.throwOnConflictingBranches)(r,e=>this.getBranch(e),"Bitbucket"),e}return e}async persistFiles(e,t,n){const r=[...e,...t];if(n.useWorkflow){const t=e[0].slug;return this.editorialWorkflowGit(r,t,n)}return this.uploadFiles(r,{commitMessage:n.commitMessage,branch:this.branch})}async addPullRequestComment(e,t){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/comments`,headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({content:{raw:t}})})}async getPullRequestLabel(e){const t=await this.requestJSON({url:`${this.repoURL}/pullrequests/${e}/comments`,params:{pagelen:100}});return t.values.map(e=>e.content.raw)[t.values.length-1]}async createPullRequest(e,t,n){const r=await this.requestJSON({method:"POST",url:this.repoURL+"/pullrequests",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({title:t,source:{branch:{name:e}},destination:{branch:{name:this.branch}},description:s.DEFAULT_PR_BODY,close_source_branch:!0})});await this.addPullRequestComment(r,(0,s.statusToLabel)(n,this.cmsLabelPrefix))}async getDifferences(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.branch;if(e===t)return[];const n=await this.requestText({url:`${this.repoURL}/diff/${e}..${t}`,params:{binary:!1}});return(0,c.parse)(n).map(e=>{var t,n;const r=(null===(t=e.oldPath)||void 0===t?void 0:t.replace(/b\//,""))||"",i=(null===(n=e.newPath)||void 0===n?void 0:n.replace(/b\//,""))||"",o=i||r;return{oldPath:r,newPath:i,status:e.status,newFile:"added"===e.status,path:o,binary:e.binary||/.svg$/.test(o)}})}async editorialWorkflowGit(e,t,n){const r=(0,s.generateContentKey)(n.collectionName,t),i=(0,s.branchFromContentKey)(r);if(n.unpublished||!1){const t=await this.getDifferences(i),r=[];for(const n of t.filter(e=>e.binary&&"deleted"!==e.status))e.some(e=>e.path===n.path)||r.push({path:n.path,delete:!0});await this.uploadFiles([...e,...r],{commitMessage:n.commitMessage,branch:i})}else{const t=await this.branchCommitSha(this.branch);await this.uploadFiles(e,{commitMessage:n.commitMessage,branch:i,parentSha:t}),await this.createPullRequest(i,n.commitMessage,n.status||this.initialWorkflowStatus)}}async getPullRequests(e){const t=e?`source.branch.name = "${e}"`:`source.branch.name ~ "${s.CMS_BRANCH_PREFIX}/"`,n=await this.requestJSON({url:this.repoURL+"/pullrequests",params:{pagelen:50,q:u.oneLine`
source.repository.full_name = "${this.repo}"
AND state = "${r.OPEN}"
AND destination.branch.name = "${this.branch}"
AND comment_count > 0
AND ${t}
`}}),i=await Promise.all(n.values.map(e=>this.getPullRequestLabel(e.id)));return n.values.filter((e,t)=>(0,s.isCMSLabel)(i[t],this.cmsLabelPrefix))}async getBranchPullRequest(e){const t=await this.getPullRequests(e);if(t.length<=0)throw new s.EditorialWorkflowError("content is not under editorial workflow",!0);return t[0]}async listUnpublishedBranches(){console.log("%c Checking for Unpublished entries","line-height: 30px;text-align: center;font-weight: bold");return(await this.getPullRequests()).map(e=>e.source.branch.name)}async retrieveUnpublishedEntryData(e){const{collection:t,slug:n}=(0,s.parseContentKey)(e),r=(0,s.branchFromContentKey)(e),i=await this.getBranchPullRequest(r),o=await this.getDifferences(r),a=await this.getPullRequestLabel(i.id),l=(0,s.labelToStatus)(a,this.cmsLabelPrefix),u=i.updated_on,c=i.author.display_name;return{collection:t,slug:n,status:l,diffs:o.filter(e=>"deleted"!==e.status).map(e=>({path:e.path,newFile:e.newFile,id:""})),updatedAt:u,pullRequestAuthor:c}}async updateUnpublishedEntryStatus(e,t,n){const r=(0,s.generateContentKey)(e,t),i=(0,s.branchFromContentKey)(r),o=await this.getBranchPullRequest(i);await this.addPullRequestComment(o,(0,s.statusToLabel)(n,this.cmsLabelPrefix))}async mergePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/merge`,headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({message:s.MERGE_COMMIT_MESSAGE,close_source_branch:!0,merge_strategy:this.mergeStrategy})})}async publishUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.mergePullRequest(i)}async declinePullRequest(e){await this.requestJSON({method:"POST",url:`${this.repoURL}/pullrequests/${e.id}/decline`})}async deleteBranch(e){await this.request({method:"DELETE",url:`${this.repoURL}/refs/branches/${e}`})}async deleteUnpublishedEntry(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);await this.declinePullRequest(i),await this.deleteBranch(r)}async getPullRequestStatuses(e){return(await this.requestJSON({url:`${this.repoURL}/pullrequests/${e.id}/statuses`,params:{pagelen:100}})).values}async getStatuses(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n),o=await this.getBranchPullRequest(r);return(await this.getPullRequestStatuses(o)).map(e=>{let{key:t,state:n,url:r}=e;return{context:t,state:n===i.Successful?s.PreviewState.Success:s.PreviewState.Other,target_url:r}})}async getUnpublishedEntrySha(e,t){const n=(0,s.generateContentKey)(e,t),r=(0,s.branchFromContentKey)(n);return(await this.getBranchPullRequest(r)).destination.commit.hash}}},function(e,t,n){e.exports=c,c.Minimatch=d;var r=function(){try{return n(98)}catch(e){}}()||{sep:"/"};c.sep=r.sep;var i=c.GLOBSTAR=d.GLOBSTAR={},o=n(1421),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var l=/\/+/;function u(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function c(e,t,n){return p(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new d(t,n).match(e)}function d(e,t){if(!(this instanceof d))return new d(e,t);p(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===r.sep||(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function f(e,t){return t||(t=this instanceof d?this.options:{}),e=void 0===e?this.pattern:e,p(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}c.filter=function(e,t){return t=t||{},function(n,r,i){return c(n,e,t)}},c.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return c;var t=c,n=function(n,r,i){return t(n,r,u(e,i))};return(n.Minimatch=function(n,r){return new t.Minimatch(n,u(e,r))}).defaults=function(n){return t.defaults(u(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,u(e,r))},n.defaults=function(n){return t.defaults(u(e,n))},n.makeRe=function(n,r){return t.makeRe(n,u(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,u(e,r))},n.match=function(n,r,i){return t.match(n,r,u(e,i))},n},d.defaults=function(e){return c.defaults(e).Minimatch},d.prototype.debug=function(){},d.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(l)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=e.length;i<o&&"!"===e.charAt(i);i++)t=!t,r++;r&&(this.pattern=e.substr(r));this.negate=t},c.braceExpand=function(e,t){return f(e,t)},d.prototype.braceExpand=f;var p=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};d.prototype.parse=function(e,t){p(e);var n=this.options;if("**"===e){if(!n.noglobstar)return i;e="*"}if(""===e)return"";var r,o="",l=!!n.nocase,u=!1,c=[],d=[],f=!1,m=-1,g=-1,v="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function b(){if(r){switch(r){case"*":o+="[^/]*?",l=!0;break;case"?":o+="[^/]",l=!0;break;default:o+="\\"+r}y.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,w=0,x=e.length;w<x&&(_=e.charAt(w));w++)if(this.debug("%s\t%s %s %j",e,w,o,_),u&&s[_])o+="\\"+_,u=!1;else switch(_){case"/":return!1;case"\\":b(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,w,o,_),f){this.debug(" in class"),"!"===_&&w===g+1&&(_="^"),o+=_;continue}y.debug("call clearStateChar %j",r),b(),r=_,n.noext&&b();continue;case"(":if(f){o+="(";continue}if(!r){o+="\\(";continue}c.push({type:r,start:w-1,reStart:o.length,open:a[r].open,close:a[r].close}),o+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,o),r=!1;continue;case")":if(f||!c.length){o+="\\)";continue}b(),l=!0;var k=c.pop();o+=k.close,"!"===k.type&&d.push(k),k.reEnd=o.length;continue;case"|":if(f||!c.length||u){o+="\\|",u=!1;continue}b(),o+="|";continue;case"[":if(b(),f){o+="\\"+_;continue}f=!0,g=w,m=o.length,o+=_;continue;case"]":if(w===g+1||!f){o+="\\"+_,u=!1;continue}var E=e.substring(g+1,w);try{RegExp("["+E+"]")}catch(e){var S=this.parse(E,h);o=o.substr(0,m)+"\\["+S[0]+"\\]",l=l||S[1],f=!1;continue}l=!0,f=!1,o+=_;continue;default:b(),u?u=!1:!s[_]||"^"===_&&f||(o+="\\"),o+=_}f&&(E=e.substr(g+1),S=this.parse(E,h),o=o.substr(0,m)+"\\["+S[0],l=l||S[1]);for(k=c.pop();k;k=c.pop()){var O=o.slice(k.reStart+k.open.length);this.debug("setting tail",o,k),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",O,O,k,o);var C="*"===k.type?"[^/]*?":"?"===k.type?"[^/]":"\\"+k.type;l=!0,o=o.slice(0,k.reStart)+C+"\\("+O}b(),u&&(o+="\\\\");var T=!1;switch(o.charAt(0)){case"[":case".":case"(":T=!0}for(var A=d.length-1;A>-1;A--){var P=d[A],R=o.slice(0,P.reStart),j=o.slice(P.reStart,P.reEnd-8),I=o.slice(P.reEnd-8,P.reEnd),M=o.slice(P.reEnd);I+=M;var L=R.split("(").length-1,D=M;for(w=0;w<L;w++)D=D.replace(/\)[+*?]?/,"");var N="";""===(M=D)&&t!==h&&(N="$"),o=R+j+M+N+I}""!==o&&l&&(o="(?=.)"+o);T&&(o=v+o);if(t===h)return[o,l];if(!l)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var F=n.nocase?"i":"";try{var B=new RegExp("^"+o+"$",F)}catch(e){return new RegExp("$.")}return B._glob=e,B._src=o,B};var h={};c.makeRe=function(e,t){return new d(e,t||{}).makeRe()},d.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",o=e.map((function(e){return e.map((function(e){return e===i?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(e){this.regexp=!1}return this.regexp},c.match=function(e,t,n){var r=new d(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},d.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==r.sep&&(e=e.split(r.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);var i,o,a=this.set;for(this.debug(this.pattern,"set",a),o=e.length-1;o>=0&&!(i=e[o]);o--);for(o=0;o<a.length;o++){var s=a[o],u=e;if(n.matchBase&&1===s.length&&(u=[i]),this.matchOne(u,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},d.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,l=t.length;o<s&&a<l;o++,a++){this.debug("matchOne loop");var u,c=t[a],d=e[o];if(this.debug(t,c,d),!1===c)return!1;if(c===i){this.debug("GLOBSTAR",[t,c,d]);var f=o,p=a+1;if(p===l){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!r.dot&&"."===e[o].charAt(0))return!1;return!0}for(;f<s;){var h=e[f];if(this.debug("\nglobstar while",e,f,t,p,h),this.matchOne(e.slice(f),t.slice(p),n))return this.debug("globstar found match!",f,s,h),!0;if("."===h||".."===h||!r.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!n||(this.debug("\n>>> no match, partial?",e,f,t,p),f!==s))}if("string"==typeof c?(u=d===c,this.debug("string match",c,d,u)):(u=d.match(c),this.debug("pattern match",c,d,u)),!u)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(173)),o=u(n(2)),a=u(n(0)),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("button",{target:"ey01qwa0",label:"LoginButton"})(s.buttons.button,";",s.shadows.dropDeep,";",s.buttons.default,";",s.buttons.gray,";padding:0 30px;display:block;margin-top:20px;margin-left:auto;"),h=(0,r.default)("form",{target:"ey01qwa1",label:"AuthForm"})({name:"olstp8",styles:"width:350px;margin-top:-80px;"}),m=(0,r.default)("input",{target:"ey01qwa2",label:"AuthInput"})("background-color:",s.colorsRaw.white,";border-radius:",s.lengths.borderRadius,";font-size:14px;padding:10px;margin-bottom:15px;margin-top:6px;width:100%;position:relative;z-index:",s.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",s.colors.active,";}"),g=(0,r.default)("p",{target:"ey01qwa3",label:"ErrorMessage"})("color:",s.colors.errorText,";");let v=null;window.netlifyIdentity&&(window.netlifyIdentity.on("login",e=>{v&&v.handleIdentityLogin(e)}),window.netlifyIdentity.on("logout",()=>{v&&v.handleIdentityLogout()}),window.netlifyIdentity.on("error",e=>{v&&v.handleIdentityError(e)}));class y extends a.default.Component{constructor(e){super(e),f(this,"handleIdentityLogin",e=>{this.props.onLogin(e),window.netlifyIdentity.close()}),f(this,"handleIdentityLogout",()=>{window.netlifyIdentity.open()}),f(this,"handleIdentityError",e=>{var t;null!=e&&null!==(t=e.message)&&void 0!==t&&t.match(/^Failed to load settings from.+\.netlify\/identity$/)&&(window.netlifyIdentity.close(),this.setState({errors:{identity:this.props.t("auth.errors.identitySettings")}}))}),f(this,"handleIdentity",()=>{const e=window.netlifyIdentity.currentUser();e?this.props.onLogin(e):window.netlifyIdentity.open()}),f(this,"state",{email:"",password:"",errors:{}}),f(this,"handleChange",(e,t)=>{this.setState(d(d({},this.state),{},{[e]:t.target.value}))}),f(this,"handleLogin",async e=>{e.preventDefault();const{email:t,password:n}=this.state,{t:r}=this.props,i={};if(t||(i.email=r("auth.errors.email")),n||(i.password=r("auth.errors.password")),Object.keys(i).length>0)this.setState({errors:i});else try{const e=await y.authClient(),t=await e.login(this.state.email,this.state.password,!0);this.props.onLogin(t)}catch(e){this.setState({errors:{server:e.description||e.msg||e},loggingIn:!1})}}),v=this}componentDidMount(){!this.loggedIn&&window.netlifyIdentity&&window.netlifyIdentity.currentUser()&&(this.props.onLogin(window.netlifyIdentity.currentUser()),window.netlifyIdentity.close())}componentWillUnmount(){v=null}render(){const{errors:e}=this.state,{error:t,inProgress:n,config:r,t:o}=this.props;return window.netlifyIdentity?e.identity?(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderPageContent:()=>(0,l.jsx)("a",{href:"https://docs.netlify.com/visitor-access/git-gateway/#setup-and-settings",target:"_blank",rel:"noopener noreferrer"},e.identity),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,onLogin:this.handleIdentity,renderButtonContent:()=>o("auth.loginWithNetlifyIdentity"),t:o}):(0,l.jsx)(s.AuthenticationPage,{logoUrl:r.logo_url,siteUrl:r.site_url,renderPageContent:()=>(0,l.jsx)(h,{onSubmit:this.handleLogin},t?(0,l.jsx)(g,null,t):null,e.server?(0,l.jsx)(g,null,String(e.server)):null,(0,l.jsx)(g,null,e.email||null),(0,l.jsx)(m,{type:"text",name:"email",placeholder:"Email",value:this.state.email,onChange:(0,i.default)(this.handleChange,"email")}),(0,l.jsx)(g,null,e.password||null),(0,l.jsx)(m,{type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:(0,i.default)(this.handleChange,"password")}),(0,l.jsx)(p,{disabled:n},o(n?"auth.loggingIn":"auth.login"))),t:o})}}t.default=y,f(y,"authClient",void 0),f(y,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool.isRequired,error:o.default.node,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){var r=n(191),i=n(194),o=n(1430),a=n(163);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=l(n(0)),o=l(n(2)),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"e121jgcy0",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)(a.Icon,{target:"e121jgcy1",label:"PageLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),f=(0,r.default)("button",{target:"e121jgcy2",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:-40px;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(){super(...arguments),u(this,"handleLogin",e=>{e.preventDefault(),this.props.onLogin(this.state)})}componentDidMount(){!1===this.props.config.backend.login&&this.props.onLogin(this.state)}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"netlify-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=l(n(0)),o=l(n(2)),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)("section",{target:"eyzerh70",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)(a.Icon,{target:"eyzerh71",label:"PageLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),f=(0,r.default)("button",{target:"eyzerh72",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";padding:0 30px;margin-top:-40px;display:flex;align-items:center;position:relative;",a.Icon,"{margin-right:18px;}");class p extends i.default.Component{constructor(){super(...arguments),u(this,"handleLogin",e=>{e.preventDefault(),this.props.onLogin(this.state)})}render(){const{config:e,inProgress:t,t:n}=this.props;return(0,s.jsx)(c,null,(0,s.jsx)(d,{size:"300px",type:"netlify-cms"}),(0,s.jsx)(f,{disabled:t,onClick:this.handleLogin},n(t?"auth.loggingIn":"auth.login")),e.site_url&&(0,s.jsx)(a.GoBackButton,{href:e.site_url,t:n}))}}t.default=p,u(p,"propTypes",{onLogin:o.default.func.isRequired,inProgress:o.default.bool,config:o.default.object.isRequired,t:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetFile=void 0;var r=a(n(1445)),i=a(n(1447)),o=a(n(1448));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)();const d={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"file",controlComponent:c,previewComponent:i.default,schema:o.default},e)},controlComponent:c,previewComponent:i.default,withFileControl:r.default};t.NetlifyCmsWidgetFile=d;var f=d;t.default=f},function(e,t,n){var r=n(109),i=n(162),o=n(210);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(1454),i=n(1455),o=n(1456),a=n(1457);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return a(e,t,o,"day");if(t>=i)return a(e,t,i,"hour");if(t>=r)return a(e,t,r,"minute");if(t>=n)return a(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(62),i=n(197);e.exports=function(e){var t,n,o;for(n in i(s,e),i(a,s),t=s.prototype)(o=t[n])&&"object"==typeof o&&(t[n]="concat"in o?o.concat():r(o));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e,t,n){"use strict";var r=n(695),i=n(269);e.exports=function(e){return r(e)||i(e)}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";e.exports=a;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(e){var t=e||{};return t.commonmark?o:t.gfm?i:r}a.default=r,a.gfm=i,a.commonmark=o},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(1489)}},function(e,t,n){"use strict";e.exports=i;var r=n(1492);function i(e,t,n,i){var a;function s(e,r,l){var u,c=[];return(t&&!a(e,r,l[l.length-1]||null)||!1!==(c=o(n(e,l)))[0])&&e.children&&"skip"!==c[0]&&!1===(u=o(function(e,t){var n,r=i?-1:1,o=(i?e.length:-1)+r;for(;o>-1&&o<e.length;){if(!1===(n=s(e[o],o,t))[0])return n;o="number"==typeof n[1]?n[1]:o+r}}(e.children,l.concat(e))))[0]?u:c}"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),a=r(t),s(e,null,[])}function o(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}i.CONTINUE=!0,i.SKIP="skip",i.EXIT=!1},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,r=0,i=e.charAt(n),o={};for(;"\t"===i||" "===i;)r+=t="\t"===i?4:1,t>1&&(r=Math.floor(r/t)*t),o[r]=n,i=e.charAt(++n);return{indent:r,stops:o}}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r}},function(e,t,n){"use strict";e.exports=function(e){return e}},function(e,t,n){"use strict";e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:function(e){return e.length},incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},function(e){e.exports=JSON.parse('{"nbsp":" ","iexcl":"¡","cent":"¢","pound":"£","curren":"¤","yen":"¥","brvbar":"¦","sect":"§","uml":"¨","copy":"©","ordf":"ª","laquo":"«","not":"¬","shy":"­","reg":"®","macr":"¯","deg":"°","plusmn":"±","sup2":"²","sup3":"³","acute":"´","micro":"µ","para":"¶","middot":"·","cedil":"¸","sup1":"¹","ordm":"º","raquo":"»","frac14":"¼","frac12":"½","frac34":"¾","iquest":"¿","Agrave":"À","Aacute":"Á","Acirc":"Â","Atilde":"Ã","Auml":"Ä","Aring":"Å","AElig":"Æ","Ccedil":"Ç","Egrave":"È","Eacute":"É","Ecirc":"Ê","Euml":"Ë","Igrave":"Ì","Iacute":"Í","Icirc":"Î","Iuml":"Ï","ETH":"Ð","Ntilde":"Ñ","Ograve":"Ò","Oacute":"Ó","Ocirc":"Ô","Otilde":"Õ","Ouml":"Ö","times":"×","Oslash":"Ø","Ugrave":"Ù","Uacute":"Ú","Ucirc":"Û","Uuml":"Ü","Yacute":"Ý","THORN":"Þ","szlig":"ß","agrave":"à","aacute":"á","acirc":"â","atilde":"ã","auml":"ä","aring":"å","aelig":"æ","ccedil":"ç","egrave":"è","eacute":"é","ecirc":"ê","euml":"ë","igrave":"ì","iacute":"í","icirc":"î","iuml":"ï","eth":"ð","ntilde":"ñ","ograve":"ò","oacute":"ó","ocirc":"ô","otilde":"õ","ouml":"ö","divide":"÷","oslash":"ø","ugrave":"ù","uacute":"ú","ucirc":"û","uuml":"ü","yacute":"ý","thorn":"þ","yuml":"ÿ","fnof":"ƒ","Alpha":"Α","Beta":"Β","Gamma":"Γ","Delta":"Δ","Epsilon":"Ε","Zeta":"Ζ","Eta":"Η","Theta":"Θ","Iota":"Ι","Kappa":"Κ","Lambda":"Λ","Mu":"Μ","Nu":"Ν","Xi":"Ξ","Omicron":"Ο","Pi":"Π","Rho":"Ρ","Sigma":"Σ","Tau":"Τ","Upsilon":"Υ","Phi":"Φ","Chi":"Χ","Psi":"Ψ","Omega":"Ω","alpha":"α","beta":"β","gamma":"γ","delta":"δ","epsilon":"ε","zeta":"ζ","eta":"η","theta":"θ","iota":"ι","kappa":"κ","lambda":"λ","mu":"μ","nu":"ν","xi":"ξ","omicron":"ο","pi":"π","rho":"ρ","sigmaf":"ς","sigma":"σ","tau":"τ","upsilon":"υ","phi":"φ","chi":"χ","psi":"ψ","omega":"ω","thetasym":"ϑ","upsih":"ϒ","piv":"ϖ","bull":"•","hellip":"…","prime":"","Prime":"″","oline":"‾","frasl":"","weierp":"℘","image":"","real":"","trade":"™","alefsym":"ℵ","larr":"←","uarr":"↑","rarr":"→","darr":"↓","harr":"↔","crarr":"↵","lArr":"⇐","uArr":"⇑","rArr":"⇒","dArr":"⇓","hArr":"⇔","forall":"∀","part":"∂","exist":"∃","empty":"∅","nabla":"∇","isin":"∈","notin":"∉","ni":"∋","prod":"∏","sum":"∑","minus":"","lowast":"","radic":"√","prop":"∝","infin":"∞","ang":"∠","and":"∧","or":"","cap":"∩","cup":"","int":"∫","there4":"∴","sim":"","cong":"≅","asymp":"≈","ne":"≠","equiv":"≡","le":"≤","ge":"≥","sub":"⊂","sup":"⊃","nsub":"⊄","sube":"⊆","supe":"⊇","oplus":"⊕","otimes":"⊗","perp":"⊥","sdot":"⋅","lceil":"⌈","rceil":"⌉","lfloor":"⌊","rfloor":"⌋","lang":"〈","rang":"〉","loz":"◊","spades":"♠","clubs":"♣","hearts":"♥","diams":"♦","quot":"\\"","amp":"&","lt":"<","gt":">","OElig":"Œ","oelig":"œ","Scaron":"Š","scaron":"š","Yuml":"Ÿ","circ":"ˆ","tilde":"˜","ensp":"","emsp":"","thinsp":"","zwnj":"","zwj":"","lrm":"","rlm":"","ndash":"","mdash":"—","lsquo":"","rsquo":"","sbquo":"","ldquo":"“","rdquo":"”","bdquo":"„","dagger":"†","Dagger":"‡","permil":"‰","lsaquo":"","rsaquo":"","euro":"€"}')},function(e,t,n){"use strict";var r=n(333);e.exports=function(e){var t;if("&"!==e.charAt(0))return 0;return(t=e.split("&",2).join("&")).length-r(t).length}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e,t){var n=e.split("\n"),i=n.length,o=r(" ",4*t);for(;i--;)0!==n[i].length&&(n[i]=o+n[i]);return n.join("\n")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!=typeof t||1!==t.length)throw new Error("Expected character");e=String(e),r=e.indexOf(t),n=r;for(;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},function(e,t,n){"use strict";e.exports=function(e){var t=e.referenceType;if("shortcut"===t)return"";return"["+("collapsed"===t?"":e.label||e.identifier)+"]"}},function(e,t,n){"use strict";var r=n(334);e.exports=function(e,t){return function(e){return function(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e,t){var n={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",t&&t.commonmark?function(e){var t=o(e.identifier);i.call(n,t)||(n[t]=e)}:function(e){n[o(e.identifier)]=e}),n}(e,t))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=t&&t.type,i=o.call(e.handlers,r)?e.handlers[r]:null;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof i?i:a)(e,t,n)};var r=n(72),i=n(100),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n={},o=t.ordered?"ol":"ul";"number"==typeof t.start&&1!==t.start&&(n.start=t.start);return e(t,o,n,r(i(e,t),!0))};var r=n(223),i=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(72)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,l="]";"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+l);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l));return n};var r=n(72),i=n(100)},function(e,t,n){"use strict";var r=n(459);function i(e){return function(t,n,i){var o=t&&t.children,a=n+e,s=o&&o[a];if(!i)for(;s&&r(s);)s=o[a+=e];return s}}t.before=i(-1),t.after=i(1)},function(e,t,n){"use strict";var r=n(137),i=n(459);e.exports=function(e){return o(e)&&i(e.value.charAt(0))};var o=r("text")},function(e,t,n){"use strict";var r=n(137);e.exports=r("comment")},function(e,t,n){"use strict";var r=n(458),i=n(718),o=n(719),a=n(717),s=n(721);function l(e,t,n){var r=a.after(n,t,!0);return!r||!o(r)&&!i(r)}function u(e,t,n){var i=a.after(n,t);return!i||r(i,["rp","rt"])}function c(e,t,n){var i=a.after(n,t);return!i||r(i,["td","th"])}e.exports=s({html:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},head:l,body:function(e,t,n){var r=a.after(n,t);return!r||!o(r)},p:function(e,t,n){var i=a.after(n,t);return i?r(i,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!r(n,["a","audio","del","ins","map","noscript","video"])},li:function(e,t,n){var i=a.after(n,t);return!i||r(i,"li")},dt:function(e,t,n){var i=a.after(n,t);return i&&r(i,["dt","dd"])},dd:function(e,t,n){var i=a.after(n,t);return!i||r(i,["dt","dd"])},rt:u,rp:u,optgroup:function(e,t,n){var i=a.after(n,t);return!i||r(i,"optgroup")},option:function(e,t,n){var i=a.after(n,t);return!i||r(i,["option","optgroup"])},menuitem:function(e,t,n){var i=a.after(n,t);return!i||r(i,["menuitem","hr","menu"])},colgroup:l,caption:l,thead:function(e,t,n){var i=a.after(n,t);return i&&r(i,["tbody","tfoot"])},tbody:function(e,t,n){var i=a.after(n,t);return!i||r(i,["tbody","tfoot"])},tfoot:function(e,t,n){return!a.after(n,t)},tr:function(e,t,n){var i=a.after(n,t);return!i||r(i,"tr")},td:c,th:c})},function(e,t,n){"use strict";e.exports=function(e){return function(t,n,i){return r.call(e,t.tagName)&&e[t.tagName](t,n,i)}};var r={}.hasOwnProperty},function(e,t,n){"use strict";e.exports=function(e,t,n,o){if(!t||!t.type)throw new Error("Expected node, not `"+t+"`");if(!i.call(r,t.type))throw new Error("Cannot compile unknown node `"+t.type+"`");return r[t.type](e,t,n,o)};var r={comment:n(1601),doctype:n(1611),element:n(1612),raw:n(1614),root:n(725),text:n(726)},i={}.hasOwnProperty},function(e,t,n){"use strict";e.exports=function(e,t){if(e=e.replace(t.subset?function(e){var t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}},function(e,t,n){e.exports=function(e,t,n){var a,s,l;(n.useNamedReferences||n.useShortestReferences)&&(a=o(e,t,n.omitOptionalSemicolons,n.attribute));!n.useShortestReferences&&a||(s=r(e,t,n.omitOptionalSemicolons),n.useShortestReferences&&(l=i(e,t,n.omitOptionalSemicolons)).length<s.length&&(s=l));return a&&(!n.useShortestReferences||a.length<s.length)?a:s};var r=n(1604),i=n(1605),o=n(1606)},function(e,t,n){"use strict";var r=n(722);e.exports=function(e,t){var n=[],i=t&&t.children||[],o=-1;for(;++o<i.length;)n[o]=r(e,i[o],o,t);return n.join("")}},function(e,t,n){"use strict";var r=n(62),i=n(336);e.exports=function(e,t,n,o){return!o||"script"!==o.tagName&&"style"!==o.tagName?i(t.value,r(e.entities,{subset:["<","&"]})):t.value}},function(e,t,n){"use strict";var r=n(330),i=n(443),o=n(1620),a=n(444).parse,s=n(445).parse;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)t=e[r],i[t.toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=i&&l.call(i,d)?i[d]:d,n&&u(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)f(a.properties,r,n[r]);c(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function f(t,n,i){var o,l,u;null!=i&&i==i&&(l=(o=r(e,n)).property,"string"==typeof(u=i)&&(o.spaceSeparated?u=a(u):o.commaSeparated?u=s(u):o.commaOrSpaceSeparated&&(u=a(s(u).join(" ")))),"style"===l&&"string"!=typeof i&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===l&&t.className&&(u=t.className.concat(u)),t[l]=function(e,t,n){var r,i,o;if("object"!=typeof n||!("length"in n))return d(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=d(e,t,n[r]);return o}(o,l,u))}};var l={}.hasOwnProperty;function u(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}function c(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function d(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},function(e,t,n){"use strict";const r=n(153),i=n(337),o=n(729);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===i.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(i.MODE).forEach(r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].call(this,n)}}),n}}},function(e,t,n){"use strict";const r=n(153);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;i.call(e.handlers,t.tagName)&&(r=e.handlers[t.tagName])}else i.call(e.handlers,t.type)&&(r=e.handlers[t.type]);return("function"==typeof r?r:a)(e,t,n)};var r=n(84),i=n(339),o=n(138);function a(e,t){return t.value?e(t,"text",o(e,t.value)):r(e,t)}},function(e,t,n){"use strict";e.exports=function(e){var t,n={};for(t in e)r.call(e,t)&&"children"!==t&&(n[t]=e[t]);return n};var r=n(339)},function(e,t,n){"use strict";e.exports=function(e){var t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}},function(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t),i=-1;for(;++i<n.length;)"listItem"!==n[i].type&&(n[i]={type:"listItem",spread:!1,checked:null,children:[n[i]]});return n};var r=n(84)},function(e,t,n){"use strict";var r=n(338),i=n(128),o=n(340),a=n(138);e.exports=function(e,t,n){var i,s,u,c,d,f=n||t.properties,p=l(t),h=Math.min(parseInt(f.size,10),0)||(f.multiple?4:1),m=-1,g=[],v=[];for(;++m<p.length;)r(p[m],"selected")&&g.push(p[m]);s=g.length?g:p,p=s.slice(0,h),m=-1;for(;++m<p.length;)i=p[m],u=a(e,o(i)),c=u||i.properties.label,d=i.properties.value||u,v.push([d,c===d?null:c]);return v};var s=i("option");function l(e){for(var t,n=e.children,i=-1,o=[];++i<n.length;)t=n[i],s(t)?r(t,"disabled")||o.push(t):t.children&&(o=o.concat(l(t)));return o}},function(e,t,n){var r=n(1680),i=n(512);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(242),i=n(167);e.exports=function(e,t){return r(i(e,t),1)}},function(e,t,n){var r=n(1695),i=n(166),o=n(310),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorStyleVars=t.EditorControlBar=void 0;var r,i=(r=n(21))&&r.__esModule?r:{default:r},o=n(17);const a={stickyDistanceBottom:"100px"};t.editorStyleVars=a;const s=(0,i.default)("div",{target:"eqipg3b0",label:"EditorControlBar"})("z-index:",o.zIndex.zIndex200,";position:sticky;top:0;margin-bottom:",a.stickyDistanceBottom,";");t.EditorControlBar=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(21)),i=d(n(0)),o=d(n(2)),a=d(n(33)),s=n(9),l=n(4),u=n(17),c=d(n(1702));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e169jtoy0",label:"ToolbarContainer"})("background-color:",u.colors.textFieldBorder,";border-top-right-radius:",u.lengths.borderRadius,";position:relative;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;min-height:58px;transition:background-color ",u.transitions.main,",color ",u.transitions.main,";color:",u.colors.text,";"),h=(0,r.default)("div",{target:"e169jtoy1",label:"ToolbarDropdownWrapper"})({name:"b3pn3b",styles:"display:inline-block;position:relative;"}),m=(0,r.default)("div",{target:"e169jtoy2",label:"ToolbarToggle"})({name:"1xp6irr",styles:"flex-shrink:0;display:flex;align-items:center;font-size:14px;margin:0 10px;"}),g=m.withComponent(u.Toggle,{target:"e169jtoy4",label:"StyledToggle"}),v=(0,r.default)("span",{target:"e169jtoy3",label:"ToolbarToggleLabel"})("display:inline-block;text-align:center;white-space:nowrap;line-height:20px;min-width:",e=>e.offPosition?"62px":"70px",";",e=>e.isActive&&(0,s.css)("font-weight:600;color:",u.colors.active,";;label:ToolbarToggleLabel;"),";");class y extends i.default.Component{constructor(){super(...arguments),f(this,"isVisible",e=>{const{buttons:t}=this.props;return!l.List.isList(t)||t.includes(e)}),f(this,"handleBlockClick",(e,t)=>{e&&e.preventDefault(),this.props.onBlockClick(t)}),f(this,"handleMarkClick",(e,t)=>{e.preventDefault(),this.props.onMarkClick(t)})}render(){const{onLinkClick:e,onToggleMode:t,rawMode:n,isShowModeToggle:r,plugins:i,disabled:o,onSubmit:a,hasMark:d=(()=>{}),hasInline:f=(()=>{}),hasBlock:y=(()=>{}),hasQuote:b=(()=>{}),hasListItems:_=(()=>{}),editorComponents:w,t:x}=this.props,k=this.isVisible,E=!w||w.size>=1;const S=i?i.toList().filter((function(e){let{id:t}=e;return!w||w.includes(t)})):(0,l.List)(),O={"heading-one":x("editor.editorWidgets.headingOptions.headingOne"),"heading-two":x("editor.editorWidgets.headingOptions.headingTwo"),"heading-three":x("editor.editorWidgets.headingOptions.headingThree"),"heading-four":x("editor.editorWidgets.headingOptions.headingFour"),"heading-five":x("editor.editorWidgets.headingOptions.headingFive"),"heading-six":x("editor.editorWidgets.headingOptions.headingSix")};return(0,s.jsx)(p,null,(0,s.jsx)("div",null,k("bold")&&(0,s.jsx)(c.default,{type:"bold",label:x("editor.editorWidgets.markdown.bold"),icon:"bold",onClick:this.handleMarkClick,isActive:d("bold"),disabled:o}),k("italic")&&(0,s.jsx)(c.default,{type:"italic",label:x("editor.editorWidgets.markdown.italic"),icon:"italic",onClick:this.handleMarkClick,isActive:d("italic"),disabled:o}),k("code")&&(0,s.jsx)(c.default,{type:"code",label:x("editor.editorWidgets.markdown.code"),icon:"code",onClick:this.handleMarkClick,isActive:d("code"),disabled:o}),k("link")&&(0,s.jsx)(c.default,{type:"link",label:x("editor.editorWidgets.markdown.link"),icon:"link",onClick:e,isActive:f("link"),disabled:o}),Object.keys(O).some(k)&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownWidth:"max-content",dropdownTopOverlap:"36px",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{type:"headings",label:x("editor.editorWidgets.markdown.headings"),icon:"hOptions",disabled:o,isActive:!o&&Object.keys(O).some(y)}))},!o&&Object.keys(O).map((e,t)=>k(e)&&(0,s.jsx)(u.DropdownItem,{key:t,label:O[e],className:y(e)?"active":"",onClick:()=>this.handleBlockClick(null,e)})))),k("quote")&&(0,s.jsx)(c.default,{type:"quote",label:x("editor.editorWidgets.markdown.quote"),icon:"quote",onClick:this.handleBlockClick,isActive:b("quote"),disabled:o}),k("bulleted-list")&&(0,s.jsx)(c.default,{type:"bulleted-list",label:x("editor.editorWidgets.markdown.bulletedList"),icon:"list-bulleted",onClick:this.handleBlockClick,isActive:_("bulleted-list"),disabled:o}),k("numbered-list")&&(0,s.jsx)(c.default,{type:"numbered-list",label:x("editor.editorWidgets.markdown.numberedList"),icon:"list-numbered",onClick:this.handleBlockClick,isActive:_("numbered-list"),disabled:o}),E&&(0,s.jsx)(h,null,(0,s.jsx)(u.Dropdown,{dropdownTopOverlap:"36px",dropdownWidth:"max-content",renderButton:()=>(0,s.jsx)(u.DropdownButton,null,(0,s.jsx)(c.default,{label:x("editor.editorWidgets.markdown.addComponent"),icon:"add-with",onClick:this.handleComponentsMenuToggle,disabled:o}))},S.map((e,t)=>(0,s.jsx)(u.DropdownItem,{key:t,label:e.label,onClick:()=>a(e)}))))),r&&(0,s.jsx)(m,null,(0,s.jsx)(v,{isActive:!n,offPosition:!0},x("editor.editorWidgets.markdown.richText")),(0,s.jsx)(g,{active:n,onChange:t}),(0,s.jsx)(v,{isActive:n},x("editor.editorWidgets.markdown.markdown"))))}}t.default=y,f(y,"propTypes",{buttons:a.default.list,editorComponents:a.default.list,onToggleMode:o.default.func.isRequired,rawMode:o.default.bool,isShowModeToggle:o.default.bool.isRequired,plugins:a.default.map,onSubmit:o.default.func,onAddAsset:o.default.func,getAsset:o.default.func,disabled:o.default.bool,onMarkClick:o.default.func,onBlockClick:o.default.func,onLinkClick:o.default.func,hasMark:o.default.func,hasInline:o.default.func,hasBlock:o.default.func,t:o.default.func.isRequired})},function(e,t,n){var r=n(1750);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(195)},function(e,t,n){e.exports=n(5)()},function(e,t){e.exports=n(54)},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";var r=n(6);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(0),l=n.n(s);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){var t=e.onClickPrev,n=e.onClickSwitch,r=e.onClickNext,i=e.switchContent,o=e.switchColSpan,a=e.switchProps;return l.a.createElement("tr",null,l.a.createElement("th",{className:"rdtPrev",onClick:t},l.a.createElement("span",null,"")),l.a.createElement("th",u({className:"rdtSwitch",colSpan:o,onClick:n},a),i),l.a.createElement("th",{className:"rdtNext",onClick:r},l.a.createElement("span",null,"")))}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(i,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}(i);function i(){var e;f(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return y(g(e=r.call.apply(r,[this].concat(n))),"_setDate",(function(t){e.props.updateDate(t)})),e}return t=i,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtDays"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation(),this.renderDayHeaders()),l.a.createElement("tbody",null,this.renderDays()),this.renderFooter()))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate,n=t.localeData();return l.a.createElement(c,{onClickPrev:function(){return e.props.navigate(-1,"months")},onClickSwitch:function(){return e.props.showView("months")},onClickNext:function(){return e.props.navigate(1,"months")},switchContent:n.months(t)+" "+t.year(),switchColSpan:5,switchProps:{"data-value":this.props.viewDate.month()}})}},{key:"renderDayHeaders",value:function(){var e=function(e){var t=e.firstDayOfWeek(),n=[],r=0;return e._weekdaysMin.forEach((function(e){n[(7+r++-t)%7]=e})),n}(this.props.viewDate.localeData()).map((function(e,t){return l.a.createElement("th",{key:e+t,className:"dow"},e)}));return l.a.createElement("tr",null,e)}},{key:"renderDays",value:function(){var e=this.props.viewDate,t=e.clone().startOf("month"),n=e.clone().endOf("month"),r=[[],[],[],[],[],[]],i=e.clone().subtract(1,"months");i.date(i.daysInMonth()).startOf("week");for(var o=i.clone().add(42,"d"),a=0;i.isBefore(o);)_(r,a++).push(this.renderDay(i,t,n)),i.add(1,"d");return r.map((function(e,t){return l.a.createElement("tr",{key:"".concat(o.month(),"_").concat(t)},e)}))}},{key:"renderDay",value:function(e,t,n){var r=this.props.selectedDate,i={key:e.format("M_D"),"data-value":e.date(),"data-month":e.month(),"data-year":e.year()},o="rdtDay";return e.isBefore(t)?o+=" rdtOld":e.isAfter(n)&&(o+=" rdtNew"),r&&e.isSame(r,"day")&&(o+=" rdtActive"),e.isSame(this.props.moment(),"day")&&(o+=" rdtToday"),this.props.isValidDate(e)?i.onClick=this._setDate:o+=" rdtDisabled",i.className=o,this.props.renderDay(i,e.clone(),r&&r.clone())}},{key:"renderFooter",value:function(){var e=this;if(this.props.timeFormat){var t=this.props.viewDate;return l.a.createElement("tfoot",null,l.a.createElement("tr",null,l.a.createElement("td",{onClick:function(){return e.props.showView("time")},colSpan:7,className:"rdtTimeToggle"},t.format(this.props.timeFormat))))}}}])&&p(t.prototype,n),i}(l.a.Component);function _(e,t){return e[Math.floor(t/7)]}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y(b,"defaultProps",{isValidDate:function(){return!0},renderDay:function(e,t){return l.a.createElement("td",e,t.date())}});var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(i,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}(i);function i(){var e;x(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return T(O(e=r.call.apply(r,[this].concat(n))),"_updateSelectedMonth",(function(t){e.props.updateDate(t)})),e}return t=i,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtMonths"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation())),l.a.createElement("table",null,l.a.createElement("tbody",null,this.renderMonths())))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate.year();return l.a.createElement(c,{onClickPrev:function(){return e.props.navigate(-1,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(1,"years")},switchContent:t,switchColSpan:"2"})}},{key:"renderMonths",value:function(){for(var e=[[],[],[]],t=0;t<12;t++)P(e,t).push(this.renderMonth(t));return e.map((function(e,t){return l.a.createElement("tr",{key:t},e)}))}},{key:"renderMonth",value:function(e){var t,n=this.props.selectedDate,r="rdtMonth";this.isDisabledMonth(e)?r+=" rdtDisabled":t=this._updateSelectedMonth,n&&n.year()===this.props.viewDate.year()&&n.month()===e&&(r+=" rdtActive");var i={key:e,className:r,"data-value":e,onClick:t};return this.props.renderMonth?this.props.renderMonth(i,e,this.props.viewDate.year(),this.props.selectedDate&&this.props.selectedDate.clone()):l.a.createElement("td",i,this.getMonthText(e))}},{key:"isDisabledMonth",value:function(e){var t=this.props.isValidDate;if(!t)return!1;for(var n=this.props.viewDate.clone().set({month:e}),r=n.endOf("month").date()+1;r-- >1;)if(t(n.date(r)))return!1;return!0}},{key:"getMonthText",value:function(e){var t,n=this.props.viewDate;return(t=n.localeData().monthsShort(n.month(e)).substring(0,3)).charAt(0).toUpperCase()+t.slice(1)}}])&&k(t.prototype,n),i}(l.a.Component);function P(e,t){return t<4?e[0]:t<8?e[1]:e[2]}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?D(e):t}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}(i);function i(){var e;j(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return F(D(e=r.call.apply(r,[this].concat(n))),"disabledYearsCache",{}),F(D(e),"_updateSelectedYear",(function(t){e.props.updateDate(t)})),e}return t=i,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtYears"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation())),l.a.createElement("table",null,l.a.createElement("tbody",null,this.renderYears())))}},{key:"renderNavigation",value:function(){var e=this,t=this.getViewYear();return l.a.createElement(c,{onClickPrev:function(){return e.props.navigate(-10,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(10,"years")},switchContent:"".concat(t,"-").concat(t+9)})}},{key:"renderYears",value:function(){for(var e=this.getViewYear(),t=[[],[],[]],n=e-1;n<e+11;n++)z(t,n-e).push(this.renderYear(n));return t.map((function(e,t){return l.a.createElement("tr",{key:t},e)}))}},{key:"renderYear",value:function(e){var t,n=this.getSelectedYear(),r="rdtYear";this.isDisabledYear(e)?r+=" rdtDisabled":t=this._updateSelectedYear,n===e&&(r+=" rdtActive");var i={key:e,className:r,"data-value":e,onClick:t};return this.props.renderYear(i,e,this.props.selectedDate&&this.props.selectedDate.clone())}},{key:"getViewYear",value:function(){return 10*parseInt(this.props.viewDate.year()/10,10)}},{key:"getSelectedYear",value:function(){return this.props.selectedDate&&this.props.selectedDate.year()}},{key:"isDisabledYear",value:function(e){var t=this.disabledYearsCache;if(void 0!==t[e])return t[e];var n=this.props.isValidDate;if(!n)return!1;for(var r=this.props.viewDate.clone().set({year:e}),i=r.endOf("year").dayOfYear()+1;i-- >1;)if(n(r.dayOfYear(i)))return t[e]=!1,!1;return t[e]=!0,!0}}])&&I(t.prototype,n),i}(l.a.Component);function z(e,t){return t<3?e[0]:t<7?e[1]:e[2]}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}F(B,"defaultProps",{renderYear:function(e,t){return l.a.createElement("td",e,t)}});var Y={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(i,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$(e);if(t){var i=$(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return H(this,n)}}(i);function i(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).constraints=(n=e.timeConstraints,o={},Object.keys(Y).forEach((function(e){o[e]=G(G({},Y[e]),n[e]||{})})),o),t.state=t.getTimeParts(e.selectedDate||e.viewDate),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=[],n=this.state;return this.getCounters().forEach((function(r,i){i&&"ampm"!==r&&t.push(l.a.createElement("div",{key:"sep".concat(i),className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(r,n[r]))})),l.a.createElement("div",{className:"rdtTime"},l.a.createElement("table",null,this.renderHeader(),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement("div",{className:"rdtCounters"},t))))))}},{key:"renderCounter",value:function(e,t){var n=this;return"hours"===e&&this.isAMPM()&&0==(t=(t-1)%12+1)&&(t=12),"ampm"===e&&(t=-1!==this.props.timeFormat.indexOf(" A")?this.props.viewDate.format("A"):this.props.viewDate.format("a")),l.a.createElement("div",{key:e,className:"rdtCounter"},l.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return n.onStartClicking(t,"increase",e)}},"▲"),l.a.createElement("div",{className:"rdtCount"},t),l.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return n.onStartClicking(t,"decrease",e)}},"▼"))}},{key:"renderHeader",value:function(){var e=this;if(this.props.dateFormat){var t=this.props.selectedDate||this.props.viewDate;return l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("td",{className:"rdtSwitch",colSpan:"4",onClick:function(){return e.props.showView("days")}},t.format(this.props.dateFormat))))}}},{key:"onStartClicking",value:function(e,t,n){var r=this;if(!e||!e.button||0===e.button){if("ampm"===n)return this.toggleDayPart();var i={},o=document.body;i[n]=this[t](n),this.setState(i),this.timer=setTimeout((function(){r.increaseTimer=setInterval((function(){i[n]=r[t](n),r.setState(i)}),70)}),500),this.mouseUpListener=function(){clearTimeout(r.timer),clearInterval(r.increaseTimer),r.props.setTime(n,parseInt(r.state[n],10)),o.removeEventListener("mouseup",r.mouseUpListener),o.removeEventListener("touchend",r.mouseUpListener)},o.addEventListener("mouseup",this.mouseUpListener),o.addEventListener("touchend",this.mouseUpListener)}}},{key:"toggleDayPart",value:function(){var e=parseInt(this.state.hours,10);e>=12?e-=12:e+=12,this.props.setTime("hours",e)}},{key:"increase",value:function(e){var t=this.constraints[e],n=parseInt(this.state[e],10)+t.step;return n>t.max&&(n=t.min+(n-(t.max+1))),X(e,n)}},{key:"decrease",value:function(e){var t=this.constraints[e],n=parseInt(this.state[e],10)-t.step;return n<t.min&&(n=t.max+1-(t.min-n)),X(e,n)}},{key:"getCounters",value:function(){var e=[],t=this.props.timeFormat;return-1!==t.toLowerCase().indexOf("h")&&(e.push("hours"),-1!==t.indexOf("m")&&(e.push("minutes"),-1!==t.indexOf("s")&&(e.push("seconds"),-1!==t.indexOf("S")&&e.push("milliseconds")))),this.isAMPM()&&e.push("ampm"),e}},{key:"isAMPM",value:function(){return-1!==this.props.timeFormat.toLowerCase().indexOf(" a")}},{key:"getTimeParts",value:function(e){var t=e.hours();return{hours:X("hours",t),minutes:X("minutes",e.minutes()),seconds:X("seconds",e.seconds()),milliseconds:X("milliseconds",e.milliseconds()),ampm:t<12?"am":"pm"}}},{key:"componentDidUpdate",value:function(e){this.props.selectedDate?this.props.selectedDate!==e.selectedDate&&this.setState(this.getTimeParts(this.props.selectedDate)):e.viewDate!==this.props.viewDate&&this.setState(this.getTimeParts(this.props.viewDate))}}])&&q(t.prototype,n),i}(l.a.Component);function X(e,t){for(var n={hours:1,minutes:2,seconds:2,milliseconds:3},r=t+"";r.length<n[e];)r="0"+r;return r}var Z=n(3);function J(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var ee,te,ne=(void 0===ee&&(ee=0),function(){return++ee}),re={},ie={},oe=["touchstart","touchmove"];function ae(e,t){var n=null;return-1!==oe.indexOf(t)&&te&&(n={passive:!e.props.preventDefault}),n}function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),e}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var i=ve(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?ge(e):t}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return Se}));var be="years",_e="months",we="days",xe=i.a,ke=function(){},Ee=xe.oneOfType([xe.instanceOf(a.a),xe.instanceOf(Date),xe.string]),Se=function(e){pe(n,e);var t=he(n);function n(e){var r;return ce(this,n),ye(ge(r=t.call(this,e)),"_renderCalendar",(function(){var e=r.props,t=r.state,n={viewDate:t.viewDate.clone(),selectedDate:r.getSelectedDate(),isValidDate:e.isValidDate,updateDate:r._updateDate,navigate:r._viewNavigate,moment:a.a,showView:r._showView};switch(t.currentView){case be:return n.renderYear=e.renderYear,l.a.createElement(B,n);case _e:return n.renderMonth=e.renderMonth,l.a.createElement(A,n);case we:return n.renderDay=e.renderDay,n.timeFormat=r.getFormat("time"),l.a.createElement(b,n);default:return n.dateFormat=r.getFormat("date"),n.timeFormat=r.getFormat("time"),n.timeConstraints=e.timeConstraints,n.setTime=r._setTime,l.a.createElement(Q,n)}})),ye(ge(r),"_showView",(function(e,t){var n=(t||r.state.viewDate).clone(),i=r.props.onBeforeNavigate(e,r.state.currentView,n);i&&r.state.currentView!==i&&(r.props.onNavigate(i),r.setState({currentView:i}))})),ye(ge(r),"viewToMethod",{days:"date",months:"month",years:"year"}),ye(ge(r),"nextView",{days:"time",months:"days",years:"months"}),ye(ge(r),"_updateDate",(function(e){var t=r.state.currentView,n=r.getUpdateOn(r.getFormat("date")),i=r.state.viewDate.clone();i[r.viewToMethod[t]](parseInt(e.target.getAttribute("data-value"),10)),"days"===t&&(i.month(parseInt(e.target.getAttribute("data-month"),10)),i.year(parseInt(e.target.getAttribute("data-year"),10)));var o={viewDate:i};t===n?(o.selectedDate=i.clone(),o.inputValue=i.format(r.getFormat("datetime")),void 0===r.props.open&&r.props.input&&r.props.closeOnSelect&&r._closeCalendar(),r.props.onChange(i.clone())):r._showView(r.nextView[t],i),r.setState(o)})),ye(ge(r),"_viewNavigate",(function(e,t){var n=r.state.viewDate.clone();n.add(e,t),e>0?r.props.onNavigateForward(e,t):r.props.onNavigateBack(-e,t),r.setState({viewDate:n})})),ye(ge(r),"_setTime",(function(e,t){var n=(r.getSelectedDate()||r.state.viewDate).clone();n[e](t),r.props.value||r.setState({selectedDate:n,viewDate:n.clone(),inputValue:n.format(r.getFormat("datetime"))}),r.props.onChange(n)})),ye(ge(r),"_openCalendar",(function(){r.isOpen()||r.setState({open:!0},r.props.onOpen)})),ye(ge(r),"_closeCalendar",(function(){r.isOpen()&&r.setState({open:!1},(function(){r.props.onClose(r.state.selectedDate||r.state.inputValue)}))})),ye(ge(r),"_handleClickOutside",(function(){var e=r.props;e.input&&r.state.open&&void 0===e.open&&e.closeOnClickOutside&&r._closeCalendar()})),ye(ge(r),"_onInputFocus",(function(e){r.callHandler(r.props.inputProps.onFocus,e)&&r._openCalendar()})),ye(ge(r),"_onInputChange",(function(e){if(r.callHandler(r.props.inputProps.onChange,e)){var t=e.target?e.target.value:e,n=r.localMoment(t,r.getFormat("datetime")),i={inputValue:t};n.isValid()?(i.selectedDate=n,i.viewDate=n.clone().startOf("month")):i.selectedDate=null,r.setState(i,(function(){r.props.onChange(n.isValid()?n:r.state.inputValue)}))}})),ye(ge(r),"_onInputKeyDown",(function(e){r.callHandler(r.props.inputProps.onKeyDown,e)&&9===e.which&&r.props.closeOnTab&&r._closeCalendar()})),ye(ge(r),"_onInputClick",(function(e){r.callHandler(r.props.inputProps.onClick,e)&&r._openCalendar()})),r.state=r.getInitialState(),r}return fe(n,[{key:"render",value:function(){return l.a.createElement(Ce,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),l.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var e=ue(ue({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?l.a.createElement("div",null,this.props.renderInput(e,this._openCalendar,this._closeCalendar)):l.a.createElement("input",e)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var e=this.props,t=this.getFormat("datetime"),n=this.parseDate(e.value||e.initialValue,t);return this.checkTZ(),{open:!e.input,currentView:e.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(n),selectedDate:n&&n.isValid()?n:void 0,inputValue:this.getInitialInputValue(n)}}},{key:"getInitialViewDate",value:function(e){var t,n=this.props.initialViewDate;if(n){if((t=this.parseDate(n,this.getFormat("datetime")))&&t.isValid())return t;Oe('The initialViewDated given "'+n+'" is not valid. Using current date instead.')}else if(e&&e.isValid())return e.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var e=this.localMoment();return e.hour(0).minute(0).second(0).millisecond(0),e}},{key:"getInitialView",value:function(){var e=this.getFormat("date");return e?this.getUpdateOn(e):"time"}},{key:"parseDate",value:function(e,t){var n;return e&&"string"==typeof e?n=this.localMoment(e,t):e&&(n=this.localMoment(e)),n&&!n.isValid()&&(n=null),n}},{key:"getClassName",value:function(){var e="rdt",t=this.props,n=t.className;return Array.isArray(n)?e+=" "+n.join(" "):n&&(e+=" "+n),t.input||(e+=" rdtStatic"),this.isOpen()&&(e+=" rdtOpen"),e}},{key:"isOpen",value:function(){return!this.props.input||(void 0===this.props.open?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(e){return this.props.updateOnView?this.props.updateOnView:e.match(/[lLD]/)?we:-1!==e.indexOf("M")?_e:-1!==e.indexOf("Y")?be:we}},{key:"getLocaleData",value:function(){var e=this.props;return this.localMoment(e.value||e.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var e=this.getLocaleData(),t=this.props.dateFormat;return!0===t?e.longDateFormat("L"):t||""}},{key:"getTimeFormat",value:function(){var e=this.getLocaleData(),t=this.props.timeFormat;return!0===t?e.longDateFormat("LT"):t||""}},{key:"getFormat",value:function(e){if("date"===e)return this.getDateFormat();if("time"===e)return this.getTimeFormat();var t=this.getDateFormat(),n=this.getTimeFormat();return t&&n?t+" "+n:t||n}},{key:"updateTime",value:function(e,t,n,r){var i={},o=r?"selectedDate":"viewDate";i[o]=this.state[o].clone()[e](t,n),this.setState(i)}},{key:"localMoment",value:function(e,t,n){var r=null;return r=(n=n||this.props).utc?a.a.utc(e,t,n.strictParsing):n.displayTimeZone?a.a.tz(e,t,n.displayTimeZone):a()(e,t,n.strictParsing),n.locale&&r.locale(n.locale),r}},{key:"checkTZ",value:function(){var e=this.props.displayTimeZone;!e||this.tzWarning||a.a.tz||(this.tzWarning=!0,Oe('displayTimeZone prop with value "'+e+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t=!1,n=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(r){e[r]!==n[r]&&(t=!0)})),t&&this.regenerateDates(),n.value&&n.value!==e.value&&this.setViewDate(n.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var e=this.props,t=this.state.viewDate.clone(),n=this.state.selectedDate&&this.state.selectedDate.clone();e.locale&&(t.locale(e.locale),n&&n.locale(e.locale)),e.utc?(t.utc(),n&&n.utc()):e.displayTimeZone?(t.tz(e.displayTimeZone),n&&n.tz(e.displayTimeZone)):(t.locale(),n&&n.locale());var r={viewDate:t,selectedDate:n};n&&n.isValid()&&(r.inputValue=n.format(this.getFormat("datetime"))),this.setState(r)}},{key:"getSelectedDate",value:function(){if(void 0===this.props.value)return this.state.selectedDate;var e=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!e||!e.isValid())&&e}},{key:"getInitialInputValue",value:function(e){var t=this.props;return t.inputProps.value?t.inputProps.value:e&&e.isValid()?e.format(this.getFormat("datetime")):t.value&&"string"==typeof t.value?t.value:t.initialValue&&"string"==typeof t.initialValue?t.initialValue:""}},{key:"getInputValue",value:function(){var e=this.getSelectedDate();return e?e.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(e){var t;return e&&(t="string"==typeof e?this.localMoment(e,this.getFormat("datetime")):this.localMoment(e))&&t.isValid()?void this.setState({viewDate:t}):Oe("Invalid date passed to the `setViewDate` method: "+e)}},{key:"navigate",value:function(e){this._showView(e)}},{key:"callHandler",value:function(e,t){return!e||!1!==e(t)}}]),n}(l.a.Component);function Oe(e,t){var n="undefined"!=typeof window&&window.console;n&&(t||(t="warn"),n[t]("***react-datetime:"+e))}ye(Se,"propTypes",{value:Ee,initialValue:Ee,initialViewDate:Ee,initialViewMode:xe.oneOf([be,_e,we,"time"]),onOpen:xe.func,onClose:xe.func,onChange:xe.func,onNavigate:xe.func,onBeforeNavigate:xe.func,onNavigateBack:xe.func,onNavigateForward:xe.func,updateOnView:xe.string,locale:xe.string,utc:xe.bool,displayTimeZone:xe.string,input:xe.bool,dateFormat:xe.oneOfType([xe.string,xe.bool]),timeFormat:xe.oneOfType([xe.string,xe.bool]),inputProps:xe.object,timeConstraints:xe.object,isValidDate:xe.func,open:xe.bool,strictParsing:xe.bool,closeOnSelect:xe.bool,closeOnTab:xe.bool,renderView:xe.func,renderInput:xe.func,renderDay:xe.func,renderMonth:xe.func,renderYear:xe.func}),ye(Se,"defaultProps",{onOpen:ke,onClose:ke,onCalendarOpen:ke,onCalendarClose:ke,onChange:ke,onNavigate:ke,onBeforeNavigate:function(e){return e},onNavigateBack:ke,onNavigateForward:ke,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(e,t){return t()}}),ye(Se,"moment",a.a);var Ce=function(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(n){var r,o;function a(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(Z.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!ie[r._uid]){void 0===te&&(te=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),ie[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),re[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(J(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,re[r._uid],ae(r,e))}))}},r.disableOnClickOutside=function(){delete ie[r._uid];var e=re[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,ae(r,t))})),delete re[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=ne(),r}o=n,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var l=a.prototype;return l.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(s.createElement)(e,n)},a}(s.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}(function(e){pe(n,e);var t=he(n);function n(){var e;ce(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return ye(ge(e=t.call.apply(t,[this].concat(i))),"container",l.a.createRef()),e}return fe(n,[{key:"render",value:function(){return l.a.createElement("div",{className:this.props.className,ref:this.container},this.props.children)}},{key:"handleClickOutside",value:function(e){this.props.onClickOut(e)}},{key:"setClickOutsideRef",value:function(){return this.container.current}}]),n}(l.a.Component))}])},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p<s&&d>=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),_=l[l.length-1];if(b.slice(0,_.length)==_)return{from:r(u,d(p,h,g,s)+c),to:r(u+l.length-1,d(y,b,_.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(5))},function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].empty()&&o(e,u[c].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var f=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:f})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return p;setTimeout(p,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(21)),i=(a(n(0)),n(17)),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)("button",{target:"ehe71p20",label:"StyledSettingsButton"})(i.buttons.button,";",i.buttons.default,";",i.shadows.drop,";display:block;position:absolute;z-index:",i.zIndex.zIndex100,";right:8px;top:8px;opacity:0.8;padding:2px 4px;line-height:1;height:auto;",i.Icon,"{position:relative;top:1px;}");var l=function(e){let{showClose:t,onClick:n}=e;return(0,o.jsx)(s,{onClick:n},(0,o.jsx)(i.Icon,{type:t?"close":"settings",size:"small"}))};t.default=l},function(e,t,n){!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var r=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,i=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,a=/^@[_A-Za-z$][_A-Za-z$0-9]*/,s=n(["and","or","not","is","isnt","in","instanceof","typeof"]),l=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],u=n(l.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));l=n(l);var c=/^('{3}|\"{3}|['\"])/,d=/^(\/{3}|\/)/,f=n(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function p(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>n&&"coffee"==t.scope.type?"indent":l<n?"dedent":null}n>0&&v(e,t)}if(e.eatSpace())return null;var p=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=m,t.tokenize(e,t);if("#"===p)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var g=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),e.match(/^-?\d+\.\d*/)&&(g=!0),e.match(/^-?\.\d+/)&&(g=!0),g)return"."==e.peek()&&e.backUp(1),"number";var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return"number"}if(e.match(c))return t.tokenize=h(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(d)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=h(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(r)||e.match(s)?"operator":e.match(i)?"punctuation":e.match(f)?"atom":e.match(a)||t.prop&&e.match(o)?"property":e.match(u)?"keyword":e.match(o)?"variable":(e.next(),"error")}function h(e,n,r){return function(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\/\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=p,r;i.eat(/['"\/]/)}return n&&(t.singleLineStringErrors?r="error":o.tokenize=p),r}}function m(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=p;break}e.eatWhile("#")}return"comment"}function g(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function v(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}return{startState:function(e){return{tokenize:p,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=function(e,t){var n=t.tokenize(e,t),r=e.current();"return"===r&&(t.dedent=!0),(("->"===r||"=>"===r)&&e.eol()||"indent"===n)&&g(e,t);var i="[({".indexOf(r);if(-1!==i&&g(e,t,"])}".slice(i,i+1)),l.exec(r)&&g(e,t),"then"==r&&v(e,t),"dedent"===n&&v(e,t))return"error";if(-1!==(i="])}".indexOf(r))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==r&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),n}(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=p)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var a in o)o.hasOwnProperty(a)&&n.tokenTypeOverrides[a]&&(o[a]=n.tokenTypeOverrides[a]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,c=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==_){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=b,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function b(r,i){var a,f=r.column()===i.indentation,m=!(a=i.prevLine.stream)||!/\S/.test(a.string),v=i.indentedCode,y=i.prevLine.hr,b=!1!==i.list,_=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var k=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,b)){for(i.list=null;k<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=k-i.listStack[i.listStack.length-1])}var E=!(m||y||i.prevLine.header||b&&v||i.prevLine.fencedCodeEnd),S=(!1===i.list||y||m)&&i.indentation<=_&&r.match(s),O=null;if(i.indentationDiff>=4&&(v||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(f&&i.indentation<=_&&(O=r.match(c))&&O[1].length<=6)return i.quote=0,i.header=O[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,x(i);if(i.indentation<=_&&r.eat(">"))return i.quote=f?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),x(i);if(!S&&!i.setext&&f&&i.indentation<=_&&(O=r.match(l))){var C=O[1]?"ol":"ul";return i.indentation=k+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&r.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+C]),x(i)}return f&&i.indentation<=_&&(O=r.match(p,!0))?(i.quote=0,i.fencedEndRE=new RegExp(O[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(O[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=w,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,x(i)):i.setext||!(E&&b||i.quote||!1!==i.list||i.code||S||h.test(r.string))&&(O=r.lookAhead(1))&&(O=O.match(d))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==O[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,x(i)):S?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,T):g(r,i,i.inline)}function _(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=b,n.htmlState=null)}return o}function w(e,t){var r,i=t.listStack[t.listStack.length-1]||0,a=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(a||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),a||(r=x(t)),t.localMode=t.localState=null,t.block=b,t.f=E,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,a?v(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),o.code)}function x(e){var t=[];if(e.formatting){t.push(o.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(o.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function k(e,t){if(e.match(f,!0))return x(t)}function E(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,x(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,x(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),x(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return o.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var p=x(i);return i.code=0,p}return i.formatting=d,x(i)}return i.code=f,x(i)}if(i.code)return x(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var h=x(i),g=o.formatting+"-escape";return h?h+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),x(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var h=x(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,h}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),x(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var h=x(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:E,h}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=S,n.highlightFormatting&&(i.formatting="link"),(h=x(i))?h+=" ":h="",h+o.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var b=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),v(t,i,_)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var C=t.peek()||" ",T=!/\s/.test(C)&&(!m.test(C)||/\s/.test(k)||m.test(k)),A=!/\s/.test(k)&&(!m.test(k)||/\s/.test(C)||m.test(C)),P=null,R=null;if(w%2&&(i.em||!T||"*"!==s&&A&&!m.test(k)?i.em!=s||!A||"*"!==s&&T&&!m.test(C)||(P=!1):P=!0),w>1&&(i.strong||!T||"*"!==s&&A&&!m.test(k)?i.strong!=s||!A||"*"!==s&&T&&!m.test(C)||(R=!1):R=!0),null!=R||null!=P)return n.highlightFormatting&&(i.formatting=null==P?"strong":null==R?"em":"strong em"),!0===P&&(i.em=s),!0===R&&(i.strong=s),p=x(i),!1===P&&(i.em=!1),!1===R&&(i.strong=!1),p}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return x(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),p=x(i),i.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),x(i)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return x(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var j=x(i);return i.emoji=!1,j}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),x(i)}function S(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var r=x(t);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function O(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){if(e.next()===r){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link-string");var i=x(t);return t.linkHref=!1,i}return e.match(C[r]),t.linkHref=!0,x(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,x(t)):"error"}var C={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=A,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,x(t)):g(e,t,E)}function A(e,t){if(e.match("]:",!0)){t.f=t.inline=P,n.highlightFormatting&&(t.formatting="link");var r=x(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function P(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=E,o.linkHref+" url")}var R={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:E,text:k,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return y(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=_)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==_?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:R}},indent:function(t,n,i){return t.block==_&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:y,getType:x,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(5),n(272),n(1799))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(5),n(226),n(471))},function(e,t,n){!function(e){"use strict";e.defineMode("haskell",(function(e,t){function n(e,t,n){return t(n),n(e,t)}var r=/[a-z_]/,i=/[A-Z]/,o=/\d/,a=/[0-9A-Fa-f]/,s=/[0-7]/,l=/[a-z_A-Z0-9'\xa1-\uffff]/,u=/[-!#$%&*+.\/<=>?@\\^|~:]/,c=/[(),;[\]`{}]/,d=/[ \t\v\f]/;function f(e,t){if(e.eatWhile(d))return null;var h=e.next();if(c.test(h)){if("{"==h&&e.eat("-")){var m="comment";return e.eat("#")&&(m="meta"),n(e,t,function e(t,n){return 0==n?f:function(r,i){for(var o=n;!r.eol();){var a=r.next();if("{"==a&&r.eat("-"))++o;else if("-"==a&&r.eat("}")&&0==--o)return i(f),t}return i(e(t,o)),t}}(m,1))}return null}if("'"==h)return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if('"'==h)return n(e,t,p);if(i.test(h))return e.eatWhile(l),e.eat(".")?"qualifier":"variable-2";if(r.test(h))return e.eatWhile(l),"variable";if(o.test(h)){if("0"==h){if(e.eat(/[xX]/))return e.eatWhile(a),"integer";if(e.eat(/[oO]/))return e.eatWhile(s),"number"}return e.eatWhile(o),m="number",e.match(/^\.\d+/)&&(m="number"),e.eat(/[eE]/)&&(m="number",e.eat(/[-+]/),e.eatWhile(o)),m}return"."==h&&e.eat(".")?"keyword":u.test(h)?"-"==h&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(u))?(e.skipToEnd(),"comment"):(m="variable",":"==h&&(m="variable-2"),e.eatWhile(u),m):"error"}function p(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(f),"string";if("\\"==n){if(e.eol()||e.eat(d))return t(h),"string";e.eat("&")||e.next()}}return t(f),"string error"}function h(e,t){return e.eat("\\")?n(e,t,p):(e.next(),t(f),"error")}var m=function(){var e={};function n(t){return function(){for(var n=0;n<arguments.length;n++)e[arguments[n]]=t}}n("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),n("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),n("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),n("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var r=t.overrideKeywords;if(r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i]);return e}();return{startState:function(){return{f:f}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return m.hasOwnProperty(r)?m[r]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}})),e.defineMIME("text/x-haskell","haskell")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r={"{":"}","(":")","[":"]"},i=e.getMode(t,"javascript");function o(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(i),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function a(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function s(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),l(n,r,i),"atom"}function l(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function u(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}return o.prototype.copy=function(){var t=new o;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(i,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:function(){return new o},copyState:function(e){return e.copy()},token:function(t,o){var c=u(t,o)||function(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}(t,o)||function(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return i.token(e,t.jsState)||!0}}(t,o)||function(e,t){if(t.isIncludeFiltered){var n=s(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}(t,o)||function(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}(t,o)||function t(n,o){if(o.isAttrs){if(r[n.peek()]&&o.attrsNest.push(r[n.peek()]),o.attrsNest[o.attrsNest.length-1]===n.peek())o.attrsNest.pop();else if(n.eat(")"))return o.isAttrs=!1,"punctuation";if(o.inAttributeName&&n.match(/^[^=,\)!]+/))return"="!==n.peek()&&"!"!==n.peek()||(o.inAttributeName=!1,o.jsState=e.startState(i),"script"===o.lastTag&&"type"===n.current().trim().toLowerCase()?o.attributeIsType=!0:o.attributeIsType=!1),"attribute";var a=i.token(n,o.jsState);if(o.attributeIsType&&"string"===a&&(o.scriptType=n.current().toString()),0===o.attrsNest.length&&("string"===a||"variable"===a||"keyword"===a))try{return Function("","var x "+o.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),o.inAttributeName=!0,o.attrValue="",n.backUp(n.current().length),t(n,o)}catch(e){}return o.attrValue+=n.current(),a||!0}}(t,o)||function(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=i.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}(t,o)||function(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):i.token(e,t.jsState)||!0)}(t,o)||function(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}(t,o)||function(e){if(e.match(/^yield\b/))return"keyword"}(t)||function(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(t)||a(t,o)||function(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}(t,o)||function(e){if(e.match(/^default\b/))return n}(t)||function(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}(t,o)||function(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}(t,o)||function(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}(t,o)||function(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,a(e,t)):void 0}(t,o)||function(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}(t,o)||function(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}(t,o)||function(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}(t,o)||s(t,o)||function(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}(t,o)||function(e){if(e.match(/^#([\w-]+)/))return"builtin"}(t)||function(e){if(e.match(/^\.([\w-]+)/))return"qualifier"}(t)||function(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}(t,o)||function(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}(t,o)||function(e){if(e.sol()&&e.eatSpace())return"indent"}(t)||function(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(l(e,t,"htmlmixed"),t.innerModeForLine=!0,u(e,t,!0)):void 0}(t,o)||function(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}(t,o)||function(e){if(e.match(/^: */))return"colon"}(t)||function(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),l(e,t,n),"dot"}}(t,o)||function(e){return e.next(),null}(t);return!0===c?null:c}}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(5),n(225),n(271),n(154))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function a(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",(function(n,s){for(var l=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],c=0;c<u.length;c++)u[c]||u.splice(c--,1);var d=s.hangingIndent||n.indentUnit,f=i,p=o;null!=s.extra_keywords&&(f=f.concat(s.extra_keywords)),null!=s.extra_builtins&&(p=p.concat(s.extra_builtins));var h=!(s.version&&Number(s.version)<3);if(h){var m=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;f=f.concat(["nonlocal","False","True","None","async","await"]),p=p.concat(["ascii","bytes","exec","print"]);var g=new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))","i")}else m=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,f=f.concat(["exec","print"]),p=p.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]),g=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var v=t(f),y=t(p);function b(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==a(t).type){var r=a(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?w(t):i<r&&x(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=_(e,t);return r>0&&x(e,t)&&(o+=" error"),o}return _(e,t)}function _(e,t,n){if(e.eatSpace())return null;if(!n&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(g))return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(e){return function(t,n){var o=_(t,n,!0);return"punctuation"==o&&("{"==t.current()?n.tokenize=r(e+1):"}"==t.current()&&(n.tokenize=e>1?r(e-1):i)),o}}function i(i,o){for(;!i.eol();)if(i.eatWhile(/[^'"\{\}\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return"string"}else{if(i.match(e))return o.tokenize=t,"string";if(i.match("{{"))return"string";if(i.match("{",!1))return o.tokenize=r(0),i.current()?"string":o.tokenize(i,o);if(i.match("}}"))return"string";if(i.match("}"))return"error";i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";o.tokenize=t}return"string"}return i.isString=!0,i}(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length;function r(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return"string"}else{if(r.match(e))return i.tokenize=t,"string";r.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return"error";i.tokenize=t}return"string"}return r.isString=!0,r}(e.current(),t.tokenize),t.tokenize(e,t));for(var a=0;a<u.length;a++)if(e.match(u[a]))return"operator";return e.match(l)?"punctuation":"."==t.lastToken&&e.match(m)?"property":e.match(v)||e.match(r)?"keyword":e.match(y)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(m)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),n?null:"error")}function w(e){for(;"py"!=a(e).type;)e.scopes.pop();e.scopes.push({offset:a(e).offset+n.indentUnit,type:"py",align:null})}function x(e,t){for(var n=e.indentation();t.scopes.length>1&&a(t).offset>n;){if("py"!=a(t).type)return!0;t.scopes.pop()}return a(t).offset!=n}function k(e,t){e.sol()&&(t.beginningOfLine=!0,t.dedent=!1);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(m,!1)?"meta":h?"operator":"error";if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent=!0),"lambda"==r&&(t.lambda=!0),":"==r&&!t.lambda&&"py"==a(t).type&&e.match(/^\s*(?:#|$)/,!1)&&w(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+d,type:n,align:r})}(e,t,"])}".slice(i,i+1)),-1!=(i="])}".indexOf(r))){if(a(t).type!=r)return"error";t.indent=t.scopes.pop().offset-d}}return t.dedent&&e.eol()&&"py"==a(t).type&&t.scopes.length>1&&t.scopes.pop(),n}return{startState:function(e){return{tokenize:b,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=k(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" error":r},indent:function(t,n){if(t.tokenize!=b)return t.tokenize.isString?e.Pass:0;var r=a(t),i=r.type==n.charAt(0)||"py"==r.type&&!t.dedent&&/^(else:|elif |except |finally:)/.test(n);return null!=r.align?r.align-(i?1:0):r.offset-(i?d:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-python","python"),e.defineMIME("text/x-cython",{name:"python",extra_keywords:(n="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",n.split(" "))})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("stex",(function(e,t){function n(e,t){e.cmdState.push(t)}function r(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function i(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var o={};function a(e,t){e.f=t}function s(e,t){var i;if(e.match(/^\\[a-zA-Z@]+/)){var s=e.current().slice(1);return n(t,i=new(i=o.hasOwnProperty(s)?o[s]:o.DEFAULT)),a(t,u),i.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return a(t,(function(e,t){return l(e,t,"\\]")})),"keyword";if(e.match("\\("))return a(t,(function(e,t){return l(e,t,"\\)")})),"keyword";if(e.match("$$"))return a(t,(function(e,t){return l(e,t,"$$")})),"keyword";if(e.match("$"))return a(t,(function(e,t){return l(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(t))?(i.closeBracket(c),a(t,u),"bracket"):"error":"{"==c||"["==c?(n(t,i=new(i=o.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(i=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(t)).name&&(i.argument=e.current()),i.styleIdentifier())}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return a(t,s),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function u(e,t){var n=e.peek();return"{"==n||"["==n?(r(t).openBracket(n),e.eat(n),a(t,s),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(a(t,s),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),s(e,t))}return o.importmodule=i("importmodule","tag",["string","builtin"]),o.documentclass=i("documentclass","tag",["","atom"]),o.usepackage=i("usepackage","tag",["atom"]),o.begin=i("begin","tag",["atom"]),o.end=i("end","tag",["atom"]),o.label=i("label","tag",["atom"]),o.ref=i("ref","tag",["atom"]),o.eqref=i("eqref","tag",["atom"]),o.cite=i("cite","tag",["atom"]),o.bibitem=i("bibitem","tag",["atom"]),o.Bibitem=i("Bibitem","tag",["atom"]),o.RBibitem=i("RBibitem","tag",["atom"]),o.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return l(e,t)}:s}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=s,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("sass",(function(t){var n,r=e.mimeModes["text/css"],i=r.propertyKeywords||{},o=r.colorKeywords||{},a=r.valueKeywords||{},s=r.fontProperties||{},l=new RegExp("^"+["true","false","null","auto"].join("|")),u=new RegExp("^"+["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"].join("|")),c=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function f(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=y,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=h(e.next()),"string"):(t.tokenizer=h(")",!1),"string")}function p(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),"comment")}}function h(e,t){return null==t&&(t=!0),function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=y,"string"):"#"===o&&"{"===a?(i.tokenizer=m(n),r.next(),"operator"):"string"}}function m(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):y(t,n)}}function g(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){1!=e.scopes.length&&e.scopes.shift()}function y(e,t){var r=e.peek();if(e.match("/*"))return t.tokenizer=p(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=p(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=m(y),"operator";if('"'===r||"'"===r)return e.next(),t.tokenizer=h(r),"string";if(t.cursorHalf){if("#"===r&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(l))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,d(e)&&(t.cursorHalf=0),"atom";if("$"===r)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===r)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(u))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),n=e.current().toLowerCase(),a.hasOwnProperty(n)?"atom":o.hasOwnProperty(n)?"keyword":i.hasOwnProperty(n)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===r&&e.match(/^-\w+-/))return"meta";if("."===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"qualifier";if("#"===e.peek())return g(t),"tag"}if("#"===r){if(e.next(),e.match(/^[\w-]+/))return g(t),"builtin";if("#"===e.peek())return g(t),"tag"}if("$"===r)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(l))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,"atom";if("="===r&&e.match(/^=[\w-]+/))return g(t),"meta";if("+"===r&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===r&&e.match("@extend")&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return g(t),"def";if("@"===r)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){n=e.current().toLowerCase();var b=t.prevProp+"-"+n;return i.hasOwnProperty(b)?"property":i.hasOwnProperty(n)?(t.prevProp=n,"property"):s.hasOwnProperty(n)?"property":"tag"}return e.match(/ *:/,!1)?(g(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||g(t),"tag")}if(":"===r)return e.match(c)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(u)?"operator":(e.next(),null)}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,n){var r=function(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||v(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s<n.scopes.length;s++){var l=n.scopes[s];l.offset<=o&&a.push(l)}n.scopes=a}return r}(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e){return e.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),"css"),e.defineMIME("text/x-sass","sass")}(n(5),n(271))},function(e,t,n){!function(e){"use strict";e.defineMode("stylus",(function(e){for(var p,g,v,y,b=e.indentUnit,_="",w=m(t),x=/^(a|b|i|s|col|em)$/i,k=m(o),E=m(a),S=m(u),O=m(l),C=m(n),T=h(n),A=m(i),P=m(r),R=m(s),j=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,I=h(c),M=m(d),L=new RegExp(/^\-(moz|ms|o|webkit)-/i),D=m(f),N="",F={};_.length<b;)_+=" ";function B(e,t){if(N=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),p=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=z,z(e,t);if('"'==p||"'"==p)return e.next(),t.tokenize=U(p),t.tokenize(e,t);if("@"==p)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==p){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(L)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==p?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==p&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(T)?("("==e.peek()&&(t.tokenize=q),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(I)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!G(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(j)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(p)?(e.next(),[null,p]):(e.next(),[null,null])}function z(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function U(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function q(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=U(")"),[null,"("]}function W(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function H(e,t,n,r){return r=r>=0?r:b,e.context=new W(n,t.indentation()+r,e.context),n}function $(e,t){var n=e.context.indent-b;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function V(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return F[n.context.type](e,t,n)}(e,t,n)}function G(e){return e.toLowerCase()in w}function K(e){return(e=e.toLowerCase())in k||e in R}function Y(e){return e.toLowerCase()in M}function Q(e){return e.toLowerCase().match(L)}function X(e){var t=e.toLowerCase(),n="variable-2";return G(e)?n="tag":Y(e)?n="block-keyword":K(e)?n="property":t in S||t in D?n="atom":"return"==t||t in O?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function Z(e,t){return ne(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function J(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ee(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function te(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ne(e){return e.eol()||e.match(/^\s*$/,!1)}function re(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return F.block=function(e,t,n){if("comment"==e&&te(t)||","==e&&ne(t)||"mixin"==e)return H(n,t,"block",0);if(J(e,t))return H(n,t,"interpolation");if(ne(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!G(re(t)))return H(n,t,"block",0);if(Z(e,t))return H(n,t,"block");if("}"==e&&ne(t))return H(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||Y(re(t))?H(n,t,"variableName"):H(n,t,"variableName",0);if("="==e)return ne(t)||Y(re(t))?H(n,t,"block"):H(n,t,"block",0);if("*"==e&&(ne(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return y="tag",H(n,t,"block");if(ee(e,t))return H(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return H(n,t,ne(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return H(n,t,"keyframes");if(/@extends?/.test(e))return H(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&K(t.current().slice(1))?(y="variable-2","block"):/(@import|@require|@charset)/.test(e)?H(n,t,"block",0):H(n,t,"block");if("reference"==e&&ne(t))return H(n,t,"block");if("("==e)return H(n,t,"parens");if("vendor-prefixes"==e)return H(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(y=X(r)))return te(t)?H(n,t,"block",0):(y="atom","block");if("tag"==y){if(/embed|menu|pre|progress|sub|table/.test(r)&&K(re(t)))return y="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return y="atom","block";if(x.test(r)&&(te(t)&&t.string.match(/=/)||!te(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!G(re(t))))return y="variable-2",Y(re(t))?"block":H(n,t,"block",0);if(ne(t))return H(n,t,"block")}if("block-keyword"==y)return y="keyword",t.current(/(if|unless)/)&&!te(t)?"block":H(n,t,"block");if("return"==r)return H(n,t,"block",0);if("variable-2"==y&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return H(n,t,"block")}return n.context.type},F.parens=function(e,t,n){if("("==e)return H(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?$(n):t.string.match(/^[a-z][\w-]*\(/i)&&ne(t)||Y(re(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(re(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&G(re(t))?H(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?H(n,t,"block",0):ne(t)?H(n,t,"block"):H(n,t,"block",0);if(e&&"@"==e.charAt(0)&&K(t.current().slice(1))&&(y="variable-2"),"word"==e){var r=t.current();"tag"==(y=X(r))&&x.test(r)&&(y="variable-2"),"property"!=y&&"to"!=r||(y="atom")}return"variable-name"==e?H(n,t,"variableName"):ee(e,t)?H(n,t,"pseudo"):n.context.type},F.vendorPrefixes=function(e,t,n){return"word"==e?(y="property",H(n,t,"block",0)):$(n)},F.pseudo=function(e,t,n){return K(re(t.string))?V(e,t,n):(t.match(/^[a-z-]+/),y="variable-3",ne(t)?H(n,t,"block"):$(n))},F.atBlock=function(e,t,n){if("("==e)return H(n,t,"atBlock_parens");if(Z(e,t))return H(n,t,"block");if(J(e,t))return H(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(y=/^(only|not|and|or)$/.test(r)?"keyword":C.hasOwnProperty(r)?"tag":P.hasOwnProperty(r)?"attribute":A.hasOwnProperty(r)?"property":E.hasOwnProperty(r)?"string-2":X(t.current()))&&ne(t))return H(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(y="keyword"),n.context.type},F.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ne(t)?H(n,t,"block"):H(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return y=X(r),/^(max|min)/.test(r)&&(y="property"),"tag"==y&&(y=x.test(r)?"variable-2":"atom"),n.context.type}return F.atBlock(e,t,n)},F.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&te(t)||"]"==e||"hash"==e||"qualifier"==e||G(t.current()))?V(e,t,n):"{"==e?H(n,t,"keyframes"):"}"==e?te(t)?$(n,!0):H(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?H(n,t,"keyframes"):"word"==e&&"block-keyword"==(y=X(t.current()))?(y="keyword",H(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?H(n,t,ne(t)?"block":"atBlock"):"mixin"==e?H(n,t,"block",0):n.context.type},F.interpolation=function(e,t,n){return"{"==e&&$(n)&&H(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&G(re(t))?H(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?H(n,t,"block",0):H(n,t,"block"):"variable-name"==e?H(n,t,"variableName",0):("word"==e&&"tag"==(y=X(t.current()))&&(y="atom"),n.context.type)},F.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?$(n):"word"==e?(y=X(t.current()),"extend"):$(n)},F.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(y="variable-2"),"variableName"):V(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new W("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||B)(e,t))&&"object"==typeof g&&(v=g[1],g=g[0]),y=g,t.state=F[t.state](v,e,t),y)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=re(t),s=n.match(/^\s*/)[0].replace(/\t/g,_).length,l=e.context.prev?e.context.prev.line.firstWord:"",u=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-b:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||Y(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||G(a)?o=/\,\s*$/.test(l)?u:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||G(l))?s<=u?u:u+b:s:/,\s*$/.test(n)||!Q(a)&&!K(a)||(o=Y(l)?s<=u?u:u+b:/^\{/.test(l)?s<=u?s:u+b:Q(l)||K(l)?s>=u?u:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||G(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?u+b:s)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],u=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],c=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],p=t.concat(n,r,i,o,a,l,u,s,c,d,f,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function h(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function m(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}e.registerHelper("hintWords","stylus",p),e.defineMIME("text/x-styl","stylus")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"HeuristicFragmentMatcher",(function(){return W})),n.d(t,"InMemoryCache",(function(){return ue})),n.d(t,"IntrospectionFragmentMatcher",(function(){return H})),n.d(t,"ObjectCache",(function(){return Z})),n.d(t,"StoreReader",(function(){return K})),n.d(t,"StoreWriter",(function(){return ne})),n.d(t,"WriteError",(function(){return ee})),n.d(t,"assertIdValue",(function(){return X})),n.d(t,"defaultDataIdFromObject",(function(){return ae})),n.d(t,"defaultNormalizedCacheFactory",(function(){return J})),n.d(t,"enhanceErrorWithDocument",(function(){return te}));var r=n(6),i=n(15);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:a(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var s,l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},u=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var s=null;try{s=this.read({rootId:r,optimistic:!1,query:l})}catch(e){}var u=s&&s.__typename||"__ClientData",c=Object.assign({__typename:u},i);this.writeFragment({id:r,fragment:(t=c,n=u,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:c})}else this.writeQuery({query:o(i),data:i})},e}();s||(s={});var c=n(158),d=null,f={},p=1,h=Array,m=h["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",p++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=d;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===f)break;return e!==d&&(d.slots[this.id]=t),!0}return d&&(d.slots[this.id]=f),!1},e.prototype.getValue=function(){if(this.hasValue())return d.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=d;d={parent:a,slots:o};try{return t.apply(r,n)}finally{d=a}},e.bind=function(e){var t=d;return function(){var n=d;try{return d=t,e.apply(this,arguments)}finally{d=n}}},e.noContext=function(e,t,n){if(!d)return e.apply(n,t);var r=d;try{return d=null,e.apply(n,t)}finally{d=r}},e}();try{Object.defineProperty(h,"@wry/context:Slot",{value:h["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();m.bind,m.noContext;function g(){}var v=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=g),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),y=new m,b=[],_=[];function w(e,t){if(!e)throw new Error(t||"assertion failure")}function x(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var k=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(w(!this.recomputing,"already recomputing"),function(e){var t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?T(t,e):A(t,e),t}(this)||!R(this))return S(this)?function(e){var t=j(e);y.withValue(e,E,[e]),function(e){if("function"==typeof e.subscribe)try{M(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,S(e))return;C(e)}(e);return t.forEach(R),x(e.value)}(this):x(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,O(this),M(this))},e.prototype.dispose=function(){var e=this;j(this).forEach(R),M(this),this.parents.forEach((function(t){t.setDirty(),I(t,e)}))},e.count=0,e}();function E(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function O(e){e.parents.forEach((function(t){return T(t,e)}))}function C(e){e.parents.forEach((function(t){return A(t,e)}))}function T(e,t){if(w(e.childValues.has(t)),w(S(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=_.pop()||new Set;e.dirtyChildren.add(t),O(e)}function A(e,t){w(e.childValues.has(t)),w(!S(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),P(e,t),S(e)||C(e)}function P(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(_.length<100&&_.push(n),e.dirtyChildren=null))}function R(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function j(e){var t=b;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(n,r){I(e,r),t.push(r)}))),w(null===e.dirtyChildren),t}function I(e,t){t.parents.delete(e),e.childValues.delete(t),P(e,t)}function M(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var L=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return e.forEach((function(e){return t=t.getChildTrie(e)})),t.data||(t.data=Object.create(null))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness)),r},e}();var D=new L("function"==typeof WeakMap);function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D.lookupArray(e)}var F=new Set;function B(e,t){void 0===t&&(t=Object.create(null));var n=new v(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=!!t.disposable,i=t.makeCacheKey||N;function o(){if(!r||y.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return e.apply(null,arguments);var a=Array.prototype.slice.call(arguments),s=n.get(o);s?s.args=a:(s=new k(e,a),n.set(o,s),s.subscribe=t.subscribe,r&&(s.reportOrphan=function(){return n.delete(o)}));var l=s.recompute();return n.set(o,s),F.add(n),y.hasValue()||(F.forEach((function(e){return e.clean()})),F.clear()),r?void 0:l}}return o.dirty=function(){var e=i.apply(null,arguments),t=void 0!==e&&n.get(e);t&&t.setDirty()},o}var z=n(25),U=!1;function q(){var e=!U;return Object(i.y)()||(U=!0),e}var W=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;return a&&a===t||(q(),"heuristic")},e}(),H=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){Object(z.b)(this.isReady,1);var r=n.store.get(e.id),i="ROOT_QUERY"===e.id;if(!r)return i;var o=r.__typename,a=void 0===o?i&&"Query":o;if(Object(z.b)(a,2),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),$=Object.prototype.hasOwnProperty,V=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=B((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){$.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){$.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function G(e){return new V(e)}var K=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,o=void 0===r?new L(i.e):r,a=n.freezeResults,s=void 0!==a&&a,l=this.executeStoreQuery,u=this.executeSelectionSet,c=this.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=B((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof V)return o.lookup(r.store,t,a,JSON.stringify(i),n.id)}}),this.executeSelectionSet=B((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof V)return o.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=B((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof V)return o.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,o=e.previousResult,a=e.returnPartialData,s=void 0===a||a,l=e.rootId,u=void 0===l?"ROOT_QUERY":l,d=e.fragmentMatcherFunction,f=e.config,p=Object(i.o)(n);r=Object(i.c)({},Object(i.h)(p),r);var h={store:t,dataIdFromObject:f&&f.dataIdFromObject,cacheRedirects:f&&f.cacheRedirects||{}},m=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:d}),g=m.missing&&m.missing.length>0;return g&&!s&&m.missing.forEach((function(e){if(!e.tolerable)throw new z.a(8)})),o&&Object(c.a)(o,m.result)&&(m.result=o),{result:m.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?Q:a,l=Object(i.l)(t),u=Object(i.j)(t),c={query:t,fragmentMap:Object(i.g)(u),contextValue:r,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:l.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,o=e.rootValue,a=e.execContext,s=a.fragmentMap,l=a.contextValue,u=a.variableValues,c={result:null},d=[],f=l.store.get(o.id),p=f&&f.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function h(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(i.F)(e,u))if(Object(i.t)(e)){var c=h(t.executeField(f,p,e,a));void 0!==c&&d.push(((n={})[Object(i.E)(e)]=c,n))}else{var m=void 0;if(Object(i.v)(e))m=e;else if(!(m=s[e.name.value]))throw new z.a(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||a.fragmentMatcher(o,g,l);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:o,execContext:a});"heuristic"===v&&y.missing&&(y=Object(r.a)(Object(r.a)({},y),{missing:y.missing.map((function(e){return Object(r.a)(Object(r.a)({},e),{tolerable:!0})}))})),d.push(h(y))}}})),c.result=Object(i.B)(d),this.freezeResults,c},e.prototype.executeField=function(e,t,n,r){var o=r.variableValues,a=r.contextValue,s=function(e,t,n,r,o,a){a.resultKey;var s=a.directives,l=n;(r||s)&&(l=Object(i.p)(l,r,s));var u=void 0;if(e&&void 0===(u=e[l])&&o.cacheRedirects&&"string"==typeof t){var c=o.cacheRedirects[t];if(c){var d=c[n];d&&(u=d(e,r,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if(void 0===u)return{result:u,missing:[{object:e,fieldName:l,tolerable:!1}]};Object(i.w)(u)&&(u=u.json);return{result:u}}(e,t,n.name.value,Object(i.b)(n,o),a,{resultKey:Object(i.E)(n),directives:Object(i.i)(n,o)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:n,array:s.result,execContext:r})):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:r})):(Y(n,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)})),{result:t.pop().result,missing:e}},e.prototype.executeSubSelectedArray=function(e){var t,n=this,r=e.field,i=e.array,o=e.execContext;function a(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return i=i.map((function(e){return null===e?null:Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,execContext:o})):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:o})):(Y(r,e),e)})),this.freezeResults,{result:i,missing:t}},e}();function Y(e,t){if(!e.selectionSet&&Object(i.u)(t))throw new z.a(10)}function Q(){return!0}function X(e){Object(z.b)(Object(i.u)(e),11)}var Z=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}();function J(e){return new Z(e)}var ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return Object(r.c)(t,e),t}(Error);function te(e,t){var n=new ee("Error writing result to store for query:\n "+JSON.stringify(t));return n.message+="\n"+e.message,n.stack=e.stack,n}var ne=function(){function e(){}return e.prototype.writeQueryToStore=function(e){var t=e.query,n=e.result,r=e.store,i=void 0===r?G():r,o=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:t,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},e.prototype.writeResultToStore=function(e){var t=e.dataId,n=e.result,r=e.document,o=e.store,a=void 0===o?G():o,s=e.variables,l=e.dataIdFromObject,u=e.fragmentMatcherFunction,c=Object(i.m)(r);try{return this.writeSelectionSetToStore({result:n,dataId:t,selectionSet:c.selectionSet,context:{store:a,processedData:{},variables:Object(i.c)({},Object(i.h)(c),s),dataIdFromObject:l,fragmentMap:Object(i.g)(Object(i.j)(r)),fragmentMatcherFunction:u}})}catch(e){throw te(e,r)}},e.prototype.writeSelectionSetToStore=function(e){var t=this,n=e.result,r=e.dataId,o=e.selectionSet,a=e.context,s=a.variables,l=a.store,u=a.fragmentMap;return o.selections.forEach((function(e){var o;if(Object(i.F)(e,s))if(Object(i.t)(e)){var l=Object(i.E)(e),c=n[l];if(void 0!==c)t.writeFieldToStore({dataId:r,value:c,field:e,context:a});else{var d=!1,f=!1;e.directives&&e.directives.length&&(d=e.directives.some((function(e){return e.name&&"defer"===e.name.value})),f=e.directives.some((function(e){return e.name&&"client"===e.name.value}))),!d&&!f&&a.fragmentMatcherFunction}}else{var p=void 0;Object(i.v)(e)?p=e:(p=(u||{})[e.name.value],Object(z.b)(p,3));var h=!0;if(a.fragmentMatcherFunction&&p.typeCondition){var m=r||"self",g=Object(i.H)({id:m,typename:void 0}),v={store:new Z((o={},o[m]=n,o)),cacheRedirects:{}},y=a.fragmentMatcherFunction(g,p.typeCondition.name.value,v);Object(i.x)(),h=!!y}h&&t.writeSelectionSetToStore({result:n,selectionSet:p.selectionSet,dataId:r,context:a})}})),l},e.prototype.writeFieldToStore=function(e){var t,n,o,a=e.field,s=e.value,l=e.dataId,u=e.context,d=u.variables,f=u.dataIdFromObject,p=u.store,h=Object(i.G)(a,d);if(a.selectionSet&&null!==s)if(Array.isArray(s)){var m=l+"."+h;n=this.processArrayValue(s,m,a.selectionSet,u)}else{var g=l+"."+h,v=!0;if(re(g)||(g="$"+g),f){var y=f(s);Object(z.b)(!y||!re(y),4),(y||"number"==typeof y&&0===y)&&(g=y,v=!1)}ie(g,a,u.processedData)||this.writeSelectionSetToStore({dataId:g,result:s,selectionSet:a.selectionSet,context:u});var b=s.__typename;n=Object(i.H)({id:g,typename:b},v);var _=(o=p.get(l))&&o[h];if(_!==n&&Object(i.u)(_)){var w=void 0!==_.typename,x=void 0!==b,k=w&&x&&_.typename!==b;Object(z.b)(!v||_.generated||k,5),Object(z.b)(!w||x,6),_.generated&&(k?v||p.delete(_.id):function e(t,n,o){if(t===n)return!1;var a=o.get(t),s=o.get(n),l=!1;Object.keys(a).forEach((function(t){var n=a[t],r=s[t];Object(i.u)(n)&&re(n.id)&&Object(i.u)(r)&&!Object(c.a)(n,r)&&e(n.id,r.id,o)&&(l=!0)})),o.delete(t);var u=Object(r.a)(Object(r.a)({},a),s);if(Object(c.a)(u,s))return l;return o.set(n,u),!0}(_.id,n.id,p))}}else n=null!=s&&"object"==typeof s?{type:"json",json:s}:s;(o=p.get(l))&&Object(c.a)(n,o[h])||p.set(l,Object(r.a)(Object(r.a)({},o),((t={})[h]=n,t)))},e.prototype.processArrayValue=function(e,t,n,r){var o=this;return e.map((function(e,a){if(null===e)return null;var s=t+"."+a;if(Array.isArray(e))return o.processArrayValue(e,s,n,r);var l=!0;if(r.dataIdFromObject){var u=r.dataIdFromObject(e);u&&(s=u,l=!1)}return ie(s,n,r.processedData)||o.writeSelectionSetToStore({dataId:s,result:e,selectionSet:n,context:r}),Object(i.H)({id:s,typename:e.__typename},l)}))},e}();function re(e){return"$"===e[0]}function ie(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var oe={fragmentMatcher:new W,dataIdFromObject:ae,addTypename:!0,resultCaching:!0,freezeResults:!1};function ae(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var se=Object.prototype.hasOwnProperty,le=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(r.c)(t,e),t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return se.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(Z),ue=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new L(i.e),n.silenceBroadcast=!1,n.config=Object(r.a)(Object(r.a)({},oe),t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new V:new Z,n.optimisticData=n.data,n.storeWriter=new ne,n.storeReader=new K({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var o=n,a=o.maybeBroadcastWatch;return n.maybeBroadcastWatch=B((function(e){return a.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof V?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new z.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof le;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new le(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(u)},function(e,t,n){"use strict";n.r(t),n.d(t,"HttpLink",(function(){return f})),n.d(t,"createHttpLink",(function(){return d}));var r=n(6),i=n(117),o=n(75),a=n(766),s=n(25),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},u=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},c=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=new s.a(2);throw r.parseError=e,r}return n},d=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,d=e.fetch,f=e.includeExtensions,p=e.useGETForQueries,h=Object(r.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new s.a(1)}}(d),d||(d=fetch);var m={http:{includeExtensions:f},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new i.a((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),s=e.getContext(),f={};if(s.clientAwareness){var h=s.clientAwareness,g=h.name,v=h.version;g&&(f["apollographql-client-name"]=g),v&&(f["apollographql-client-version"]=v)}var y,b=Object(r.a)({},f,s.headers),_={http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:b},w=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=Object(r.a)({},t.options,{headers:t.headers,credentials:t.credentials}),s=t.http;n.forEach((function(e){o=Object(r.a)({},o,e.options,{headers:Object(r.a)({},o.headers,e.headers)}),e.credentials&&(o.credentials=e.credentials),s=Object(r.a)({},s,e.http)}));var l=e.operationName,u=e.extensions,c=e.variables,d=e.query,f={operationName:l,variables:c};return s.includeExtensions&&(f.extensions=u),s.includeQuery&&(f.query=Object(a.print)(d)),{options:o,body:f}}(e,l,m,_),x=w.options,k=w.body;if(!x.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),S=E.controller,O=E.signal;(y=S)&&(x.signal=O)}if(p&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(x.method="GET"),"GET"===x.method){var C=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};"query"in t&&r("query",t.query);t.operationName&&r("operationName",t.operationName);if(t.variables){var i=void 0;try{i=c(t.variables)}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=c(t.extensions)}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,k),T=C.newURI,A=C.parseError;if(A)return Object(i.c)(A);t=T}else try{x.body=c(k)}catch(A){return Object(i.c)(A)}return new o.a((function(n){var r;return d(t,x).then((function(t){return e.setContext({response:t}),t})).then((r=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;return n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,Promise.reject(n)}})).then((function(t){return e.status>=300&&u(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||u(e,t,"Server response was missing for query '"+(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){y&&y.abort()}}))}))};var f=function(e){function t(t){return e.call(this,d(t).request)||this}return Object(r.c)(t,e),t}(i.a)},function(e,t,n){"use strict";var r=n(0),i=n(793);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";e.exports=n(799)},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(45),a=n(2),s=n.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var c=i.a.createContext||function(e,t){var n,i,a,c="__create-react-context-"+((l[a="__global_unique_id__"]=(l[a]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[c]=s.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((i={})[c]=s.a.object,i),{Provider:d,Consumer:f}};t.a=c}).call(this,n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=l(n(1186));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=l(n(1189));Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=l(n(617));Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=l(n(618));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},function(e,t,n){"use strict";e.exports=n(1217)},function(e,t,n){"use strict";(function(e,r){var i,o=n(763);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(56),n(331)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(1395).Observable},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<l.length;n++){var u=l[n],c=e(t[u]);c&&(a&&(a+=","),a+=JSON.stringify(u)+":"+c)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:o})};var r=n(108),i=n(1400);var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",s(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u("",t,": ")+n,l=a+u("(",s(r,", "),")");return l.length>80&&(l=a+u("(\n",c(s(r,"\n")),"\n)")),s([l,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",u("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(u("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(u("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),l(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+r+u(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,u("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),l(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),l(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),l(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function l(e){return u("{\n",c(s(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},function(e,t,n){"use strict";var r,i;r=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]"),i=new RegExp("^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]"),e.exports=function(e){return e=e.toString(),i.test(e)?"rtl":r.test(e)?"ltr":"neutral"}},function(e,t){e.exports=function(e){var t=e.anchorNode,n=e.anchorOffset,r=e.focusNode,i=e.focusOffset,o=t.compareDocumentPosition(r);return!(4===o||0===o&&n<i)}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(57),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(331)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:l},c)},d),a.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"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:l},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsMediaLibraryUploadcare=void 0;var r=s(n(481)),i=s(n(1923)),o=n(4);const a=["publicKey"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}window.UPLOADCARE_LIVE=!1,window.UPLOADCARE_MANUAL_START=!0;const f={previewStep:!0,integration:"NetlifyCMS-Uploadcare-MediaLibrary"};function p(e){if(Array.isArray(e)||o.Iterable.isIterable(e)){const t=Array.isArray(e)?e:e.toJS();return function(e){const t=`~${e.length}/nth/`;return Array.from({length:e.length},(function(e,n){return new RegExp(`${t}${n}/$`)})).every(t=>e.some(e=>t.test(e)))}(t)?function(e){const t=new RegExp(`^.+/([^/]+~${e.length})/nth/`).exec(e[0])[1];return new Promise(e=>r.default.loadFileGroup(t).done(t=>e(t)))}(t):Promise.all(t.map(e=>h(e)))}return e&&"string"==typeof e?h(e):null}function h(e){const t=e.startsWith("https://ucarecdn.com")&&!/~\d+\/nth\/\d+\//.test(e);return r.default.fileFrom(t?"uploaded":"url",e)}function m(e){let{files:t,config:n,handleInsert:i,settings:o={}}=e;function a(e){const{cdnUrl:t,name:n,isImage:r}=e;let i=r&&o.defaultOperations?`${t}-${o.defaultOperations}`:t;return!!i.endsWith("/")&&o.autoFilename&&(i+=n),i}o.defaultOperations&&!o.defaultOperations.startsWith("/")&&console.warn("Uploadcare default operations should start with `/`. Example: `/preview/-/resize/100x100/image.png`"),r.default.openDialog(t,n).done(e=>{let{promise:t,files:n}=e;const r=Boolean(n);return t().then(e=>{if(r)return Promise.all(n().map(e=>e.then(e=>a(e)))).then(e=>i(e));i(a(e))})})}const g={name:"uploadcare",init:async function(){let{options:e={config:{},settings:{}},handleInsert:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.config,{publicKey:o}=n,s=d(n,a),l=u(u({},f),s);return window.UPLOADCARE_PUBLIC_KEY=o,r.default.registerTab("preview",i.default),{show:function(){let{value:n,config:r={},allowMultiple:i,imagesOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=u(u({},l),{},{imagesOnly:o},r),s=!1!==i&&!!a.multiple,c=u(u({},a),{},{multiple:s}),d=p(n);return d&&!d.state?d.then(n=>m({files:n,config:c,settings:e.settings,handleInsert:t})):m({files:d,config:c,settings:e.settings,handleInsert:t})},enableStandalone:()=>!1}}},v=g;t.NetlifyCmsMediaLibraryUploadcare=v;var y=g;t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsMediaLibraryCloudinary=void 0;var r,i=(r=n(180))&&r.__esModule?r:{default:r},o=n(40);const a=["config"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const d={use_secure_url:!0,use_transformations:!0,output_filename_only:!1},f={button_class:void 0,inline_container:void 0,insert_transformation:!1,z_index:"99999"},p={multiple:!1};function h(e,t){let{use_secure_url:n,use_transformations:r,output_filename_only:i}=t;if(i)return`${e.public_id}.${e.format}`;return(e.derived&&r?e.derived[0]:e)[n?"secure_url":"url"]}const m={name:"cloudinary",init:async function(){let{options:e={},handleInsert:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{config:n={}}=e,r=c(e,a),s=l(l({},d),r),u=l(l(l({},p),n),f),m=["default_transformations","max_files","multiple"],g=(0,i.default)(u,m);function v(e){const r=e.assets.map(e=>h(e,s));t(n.multiple||r.length>1?r:r[0])}await(0,o.loadScript)("https://media-library.cloudinary.com/global/all.js");const y=window.cloudinary.createMediaLibrary(u,{insertHandler:v});return{show:function(){let{config:e={},allowMultiple:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1===t&&(e.multiple=!1),y.show(l(l({},g),e))},hide:()=>y.hide(),enableStandalone:()=>!0}}},g=m;t.NetlifyCmsMediaLibraryCloudinary=g;var v=m;t.default=v},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";
/** @license React v16.14.0
* react.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 r=n(207),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function w(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:E.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,P=[];function R(e,t,n,r){if(P.length){var i=P.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+M(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+M(s=t[u],u);l+=e(s,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+M(s,u++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?N(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function N(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),I(e,D,t=R(t,o,r,i)),j(t)}var F={current:null};function B(){var e=F.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return N(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,L,t=R(null,null,t,n)),j(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return N(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=u,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(207),i={};function o(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(o(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return o("DEFINE_MANY_MERGED"===(l.hasOwnProperty(n)?l[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function c(e,t){var n=s.hasOwnProperty(t)?s[t]:null;y.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty("mixins")&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(a)&&"mixins"!==a){var l=n[a],d=r.hasOwnProperty(a);if(c(d,a),u.hasOwnProperty(a))u[a](e,l);else{var f=s.hasOwnProperty(a);if("function"==typeof l&&!f&&!d&&!1!==n.autobind)i.push(a,l),r[a]=l;else if(d){var m=s[a];o(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=p(r[a],l):"DEFINE_MANY"===m&&(r[a]=h(r[a],l))}else r[a]=l}}}else;}function f(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return f(i,n),f(i,r),i}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return r(b.prototype,e.prototype,y),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=m(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(d.bind(null,t)),d(t,g),d(t,e),d(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(0)),i=n(54),o=n(90),a=n(155),s=n(17),l=n(51),u=n(531),c=n(221),d=n(220),f=n(241),p=n(1178),h=n(420),m=n(172),g=y(n(1205));n(1381),n(1384),n(1385);var v=n(9);function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,o.connect)((function(e){return{locale:(0,h.selectLocale)(e.config),config:e.config}}))((function(e){let{locale:t,config:n}=e;return(0,v.jsx)(l.I18n,{locale:t,messages:(0,p.getPhrases)(t)},(0,v.jsx)(m.ErrorBoundary,{showBackup:!0,config:n},(0,v.jsx)(a.Router,{history:c.history},(0,v.jsx)(a.Route,{component:g.default}))))}));var _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{config:t}=e;function n(){const e=document.getElementById("nc-root");if(e)return e;const t=document.createElement("div");return t.id="nc-root",document.body.appendChild(t),t}function a(){return(0,v.jsx)(r.default.Fragment,null,(0,v.jsx)(s.GlobalStyles,null),(0,v.jsx)(o.Provider,{store:u.store},(0,v.jsx)(b,null)))}console.log("netlify-cms-core 2.55.2"),u.store.dispatch((0,d.loadConfig)(t,(function(){u.store.dispatch((0,f.authenticateUser)())}))),(0,i.render)((0,v.jsx)(a,null),n())};t.default=_},function(e,t,n){"use strict";
/** @license React v16.14.0
* react-dom.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 r=n(0),i=n(207),o=n(796);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,d=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,i,o,a,c,d){l=!1,u=null,s.apply(f,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,i,o,s,f,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function _(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(k.hasOwnProperty(l))throw Error(a(99,l));k[l]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&w(u[i],s,l);i=!0}else o.registrationName?(w(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function w(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,S[e]=t.eventTypes[n].dependencies}var x=[],k={},E={},S={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&_()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),T=null,A=null,P=null;function R(e){if(e=m(e)){if("function"!=typeof T)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),T(e.stateNode,e.type,t))}}function j(e){A?P?P.push(e):P=[e]:A=e}function I(){if(A){var e=A,t=P;if(P=A=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function M(e,t){return e(t)}function L(e,t,n,r,i){return e(t,n,r,i)}function D(){}var N=M,F=!1,B=!1;function z(){null===A&&null===P||(D(),I())}function U(e,t,n){if(B)return e(t,n);B=!0;try{return N(e,t,n)}finally{B=!1,z()}}var q=/^[: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]*$/,W=Object.prototype.hasOwnProperty,H={},$={};function V(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[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(e){var t=e.replace(K,Y);G[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);G[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!W.call($,e)||!W.call(H,e)&&(q.test(e)?$[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,ie=J?Symbol.for("react.profiler"):60114,oe=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ue=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,fe=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case pe:return ge(e.render);case fe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ge(e.type);n=null,r&&(n=ge(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){Ee(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function je(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Me="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function De(e){switch(e){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 Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,Be=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},We={},He={};function $e(e){if(We[e])return We[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return We[e]=n[t];return e}C&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var Ve=$e("animationend"),Ge=$e("animationiteration"),Ke=$e("animationstart"),Ye=$e("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=d,c=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function ft(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<x.length;l++){var u=x[l];u&&(u=u.extractEvents(r,t,o,i,a))&&(s=rt(s,u))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],_t=null,wt=null,xt=null,kt=new Map,Et=new Map,St=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function Pt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Tt(t,n,r,i,o),null!==t&&(null!==(t=Tn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function Rt(e){var t=Cn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Tn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function It(e,t,n){jt(e)&&n.delete(t)}function Mt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Tn(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==_t&&jt(_t)&&(_t=null),null!==wt&&jt(wt)&&(wt=null),null!==xt&&jt(xt)&&(xt=null),kt.forEach(It),Et.forEach(It)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mt)))}function Dt(e){function t(t){return Lt(t,e)}if(0<bt.length){Lt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Lt(_t,e),null!==wt&&Lt(wt,e),null!==xt&&Lt(xt,e),kt.forEach(t),Et.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Rt(n),null===n.blockedOn&&St.shift()}var Nt={},Ft=new Map,Bt=new Map,zt=["abort","abort",Ve,"animationEnd",Ge,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Ft.set(r,o),Nt[i]=o}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(zt,2);for(var qt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wt=0;Wt<qt.length;Wt++)Bt.set(qt[Wt],0);var Ht=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Vt=!0;function Gt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){F||D();var i=Xt,o=F;F=!0;try{L(i,e,t,n,r)}finally{(F=o)||z()}}function Qt(e,t,n,r){$t(Ht,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Vt)if(0<bt.length&&-1<Ot.indexOf(e))e=Tt(null,e,t,n,r),bt.push(e);else{var i=Zt(e,t,n,r);if(null===i)At(e,r);else if(-1<Ot.indexOf(e))e=Tt(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return _t=Pt(_t,e,t,n,r,i),!0;case"dragenter":return wt=Pt(wt,e,t,n,r,i),!0;case"mouseover":return xt=Pt(xt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Pt(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Et.set(o,Pt(Et.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=ft(e,r,null,t);try{U(pt,e)}finally{dt(e)}}}}function Zt(e,t,n,r){if(null!==(n=Cn(n=lt(r)))){var i=Je(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{U(pt,e)}finally{dt(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Jt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Me;function ln(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function un(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function pn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,_n="function"==typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),En="__reactInternalInstance$"+kn,Sn="__reactEventHandlers$"+kn,On="__reactContainere$"+kn;function Cn(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[En]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xn(e);null!==e;){if(n=e[En])return n;e=xn(e)}return t}n=(e=n).parentNode}return null}function Tn(e){return!(e=e[En]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Pn(e){return e[Sn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function jn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function In(e,t,n){(t=jn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Mn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)In(n[t],"captured",e);for(t=0;t<n.length;t++)In(n[t],"bubbled",e)}}function Ln(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=jn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){e&&e.dispatchConfig.registrationName&&Ln(e._targetInst,null,e)}function Nn(e){it(e,Mn)}var Fn=null,Bn=null,zn=null;function Un(){if(zn)return zn;var e,t,n=Bn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return zn=i.slice(e,1<t?1-t:void 0)}function qn(){return!0}function Wn(){return!1}function Hn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:Wn,this.isPropagationStopped=Wn,this}function $n(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Vn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=$n,e.release=Vn}i(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:Wn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Wn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Hn);var Kn=Hn.extend({data:null}),Yn=Hn.extend({data:null}),Qn=[9,13,27,32],Xn=C&&"CompositionEvent"in window,Zn=null;C&&"documentMode"in document&&(Zn=document.documentMode);var Jn=C&&"TextEvent"in window&&!Zn,er=C&&(!Xn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Xn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Un()):(Bn="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),o=Kn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Nn(o),i=o):i=null,(e=Jn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Xn&&ir(e,t)?(e=Un(),zn=Bn=Fn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,Nn(t)):t=null,null===i?t:null===t?i:[i,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Hn.getPooled(cr.change,e,t,n)).type="change",j(n),Nn(e),e}var fr=null,pr=null;function hr(e){st(e)}function mr(e){if(we(An(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function yr(){fr&&(fr.detachEvent("onpropertychange",br),pr=fr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=dr(pr,e,lt(e)),F)st(e);else{F=!0;try{M(hr,e)}finally{F=!1,z()}}}function _r(e,t,n){"focus"===e?(yr(),pr=n,(fr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function wr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function xr(e,t){if("click"===e)return mr(t)}function kr(e,t){if("input"===e||"change"===e)return mr(t)}C&&(vr=ut("input")&&(!document.documentMode||9<document.documentMode));var Er={eventTypes:cr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var i=t?An(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=gr;else if(ur(i))if(vr)a=kr;else{a=wr;var s=_r}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=xr);if(a&&(a=a(e,t)))return dr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ce(i,"number",i.value)}},Sr=Hn.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function Tr(){return Cr}var Ar=0,Pr=0,Rr=!1,jr=!1,Ir=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Tr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Pr;return Pr=e.screenY,jr?"mousemove"===e.type?e.screenY-t:0:(jr=!0,0)}}),Mr=Ir.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Dr={eventTypes:Lr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Cn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Ir,l=Lr.mouseLeave,u=Lr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mr,l=Lr.pointerLeave,u=Lr.pointerEnter,c="pointer");if(e=null==a?o:An(a),o=null==t?o:An(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=Rn(e))a++;for(e=0,t=u;t;t=Rn(t))e++;for(;0<a-e;)s=Rn(s),a--;for(;0<e-a;)u=Rn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Rn(s),u=Rn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=Rn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)Ln(s[c],"bubbled",l);for(c=r.length;0<c--;)Ln(r[c],"captured",n);return 0==(64&i)?[l]:[l,n]}};var Nr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Fr=Object.prototype.hasOwnProperty;function Br(e,t){if(Nr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(t,n[r])||!Nr(e[n[r]],t[n[r]]))return!1;return!0}var zr=C&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,Wr=null,Hr=null,$r=!1;function Vr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $r||null==qr||qr!==cn(n)?null:("selectionStart"in(n=qr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&Br(Hr,n)?null:(Hr=n,(e=Hn.getPooled(Ur.select,Wr,e,t)).type="select",e.target=qr,Nn(e),e))}var Gr={eventTypes:Ur,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?An(t):window,e){case"focus":(ur(i)||"true"===i.contentEditable)&&(qr=i,Wr=t,Hr=null);break;case"blur":Hr=Wr=qr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Vr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Vr(n,r)}return null}},Kr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=Sr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Sr.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Jr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Ir.extend({dataTransfer:null}),ni=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Tr}),ri=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Ir.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Nt,extractEvents:function(e,t,n,r){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ir;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ve:case Ge:case Ke:e=Kr;break;case Ye:e=ri;break;case"scroll":e=Sr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mr;break;default:e=Hn}return Nn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),h=Pn,m=Tn,g=An,O({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Dr,ChangeEventPlugin:Er,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function li(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ui(e,t){si++,ai[si]=e.current,e.current=t}var ci={},di={current:ci},fi={current:!1},pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=(e=e.childContextTypes)}function gi(){li(fi),li(di)}function vi(e,t,n){if(di.current!==ci)throw Error(a(168));ui(di,t),ui(fi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},n,{},r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=di.current,ui(di,e),ui(fi,fi.current),!0}function _i(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(fi),li(di),ui(di,e)):li(fi),ui(fi,n)}var wi=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_requestPaint,Si=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,Ci=o.unstable_ImmediatePriority,Ti=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,ji={},Ii=o.unstable_shouldYield,Mi=void 0!==Ei?Ei:function(){},Li=null,Di=null,Ni=!1,Fi=Si(),Bi=1e4>Fi?Si:function(){return Si()-Fi};function zi(){switch(Oi()){case Ci:return 99;case Ti:return 98;case Ai:return 97;case Pi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Ci;case 98:return Ti;case 97:return Ai;case 96:return Pi;case 95:return Ri;default:throw Error(a(332))}}function qi(e,t){return e=Ui(e),wi(e,t)}function Wi(e,t,n){return e=Ui(e),xi(e,t,n)}function Hi(e){return null===Li?(Li=[e],Di=xi(Ci,Vi)):Li.push(e),ji}function $i(){if(null!==Di){var e=Di;Di=null,ki(e)}Vi()}function Vi(){if(!Ni&&null!==Li){Ni=!0;var e=0;try{var t=Li;qi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Li=null}catch(t){throw null!==Li&&(Li=Li.slice(e+1)),xi(Ci,$i),t}finally{Ni=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ki(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Yi={current:null},Qi=null,Xi=null,Zi=null;function Ji(){Zi=Xi=Qi=null}function eo(e){var t=Yi.current;li(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Qi=e,Zi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function ro(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Qi)throw Error(a(308));Xi=t,Qi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function uo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function co(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=o.baseState,c=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=m,d=u):p=p.next=m,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ol(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){u=g.call(m,u,s);break e}u=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,u,s):g))break e;u=i({},u,s);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===p?d=u:p.next=f,o.baseState=d,o.baseQueue=p,al(c),e.expirationTime=c,e.memoizedState=u}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var po=Q.ReactCurrentBatchConfig,ho=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Vs(),i=po.suspense;(i=so(r=Gs(r,e,i),i)).payload=t,null!=n&&(i.callback=n),lo(e,i),Ks(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Vs(),i=po.suspense;(i=so(r=Gs(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),lo(e,i),Ks(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Vs(),r=po.suspense;(r=so(n=Gs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),lo(e,r),Ks(e,n)}};function vo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Br(n,r)||!Br(i,o))}function yo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(t)?pi:di.current,o=(r=null!=(r=t.contextTypes))?hi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function _o(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(t)?pi:di.current,i.context=hi(e,o)),co(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var wo=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Eo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ol(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Cl(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Tl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Cl(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case te:return(t=Pl(t,e.mode,n)).return=e,t}if(wo(t)||me(t))return(t=Tl(t,e.mode,n,null)).return=e,t;ko(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(wo(n)||me(n))return null!==i?null:d(e,t,n,r,null);ko(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||me(r))return d(t,e=e.get(n)||null,r,i,null);ko(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),u}function g(i,s,l,u){var c=me(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===ne){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=xo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ne?((r=Tl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Cl(o.type,o.key,o.props,null,e.mode,l)).ref=xo(e,r,o),l.return=e,e=l)}return s(e);case te:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Pl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Al(o,e.mode,l)).return=e,e=r),s(e);if(wo(o))return m(e,r,o,l);if(me(o))return g(e,r,o,l);if(c&&ko(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var So=Eo(!0),Oo=Eo(!1),Co={},To={current:Co},Ao={current:Co},Po={current:Co};function Ro(e){if(e===Co)throw Error(a(174));return e}function jo(e,t){switch(ui(Po,t),ui(Ao,e),ui(To,Co),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(To),ui(To,t)}function Io(){li(To),li(Ao),li(Po)}function Mo(e){Ro(Po.current);var t=Ro(To.current),n=Ne(t,e.type);t!==n&&(ui(Ao,e),ui(To,n))}function Lo(e){Ao.current===e&&(li(To),li(Ao))}var Do={current:0};function No(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fo(e,t){return{responder:e,props:t}}var Bo=Q.ReactCurrentDispatcher,zo=Q.ReactCurrentBatchConfig,Uo=0,qo=null,Wo=null,Ho=null,$o=!1;function Vo(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Ko(e,t,n,r,i,o){if(Uo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Bo.current=null===e||null===e.memoizedState?va:ya,e=n(r,i),t.expirationTime===Uo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Ho=Wo=null,t.updateQueue=null,Bo.current=ba,e=n(r,i)}while(t.expirationTime===Uo)}if(Bo.current=ga,t=null!==Wo&&null!==Wo.next,Uo=0,Ho=Wo=qo=null,$o=!1,t)throw Error(a(300));return e}function Yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ho?qo.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function Qo(){if(null===Wo){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Wo.next;var t=null===Ho?qo.memoizedState:Ho.next;if(null!==t)Ho=t,Wo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Wo=e).memoizedState,baseState:Wo.baseState,baseQueue:Wo.baseQueue,queue:Wo.queue,next:null},null===Ho?qo.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function Xo(e,t){return"function"==typeof t?t(e):t}function Zo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Wo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.expirationTime;if(c<Uo){var d={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,c>qo.expirationTime&&(qo.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),ol(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,Nr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Jo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Nr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Yo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e}).dispatch=ma.bind(null,qo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qo.updateQueue)?(t={lastEffect:null},qo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Qo().memoizedState}function ra(e,t,n,r){var i=Yo();qo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Qo();r=void 0===r?null:r;var o=void 0;if(null!==Wo){var a=Wo.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ta(t,n,o,r)}qo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ua(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)}function ca(){}function da(e,t){return Yo().memoizedState=[e,void 0===t?null:t],e}function fa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=zi();qi(98>r?98:r,(function(){e(!0)})),qi(97<r?97:r,(function(){var r=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=r}}))}function ma(e,t,n){var r=Vs(),i=po.suspense;i={expirationTime:r=Gs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===qo||null!==o&&o===qo)$o=!0,i.expirationTime=Uo,qo.expirationTime=Uo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Nr(s,a))return}catch(e){}Ks(e,r)}}var ga={readContext:ro,useCallback:Vo,useContext:Vo,useEffect:Vo,useImperativeHandle:Vo,useLayoutEffect:Vo,useMemo:Vo,useReducer:Vo,useRef:Vo,useState:Vo,useDebugValue:Vo,useResponder:Vo,useDeferredValue:Vo,useTransition:Vo},va={readContext:ro,useCallback:da,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,qo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yo().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},ya={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:pa,useReducer:Zo,useRef:na,useState:function(){return Zo(Xo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=Zo(Xo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:pa,useReducer:Jo,useRef:na,useState:function(){return Jo(Xo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(e,t){var n=Jo(Xo),r=n[0],i=n[1];return aa((function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Jo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},_a=null,wa=null,xa=!1;function ka(e,t){var n=El(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ea(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sa(e){if(xa){var t=wa;if(t){var n=t;if(!Ea(e,t)){if(!(t=wn(n.nextSibling))||!Ea(e,t))return e.effectTag=-1025&e.effectTag|2,xa=!1,void(_a=e);ka(_a,n)}_a=e,wa=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,xa=!1,_a=e}}function Oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;_a=e}function Ca(e){if(e!==_a)return!1;if(!xa)return Oa(e),xa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=wa;t;)ka(e,t),t=wn(t.nextSibling);if(Oa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wa=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wa=null}}else wa=_a?wn(e.stateNode.nextSibling):null;return!0}function Ta(){wa=_a=null,xa=!1}var Aa=Q.ReactCurrentOwner,Pa=!1;function Ra(e,t,n,r){t.child=null===e?Oo(t,null,n,r):So(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Ia(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Sl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Cl(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Br)(i,r)&&e.ref===t.ref)?Ka(e,t,o):(t.effectTag|=1,(e=Ol(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){return null!==e&&Br(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,i<o)?(t.expirationTime=e.expirationTime,Ka(e,t,o)):Da(e,t,n,r,o)}function La(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Da(e,t,n,r,i){var o=mi(n)?pi:di.current;return o=hi(t,o),no(t,i),n=Ko(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ka(e,t,i))}function Na(e,t,n,r,i){if(mi(n)){var o=!0;bi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yo(t,n,r),_o(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ro(u):u=hi(t,u=mi(n)?pi:di.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&bo(t,a,r,u),io=!1;var f=t.memoizedState;a.state=f,co(t,r,a,i),l=t.memoizedState,s!==r||f!==l||fi.current||io?("function"==typeof c&&(mo(t,n,c,r),l=t.memoizedState),(s=io||vo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Ki(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ro(u):u=hi(t,u=mi(n)?pi:di.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&bo(t,a,r,u),io=!1,l=t.memoizedState,a.state=l,co(t,r,a,i),f=t.memoizedState,s!==r||l!==f||fi.current||io?("function"==typeof c&&(mo(t,n,c,r),f=t.memoizedState),(c=io||vo(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Fa(e,t,n,r,o,i)}function Fa(e,t,n,r,i,o){La(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&_i(t,n,!1),Ka(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&_i(t,n,!0),t.child}function Ba(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),jo(e,t.containerInfo)}var za,Ua,qa,Wa={dehydrated:null,retryTime:0};function Ha(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Do.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ui(Do,1&a),null===e){if(void 0!==o.fallback&&Sa(t),s){if(s=o.fallback,(o=Tl(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Tl(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Wa,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Oo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ol(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ol(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Wa,t.child=n,i}return n=So(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Tl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Tl(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Wa,t.child=o,n}return t.memoizedState=null,t.child=So(t,e,o.children,n)}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Va(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Do.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$a(e,n);else if(19===e.tag)$a(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Do,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===No(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Va(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===No(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Va(t,!0,n,null,o,t.lastEffect);break;case"together":Va(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&al(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ol(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ol(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qa(e,t,n){var r=t.pendingProps;switch(t.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 mi(t.type)&&gi(),null;case 3:return Io(),li(fi),li(di),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ca(t)||(t.effectTag|=4),null;case 5:Lo(t),n=Ro(Po.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ua(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(To.current),Ca(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[En]=t,r[Sn]=s,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Gt(Qe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":ke(r,s),Gt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),ln(n,"onChange");break;case"textarea":Re(r,s),Gt("invalid",r),ln(n,"onChange")}for(var l in on(o,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):E.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(o){case"input":_e(r),Oe(r,s,!0);break;case"textarea":_e(r),Ie(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=De(o)),e===sn?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[En]=t,e[Sn]=r,za(e,t),t.stateNode=e,l=an(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Qe.length;u++)Gt(Qe[u],e);u=r;break;case"source":Gt("error",e),u=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),u=r;break;case"form":Gt("reset",e),Gt("submit",e),u=r;break;case"details":Gt("toggle",e),u=r;break;case"input":ke(e,r),u=xe(e,r),Gt("invalid",e),ln(n,"onChange");break;case"option":u=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Re(e,r),u=Pe(e,r),Gt("invalid",e),ln(n,"onChange");break;default:u=r}on(o,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&ze(e,d):"number"==typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&X(e,s,d,l))}switch(o){case"input":_e(e),Oe(e,r,!1);break;case"textarea":_e(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=un)}vn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ro(Po.current),Ro(To.current),Ca(t)?(n=t.stateNode,r=t.memoizedProps,n[En]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[En]=t,t.stateNode=n)}return null;case 13:return li(Do),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ca(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Do.current)?Cs===_s&&(Cs=ws):(Cs!==_s&&Cs!==ws||(Cs=xs),0!==js&&null!==Es&&(Il(Es,Os),Ml(Es,js)))),(n||r)&&(t.effectTag|=4),null);case 4:return Io(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&gi(),null;case 19:if(li(Do),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Ya(r,!1);else if(Cs!==_s||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=No(s))){for(t.effectTag|=64,Ya(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ui(Do,1&Do.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=No(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bi(),n.sibling=null,t=Do.current,ui(Do,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Io(),li(fi),li(di),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Lo(e),null;case 13:return li(Do),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(Do),null;case 4:return Io(),null;case 10:return eo(e),null;default:return null}}function Za(e,t){return{value:e,source:t,stack:ve(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(Ro(To.current),e=null,n){case"input":a=xe(u,a),r=xe(u,r),e=[];break;case"option":a=Te(u,a),r=Te(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(u,a),r=Pe(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=un)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=c&&ln(o,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Ja="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof xl&&xl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){yl(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=un));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=n,d=u;;)if(as(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Be(n,l):"children"===s?ze(n,l):X(n,s,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":je(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ms=Bi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fs(t);case 19:return void fs(t);case 17:return}throw Error(a(163))}function fs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach((function(t){var r=_l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ds||(Ds=!0,Ns=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Fs?Fs=new Set([this]):Fs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,vs=Math.ceil,ys=Q.ReactCurrentDispatcher,bs=Q.ReactCurrentOwner,_s=0,ws=3,xs=4,ks=0,Es=null,Ss=null,Os=0,Cs=_s,Ts=null,As=1073741823,Ps=1073741823,Rs=null,js=0,Is=!1,Ms=0,Ls=null,Ds=!1,Ns=null,Fs=null,Bs=!1,zs=null,Us=90,qs=null,Ws=0,Hs=null,$s=0;function Vs(){return 0!=(48&ks)?1073741821-(Bi()/10|0):0!==$s?$s:$s=1073741821-(Bi()/10|0)}function Gs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=zi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&ks))return Os;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Es&&e===Os&&--e,e}function Ks(e,t){if(50<Ws)throw Ws=0,Hs=null,Error(a(185));if(null!==(e=Ys(e,t))){var n=zi();1073741823===t?0!=(8&ks)&&0==(48&ks)?Js(e):(Xs(e),0===ks&&$i()):Xs(e),0==(4&ks)||98!==n&&99!==n||(null===qs?qs=new Map([[e,t]]):(void 0===(n=qs.get(e))||n>t)&&qs.set(e,t))}}function Ys(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Es===i&&(al(t),Cs===xs&&Il(i,Os)),Ml(i,t)),i}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!jl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Hi(Js.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Vs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==ji&&ki(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Hi(Js.bind(null,e)):Wi(r,Zs.bind(null,e),{timeout:10*(1073741821-t)-Bi()}),e.callbackNode=t}}}function Zs(e,t){if($s=0,t)return Ll(e,t=Vs()),Xs(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&ks))throw Error(a(327));if(ml(),e===Es&&n===Os||nl(e,n),null!==Ss){var r=ks;ks|=16;for(var i=il();;)try{ll();break}catch(t){rl(e,t)}if(Ji(),ks=r,ys.current=i,1===Cs)throw t=Ts,nl(e,n),Il(e,n),Xs(e),t;if(null===Ss)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Cs,Es=null,r){case _s:case 1:throw Error(a(345));case 2:Ll(e,2<n?2:n);break;case ws:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(i)),1073741823===As&&10<(i=Ms+500-Bi())){if(Is){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(o=Qs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(fl.bind(null,e),i);break}fl(e);break;case xs:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(i)),Is&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(i=Qs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ps?r=10*(1073741821-Ps)-Bi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Bi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(fl.bind(null,e),r);break}fl(e);break;case 5:if(1073741823!==As&&null!==Rs){o=As;var s=Rs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Bi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Il(e,n),e.timeoutHandle=bn(fl.bind(null,e),r);break}}fl(e);break;default:throw Error(a(329))}if(Xs(e),e.callbackNode===t)return Zs.bind(null,e)}}return null}function Js(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ks))throw Error(a(327));if(ml(),e===Es&&t===Os||nl(e,t),null!==Ss){var n=ks;ks|=16;for(var r=il();;)try{sl();break}catch(t){rl(e,t)}if(Ji(),ks=n,ys.current=r,1===Cs)throw n=Ts,nl(e,t),Il(e,t),Xs(e),n;if(null!==Ss)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Es=null,fl(e),Xs(e)}return null}function el(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&$i()}}function tl(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&$i()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,_n(n)),null!==Ss)for(n=Ss.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Io(),li(fi),li(di);break;case 5:Lo(r);break;case 4:Io();break;case 13:case 19:li(Do);break;case 10:eo(r)}n=n.return}Es=e,Ss=Ol(e.current,null),Os=t,Cs=_s,Ts=null,Ps=As=1073741823,Rs=null,js=0,Is=!1}function rl(e,t){for(;;){try{if(Ji(),Bo.current=ga,$o)for(var n=qo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Uo=0,Ho=Wo=qo=null,$o=!1,null===Ss||null===Ss.return)return Cs=1,Ts=t,Ss=null;e:{var i=e,o=Ss.return,a=Ss,s=t;if(t=Os,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Do.current),d=o;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=so(1073741823,null);v.tag=2,lo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ps,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=bl.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Cs&&(Cs=2),s=Za(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,uo(d,hs(d,l,t));break e;case 1:l=s;var _=d.type,w=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Fs||!Fs.has(w)))){d.effectTag|=4096,d.expirationTime=t,uo(d,ms(d,l,t));break e}}d=d.return}while(null!==d)}Ss=cl(Ss)}catch(e){t=e;continue}break}}function il(){var e=ys.current;return ys.current=ga,null===e?ga:e}function ol(e,t){e<As&&2<e&&(As=e),null!==t&&e<Ps&&2<e&&(Ps=e,Rs=t)}function al(e){e>js&&(js=e)}function sl(){for(;null!==Ss;)Ss=ul(Ss)}function ll(){for(;null!==Ss&&!Ii();)Ss=ul(Ss)}function ul(e){var t=gs(e.alternate,e,Os);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),bs.current=null,t}function cl(e){Ss=e;do{var t=Ss.alternate;if(e=Ss.return,0==(2048&Ss.effectTag)){if(t=Qa(t,Ss,Os),1===Os||1!==Ss.childExpirationTime){for(var n=0,r=Ss.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ss.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ss.firstEffect),null!==Ss.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ss.firstEffect),e.lastEffect=Ss.lastEffect),1<Ss.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ss:e.firstEffect=Ss,e.lastEffect=Ss))}else{if(null!==(t=Xa(Ss)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ss.sibling))return t;Ss=e}while(null!==Ss);return Cs===_s&&(Cs=5),null}function dl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function fl(e){var t=zi();return qi(99,pl.bind(null,e,t)),null}function pl(e,t){do{ml()}while(null!==zs);if(0!=(48&ks))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=dl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Es&&(Ss=Es=null,Os=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=ks;ks|=32,bs.current=null,mn=Vt;var s=pn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==c&&3!==v.nodeType||(p=f+c),v!==d||0!==u&&3!==v.nodeType||(h=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++m===c&&(p=f),y===d&&++g===u&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Vt=!1,Ls=i;do{try{hl()}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);Ls=i;do{try{for(s=e,l=t;null!==Ls;){var _=Ls.effectTag;if(16&_&&ze(Ls.stateNode,""),128&_){var w=Ls.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:us(Ls),Ls.effectTag&=-3;break;case 6:us(Ls),Ls.effectTag&=-3,ds(Ls.alternate,Ls);break;case 1024:Ls.effectTag&=-1025;break;case 1028:Ls.effectTag&=-1025,ds(Ls.alternate,Ls);break;case 4:ds(Ls.alternate,Ls);break;case 8:cs(s,c=Ls,l),ss(c)}Ls=Ls.nextEffect}}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);if(x=gn,w=pn(),_=x.focusedElem,l=x.selectionRange,w!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==l&&hn(_)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),c=_.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!x.extend&&s>l&&(c=l,l=s,s=c),c=fn(_,s),d=fn(_,l),c&&d&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&((w=w.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),s>l?(x.addRange(w),x.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Vt=!!mn,gn=mn=null,e.current=n,Ls=i;do{try{for(_=e;null!==Ls;){var k=Ls.effectTag;if(36&k&&os(_,Ls.alternate,Ls),128&k){w=void 0;var E=Ls.ref;if(null!==E){var S=Ls.stateNode;switch(Ls.tag){case 5:w=S;break;default:w=S}"function"==typeof E?E(w):E.current=w}}Ls=Ls.nextEffect}}catch(e){if(null===Ls)throw Error(a(330));yl(Ls,e),Ls=Ls.nextEffect}}while(null!==Ls);Ls=null,Mi(),ks=o}else e.current=n;if(Bs)Bs=!1,zs=e,Us=t;else for(Ls=i;null!==Ls;)t=Ls.nextEffect,Ls.nextEffect=null,Ls=t;if(0===(t=e.firstPendingTime)&&(Fs=null),1073741823===t?e===Hs?Ws++:(Ws=0,Hs=e):Ws=0,"function"==typeof wl&&wl(n.stateNode,r),Xs(e),Ds)throw Ds=!1,e=Ns,Ns=null,e;return 0!=(8&ks)||$i(),null}function hl(){for(;null!==Ls;){var e=Ls.effectTag;0!=(256&e)&&ns(Ls.alternate,Ls),0==(512&e)||Bs||(Bs=!0,Wi(97,(function(){return ml(),null}))),Ls=Ls.nextEffect}}function ml(){if(90!==Us){var e=97<Us?97:Us;return Us=90,qi(e,gl)}}function gl(){if(null===zs)return!1;var e=zs;if(zs=null,0!=(48&ks))throw Error(a(331));var t=ks;for(ks|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(a(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ks=t,$i(),!0}function vl(e,t,n){lo(e,t=hs(e,t=Za(n,t),1073741823)),null!==(e=Ys(e,1073741823))&&Xs(e)}function yl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Fs||!Fs.has(r))){lo(n,e=ms(n,e=Za(t,e),1073741823)),null!==(n=Ys(n,1073741823))&&Xs(n);break}}n=n.return}}function bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Es===e&&Os===n?Cs===xs||Cs===ws&&1073741823===As&&Bi()-Ms<500?nl(e,Os):Is=!0:jl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xs(e)))}function _l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=Vs(),e,null)),null!==(e=Ys(e,t))&&Xs(e)}gs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||fi.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:Ba(t),Ta();break;case 5:if(Mo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&bi(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,ui(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(ui(Do,1&Do.current),null!==(t=Ka(e,t,n))?t.sibling:null);ui(Do,1&Do.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ui(Do,Do.current),!r)return null}return Ka(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,di.current),no(t,n),i=Ko(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;bi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternalFiber=t,_o(t,r,e,n),t=Fa(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Sl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=Na(null,t,i,e,n);break e;case 11:t=ja(null,t,i,e,n);break e;case 14:t=Ia(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ba(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),co(t,r,null,n),(r=t.memoizedState.element)===i)Ta(),t=Ka(e,t,n);else{if((i=t.stateNode.hydrate)&&(wa=wn(t.stateNode.containerInfo.firstChild),_a=t,i=xa=!0),i)for(n=Oo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),Ta();t=t.child}return t;case 5:return Mo(t),null===e&&Sa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,yn(r,i)?s=null:null!==o&&yn(r,o)&&(t.effectTag|=16),La(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return Ha(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ui(Yi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Nr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!fi.current){t=Ka(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=so(n,null)).tag=2,lo(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),to(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Ia(e,t,i,o=Ki(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,no(t,n),yo(t,r,i),_o(t,r,i,n),Fa(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var wl=null,xl=null;function kl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function El(e,t,n,r){return new kl(e,t,n,r)}function Sl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ol(e,t){var n=e.alternate;return null===n?((n=El(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Sl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Tl(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=El(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ue:return(e=El(13,n,t,i)).type=ue,e.elementType=ue,e.expirationTime=o,e;case ce:return(e=El(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=El(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Tl(e,t,n,r){return(e=El(7,e,r,t)).expirationTime=n,e}function Al(e,t,n){return(e=El(6,e,null,t)).expirationTime=n,e}function Pl(e,t,n){return(t=El(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function jl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Il(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ml(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ll(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Dl(e,t,n,r){var i=t.current,o=Vs(),s=po.suspense;o=Gs(o,i,s);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=yi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),Ks(i,o),o}function Nl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Bl(e,t){Fl(e,t),(e=e.alternate)&&Fl(e,t)}function zl(e,t,n){var r=new Rl(e,t,n=null!=n&&!0===n.hydrate),i=El(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[On]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Ot.forEach((function(e){ht(e,t,n)})),Ct.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ul(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ql(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Nl(a);s.call(e)}}Dl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Nl(a);l.call(e)}}tl((function(){Dl(t,a,e,i)}))}return Nl(a)}function Wl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ul(t))throw Error(a(200));return Wl(e,t,null,n)}zl.prototype.render=function(e){Dl(e,this._internalRoot,null,null)},zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Dl(null,e,null,(function(){t[On]=null}))},mt=function(e){if(13===e.tag){var t=Gi(Vs(),150,100);Ks(e,t),Bl(e,t)}},gt=function(e){13===e.tag&&(Ks(e,3),Bl(e,3))},vt=function(e){if(13===e.tag){var t=Vs();Ks(e,t=Gs(t,e,null)),Bl(e,t)}},T=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pn(r);if(!i)throw Error(a(90));we(r),Se(r,i)}}}break;case"textarea":je(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},M=el,L=function(e,t,n,r,i){var o=ks;ks|=4;try{return qi(98,e.bind(null,t,n,r,i))}finally{0===(ks=o)&&$i()}},D=function(){0==(49&ks)&&(function(){if(null!==qs){var e=qs;qs=null,e.forEach((function(e,t){Ll(t,e),Xs(t)})),$i()}}(),ml())},N=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&$i()}};var $l,Vl,Gl={Events:[Tn,An,Pn,O,k,Nn,function(e){it(e,Dn)},j,I,Xt,st,ml,{current:!1}]};Vl=($l={findFiberByHostInstance:Cn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);wl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},xl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},$l,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Vl?Vl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=Hl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ks))throw Error(a(187));var n=ks;ks|=1;try{return qi(99,e.bind(null,t))}finally{ks=n,$i()}},t.hydrate=function(e,t,n){if(!Ul(t))throw Error(a(200));return ql(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ul(t))throw Error(a(200));return ql(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ul(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){ql(null,null,e,!1,(function(){e._reactRootContainer=null,e[On]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Hl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ul(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return ql(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(797)},function(e,t,n){"use strict";
/** @license React v0.19.1
* scheduler.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 r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},i=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,_=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+w;try{b(!0,e)?E.postMessage(null):(y=!1,b=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,E.postMessage(null))},i=function(e,n){_=h((function(){e(t.unstable_now())}),n)},o=function(){m(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function O(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],P=[],R=1,j=null,I=3,M=!1,L=!1,D=!1;function N(e){for(var t=O(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,S(A,t)}t=O(P)}}function F(e){if(D=!1,N(e),!L)if(null!==O(A))L=!0,r(B);else{var t=O(P);null!==t&&i(F,t.startTime-e)}}function B(e,n){L=!1,D&&(D=!1,o()),M=!0;var r=I;try{for(N(n),j=O(A);null!==j&&(!(j.expirationTime>n)||e&&!a());){var s=j.callback;if(null!==s){j.callback=null,I=j.priorityLevel;var l=s(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?j.callback=l:j===O(A)&&C(A),N(n)}else C(A);j=O(A)}if(null!==j)var u=!0;else{var c=O(P);null!==c&&i(F,c.startTime-n),u=!1}return u}finally{j=null,I=r,M=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||M||(L=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return O(A)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:R++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(P,e),null===O(A)&&e===O(P)&&(D?o():D=!0,i(F,l-s))):(e.sortIndex=a,S(A,e),L||M||(L=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var n=O(A);return n!==j&&null!==j&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<j.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){"use strict";
/** @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 r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case g:case u:return e;default:return t}}case o:return t}}}function k(e){return x(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},function(e,t,n){"use strict";
/** @license React v17.0.2
* 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 r=60103,i=60106,o=60107,a=60108,s=60114,l=60109,u=60110,c=60112,d=60113,f=60120,p=60115,h=60116,m=60121,g=60122,v=60117,y=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),i=_("react.portal"),o=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),l=_("react.provider"),u=_("react.context"),c=_("react.forward_ref"),d=_("react.suspense"),f=_("react.suspense_list"),p=_("react.memo"),h=_("react.lazy"),m=_("react.block"),g=_("react.server.block"),v=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case l:return e;default:return t}}case i:return t}}}var x=l,k=r,E=c,S=o,O=h,C=p,T=i,A=s,P=a,R=d;t.ContextConsumer=u,t.ContextProvider=x,t.Element=k,t.ForwardRef=E,t.Fragment=S,t.Lazy=O,t.Memo=C,t.Portal=T,t.Profiler=A,t.StrictMode=P,t.Suspense=R,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===c},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===y||e===a||e===d||e===f||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===g)},t.typeOf=w},function(e,t,n){"use strict";var r=n(801);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){var r=n(804);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(493);e.exports={Wrapper:n(806),Button:n(809),Menu:n(810),MenuItem:n(812),openMenu:r.openMenu,closeMenu:r.closeMenu}},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(807),a=n(281),s=n(282).refType,l=n(283),u={children:i.node.isRequired,forwardedRef:s,onMenuToggle:i.func,onSelection:i.func,closeOnSelection:i.bool,closeOnBlur:i.bool,tag:i.string},c=function(e){return{onMenuToggle:e.onMenuToggle,onSelection:e.onSelection,closeOnSelection:e.closeOnSelection,closeOnBlur:e.closeOnBlur,id:e.id}},d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.manager=o(c(n)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidUpdate=function(){this.manager.updateOptions(c(this.props))},t.prototype.render=function(){var e={};return l(e,this.props,u),r.createElement(a.Provider,{value:this.manager},r.createElement(this.props.tag,e,this.props.children))},t}(r.Component);d.propTypes=u,d.defaultProps={tag:"div"},e.exports=r.forwardRef((function(e,t){var n={forwardedRef:t};return l(n,e,{children:u.children,forwardedRef:u.forwardedRef}),l(n,{forwardedRef:t}),r.createElement(d,n,e.children)}))},function(e,t,n){"use strict";var r=n(808),i=n(493),o={wrap:!0,stringSearch:!0},a={init:function(e){this.updateOptions(e),this.handleBlur=s.bind(this),this.handleSelection=l.bind(this),this.handleMenuKey=u.bind(this),this.focusGroup=r(o),this.button=null,this.menu=null,this.isOpen=!1},updateOptions:function(e){var t=this.options;this.options=e||this.options||{},void 0===this.options.closeOnSelection&&(this.options.closeOnSelection=!0),void 0===this.options.closeOnBlur&&(this.options.closeOnBlur=!0),this.options.id&&i.registerManager(this.options.id,this),t&&t.id&&t.id!==this.options.id&&i.unregisterManager(this.options.id,this)},focusItem:function(e){this.focusGroup.focusNodeAtIndex(e)},addItem:function(e){this.focusGroup.addMember(e)},clearItems:function(){this.focusGroup.clearMembers()},handleButtonNonArrowKey:function(e){this.focusGroup._handleUnboundKey(e)},destroy:function(){this.button=null,this.menu=null,this.focusGroup.deactivate(),clearTimeout(this.blurTimer),clearTimeout(this.moveFocusTimer)},update:function(){this.menu.setState({isOpen:this.isOpen}),this.button.setState({menuOpen:this.isOpen}),this.options.onMenuToggle&&this.options.onMenuToggle({isOpen:this.isOpen})},openMenu:function(e){if(!this.isOpen&&(void 0===(e=e||{}).focusMenu&&(e.focusMenu=!0),this.isOpen=!0,this.update(),this.focusGroup.activate(),e.focusMenu)){var t=this;this.moveFocusTimer=setTimeout((function(){t.focusItem(0)}),0)}},closeMenu:function(e){this.isOpen&&(e=e||{},this.isOpen=!1,this.update(),e.focusButton&&this.button.ref.current.focus())},toggleMenu:function(e,t){e=e||{},t=t||{},this.isOpen?this.closeMenu(e):this.openMenu(t)}};function s(){var e=this;e.blurTimer=setTimeout((function(){if(e.button){var t=e.button.ref.current;if(t){var n=t.ownerDocument.activeElement;if(!t||n!==t){var r=e.menu.ref.current;r!==n?r&&r.contains(n)||e.isOpen&&e.closeMenu({focusButton:!1}):e.focusItem(0)}}}}),0)}function l(e,t){this.options.closeOnSelection&&this.closeMenu({focusButton:!0}),this.options.onSelection&&this.options.onSelection(e,t)}function u(e){if(this.isOpen)switch(e.key){case"Escape":e.preventDefault(),this.closeMenu({focusButton:!0});break;case"Home":e.preventDefault(),this.focusGroup.moveFocusToFirst();break;case"End":e.preventDefault(),this.focusGroup.moveFocusToLast()}}e.exports=function(e){var t=Object.create(a);return t.init(e),t}},function(e,t){function n(e){var t,n,r=(e=e||{}).keybindings||{};for(t in this._settings={keybindings:{next:r.next||{keyCode:40},prev:r.prev||{keyCode:38},first:r.first,last:r.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[],this._settings.keybindings)(n=this._settings.keybindings[t])&&[].concat(n).forEach(function(e){e.metaKey=e.metaKey||!1,e.ctrlKey=e.ctrlKey||!1,e.altKey=e.altKey||!1,e.shiftKey=e.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:e})}.bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}function r(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}n.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this},n.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this},n.prototype._handleKeydownEvent=function(e){if(-1!==this._getActiveElementIndex()){var t=!1;this._keybindingsLookup.forEach(function(n){if(function(e,t){for(var n in e)if(void 0!==t[n]&&e[n]!==t[n])return!1;return!0}(n.eventMatcher,e))switch(t=!0,e.preventDefault(),n.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}.bind(this)),t||this._handleUnboundKey(e)}},n.prototype.moveFocusForward=function(){var e,t=this._getActiveElementIndex();return e=t<this._members.length-1?t+1:this._settings.wrap?0:t,this.focusNodeAtIndex(e),e},n.prototype.moveFocusBack=function(){var e,t=this._getActiveElementIndex();return e=t>0?t-1:this._settings.wrap?this._members.length-1:t,this.focusNodeAtIndex(e),e},n.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)},n.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)},n.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(""!==this._searchString&&(" "===e.key||32===e.keyCode))return e.preventDefault(),-1;if(!((t=e.keyCode)>=65&&t<=90))return-1;var t;if(e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}},n.prototype._clearSearchString=function(){this._searchString=""},n.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()},n.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout((function(){e._clearSearchString()}),this._settings.stringSearchDelay)},n.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)},n.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)},n.prototype.moveFocusByString=function(e){for(var t,n=0,i=this._members.length;n<i;n++)if((t=this._members[n]).text&&0===t.text.indexOf(e))return r(t.node)},n.prototype._findIndexOfNode=function(e){for(var t=0,n=this._members.length;t<n;t++)if(this._members[t].node===e)return t;return-1},n.prototype._getActiveElementIndex=function(){return this._findIndexOfNode(document.activeElement)},n.prototype.focusNodeAtIndex=function(e){var t=this._members[e];return t&&r(t.node),this},n.prototype.addMember=function(e,t){var n=e.node||e,r=e.text||n.getAttribute("data-focus-group-text")||n.textContent||"";this._checkNode(n);var i={node:n,text:r.replace(/[\W_]/g,"").toLowerCase()};return null!=t?this._members.splice(t,0,i):this._members.push(i),this},n.prototype.removeMember=function(e){var t="number"==typeof e?e:this._findIndexOfNode(e);if(-1!==t)return this._members.splice(t,1),this},n.prototype.clearMembers=function(){return this._members=[],this},n.prototype.setMembers=function(e){this.clearMembers();for(var t=0,n=e.length;t<n;t++)this.addMember(e[t]);return this},n.prototype.getMembers=function(){return this._members},n.prototype._checkNode=function(e){if(!e.nodeType||e.nodeType!==window.Node.ELEMENT_NODE)throw new Error("focus-group: only DOM nodes allowed");return e},e.exports=function(e){return new n(e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(0),a=n(2),s=n(281),l=n(282).refType,u=n(283),c={ambManager:a.object.isRequired,children:a.node.isRequired,disabled:a.bool,forwardedRef:l,tag:a.string},d=function(e){function t(){var n,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=i(this,e.call.apply(e,[this].concat(l))),a.ref=o.createRef(),a.handleKeyDown=function(e){if(!a.props.disabled){var t=a.props.ambManager;switch(e.key){case"ArrowDown":e.preventDefault(),t.isOpen?t.focusItem(0):t.openMenu();break;case"Enter":case" ":e.preventDefault(),t.toggleMenu();break;case"Escape":t.handleMenuKey(e);break;default:t.handleButtonNonArrowKey(e)}}},a.handleClick=function(){a.props.disabled||a.props.ambManager.toggleMenu({},{focusMenu:!1})},a.setRef=function(e){a.ref.current=e,"function"==typeof a.props.forwardedRef?a.props.forwardedRef(e):a.props.forwardedRef&&(a.props.forwardedRef.current=e)},i(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.button=this},t.prototype.componentWillUnmount=function(){this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n={role:"button",tabIndex:e.disabled?"":"0","aria-haspopup":!0,"aria-expanded":t.isOpen,"aria-disabled":e.disabled,onKeyDown:this.handleKeyDown,onClick:this.handleClick},r={};return u(r,c),["button","fieldset","input","optgroup","option","select","textarea"].indexOf(e.tag)>=0&&delete r.disabled,t.options.closeOnBlur&&(n.onBlur=t.handleBlur),u(n,e,r),u(n,{ref:this.setRef}),o.createElement(e.tag,n,e.children)},t}(o.Component);d.propTypes=c,d.defaultProps={tag:"span"},e.exports=o.forwardRef((function(e,t){return o.createElement(s.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return u(r,e,{ambManager:c.ambManager,children:c.children,forwardedRef:c.forwardedRef}),o.createElement(d,r,e.children)}))}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(0),a=n(2),s=n(811),l=n(281),u=n(282).refType,c=n(283),d={ambManager:a.object.isRequired,children:a.oneOfType([a.func,a.node]).isRequired,forwardedRef:u,tag:a.string},f=function(e){function t(){var n,a;r(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=i(this,e.call.apply(e,[this].concat(u))),a.ref=o.createRef(),a.addTapListener=function(){var e=a.ref.current;if(e){var t=e.ownerDocument;t&&(a.tapListener=s(t.documentElement,a.handleTap))}},a.handleTap=function(e){a.ref.current.contains(e.target)||a.props.ambManager.button.ref.current.contains(e.target)||a.props.ambManager.closeMenu()},a.setRef=function(e){a.ref.current=e,"function"==typeof a.props.forwardedRef?a.props.forwardedRef(e):a.props.forwardedRef&&(a.props.forwardedRef.current=e)},i(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.menu=this},t.prototype.componentDidUpdate=function(){var e=this.props.ambManager;e.options.closeOnBlur&&(e.isOpen&&!this.tapListener?this.addTapListener():!e.isOpen&&this.tapListener&&(this.tapListener.remove(),delete this.tapListener),e.isOpen||e.clearItems())},t.prototype.componentWillUnmount=function(){this.tapListener&&this.tapListener.remove(),this.props.ambManager.destroy()},t.prototype.render=function(){var e=this.props,t=this.props.ambManager,n="function"==typeof e.children?e.children({isOpen:t.isOpen}):!!t.isOpen&&e.children;if(!n)return!1;var r={onKeyDown:t.handleMenuKey,role:"menu",tabIndex:-1};return t.options.closeOnBlur&&(r.onBlur=t.handleBlur),c(r,e,d),c(r,{ref:this.setRef}),o.createElement(e.tag,r,n)},t}(o.Component);f.propTypes=d,f.defaultProps={tag:"div"},e.exports=o.forwardRef((function(e,t){return o.createElement(l.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return c(r,e,{ambManager:d.ambManager,children:d.children,forwardedRef:d.forwardedRef}),o.createElement(f,r,e.children)}))}))},function(e,t){e.exports=function(e,t,n){var r=0,i=0,o=!1,a=!1,s=!1;function l(e){s||t(e)}function u(t){s=!0,o||(o=!0,e.addEventListener("touchmove",c,n),e.addEventListener("touchend",d,n),e.addEventListener("touchcancel",f,n),a=!1,r=t.touches[0].clientX,i=t.touches[0].clientY)}function c(e){a||Math.abs(e.touches[0].clientX-r)<=10&&Math.abs(e.touches[0].clientY-i)<=10||(a=!0)}function d(e){o=!1,p(),a||t(e)}function f(){o=!1,a=!1,r=0,i=0}function p(){e.removeEventListener("touchmove",c,n),e.removeEventListener("touchend",d,n),e.removeEventListener("touchcancel",f,n)}return e.addEventListener("click",l,n),e.addEventListener("touchstart",u,n),{remove:function(){e.removeEventListener("click",l,n),e.removeEventListener("touchstart",u,n),p()}}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=n(0),a=n(2),s=n(281),l=n(282).refType,u=n(283),c={ambManager:a.object.isRequired,children:a.node.isRequired,forwardedRef:l,tag:a.string,text:a.string,value:a.any},d=function(e){function t(){var n,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=a=i(this,e.call.apply(e,[this].concat(l))),a.ref=o.createRef(),a.handleKeyDown=function(e){"Enter"!==e.key&&" "!==e.key||"a"===a.props.tag&&a.props.href||(e.preventDefault(),a.selectItem(e))},a.selectItem=function(e){var t=void 0!==a.props.value?a.props.value:a.props.children;a.props.ambManager.handleSelection(t,e)},a.setRef=function(e){a.ref.current=e,"function"==typeof a.props.forwardedRef?a.props.forwardedRef(e):a.props.forwardedRef&&(a.props.forwardedRef.current=e)},i(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.ambManager.addItem({node:this.ref.current,text:this.props.text})},t.prototype.render=function(){var e={onClick:this.selectItem,onKeyDown:this.handleKeyDown,role:"menuitem",tabIndex:"-1",ref:this.setRef};return u(e,this.props,c),o.createElement(this.props.tag,e,this.props.children)},t}(o.Component);d.propTypes=c,d.defaultProps={tag:"div"},e.exports=o.forwardRef((function(e,t){return o.createElement(s.Consumer,null,(function(n){var r={ambManager:n,forwardedRef:t};return u(r,e,{ambManager:c.ambManager,children:c.children,forwardedRef:c.forwardedRef}),o.createElement(d,r,e.children)}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(814)),i=o(n(867));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={arrow:{direction:"left"},chevron:{direction:"down"},"chevron-double":{direction:"down"}};var u=(0,r.default)(i.default,(e,t)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({image:e},l[t]||{}));t.default=u},function(e,t,n){var r=n(236),i=n(376),o=n(109);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},function(e,t,n){var r=n(208),i=n(818),o=n(89),a=n(496),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(209),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(819),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(88)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(120),i=n(83);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(120),i=n(377),o=n(83),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(499)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(828),i=n(860),o=n(509);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(287),i=n(381);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(o)var h=o(d,f,c,e,t,p);if(!(void 0===h?i(f,d,3,o,p):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(289),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(289);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(289);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(289);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(288);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(288),i=n(379),o=n(380);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(840),i=n(288),o=n(379);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(841),i=n(842),o=n(843),a=n(844),s=n(845);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(290);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(290),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(290),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(290);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(291);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(291);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(291);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(291);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(287),i=n(500),o=n(855),a=n(857),s=n(212),l=n(49),u=n(238),c=n(284),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,m){var g=l(e),v=l(t),y=g?"[object Array]":s(e),b=v?"[object Array]":s(t),_=(y="[object Arguments]"==y?d:y)==d,w=(b="[object Arguments]"==b?d:b)==d,x=y==b;if(x&&u(e)){if(!u(t))return!1;g=!0,_=!1}if(x&&!_)return m||(m=new r),g||c(e)?i(e,t,n,p,h,m):o(e,t,y,n,p,h,m);if(!(1&n)){var k=_&&f.call(e,"__wrapped__"),E=w&&f.call(t,"__wrapped__");if(k||E){var S=k?e.value():e,O=E?t.value():t;return m||(m=new r),h(S,O,n,p,m)}}return!!x&&(m||(m=new r),a(e,t,n,p,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(209),i=n(501),o=n(239),a=n(500),s=n(856),l=n(382),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,u,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(502),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var b=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(189)(n(88),"DataView");e.exports=r},function(e,t,n){var r=n(189)(n(88),"Promise");e.exports=r},function(e,t,n){var r=n(508),i=n(210);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(381),i=n(103),o=n(511),a=n(384),s=n(508),l=n(509),u=n(163);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(863);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(380);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(513),i=n(866),o=n(384),a=n(163);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t,n){var r=n(240);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(0))&&r.__esModule;var r,i=n(9);var o=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"}))};o.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var a=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M16.5 16 13 12h7l-3.5 4Zm-4-5.75H9.75a.5.5 0 0 0-.5.5v2.75a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 1-.5-.5v-2.75a.5.5 0 0 0-.5-.5H3.5a.5.5 0 0 1-.5-.5v-1.5a.5.5 0 0 1 .5-.5h2.75a.5.5 0 0 0 .5-.5V4.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 0 .5.5h2.75a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5Z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var s=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#313D3E",d:"m10.506 19.916 1.903-1.953-4.744-4.67H21.31V10.55H7.665l4.744-4.682-1.903-1.953-7.95 8z"}))};s.defaultProps={viewBox:"0 0 24 24"};var l=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M14.015 4.217 7.1 9.927 1.5 19.751l5.27.055zm.77 1.263-3.02 8.014 5.6 6.313-10.76 1.92 17.895.056Z",fill:"#2684FF"}))};l.defaultProps={viewBox:"0 0 26 26",height:"26",width:"26"};var u=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.776 3a.655.655 0 0 0-.655.76l2.781 16.886c.072.427.44.74.872.744h13.344a.655.655 0 0 0 .655-.55l2.782-17.077a.655.655 0 0 0-.655-.76L2.776 3Zm11.713 12.204h-4.26L9.076 9.18h6.445l-1.032 6.025Z",fill:"#2684FF"}))};u.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26"};var c=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M13.2 9.819c.812-.577 1.381-1.525 1.381-2.404 0-1.948-1.465-3.448-3.348-3.448H6v12.066h5.894c1.75 0 3.106-1.465 3.106-3.267 0-1.31-.72-2.43-1.8-2.947ZM8.108 6.122h2.85c.788 0 1.424.577 1.424 1.293 0 .715-.636 1.292-1.425 1.292h-2.85V6.122Zm3.324 7.756H8.108v-2.585h3.324c.789 0 1.425.577 1.425 1.292 0 .716-.636 1.293-1.425 1.293Z"}))};c.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var d=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m4.016 11-.648-.946a6.202 6.202 0 0 0-.157-.22 9.526 9.526 0 0 1-.096-.133l-.511-.7a7.413 7.413 0 0 0-.162-.214l-.102-.134-.265-.346a26.903 26.903 0 0 0-.543-.687l-.11-.136a21.767 21.767 0 0 0-.442-.54l-.278-.332a8.854 8.854 0 0 0-.192-.225L.417 6.28l-.283-.324L0 5.805l1.376-1.602c.04.027.186.132.186.132l.377.272.129.095c.08.058.16.115.237.175l.37.28c.192.142.382.292.565.436l.162.126c.27.21.503.398.714.574l.477.393c.078.064.156.127.23.194l.433.375.171-.205A50.865 50.865 0 0 1 8.18 4.023a35.163 35.163 0 0 1 2.382-2.213c.207-.174.42-.349.635-.518l.328-.255.333-.245c.072-.055.146-.107.221-.159l.117-.083c.11-.077.225-.155.341-.23.163-.11.334-.217.503-.32l1.158 1.74a11.908 11.908 0 0 0-.64.55l-.065.06c-.07.062-.139.125-.207.192l-.258.249-.26.265a21.72 21.72 0 0 0-.512.539 32.626 32.626 0 0 0-1.915 2.313 52.115 52.115 0 0 0-2.572 3.746l-.392.642-.19.322-.233.382H4.016z"}))};d.defaultProps={viewBox:"-1 -2 16 16"};var f=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};f.defaultProps={viewBox:"0 0 24 24"};var p=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m5.123 3.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}),(0,i.jsx)("path",{d:"m5.123 10.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"}))};p.defaultProps={viewBox:"0 0 24 24"};var h=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("circle",{cx:"12",cy:"12",r:"4"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var m=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M11.916 9.96 6.282 4.345 4.398 6.401l5.634 5.616-5.616 5.617 1.849 2.022 5.616-5.617 5.616 5.6 1.884-2.04L13.765 12l5.633-5.634-1.866-2.022z"}))};m.defaultProps={viewBox:"0 0 24 24"};var g=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M9 14.6 4.649 10 9 5.4 7.676 4 2 10l5.676 6L9 14.6Zm3 0 4.351-4.6L12 5.4 13.324 4 19 10l-5.676 6L12 14.6Z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var v=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M10.103 13.32 7.05 10l3.052-3.32-1.325-1.01L4.798 10l3.98 4.33 1.325-1.01ZM5 4h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm6.927 9.32 1.217.935 3.98-4.33-3.98-4.33-1.217 1.085L14.978 10l-3.05 3.32Z"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 15v-2h18v2H3Zm0-4V9h18v2H3Z"}))};y.defaultProps={viewBox:"0 0 24 24"};var b=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M22.557 11.492C21.13 10 16.849 6 12.395 6c-4.8 0-8.844 4-10.184 5.492a.798.798 0 0 0 0 1.081C3.55 14.043 7.616 18 12.395 18c4.756 0 8.8-3.914 10.162-5.405a.783.783 0 0 0 0-1.103Zm-10.14 4.692a4.152 4.152 0 0 1 0-8.303 4.152 4.152 0 0 1 4.15 4.151c0 2.292-1.88 4.152-4.15 4.152Zm0-2.79a1.362 1.362 0 1 0 0-2.724 1.362 1.362 0 0 0 0 2.725Z"}))};b.defaultProps={viewBox:"0 0 24 24"};var _=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-7l-2-2Z"}))};_.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var w=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}))};w.defaultProps={width:"32",height:"32",viewBox:"0 0 16 16"};var x=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fill:"none"},(0,i.jsx)("path",{d:"M22.616 14.971 21.52 11.5l-2.173-6.882a.37.37 0 0 0-.71 0L16.465 11.5H9.252L7.079 4.617a.37.37 0 0 0-.71 0l-2.172 6.882L3.1 14.971c-.1.317.01.664.27.86l9.487 7.094 9.487-7.094a.781.781 0 0 0 .27-.86",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5H9.251z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 9.251 11.5H4.197z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M4.197 11.499 3.1 14.971c-.1.317.01.664.27.86l9.487 7.094L4.197 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M4.197 11.499H9.25L7.08 4.617a.37.37 0 0 0-.71 0l-2.172 6.882z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M12.858 22.925 16.465 11.5h5.055z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"m21.52 11.499 1.096 3.472c.1.317-.01.664-.271.86l-9.487 7.094L21.52 11.5z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M21.52 11.499h-5.055l2.172-6.882a.37.37 0 0 1 .71 0l2.173 6.882z",fill:"#E24329"})))};x.defaultProps={width:"26",height:"26",xmlns:"http://www.w3.org/2000/svg"};var k=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5 3h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11 0h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2ZM5 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Z"}))};k.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var E=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4Zm2 0v5h6V4H5Zm0 7v5h6v-5H5Zm12.068 5v-5.695h-.026l-1.612.767-.325-1.482 2.236-1.04h1.638V16h-1.911Z"}))};E.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var S=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",fillRule:"evenodd",d:"M18.036 16h-5.532v-1.104l1.008-.912c1.704-1.524 2.532-2.4 2.556-3.312 0-.636-.384-1.14-1.284-1.14-.672 0-1.26.336-1.668.648L12.6 8.872c.588-.444 1.5-.804 2.556-.804 1.764 0 2.736 1.032 2.736 2.448 0 1.308-.948 2.352-2.076 3.36l-.72.6v.024h2.94V16ZM3 8h7v8H3V8Zm2 0v3h3V8H5Zm0 5v3h3v-3H5Z"}))};S.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var O=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M3 4h10v12H3V4zm2 0v5h6V4H5zm0 7v5h6v-5H5m12.874 5.91-3.493-4.117h6.986l-3.493 4.117z"}))};O.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var C=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 13h-2a1 1 0 0 0-1 1v6h-4v-5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v5H6v-6a1 1 0 0 0-1-1H3l9-9 9 9Z"}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};var T=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm2.487 7.205-2.34 3.232a1 1 0 0 0 .81 1.586h9.954a1 1 0 0 0 .792-1.611L13.297 9l-3.451 4.469-2.36-3.264ZM8.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var A=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,i.jsx)("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))};A.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-info-circle",viewBox:"0 0 16 16"};var P=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M8 4.012V6h2.312l-2.925 8H5v1.988h7V14H9.953l2.925-8H15V4.012z"}))};P.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var R=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"m14.683 10.315-1.256-1.253 1.253-1.254a1.767 1.767 0 0 0 0-2.503 1.765 1.765 0 0 0-2.503 0L9.67 7.81a1.766 1.766 0 0 0 0 2.504l-1.25 1.247-.625-.626a2.657 2.657 0 0 1-.002-3.756l3.135-3.136a3.543 3.543 0 0 1 5.007.009 3.544 3.544 0 0 1 .003 5.007l-1.255 1.255Zm-9.394-.626v-.003l1.252 1.249L5.29 12.19a1.767 1.767 0 0 0 0 2.505c.697.695 1.813.69 2.504 0l2.506-2.506a1.766 1.766 0 0 0 0-2.504l1.249-1.249.622.625a2.654 2.654 0 0 1 .006 3.756L9.04 15.953a3.539 3.539 0 0 1-5.004-.002 3.544 3.544 0 0 1-.003-5.008L5.29 9.69Z"}))};R.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var j=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M4.5 3h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Zm0 5h15a1.5 1.5 0 0 1 0 3h-15a1.5 1.5 0 0 1 0-3Z"}))};j.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var I=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM9 4h10v1.964H9V4Zm0 5h10v2H9V9Zm0 5h10v2H9v-2Z"}))};I.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var M=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M20.014 4.023v2h-11v-2h11Zm0 5v2h-11v-2h11Zm0 5v2h-11v-2h11ZM3.604 8.985V4.23h-.018l-1.095.545-.22-1.053 1.518-.738h1.113v6H3.604Zm2.458 7.997h-4v-.835l.73-.69c1.231-1.152 1.83-1.814 1.847-2.503 0-.481-.277-.862-.928-.862-.486 0-.911.254-1.206.49l-.373-.99c.425-.335 1.084-.607 1.848-.607 1.275 0 1.978.78 1.978 1.85 0 .99-.685 1.779-1.5 2.54l-.522.455v.018h2.126v1.134Z"}))};M.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var L=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M1 17V8h2.75l2.75 3.309L9.25 8H12v9H9.25v-5.162l-2.75 3.31-2.75-3.31V17H1Zm18 0-4-4.368h2.667V8h2.666v4.632H23L19 17Z"}))};L.defaultProps={viewBox:"0 0 24 24"};var D=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25V4.75C21 3.788 20.212 3 19.25 3H8.75C7.787 3 7 3.788 7 4.75v10.5c0 .962.787 1.75 1.75 1.75h10.5c.962 0 1.75-.788 1.75-1.75Zm-9.641-3.773 1.787 2.394 2.615-3.277 3.522 4.417H8.717l2.642-3.534ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};D.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var N=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M5.027 4.045h13.975a3 3 0 0 1 3 3v9.99a3 3 0 0 1-3 3H5.027a3 3 0 0 1-3-3v-9.99a3 3 0 0 1 3-3Zm2.874 8.48-4.114 5.504h16.455l-5.485-6.88-4.073 5.105-2.783-3.73ZM9.493 10a1.507 1.507 0 1 0 0-3.014 1.507 1.507 0 0 0 0 3.014Z"}))};N.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var F=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m149.5.372 141.421 141.42L149.5 283.215 8.079 141.793 149.5.372Z",fill:"#3FB5A0"}),(0,i.jsx)("g",{stroke:"#FFF",strokeWidth:"8"},(0,i.jsx)("path",{d:"M247.788 191.997 1.715 142.5l246.073 49.497ZM293.043 146.743 83.739 60.476l209.304 86.267ZM170.006 269.78 46.97 97.244 170.006 269.78ZM63.94 204.725 179.906 25.12 63.94 204.725ZM175.663 264.122l36.77-206.475-36.77 206.475ZM246.374 91.588 42.02 182.805l204.354-91.217Z"})),(0,i.jsx)("g",{transform:"rotate(45 19.795 213.225)",fill:"#FFF"},(0,i.jsx)("circle",{className:"no-fill",cx:"14",cy:"38",r:"14"}),(0,i.jsx)("circle",{className:"no-fill",cx:"77",cy:"12",r:"12"}),(0,i.jsx)("circle",{className:"no-fill",cx:"116",cy:"70",r:"12"}),(0,i.jsx)("circle",{className:"no-fill",cx:"35",cy:"125",r:"16"})))};F.defaultProps={viewBox:"0 0 295 284"};var B=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"nonzero",fill:"none"},(0,i.jsx)("g",{fill:"#FFF"},(0,i.jsx)("path",{d:"M10.744 26.727c0 .02-.02.04-.059.079L5.322 29.09h-.02s-.02 0-.04-.02L.946 24.775c-.02-.02-.04-.06-.02-.078.02-.02.04-.04.06-.04h.019l9.681 2.012c.04 0 .06.02.06.058Zm.513-1.347c-.02 0-.02 0 0 0L.097 23.037c-.04 0-.059-.02-.059-.04 0-.018 0-.038.02-.057l6.23-6.17c0-.02.02-.02.04-.02.039.02.039.02.06.039 0 .02 5.342 7.752 5.402 7.83.02.02.02.059 0 .078-.178.195-.356.41-.473.644-.02.019-.04.04-.06.04Zm2.327-15.717c-.02-.02-.04-.02-.02-.059 0-.02 0-.038.02-.059L22.97.213c0-.02.02-.02.04-.02s.02 0 .04.02l4.041 4.003c.02.019.02.058 0 .078l-4.87 7.556c-.02.019-.04.039-.06.039h-.019a2.398 2.398 0 0 0-2.248.41c-.02.02-.02.02-.039.02h-.02c-.256-.118-6.25-2.656-6.25-2.656Zm-.572 14.291-5.6-8.18c-.02-.019-.02-.058 0-.078l5.028-4.998c0-.02.02-.02.04-.02h.02c0 .02 5.934 2.519 6.605 2.812.019.02.04.038.04.078a2.298 2.298 0 0 0 .592 2.128c.018.02.018.06-.001.078l-5.284 8.2c-.02.02-.04.04-.06.04h-.02a2.64 2.64 0 0 0-.67-.098c-.198 0-.414.038-.611.078h-.02c-.02 0-.039-.02-.06-.04Zm1.834 5.096 10.45 15.19c.02.02.02.059 0 .079l-2.287 2.284c0 .02-.02.02-.04.02 0 0-.02 0-.04-.02L9.878 33.658c-.02-.019-.02-.058 0-.078l.02-.02 2.84-4.412c.019-.019.039-.039.058-.039h.02c.295.098.572.137.867.137.375 0 .73-.079 1.085-.234h.02c.02 0 .04.02.059.038Zm-3.234-.76c.02.018.02.038.02.038L8.93 32.525c-.02.02-.04.04-.058.04 0 0-.02 0-.04-.02l-2.386-2.362c-.02-.02-.02-.04-.02-.058 0-.02.02-.04.04-.04l4.89-2.089h.02c.019 0 .039.02.058.039.06.098.119.176.178.255Zm4.752-1.895c0-.156-.04-.293-.06-.449 0-.04 0-.059.04-.077l14.02-5.995h.02s.019 0 .039.02c.098.097.177.156.256.214.04 0 .04.04.04.06l-1.223 7.515c0 .04-.02.06-.06.06-.67.038-1.262.43-1.596 1.015-.02.019-.04.04-.06.04h-.02l-11.337-2.344c-.04 0-.06-.02-.06-.059Zm12.442 5.175c.04.018.04.058 0 .058L27.03 42.56c0 .02-.02.02-.02.04l-.631.624c0 .02-.02.02-.039.02-.02 0-.02 0-.04-.02l-10.41-15.072c-.02-.02-.02-.06 0-.078.06-.079.098-.157.158-.254.019-.02.039-.04.058-.04h.02l11.436 2.363c.04.02.06.04.06.058a2.016 2.016 0 0 0 1.183 1.368Zm8.616.625c.02 0 .04.018.04.077 0 .02 0 .04-.02.058l-8.557 8.494c0 .02-.02.02-.04.02h-.04c-.02-.02-.039-.04-.039-.079l1.48-9.098c0-.02.019-.059.038-.059a2.12 2.12 0 0 0 .888-.664c.019 0 .04-.019.06-.019h.019l6.171 1.27Zm-7.65-14.175c.02.019.04.038.04.077-.02.098-.04.215-.04.332v.176c0 .02-.02.039-.04.058l-13.94 5.955h-.02c-.02 0-.04 0-.059-.018-.02-.02-.02-.06 0-.08l5.226-8.102c.019-.02.039-.039.058-.039h.02c.138.02.257.039.375.039.789 0 1.518-.39 1.952-1.054.02-.02.04-.039.059-.039h.02l6.348 2.695Zm15.38 6.52c.019.02.019.04.019.06 0 .018 0 .038-.02.058l-6.428 6.384c0 .02-.019.02-.04.02h-.018l-7.02-1.465c-.04 0-.06-.02-.06-.058a1.96 1.96 0 0 0-.749-1.367c-.02-.02-.02-.04-.02-.059l1.243-7.634c0-.038.04-.059.059-.059a1.976 1.976 0 0 0 1.341-.78c.02-.02.04-.02.06-.02h.019l11.614 4.92Zm1.202-1.171c.04.02.04.078 0 .078l-.04.039c0 .02-.02.02-.039.02h-.02L34.15 18.37c-.02 0-.04-.038-.04-.058 0-.019.02-.04.04-.058l4.91-2.09h.02s.02 0 .039.02l7.236 7.185Zm-23.03-10.563c-.02-.02-.02-.058 0-.098l4.752-7.38c0-.019.02-.038.04-.038s.02 0 .039.02l4.22 4.197c.02.02.02.038.02.059l-1.105 6.852c0 .04-.02.059-.04.059a2.084 2.084 0 0 0-.69.351c0 .02-.019.02-.039.02h-.02l-6.743-2.87c-.02-.02-.04-.039-.04-.06a2.516 2.516 0 0 0-.394-1.112Zm9.405 3.807c-.02 0-.04-.039-.059-.058l.927-5.681c0-.04.02-.06.04-.06h.02s.018 0 .039.02l4.239 4.198c.02.02.02.04.02.059 0 .019-.02.038-.04.058l-4.535 1.933h-.02c-.02 0-.02 0-.04-.02a1.963 1.963 0 0 0-.591-.449ZM102.392 14.368h3.154v-2.81h-3.154v2.81Zm9.345-1.503c-.867.859-1.301 2.089-1.301 3.69v1.309h-2.15v2.381h2.15v11.95h3.155v-11.95h2.859v-2.381h-2.859v-1.27c0-1.581.749-2.363 2.267-2.363.454 0 .867.04 1.203.099l.08-2.52a7.316 7.316 0 0 0-1.776-.234c-1.538-.019-2.76.43-3.628 1.29Zm11.712 14.721-2.977-9.722h-3.411l4.95 14.252-.454 1.23c-.237.703-.553 1.191-.966 1.484-.394.293-1.006.449-1.795.449l-.591-.039v2.499a5.646 5.646 0 0 0 1.518.234c2.05 0 3.51-1.21 4.378-3.612l5.599-16.497h-3.372l-2.879 9.722Zm-21.057 4.608h3.154v-14.33h-3.154v14.33Zm-13.566-2.772c-.217-.235-.316-.645-.316-1.191v-8.005h2.484v-2.383H88.51v-3.475h-3.154v3.475h-2.308v2.383h2.308v8.122c0 2.733 1.222 4.1 3.647 4.1.671 0 1.36-.098 2.09-.313v-2.499c-.375.098-.75.137-1.104.137-.571.02-.947-.098-1.163-.351Zm-10.253-5.74h-6.015c.139-1.114.494-1.972 1.026-2.578.532-.624 1.243-.917 2.11-.917.867 0 1.558.273 2.05.82.493.546.77 1.366.848 2.44v.234h-.02Zm-2.879-6.092a5.973 5.973 0 0 0-3.274.937c-.986.625-1.734 1.504-2.287 2.636-.532 1.132-.808 2.401-.808 3.826v.39c0 2.129.631 3.848 1.873 5.136 1.243 1.288 2.86 1.933 4.87 1.933 1.163 0 2.228-.234 3.175-.703a5.527 5.527 0 0 0 2.247-1.991l-1.695-1.66c-.907 1.19-2.09 1.796-3.53 1.796-1.025 0-1.892-.351-2.562-1.034-.69-.683-1.065-1.62-1.164-2.812h9.188v-1.288c0-2.285-.532-4.042-1.557-5.292-1.085-1.25-2.564-1.874-4.476-1.874Zm-13.625 0c-1.695 0-3.056.645-4.101 1.913l-.1-1.66h-2.956v14.332h3.154V21.983c.632-1.172 1.578-1.757 2.84-1.757.867 0 1.498.214 1.892.663.395.43.572 1.113.572 2.012v9.274h3.155v-9.47c-.04-3.397-1.518-5.115-4.456-5.115Zm32.277 14.604h3.156V11.85h-3.156v20.344Z"})),(0,i.jsx)("path",{d:"M139.256 29.651c.803 0 1.469-.233 1.998-.701.53-.468.812-1.046.847-1.734h3.031a4.724 4.724 0 0 1-.834 2.495c-.52.772-1.226 1.383-2.117 1.833a6.31 6.31 0 0 1-2.886.675c-2.003 0-3.59-.648-4.764-1.946-1.174-1.297-1.76-3.088-1.76-5.373v-.331c0-2.18.582-3.924 1.746-5.235 1.165-1.31 2.753-1.965 4.765-1.965 1.703 0 3.09.496 4.163 1.489 1.072.992 1.634 2.296 1.687 3.91h-3.03c-.036-.82-.316-1.495-.841-2.024-.525-.53-1.194-.794-2.005-.794-1.042 0-1.845.377-2.41 1.131-.564.755-.85 1.9-.86 3.435v.516c0 1.553.28 2.711.84 3.475.561.763 1.37 1.144 2.43 1.144Zm11.105-12.017.093 1.495c1.005-1.173 2.382-1.76 4.13-1.76 1.914 0 3.224.732 3.93 2.197 1.041-1.465 2.506-2.197 4.394-2.197 1.58 0 2.755.437 3.527 1.31.773.874 1.167 2.162 1.185 3.865v9.41h-3.216v-9.317c0-.91-.199-1.575-.596-1.999-.397-.424-1.054-.635-1.972-.635-.732 0-1.33.196-1.793.589-.464.392-.788.906-.973 1.542l.013 9.82h-3.216v-9.423c-.044-1.686-.905-2.528-2.581-2.528-1.288 0-2.202.525-2.74 1.575v10.376h-3.216v-14.32h3.03Zm28.364 10.43c0-.574-.236-1.011-.708-1.311-.472-.3-1.255-.565-2.349-.794-1.094-.23-2.007-.52-2.74-.874-1.606-.776-2.409-1.901-2.409-3.375 0-1.235.52-2.268 1.562-3.097 1.041-.83 2.365-1.244 3.97-1.244 1.713 0 3.096.423 4.15 1.27 1.055.847 1.582 1.946 1.582 3.296h-3.216c0-.618-.23-1.132-.689-1.542-.459-.41-1.067-.615-1.826-.615-.706 0-1.282.163-1.727.49-.446.326-.669.763-.669 1.31 0 .494.208.878.622 1.151.415.274 1.253.55 2.515.827 1.262.278 2.252.61 2.971.993.72.384 1.253.845 1.602 1.383.348.538.523 1.191.523 1.96 0 1.287-.534 2.33-1.602 3.13-1.068.798-2.466 1.197-4.196 1.197-1.173 0-2.219-.212-3.136-.635-.918-.424-1.633-1.006-2.144-1.747-.512-.742-.768-1.54-.768-2.396h3.123c.045.759.331 1.343.86 1.754.53.41 1.232.615 2.105.615.847 0 1.491-.16 1.933-.483.44-.322.661-.743.661-1.264Z",fill:"#C9FA4B"})))};B.defaultProps={viewBox:"0 0 182 47"};var z=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("g",{fillRule:"evenodd"},(0,i.jsx)("path",{d:"M4.7 20.5H15c2.1 0 3.8-1.7 3.8-3.8v-6.4c0-.5-.4-.9-.8-.9-.5 0-1 .4-1 .9v6.4a2 2 0 0 1-2 2H4.7a2 2 0 0 1-2-2V6.2c0-1.1.8-2 2-2H11c.5 0 .8-.4.8-1 0-.4-.3-.8-.8-.8H4.7C2.6 2.4.9 4.1.9 6.2v10.5c0 2 1.7 3.8 3.8 3.8z"}),(0,i.jsx)("path",{d:"M20.9 7.2V1.7h-.1v-.2l-.1-.1-.2-.2h-.1l-.2-.2h-5.7c-.5 0-.8.3-.8.8s.3 1 .8 1H18l-8 8c-.4.3-.4.8 0 1.2.3.3.9.3 1.2 0l8-8v3.2c0 .5.4.9.9.9s.8-.4.9-1z"})))};z.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"};var U=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"m13.366 3 5.625 5.493L19 19.169C19 20.176 18.156 21 17.125 21H5.865C4.836 21 4 20.176 4 19.17V4.83C4 3.825 4.834 3 5.866 3h7.5ZM6.94 12.11a.94.94 0 1 0 0 1.88h9.12a.94.94 0 0 0 0-1.88H6.94Zm0 3.89a.94.94 0 1 0 0 1.88h9.12a.94.94 0 1 0 0-1.88H6.94Zm5.073-6h5.139l-5.14-5.053V10Z"}))};U.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M3 8h1.98v11.044a1 1 0 0 0 1 1H17V22H4.75C3.788 22 3 21.212 3 20.25V8Zm6-6h6.074L20 7.041V16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm.94 8.11a.94.94 0 1 0 0 1.88h7.12a.94.94 0 0 0 0-1.88H9.94Zm0 3.89a.94.94 0 1 0 0 1.88h7.12a.94.94 0 1 0 0-1.88H9.94Zm4.054-6.124h4.344l-4.344-4.342v4.342Z"}))};q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var W=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M21 15.25c0 .962-.788 1.75-1.75 1.75H8.75C7.787 17 7 16.212 7 15.25V4.75C7 3.788 7.787 3 8.75 3h10.5c.962 0 1.75.788 1.75 1.75v10.5ZM9 10v2h10v-2H9Zm0-4v2h10V6H9ZM3 7v12.25c0 .962.788 1.75 1.75 1.75H17v-1.956H5.98a1 1 0 0 1-1-1V7H3Z"}))};W.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var H=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#7A8291",d:"M4.995 14.954h2.986l1.991-3.982V5H4v5.972h2.986l-1.99 3.982Zm7.963 0h2.986l1.991-3.982V5h-5.972v5.972h2.986l-1.99 3.982Z"}))};H.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20"};var $=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M13.3 1A9.8 9.8 0 0 0 1.1 7a9.4 9.4 0 0 0 6.2 12c5 1.5 10.3-1 12.1-5.8.2-.6-.1-1.3-.7-1.5-.7-.2-1.4.1-1.6.7a7.3 7.3 0 0 1-9 4.3 7 7 0 0 1-4.7-8.9 7.3 7.3 0 0 1 12-2.8L13 7.4c-.5.5-.3.8.3.8h5.5c.7 0 1.2-.5 1.2-1.1V1.8c0-.7-.4-.8-.9-.4l-2 2c-1-1-2.3-1.9-3.8-2.4z",fillRule:"evenodd"}))};$.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};var V=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M12.809 8.182a.898.898 0 1 1-1.798 0V4.058L8.576 6.494a.898.898 0 1 1-1.271-1.271l3.97-3.97a.925.925 0 0 1 1.27 0l4.026 4.026a.898.898 0 1 1-1.27 1.27l-2.492-2.49v4.123Zm.015 11.75 2.435-2.436a.899.899 0 1 1 1.27 1.271l-3.969 3.97a.896.896 0 0 1-1.27 0L7.264 18.71a.898.898 0 1 1 1.27-1.271l2.492 2.491v-4.124a.898.898 0 1 1 1.798 0v4.124Zm-.902-6.479a1.516 1.516 0 1 1 0-3.032 1.516 1.516 0 0 1 0 3.032Z"}))};V.defaultProps={viewBox:"0 0 24 24"};var G=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M20.526 18.236a1.619 1.619 0 1 1-2.29 2.29l-3.341-3.342c-.237-.237-.666-.296-.964-.137 0 0 .04-.01-.22.108a6.881 6.881 0 1 1 3.44-3.436c-.117.258-.105.214-.105.214a.86.86 0 0 0 .138.962l3.342 3.341Zm-9.677-3.466a3.921 3.921 0 1 0 0-7.842 3.921 3.921 0 0 0 0 7.842Z"}))};G.defaultProps={viewBox:"0 0 24 24"};var K=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M18.887 12.874c.037-.287.065-.575.065-.88 0-.306-.028-.594-.065-.881l1.954-1.484a.445.445 0 0 0 .11-.575L19.1 5.944c-.111-.198-.361-.27-.565-.198l-2.306.9c-.482-.36-1-.657-1.565-.882l-.352-2.382a.448.448 0 0 0-.454-.377h-3.704a.448.448 0 0 0-.454.377l-.352 2.382a7.17 7.17 0 0 0-1.565.881l-2.306-.899a.458.458 0 0 0-.565.198L3.06 9.054a.435.435 0 0 0 .111.575l1.954 1.484a6.923 6.923 0 0 0-.064.88c0 .297.027.594.064.881l-1.954 1.484a.445.445 0 0 0-.11.575l1.851 3.11c.112.198.362.27.565.198l2.306-.9c.482.36 1 .657 1.565.882l.352 2.382a.448.448 0 0 0 .454.377h3.704a.448.448 0 0 0 .454-.377l.352-2.382a7.17 7.17 0 0 0 1.565-.881l2.306.899c.213.08.454 0 .565-.198l1.852-3.11a.445.445 0 0 0-.111-.575l-1.954-1.484Zm-6.878 2.132a3.017 3.017 0 0 1-3.013-3.013 3.017 3.017 0 0 1 3.013-3.014 3.017 3.017 0 0 1 3.014 3.014 3.017 3.017 0 0 1-3.014 3.013Z"}))};K.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Y=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{fill:"#1E2532",fillRule:"nonzero",d:"M16.5 18c-3.025 0-5.5-2.634-5.5-5.854v-.292C11 8.634 13.475 6 16.5 6S22 8.634 22 11.854v.292C22 15.366 19.525 18 16.5 18ZM16 29c-3.738 0-7.192-1.689-9.39-4.335-.908-1.064-.798-2.7.302-3.601C7.736 20.409 8.753 20 9.88 20h12.645c.742 0 1.43.191 2.062.491 1.43.737 1.869 2.592.88 3.874C23.24 27.175 19.875 29 16 29Z"}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};var Q=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M10 4h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm7 0h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM3 4h3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z"}))};Q.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var X=function(e){return(0,i.jsx)("svg",e,(0,i.jsx)("path",{d:"M2.975 7.004c.002-.477.412-.947.897-.948h9.451l-.816 1.896H3.872c-.485 0-.895-.47-.897-.948Zm.017 8.97c.001.478.395 1.063.88 1.064H8.57c.01-.58.1-1.425.205-1.996H3.872c-.485.001-.879.524-.88 1.001v-.068Zm7.921-5.008.762-1.997H3.872c-.486 0-.933.521-.933.999 0 .477.447.998.933.998h7.041ZM2.95 13.041c0 .477.437.965.922.966H9.18c.096-.258.301-.716.419-.968l.445-.964H3.872c-.485 0-.921.489-.922.966Zm17.099-5.908.395-.849a2.296 2.296 0 0 0-.176-2.374 2.39 2.39 0 0 0-2.207-.984 2.368 2.368 0 0 0-1.936 1.433l-4.712 10.19a9.619 9.619 0 0 0-.699 5.953.608.608 0 0 0 .35.435c.182.081.392.071.564-.027a9.846 9.846 0 0 0 4.104-4.436l3.628-7.843.689-1.498Z"}))};X.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};var Z={add:o,"add-with":a,arrow:s,azure:l,bitbucket:u,bold:c,check:d,chevron:f,"chevron-double":p,circle:h,close:m,code:g,"code-block":v,"drag-handle":y,eye:b,folder:_,github:w,gitlab:x,grid:k,h1:E,h2:S,hOptions:O,home:C,image:T,"info-circle":A,italic:P,link:R,list:j,"list-bulleted":I,"list-numbered":M,markdown:L,media:D,"media-alt":N,netlify:F,"netlify-cms":B,"new-tab":z,page:U,pages:q,"pages-alt":W,quote:H,refresh:$,scroll:V,search:G,settings:K,user:Y,workflow:Q,write:X};t.default=Z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=(l(n(0)),l(n(2))),o=l(n(188)),a=n(132),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e191f7z70",label:"TopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;"),c=(0,r.default)("button",{target:"e191f7z71",label:"TopBarButton"})(a.buttons.button,";color:",a.colors.controlLabel,";background:transparent;font-size:16px;line-height:1;padding:0;width:32px;text-align:center;cursor:pointer;display:flex;justify-content:center;align-items:center;"),d=c.withComponent("span",{target:"e191f7z74",label:"TopBarButtonSpan"}),f=(0,r.default)(d,{target:"e191f7z72",label:"DragIconContainer"})({name:"8p0rle",styles:"width:100%;cursor:move;"});function p(e){let{dragHandleHOC:t}=e;const n=t(()=>(0,s.jsx)(f,null,(0,s.jsx)(o.default,{type:"drag-handle",size:"small"})));return(0,s.jsx)(n,null)}function h(e){let{className:t,collapsed:n,onCollapseToggle:r,onRemove:i,dragHandleHOC:a}=e;return(0,s.jsx)(u,{className:t},r?(0,s.jsx)(c,{onClick:r},(0,s.jsx)(o.default,{type:"chevron",size:"small",direction:n?"right":"down"})):null,a?(0,s.jsx)(p,{dragHandleHOC:a}):null,i?(0,s.jsx)(c,{onClick:i},(0,s.jsx)(o.default,{type:"close",size:"small"})):null)}h.propTypes={className:i.default.string,collapsed:i.default.bool,onCollapseToggle:i.default.func,onRemove:i.default.func};var m=(0,r.default)(h,{target:"e191f7z73",label:"StyledListItemTopBar"})("display:flex;justify-content:space-between;height:26px;border-radius:",a.lengths.borderRadius," ",a.lengths.borderRadius," 0 0;position:relative;");t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Loader=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=n(9),s=n(1929),l=n(132);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={disabled:{name:"1ob4o9f-disabled",styles:"display:none;;label:disabled;"},active:{name:"1exmk8-active",styles:"display:block;;label:active;"},enter:{name:"1rafamr-enter",styles:"opacity:0.01;;label:enter;"},enterActive:{name:"halfu0-enterActive",styles:"opacity:1;transition:opacity 500ms ease-in;;label:enterActive;"},exit:{name:"1p8uuwp-exit",styles:"opacity:1;;label:exit;"},exitActive:{name:"1istkwr-exitActive",styles:"opacity:0.01;transition:opacity 300ms ease-in;;label:exitActive;"}},f={loader:a.keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`},p=(0,r.default)("div",{target:"e1rlflmg0",label:"LoaderText"})({name:"8sb4j5",styles:"width:auto !important;height:auto !important;text-align:center;color:#767676;margin-top:55px;line-height:35px;"}),h=(0,r.default)("div",{target:"e1rlflmg1",label:"LoaderItem"})({name:"aprmr",styles:"position:absolute;white-space:nowrap;transform:translateX(-50%);"});class m extends i.default.Component{constructor(){super(...arguments),c(this,"state",{currentItem:0}),c(this,"setAnimation",()=>{if(this.interval)return;const{children:e}=this.props;this.interval=setInterval(()=>{const t=this.state.currentItem===e.length-1?0:this.state.currentItem+1;this.setState({currentItem:t})},5e3)}),c(this,"renderChild",()=>{const{children:e}=this.props,{currentItem:t}=this.state;return e?"string"==typeof e?(0,a.jsx)(p,null,e):Array.isArray(e)?(this.setAnimation(),(0,a.jsx)(p,null,(0,a.jsx)(s.CSSTransition,{className:{enter:d.enter,enterActive:d.enterActive,exit:d.exit,exitActive:d.exitActive},timeout:500},(0,a.jsx)(h,{key:t},e[t])))):void 0:null})}componentWillUnmount(){this.interval&&clearInterval(this.interval)}render(){const{className:e}=this.props;return(0,a.jsx)("div",{className:e},this.renderChild())}}t.Loader=m,c(m,"propTypes",{children:o.default.node,className:o.default.string});var g=(0,r.default)(m,{target:"e1rlflmg2",label:"StyledLoader"})("display:",e=>e.active?"block":"none",";position:absolute;top:50%;left:50%;margin:0;text-align:center;z-index:",l.zIndex.zIndex1000,";transform:translateX(-50%) translateY(-50%);&:before,&:after{content:'';position:absolute;top:0%;left:50%;width:2.2857rem;height:2.2857rem;margin:0 0 0 -1.1429rem;border-radius:500rem;border-style:solid;border-width:0.2em;}&:before{border-color:rgba(0,0,0,0.1);}&:after{animation:",f.loader," 0.6s linear;animation-iteration-count:infinite;border-color:",l.colors.active," transparent transparent;box-shadow:0 0 0 1px transparent;}");t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(21))&&r.__esModule?r:{default:r},o=n(132);const a={default:{background:o.colors.textFieldBorder,text:o.colors.controlLabel},active:{background:o.colors.active,text:o.colors.textLight},error:{background:o.colors.errorText,text:o.colorsRaw.white}};function s(e){let{isActive:t,hasErrors:n}=e;return n?a.error:t?a.active:a.default}var l=(0,i.default)("label",{target:"e1j7dp4t0",label:"FieldLabel"})(o.text.fieldLabel,";color:",e=>s(e).text,";background-color:",e=>s(e).background,";display:inline-block;border:0;border-radius:3px 3px 0 0;padding:3px 6px 2px;margin:0;transition:all ",o.transitions.main,";position:relative;&:before,&:after{content:'';display:block;position:absolute;top:0;right:-4px;height:100%;width:4px;background-color:inherit;}&:after{border-bottom-left-radius:3px;background-color:#fff;}");t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(188))),o=n(132),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l={small:"28px",large:"40px"},u=(0,r.default)("button",{target:"e32dhqu0",label:"ButtonRound"})(o.buttons.button,";",o.shadows.dropMiddle,";background-color:",o.colorsRaw.white,";color:",e=>o.colors[e.isActive?"active":"inactive"],";border-radius:32px;display:flex;justify-content:center;align-items:center;width:",e=>l[e.size],";height:",e=>l[e.size],";padding:0;");var c=function(e){let{size:t,isActive:n,type:r,onClick:o,className:s,title:l}=e;return(0,a.jsx)(u,{size:t,isActive:n,className:s,onClick:o,title:l},(0,a.jsx)(i.default,{type:r,size:t}))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ToggleHandle=t.ToggleContainer=t.ToggleBackground=void 0;var r=l(n(21)),i=(l(n(0)),l(n(2))),o=n(9),a=l(n(873)),s=n(132);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c=(0,r.default)("button",{target:"e1keeugh0",label:"ToggleContainer"})({name:"x59i5d",styles:"display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:20px;cursor:pointer;border:none;padding:0;margin:0;background:transparent;"});t.ToggleContainer=c;var d={name:"11uzlui-ToggleHandle",styles:"transform:translateX(20px);;label:ToggleHandle;"};const f=(0,r.default)("span",{target:"e1keeugh1",label:"ToggleHandle"})(s.shadows.dropDeep,";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background-color:",s.colorsRaw.white,";transition:transform ",s.transitions.main,";",e=>e.isActive&&d,";");t.ToggleHandle=f;const p=(0,r.default)("span",{target:"e1keeugh2",label:"ToggleBackground"})("width:34px;height:14px;border-radius:10px;background-color:",s.colors.active,";");function h(e){let{id:t,active:n,onChange:r,onFocus:i,onBlur:s,className:l,Container:d=c,Background:h=p,Handle:m=f}=e;return(0,o.jsx)(a.default,{on:n,onToggle:r},e=>{let{on:n,getTogglerProps:r}=e;return(0,o.jsx)(d,u({id:t,onFocus:i,onBlur:s,className:l},r({role:"switch","aria-checked":n.toString(),"aria-expanded":null})),(0,o.jsx)(h,{isActive:n}),(0,o.jsx)(m,{isActive:n}))})}t.ToggleBackground=p,h.propTypes={id:i.default.string,active:i.default.bool,onChange:i.default.func,onFocus:i.default.func,onBlur:i.default.func,className:i.default.string,Container:i.default.func,Background:i.default.func,Handle:i.default.func};const m=(0,r.default)(h,{target:"e1keeugh3",label:"StyledToggle"})("");t.default=m},function(e,t,n){"use strict";n.r(t);var r=n(0),i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.forEach((function(e){return e&&e.apply(void 0,n)}))}},l=function(){},u=function(e){function t(){var n,r;i(this,t);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return n=r=a(this,e.call.apply(e,[this].concat(c))),r.state={on:r.getOn({on:r.props.defaultOn})},r.getTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({"aria-expanded":Boolean(r.getOn()),tabIndex:0},e,{onClick:s(e.onClick,r.toggle)})},r.toggleKeys=["Enter"," "],r.getInputTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.getTogglerProps(o({},e,{onKeyUp:s(e.onKeyUp,(function(e){"Enter"===e.key&&r.toggle()}))}))},r.getElementTogglerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.getTogglerProps(o({},e,{onKeyUp:s(e.onKeyUp,(function(e){r.toggleKeys.indexOf(e.key)>-1&&r.toggle()}))}))},r.setOnState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!r.getOn(),t=r.getOn()===e?l:function(){r.props.onToggle(e,r.getTogglerStateAndHelpers())};r.setState({on:e},t)},r.setOn=r.setOnState.bind(r,!0),r.setOff=r.setOnState.bind(r,!1),r.toggle=r.setOnState.bind(r,void 0),a(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props;return this.isOnControlled()?t.on:e.on},t.prototype.isOnControlled=function(){return void 0!==this.props.on},t.prototype.getTogglerStateAndHelpers=function(){return{on:this.getOn(),getTogglerProps:this.getTogglerProps,getInputTogglerProps:this.getInputTogglerProps,getElementTogglerProps:this.getElementTogglerProps,setOn:this.setOn,setOff:this.setOff,toggle:this.toggle}},t.prototype.componentWillReceiveProps=function(e){var t=e.on;t!==this.props.on&&t!==this.state.on&&this.setOnState(t)},t.prototype.render=function(){var e;return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.getTogglerStateAndHelpers())},t}(r.Component);u.defaultProps={defaultOn:!1,onToggle:l},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=(u(n(0)),u(n(2))),o=u(n(188)),a=n(132),s=u(n(514)),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("section",{target:"e4hp3ji0",label:"StyledAuthenticationPage"})({name:"1ul3gz4",styles:"display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;height:100vh;"}),d=(0,r.default)("span",{target:"e4hp3ji1",label:"CustomIconWrapper"})({name:"pxf9nc",styles:"width:300px;height:200px;margin-top:-150px;"}),f=(0,r.default)(o.default,{target:"e4hp3ji2",label:"NetlifyLogoIcon"})({name:"11nl61t",styles:"color:#c4c6d2;margin-top:-300px;"}),p=(0,r.default)(o.default,{target:"e4hp3ji3",label:"NetlifyCreditIcon"})({name:"dnh8wx",styles:"color:#c4c6d2;position:absolute;bottom:10px;"});function h(e){let{url:t}=e;return(0,l.jsx)(d,null,(0,l.jsx)("img",{src:t,alt:"Logo"}))}const m=(0,r.default)("button",{target:"e4hp3ji4",label:"LoginButton"})(a.buttons.button,";",a.shadows.dropDeep,";",a.buttons.default,";",a.buttons.gray,";&[disabled]{",a.buttons.disabled,";}padding:0 12px;margin-top:-40px;display:flex;align-items:center;position:relative;"),g=(0,r.default)("button",{target:"e4hp3ji5",label:"TextButton"})(a.buttons.button,";",a.buttons.default,";",a.buttons.grayText,";margin-top:40px;display:flex;align-items:center;position:relative;");function v(e){let{onLogin:t,loginDisabled:n,loginErrorMessage:r,renderButtonContent:i,renderPageContent:o,logoUrl:a,siteUrl:u,t:d}=e;return(0,l.jsx)(c,null,function(e){return e?(0,l.jsx)(h,{url:e}):(0,l.jsx)(f,{size:"300px",type:"netlify-cms"})}(a),r?(0,l.jsx)("p",null,r):null,o?o({LoginButton:m,TextButton:g,showAbortButton:!u}):null,i?(0,l.jsx)(m,{disabled:n,onClick:t},i()):null,u&&(0,l.jsx)(s.default,{href:u,t:d}),a?(0,l.jsx)(p,{size:"100px",type:"netlify-cms"}):null)}v.propTypes={onLogin:i.default.func,logoUrl:i.default.string,siteUrl:i.default.string,loginDisabled:i.default.bool,loginErrorMessage:i.default.node,renderButtonContent:i.default.func,renderPageContent:i.default.func,t:i.default.func.isRequired};var y=v;t.default=y},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(0,((r=n(21))&&r.__esModule?r:{default:r}).default)("div",{target:"e5ld4zj0",label:"WidgetPreviewContainer"})({name:"1wfkwts",styles:"margin:15px 2px;"});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(21)),i=f(n(0)),o=f(n(2)),a=n(9),s=f(n(33)),l=f(n(188)),u=n(132),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(492));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}const p=(0,r.default)("div",{target:"e1yavck40",label:"TopBarContainer"})("align-items:center;background-color:",u.colors.textFieldBorder,";display:flex;justify-content:space-between;margin:0 -14px;padding:13px;");var h={name:"ekkxr4-ExpandButtonContainer",styles:"display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1;;label:ExpandButtonContainer;"};const m=(0,r.default)("div",{target:"e1yavck41",label:"ExpandButtonContainer"})(e=>e.hasHeading&&h,";"),g=(0,r.default)("button",{target:"e1yavck42",label:"ExpandButton"})(u.buttons.button,";padding:4px;background-color:transparent;color:inherit;&:last-of-type{margin-right:4px;}"),v=(0,r.default)("button",{target:"e1yavck43",label:"AddButton"})(u.buttons.button," ",u.buttons.widget," ",l.default,"{margin-left:6px;}");class y extends i.default.Component{renderAddUI(){return this.props.allowAdd?this.props.types&&this.props.types.size>0?this.renderTypesDropdown(this.props.types):this.renderAddButton():null}renderTypesDropdown(e){return(0,a.jsx)(c.default,{renderButton:()=>(0,a.jsx)(c.StyledDropdownButton,null,this.props.t("editor.editorWidgets.list.addType",{item:this.props.label}))},e.map((e,t)=>(0,a.jsx)(c.DropdownItem,{key:t,label:e.get("label",e.get("name")),onClick:()=>this.props.onAddType(e.get("name"))})))}renderAddButton(){return(0,a.jsx)(v,{onClick:this.props.onAdd},this.props.t("editor.editorWidgets.list.add",{item:this.props.label}),(0,a.jsx)(l.default,{type:"add",size:"xsmall"}))}render(){const{onCollapseToggle:e,collapsed:t,heading:n=null}=this.props;return(0,a.jsx)(p,null,(0,a.jsx)(m,{hasHeading:!!n},(0,a.jsx)(g,{onClick:e,"data-testid":"expand-button"},(0,a.jsx)(l.default,{type:"chevron",direction:t?"right":"down",size:"small"})),n),this.renderAddUI())}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(y,"propTypes",{allowAdd:o.default.bool,types:s.default.list,onAdd:o.default.func,onAddType:o.default.func,onCollapseToggle:o.default.func,collapsed:o.default.bool,heading:o.default.node,label:o.default.string,t:o.default.func.isRequired});var b=y;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(0)),i=s(n(2)),o=s(n(878)),a=s(n(387));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.locale,n=e.messages,i=e.allowMissing,s=e.onMissingKey,l=e.interpolation,u=e.pluralRules,c=e.children,d=r.default.useMemo((function(){var e=new o.default({locale:t,phrases:n,allowMissing:i,onMissingKey:s,interpolation:l,pluralRules:u}),r=e.t.bind(e);return r._polyglot=e,r}),[t,n,i,s,l,u]);return r.default.createElement(a.default.Provider,{value:d},r.default.Children.only(c))}l.propTypes={locale:i.default.string.isRequired,messages:i.default.object.isRequired,allowMissing:i.default.bool,onMissingKey:i.default.func,interpolation:i.default.shape({suffix:i.default.string,prefix:i.default.string}),pluralRules:i.default.shape({pluralTypes:i.default.object,pluralTypeToLanguages:i.default.object}),children:i.default.element.isRequired},l.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}},function(e,t,n){"use strict";var r=n(879),i=n(912),o=n(528),a=n(518),s=n(914),l=function(e){o(!1,e)},u=String.prototype.replace,c=String.prototype.split,d=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:d,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function p(e,t){var n,o,a=(n=e.pluralTypeToLanguages,o={},r(i(n),(function(e){var t=e[0],n=e[1];r(n,(function(e){o[e]=t}))})),o);return a[t]||a[c.call(t,/-/,1)[0]]||a.en}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var m,g=(m={},function(e,t){var n=m[t];return n&&!e.pluralTypes[n]&&(n=null,m[t]=n),n||(n=p(e,t))&&(m[t]=n),n}),v=/%\{(.*?)\}/g;function y(e,t,n,r,i){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var o=e,l=r||v,d="number"==typeof t?{smart_count:t}:t;if(null!=d.smart_count&&e){var p=i||f,h=c.call(e,"||||"),m=function(e,t,n){return e.pluralTypes[t](n)}(p,g(p,n||"en"),d.smart_count);o=s(h[m]||h[0])}return o=u.call(o,l,(function(e,t){return a(d,t)&&null!=d[t]?d[t]:e}))}function b(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?y:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||l,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if("||||"===t||"||||"===n)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(h(t)+"(.*?)"+h(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}b.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},b.prototype.extend=function(e,t){r(i(e||{}),(function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.extend(r,i):this.phrases[i]=r}),this)},b.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:r(i(e||{}),(function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.unset(r,i):delete this.phrases[i]}),this)},b.prototype.clear=function(){this.phrases={}},b.prototype.replace=function(e){this.clear(),this.extend(e)},b.prototype.t=function(e,t){var n,r,i=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof i._)n=i._;else if(this.onMissingKey){r=(0,this.onMissingKey)(e,i,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=y(n,i,this.currentLocale,this.tokenRegex,this.pluralRules)),r},b.prototype.has=function(e){return a(this.phrases,e)},b.transformPhrase=function(e,t,n){return y(e,t,n)},e.exports=b},function(e,t,n){"use strict";var r=n(215),i=n(295),o=n(164),a=n(296),s=n(519),l=n(525),u=l(),c=n(911),d=o("Array.prototype.slice"),f=i.apply(u),p=function(e,t){return a(e),f(e,d(arguments,1))};r(p,{getPolyfill:l,implementation:s,shim:c}),e.exports=p},function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(515),o=Object.keys,a=o?function(e){return o(e)}:n(881),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(515),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||f.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=r},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},l=Math.max(0,t.length-a.length),u=[],c=0;c<l;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},function(e,t,n){"use strict";var r=n(96)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(96),i=n(164),o=r("%TypeError%"),a=n(885),s=r("%Reflect.apply%",!0)||i("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,n)}},function(e,t,n){"use strict";var r=n(96)("%Array%"),i=!r.isArray&&n(164)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(887).custom,D=L&&z(L)?L:null;function N(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return!("[object Array]"!==W(e)||R&&"object"==typeof e&&R in e)}function z(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(q(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!q(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(y.call(t,0,n.maxStringLength),n)+i}return N(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return m?M(t,_):_}if("bigint"==typeof t){var x=String(t)+"n";return m?M(t,x):x}var O=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var T=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function L(t,n,o){if(n&&(i=S.call(i)).push(n),o){var a={depth:s.depth};return q(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var U=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=Q(t,L);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(X.length>0?" { "+E.call(X,", ")+" }":"")}if(z(t)){var Z=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||P?Z:V(Z)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var J="<"+w.call(String(t.nodeName)),ee=t.attributes||[],te=0;te<ee.length;te++)J+=" "+ee[te].name+"="+N(F(ee[te].value),"double",s);return J+=">",t.childNodes&&t.childNodes.length&&(J+="..."),J+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ne=Q(t,L);return T&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(ne)?"["+Y(ne,T)+"]":"[ "+E.call(ne,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||R&&"object"==typeof e&&R in e)}(t)){var re=Q(t,L);return"cause"in t&&!j.call(t,"cause")?"{ ["+String(t)+"] "+E.call(k.call("[cause]: "+L(t.cause),re),", ")+" }":0===re.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(re,", ")+" }"}if("object"==typeof t&&l){if(D&&"function"==typeof t[D])return t[D]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return a.call(t,(function(e,n){ie.push(L(n,t,!0)+" => "+L(e,t))})),K("Map",o.call(t),ie,T)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var oe=[];return c.call(t,(function(e){oe.push(L(e,t))})),K("Set",u.call(t),oe,T)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return G("WeakRef");if(function(e){return!("[object Number]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return V(L(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return V(L(C.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return V(h.call(t));if(function(e){return!("[object String]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return V(L(String(t)));if(!function(e){return!("[object Date]"!==W(e)||R&&"object"==typeof e&&R in e)}(t)&&!function(e){return!("[object RegExp]"!==W(e)||R&&"object"==typeof e&&R in e)}(t)){var ae=Q(t,L),se=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ue=!se&&R&&Object(t)===t&&R in t?y.call(W(t),8,-1):le?"Object":"",ce=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ue||le?"["+E.call(k.call([],ue||[],le||[]),": ")+"] ":"");return 0===ae.length?ce+"{}":T?ce+"{"+Y(ae,T)+"}":ce+"{ "+E.call(ae,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return U.call(e,t)}function W(e){return m.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function V(e){return"Object("+e+")"}function G(e){return e+" { ? }"}function K(e,t,n,r){return e+" ("+t+") {"+(r?Y(n,r):E.call(n,", "))+"}"}function Y(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=q(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(P){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)q(e,l)&&(n&&String(Number(l))===l&&l<e.length||P&&o["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var u=0;u<a.length;u++)j.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},function(e,t){},function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},function(e,t,n){"use strict";var r=n(96)("%TypeError%"),i=n(521),o=n(386);e.exports=function(e,t){if("Object"!==o(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";e.exports=n(522)},function(e,t,n){"use strict";var r=n(96)("%TypeError%"),i=n(520),o=n(892),a=n(386);e.exports=function(e){if("Object"!==a(e))throw new r("Assertion failed: `obj` must be an Object");return o(i(e,"length"))}},function(e,t,n){"use strict";var r=n(893),i=n(894);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(96),i=r("%Math%"),o=r("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},function(e,t,n){"use strict";var r=n(895),i=n(896),o=n(897),a=n(905),s=n(906),l=n(907);e.exports=function(e){var t=o(e);return a(t)||0===t?0:s(t)?l(t)*i(r(t)):t}},function(e,t,n){"use strict";var r=n(96)("%Math.abs%");e.exports=function(e){return r(e)}},function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},function(e,t,n){"use strict";var r=n(96),i=r("%TypeError%"),o=r("%Number%"),a=r("%RegExp%"),s=r("%parseInt%"),l=n(164),u=n(898),c=n(899),d=l("String.prototype.slice"),f=u(/^0b[01]+$/i),p=u(/^0o[0-7]+$/i),h=u(/^[-+]0x[0-9a-f]+$/i),m=u(new a("["+["…","","￾"].join("")+"]","g")),g=["\t\n\v\f\r   "," \u2028","\u2029\ufeff"].join(""),v=new RegExp("(^["+g+"]+)|(["+g+"]+$)","g"),y=l("String.prototype.replace"),b=n(900);e.exports=function e(t){var n=c(t)?t:b(t,o);if("symbol"==typeof n)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(f(n))return e(s(d(n,2),2));if(p(n))return e(s(d(n,2),8));if(m(n)||h(n))return NaN;var r=function(e){return y(e,v,"")}(n);if(r!==n)return e(r)}return o(n)}},function(e,t,n){"use strict";var r=n(164)("RegExp.prototype.exec");e.exports=function(e){return function(t){return null!==r(e,t)}}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(901);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=n(902),o=n(522),a=n(903),s=n(904),l=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(n=e[s[a]],o(n)&&(r=n.call(e),i(r)))return r;throw new TypeError("No default value")},u=function(e,t){var n=e[t];if(null!=n){if(!o(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var o=t.call(e,n);if(i(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),l(e,"default"===n?"number":n)}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o=n(523)();e.exports=function(e){return"object"==typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(516)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&o.test(i.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(96)("%Object%"),i=n(296);e.exports=function(e){return i(e),r(e)}},function(e,t,n){"use strict";var r=String.prototype.valueOf,i=Object.prototype.toString,o=n(523)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},function(e,t){e.exports=function(e){var t=!0,n=!0,r=!1;if("function"==typeof e){try{e.call("f",(function(e,n,r){"object"!=typeof r&&(t=!1)})),e.call([null],(function(){"use strict";n="string"==typeof this}),"x")}catch(e){r=!0}return!r&&t&&n}return!1}},function(e,t,n){"use strict";var r=n(215),i=n(525);e.exports=function(){var e=i();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},function(e,t,n){"use strict";var r=n(215),i=n(295),o=n(526),a=n(527),s=n(913),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},function(e,t,n){"use strict";var r=n(527),i=n(215);e.exports=function(){var e=r();return i(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},function(e,t,n){"use strict";var r=n(295),i=n(215),o=n(529),a=n(530),s=n(915),l=r(a());i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},function(e,t,n){"use strict";var r=n(215),i=n(530);e.exports=function(){var e=i();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return(0,i.default)((function(t){return r.default.createElement(o.default.Consumer,null,(function(n){return r.default.createElement(e,s({},t,{t:n}))}))}),e)}};var r=a(n(0)),i=a(n(105)),o=a(n(387));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.useContext)(o.default)};var r,i=n(0),o=(r=n(387))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(227).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.r(t);var i=r();i.withExtraArgument=r,t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(227),o=n(165),a=(r=n(121))&&r.__esModule?r:{default:r};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){return(0,i.combineReducers)(l(l({},a.default),{},{notifs:o.reducer}))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(!t||!t.type)return e;switch(t.type){case r.NOTIF_SEND:return[t.payload].concat(i(e.filter((function(e){return e.id!==t.payload.id}))));case r.NOTIF_DISMISS:return e.filter((function(e){return e.id!==t.payload}));case r.NOTIF_CLEAR:return[];default:return e}};var r=n(533);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(0)),o=n(90),a=u(n(923)),s=u(n(934)),l=u(n(2));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){return e.get?e.get(t):e[t]},d=function(e){var t=e.notifications,n=e.className,o=e.componentClassName,l=e.CustomComponent,u=e.transitionEnterTimeout,d=e.transitionLeaveTimeout,f=t.map((function(t){return l?i.default.createElement(l,r({},e,{componentClassName:o,key:c(t,"id"),id:c(t,"id"),message:c(t,"message"),kind:c(t,"kind")})):i.default.createElement(s.default,r({},e,{componentClassName:o,key:c(t,"id"),id:c(t,"id"),message:c(t,"message"),kind:c(t,"kind")}))})),p=[o+"__container",n].join(" ").split();return i.default.createElement("div",{className:p},i.default.createElement(a.default,{transitionName:o+"-transition",transitionEnterTimeout:u,transitionLeaveTimeout:d},f))};d.defaultProps={className:null,componentClassName:"notif",CustomComponent:null,transitionEnterTimeout:600,transitionLeaveTimeout:600},d.propTypes={notifications:l.default.array.isRequired,className:l.default.string,CustomComponent:l.default.oneOfType([l.default.func,l.default.node,l.default.element]),componentClassName:l.default.string,transitionEnterTimeout:l.default.number,transitionLeaveTimeout:l.default.number},t.default=(0,o.connect)((function(e){return{notifications:e.get?e.get("notifs"):e.notifs}}))(d)},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(0)),o=u(n(2)),a=u(n(924)),s=u(n(928)),l=n(535);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}l.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var f=function(e){function t(){var n,r;c(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);f.displayName="CSSTransitionGroup",f.propTypes={},f.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(925)),o=l(n(0)),a=l(n(2)),s=(l(n(926)),n(927));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var u=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);u.displayName="TransitionGroup",u.propTypes={},u.defaultProps={component:"span",childFactory:function(e){return e}},t.default=u,e.exports=t.default},function(e,t){e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(0)},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=f(n(929)),o=f(n(931)),a=f(n(932)),s=n(933),l=f(n(0)),u=f(n(2)),c=n(54),d=n(535);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=[];s.transitionEnd&&m.push(s.transitionEnd),s.animationEnd&&m.push(s.animationEnd);u.default.node,d.nameShape.isRequired,u.default.bool,u.default.bool,u.default.bool,u.default.number,u.default.number,u.default.number;var g=function(e){function t(){var n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,c.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",u=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var f=function(e){e&&e.target!==r||(clearTimeout(u),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(u=setTimeout(f,n),this.transitionTimeouts.push(u)):s.transitionEnd&&(d=function(e,t){return m.length?m.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){m.length&&m.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);g.displayName="CSSTransitionGroupChild",g.propTypes={},t.default=g,e.exports=t.default},function(e,t,n){"use strict";var r=n(388);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(930));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";var r=n(388);t.__esModule=!0,t.default=void 0;var i,o=r(n(534)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var u=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var c=i;t.default=c,e.exports=t.default},function(e,t,n){"use strict";var r=n(388);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,u,c,d,f,p,h,m=r(n(534)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=p,t.animationDuration=f,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=c=i+"-transition-delay",t.transitionTiming=u=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=f=i+"-animation-duration",t.animationTiming=p=i+"-animation-delay",t.animationDelay=h=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:u,delay:c,duration:l};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.kind,n=e.componentClassName,i=e.actionLabel,o=e.onActionClick,a=e.id,s=e.message;return r.default.createElement("div",{className:n+" "+n+"--"+t},r.default.createElement("div",{className:n+"__icon"}),r.default.createElement("div",{className:n+"__content"},r.default.createElement("span",{className:n+"__message"},s)),i&&r.default.createElement("span",{className:n+"__action"},r.default.createElement("button",{onClick:function(e){e.preventDefault(),o&&o(a)}},i)),r.default.createElement("div",{className:n+"__close"}))};a.defaultProps={kind:"info"},a.propTypes={id:i.default.oneOfType([i.default.string,i.default.number]).isRequired,message:i.default.node.isRequired,kind:i.default.oneOf(["success","info","warning","danger"]).isRequired,componentClassName:i.default.string,onActionClick:i.default.func,actionLabel:i.default.string},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=t.default=void 0;var r=n(144),i=n(241);const o={isFetching:!1,user:void 0,error:void 0};t.defaultState=o;var a=(0,r.produce)((e,t)=>{switch(t.type){case i.AUTH_REQUEST:e.isFetching=!0;break;case i.AUTH_SUCCESS:e.user=t.payload;break;case i.AUTH_FAILURE:e.error=t.payload&&t.payload.toString();break;case i.AUTH_REQUEST_DONE:e.isFetching=!1;break;case i.LOGOUT:e.user=void 0,e.isFetching=!1}},o);t.default=a},function(e,t,n){var r=n(209),i=n(237),o=n(49),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(162);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(940);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(213);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},function(e,t,n){var r=n(942),i=n(494),o=n(214),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+u,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(506),i=n(547),o=n(382),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CURSOR_COMPATIBILITY_SYMBOL=void 0;var r=n(4);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(void 0===e)return(0,r.Map)();const t=(0,r.fromJS)(e);if(!r.Map.isMap(t))throw new Error("Object must be equivalent to a Map.");return t}const a=(0,r.Set)(["index","page","count","pageSize","pageCount","usingOldPaginationAPI","extension","folder","depth"]);function s(e){return e.filter((e,t)=>a.has(t))}class l{static create(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new l(...t)}constructor(){if(i(this,"store",void 0),i(this,"actions",void 0),i(this,"data",void 0),i(this,"meta",void 0),(arguments.length<=0?void 0:arguments[0])instanceof l)return arguments.length<=0?void 0:arguments[0];this.store=function(){const{actions:e,data:t,meta:n}=1===arguments.length?o(arguments.length<=0?void 0:arguments[0]).toObject():{actions:arguments.length<=0?void 0:arguments[0],data:arguments.length<=1?void 0:arguments[1],meta:arguments.length<=2?void 0:arguments[2]};return(0,r.Map)({actions:(0,r.Set)(e),data:o(t),meta:o(n).update(s)})}(...arguments),this.actions=this.store.get("actions"),this.data=this.store.get("data"),this.meta=this.store.get("meta")}updateStore(){return new l(this.store.update(...arguments))}updateInStore(){return new l(this.store.updateIn(...arguments))}hasAction(e){return function(e,t){return e.hasIn(["actions",t])}(this.store,e)}addAction(e){return this.updateStore("actions",t=>t.add(e))}removeAction(e){return this.updateStore("actions",t=>t.delete(e))}setActions(e){return this.updateStore(t=>t.set("actions",(0,r.Set)(e)))}mergeActions(e){return this.updateStore("actions",t=>t.union(e))}getActionHandlers(e){return function(e,t){return e.get("actions",(0,r.Set)()).toMap().map(e=>t(e))}(this.store,e)}setData(e){return new l(this.store.set("data",o(e)))}mergeData(e){return new l(this.store.mergeIn(["data"],o(e)))}wrapData(e){return this.updateStore("data",t=>o(e).set("wrapped_cursor_data",t))}unwrapData(){return[this.store.get("data").delete("wrapped_cursor_data"),this.updateStore("data",e=>e.get("wrapped_cursor_data"))]}clearData(){return this.updateStore("data",()=>(0,r.Map)())}setMeta(e){return this.updateStore(t=>t.set("meta",o(e)))}mergeMeta(e){return this.updateStore(t=>t.update("meta",t=>t.merge(o(e))))}}t.default=l;const u=Symbol("cursor key for compatibility with old backends");t.CURSOR_COMPATIBILITY_SYMBOL=u},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EDITORIAL_WORKFLOW_ERROR=void 0;t.EDITORIAL_WORKFLOW_ERROR="EDITORIAL_WORKFLOW_ERROR";class i extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),r(this,"message",void 0),r(this,"notUnderEditorialWorkflow",void 0),this.message=e,this.notUnderEditorialWorkflow=t,this.name="EDITORIAL_WORKFLOW_ERROR"}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCESS_TOKEN_ERROR=void 0;t.ACCESS_TOKEN_ERROR="ACCESS_TOKEN_ERROR";class r extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"message",void 0),this.message=e,this.name="ACCESS_TOKEN_ERROR"}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(952))&&r.__esModule?r:{default:r};i.default.setItem("localForageTest",{expires:Date.now()+3e5}).then(()=>{i.default.removeItem("localForageTest")}).catch(e=>{if(22===e.code){const e="Unable to set localStorage key. Quota exceeded! Full disk?";console.warn(e)}console.log(e)});var o=i.default;t.default=o},function(e,t,n){(function(t){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){var n=t[a][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,n,r){(function(e){"use strict";var t,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,t=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}n.exports=function(e){1!==u.push(e)||r||t()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h((function(){t(i,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)l(e[a]);return s;function l(e){t.resolve(e).then((function(e){r||(r=!0,o.resolve(s,e))}),(function(e){r||(r=!0,o.reject(s,e))}))}}},{1:1}],3:[function(e,n,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d=void 0,f={},p=Object.prototype.toString;function h(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var n=e.transaction("local-forage-detect-blob-support","readwrite"),r=o([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function m(e){var t=f[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function g(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function y(e,t){return new a((function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);m(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),g(e)}}))}function b(e){return y(e,!1)}function _(e){return y(e,!0)}function w(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function x(e){return o([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}(atob(e.data))],{type:e.type})}function k(e){return e&&e.__local_forage_encoded_blob}function E(e){var t=this,n=t._initReady().then((function(){var e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function S(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)})).then((function(){return function(e){m(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,b(e).then((function(t){return e.db=t,w(e)?_(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw v(e,t),t}))}(e).then((function(){S(e,t,n,r-1)}))})).catch(n);n(i)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},f[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=E);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var u=i.forages[l];u!==t&&o.push(u._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,b(n)})).then((function(e){return n.db=e,w(n,t._defaultConfig.version)?_(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;k(r)&&(r=x(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),k(e)&&(e=x(e)),t(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===p.call(t)?h(o.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){S(r._dbInfo,"readwrite",(function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readwrite",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readwrite",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var l=e.name===n.name&&o._dbInfo.db,u=l?a.resolve(o._dbInfo.db):b(e).then((function(t){var n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=e.storeName?u.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;m(e);var r=f[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=n}return new a((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,g(n._dbInfo)}})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}})):u.then((function(t){m(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new a((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)g(r[t]._dbInfo)})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}))}else r=a.reject("Invalid arguments");return s(r,t),r}},C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=/^~~local_forage_type~([^~]+)~/,A="__lfsc__:".length,P=A+"arbf".length,R=Object.prototype.toString;function j(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=C.indexOf(e[t]),r=C.indexOf(e[t+1]),i=C.indexOf(e[t+2]),o=C.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u}function I(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=C[n[t]>>2],r+=C[(3&n[t])<<4|n[t+1]>>4],r+=C[(15&n[t+1])<<2|n[t+2]>>6],r+=C[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var M={serialize:function(e,t){var n="";if(e&&(n=R.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===R.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+I(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+I(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,A))return JSON.parse(e);var t,n=e.substring(P),r=e.substring(A,P);if("blob"===r&&T.test(n)){var i=n.match(T);t=i[1],n=n.substring(i[0].length)}var a=j(n);switch(r){case"arbf":return a;case"blob":return o([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:j,bufferToString:I};function L(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function D(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):L(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,a)}),o)}function N(e,t,n,r){var i=this;e=u(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,u){u?a(u):l.db.transaction((function(n){D(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(N.apply(i,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(o,n),o}function F(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var B={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(i){L(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=M,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){D(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){D(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return N.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){D(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){D(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){D(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){D(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){D(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(F(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function z(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function U(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}var q={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=z(e,this._defaultConfig),U()?(this._dbInfo=t,t.serializer=M,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(i),a++)))return u}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(i,o){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return s(r=e.name?new a((function(t){e.storeName?t(z(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),t),r}},W=function(e,t){for(var n,r,i=e.length,o=0;o<i;){if((n=e[o])===(r=t)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;o++}return!1},H=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},$={},V={},G={INDEXEDDB:O,WEBSQL:B,LOCALSTORAGE:q},K=[G.INDEXEDDB._driver,G.WEBSQL._driver,G.LOCALSTORAGE._driver],Y=["dropInstance"],Q=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Y),X={description:"",driver:K.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Z(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function J(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(H(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var ee=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G)if(G.hasOwnProperty(n)){var r=G[n],i=r._driver;this[n]=i,$[i]||this.defineDriver(r)}this._defaultConfig=J({},X),this._config=J({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=Q.concat("_initStorage"),l=0,u=o.length;l<u;l++){var c=o[l];if((!W(Y,c)||e[c])&&"function"!=typeof e[c])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=Y.length;n<r;n++){var i=Y[n];e[i]||(e[i]=t(i))}}();var d=function(n){$[r]&&console.info("Redefining LocalForage driver: "+r),$[r]=e,V[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=$[e]?a.resolve($[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(M);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;H(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=u.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!V[e]},e.prototype._extend=function(e){J(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=Q.length;e<t;e++)Z(this,Q[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=ee},{3:3}]},{},[4])(4)}).call(this,n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowAsync=function(e){return(0,i.default)(e.map(e=>function(e){return async t=>e(await t)}(e)))},t.onlySuccessfulPromises=function(e){return Promise.all(e.map(e=>e.catch(()=>o))).then(e=>e.filter(e=>e!==o))},t.then=function(e){return t=>Promise.resolve(t).then(e)};var r,i=(r=n(146))&&r.__esModule?r:{default:r};const o=Symbol("filterPromiseSymbol")},function(e,t,n){var r=n(400),i=n(304),o=n(402),a=n(552),s=n(49),l=n(553);e.exports=function(e){return i((function(t){var n=t.length,i=n,u=r.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(i=d?i:n;++i<n;){c=t[i];var f=a(c),p="wrapper"==f?o(c):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==c.length&&l(c)?d[f]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}},function(e,t){e.exports={}},function(e,t,n){var r=n(403),i=n(400),o=n(401),a=n(49),s=n(83),l=n(957),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=o.prototype,c.prototype.constructor=c,e.exports=c},function(e,t,n){var r=n(403),i=n(400),o=n(216);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(305),i=n(88);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){var r=this&&this!==i&&this instanceof t?a:e;return r.apply(o?n:this,arguments)}}},function(e,t,n){var r=n(298),i=n(305),o=n(556),a=n(559),s=n(306),l=n(247),u=n(88);e.exports=function(e,t,n){var c=i(e);return function i(){for(var d=arguments.length,f=Array(d),p=d,h=s(i);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);if((d-=m.length)<n)return a(e,t,o,i.placeholder,void 0,f,m,void 0,void 0,n-d);var g=this&&this!==u&&this instanceof i?c:e;return r(g,this,f)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(405),i=n(301),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(216),i=n(211),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var l=t[a];e[a]=i(l,n)?s[l]:void 0}return e}},function(e,t,n){var r=n(298),i=n(305),o=n(88);e.exports=function(e,t,n,a){var s=1&t,l=i(e);return function t(){for(var i=-1,u=arguments.length,c=-1,d=a.length,f=Array(d+u),p=this&&this!==o&&this instanceof t?l:e;++c<d;)f[c]=a[c];for(;u--;)f[c++]=arguments[++i];return r(p,s?n:this,f)}}},function(e,t,n){var r=n(557),i=n(558),o=n(247),a=Math.min;e.exports=function(e,t){var n=e[1],s=t[1],l=n|s,u=l<131,c=128==s&&8==n||128==s&&256==n&&e[7].length<=t[8]||384==s&&t[7].length<=t[8]&&8==n;if(!u&&!c)return e;1&s&&(e[2]=t[2],l|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?o(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?i(f,d,t[6]):d,e[6]=f?o(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&s&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},function(e,t,n){var r=n(562);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterByExtension=function(e,t){return((null==e?void 0:e.path)||"").endsWith(t.startsWith(".")?t:"."+t)},t.getAllResponses=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=30;let o=1,a=s.default.fromFetchArguments(e,t);const l=[];for(;a&&o<i;){const e=await s.default.performRequest(a),i=e.headers.get("Link"),u=i&&p(i)[n],{headers:c={}}=t;a=u&&s.default.fromFetchArguments(r(u),{headers:c}),l.push(e),o++}return l},t.getPathDepth=function(e){return e.split("/").length},t.parseLinkHeader=p,t.parseResponse=f,t.responseParser=function(e){return t=>f(t,e)};var r=u(n(406)),i=u(n(568)),o=u(n(146)),a=n(4),s=u(n(404)),l=u(n(399));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return n=>{try{return t(n)}catch(t){throw new Error(`Response cannot be parsed into the expected format (${e}): ${t.message}`)}}}const d=(0,a.fromJS)({json:async e=>{const t=e.headers.get("Content-Type")||"";if(!t.startsWith("application/json")&&!t.startsWith("text/json"))throw new Error(t+" is not a valid JSON Content-Type");return e.json()},text:async e=>e.text(),blob:async e=>e.blob()}).mapEntries(e=>{let[t,n]=e;return[t,c(t,n)]});async function f(e,t){let n,{expectingOk:r=!0,format:i="text",apiName:o=""}=t;try{const t=d.get(i,!1);if(!t)throw new Error(i+" is not a supported response format.");n=await t(e)}catch(t){throw new l.default(t.message,e.status,o)}if(r&&!e.ok){var a;const t="json"===i,r=t?n.message||n.msg||(null===(a=n.error)||void 0===a?void 0:a.message):n;throw new l.default(t&&r?r:n,e.status,o)}return n}function p(e){return e?(0,o.default)([e=>e.split(","),(0,r.default)(e=>e.trim().split(";")),(0,r.default)(e=>{let[t,n]=e;return[n.match(/rel="(.*?)"/)[1],t.trim().match(/<(.*?)>/)[1].replace(/\+/g,"%20")]}),i.default])(e):{}}},function(e,t,n){var r=n(970),i=n(248),o=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}e.exports=function e(t,n,u,c){var d="function"==typeof n,f=n===Object(n);if(f&&(c=u,u=n,n=void 0),null==u)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,h=!("curry"in c)||c.curry,m=!("fixed"in c)||c.fixed,g=!("immutable"in c)||c.immutable,v=!("rearg"in c)||c.rearg,y=d?u:i,b="curry"in c&&c.curry,_="fixed"in c&&c.fixed,w="rearg"in c&&c.rearg,x=d?u.runInContext():void 0,k=d?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},E=k.ary,S=k.assign,O=k.clone,C=k.curry,T=k.forEach,A=k.isArray,P=k.isError,R=k.isFunction,j=k.isWeakMap,I=k.keys,M=k.rearg,L=k.toInteger,D=k.toPath,N=I(r.aryMethod),F={castArray:function(e){return function(){var t=arguments[0];return A(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return p&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return T(I(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),T(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:L(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function B(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return H(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(M(a(e,n),t),n)}))}(t,n);var i=!d&&r.iterateeAry[e];if(i)return function(e,t){return H(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,i)}return t}function z(e,t,n){if(m&&(_||!r.skipFixed[e])){var i=r.methodSpread[e],a=i&&i.start;return void 0===a?E(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&o.apply(s,a),t!=r&&o.apply(s,i.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function U(e,t,n){return v&&n>1&&(w||!r.skipRearg[e])?M(t,r.methodRearg[e]||r.aryRearg[n]):t}function q(e,t){for(var n=-1,r=(t=D(t)).length,i=r-1,o=O(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||R(l)||P(l)||j(l)||(a[s]=O(n==i?l:Object(l))),a=a[s]}return o}function W(t,n){var i=r.aliasToReal[t]||t,o=r.remap[i]||i,a=c;return function(t){var r=d?x:k,s=d?x[o]:n,l=S(S({},a),t);return e(r,i,s,l)}}function H(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=v?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function $(e,t,n){var i,o=r.aliasToReal[e]||e,a=t,u=F[o];return u?a=u(t):g&&(r.mutate.array[o]?a=l(t,s):r.mutate.object[o]?a=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[o]&&(a=l(t,q))),T(N,(function(e){return T(r.aryMethod[e],(function(t){if(o==t){var n=r.methodSpread[o],s=n&&n.afterRearg;return i=s?z(o,U(o,a,e),e):U(o,z(o,a,e),e),i=function(e,t,n){return b||h&&n>1?C(t,n):t}(0,i=B(o,i),e),!1}})),!i})),i||(i=a),i==t&&(i=b?C(i,1):function(){return t.apply(this,arguments)}),i.convert=W(o,t),i.placeholder=t.placeholder=n,i}if(!f)return $(n,u,y);var V=u,G=[];return T(N,(function(e){T(r.aryMethod[e],(function(e){var t=V[r.remap[e]||e];t&&G.push([e,$(e,t,V)])}))})),T(I(V),(function(e){var t=V[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=W(e,t),G.push([e,t])}})),T(G,(function(e){V[e[0]]=e[1]})),V.convert=function(e){return V.runInContext.convert(e)(void 0)},V.placeholder=V,T(I(V),(function(e){T(r.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){e.exports={ary:n(972),assign:n(563),clone:n(973),curry:n(554),forEach:n(405),isArray:n(49),isError:n(302),isFunction:n(208),isWeakMap:n(988),iteratee:n(989),keys:n(378),rearg:n(990),toInteger:n(134),toPath:n(991)}},function(e,t,n){var r=n(246);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},function(e,t,n){var r=n(309);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(217),i=n(249);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(89),i=n(286),o=n(976),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(217),i=n(383);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(217),i=n(565);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(408),i=n(981),o=n(982),a=n(983),s=n(566);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(408);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(209),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(985),i=n(190),o=n(285),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(212),i=n(83);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(987),i=n(190),o=n(285),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(212),i=n(83);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(212),i=n(83);e.exports=function(e){return i(e)&&"[object WeakMap]"==r(e)}},function(e,t,n){var r=n(309),i=n(109);e.exports=function(e){return i("function"==typeof e?e:r(e,1))}},function(e,t,n){var r=n(246),i=n(304),o=i((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=o},function(e,t,n){var r=n(143),i=n(216),o=n(49),a=n(213),s=n(510),l=n(163),u=n(133);e.exports=function(e){return o(e)?r(e,l):a(e)?[e]:i(s(u(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise((t,n)=>{let r=!1;const i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=e,o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState?n():(r=!0,t())},o.onerror=e=>n(e),i.appendChild(o)})}},function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
/**
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.9.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(994),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,i=typeof e;if("string"===i){var o,a=[],s=e.length,l=0;for(r=0;r<s;++r)(o=e.charCodeAt(r))<128?a[l++]=o:o<2048?(a[l++]=192|o>>6,a[l++]=128|63&o):o<55296||o>=57344?(a[l++]=224|o>>12,a[l++]=128|o>>6&63,a[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[l++]=240|o>>18,a[l++]=128|o>>12&63,a[l++]=128|o>>6&63,a[l++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,c[r]=54^d}Sha256.call(this,t,n),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(r=e.charCodeAt(o))<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,u=this.h0,c=this.h1,d=this.h2,f=this.h3,p=this.h4,h=this.h5,m=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+n<<0;for(l=c&d,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,g=(i=v[0]-1413257819)-150054599<<0,f=i+24177077<<0):(o=704751109,g=(i=v[0]-210244248)-1521486534<<0,f=i+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(o=u&c)^u&d^l,g=f+(i=g+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&m)+K[e]+v[e])<<0,f=i+(t+r)<<0),t=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(a=f&u)^f&c^o,m=d+(i=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&p^~g&h)+K[e+1]+v[e+1])<<0,t=((d=i+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&f)^d&u^a,h=c+(i=h+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&p)+K[e+2]+v[e+2])<<0,t=((c=i+(t+r)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(l=c&d)^c&f^s,p=u+(i=p+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&m^~h&g)+K[e+3]+v[e+3])<<0,u=i+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+c<<0,this.h2=this.h2+d<<0,this.h3=this.h3+f<<0,this.h4=this.h4+p<<0,this.h5=this.h5+h<<0,this.h6=this.h6+m<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(97),__webpack_require__(56))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allEntriesByFolder=async function(e){let{listAllFiles:t,readFile:n,readFileMetadata:o,apiName:s,branch:l,localForage:c,folder:f,extension:p,depth:g,getDefaultBranch:v,isShaExistsInBranch:y,getDifferences:b,getFileId:_,filterFile:w,customFetch:x}=e;async function k(){const e=await t(f,p,g),n=await v();return await h({localForage:c,localTree:{head:n.sha,files:e.map(e=>({id:e.id,path:e.path,name:(0,a.basename)(e.path)}))},branch:n.name,depth:g,extension:p,folder:f}),e}const E=await async function(){const e=await m({localForage:c,branch:l,folder:f,extension:p,depth:g});if(e){const t=await v();if(!await y(t.name,e.head))return console.log(`Can't find local tree head '${e.head}' in branch '${t.name}', rebuilding local tree`),k();const n=await async function(e){let{branch:t,localTree:n,folder:r,getDifferences:i,filterFile:o,getFileId:s}=e;const l=(await i(t.sha,n.head)).filter(e=>{var t,n;return(null===(t=e.oldPath)||void 0===t?void 0:t.startsWith(r))||(null===(n=e.newPath)||void 0===n?void 0:n.startsWith(r))}).reduce((e,t)=>("renamed"===t.status?(e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}),e.push({path:t.newPath,name:(0,a.basename)(t.newPath),deleted:!1})):"deleted"===t.status?e.push({path:t.oldPath,name:(0,a.basename)(t.oldPath),deleted:!0}):e.push({path:t.newPath||t.oldPath,name:(0,a.basename)(t.newPath||t.oldPath),deleted:!1}),e),[]).filter(o);return await Promise.all(l.map(async e=>{if(e.deleted)return u(u({},e),{},{id:""});{const t=await s(e.path);return u(u({},e),{},{id:t})}}))}({branch:t,localTree:e,folder:f,extension:p,depth:g,getDifferences:b,getFileId:_,filterFile:w}).catch(e=>(console.log("Failed getting diff from local tree:",e),null));if(!n)return console.log("Diff is null, rebuilding local tree"),k();if(0===n.length)return e.files;{const o=n.reduce((e,t)=>(e[t.path]=t.deleted,e),{}),a=(0,r.default)((0,i.default)(n.filter(e=>!o[e.path]),e.files.filter(e=>!o[e.path]),e=>e.path),e=>e.path);return await h({localForage:c,localTree:{head:t.sha,files:a},branch:t.name,depth:g,extension:p,folder:f}),a}}return k()}();if(x)return await x(E);return await d(E,n,o,s)},t.blobToFileObj=function(e,t){const n=e.match(/.svg$/)?{type:"image/svg+xml"}:{};return new File([t],e,n)},t.entriesByFiles=async function(e,t,n,r){return d(e,t,n,r)},t.entriesByFolder=async function(e,t,n,r){return d(await e(),t,n,r)},t.getLocalTree=m,t.getMediaAsBlob=f,t.getMediaDisplayURL=async function(e,t,n){const{path:r,id:i}=e;return new Promise((e,o)=>n.take(()=>f(r,i,t).then(e=>URL.createObjectURL(e)).then(e,o).finally(()=>n.leave())))},t.persistLocalTree=h,t.runWithLock=async function(e,t,n){try{await e.acquire()||console.warn(n);return await t()}finally{e.release()}},t.unpublishedEntries=async function(e){try{return await e()}catch(e){if("Not Found"===e.message)return Promise.resolve([]);throw e}};var r=s(n(297)),i=s(n(996)),o=s(n(193)),a=n(550);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function d(e,t,n,r){const i=(0,o.default)(10),a=[];return e.forEach(e=>{a.push(new Promise(o=>i.take(async()=>{try{const[r,a]=await Promise.all([t(e.path,e.id,{parseText:!0}),n(e.path,e.id)]);o({file:u(u({},e),a),data:r}),i.leave()}catch(t){i.leave(),console.error(`failed to load file from ${r}: ${e.path}`),o({error:!0})}})))}),Promise.all(a).then(e=>e.filter(e=>!e.error))}async function f(e,t,n){let r;if(e.match(/.svg$/)){const i=await n(e,t,{parseText:!0});r=new Blob([i],{type:"image/svg+xml"})}else r=await n(e,t,{parseText:!1});return r}function p(e){let{branch:t,folder:n,extension:r,depth:i}=e;return`git.local.${t}.${n}.${r}.${i}`}async function h(e){let{localForage:t,localTree:n,branch:r,folder:i,extension:o,depth:a}=e;await t.setItem(p({branch:r,folder:i,extension:o,depth:a}),n)}async function m(e){let{localForage:t,branch:n,folder:r,extension:i,depth:o}=e;return await t.getItem(p({branch:n,folder:r,extension:i,depth:o}))}},function(e,t,n){var r=n(242),i=n(109),o=n(166),a=n(396),s=n(310),l=n(194),u=o((function(e){var t=l(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))}));e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewState=void 0,t.getPreviewStatus=function(e,t){return e.find(e=>{let{context:n}=e;return u(n,t)})},t.isPreviewContext=u,t.readFile=async function(e,t,n,r){const i=e?r?"gh."+e:`gh.${e}.blob`:null,o=i?await n.getItem(i):null;if(o)return o;const a=await t();i&&await n.setItem(i,a);return a},t.readFileMetadata=async function(e,t,n){const r=e?function(e){return`gh.${e}.meta`}(e):null,i=r&&await n.getItem(r);if(i)return i;const o=await t();r&&await n.setItem(r,o);return o},t.requestWithBackoff=async function e(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.rateLimiter&&await t.rateLimiter.acquire();try{const e=await t.buildRequest(n),r=t.requestFunction||i.default.performRequest,o=await r(e);if(429===o.status){const e=await o.text().catch(()=>"Too many requests");throw new Error(e)}if(403===o.status){const e=await o.json().catch(()=>({message:""}));if(e.message.match("API rate limit exceeded")){const t=new Date,n=o.headers.has("X-RateLimit-Reset")?parseInt(o.headers.get("X-RateLimit-Reset")):t.getTime()/1e3+60;throw new s(e.message,n)}o.json=()=>Promise.resolve(e)}return o}catch(i){if(o>5||"Can't refresh access token when using implicit auth"===i.message)throw i;if(!t.rateLimiter){const e=i.resetSeconds||o*o;console.log(`Pausing requests for ${e} ${1===o?"second":"seconds"} due to fetch failures:`,i.message),t.rateLimiter=(0,r.asyncLock)(),t.rateLimiter.acquire(),setTimeout(()=>{var e;null===(e=t.rateLimiter)||void 0===e||e.release(),t.rateLimiter=void 0,console.log("Done pausing requests")},1e3*e)}return e(t,n,o+1)}},t.throwOnConflictingBranches=async function(e,t,n){const r=function(e){const t=e.split("/");t.pop();return t.reduce((e,n,r)=>e=[...e,t.slice(0,r+1).join("/")],[])}(e),i=(await Promise.all(r.map(e=>t(e).then(e=>e.name).catch(()=>"")))).filter(Boolean)[0];if(i)throw new o.default(`Failed creating branch '${e}' since there is already a branch named '${i}'. Please delete the '${i}' branch and try again`,500,n)};var r=n(570),i=a(n(404)),o=a(n(399));function a(e){return e&&e.__esModule?e:{default:e}}class s extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e,t){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"resetSeconds",void 0),this.resetSeconds=t<0?1:t>3600?3600:t}}const l=["deploy"];function u(e,t){return t?e===t:l.some(t=>e.includes(t))}let c;t.PreviewState=c,function(e){e.Other="other",e.Success="success"}(c||(t.PreviewState=c={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_COMMIT_MESSAGE=t.DEFAULT_PR_BODY=t.CMS_BRANCH_PREFIX=void 0,t.branchFromContentKey=function(e){return"cms/"+e},t.contentKeyFromBranch=function(e){return e.slice("cms/".length)},t.generateContentKey=function(e,t){return`${e}/${t}`},t.isCMSLabel=function(e,t){return e.startsWith(r(t))},t.labelToStatus=function(e,t){return e.slice(r(t).length)},t.parseContentKey=function(e){const t=e.indexOf("/");return{collection:e.slice(0,t),slug:e.slice(t+1)}},t.statusToLabel=function(e,t){return`${r(t)}${e}`};t.CMS_BRANCH_PREFIX="cms";t.DEFAULT_PR_BODY="Automatically generated by Netlify CMS";t.MERGE_COMMIT_MESSAGE="Automatically generated. Merged on Netlify CMS.";function r(e){return e||"netlify-cms/"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPointerFile=x,t.getLargeMediaFilteredMediaFiles=async function(e,t){return await Promise.all(t.map(async t=>{const{fileObj:n,path:r}=t,i=r.startsWith("/")?r.slice(1):r;if(!e.matchPath(i))return t;const o=await k(e,n,r);return d(d({},t),o)}))},t.getLargeMediaPatternsFromGitAttributesFile=void 0,t.getPointerFileForMediaFileObj=k,t.parsePointerFile=void 0;var r=u(n(406)),i=u(n(571)),o=u(n(572)),a=u(n(1e3)),s=u(n(569));const l=["size","oid"];function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e){return e.split("\n")}function m(e){return e.split(/\s+/g)}const g=(0,o.default)([(0,r.default)(e=>e.trim()),(0,a.default)((function(e){return""!==e}))]),v=(0,o.default)([h,g,(0,r.default)(m),i.default,e=>{let{size:t,oid:n}=e,r=p(e,l);return d({size:parseInt(t),sha:null==n?void 0:n.split(":")[1]},r)}]);t.parsePointerFile=v;const y=(0,o.default)([(0,r.default)((function(e){return e.includes("=")?e.split("="):e.startsWith("-")?[e.slice(1),!1]:[e,!0]})),i.default]),b=(0,o.default)([m,e=>{let[t,...n]=e;return[t,y(n)]}]),_=(0,o.default)([h,(0,r.default)((function(e){return e.split("#")[0]})),g,(0,r.default)(b)]),w=(0,o.default)([_,(0,a.default)(e=>{let[,t]=e;return"lfs"===t.filter&&"lfs"===t.diff&&"lfs"===t.merge}),(0,r.default)(e=>{let[t]=e;return t})]);function x(e){let{size:t,sha:n}=e;return`version https://git-lfs.github.com/spec/v1\noid sha256:${n}\nsize ${t}\n`}async function k(e,t,n){const{name:r,size:i}=t,o=await(0,s.default)(t);await e.uploadResource({sha:o,size:i},t);const a=x({sha:o,size:i}),l=new Blob([a]),u=new File([l],r,{type:"text/plain"}),c=await(0,s.default)(u);return{fileObj:u,size:l.size,sha:c,raw:a,path:n}}t.getLargeMediaPatternsFromGitAttributesFile=w},function(e,t,n){var r=n(308)("filter",n(1001));r.placeholder=n(248),e.exports=r},function(e,t,n){var r=n(504),i=n(1002),o=n(109),a=n(49);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(391);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLUG_MISSING_REQUIRED_DATE=void 0,t.addFileTemplateFields=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return t;const r=(0,l.extname)(e),i=(0,l.basename)(e,r),o=(0,l.dirname)(e).replace(new RegExp(`^(/?)${n}/?`),"$1");return t=t.withMutations(e=>{e.set("dirname",o),e.set("filename",i),e.set("extension",""===r?r:r.slice(1))})},t.compileStringTemplate=function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,a.Map)(),o=arguments.length>4?arguments[4]:void 0;const s=null!==t,l=e.replace(RegExp(d,"g"),(e,a,s,l)=>{let u;const c=m(a,i);if(c)u=c;else{if(p[a]&&!t)return n=!0,"";u=p[a]?p[a](t):"slug"===a?r:i.getIn(h(a),"")}if(o)return o(u);{const e=g(l);e&&(u=e(u))}return u});if(s&&n){const e=new Error;throw e.name="SLUG_MISSING_REQUIRED_DATE",e}return l},t.dateParsers=void 0,t.expandPath=function e(t){let{data:n,path:r,paths:a=[]}=t;r.endsWith(".*")&&(r+=".");const s=r.split(".*.");if(1===s.length)a.push(r);else{const t=s[0],r=(0,o.default)(n,t);Array.isArray(r)&&r.forEach((r,o)=>{e({data:n,path:(0,i.default)(`${t}.${o}.${s.slice(1).join(".*.")}`,"."),paths:a})})}return a},t.extractTemplateVars=function(e){const t=RegExp(d,"g"),n=RegExp("([^}{|]+)","g");return(e.match(t)||[]).map(e=>{const t=e.match(n);return t?t[0]:""})},t.keyToPathArray=h,t.parseDateFromEntry=function(e,t){if(!t)return;const n=e.getIn(["data",t]),r=n&&(0,s.default)(n);if(r&&r.isValid())return r.toDate()};var r=u(n(573)),i=u(n(168)),o=u(n(103)),a=n(4),s=u(n(195)),l=n(98);function u(e){return e&&e.__esModule?e:{default:e}}const c=[{pattern:/^upper$/,transform:e=>e.toUpperCase()},{pattern:/^lower$/,transform:e=>e.toLowerCase()},{pattern:/^date\('(.+)'\)$/,transform:(e,t)=>(0,s.default)(e).format(t[1])},{pattern:/^default\('(.+)'\)$/,transform:(e,t)=>e||t[1]},{pattern:/^ternary\('(.*)',\s*'(.*)'\)$/,transform:(e,t)=>e?t[1]:t[2]},{pattern:/^truncate\(([0-9]+)(?:(?:,\s*['"])([^'"]*)(?:['"]))?\)$/,transform:(e,t)=>{const n=t[2]||"...",i=parseInt(t[1])+n.length;return(0,r.default)(e,{length:i,omission:n})}}],d="{{([^}{|]+)( \\| ([^}{]+))?}}";function f(e){return("0"+e).slice(-2)}const p={year:e=>""+e.getUTCFullYear(),month:e=>f(e.getUTCMonth()+1),day:e=>f(e.getUTCDate()),hour:e=>f(e.getUTCHours()),minute:e=>f(e.getUTCMinutes()),second:e=>f(e.getUTCSeconds())};t.dateParsers=p;function h(e){if(!e)return[];const t=[],n=e.split("");let r,i=[];for(;r=n.shift();)["[","]","."].includes(r)?(i.length>0&&t.push(i.join("")),i=[]):i.push(r);return i.length>0&&t.push(i.join("")),t}function m(e,t){if(!e.startsWith("fields."))return;const n=e.slice("fields.".length),r=t.getIn(h(n));return"object"==typeof r&&null!==r?JSON.stringify(r):r}function g(e){if(e){let t=null;const n=c.find(n=>(t=e.match(n.pattern),!!t));if(n)return e=>n.transform(e,t)}return null}t.SLUG_MISSING_REQUIRED_DATE="SLUG_MISSING_REQUIRED_DATE"},function(e,t,n){var r=n(1005),i=n(190),o=n(285),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(120),i=n(83);e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},function(e,t,n){var r=n(1007),i=n(395),o=n(1008);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(513)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+u,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinMax=function(e,t,n,r,o){function a(n){return{type:"RANGE",message:e("editor.editorControlPane.widget."+n,{fieldLabel:t,minCount:r,maxCount:o,count:r})}}if([r,o,null==n?void 0:n.size].every(i.default)&&(n.size<r||n.size>o))return a(r===o?"rangeCountExact":"rangeCount");if((0,i.default)(r)&&r>0&&null!=n&&n.size&&n.size<r)return a("rangeMin");if((0,i.default)(o)&&null!=n&&n.size&&n.size>o)return a("rangeMax")};var r,i=(r=n(1010))&&r.__esModule?r:{default:r}},function(e,t,n){var r=n(120),i=n(83);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";t.parse=n(1014),t.stringify=n(1035)},function(e,t,n){"use strict";e.exports=n(1015),e.exports.async=n(1021),e.exports.stream=n(1023),e.exports.prettyError=n(413)},function(e,t,n){"use strict";(function(t){e.exports=function(e){t.Buffer&&t.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const n=new r;try{return n.parse(e),n.finish()}catch(t){throw i(t,e)}};const r=n(411),i=n(413)}).call(this,n(56))},function(e,t,n){"use strict";class r extends Error{constructor(e,t,n){super("[ParserError] "+e,t,n),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}}class i{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class o{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new i(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=1114112;do{e=this.state.parser,this.runOne()}while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new r("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new i(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new r("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(1114112===this.char)throw this.error(new r("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new r("Must declare a parseStart method")}}o.END=1114112,o.Error=r,e.exports=o},function(e,t,n){"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";const r=n(412);class i extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}T${`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";(function(t){const r=n(412),i=t.Date;class o extends i{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}}).call(this,n(56))},function(e,t,n){"use strict";const r=n(412);class i extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},function(e,t,n){"use strict";(function(t){e.exports=function(e,n){n||(n={});const o=n.blocksize||40960,a=new r;return new Promise((e,n)=>{t(s,0,o,e,n)});function s(n,r,o,l){if(n>=e.length)try{return o(a.finish())}catch(t){return l(i(t,e))}try{a.parse(e.slice(n,n+r)),t(s,n+r,r,o,l)}catch(t){l(i(t,e))}}};const r=n(411),i=n(413)}).call(this,n(578).setImmediate)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,u={},c=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[l]=i,r(l),l++},f.clearImmediate=p}function p(e){delete u[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(56),n(97))},function(e,t,n){"use strict";e.exports=function(e){return e?function(e){const t=new i;return e.setEncoding("utf8"),new Promise((n,r)=>{let i,o=!1,a=!1;function s(){if(o=!0,!i)try{n(t.finish())}catch(e){r(e)}}function l(e){a=!0,r(e)}e.once("end",s),e.once("error",l),function n(){let r;i=!0;for(;null!==(r=e.read());)try{t.parse(r)}catch(e){return l(e)}if(i=!1,o)return s();if(a)return;e.once("readable",n)}()})}(e):function(){const e=new i;return new r.Transform({objectMode:!0,transform(t,n,r){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}r()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}()};const r=n(1024),i=n(411)},function(e,t,n){e.exports=i;var r=n(414).EventEmitter;function i(){r.call(this)}n(197)(i,r),i.Readable=n(415),i.Writable=n(1031),i.Duplex=n(1032),i.Transform=n(1033),i.PassThrough=n(1034),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t){},function(e,t,n){"use strict";var r=n(416).Buffer,i=n(1027);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(56))},function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=n(196),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var r=n(583),i=Object.create(n(250));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(197),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(417)},function(e,t,n){e.exports=n(198)},function(e,t,n){e.exports=n(415).Transform},function(e,t,n){e.exports=n(415).PassThrough},function(e,t,n){"use strict";function r(e){return new Error("Can only stringify objects, not "+e)}function i(e){return Object.keys(e).filter(t=>s(e[t]))}function o(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&"function"==typeof e[n].toJSON&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function a(e,t,n){var c,d;c=i(n=o(n)),d=function(e){return Object.keys(e).filter(t=>!s(e[t]))}(n);var p=[],h=t||"";c.forEach(e=>{var t=l(n[e]);"undefined"!==t&&"null"!==t&&p.push(h+u(e)+" = "+f(n[e],!0))}),p.length>0&&p.push("");var g=e&&c.length>0?t+" ":"";return d.forEach(t=>{p.push(function(e,t,n,s){var c=l(s);if("array"===c)return function(e,t,n,i){m(i=o(i));var s=l(i[0]);if("table"!==s)throw r(s);var c=e+u(n),d="";return i.forEach(e=>{d.length>0&&(d+="\n"),d+=t+"[["+c+"]]\n",d+=a(c+".",t,e)}),d}(e,t,n,s);if("table"===c)return function(e,t,n,r){var o=e+u(n),s="";i(r).length>0&&(s+=t+"["+o+"]\n");return s+a(o+".",t,r)}(e,t,n,s);throw r(c)}(e,g,t,n[t]))}),p.join("\n")}function s(e){switch(l(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return 0===e.length||"table"!==l(e[0]);case"table":return 0===Object.keys(e).length;default:return!1}}function l(e){return void 0===e?"undefined":null===e?"null":"bigint"==typeof e||Number.isInteger(e)&&!Object.is(e,-0)?"integer":"number"==typeof e?"float":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function u(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:c(t)}function c(e){return'"'+d(e).replace(/"/g,'\\"')+'"'}function d(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+function(e,t){for(;t.length<e;)t="0"+t;return t}(4,e.codePointAt(0).toString(16)))}function f(e,t){let n=l(e);return"string"===n&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),p(e,n)}function p(e,t){switch(t||(t=l(e)),t){case"string-multiline":return function(e){let t=e.split(/\n/).map(e=>d(e).replace(/"(?="")/g,'\\"')).join("\n");return'"'===t.slice(-1)&&(t+="\\\n"),'"""\n'+t+'"""'}(e);case"string":return c(e);case"string-literal":return"'"+e+"'";case"integer":return h(e);case"float":return function(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],r=t[1]||0;return h(n)+"."+r}(e);case"boolean":return function(e){return String(e)}(e);case"datetime":return function(e){return e.toISOString()}(e);case"array":return function(e){const t=m(e=o(e));var n="[",r=e.map(e=>p(e,t));r.join(", ").length>60||/\n/.test(r)?n+="\n "+r.join(",\n ")+"\n":n+=" "+r.join(", ")+(r.length>0?" ":"");return n+"]"}(e.filter(e=>"null"!==l(e)&&"undefined"!==l(e)&&"nan"!==l(e)));case"table":return function(e){e=o(e);var t=[];return Object.keys(e).forEach(n=>{t.push(u(n)+" = "+f(e[n],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}(e);default:throw r(t)}}function h(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function m(e){const t=function(e){var t=l(e[0]);return e.every(e=>l(e)===t)?t:e.every(e=>{return"float"===(t=l(e))||"integer"===t;var t})?"float":"mixed"}(e);if("mixed"===t)throw new Error("Array values can't have mixed types");return t}e.exports=function(e){if(null===e)throw r("null");if(void 0===e)throw r("undefined");if("object"!=typeof e)throw r(typeof e);"function"==typeof e.toJSON&&(e=e.toJSON());if(null==e)return null;const t=l(e);if("table"!==t)throw r(t);return a("","",e)},e.exports.value=p},function(e,t,n){(function(e){var n;(function(){"use strict";var r=function(e,t){if(0===e.length)return"";for(var n="",r=0,i=e.length;r<i;r++)if(a(e[r])&&e[r])n+=(n?".":"")+m(e[r]);else{if(!s(e[r]))return!1;t||(n+=(n?".":"")+"["+e[r]+"]")}return n||!1},i=function(e,t){return(r(e)||"<root>")+": "+t},o=function(e){return Object.prototype.toString.call(e)};o.Boolean=o(!1),o.String=o(""),o.Number=o(0),o.Array=o([]),o.Date=o(new Date(0));var a=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},l=Array.isArray||function(e){return o(e)===o.Array},u=function(e){return null!==e&&"object"==typeof e&&!(l(e)||function(e){return o(e)===o.Date}(e))},c=function(e){if(e.length<1)return!1;for(var t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1},d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f=function(e,t,n){return"object"==typeof JSON&&JSON?JSON.stringify(n):'"'+String(n).replace(/[\x00-\x1F"\\]/g,(function(e){switch(e){case'"':case"\\":return"\\"+e;case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"\f":return"\\f";default:var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substr(t.length)+t}}))+'"'},p=function(e,t,n){if(function(e){if(e.length<2)return!1;for(var t=o(e[0]),n=1,r=e.length;n<r;n++)if(null!=e[n]&&o(e[n])!==t)return!0;return!1}(n))throw new Error(i(e.path,"Array cannot contain values of different types."));var r=e.table;e.table=n;var s=[],l=e.inPair;c(n)&&(e.inPair=!0);for(var u=0,d=n.length;u<d;u++){e.path.push(u);var f=h(e,u,n[u]);a(f)&&s.push(f),e.path.pop()}return e.inPair=l,e.table=r,!e.inPair&&s.length>0&&e.space?"[\n"+w(s.join(",\n"),1,e.space)+"\n]":"["+s.join(", ")+"]"},h=function(e,t,n){if(e.replace){var r=e.replace.call(v(e),t,n);if(a(r))return r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}switch(o(n)){case o.Boolean:return function(e,t,n){return n?"true":"false"}(0,0,n);case o.String:return f(0,0,n);case o.Number:return function(e,t,n){if(!isFinite(n))throw new Error(i(e.path,"Number must be finite."));var r;return r=(r=(Number.isInteger?Number.isInteger(n):Math.floor(n)===n)?n.toFixed(1):String(n)).replace(/([eE])(\d)/,"$1+$2"),/[.eE]/.test(r)?r:r+".0"}(e,0,n);case o.Array:return p(e,0,n);case o.Date:return function(e,t,n){if(!isFinite(n.getTime()))throw new Error(i(e.path,"Invalid Date"));return n.toISOString()}(e,0,n);default:return null==n?null:function(e,t,n){var r=e.table;e.table=n;var o=e.inPair;e.inPair=!0;var s=[],l=Object.keys(n);e.sort&&l.sort(e.sort);for(var u=0,c=l.length;u<c;u++){var f=l[u];if(d(n,f)&&null!=n[f]){if(!f)throw new Error(i(e.path,"Key cannot be an empty string."));e.path.push(f);var p=h(e,f,n[f]);a(p)&&s.push(m(f)+" = "+p),e.path.pop()}}return e.inPair=o,e.table=r,"{"+s.join(", ")+"}"}(e,0,n)}},m=function(e){return!!e&&(/^[a-zA-Z0-9\-_]+$/.test(e)?e:f(0,0,e))},g=function(e,t,n){var r=m(t);if(!r)throw new Error(i(e.path,"Key cannot be an empty string."));var o=h(e,t,n);return a(o)?r+" = "+o:null},v=function(e){return{path:e.path.slice(0),table:e.table}},y=function(e,t,n){if(e.replace){var r=e.replace.call(v(e),t,n);if(a(r))return m(t)+" = "+r;if(null==r)return null;if(!1!==r)throw new Error(i(e.path,"Replacer must return a string, false, null or undefined."))}return!1},b=function(e,t,n,r){var i;if(!(e.replace&&0===e.path.length&&(i=y(e,t,n),a(i)&&e.lines.push(i),!1!==i)||r(e,t,n))){var o=e.table;if(e.table=n,l(n)){var s=e.inTableArray;e.inTableArray=c(n);for(var f=0,p=n.length;f<p;f++)e.path.push(f),b(e,f,n[f],r),e.path.pop();e.inTableArray=s}else if(u(n)){s=e.inTableArray;e.inTableArray=!1;var h=[],m=Object.keys(n);e.sort&&m.sort(e.sort);for(f=0,p=m.length;f<p;f++){var v=m[f];if(d(n,v)){var _=n[v],x=e.path.length>0&&(l(_)?c(_):u(_));l(_)&&c(_)?h.push([!0,v,_,x]):u(_)?h.push([!1,v,_,x]):(e.path.push(v),b(e,v,_,r),e.path.pop())}}if(m=null,e.replace)for(f=0,p=h.length;f<p;f++){if((o=h[f])[0]){if(e.path.push(o[1]),!1!==(i=y(e,o[1],o[2]))){a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null,e.path.pop();continue}var k=o[2],E=0;for(v=k.length;E<v;E++){var S=k[E];if(e.path.push(E),i=y(e,E,S),e.path.pop(),!1!==i){if(null==i){k[E]=null;continue}i=g(e,o[1],o[2]),a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null;break}}e.path.pop()}else e.path.push(o[1]),!1!==(i=y(e,o[1],o[2]))&&(a(i)&&e.lines.push(w(i,e.level,e.space)),o[2]=null),e.path.pop()}for(f=0,p=h.length;f<p;f++){null!=(o=h[f])[2]&&(e.path.push(o[1]),o[3]&&e.level++,b(e,o[1],o[2],r),o[3]&&e.level--,e.path.pop())}e.inTableArray=s}e.table=o}},_=function(e,t){if(e.repeat)return e.repeat(t);for(var n="",r="";t>0;)r+=r||e,1&t&&(n+=r),t>>>=1;return n},w=function(e,t,n){var r=_(n,t);return e.replace(/^(?!$)/gm,r)},x=function(e){return a(e)?e:s(e)&&e>=0&&isFinite(e)&&Math.floor(e)===e?_(" ",e):""},k=function(e,t){if(null==e)throw new Error("Undefined or null cannot be stringified.");if(function(e){var t=function(e,n){if(!l(e)&&!u(e))return!1;if(-1!==n.indexOf(e))return!0;for(var r in n.push(e),e)if(d(e,r)){var i=n.length;if(t(e[r],n))return!0;n.splice(i)}return!1};return t(e,[])}(e))throw new Error("Converting circular structure to TOML.");if(null!=t&&"object"!=typeof t)throw new Error("Options must be an object.");if(null!=t.replace&&"function"!=typeof t.replace)throw new Error("Replacer must be a function.");if(null!=t.sort&&"function"!=typeof t.sort)throw new Error("Compare function for sorting must be a function.")},E={};E.toToml=function(e,t){if(!u(e))throw new Error("An object other than Array or Date is expected.");return k(e,t=null!=t?t:{}),function(e,t){var n=[];return b({path:[],table:{"":e},inPair:!1,inTableArray:!1,replace:t.replace,sort:t.sort,level:0,space:x(t.space),lines:n},"",e,(function(e,t,i){var o=null;if(u(i))""!==t&&(n.length>0&&n.push(""),o=e.inTableArray?"[["+r(e.path,!0)+"]]":"["+r(e.path,!0)+"]",n.push(w(o,e.level,e.space)));else{if(!l(i))return a(t)&&(o=g(e,t,i),a(o)&&n.push(w(o,e.level,e.space))),!0;if(!a(t))return!0;c(i)||(o=g(e,t,i),a(o)&&n.push(w(o,e.level,e.space)))}})),n.join("\n")}(e,t)},E.toKey=function(e,t){if(a(e)){if(!(n=m(e)))throw new Error("Key cannot be an empty string.");return n}if(l(e)){var n;if(!1===(n=r(e,t)))throw new Error("Key path must consist of non-empty string(s).");return n}throw new Error("Invalid Arguments for tomlify.toKey({String | Array})")},E.toValue=function(e,t){return k(e,t=null!=t?t:{}),function(e,t){return h({path:[],table:{"":e},inPair:!1,inTableArray:!1,sort:t.sort,replace:t.replace,level:0,space:x(t.space)},"",e)}(e,t)},null!=(null!==e?e.exports:void 0)?e.exports=E:void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n)}).call(this)}).call(this,n(161)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrontmatterInfer=t.FrontmatterFormatter=void 0,t.frontmatterJSON=function(e){return new y(m,e)},t.frontmatterTOML=function(e){return new y(h,e)},t.frontmatterYAML=function(e){return new y(p,e)},t.getFormatOpts=v;var r=l(n(1038)),i=l(n(577)),o=l(n(574)),a=l(n(584));const s=["body"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p="yaml",h="toml",m="json",g={toml:{parse:e=>i.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return i.default.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),a.default.fromFile(t)},stringify:e=>{let t=a.default.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>o.default.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return o.default.toFile(e,n,r)}}};function v(e,t){if(!e)return;const n={yaml:{language:p,delimiters:"---"},toml:{language:h,delimiters:"+++"},json:{language:m,delimiters:["{","}"]}},{language:r,delimiters:i}=n[e];return{language:r,delimiters:t||i}}class y{constructor(e,t){f(this,"format",void 0),this.format=v(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return v(p);case"+++":return v(h);case"{":return v(m);default:console.warn("Unrecognized front-matter format.")}}(e),n=(0,r.default)(e,d({engines:g},t));return d(d({},n.data),n.content.trim()&&{body:n.content})}toFile(e,t,n){const{body:i=""}=e,o=u(e,s),a=this.format||v(p),l="\n"!==i.slice(-1),c=r.default.stringify(i,o,d({engines:g,sortedKeys:t,comments:n},a));return l&&"\n"===c.slice(-1)?c.slice(0,-1):c}}t.FrontmatterFormatter=y;const b=new y;t.FrontmatterInfer=b},function(e,t,n){"use strict";const r=n(1039),i=n(1040),o=n(313),a=n(588),s=n(1065),l=n(585),u=n(1066),c=n(1067),d=n(419);function f(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let n=u(e);const r=f.cache[n.content];if(!t){if(r)return n=Object.assign({},r),n.orig=r.orig,n;f.cache[n.content]=n}return function(e,t){const n=o(t),r=n.delimiters[0],a="\n"+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const u=r.length;if(!d.startsWith(l,r,u))return s(e,n),e;if(l.charAt(u)===r.slice(-1))return e;l=l.slice(u);const p=l.length,h=f.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let m=l.indexOf(a);-1===m&&(m=p);e.matter=l.slice(0,m);""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=c(e.language,e.matter,n);m===p?e.content="":(e.content=l.slice(m+a.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));s(e,n),(!0===n.sections||"function"==typeof n.section)&&i(e,n.section);return e}(n,t)}f.engines=l,f.stringify=function(e,t,n){return"string"==typeof e&&(e=f(e,n)),a(e,t,n)},f.read=function(e,t){const n=f(r.readFileSync(e,"utf8"),t);return n.path=e,n},f.test=function(e,t){return d.startsWith(e,o(t).delimiters[0])},f.language=function(e,t){const n=o(t).delimiters[0];f.test(e)&&(e=e.slice(n.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},f.cache={},f.clearCache=function(){f.cache={}},e.exports=f},function(e,t){},function(e,t,n){"use strict";var r=n(312),i=n(1041);function o(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function a(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var n=function(e){"object"!==r(e)&&(e={content:e});if("string"!=typeof e.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e.content))throw new TypeError("expected a buffer or string");return e.content=e.content.toString(),e.sections=[],e}(e),s=i({},{section_delimiter:"---",parse:a},t),l=s.section_delimiter,u=n.content.split(/\r?\n/),c=null,d={key:"",data:"",content:""},f=[],p=[];function h(e){n.content=e,c=[],f=[]}function m(e){p.length&&(d.key=function(e,t){return e?e.slice(t.length).trim():""}(p[0],l),d.content=e,s.parse(d,c),c.push(d),d={key:"",data:"",content:""},f=[],p=[])}for(var g=0;g<u.length;g++){var v=u[g],y=p.length,b=v.trim();if(o(b,l)){if(3===b.length&&0!==g){if(0===y||2===y){f.push(v);continue}p.push(b),d.data=f.join("\n"),f=[];continue}null===c&&h(f.join("\n")),2===y&&m(f.join("\n")),p.push(b)}else f.push(v)}return null===c?h(f.join("\n")):m(f.join("\n")),n.sections=c,n}},function(e,t,n){"use strict";var r=n(1042);function i(e,t){for(var n in t)o(t,n)&&(e[n]=t[n])}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){r(e)||(e={});for(var t=arguments.length,n=1;n<t;n++){var o=arguments[n];r(o)&&i(e,o)}return e}},function(e,t,n){"use strict";
/*!
* is-extendable <https://github.com/jonschlinkert/is-extendable>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},function(e,t,n){"use strict";var r=n(1044);e.exports=r},function(e,t,n){"use strict";var r=n(1045),i=n(1063);function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(70),e.exports.Schema=n(219),e.exports.FAILSAFE_SCHEMA=n(418),e.exports.JSON_SCHEMA=n(587),e.exports.CORE_SCHEMA=n(586),e.exports.DEFAULT_SAFE_SCHEMA=n(253),e.exports.DEFAULT_FULL_SCHEMA=n(314),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=i.dump,e.exports.safeDump=i.safeDump,e.exports.YAMLException=n(252),e.exports.MINIMAL_SCHEMA=n(418),e.exports.SAFE_SCHEMA=n(253),e.exports.DEFAULT_SCHEMA=n(314),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},function(e,t,n){"use strict";var r=n(218),i=n(252),o=n(1046),a=n(253),s=n(314),l=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,f=/^(?:!|!!|![a-z\-]+!)$/i,p=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}function m(e){return 10===e||13===e}function g(e){return 9===e||32===e}function v(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function _(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var x=new Array(256),k=new Array(256),E=0;E<256;E++)x[E]=_(E)?1:0,k[E]=_(E);function S(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function O(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function C(e,t){throw O(e,t)}function T(e,t){e.onWarning&&e.onWarning.call(null,O(e,t))}var A={YAML:function(e,t,n){var r,i,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==n.length&&C(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&C(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&C(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&T(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&C(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],f.test(r)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,r)&&C(e,'there is a previously declared suffix for "'+r+'" tag handle'),p.test(i)||C(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function P(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||C(e,"expected valid JSON character");else u.test(s)&&C(e,"the stream contains non-printable characters");e.result+=s}}function R(e,t,n,i){var o,a,s,u;for(r.isObject(n)||C(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,u=(o=Object.keys(n)).length;s<u;s+=1)a=o[s],l.call(t,a)||(t[a]=n[a],i[a]=!0)}function j(e,t,n,r,i,o,a,s){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===h(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===h(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)R(e,t,o[u],n);else R(e,t,o,n);else e.json||l.call(n,i)||!l.call(t,i)||(e.line=a||e.line,e.position=s||e.position,C(e,"duplicated mapping key")),t[i]=o,delete n[i];return t}function I(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function M(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&T(e,"deficient indentation"),r}function L(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!v(t)))}function D(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function N(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&v(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,z(e,t,3,!1,!0),a.push(e.result),M(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function F(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&C(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!v(i);)33===i&&(a?C(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),f.test(n)||C(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),d.test(r)&&C(e,"tag suffix cannot contain flow indicator characters")}return r&&!p.test(r)&&C(e,"tag name cannot contain such characters: "+r),o?e.tag=r:l.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:C(e,'undeclared tag handle "'+n+'"'),!0}function B(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&C(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!v(n)&&!y(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function z(e,t,n,i,o){var a,s,u,c,d,f,p,h,_=1,E=!1,S=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=u=4===n||3===n,i&&M(e,!0,-1)&&(E=!0,e.lineIndent>t?_=1:e.lineIndent===t?_=0:e.lineIndent<t&&(_=-1)),1===_)for(;F(e)||B(e);)M(e,!0,-1)?(E=!0,u=a,e.lineIndent>t?_=1:e.lineIndent===t?_=0:e.lineIndent<t&&(_=-1)):u=!1;if(u&&(u=E||o),1!==_&&4!==n||(p=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===_?u&&(N(e,h)||function(e,t,n){var r,i,o,a,s,l=e.tag,u=e.anchor,c={},d={},f=null,p=null,h=null,m=!1,y=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),s=e.input.charCodeAt(e.position);0!==s;){if(r=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!v(r)){if(!z(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);g(s);)s=e.input.charCodeAt(++e.position);if(58===s)v(s=e.input.charCodeAt(++e.position))||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(j(e,c,d,f,p,null),f=p=h=null),y=!0,m=!1,i=!1,f=e.tag,p=e.result;else{if(!y)return e.tag=l,e.anchor=u,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=l,e.anchor=u,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(m&&(j(e,c,d,f,p,null),f=p=h=null),y=!0,m=!0,i=!0):m?(m=!1,i=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=r;if((e.line===o||e.lineIndent>t)&&(z(e,t,4,!0,i)&&(m?p=e.result:h=e.result),m||(j(e,c,d,f,p,h,o,a),f=p=h=null),M(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&j(e,c,d,f,p,null),y&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),y}(e,h,p))||function(e,t){var n,r,i,o,a,s,l,u,c,d,f=!0,p=e.tag,h=e.anchor,m={};if(91===(d=e.input.charCodeAt(e.position)))i=93,s=!1,r=[];else{if(123!==d)return!1;i=125,s=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),d=e.input.charCodeAt(++e.position);0!==d;){if(M(e,!0,t),(d=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=p,e.anchor=h,e.kind=s?"mapping":"sequence",e.result=r,!0;f||C(e,"missed comma between flow collection entries"),c=null,o=a=!1,63===d&&v(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,M(e,!0,t)),n=e.line,z(e,t,1,!1,!0),u=e.tag,l=e.result,M(e,!0,t),d=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==d||(o=!0,d=e.input.charCodeAt(++e.position),M(e,!0,t),z(e,t,1,!1,!0),c=e.result),s?j(e,r,m,u,l,c):o?r.push(j(e,null,m,u,l,c)):r.push(l),M(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}C(e,"unexpected end of the stream within a flow collection")}(e,p)?S=!0:(s&&function(e,t){var n,i,o,a,s,l=1,u=!1,c=!1,d=t,f=0,p=!1;if(124===(a=e.input.charCodeAt(e.position)))i=!1;else{if(62!==a)return!1;i=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===l?l=43===a?3:2:C(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===o?C(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?C(e,"repeat of an indentation width identifier"):(d=t+o-1,c=!0)}if(g(a)){do{a=e.input.charCodeAt(++e.position)}while(g(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(I(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndent<d)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>d&&(d=e.lineIndent),m(a))f++;else{if(e.lineIndent<d){3===l?e.result+=r.repeat("\n",u?1+f:f):1===l&&u&&(e.result+="\n");break}for(i?g(a)?(p=!0,e.result+=r.repeat("\n",u?1+f:f)):p?(p=!1,e.result+=r.repeat("\n",f+1)):0===f?u&&(e.result+=" "):e.result+=r.repeat("\n",f):e.result+=r.repeat("\n",u?1+f:f),u=!0,c=!0,f=0,n=e.position;!m(a)&&0!==a;)a=e.input.charCodeAt(++e.position);P(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(P(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else m(n)?(P(e,r,i,!0),D(e,M(e,!1,t)),r=i=e.position):e.position===e.lineStart&&L(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);C(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,i,o,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return P(e,n,e.position,!0),e.position++,!0;if(92===s){if(P(e,n,e.position,!0),m(s=e.input.charCodeAt(++e.position)))M(e,!1,t);else if(s<256&&x[s])e.result+=k[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(i=a,o=0;i>0;i--)(a=b(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:C(e,"expected hexadecimal character");e.result+=w(o),e.position++}else C(e,"unknown escape sequence");n=r=e.position}else m(s)?(P(e,n,r,!0),D(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&L(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?S=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!v(r)&&!y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),l.call(e.anchorMap,n)||C(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],M(e,!0,-1),!0}(e)?function(e,t,n){var r,i,o,a,s,l,u,c,d=e.kind,f=e.result;if(v(c=e.input.charCodeAt(e.position))||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(v(r=e.input.charCodeAt(e.position+1))||n&&y(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==c;){if(58===c){if(v(r=e.input.charCodeAt(e.position+1))||n&&y(r))break}else if(35===c){if(v(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&L(e)||n&&y(c))break;if(m(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}}a&&(P(e,i,o,!1),D(e,e.line-s),i=o=e.position,a=!1),g(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return P(e,i,o,!1),!!e.result||(e.kind=d,e.result=f,!1)}(e,p,1===n)&&(S=!0,null===e.tag&&(e.tag="?")):(S=!0,null===e.tag&&null===e.anchor||C(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===_&&(S=u&&N(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&C(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,d=e.implicitTypes.length;c<d;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else l.call(e.typeMap[e.kind||"fallback"],e.tag)?(f=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&f.kind!==e.kind&&C(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result)?(e.result=f.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):C(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):C(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||S}function U(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(M(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&I(e),l.call(A,n)?A[n](e,n,r):T(e,'unknown document directive "'+n+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):a&&C(e,"directives end mark is expected"),z(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(o,e.position))&&T(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&L(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}function q(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new S(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,C(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)U(n);return n.documents}function W(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=q(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function H(e,t){var n=q(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=W,e.exports.load=H,e.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),W(e,t,r.extend({schema:a},n))},e.exports.safeLoad=function(e,t){return H(e,r.extend({schema:a},t))}},function(e,t,n){"use strict";var r=n(218);function i(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=i},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(218),i=n(70);function o(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,s=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;s=!0}return s&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s&&"_"!==t}for(;i<r;i++)if("_"!==(t=e[i])){if(!o(e.charCodeAt(i)))return!1;s=!0}return s&&"_"!==t}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(":"===t)break;if(!a(e.charCodeAt(i)))return!1;s=!0}return!(!s||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(i)))},construct:function(e){var t,n,r=e,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(i=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach((function(e){o.unshift(parseInt(e,10))})),r=0,n=1,o.forEach((function(e){r+=e*n,n*=60})),i*r):i*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var r=n(218),i=n(70),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,i;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,r=1,i.forEach((function(e){t+=e*r,r*=60})),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(70),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==o.exec(e))},construct:function(e){var t,n,r,a,s,l,u,c,d=0,f=null;if(null===(t=i.exec(e))&&(t=o.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(s=+t[4],l=+t[5],u=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),c=new Date(Date.UTC(n,r,a,s,l,u,d)),f&&c.setTime(c.getTime()-f),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var r;try{r=n(196).Buffer}catch(e){}var i=n(70),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,a=o;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=o,l=0,u=[];for(t=0;t<a;t++)t%4==0&&t&&(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)),l=l<<6|s.indexOf(i.charAt(t));return 0===(n=a%4*6)?(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)):18===n?(u.push(l>>10&255),u.push(l>>2&255)):12===n&&u.push(l>>4&255),r?r.from?r.from(u):new r(u):u},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,a=e.length,s=o;for(t=0;t<a;t++)t%3==0&&t&&(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0===(n=a%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}})},function(e,t,n){"use strict";var r=n(70),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,l=[],u=e;for(t=0,n=u.length;t<n;t+=1){if(r=u[t],s=!1,"[object Object]"!==o.call(r))return!1;for(a in r)if(i.call(r,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==l.indexOf(a))return!1;l.push(a)}return!0},construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(70),i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==i.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}})},function(e,t,n){"use strict";var r=n(70),i=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},function(e,t,n){"use strict";var r=n(70);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var r;try{r=n(!function(){var e=new Error("Cannot find module 'esprima'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var i=n(70);e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",i=r.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(e){o.push(e.name)})),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(t[0]+1,t[1]-1)):new Function(o,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t,n){"use strict";var r=n(218),i=n(252),o=n(314),a=n(253),s=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},c=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function d(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+r.repeat("0",o-t.length)+t}function f(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,a,s,u;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)a=r[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=e.compiledTypeMap.fallback[a])&&l.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function p(e,t){for(var n,i=r.repeat(" ",t),o=0,a=-1,s="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(s+=i),s+=n;return s}function h(e,t){return"\n"+r.repeat(" ",e.indent*t)}function m(e){return 32===e||9===e}function g(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function v(e,t){return g(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return g(e)&&!m(e)&&65279!==e&&13!==e&&10!==e}(t))}function y(e){return/^\n* /.test(e)}function b(e,t,n,r,i){var o,a,s,l,u=!1,c=!1,d=-1!==r,f=-1,p=g(l=e.charCodeAt(0))&&65279!==l&&!m(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!m(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!g(a=e.charCodeAt(o)))return 5;s=o>0?e.charCodeAt(o-1):null,p=p&&v(a,s)}else{for(o=0;o<e.length;o++){if(10===(a=e.charCodeAt(o)))u=!0,d&&(c=c||o-f-1>r&&" "!==e[f+1],f=o);else if(!g(a))return 5;s=o>0?e.charCodeAt(o-1):null,p=p&&v(a,s)}c=c||d&&o-f-1>r&&" "!==e[f+1]}return u||c?n>9&&y(e)?5:c?4:3:p&&!i(e)?1:2}function _(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==c.indexOf(t))return"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(b(t,s,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}))){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+w(t,e.indent)+x(p(t,o));case 4:return">"+w(t,e.indent)+x(p(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,i.lastIndex=s,k(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=i.exec(e);){var l=r[1],u=r[2];n=" "===u[0],o+=l+(a||n||""===u?"":"\n")+k(u,t),a=n}return o}(t,a),o));case 5:return'"'+function(e){for(var t,n,r,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343?(i+=d(1024*(t-55296)+n-56320+65536),o++):(r=u[t],i+=!r&&g(t)?e[o]:r||d(t));return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function w(e,t){var n=y(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function k(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,l="";n=i.exec(e);)(s=n.index)-o>t&&(r=a>o?a:s,l+="\n"+e.slice(o,r),o=r+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function E(e,t,n){var r,o,a,u,c,d;for(a=0,u=(o=n?e.explicitTypes:e.implicitTypes).length;a<u;a+=1)if(((c=o[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=n?c.tag:"?",c.represent){if(d=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===s.call(c.represent))r=c.represent(t,d);else{if(!l.call(c.represent,d))throw new i("!<"+c.tag+'> tag resolver accepts not "'+d+'" style');r=c.represent[d](t,d)}e.dump=r}return!0}return!1}function S(e,t,n,r,o,a){e.tag=null,e.dump=n,E(e,n,!1)||E(e,n,!0);var l=s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var u,c,d="[object Object]"===l||"[object Array]"===l;if(d&&(c=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(o=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,a,s,l,u,c,d="",f=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)c="",r&&0===o||(c+=h(e,t)),l=n[s=p[o]],S(e,t+1,s,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=h(e,t)),S(e,t+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",d+=c+=e.dump));e.tag=f,e.dump=d||"{}"}(e,t,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,a,s,l="",u=e.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)s="",0!==r&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=c[r]],S(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l){var f=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(!function(e,t,n,r){var i,o,a="",s=e.tag;for(i=0,o=n.length;i<o;i+=1)S(e,t+1,n[i],!0,!0)&&(r&&0===i||(a+=h(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,f,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)S(e,t,n[r],!1,!1)&&(0!==r&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,f,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else{if("[object String]"!==l){if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&_(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function O(e,t){var n,r,i=[],o=[];for(function e(t,n,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)e(t[o],n,r);else for(i=Object.keys(t),o=0,a=i.length;o<a;o+=1)e(t[i[o]],n,r)}(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function C(e,t){var n=new f(t=t||{});return n.noRefs||O(e,n),S(n,0,e,!0,!0)?n.dump+"\n":""}e.exports.dump=C,e.exports.safeDump=function(e,t){return C(e,r.extend({schema:a},t))}},function(e,t,n){"use strict";
/*!
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
*
* Copyright (c) 2015, 2017, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}},function(e,t,n){"use strict";const r=n(313);e.exports=function(e,t){const n=r(t);if(null==e.data&&(e.data={}),"function"==typeof n.excerpt)return n.excerpt(e,n);const i=e.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return e;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],a=e.content.indexOf(o);return-1!==a&&(e.excerpt=e.content.slice(0,a)),e}},function(e,t,n){"use strict";const r=n(312),i=n(588),o=n(419);e.exports=function(e){return"object"!==r(e)&&(e={content:e}),"object"!==r(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),o.define(e,"orig",o.toBuffer(e.content)),o.define(e,"language",e.language||""),o.define(e,"matter",e.matter||""),o.define(e,"stringify",(function(t,n){return n&&n.language&&(e.language=n.language),i(e,t,n)})),e.content=o.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},function(e,t,n){"use strict";const r=n(589),i=n(313);e.exports=function(e,t,n){const o=i(n),a=r(e,o);if("function"!=typeof a.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return a.parse(t,o)}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function u(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(l(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):u(e,t,n):o(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var d=c;e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateConfig=function(e){const t=new r.default({allErrors:!0,$data:!0,strict:!1});(0,i.uniqueItemProperties)(t),(0,i.select)(t),(0,i.instanceof)(t),(0,i.prohibited)(t),(0,o.default)(t);if(!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:g,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow"],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},fields:b()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string",enum:Object.keys(s.formatExtensions)},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:b(),sortable_fields:{type:"array",items:{type:"string"}},sortableFields:{type:"array",items:{type:"string"}},view_filters:_,view_groups:w,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget","index_file"]}},additionalProperties:!1,minProperties:1},i18n:v},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(s.extensionFormatters)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:s.frontmatterFormats}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map(e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n=f(f({},e),{},{message:"fields names must be unique"}):t.endsWith("/files")?n=f(f({},e),{},{message:"files names must be unique"}):t.endsWith("/collections")&&(n=f(f({},e),{},{message:"collections names must be unique"})),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n=f(f({},e),{},{message:"must be a regular expression"})),n}default:return e}});throw console.error("Config Errors",e),new k(e)}};var r=c(n(590)),i=n(1113),o=c(n(1146)),a=c(n(169)),s=n(409),l=n(136),u=n(199);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={type:"string",minLength:2,maxLength:10,pattern:"^[a-zA-Z-_]+$"},m={type:"object",properties:{structure:{type:"string",enum:Object.values(u.I18N_STRUCTURE)},locales:{type:"array",minItems:2,items:h,uniqueItems:!0},default_locale:h}},g=f(f({},m),{},{required:["structure","locales"]}),v={oneOf:[{type:"boolean"},m]},y={oneOf:[{type:"boolean"},{type:"string",enum:Object.values(u.I18N_FIELD)}]};function b(){const e=(0,a.default)();return{$id:"fields_"+e,type:"array",minItems:1,items:{$id:"field_"+e,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:y,hint:{type:"string"},pattern:{type:"array",minItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:"field_"+e},fields:{$ref:"fields_"+e},types:{$ref:"fields_"+e}},select:{$data:"0/widget"},selectCases:f({},x()),required:["name"]},uniqueItemProperties:["name"]}}const _={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"}]}},additionalProperties:!1,required:["label","field","pattern"]}},w={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},additionalProperties:!1,required:["label","field"]}};function x(){const e=(0,l.getWidgets)().map(e=>({[e.name]:e.schema}));return Object.assign(...e)}class k extends(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)){constructor(e){const t=e.map(e=>{let{message:t,instancePath:n}=e;const r=n.slice(1).split("/").map(e=>e.match(/^\d+$/)?`[${e}]`:"."+e).join("").slice(1);return`${r?`'${r}'`:"config"} ${t}`}).join("\n");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];super(t,...r),this.errors=e,this.message=t}toString(){return this.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(254);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(35);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(595),a=n(596),s=n(592),l=n(597),u=n(35),c=n(316),d=n(315),f=n(44),p=n(1076),h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7/8.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now, see option `strict`."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function y(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_;const w=e.strict,x=null===(t=e.code)||void 0===t?void 0:t.optimize,k=!0===x||void 0===x?1:x||0;return{strictSchema:null===(r=null!==(n=e.strictSchema)&&void 0!==n?n:w)||void 0===r||r,strictNumbers:null===(o=null!==(i=e.strictNumbers)&&void 0!==i?i:w)||void 0===o||o,strictTypes:null!==(s=null!==(a=e.strictTypes)&&void 0!==a?a:w)&&void 0!==s?s:"log",strictTuples:null!==(u=null!==(l=e.strictTuples)&&void 0!==l?l:w)&&void 0!==u?u:"log",strictRequired:null!==(d=null!==(c=e.strictRequired)&&void 0!==c?c:w)&&void 0!==d&&d,code:e.code?{...e.code,optimize:k}:{optimize:k},loopRequired:null!==(f=e.loopRequired)&&void 0!==f?f:200,loopEnum:null!==(p=e.loopEnum)&&void 0!==p?p:200,meta:null===(h=e.meta)||void 0===h||h,messages:null===(m=e.messages)||void 0===m||m,inlineRefs:null===(g=e.inlineRefs)||void 0===g||g,addUsedSchema:null===(v=e.addUsedSchema)||void 0===v||v,validateSchema:null===(y=e.validateSchema)||void 0===y||y,validateFormats:null===(b=e.validateFormats)||void 0===b||b,unicodeRegExp:null===(_=e.unicodeRegExp)||void 0===_||_}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),this.logger=function(e){if(!1===e)return O;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=s.getRules(),_.call(this,g,e,"NOT SUPPORTED"),_.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t}=this.opts;t&&e&&this.addMetaSchema(p,p.$id,!1)}defaultMeta(){const{meta:e}=this.opts;return this.opts.defaultMeta="object"==typeof e?e.$id||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e&&(i=e.$id,void 0!==i&&"string"!=typeof i))throw new Error("schema $id must be string");return t=c.normalizeId(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){const n=new l.SchemaEnv({schema:{}});if(t=l.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=w.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e.$id;return n&&(n=c.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(T.call(this,n,t),!t)return f.eachItem(n,e=>A.call(this,e)),this;R.call(this,t);const r={...t,type:d.getJSONTypes(t.type),schemaType:d.getJSONTypes(t.schemaType)};return f.eachItem(n,0===r.type.length?e=>A.call(this,e,r):e=>r.type.forEach(t=>A.call(this,e,r,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=I(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;if("object"==typeof e)o=e.$id;else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;const s=c.getSchemaRefs.call(this,e);return n=c.normalizeId(o||n),a=new l.SchemaEnv({schema:e,meta:t,baseId:n,localRefs:s}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function w(e){return e=c.normalizeId(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function k(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function S(){const e={...this.opts};for(const t of h)delete e[t];return e}t.default=b,b.ValidationError=o.default,b.MissingRefError=a.default;const O={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function T(e,t){const{RULES:n}=this;if(f.eachItem(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function A(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find(({type:e})=>e===n);if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:d.getJSONTypes(t.type),schemaType:d.getJSONTypes(t.schemaType)}};t.before?P.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach(e=>this.addKeyword(e))}function P(e,t,n){const r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=I(t)),e.validateSchema=this.compile(t,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function I(e){return{anyOf:[e,j]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(255),i=n(35),o=n(148),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};r.reportError(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(35),i=n(44);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const u=r._`${s}${r.getProperty(t)}`;if(a)return void i.checkStrictMode(e,"default is ignored for: "+u);let c=r._`${u} === undefined`;"empty"===l.useDefaults&&(c=r._`${c} || ${u} === null || ${u} === ""`),o.if(c,r._`${u} = ${r.stringify(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach((t,n)=>o(e,n,t.default))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(35),i=n(148),o=n(125),a=n(255);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:r.stringify(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,u=t.macro.call(s.self,o,a,s),c=l(n,i,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);const d=n.name("valid");e.subschema({schema:u,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var n;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!p&&t.compile?t.compile.call(h.self,d,f,h):t.validate,g=l(u,c,m),v=u.let("valid");function y(n=(t.async?r._`await `:r.nil)){const a=h.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!p||!1===t.schema);u.assign(v,r._`${n}${o.callValidateCode(e,g,a,s)}`,t.modifying)}function b(e){var n;u.if(r.not(null!==(n=t.valid)&&void 0!==n?n:v),e)}e.block$data(v,(function(){if(!1===t.errors)y(),t.modifying&&s(e),b(()=>e.error());else{const n=t.async?function(){const e=u.let("ruleErrs",null);return u.try(()=>y(r._`await `),t=>u.assign(v,!1).if(r._`${t} instanceof ${h.ValidationError}`,()=>u.assign(e,r._`${t}.errors`),()=>u.throw(t))),e}():function(){const e=r._`${g}.errors`;return u.assign(e,null),y(r.nil),e}();t.modifying&&s(e),b(()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),a.extendErrors(e)},()=>e.error())}(e,n))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:v)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(35),i=n(44);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${r.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${r.getProperty(t)}${r.getProperty(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${i.escapeFragment(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;c(u.let("data",r._`${t.data}${r.getProperty(n)}`,!0)),e.errorPath=r.str`${a}${i.getErrorPath(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==a){c(a instanceof r.Name?a:u.let("data",a,!0)),void 0!==l&&(e.propertyName=l)}function c(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},function(e,t,n){"use strict";var r=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),function e(t,n,i,o,a,s,l,u,c,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,a,s,l,u,c,d),o){var p=o[f];if(Array.isArray(p)){if(f in r.arrayKeywords)for(var h=0;h<p.length;h++)e(t,n,i,p[h],a+"/"+f+"/"+h,s,a,f,o,h)}else if(f in r.propsKeywords){if(p&&"object"==typeof p)for(var m in p)e(t,n,i,p[m],a+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,f,o,m)}else(f in r.keywords||t.allKeys&&!(f in r.skipKeywords))&&e(t,n,i,p,a+"/"+f,s,a,f,o)}i(o,a,s,l,u,c,d)}}(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},function(e){e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1078),i=n(1081),o=n(1093),a=n(1107),s=n(1109),l=[r.default,i.default,o.default(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1079),i=n(1080),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(596),i=n(125),o=n(35),a=n(148),s=n(597),l=n(44),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:p}=i,{root:h}=l;if(("#"===n||"#/"===n)&&a===h.baseId)return function(){if(l===h)return d(e,u,l,l.$async);const n=t.scopeValue("root",{ref:h});return d(e,o._`${n}.validate`,h,h.$async)}();const m=s.resolveRef.call(p,h,a,n);if(void 0===m)throw new r.default(a,n);return m instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===f.code.source?{ref:r,code:o.stringify(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,p=f.passContext?a.default.this:o.nil;function h(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=l.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",o._`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=l.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",o._`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try(()=>{s.code(o._`await ${i.callValidateCode(e,t,p)}`),m(t),c||s.assign(n,!0)},e=>{s.if(o._`!(${e} instanceof ${u.ValidationError})`,()=>s.throw(e)),h(e),c||s.assign(n,!1)}),e.ok(n)}():e.result(i.callValidateCode(e,t,p),()=>m(t),()=>h(t))}t.getValidate=c,t.callRef=d,t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1082),i=n(1083),o=n(1084),a=n(1086),s=n(1087),l=n(1088),u=n(1089),c=n(1090),d=n(1091),f=n(1092),p=[r.default,i.default,o.default,a.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o=n(1085),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===s.opts.unicode?r._`${n}.length`:r._`${i.useFunc(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${l} ${a}`)}};t.default=a},function(e,t,n){"use strict";function r(e){const t=e.length;let n,r=0,i=0;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),56320==(64512&n)&&i++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(125),i=n(35),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",u=n?i._`(new RegExp(${a}, ${l}))`:r.usePattern(e,o);e.fail$data(i._`!${u}.test(${t})`)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(125),i=n(35),o=n(44),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===n.length)return;const d=n.length>=c.loopRequired;if(u.allErrors?function(){if(d||l)e.block$data(i.nil,f);else for(const t of n)r.checkReportMissingProp(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,()=>{t.assign(o,r.propertyInData(t,s,n,c.ownProperties)),t.if(i.not(o),()=>{e.error(),t.break()})},i.nil)}(o,n)),e.ok(n)}else t.if(r.checkMissingProp(e,n,o)),r.reportMissingProp(e,o),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;o.checkStrictMode(u,t,u.opts.strictRequired)}}function f(){t.forOf("prop",a,n=>{e.setParams({missingProperty:n}),t.if(r.noPropertyInData(t,s,n,c.ownProperties),()=>e.error())})}}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(315),i=n(35),o=n(44),a=n(421),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:u,schemaCode:c,it:d}=e;if(!s&&!l)return;const f=t.let("valid"),p=u.items?r.getSchemaTypes(u.items):[];function h(o,a){const s=t.name("item"),l=r.checkDataTypes(p,s,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),p.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${u}[${s}] == "number"`,()=>{t.assign(a,i._`${u}[${s}]`),e.error(),t.assign(f,!1).break()}).code(i._`${u}[${s}] = ${o}`)})}function m(r,s){const l=o.useFunc(t,a.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,()=>t.for(i._`${s} = ${r}; ${s}--;`,()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,()=>{e.error(),t.assign(f,!1).break(u)})))}e.block$data(f,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(f,!0),t.if(i._`${r} > 1`,()=>(p.length>0&&!p.some(e=>"object"===e||"array"===e)?h:m)(r,o))}),i._`${c} === false`),e.ok(f)}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o=n(421),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,schemaCode:a}=e;e.fail$data(r._`!${i.useFunc(t,o.default)}(${n}, ${a})`)}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o=n(421),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:u}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=u.opts.loopEnum,d=i.useFunc(t,o.default);let f;if(c||a)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",l,e=>t.if(r._`${d}(${n}, ${e})`,()=>t.assign(f,!0).break()))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);f=r.or(...s.map((t,i)=>function(e,t){const i=s[t];return i&&"object"==typeof i?r._`${d}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i)))}e.pass(f)}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(598),i=n(1094),o=n(599),a=n(1095),s=n(1096),l=n(1097),u=n(1098),c=n(600),d=n(1099),f=n(1100),p=n(1101),h=n(1102),m=n(1103),g=n(1104),v=n(1105),y=n(1106);t.default=function(e=!1){const t=[p.default,h.default,m.default,g.default,v.default,y.default,u.default,c.default,l.default,d.default,f.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(599),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>r.validateTuple(e,"items")};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o=n(125),a=n(598),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,i.alwaysValidSchema(r,t)||(s?a.validateAdditionalItems(e,s):e.ok(o.validateArray(e)))}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,u;const{minContains:c,maxContains:d}=o;s.opts.next?(l=void 0===c?1:c,u=d):l=1;const f=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:u}),void 0===u&&0===l)return void i.checkStrictMode(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&l>u)return i.checkStrictMode(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if(i.alwaysValidSchema(s,n)){let t=r._`${f} >= ${l}`;return void 0!==u&&(t=r._`${t} && ${f} <= ${u}`),void e.pass(t)}s.items=!0;const p=t.name("valid");if(void 0===u&&1===l)h(p,()=>t.if(p,()=>t.break()));else{t.let(p,!1);const e=t.name("_valid"),n=t.let("count",0);h(e,()=>t.if(e,()=>function(e){t.code(r._`${e}++`),void 0===u?t.if(r._`${e} >= ${l}`,()=>t.assign(p,!0).break()):(t.if(r._`${e} > ${u}`,()=>t.assign(p,!1).break()),1===l?t.assign(p,!0):t.if(r._`${e} >= ${l}`,()=>t.assign(p,!0)))}(n)))}function h(n,r){t.forRange("i",0,f,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()})}e.result(p,()=>e.reset())}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(35),i=n(44),o=n(125);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
missingProperty: ${i},
depsCount: ${t},
deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e){if("__proto__"===r)continue;(Array.isArray(e[r])?t:n)[r]=e[r]}return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const u=t[l];if(0===u.length)continue;const c=o.propertyInData(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?n.if(c,()=>{for(const t of u)o.checkReportMissingProp(e,t)}):(n.if(r._`${c} && (${o.checkMissingProp(e,u,s)})`),o.reportMissingProp(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const u in t)i.alwaysValidSchema(s,t[u])||(n.if(o.propertyInData(n,r,u,s.opts.ownProperties),()=>{const t=e.subschema({keyword:a,schemaProp:u},l);e.mergeValidEvaluated(t,l)},()=>n.var(l,!0)),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if(i.alwaysValidSchema(a,n))return;const s=t.name("valid");t.forIn("key",o,n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if(r.not(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(254),i=n(125),o=n(44),a=n(600),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(u,a.default,"additionalProperties"));const c=i.allSchemaProperties(n);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,o.toHash(c),u.props));const d=c.filter(e=>!o.alwaysValidSchema(u,n[e]));if(0===d.length)return;const f=t.name("valid");for(const n of d)p(n)?h(n):(t.if(i.propertyInData(t,l,n,u.opts.ownProperties)),h(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(125),i=n(35),o=n(44),a=n(44),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:u}=e,{opts:c}=u,d=r.schemaProperties(u,n);if(0===d.length)return;const f=c.strictSchema&&!c.allowMatchingProperties&&l.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=a.evaluatedPropsToName(t,u.props));const{props:h}=u;function m(e){for(const t in f)new RegExp(e).test(t)&&o.checkStrictMode(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",s,o=>{t.if(i._`${r.usePattern(e,n)}.test(${o})`,()=>{e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},p),u.opts.unevaluated&&!0!==h?t.assign(i._`${h}[${o}]`,!0):u.allErrors||t.if(i.not(p),()=>t.break())})})}!function(){for(const e of d)f&&m(e),u.allErrors?g(e):(t.var(p,!0),g(e),t.if(p))}()}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if(r.alwaysValidSchema(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.result(o,()=>e.error(),()=>e.reset())},error:{message:"must NOT be valid"}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(125).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block((function(){s.forEach((n,o)=>{let s;i.alwaysValidSchema(a,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&t.if(r._`${c} && ${l}`).assign(l,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(c,()=>{t.assign(l,!0),t.assign(u,o),s&&e.mergeEvaluated(s,r.Name)})})})),e.result(l,()=>e.reset(),()=>e.error(!0))}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((t,n)=>{if(r.alwaysValidSchema(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)})}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(44),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&i.checkStrictMode(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const u=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if(r.not(c),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},c);t.assign(u,c),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,()=>e.error(!0))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!i.alwaysValidSchema(e,n)}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(44),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&r.checkStrictMode(n,`"${e}" without "if" is ignored`)}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(1108).default];t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=l;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:f.formats,code:u.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),c=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,()=>n.assign(l,r._`${a}.type || "string"`).assign(c,r._`${a}.validate`),()=>n.assign(l,r._`"string"`).assign(c,a)),e.fail$data(r.or(!1===u.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:r._`${c}(${i})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return r._`${c} && ${c} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1===u.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}}();if(!0===o)return;const[s,l,p]=function(e){const t=e instanceof RegExp?r.regexpCode(e):u.code.formats?r._`${u.code.formats}${r.getProperty(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,r._`${i}.validate`];return["string",e,i]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${i})`}return"function"==typeof l?r._`${p}(${i})`:r._`${p}.test(${i})`}())}())}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(1111),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:o,parentSchema:a,it:s}=e,{oneOf:l}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=o.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),d=t.const("tag",r._`${n}${r.getProperty(u)}`);function f(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${d} == "string"`,()=>function(){const n=function(){var e;const t={},n=i(a);let r=!0;for(let t=0;t<l.length;t++){const a=l[t],s=null===(e=a.properties)||void 0===e?void 0:e[u];if("object"!=typeof s)throw new Error(`discriminator: oneOf schemas must have "properties/${u}"`);r=r&&(n||i(a)),o(s,t)}if(!r)throw new Error(`discriminator: "${u}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(u)}function o(e,t){if(e.const)s(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`);for(const n of e.enum)s(n,t)}}function s(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${u}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${d} === ${e}`),t.assign(c,f(n[e]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:d,tagName:u}),t.endIf()}(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:d,tagName:u})),e.ok(c)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1114)),o=r(n(1116)),a=r(n(1118)),s=r(n(1120)),l=r(n(1122)),u=r(n(1124)),c=r(n(1126)),d=r(n(1128)),f=r(n(1130)),p=r(n(1132)),h=r(n(1134)),m=r(n(1136)),g=r(n(1138)),v=r(n(1140)),y=r(n(1142)),b=r(n(1144)),_={typeof:i.default,instanceof:o.default,range:a.default,exclusiveRange:s.default,regexp:l.default,transform:u.default,uniqueItemProperties:c.default,allRequired:d.default,anyRequired:f.default,oneRequired:p.default,patternRequired:h.default,prohibited:m.default,deepProperties:g.default,deepRequired:v.default,dynamicDefaults:y.default,select:b.default};t.default=_,e.exports=_},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1115)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=["undefined","string","number","object","function","boolean","symbol"];function o(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:n,schemaValue:i}=e;e.fail("string"==typeof n?r._`typeof ${t} != ${n}`:r._`${i}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:i},{type:"array",items:{type:"string",enum:i}}]}}}t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1117)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0});const r={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};void 0!==n&&(r.Buffer=n),"undefined"!=typeof Promise&&(r.Promise=Promise);const i=Object.assign((function(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if("string"==typeof e){const t=o(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(o);return e=>{for(const n of t)if(e instanceof n)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}),{CONSTRUCTORS:r});function o(e){const t=r[e];if(t)return t;throw new Error('invalid "instanceof" keyword value '+e)}t.default=i,e.exports=i}).call(this,n(196).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1119)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(601)).default)("range");t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1121)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(601)).default)("exclusiveRange");t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1123)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(317),o={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:n}=e,o=function(t){if("object"==typeof t)return(0,i.usePattern)(e,t.pattern,t.flags);const n=a.exec(t);if(n)return(0,i.usePattern)(e,n[1],n[2]);throw new Error("cannot parse string into RegExp")}(n);e.pass(r._`${o}.test(${t})`)},metaSchema:{anyOf:[{type:"string"},o]}}}t.default=s,e.exports=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1125)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(null==t?void 0:t.hash[a(e)])||e},o=Object.assign((function(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:n,schema:o,parentSchema:s,it:l}=e,{parentData:u,parentDataProperty:c}=l,d=o;if(!d.length)return;let f;if(d.includes("toEnumCase")){const e=function(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const n of e.enum){if("string"!=typeof n)continue;const e=a(n);if(t.hash[e])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');t.hash[e]=n}return t}(s);f=t.scopeValue("obj",{ref:e,code:(0,r.stringify)(e)})}t.if(r._`typeof ${n} == "string" && ${u} !== undefined`,()=>{t.assign(n,function e(o){if(!o.length)return n;const a=o.pop();if(!(a in i))throw new Error("transform: unknown transformation "+a);const s=t.scopeValue("func",{ref:i[a],code:r._`require("ajv-keywords/dist/definitions/transform").transform${(0,r.getProperty)(a)}`}),l=e(o);return f&&"toEnumCase"===a?r._`${s}(${l}, ${f})`:r._`${s}(${l})`}(d.slice())),t.assign(r._`${u}[${c}]`,n)})},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(i)}}}}),{transform:i});function a(e){return e.toLowerCase()}t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1127)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(274),i=["number","integer","string","boolean","null"];function o(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const n=function(e,t){return e.map(e=>{var n,r,o;const a=null===(o=null===(r=null===(n=t.items)||void 0===n?void 0:n.properties)||void 0===r?void 0:r[e])||void 0===o?void 0:o.type;return Array.isArray(a)?!a.includes("object")&&!a.includes("array"):i.includes(a)})}(e,t);return t=>{if(t.length<=1)return!0;for(let i=0;i<e.length;i++){const o=e[i];if(n[i]){const e={};for(const n of t){if(!n||"object"!=typeof n)continue;let t=n[o];if(!t||"object"!=typeof t){if("string"==typeof t&&(t='"'+t),e[t])return!1;e[t]=!0}}}else for(let e=t.length;e--;){const n=t[e];if(n&&"object"==typeof n)for(let i=e;i--;){const e=t[i];if(e&&"object"==typeof e&&r(n[o],e[o]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1129)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";function r(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return!0;const n=Object.keys(t.properties);return 0===n.length||{required:n}},dependencies:["properties"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=r},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1131)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(602)).default)("anyRequired");t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1133)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=(0,r(n(602)).default)("oneRequired");t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1135)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(317),o={message:({params:{missingPattern:e}})=>r.str`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>r._`{missingPattern: ${e}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:o,code(e){const{gen:t,schema:n,data:o}=e;if(0===n.length)return;const a=t.let("valid",!0);for(const e of n)s(e);function s(n){const s=t.let("matched",!1);t.forIn("key",o,o=>{t.assign(s,r._`${(0,i.usePattern)(e,n)}.test(${o})`),t.if(s,()=>t.break())}),e.setParams({missingPattern:n}),t.assign(a,(0,r.and)(a,s)),e.pass(a)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1137)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";function r(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return 0===e.length||(1===e.length?{not:{required:e}}:{not:{anyOf:e.map(e=>({required:[e]}))}})},metaSchema:{type:"array",items:{type:"string"}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=r},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1139)),o=(e,t)=>e.addKeyword((0,i.default)(t));t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(317);function i(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const n in e)t.push(o(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(e)}}}function o(e,t){const n=e.split("/"),r={};let i=r;for(let e=1;e<n.length;e++){let r=n[e];const o=e===n.length-1;r=r.replace(/~1/g,"/").replace(/~0/g,"~");const a=i.properties={};let s;if(/[0-9]+/.test(r)){let e=+r;for(s=i.items=[],i.type=["object","array"];e--;)s.push({})}else i.type="object";i=o?t:{},a[r]=i,s&&s.push(i)}return r}t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1141)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35);function i(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:n}=e,i=t.map(e=>r._`(${function(e){if(""===e)throw new Error("empty JSON pointer not allowed");const t=e.split("/");let i=n;const o=t.map((e,t)=>t?i=r._`${i}${(0,r.getProperty)(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}(e))}`:i);return(0,r.and)(...o)}(e)}) === undefined`);e.fail((0,r.or)(...i))},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=i,e.exports=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1143)),o=e=>e.addKeyword((0,i.default)());t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={},i={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const n=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*n)},seq:e=>{var t;const n=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return r[n]||(r[n]=0),()=>r[n]++}},o=Object.assign((function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,n){if(!n.opts.useDefaults||n.compositeRule)return()=>!0;const r={};for(const t in e)r[t]="object"==typeof(o=e[t])?function({func:e,args:t}){const n=i[e];return a(e,n),n(t)}(o):function(e=""){const t=i[e];return a(e,t),t()}(o);var o;const s="empty"===n.opts.useDefaults;return t=>{for(const n in e)(void 0===t[n]||s&&(null===t[n]||""===t[n]))&&(t[n]=r[n]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}),{DEFAULTS:i});function a(e,t){if(!t)throw new Error('invalid "dynamicDefaults" keyword property value: '+e)}t.default=o,e.exports=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1145)),o=(e,t)=>((0,i.default)(t).forEach(t=>e.addKeyword(t)),e);t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(35),i=n(317),o={message:({params:{schemaProp:e}})=>e?r.str`should match case "${e}" schema`:r.str`should match default case schema`,params:({params:{schemaProp:e}})=>e?r._`{failingCase: ${e}}`:r._`{failingDefault: true}`};function a(e){const t=(0,i.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:o,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:n,parentSchema:i}=e;e.block$data(r.nil,()=>{const o=t.let("valid",!0),a=t.name("_valid"),s=t.const("value",r._`${n} === null ? "null" : ${n}`);t.if(!1);for(const n in i.selectCases){e.setParams({schemaProp:n}),t.elseIf(r._`"" + ${s} == ${n}`);const i=e.subschema({keyword:"selectCases",schemaProp:n},a);e.mergeEvaluated(i,r.Name),t.assign(o,a)}if(t.else(),void 0!==i.selectDefault){e.setParams({schemaProp:void 0});const n=e.subschema({keyword:"selectDefault"},a);e.mergeEvaluated(n,r.Name),t.assign(o,a)}t.endIf(),e.pass(o)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t.default=a,e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(590),i=n(35),o=n(256),a=n(254),s=n(255),l=n(148),u="errorMessage",c=new r.Name("emUsed"),d={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,p=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;function m(e){return{keyword:u,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:m,schema:g,schemaValue:v,it:y}=t;if(!1===y.createErrors)return;const b=g,_=i.strConcat(l.default.instancePath,y.errorPath);function w(e,t){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath === ${_}`,r._`${e}.keyword in ${t}`,r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${y.errSchemaPath.length}))`)}function x(e,t){const r=[];for(const n in e){const e=t[n];f.test(e)&&r.push([n,E(e)])}return n.object(...r)}function k(e){return f.test(e)?new o._Code(o.safeStringify(e).replace(p,(e,t)=>`" + JSON.stringify(${a.getData(t,y)}) + "`).replace(h,"")):r.stringify(e)}function E(e){return r._`function(){return ${k(e)}}`}n.if(r._`${l.default.errors} > 0`,()=>{if("object"==typeof b){const[o,a]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const i=e[r];if("object"==typeof i){t||(t={});const e=t[r]={};for(const t in i)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);a&&function(i){const o=n.const("emErrors",r.stringify(i)),a=n.const("templates",x(i,g));n.forOf("err",l.default.vErrors,e=>n.if(w(e,o),()=>n.code(r._`${o}[${e}.keyword].push(${e})`).assign(r._`${e}.${c}`,!0)));const{singleError:u}=e;if(u){const e=n.let("message",r._`""`),i=n.let("paramsErrors",r._`[]`);d(t=>{n.if(e,()=>n.code(r._`${e} += ${"string"==typeof u?u:";"}`)),n.code(r._`${e} += ${f(t)}`),n.assign(i,r._`${i}.concat(${o}[${t}])`)}),s.reportError(t,{message:e,params:r._`{errors: ${i}}`})}else d(e=>s.reportError(t,{message:f(e),params:r._`{errors: ${o}[${e}]}`}));function d(e){n.forIn("key",o,t=>n.if(r._`${o}[${t}].length`,()=>e(t)))}function f(e){return r._`${e} in ${a} ? ${a}[${e}]() : ${v}[${e}]`}}(a),o&&function(e){const i=n.const("emErrors",r.stringify(e)),o=[];for(const t in e)o.push([t,x(e[t],g[t])]);const a=n.const("templates",n.object(...o)),u=n.scopeValue("obj",{ref:d,code:r.stringify(d)}),f=n.let("emPropParams"),p=n.let("emParamsErrors");n.forOf("err",l.default.vErrors,e=>n.if(w(e,i),()=>{n.assign(f,r._`${u}[${e}.keyword]`),n.assign(p,r._`${i}[${e}.keyword][${e}.params[${f}]]`),n.if(p,()=>n.code(r._`${p}.push(${e})`).assign(r._`${e}.${c}`,!0))})),n.forIn("key",i,e=>n.forIn("keyProp",r._`${i}[${e}]`,o=>{n.assign(p,r._`${i}[${e}][${o}]`),n.if(r._`${p}.length`,()=>{const i=n.const("tmpl",r._`${a}[${e}] && ${a}[${e}][${o}]`);s.reportError(t,{message:r._`${i} ? ${i}() : ${v}[${e}][${o}]`,params:r._`{errors: ${p}}`})})}))}(o),function(e){const{props:o,items:a}=e;if(!o&&!a)return;const d=r._`typeof ${m} == "object"`,f=r._`Array.isArray(${m})`,p=n.let("emErrors");let h,y;const b=n.let("templates");o&&a?(h=n.let("emChildKwd"),n.if(d),n.if(f,()=>{w(a,g.items),n.assign(h,r.str`items`)},()=>{w(o,g.properties),n.assign(h,r.str`properties`)}),y=r._`[${h}]`):a?(n.if(f),w(a,g.items),y=r._`.items`):o&&(n.if(i.and(d,i.not(f))),w(o,g.properties),y=r._`.properties`);function w(e,t){n.assign(p,r.stringify(e)),n.assign(b,x(e,t))}n.forOf("err",l.default.vErrors,e=>function(e,t,o){n.if(i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,r._`${e}.instancePath.indexOf(${_}) === 0`),()=>{const i=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),a=n.const("emMatches",r._`${i}.exec(${e}.instancePath.slice(${_}.length))`),s=n.const("emChild",r._`${a} && ${a}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(r._`${s} !== undefined && ${s} in ${t}`,()=>o(s))})}(e,p,t=>n.code(r._`${p}[${t}].push(${e})`).assign(r._`${e}.${c}`,!0))),n.forIn("key",p,e=>n.if(r._`${p}[${e}].length`,()=>{s.reportError(t,{message:r._`${e} in ${b} ? ${b}[${e}]() : ${v}${y}[${e}]`,params:r._`{errors: ${p}[${e}]}`}),n.assign(r._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,r._`${_} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const o="string"==typeof b?b:b._;o&&function(e){const o=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,e=>n.if(function(e){return i.and(r._`${e}.keyword !== ${u}`,r._`!${e}.${c}`,i.or(r._`${e}.instancePath === ${_}`,i.and(r._`${e}.instancePath.indexOf(${_}) === 0`,r._`${e}.instancePath[${_}.length] === "/"`)),r._`${e}.schemaPath.indexOf(${y.errSchemaPath}) === 0`,r._`${e}.schemaPath[${y.errSchemaPath}.length] === "/"`)}(e),()=>n.code(r._`${o}.push(${e})`).assign(r._`${e}.${c}`,!0))),n.if(r._`${o}.length`,()=>s.reportError(t,{message:k(e),params:r._`{errors: ${o}}`}))}(o),e.keepErrors||function(){const e=n.const("emErrs",r._`[]`);n.forOf("err",l.default.vErrors,t=>n.if(r._`!${t}.${c}`,()=>n.code(r._`${e}.push(${t})`))),n.assign(l.default.vErrors,e).assign(l.default.errors,r._`${e}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const g=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(m(t))};t.default=g,e.exports=g,e.exports.default=g},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:i="shortcode",widget:d="object",pattern:f=u,fields:p=[],fromBlock:h,toBlock:m,toPreview:g}=e,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:t||n.replace(/[^A-Z0-9]+/gi,"_"),label:n,type:i,icon:r,widget:d,pattern:f,fromBlock:c(h)||(()=>({})),toBlock:c(m)||(()=>"Plugin"),toPreview:c(g)||!d&&(c(m)||(()=>"Plugin")),fields:(0,o.fromJS)(p)},v)};var r,i=(r=n(208))&&r.__esModule?r:{default:r},o=n(4);const a=["id","label","icon","type","widget","pattern","fields","fromBlock","toBlock","toPreview"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=/.^/;function c(e){return(0,i.default)(e)&&e.bind(null)}},function(e,t,n){var r=n(1151),i=n(1152),o=n(109),a=n(49);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,u=t?t():{};return l(n,e,o(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(391);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){console.error(`%c ⛔ ${e}\n%c${t}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")}},function(e,t,n){var r=n(134);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){"use strict";var r=n(1156),i=n(1157);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),d=["%","/","?",";","#"].concat(c),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(1158);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(k||w&&!v[w])){for(var E,S,O=-1,C=0;C<f.length;C++){-1!==(T=b.indexOf(f[C]))&&(-1===O||T<O)&&(O=T)}-1!==(S=-1===O?b.lastIndexOf("@"):b.lastIndexOf("@",O))&&(E=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(E)),O=-1;for(C=0;C<d.length;C++){var T;-1!==(T=b.indexOf(d[C]))&&(-1===O||T<O)&&(O=T)}-1===O&&(O=b.length),this.host=b.slice(0,O),b=b.slice(O),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var P=this.hostname.split(/\./),R=(C=0,P.length);C<R;C++){var j=P[C];if(j&&!j.match(p)){for(var I="",M=0,L=j.length;M<L;M++)j.charCodeAt(M)>127?I+="x":I+=j[M];if(!I.match(p)){var D=P.slice(0,C),N=P.slice(C+1),F=j.match(h);F&&(D.push(F[1]),N.unshift(F[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(C=0,R=c.length;C<R;C++){var U=c[C];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var W=b.indexOf("#");-1!==W&&(this.hash=b.substr(W),b=b.slice(0,W));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),v[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var $=this.search||"";this.path=B+$}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=e[c])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,x=w,k=n.pathname&&n.pathname.split("/")||[],E=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===k[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(E)n.hostname=n.host=k.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],O=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,C=0,T=k.length;T>=0;T--)"."===(S=k[T])?k.splice(T,1):".."===S?(k.splice(T,1),C++):C&&(k.splice(T,1),C--);if(!w&&!x)for(;C--;C)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),O&&"/"!==k.join("/").substr(-1)&&k.push("");var A,P=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=P?"":k.length?k.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(w=w||n.host&&k.length)&&!P&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function x(e){var t,n,r,i,o,a,s,u,c,d,f,h=[],g=e.length,v=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=v,a=1,s=36;i>=g&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>p((l-v)/a))&&m("overflow"),v+=u*a,!(u<(c=s<=_?1:s>=_+26?26:s-_));s+=36)a>p(l/(d=36-c))&&m("overflow"),a*=d;_=w(v-o,t=h.length+1,0==o),p(v/t)>l-y&&m("overflow"),y+=p(v/t),v%=t,h.splice(v++,0,y)}return b(h)}function k(e){var t,n,r,i,o,a,s,u,c,d,f,g,v,b,x,k=[];for(g=(e=y(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(f=e[a])<128&&k.push(h(f));for(r=i=k.length,i&&k.push("-");r<g;){for(s=l,a=0;a<g;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>p((l-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,a=0;a<g;++a)if((f=e[a])<t&&++n>l&&m("overflow"),f==t){for(u=n,c=36;!(u<(d=c<=o?1:c>=o+26?26:c-o));c+=36)x=u-d,b=36-d,k.push(h(_(d+x%b,0))),u=p(x/b);k.push(h(_(u,0))),o=w(n,v,r==i),n=0,++r}++n,++t}return k.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:x,encode:k,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(161)(e),n(56))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(1159),t.encode=t.stringify=n(1160)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,f,p,h,m=e[c].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r,i,o;o=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return o=a.shift()+(a.length>0?"?":"")+a.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t){t.remove=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return r[e]||e}))};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],r={},i=0;i<n.length;i+=1)for(var o=n[i].chars,a=0;a<o.length;a+=1)r[o[a]]=n[i].base;t.replacementList=n,t.diacriticsMap=r},function(e,t,n){"use strict";var r=n(1164),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,l=/[\. ]+$/;function u(e,t){if("string"!=typeof e)throw new Error("Input must be string");var n=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(l,t);return r(n,255)}e.exports=function(e,t){var n=t&&t.replacement||"",r=u(e,n);return""===n?r:u(r,"")}},function(e,t,n){"use strict";var r=n(1165),i=n(1166);e.exports=r.bind(null,i)},function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e,t,n){if("string"!=typeof t)throw new Error("Input must be string");for(var o,a,s=t.length,l=0,u=0;u<s;u+=1){if(o=t.charCodeAt(u),a=t[u],r(o)&&i(t.charCodeAt(u+1))&&(a+=t[u+=1]),(l+=e(a))===n)return t.slice(0,u+1);if(l>n)return t.slice(0,u-a.length+1)}return t}},function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var t=e.length,n=0,o=null,a=null,s=0;s<t;s++)i(o=e.charCodeAt(s))?null!=a&&r(a)?n+=1:n+=3:o<=127?n+=1:o>=128&&o<=2047?n+=2:o>=2048&&o<=65535&&(n+=3),a=o;return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(245))&&r.__esModule?r:{default:r},o=n(40),a=n(425),s=n(71);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:d}=o.unsentRequest;t.default=class{constructor(e){if(this.config=e,null==e.get("applicationID")||null==e.get("apiKey"))throw"The Algolia search integration needs the credentials (applicationID and apiKey) in the integration configuration.";this.applicationID=e.get("applicationID"),this.apiKey=e.get("apiKey");const t=e.get("indexPrefix");this.indexPrefix=t?t+"-":"",this.searchURL=`https://${this.applicationID}-dsn.algolia.net/1`,this.entriesCache={collection:null,page:null,entries:[]}}requestHeaders(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u({"X-Algolia-API-Key":this.apiKey,"X-Algolia-Application-Id":this.applicationID,"Content-Type":"application/json"},e)}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),e}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return d(r,u(u({},t),{},{headers:n})).then(e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()})}search(e,t,n){const r=e.map(e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`}));return this.request(this.searchURL+"/indexes/*/queries",{method:"POST",body:JSON.stringify({requests:r})}).then(t=>{const r=t.results.map((t,n)=>t.hits.map(t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return(0,a.createEntry)(e[n],r,t.path,{data:t.data,partial:!0})}));return{entries:(0,i.default)(r),pagination:n}})}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then(t=>{const n=t.hits.map(t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})});return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}})}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:i,page:o}=n;for(o+=1;o<r;)n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:u(u({},t),{},{page:o})}),i=[...i,...n.hits],o+=1;return i.map(t=>{const n=(0,s.selectEntrySlug)(e,t.path);return(0,a.createEntry)(e.get("name"),n,t.path,{data:t.data,partial:!0})})}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then(n=>{const r=n.hits.filter(e=>e.slug===t)[0];return(0,a.createEntry)(e.get("name"),t,r.path,{data:r.data,partial:!0})})}}},function(e,t,n){var r=n(120),i=n(83);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(168)),i=s(n(1170)),o=n(40),a=n(170);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:d}=o.unsentRequest;t.default=class{constructor(e,t){if(this.config=e,null==e.get("getSignedFormURL"))throw"The AssetStore integration needs the getSignedFormURL in the integration configuration.";this.getToken=t,this.shouldConfirmUpload=e.get("shouldConfirmUpload",!1),this.getSignedFormURL=(0,r.default)(e.get("getSignedFormURL"),"/")}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+="?"+n.join("&")),e}requestHeaders(){return u({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}confirmRequest(e){this.getToken().then(t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({state:"uploaded"})}))}async request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),i=await d(r,u(u({},t),{},{headers:n})),o=i.headers.get("Content-Type");return o&&o.match(/json/)?await this.parseJsonResponse(i):i.text()}async retrieve(e,t,n){const r=(0,i.default)({search:e,page:t,filter:n?"private":"public"},e=>!!e),o=(0,a.addParams)(this.getSignedFormURL,r),s={"Content-Type":"application/json",Authorization:"Bearer "+await this.getToken()};return(await this.request(o,{headers:s})).map(e=>{let{id:t,name:n,size:r,url:i}=e;return{id:t,name:n,size:r,displayURL:i,url:i,path:i}})}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then(e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+e}}))}async upload(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify(n)}),i=r.form.url,o=r.form.fields,{id:a,name:s,size:l,url:u}=r.asset,c=new FormData;Object.keys(o).forEach(e=>c.append(e,o[e])),c.append("file",e,e.name),await this.request(i,{method:"POST",body:c}),this.shouldConfirmUpload&&await this.confirmRequest(a);return{success:!0,asset:{id:a,name:s,size:l,displayURL:u,url:u,path:u}}}catch(e){throw console.error(e),e}}}},function(e,t,n){var r=n(143),i=n(109),o=n(608),a=n(407);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeValues=function(e,t){return s(e,t,"deserialize")},t.serializeValues=function(e,t){return s(e,t,"serialize")};var r,i=(r=n(1172))&&r.__esModule?r:{default:r},o=n(4),a=n(136);function s(e,t,n){let r=t.reduce((t,r)=>{const l=r.get("name"),u=e.get(l),c=(0,a.getWidgetValueSerializer)(r.get("widget")),d=r.get("fields");return d&&o.List.isList(u)?t.set(l,u.map(e=>s(e,d,n))):d&&o.Map.isMap(u)?t.set(l,s(u,d,n)):c&&!(0,i.default)(u)?t.set(l,c[n](u)):(0,i.default)(u)?t:t.set(l,u)},(0,o.Map)());return r=e.mergeDeep(r),r}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectUnpublishedEntriesByStatus=function(e,t){if(!e)return null;return e.get("entities").filter(e=>e.get("status")===t).valueSeq()},t.selectUnpublishedEntry=function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])},t.selectUnpublishedSlugs=function(e,t){if(!e.get("entities"))return null;return e.get("entities").filter((e,n)=>(0,i.default)(n,t+".")).map(e=>e.get("slug")).valueSeq()};var r,i=(r=n(610))&&r.__esModule?r:{default:r},o=n(4),a=n(124),s=n(259),l=n(220);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.Map)(),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.CONFIG_SUCCESS:return(t.payload&&t.payload.publish_mode)===a.EDITORIAL_WORKFLOW?(0,o.Map)({entities:(0,o.Map)(),pages:(0,o.Map)()}):e;case s.UNPUBLISHED_ENTRY_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isFetching"],!0);case s.UNPUBLISHED_ENTRY_REDIRECT:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_SUCCESS:return e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.slug}`],(0,o.fromJS)(t.payload.entry));case s.UNPUBLISHED_ENTRIES_REQUEST:return e.setIn(["pages","isFetching"],!0);case s.UNPUBLISHED_ENTRIES_SUCCESS:return e.withMutations(e=>{t.payload.entries.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,o.fromJS)(t).set("isFetching",!1))),e.set("pages",(0,o.Map)(c(c({},t.payload.pages),{},{ids:(0,o.List)(t.payload.entries.map(e=>e.slug))})))});case s.UNPUBLISHED_ENTRY_PERSIST_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case s.UNPUBLISHED_ENTRY_PERSIST_SUCCESS:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,o.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,o.List)(),e=>e.push(t.payload.entry.get("slug")))});case s.UNPUBLISHED_ENTRY_PERSIST_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)});case s.UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case s.UNPUBLISHED_ENTRY_PUBLISH_REQUEST:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case s.UNPUBLISHED_ENTRY_PUBLISH_SUCCESS:case s.UNPUBLISHED_ENTRY_DELETE_SUCCESS:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case s.UNPUBLISHED_ENTRY_PUBLISH_FAILURE:default:return e}};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(144),i=n(320);const o={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0};var a=(0,r.produce)((e,t)=>{switch(t.type){case i.SEARCH_CLEAR:return o;case i.SEARCH_ENTRIES_REQUEST:{const{page:n,searchTerm:r,searchCollections:i}=t.payload;e.isFetching=!0,e.term=r,e.collections=i,e.page=n;break}case i.SEARCH_ENTRIES_SUCCESS:{const{entries:n,page:r}=t.payload,i=n.map(e=>({collection:e.collection,slug:e.slug}));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?i:e.entryIds.concat(i);break}case i.SEARCH_ENTRIES_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case i.QUERY_REQUEST:{const{searchTerm:n}=t.payload;e.isFetching=!0,e.term=n;break}case i.QUERY_SUCCESS:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case i.QUERY_FAILURE:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}},o);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.selectDeployPreview=function(e,t,n){return e[`${t}.${n}`]};var r=n(144),i=n(612);var o=(0,r.produce)((e,t)=>{switch(t.type){case i.DEPLOY_PREVIEW_REQUEST:{const{collection:n,slug:r}=t.payload,i=`${n}.${r}`;e[i]=e[i]||{},e[i].isFetching=!0;break}case i.DEPLOY_PREVIEW_SUCCESS:{const{collection:n,slug:r,url:i,status:o}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=i,e[a].status=o;break}case i.DEPLOY_PREVIEW_FAILURE:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`].isFetching=!1;break}}},{});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(144),i=n(241);const o=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function a(e){return o.some(t=>e.type.includes(t))}var s=(0,r.produce)((e,t)=>{!a(t)&&t.type.includes("REQUEST")?e.isFetching=!0:a(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===i.USE_OPEN_AUTHORING&&(e.useOpenAuthoring=!0):e.isFetching=!1},{isFetching:!1,useOpenAuthoring:!1});t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(144),i=n(613);const o={isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0};var a=(0,r.produce)((e,t)=>{switch(t.type){case i.STATUS_REQUEST:e.isFetching=!0;break;case i.STATUS_SUCCESS:e.isFetching=!1,e.status=t.payload.status;break;case i.STATUS_FAILURE:e.isFetching=!1,e.error=t.payload.error}},o);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPhrases=function(e){return(0,i.default)({},(0,o.getLocale)("en"),(0,o.getLocale)(e))};var r,i=(r=n(1179))&&r.__esModule?r:{default:r},o=n(136)},function(e,t,n){var r=n(1180),i=n(1183)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(287),i=n(614),o=n(497),a=n(1181),s=n(89),l=n(249),u=n(615);e.exports=function e(t,n,c,d,f){t!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(t,n,l,c,e,d,f);else{var p=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},function(e,t,n){var r=n(614),i=n(564),o=n(566),a=n(216),s=n(567),l=n(237),u=n(49),c=n(310),d=n(238),f=n(208),p=n(89),h=n(244),m=n(284),g=n(615),v=n(1182);e.exports=function(e,t,n,y,b,_,w){var x=g(e,n),k=g(t,n),E=w.get(k);if(E)r(e,n,E);else{var S=_?_(x,k,n+"",e,t,w):void 0,O=void 0===S;if(O){var C=u(k),T=!C&&d(k),A=!C&&!T&&m(k);S=k,C||T||A?u(x)?S=x:c(x)?S=a(x):T?(O=!1,S=i(k,!0)):A?(O=!1,S=o(k,!0)):S=[]:h(k)||l(k)?(S=x,l(x)?S=v(x):p(x)&&!f(x)||(S=s(k))):O=!1}O&&(w.set(k,S),b(S,k,y,_,w),w.delete(k)),r(e,n,S)}}},function(e,t,n){var r=n(217),i=n(249);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(166),i=n(541);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSource=p,t.DropTarget=h,t.HTML5DragDrop=function(e){return class extends o.default.Component{render(){return(0,s.jsx)(i.DndProvider,{backend:r.HTML5Backend},(0,s.jsx)(e,this.props))}}};var r=n(1927),i=n(1925),o=d(n(0)),a=d(n(2)),s=n(9);const l=["namespace"],u=["children","isDragging","connectDragComponent"],c=["onDrop","namespace"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e){let{namespace:t}=e,n=f(e,l);const r=(0,i.DragSource)(t,{beginDrag(e){let{children:t,isDragging:n,connectDragComponent:r}=e;return f(e,u)}},e=>({connectDragComponent:e.dragSource()}))(e=>{let{children:t,connectDragComponent:n}=e;return t(n)});return o.default.createElement(r,n,n.children)}function h(e){let{onDrop:t,namespace:n}=e,r=f(e,c);const a=(0,i.DropTarget)(n,{drop(e,n){t(n.getItem())}},(e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()}))(e=>{let{children:t,connectDropTarget:n,isHovered:r}=e;return t(n,{isHovered:r})});return o.default.createElement(a,r,r.children)}p.propTypes={namespace:a.default.any.isRequired,children:a.default.func.isRequired},h.propTypes={onDrop:a.default.func.isRequired,namespace:a.default.any.isRequired,children:a.default.func.isRequired}},function(e,t,n){"use strict";
/** @license React v16.14.0
* react-jsx-runtime.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 r=n(0),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=function(e){o.enqueueTask(a.create(e))};var r=n(617),i=n(618);const o=new r.AsapQueue,a=new i.TaskFactory(o.registerPendingError)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.makeRequestCallFromTimer=i,t.makeRequestCallFromMutationObserver=o,t.makeRequestCall=void 0;const n=void 0!==e?e:self,r=n.MutationObserver||n.WebKitMutationObserver;function i(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function o(e){let t=1;const n=new r(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}const a="function"==typeof r?o:i;t.makeRequestCall=a}).call(this,n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RawTask=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorBoundary=void 0;var r=h(n(21)),i=h(n(573)),o=h(n(0)),a=h(n(2)),s=n(51),l=h(n(410)),u=h(n(619)),c=n(40),d=n(17),f=h(n(1935)),p=n(9);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://github.com/netlify/netlify-cms/issues/new?";function v(e){let{title:t,config:n}=e;try{const e=function(e){let{config:t}=e,n="";return n="netlify-cms@2.10.192",function(e){let{version:t,provider:n,browser:r,config:i}=e;return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Netlify CMS version: \`${t}\`\n - Git provider: \`${n}\`\n - Browser version: \`${r}\`\n\n**CMS configuration**\n\`\`\`\n${i}\n\`\`\`\n\n**Additional context**\n`}({version:n,provider:t.backend.name,browser:navigator.userAgent,config:l.default.stringify(t)})}({config:n}),r=new URLSearchParams;return r.append("title",(0,i.default)(t,{length:100})),r.append("body",(0,i.default)(e,{length:4e3,omission:"\n..."})),r.append("labels","type: bug"),`${g}${r.toString()}`}catch(e){return console.log(e),g+"template=bug_report.md"}}const y=(0,r.default)("div",{target:"e177kfaq0",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",d.colors.text,";}h2{font-size:20px;}strong{color:",d.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",d.colors.text,";}a{color:",d.colors.active,";}"),b=(0,r.default)("span",{target:"e177kfaq1",label:"PrivacyWarning"})("color:",d.colors.text,";"),_=(0,r.default)("button",{target:"e177kfaq2",label:"CopyButton"})(d.buttons.button,";",d.buttons.default,";",d.buttons.gray,";display:block;margin:12px 0;");function w(e){let{entry:t,t:n}=e;return console.log(t),(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,n("ui.errorBoundary.recoveredEntry.heading")),(0,p.jsx)("strong",null,n("ui.errorBoundary.recoveredEntry.warning")),(0,p.jsx)(_,{onClick:()=>(0,u.default)(t)},n("ui.errorBoundary.recoveredEntry.copyButtonLabel")),(0,p.jsx)("pre",null,(0,p.jsx)("code",null,t)))}class x extends o.default.Component{constructor(){super(...arguments),m(this,"state",{hasError:!1,errorMessage:"",errorTitle:"",backup:""})}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:(0,f.default)(e.stack,{basePath:window.location.origin||""}),errorTitle:e.toString()}}shouldComponentUpdate(e,t){return!this.props.showBackup||(this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup)}async componentDidUpdate(){if(this.props.showBackup){const e=await c.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:i,t:a}=this.props;return e?(0,p.jsx)(y,null,(0,p.jsx)("h1",null,a("ui.errorBoundary.title")),(0,p.jsx)("p",null,(0,p.jsx)("span",null,a("ui.errorBoundary.details")),(0,p.jsx)("a",{href:v({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url"},a("ui.errorBoundary.reportIt"))),(0,p.jsx)("p",null,a("ui.errorBoundary.privacyWarning").split("\n").map((e,t)=>(0,p.jsx)(o.default.Fragment,null,(0,p.jsx)(b,{key:t},e),(0,p.jsx)("br",null)))),(0,p.jsx)("hr",null),(0,p.jsx)("h2",null,a("ui.errorBoundary.detailsHeading")),(0,p.jsx)("p",null,t),n&&i&&(0,p.jsx)(w,{entry:n,t:a})):this.props.children}}t.ErrorBoundary=x,m(x,"propTypes",{children:a.default.node,t:a.default.func.isRequired,config:a.default.object.isRequired});var k=(0,s.translate)()(x);t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadButton=a;o(n(0));var r=o(n(2)),i=n(9);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){let{label:t,imagesOnly:n,onChange:r,disabled:o,className:a}=e;return(0,i.jsx)("label",{className:"nc-fileUploadButton "+(a||"")},(0,i.jsx)("span",null,t),(0,i.jsx)("input",{type:"file",accept:n?"image/*":"*/*",onChange:r,disabled:o}))}a.propTypes={className:r.default.string,label:r.default.string.isRequired,imagesOnly:r.default.bool,onChange:r.default.func.isRequired,disabled:r.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var r=l(n(0)),i=l(n(2)),o=n(9),a=l(n(1193)),s=n(17);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function c(){return(0,o.jsx)(o.Global,{styles:u})}const d=`\n ${s.shadows.dropDeep};\n background-color: #fff;\n border-radius: ${s.lengths.borderRadius};\n height: 80%;\n text-align: center;\n max-width: 2200px;\n padding: 20px;\n\n &:focus {\n outline: none;\n }\n `,f=`\n z-index: ${s.zIndex.zIndex99999};\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color ${s.transitions.main}, opacity ${s.transitions.main};\n `,p="\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 1;\n ",h="\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n ";class m extends r.default.Component{componentDidMount(){a.default.setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:i}=this.props;return(0,o.jsx)(r.default.Fragment,null,(0,o.jsx)(c,null),(0,o.jsx)(o.ClassNames,null,r=>{let{css:s,cx:l}=r;return(0,o.jsx)(a.default,{isOpen:e,onRequestClose:i,closeTimeoutMS:300,className:{base:l(s`
${d};
`,n),afterOpen:"",beforeClose:""},overlayClassName:{base:s`
${f};
`,afterOpen:s`
${p};
`,beforeClose:s`
${h};
`}},t)}))}}t.Modal=m,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(m,"propTypes",{children:i.default.node.isRequired,isOpen:i.default.bool.isRequired,className:i.default.string,onClose:i.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1194),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=h(o),s=h(n(54)),l=h(n(2)),u=h(n(1195)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(621)),d=n(431),f=h(d),p=n(477);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",b=d.canUseDOM&&void 0!==s.default.createPortal,_=function(e){return document.createElement(e)},w=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var k=function(e){function t(){var e,n,i;m(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!b&&s.default.unmountComponentAtNode(i.node);var e=x(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=w()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},g(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(b||(this.node=_("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&b?(!this.node&&b&&(this.node=_("div")),w()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);k.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},k.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(k),t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=g(n(2)),l=m(n(1196)),u=g(n(1197)),c=m(n(621)),d=m(n(1199)),f=n(431),p=g(f),h=g(n(622));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(1200);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.remove(document.body,o),i&&d.remove(document.getElementsByTagName("html")[0],i),r&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&d.add(document.body,i),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,i=n(620),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!i)return;r=s}s!==l||i||(r=a);a===l&&i&&(r=s);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(l);c>-1&&(c+=i?-1:1);if(void 0===(r=n[c]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()};var r,i=n(620),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r;
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)o(e,r[t]);var n=document.body;for(var a in i)o(n,i[a]);r={},i={}},t.log=function(){0};var r={},i={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,i=n(622),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9),i=(l(n(0)),l(n(2))),o=n(51),a=l(n(1202)),s=n(17);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(0,r.jsx)(r.Global,{styles:(0,r.css)(a.default,";.notif__container{z-index:",s.zIndex.zIndex10000,";white-space:pre-wrap;};label:ReduxNotificationsGlobalStyles;")})}const c={toast:(0,r.css)(s.shadows.drop,";background-color:",s.colors.background,";color:",s.colors.textLight,";border-radius:",s.lengths.borderRadius,";margin:50px;padding:20px;overflow:hidden;;label:toast;"),info:(0,r.css)("background-color:",s.colors.infoBackground,";color:",s.colors.infoText,";;label:info;"),success:(0,r.css)("background-color:",s.colors.successBackground,";color:",s.colors.successText,";;label:success;"),warning:(0,r.css)("background-color:",s.colors.warnBackground,";color:",s.colors.warnText,";;label:warning;"),danger:(0,r.css)("background-color:",s.colors.errorBackground,";color:",s.colors.errorText,";;label:danger;")};function d(e){let{kind:t,message:n,t:i}=e;return(0,r.jsx)("div",{css:(0,r.css)([c.toast,c[t]],";label:Toast;")},(0,r.jsx)(u,null),i(n.key,{details:n.details}))}d.propTypes={kind:i.default.oneOf(["info","success","warning","danger"]).isRequired,message:i.default.object,t:i.default.func.isRequired};var f=(0,o.translate)()(d);t.default=f},function(e,t,n){var r=n(1203);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(260)(!1)).push([e.i,".notif-transition-enter {\n opacity : 0.01;\n transition : opacity .5s ease-in;\n}\n\n.notif-transition-enter-active {\n opacity : 1;\n}\n\n.notif-transition-leave {\n opacity : 1;\n transition : opacity .5s ease-in;\n}\n\n.notif-transition-leave-active {\n opacity : 0.01;\n}\n\n.notif {\n position : relative;\n font : 1rem normal Helvetica, sans-serif;\n overflow : hidden;\n border-radius : 4px;\n margin-bottom : 2px;\n max-height : 400px;\n box-sizing : border-box;\n box-shadow : 0 0 1px 1px rgba(10, 10, 11, .125);\n padding : 0.5rem;\n color : #fff;\n}\n\n.notif--success {\n background-color: #64ce83;\n}\n\n.notif--info {\n background-color: #3ea2ff;\n}\n\n.notif--warning {\n background-color: #ff7f48;\n}\n\n.notif--danger {\n background-color: #e74c3c;\n}\n\n.notif__container {\n position : fixed;\n top : 10px;\n right : 0;\n left : 0;\n z-index : 1000;\n width : 80%;\n max-width : 400px;\n margin : auto;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21)),i=c(n(0)),o=c(n(2)),a=n(9),s=n(51),l=n(17),u=n(170);function c(e){return e&&e.__esModule?e:{default:e}}const d={avatarImage:{name:"1towst8-avatarImage",styles:"width:32px;border-radius:32px;;label:avatarImage;"}},f=(0,r.default)(l.DropdownButton,{target:"e1cy7qi00",label:"AvatarDropdownButton"})({name:"1s7e6lp",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent;"}),p=(0,r.default)("img",{target:"e1cy7qi01",label:"AvatarImage"})(d.avatarImage,";"),h=(0,r.default)(l.Icon,{target:"e1cy7qi02",label:"AvatarPlaceholderIcon"})(d.avatarImage,";height:32px;color:#1e2532;background-color:",l.colors.textFieldBorder,";"),m=(0,r.default)("a",{target:"e1cy7qi03",label:"AppHeaderSiteLink"})({name:"1hf3zrx",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px;"}),g=(0,r.default)("a",{target:"e1cy7qi04",label:"AppHeaderTestRepoIndicator"})({name:"1hf3zrx",styles:"font-size:14px;font-weight:400;color:#7b8290;padding:10px 16px;"});function v(e){let{imageUrl:t}=e;return t?(0,a.jsx)(p,{src:t}):(0,a.jsx)(h,{type:"user",size:"large"})}function y(e){let{displayUrl:t,isTestRepo:n,imageUrl:r,onLogoutClick:o,t:s}=e;return(0,a.jsx)(i.default.Fragment,null,n&&(0,a.jsx)(g,{href:"https://www.netlifycms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer"},"Test Backend ↗"),t?(0,a.jsx)(m,{href:t,target:"_blank"},(0,u.stripProtocol)(t)):null,(0,a.jsx)(l.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:"100px",dropdownPosition:"right",renderButton:()=>(0,a.jsx)(f,null,(0,a.jsx)(v,{imageUrl:r}))},(0,a.jsx)(l.DropdownItem,{label:s("ui.settingsDropdown.logOut"),onClick:o})))}v.propTypes={imageUrl:o.default.string},y.propTypes={displayUrl:o.default.string,isTestRepo:o.default.bool,imageUrl:o.default.string,onLogoutClick:o.default.func.isRequired,t:o.default.func.isRequired};var b=(0,s.translate)()(y);t.default=b},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(21)),i=A(n(2)),o=A(n(0)),a=n(1206),s=n(51),l=A(n(33)),u=n(90),c=n(155),d=n(165),f=A(n(1208)),p=n(17),h=n(241),m=n(145),g=n(432),v=n(171),y=A(n(1210)),b=n(172),_=n(221),w=n(124),x=A(n(1221)),k=A(n(1235)),E=A(n(1238)),S=A(n(1379)),O=A(n(1380)),C=n(9);const T=["collections","render"];function A(e){return e&&e.__esModule?e:{default:e}}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}f.default.config({barColors:{0:p.colors.active,"1.0":p.colors.active},shadowBlur:0,barThickness:2});const j=(0,r.default)("div",{target:"e1ghgnen0",label:"AppMainContainer"})({name:"123tny7",styles:"min-width:800px;max-width:1440px;margin:0 auto;"}),I=(0,r.default)("div",{target:"e1ghgnen1",label:"ErrorContainer"})({name:"zwiamn",styles:"margin:20px;"}),M=(0,r.default)("pre",{target:"e1ghgnen2",label:"ErrorCodeBlock"})({name:"1v6y79z",styles:"margin-left:20px;font-size:15px;line-height:1.5;"});function L(e){const t=e.filter(e=>!0!==e.get("hide")).first();if(t)return"/collections/"+t.get("name");throw new Error("Could not find a non hidden collection")}function D(e){let{collections:t,render:n}=e,r=R(e,T);const i=L(t);return(0,C.jsx)(c.Route,P({},r,{render:e=>t.get(e.match.params.name)?n(e):(0,C.jsx)(c.Redirect,{to:i})}))}class N extends o.default.Component{configError(e){const t=this.props.t;return(0,C.jsx)(I,null,(0,C.jsx)("h1",null,t("app.app.errorHeader")),(0,C.jsx)("div",null,(0,C.jsx)("strong",null,t("app.app.configErrors"),":"),(0,C.jsx)(M,null,e.error),(0,C.jsx)("span",null,t("app.app.checkConfigYml"))))}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t:t}=this.props,n=(0,m.currentBackend)(this.props.config);return null==n?(0,C.jsx)("div",null,(0,C.jsx)("h1",null,t("app.app.waitingBackend"))):(0,C.jsx)("div",null,(0,C.jsx)(d.Notifs,{CustomComponent:b.Toast}),o.default.createElement(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>_.history.replace("/"),t:t}))}handleLinkClick(e,t){e.preventDefault();for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t(...r)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:i,publishMode:a,useMediaLibrary:s,openMediaLibrary:l,t:u,showMediaButton:h}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return(0,C.jsx)(p.Loader,{active:!0},u("app.app.loadingConfig"));if(null==e)return this.authenticating(u);const m=L(n),v=a===w.EDITORIAL_WORKFLOW;return(0,C.jsx)(o.default.Fragment,null,(0,C.jsx)(d.Notifs,{CustomComponent:b.Toast}),(0,C.jsx)(O.default,{user:e,collections:n,onCreateEntryClick:g.createNewEntry,onLogoutClick:r,openMediaLibrary:l,hasWorkflow:v,displayUrl:t.display_url,isTestRepo:"test-repo"===t.backend.name,showMediaButton:h}),(0,C.jsx)(j,null,i&&(0,C.jsx)(f.default,null),(0,C.jsx)(c.Switch,null,(0,C.jsx)(c.Redirect,{exact:!0,from:"/",to:m}),(0,C.jsx)(c.Redirect,{exact:!0,from:"/search/",to:m}),(0,C.jsx)(D,{exact:!0,collections:n,path:"/collections/:name/search/",render:e=>{let{match:t}=e;return(0,C.jsx)(c.Redirect,{to:"/collections/"+t.params.name})}}),(0,C.jsx)(c.Redirect,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:m}),v?(0,C.jsx)(c.Route,{path:"/workflow",component:k.default}):null,(0,C.jsx)(D,{exact:!0,collections:n,path:"/collections/:name",render:e=>(0,C.jsx)(x.default,e)}),(0,C.jsx)(D,{path:"/collections/:name/new",collections:n,render:e=>(0,C.jsx)(E.default,P({},e,{newRecord:!0}))}),(0,C.jsx)(D,{path:"/collections/:name/entries/*",collections:n,render:e=>(0,C.jsx)(E.default,e)}),(0,C.jsx)(D,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>(0,C.jsx)(x.default,P({},e,{isSearchResults:!0,isSingleSearchResult:!0}))}),(0,C.jsx)(D,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>(0,C.jsx)(x.default,e)}),(0,C.jsx)(c.Route,{path:"/search/:searchTerm",render:e=>(0,C.jsx)(x.default,P({},e,{isSearchResults:!0}))}),(0,C.jsx)(D,{path:"/edit/:name/:entryName",collections:n,render:e=>{let{match:t}=e;const{name:n,entryName:r}=t.params;return(0,C.jsx)(c.Redirect,{to:`/collections/${n}/entries/${r}`})}}),(0,C.jsx)(c.Route,{component:S.default})),s?(0,C.jsx)(y.default,null):null))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(N,"propTypes",{auth:i.default.object.isRequired,config:i.default.object.isRequired,collections:l.default.map.isRequired,loginUser:i.default.func.isRequired,logoutUser:i.default.func.isRequired,user:i.default.object,isFetching:i.default.bool.isRequired,publishMode:i.default.oneOf([w.SIMPLE,w.EDITORIAL_WORKFLOW]),siteId:i.default.string,useMediaLibrary:i.default.bool,openMediaLibrary:i.default.func.isRequired,showMediaButton:i.default.bool,t:i.default.func.isRequired});const F={openMediaLibrary:v.openMediaLibrary,loginUser:h.loginUser,logoutUser:h.logoutUser};var B=(0,a.hot)(e)((0,u.connect)((function(e){const{auth:t,config:n,collections:r,globalUI:i,mediaLibrary:o}=e,a=t.user,s=i.isFetching,l=n.publish_mode,u=!o.get("externalLibrary");return{auth:t,config:n,collections:r,user:a,isFetching:s,publishMode:l,showMediaButton:o.get("showMediaButton"),useMediaLibrary:u}}),F)((0,s.translate)()(N)));t.default=B}).call(this,n(161)(e))},function(e,t,n){"use strict";e.exports=n(1207)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){var r=n(0),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(1209),o=0,a=function(e){return e.topbar||i};function s(e){return r.useEffect((function(){return 0===o&&a(e).show(),o++,function(){0===--o&&a(e).hide()}}),[]),null}s.config=i.config,e.exports=s},function(e,t,n){var r;
/*! topbar 0.1.4, 2020-04-27
* http://buunguyen.github.io/topbar
* Copyright (c) 2019 Buu Nguyen
* Licensed under the MIT License */(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[t[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[n]+"CancelAnimationFrame"]||i[t[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),o=Math.max(0,16-(r-e)),a=i.setTimeout((function(){t(r+o)}),o);return e=r+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,u,c,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},f=function(){a.width=i.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(u*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;c||(c=!0,null!==l&&i.cancelAnimationFrame(l),a||((r=(a=o.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),o.body.appendChild(a),t="resize",n=f,(e=i).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=i.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,f()),u},hide:function(){c&&(c=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(167)),i=v(n(606)),o=v(n(0)),a=v(n(2)),s=v(n(33)),l=n(90),u=n(51),c=v(n(549)),d=n(40),f=n(171),p=n(321),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(1211)),m=n(9);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=["jpg","jpeg","webp","gif","png","bmp","tiff","svg","avif"],x=[...w];class k extends o.default.Component{constructor(){super(...arguments),_(this,"state",{selectedFile:{},query:""}),_(this,"loadDisplayURL",e=>{const{loadMediaDisplayURL:t}=this.props;t(e)}),_(this,"filterImages",e=>e.filter(e=>{const t=(0,d.fileExtension)(e.name).toLowerCase();return x.includes(t)})),_(this,"toTableData",e=>{const t=e&&e.map(e=>{let{key:t,name:n,id:r,size:i,path:o,queryOrder:a,displayURL:s,draft:l}=e;const u=(0,d.fileExtension)(n).toLowerCase();return{key:t,id:r,name:n,path:o,type:u.toUpperCase(),size:i,queryOrder:a,displayURL:s,draft:l,isImage:x.includes(u),isViewableImage:w.includes(u)}}),{sortFields:n}=this.state,o=(0,r.default)(n,"fieldName").concat("queryOrder"),a=(0,r.default)(n,"direction").concat("asc");return(0,i.default)(t,o,a)}),_(this,"handleClose",()=>{this.props.closeMediaLibrary()}),_(this,"handleAssetClick",e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})}),_(this,"handlePersist",async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:i,field:o}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(i("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:o}),this.setState({selectedFile:this.props.files[0]}),this.scrollToTop()),e.target.value=null}),_(this,"handleInsert",()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()}),_(this,"handleDelete",()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:i}=this.props;if(!window.confirm(i("mediaLibrary.mediaLibrary.onDelete")))return;n(t.find(t=>e.key===t.key),{privateUpload:r}).then(()=>{this.setState({selectedFile:{}})})}),_(this,"handleDownload",()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",r),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),this.setState({selectedFile:{}})}),_(this,"handleLoadMore",()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})}),_(this,"handleSearchKeyDown",async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())}),_(this,"scrollToTop",()=>{this.scrollContainerRef.scrollTop=0}),_(this,"handleSearchChange",e=>{this.setState({query:e.target.value})}),_(this,"queryFilter",(e,t)=>{const n=e.replace(/ /g,"");return c.default.filter(n,t,{extract:e=>e.name}).map((e,n)=>b(b({},t[e.index]),{},{queryIndex:n}))})}componentDidMount(){this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload})}render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,displayURLs:f,t:p}=this.props;return(0,m.jsx)(h.default,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:i,forImage:o,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:u,isPaginating:c,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}_(k,"propTypes",{isVisible:a.default.bool,loadMediaDisplayURL:a.default.func,displayURLs:s.default.map,canInsert:a.default.bool,files:a.default.arrayOf(a.default.shape(h.fileShape)).isRequired,dynamicSearch:a.default.bool,dynamicSearchActive:a.default.bool,forImage:a.default.bool,isLoading:a.default.bool,isPersisting:a.default.bool,isDeleting:a.default.bool,hasNextPage:a.default.bool,isPaginating:a.default.bool,privateUpload:a.default.bool,config:s.default.map,loadMedia:a.default.func.isRequired,dynamicSearchQuery:a.default.string,page:a.default.number,persistMedia:a.default.func.isRequired,deleteMedia:a.default.func.isRequired,insertMedia:a.default.func.isRequired,closeMediaLibrary:a.default.func.isRequired,t:a.default.func.isRequired}),_(k,"defaultProps",{files:[]});const E={loadMedia:f.loadMedia,persistMedia:f.persistMedia,deleteMedia:f.deleteMedia,insertMedia:f.insertMedia,loadMediaDisplayURL:f.loadMediaDisplayURL,closeMediaLibrary:f.closeMediaLibrary};var S=(0,l.connect)((function(e){const{mediaLibrary:t}=e,n=t.get("field");return b({},{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:(0,p.selectMediaFiles)(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n})}),E)((0,u.translate)()(k));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileShape=t.default=void 0;var r=h(n(21)),i=h(n(135)),o=(h(n(0)),h(n(2))),a=n(4),s=n(51),l=n(17),u=n(172),c=h(n(1212)),d=h(n(1216)),f=h(n(1220)),p=n(9);function h(e){return e&&e.__esModule?e:{default:e}}const m=(0,r.default)(u.Modal,{target:"ep5ukwb0",label:"StyledModal"})("display:grid;grid-template-rows:120px auto;width:calc(","300px"," + 20px);background-color:",e=>e.isPrivate&&l.colors.grayDark,";@media (min-width:800px){width:calc(","300px"," * 2 + 20px);}@media (min-width:1120px){width:calc(","300px"," * 3 + 20px);}@media (min-width:1440px){width:calc(","300px"," * 4 + 20px);}@media (min-width:1760px){width:calc(","300px"," * 5 + 20px);}@media (min-width:2080px){width:calc(","300px"," * 6 + 20px);}h1{color:",e=>e.isPrivate&&l.colors.textFieldBorder,";}button:disabled,label[disabled]{background-color:",e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)",";}");function g(e){let{isVisible:t,canInsert:n,files:r,dynamicSearch:o,dynamicSearchActive:a,forImage:s,isLoading:l,isPersisting:u,isDeleting:h,hasNextPage:g,isPaginating:v,privateUpload:y,query:b,selectedFile:_,handleFilter:w,handleQuery:x,toTableData:k,handleClose:E,handleSearchChange:S,handleSearchKeyDown:O,handlePersist:C,handleDelete:T,handleInsert:A,handleDownload:P,setScrollContainerRef:R,handleAssetClick:j,handleLoadMore:I,loadDisplayURL:M,displayURLs:L,t:D}=e;const N=s?w(r):r,F=!o&&b?x(b,N):N,B=k(F),z=r&&!!r.length,U=N&&!!N.length,q=F&&!!F.length,W=q,H=!W,$=l&&!W&&D("mediaLibrary.mediaLibraryModal.loading")||a&&D("mediaLibrary.mediaLibraryModal.noResults")||!z&&D("mediaLibrary.mediaLibraryModal.noAssetsFound")||!U&&D("mediaLibrary.mediaLibraryModal.noImagesFound")||!q&&D("mediaLibrary.mediaLibraryModal.noResults"),V=W&&!(0,i.default)(_);return(0,p.jsx)(m,{isOpen:t,onClose:E,isPrivate:y},(0,p.jsx)(c.default,{t:D,onClose:E,privateUpload:y,forImage:s,onDownload:P,onUpload:C,query:b,onSearchChange:S,onSearchKeyDown:O,searchDisabled:!a&&!U,onDelete:T,canInsert:n,onInsert:A,hasSelection:V,isPersisting:u,isDeleting:h,selectedFile:_}),H?(0,p.jsx)(f.default,{content:$,isPrivate:y}):null,(0,p.jsx)(d.default,{setScrollContainerRef:R,mediaItems:B,isSelectedFile:e=>_.key===e.key,onAssetClick:j,canLoadMore:g,onLoadMore:I,isPaginating:v,paginatingMessage:D("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:D("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:y,loadDisplayURL:M,displayURLs:L}))}const v={displayURL:o.default.oneOfType([o.default.string,o.default.object]).isRequired,id:o.default.string.isRequired,key:o.default.string.isRequired,name:o.default.string.isRequired,queryOrder:o.default.number,size:o.default.number,path:o.default.string.isRequired};t.fileShape=v,g.propTypes={isVisible:o.default.bool,canInsert:o.default.bool,files:o.default.arrayOf(o.default.shape(v)).isRequired,dynamicSearch:o.default.bool,dynamicSearchActive:o.default.bool,forImage:o.default.bool,isLoading:o.default.bool,isPersisting:o.default.bool,isDeleting:o.default.bool,hasNextPage:o.default.bool,isPaginating:o.default.bool,privateUpload:o.default.bool,query:o.default.string,selectedFile:o.default.oneOfType([o.default.shape(v),o.default.shape({})]),handleFilter:o.default.func.isRequired,handleQuery:o.default.func.isRequired,toTableData:o.default.func.isRequired,handleClose:o.default.func.isRequired,handleSearchChange:o.default.func.isRequired,handleSearchKeyDown:o.default.func.isRequired,handlePersist:o.default.func.isRequired,handleDelete:o.default.func.isRequired,handleInsert:o.default.func.isRequired,setScrollContainerRef:o.default.func.isRequired,handleAssetClick:o.default.func.isRequired,handleLoadMore:o.default.func.isRequired,loadDisplayURL:o.default.func.isRequired,t:o.default.func.isRequired,displayURLs:o.default.instanceOf(a.Map).isRequired};var y=(0,s.translate)()(g);t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=(u(n(0)),u(n(2))),o=u(n(1213)),a=u(n(1214)),s=n(1215),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"ebn7k120",label:"LibraryTop"})({name:"1ab1jlb",styles:"position:relative;display:flex;flex-direction:column;"}),d=(0,r.default)("div",{target:"ebn7k121",label:"RowContainer"})({name:"gg4vpm",styles:"display:flex;justify-content:space-between;"}),f=(0,r.default)("div",{target:"ebn7k122",label:"ButtonsContainer"})({name:"6su6fj",styles:"flex-shrink:0;"});function p(e){let{t:t,onClose:n,privateUpload:r,forImage:i,onDownload:u,onUpload:p,query:h,onSearchChange:m,onSearchKeyDown:g,searchDisabled:v,onDelete:y,canInsert:b,onInsert:_,hasSelection:w,isPersisting:x,isDeleting:k,selectedFile:E}=e;const S=x||k,O=!S,C=!S&&w,T=t(x?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),A=t(k?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),P=t("mediaLibrary.mediaLibraryModal.download"),R=t("mediaLibrary.mediaLibraryModal.chooseSelected");return(0,l.jsx)(c,null,(0,l.jsx)(d,null,(0,l.jsx)(a.default,{onClose:n,title:`${r?t("mediaLibrary.mediaLibraryModal.private"):""}${t(i?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:r}),(0,l.jsx)(f,null,(0,l.jsx)(s.CopyToClipBoardButton,{disabled:!w,path:E.path,name:E.name,draft:E.draft,t:t}),(0,l.jsx)(s.DownloadButton,{onClick:u,disabled:!w},P),(0,l.jsx)(s.UploadButton,{label:T,imagesOnly:i,onChange:p,disabled:!O}))),(0,l.jsx)(d,null,(0,l.jsx)(o.default,{value:h,onChange:m,onKeyDown:g,placeholder:t("mediaLibrary.mediaLibraryModal.search"),disabled:v}),(0,l.jsx)(f,null,(0,l.jsx)(s.DeleteButton,{onClick:y,disabled:!C},A),b?(0,l.jsx)(s.InsertButton,{onClick:_,disabled:!w},R):null)))}p.propTypes={t:i.default.func.isRequired,onClose:i.default.func.isRequired,privateUpload:i.default.bool,forImage:i.default.bool,onDownload:i.default.func.isRequired,onUpload:i.default.func.isRequired,query:i.default.string,onSearchChange:i.default.func.isRequired,onSearchKeyDown:i.default.func.isRequired,searchDisabled:i.default.bool.isRequired,onDelete:i.default.func.isRequired,canInsert:i.default.bool,onInsert:i.default.func.isRequired,hasSelection:i.default.bool.isRequired,isPersisting:i.default.bool,isDeleting:i.default.bool,selectedFile:i.default.oneOfType([i.default.shape({path:i.default.string.isRequired,draft:i.default.bool.isRequired,name:i.default.string.isRequired}),i.default.shape({})])};var h=p;t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(2))),o=n(17),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e3b6gd60",label:"SearchContainer"})({name:"xts1j",styles:"height:37px;display:flex;align-items:center;position:relative;width:400px;"}),u=(0,r.default)("input",{target:"e3b6gd61",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colors.active,";}"),c=(0,r.default)(o.Icon,{target:"e3b6gd62",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",o.zIndex.zIndex2,";transform:translate(0,-50%);");function d(e){let{value:t,onChange:n,onKeyDown:r,placeholder:i,disabled:o}=e;return(0,a.jsx)(l,null,(0,a.jsx)(c,{type:"search",size:"small"}),(0,a.jsx)(u,{value:t,onChange:n,onKeyDown:r,placeholder:i,disabled:o}))}d.propTypes={value:i.default.string,onChange:i.default.func.isRequired,onKeyDown:i.default.func.isRequired,placeholder:i.default.string.isRequired,disabled:i.default.bool};var f=d;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(2))),o=n(17),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"e1ye9psy0",label:"CloseButton"})(o.buttons.button,";",o.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;background-color:white;padding:0;display:flex;justify-content:center;align-items:center;"),u=(0,r.default)("h1",{target:"e1ye9psy1",label:"LibraryTitle"})("line-height:36px;font-size:22px;text-align:left;margin-bottom:25px;color:",e=>e.isPrivate&&o.colors.textFieldBorder,";");function c(e){let{onClose:t,title:n,isPrivate:r}=e;return(0,a.jsx)("div",null,(0,a.jsx)(l,{onClick:t},(0,a.jsx)(o.Icon,{type:"close"})),(0,a.jsx)(u,{isPrivate:r},n))}c.propTypes={onClose:i.default.func.isRequired,title:i.default.string.isRequired,isPrivate:i.default.bool};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UploadButton=t.InsertButton=t.DownloadButton=t.DeleteButton=t.CopyToClipBoardButton=void 0;var r=d(n(21)),i=d(n(0)),o=d(n(2)),a=n(9),s=d(n(619)),l=n(40),u=n(17),c=n(172);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={button:(0,a.css)(u.buttons.button,";",u.buttons.default,";display:inline-block;margin-left:15px;margin-right:2px;&[disabled]{",u.buttons.disabled,";cursor:default;};label:button;")},h=(0,r.default)(c.FileUploadButton,{target:"eljtsap0",label:"UploadButton"})(p.button,";",u.buttons.gray,";",u.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",u.zIndex.zIndex0,";outline:none;}");t.UploadButton=h;const m=(0,r.default)("button",{target:"eljtsap1",label:"DeleteButton"})(p.button,";",u.buttons.lightRed,";");t.DeleteButton=m;const g=(0,r.default)("button",{target:"eljtsap2",label:"InsertButton"})(p.button,";",u.buttons.green,";");t.InsertButton=g;const v=(0,r.default)("button",{target:"eljtsap3",label:"ActionButton"})(p.button,";",e=>!e.disabled&&(0,a.css)(u.buttons.gray,";label:ActionButton;"),""),y=v;t.DownloadButton=y;class b extends i.default.Component{constructor(){super(...arguments),f(this,"mounted",!1),f(this,"timeout",void 0),f(this,"state",{copied:!1}),f(this,"handleCopy",()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;(0,s.default)((0,l.isAbsolutePath)(e)||!t?e:n),this.setState({copied:!0}),this.timeout=setTimeout(()=>this.mounted&&this.setState({copied:!1}),1500)}),f(this,"getTitle",()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?(0,l.isAbsolutePath)(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")})}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}render(){const{disabled:e}=this.props;return(0,a.jsx)(v,{disabled:e,onClick:this.handleCopy},this.getTitle())}}t.CopyToClipBoardButton=b,b.propTypes={disabled:o.default.bool.isRequired,draft:o.default.bool,path:o.default.string,name:o.default.string,t:o.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(21)),i=(f(n(0)),f(n(2))),o=n(623),a=n(4),s=n(17),l=n(624),u=f(n(1218)),c=f(n(1219)),d=n(9);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){const{rowIndex:t,columnIndex:n,style:r,data:{mediaItems:i,isSelectedFile:o,onAssetClick:s,cardDraftText:l,cardWidth:u,cardHeight:f,isPrivate:p,displayURLs:m,loadDisplayURL:g,columnCount:v,gutter:y}}=e,b=t*v+n;if(b>=i.length)return null;const _=i[b];return(0,d.jsx)("div",{style:h(h({},r),{},{left:r.left+y*n,top:r.top+y,width:r.width-y,height:r.height-y})},(0,d.jsx)(c.default,{key:_.key,isSelected:o(_),text:_.name,onClick:()=>s(_),isDraft:_.draft,draftText:l,width:u,height:f,margin:"0px",isPrivate:p,displayURL:m.get(_.id,_.url?(0,a.Map)({url:_.url}):(0,a.Map)()),loadDisplayURL:()=>g(_),type:_.type,isViewableImage:_.isViewableImage}))}function v(e){const{mediaItems:t,setScrollContainerRef:n}=e;return(0,d.jsx)(b,{ref:n},(0,d.jsx)(u.default,null,n=>{let{height:r,width:i}=n;const o=parseInt(e.cardWidth,10),a=parseInt(e.cardHeight,10),s=parseInt(e.cardMargin,10),u=o+s,c=a+s,f=Math.floor(i/u),p=Math.ceil(t.length/f);return(0,d.jsx)(l.FixedSizeGrid,{columnCount:f,columnWidth:u,rowCount:p,rowHeight:c,width:i,height:r,itemData:h(h({},e),{},{gutter:s,columnCount:f})},g)}))}function y(e){let{setScrollContainerRef:t,mediaItems:n,isSelectedFile:r,onAssetClick:i,cardDraftText:s,cardWidth:l,cardHeight:u,cardMargin:f,isPrivate:p,displayURLs:h,loadDisplayURL:m,canLoadMore:g,onLoadMore:v,isPaginating:y,paginatingMessage:x}=e;return(0,d.jsx)(b,{ref:t},(0,d.jsx)(_,null,n.map(e=>(0,d.jsx)(c.default,{key:e.key,isSelected:r(e),text:e.name,onClick:()=>i(e),isDraft:e.draft,draftText:s,width:l,height:u,margin:f,isPrivate:p,displayURL:h.get(e.id,e.url?(0,a.Map)({url:e.url}):(0,a.Map)()),loadDisplayURL:()=>m(e),type:e.type,isViewableImage:e.isViewableImage})),g?(0,d.jsx)(o.Waypoint,{onEnter:v}):null),y?(0,d.jsx)(w,{isPrivate:p},x):null)}const b=(0,r.default)("div",{target:"e11970yf0",label:"CardGridContainer"})({name:"1wzx962",styles:"overflow-y:auto;overflow-x:hidden;"}),_=(0,r.default)("div",{target:"e11970yf1",label:"CardGrid"})({name:"wbkx89",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px;"}),w=(0,r.default)("h1",{target:"e11970yf2",label:"PaginatingMessage"})("color:",e=>e.isPrivate&&s.colors.textFieldBorder,";");function x(e){const{canLoadMore:t,isPaginating:n}=e;return t||n?(0,d.jsx)(y,e):(0,d.jsx)(v,e)}x.propTypes={setScrollContainerRef:i.default.func.isRequired,mediaItems:i.default.arrayOf(i.default.shape({displayURL:i.default.oneOfType([i.default.string,i.default.object]),id:i.default.string.isRequired,key:i.default.string.isRequired,name:i.default.string.isRequired,type:i.default.string.isRequired,draft:i.default.bool})).isRequired,isSelectedFile:i.default.func.isRequired,onAssetClick:i.default.func.isRequired,canLoadMore:i.default.bool,onLoadMore:i.default.func.isRequired,isPaginating:i.default.bool,paginatingMessage:i.default.string,cardDraftText:i.default.string.isRequired,cardWidth:i.default.string.isRequired,cardMargin:i.default.string.isRequired,loadDisplayURL:i.default.func.isRequired,isPrivate:i.default.bool,displayURLs:i.default.instanceOf(a.Map).isRequired};var k=x;t.default=k},function(e,t,n){"use strict";
/** @license React v17.0.2
* 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 r=60103,i=60106,o=60107,a=60108,s=60114,l=60109,u=60110,c=60112,d=60113,f=60120,p=60115,h=60116,m=60121,g=60122,v=60117,y=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),i=_("react.portal"),o=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),l=_("react.provider"),u=_("react.context"),c=_("react.forward_ref"),d=_("react.suspense"),f=_("react.suspense_list"),p=_("react.memo"),h=_("react.lazy"),m=_("react.block"),g=_("react.server.block"),v=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case l:return e;default:return t}}case i:return t}}}var x=l,k=r,E=c,S=o,O=h,C=p,T=i,A=s,P=a,R=d;t.ContextConsumer=u,t.ContextProvider=x,t.Element=k,t.ForwardRef=E,t.Fragment=S,t.Lazy=O,t.Memo=C,t.Portal=T,t.Profiler=A,t.StrictMode=P,t.Suspense=R,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===c},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===y||e===a||e===d||e===f||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===g)},t.typeOf=w},function(e,t,n){"use strict";n.r(t),function(e){var r=n(0),i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=void 0;u="undefined"!=typeof window?window:"undefined"!=typeof self?self:e;var c=null,d=null,f=u.clearTimeout,p=u.setTimeout,h=u.cancelAnimationFrame||u.mozCancelAnimationFrame||u.webkitCancelAnimationFrame,m=u.requestAnimationFrame||u.mozRequestAnimationFrame||u.webkitRequestAnimationFrame;function g(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&c(this.__resizeRAF__),this.__resizeRAF__=d((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var f=!1,p="";r="animationstart";var h="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=document.createElement("fakeelement");if(void 0!==g.style.animationName&&(f=!0),!1===f)for(var v=0;v<h.length;v++)if(void 0!==g.style[h[v]+"AnimationName"]){p="-"+h[v].toLowerCase()+"-",r=m[v],f=!0;break}t="@"+p+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",i=p+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){var d=o.ownerDocument,f=u.getComputedStyle(o);f&&"static"===f.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(d),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=d.createElement("div")).className="resize-triggers";var p=d.createElement("div");p.className="expand-trigger",p.appendChild(d.createElement("div"));var h=d.createElement("div");h.className="contract-trigger",o.__resizeTriggers__.appendChild(p),o.__resizeTriggers__.appendChild(h),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",s,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==h||null==m?(c=f,d=function(e){return p(e,20)}):(c=function(e){var t=l(e,2),n=t[0],r=t[1];h(n),f(r)},d=function(e){var t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});var v=function(e){function t(){var e,n,r;i(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,p=a-l-u;(!t&&r.state.height!==f||!n&&r.state.width!==p)&&(r.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}},r._setRef=function(e){r._autoSizer=e},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=g(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,s=e.style,l=this.state,u=l.height,c=l.width,d={overflow:"visible"},f={},p=!1;return i||(0===u&&(p=!0),d.height=0,f.height=u),o||(0===c&&(p=!0),d.width=0,f.width=c),Object(r.createElement)("div",{className:n,ref:this._setRef,style:a({},d,s)},!p&&t(f))}}]),t}(r.PureComponent);v.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.default=v}.call(this,n(56))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=u(n(0)),o=u(n(2)),a=u(n(33)),s=n(17),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,r.default)("div",{target:"e984n9b0",label:"Card"})("width:",e=>e.width,";height:",e=>e.height,";margin:",e=>e.margin,";border:",s.borders.textField,";border-color:",e=>e.isSelected&&s.colors.active,";border-radius:",s.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",e=>e.isPrivate&&s.colors.textFieldBorder,";&:focus{outline:none;}"),d=(0,r.default)("div",{target:"e984n9b1",label:"CardImageWrapper"})("height:",162,"px;",s.effects.checkerboard,";",s.shadows.inset,";border-bottom:solid ",s.lengths.borderWidth," ",s.colors.textFieldBorder,";position:relative;"),f=(0,r.default)("img",{target:"e984n9b2",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),p=(0,r.default)("div",{target:"e984n9b3",label:"CardFileIcon"})({name:"17s0kw4",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em;"}),h=(0,r.default)("p",{target:"e984n9b4",label:"CardText"})("color:",s.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3 !important;"),m=(0,r.default)("p",{target:"e984n9b5",label:"DraftText"})("color:",s.colors.mediaDraftText,";background-color:",s.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",s.lengths.borderRadius," 0 ",s.lengths.borderRadius," 0;");class g extends i.default.Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:i,width:o,height:a,margin:s,isPrivate:u,type:g,isViewableImage:v,isDraft:y}=this.props,b=t.get("url");return(0,l.jsx)(c,{isSelected:e,onClick:r,width:o,height:a,margin:s,tabIndex:"-1",isPrivate:u},(0,l.jsx)(d,null,y?(0,l.jsx)(m,{"data-testid":"draft-text"},i):null,b&&v?(0,l.jsx)(f,{src:b}):(0,l.jsx)(p,{"data-testid":"card-file-icon"},g)),(0,l.jsx)(h,null,n))}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}g.propTypes={isSelected:o.default.bool,displayURL:a.default.map.isRequired,text:o.default.string.isRequired,onClick:o.default.func.isRequired,draftText:o.default.string.isRequired,width:o.default.string.isRequired,height:o.default.string.isRequired,margin:o.default.string.isRequired,isPrivate:o.default.bool,type:o.default.string,isViewableImage:o.default.bool.isRequired,loadDisplayURL:o.default.func.isRequired,isDraft:o.default.bool};var v=g;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(2))),o=n(17),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e11npagm0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",e=>e.isPrivate&&o.colors.textFieldBorder,";");function u(e){let{content:t,isPrivate:n}=e;return(0,a.jsx)(l,{isPrivate:n},(0,a.jsx)("h1",null,t))}u.propTypes={content:i.default.string.isRequired,isPrivate:i.default.bool};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=void 0;var r=_(n(21)),i=_(n(0)),o=_(n(2)),a=_(n(33)),s=n(90),l=n(51),u=n(17),c=n(170),d=_(n(1222)),f=_(n(1225)),p=_(n(1226)),h=_(n(1229)),m=_(n(1230)),g=n(149),v=n(71),y=n(126),b=n(9);function _(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=(0,r.default)("div",{target:"e1yhfkro0",label:"CollectionContainer"})("margin:",u.lengths.pageMargin,";"),S=(0,r.default)("main",{target:"e1yhfkro1",label:"CollectionMain"})({name:"1r4jzjw",styles:"padding-left:280px;"}),O=(0,r.default)("div",{target:"e1yhfkro2",label:"SearchResultContainer"})(u.components.cardTop,";margin-bottom:22px;"),C=(0,r.default)("h1",{target:"e1yhfkro3",label:"SearchResultHeading"})(u.components.cardTopHeading,";");class T extends i.default.Component{constructor(){super(...arguments),k(this,"renderEntriesCollection",()=>{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return(0,b.jsx)(p.default,{collection:e,viewStyle:n,filterTerm:t})}),k(this,"renderEntriesSearch",()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return(0,b.jsx)(h.default,{collections:r?t.filter(e=>e===n):t,searchTerm:e})})}render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:o,isSingleSearchResult:a,searchTerm:s,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,filterTerm:v,t:y,onFilterClick:_,onGroupClick:w,filter:x,group:k,onChangeViewStyle:T,viewStyle:A}=this.props;let P=e.get("create")?(0,c.getNewEntryUrl)(n):"";P&&v&&(P=(0,c.getNewEntryUrl)(n),v&&(P=`${P}?path=${v}`));const R="collection.collectionTop.searchResults"+(a?"InCollection":"");return(0,b.jsx)(E,null,(0,b.jsx)(d.default,{collections:t,collection:(!o||a)&&e,isSearchEnabled:r,searchTerm:s,filterTerm:v}),(0,b.jsx)(S,null,o?(0,b.jsx)(O,null,(0,b.jsx)(C,null,y(R,{searchTerm:s,collection:e.get("label")}))):(0,b.jsx)(i.default.Fragment,null,(0,b.jsx)(f.default,{collection:e,newEntryUrl:P}),(0,b.jsx)(m.default,{viewStyle:A,onChangeViewStyle:T,sortableFields:l,onSortClick:u,sort:p,viewFilters:h,viewGroups:g,t:y,onFilterClick:_,onGroupClick:w,filter:x,group:k})),o?this.renderEntriesSearch():this.renderEntriesCollection()))}}t.Collection=T,k(T,"propTypes",{searchTerm:o.default.string,collectionName:o.default.string,isSearchResults:o.default.bool,isSingleSearchResult:o.default.bool,collection:a.default.map.isRequired,collections:a.default.map.isRequired,sortableFields:o.default.array,sort:a.default.orderedMap,onSortClick:o.default.func.isRequired});const A={sortByField:g.sortByField,filterByField:g.filterByField,changeViewStyle:g.changeViewStyle,groupByField:g.groupByField};const P=(0,s.connect)((function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:i,match:o,t:a}=t,{name:s,searchTerm:l="",filterTerm:u=""}=o.params,c=s?n.get(s):n.first(),d=(0,y.selectEntriesSort)(e.entries,c.get("name")),f=(0,v.selectSortableFields)(c,a),p=(0,v.selectViewFilters)(c),h=(0,v.selectViewGroups)(c),m=(0,y.selectEntriesFilter)(e.entries,c.get("name")),g=(0,y.selectEntriesGroup)(e.entries,c.get("name"));return{collection:c,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:i,searchTerm:l,filterTerm:u,sort:d,sortableFields:f,viewFilters:p,viewGroups:h,filter:m,group:g,viewStyle:(0,y.selectViewStyle)(e.entries)}}),A,(function(e,t,n){return x(x(x({},e),n),{},{onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)})}))(T);var R=(0,l.translate)()(P);t.default=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Sidebar=void 0;var r=h(n(21)),i=h(n(0)),o=h(n(2)),a=h(n(33)),s=n(9),l=n(51),u=n(155),c=n(17),d=n(432),f=h(n(1223)),p=h(n(1224));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={sidebarNavLinkActive:(0,s.css)("color:",c.colors.active,";background-color:",c.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},v=(0,r.default)("aside",{target:"el9l68m0",label:"SidebarContainer"})(c.components.card,";width:250px;padding:8px 0 12px;position:fixed;max-height:calc(100vh - 112px);display:flex;flex-direction:column;"),y=(0,r.default)("h2",{target:"el9l68m1",label:"SidebarHeading"})("font-size:23px;font-weight:600;padding:0;margin:18px 12px 12px;color:",c.colors.textLead,";"),b=(0,r.default)("ul",{target:"el9l68m2",label:"SidebarNavList"})({name:"1gam4ys",styles:"margin:16px 0 0;list-style:none;overflow:auto;"}),_=(0,r.default)(u.NavLink,{target:"el9l68m3",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 12px;border-left:2px solid #fff;z-index:-1;",c.Icon,"{margin-right:8px;flex-shrink:0;}",e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{",g.sidebarNavLinkActive,";};label:SidebarNavLink;"),";");class w extends i.default.Component{constructor(){super(...arguments),m(this,"renderLink",(e,t)=>{const n=e.get("name");return e.has("nested")?(0,s.jsx)("li",{key:n},(0,s.jsx)(p.default,{collection:e,filterTerm:t,"data-testid":n})):(0,s.jsx)("li",{key:n},(0,s.jsx)(_,{to:"/collections/"+n,activeClassName:"sidebar-active","data-testid":n},(0,s.jsx)(c.Icon,{type:"write"}),e.get("label")))})}render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:i,filterTerm:o}=this.props;return(0,s.jsx)(v,null,(0,s.jsx)(y,null,i("collection.sidebar.collections")),n&&(0,s.jsx)(f.default,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>(0,d.searchCollections)(e,t)}),(0,s.jsx)(b,null,e.toList().filter(e=>!0!==e.get("hide")).map(e=>this.renderLink(e,o))))}}t.Sidebar=w,m(w,"propTypes",{collections:a.default.map.isRequired,collection:a.default.map,isSearchEnabled:o.default.bool,searchTerm:o.default.string,filterTerm:o.default.string,t:o.default.func.isRequired});var x=(0,l.translate)()(w);t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21)),i=c(n(0)),o=n(17),a=n(51),s=c(n(2)),l=c(n(33)),u=n(9);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=(0,r.default)("div",{target:"e10zyk1w0",label:"SearchContainer"})("margin:0 12px;position:relative;",o.Icon,"{position:absolute;top:0;left:6px;z-index:",o.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),p=(0,r.default)("div",{target:"e10zyk1w1",label:"InputContainer"})({name:"14s4iyf",styles:"display:flex;align-items:center;position:relative;"}),h=(0,r.default)("input",{target:"e10zyk1w2",label:"SearchInput"})("background-color:#eff0f4;border-radius:",o.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",o.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",o.colorsRaw.blue,";}"),m=(0,r.default)("div",{target:"e10zyk1w3",label:"SuggestionsContainer"})({name:"1jke4yk",styles:"position:relative;width:100%;"}),g=(0,r.default)("ul",{target:"e10zyk1w4",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",o.lengths.borderRadius,";border:1px solid ",o.colors.textFieldBorder,";z-index:",o.zIndex.zIndex1,";"),v=(0,r.default)("li",{target:"e10zyk1w5",label:"SuggestionHeader"})("padding:0 6px 6px 32px;font-size:12px;color:",o.colors.text,";"),y=(0,r.default)("li",{target:"e10zyk1w6",label:"SuggestionItem"})(e=>{let{isActive:t}=e;return`\n color: ${t?o.colors.active:o.colorsRaw.grayDark};\n background-color: ${t?o.colors.activeBackground:"inherit"};\n padding: 6px 6px 6px 32px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: ${o.colors.active};\n background-color: ${o.colors.activeBackground};\n }\n`},""),b=(0,r.default)("div",{target:"e10zyk1w7",label:"SuggestionDivider"})({name:"8atqhb",styles:"width:100%;"});class _ extends i.default.Component{constructor(){super(...arguments),d(this,"state",{query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()}),d(this,"submitSearch",()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)}),d(this,"handleKeyDown",e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))}),d(this,"handleQueryChange",e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()}),d(this,"handleSuggestionClick",(e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()})}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}render(){const{collections:e,t:t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:i}=this.state;return(0,u.jsx)(f,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==i)},(0,u.jsx)(p,null,(0,u.jsx)(o.Icon,{type:"search"}),(0,u.jsx)(h,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:i})),n&&(0,u.jsx)(m,null,(0,u.jsx)(g,null,(0,u.jsx)(v,null,t("collection.sidebar.searchIn")),(0,u.jsx)(y,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault()},t("collection.sidebar.allCollections")),(0,u.jsx)(b,null),e.toIndexedSeq().map((e,t)=>(0,u.jsx)(y,{key:t,isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault()},e.get("label"))))))}}d(_,"propTypes",{collections:l.default.map.isRequired,collection:l.default.map,searchTerm:s.default.string.isRequired,onSubmit:s.default.func.isRequired,t:s.default.func.isRequired});var w=(0,a.translate)()(_);t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NestedCollection=void 0,t.getTreeData=R,t.updateNode=j,t.walk=P;var r=v(n(21)),i=v(n(297)),o=v(n(0)),a=n(4),s=n(9),l=n(90),u=n(155),c=n(98),d=n(147),f=n(17),p=v(n(2)),h=v(n(33)),m=n(126),g=n(71);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{addFileTemplateFields:w}=d.stringTemplate,x=(0,r.default)("div",{target:"eqdmagz0",label:"NodeTitleContainer"})({name:"1n2mv2k",styles:"display:flex;justify-content:center;align-items:center;"}),k=(0,r.default)("div",{target:"eqdmagz1",label:"NodeTitle"})({name:"15ro776",styles:"margin-right:4px;"}),E=(0,r.default)("div",{target:"eqdmagz2",label:"Caret"})({name:"wmzlvu",styles:"position:relative;top:2px;"}),S=(0,r.default)(E,{target:"eqdmagz3",label:"CaretDown"})(f.components.caretDown,";color:currentColor;"),O=(0,r.default)(E,{target:"eqdmagz4",label:"CaretRight"})(f.components.caretRight,";color:currentColor;left:2px;"),C=(0,r.default)(u.NavLink,{target:"eqdmagz5",label:"TreeNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px;padding-left:",e=>20*e.depth+12,"px;border-left:2px solid #fff;",f.Icon,"{margin-right:8px;flex-shrink:0;}",e=>(0,s.css)("&:hover,&:active,&.",e.activeClassName,"{color:",f.colors.active,";background-color:",f.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;"),";");function T(e){var t;return e.isRoot?e.title:(null===(t=e.children.find(e=>!e.isDir&&e.title))||void 0===t?void 0:t.title)||e.title}function A(e){const{collection:t,treeData:n,depth:r=0,onToggle:a}=e,l=t.get("name");return(0,i.default)(n,T).map(e=>{var n;if(e.children.length<=1&&!(null!==(n=e.children[0])&&void 0!==n&&n.isDir)&&r>0)return null;let i="/collections/"+l;r>0&&(i=`${i}/filter${e.path}`);const u=T(e),c=0===r||e.children.some(e=>e.children.some(e=>e.isDir));return(0,s.jsx)(o.default.Fragment,{key:e.path},(0,s.jsx)(C,{exact:!0,to:i,activeClassName:"sidebar-active",onClick:()=>a({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path},(0,s.jsx)(f.Icon,{type:"write"}),(0,s.jsx)(x,null,(0,s.jsx)(k,null,u),c&&(e.expanded?(0,s.jsx)(S,null):(0,s.jsx)(O,null)))),e.expanded&&(0,s.jsx)(A,{collection:t,depth:r+1,treeData:e.children,onToggle:a}))})}function P(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function R(e,t){const n=e.get("folder"),r=t.toJS().map(e=>b(b({},e),{},{path:e.path.slice(n.length)})),i=r.reduce((e,t)=>{let n=(0,c.dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(c.sep);e[n]=t.pop(),n=t.length&&t.join(c.sep)}return e},{}),o=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(i).map(e=>{let[t,n]=e;return{title:n,path:t,isDir:!0,isRoot:!1}}),...r.map((n,r)=>{let i=t.get(r);i=i.set("data",w(i.get("path"),i.get("data")));const o=(0,g.selectEntryCollectionTitle)(e,i);return b(b({},n),{},{title:o,isDir:!1,isRoot:!1})})].reduce((e,t)=>{const n="/"===t.path?"":(0,c.dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e},{});return o[""].reduce((function e(t,n){const r=n;let i=[];return o[r.path]&&(i=o[r.path].reduce(e,[])),t.push(b(b({},r),{},{children:i})),t}),[])}function j(e,t,n){let r=!1;return function e(i){if(r)return i;for(let e=0;e<i.length;e++)if(i[e].path===t.path)return i[e]=n(t),r=!0,i;return i.forEach(t=>e(t.children)),i}([...e])}A.propTypes={collection:h.default.map.isRequired,depth:p.default.number,treeData:p.default.array.isRequired,onToggle:p.default.func.isRequired};class I extends o.default.Component{constructor(e){super(e),_(this,"onToggle",e=>{let{node:t,expanded:n}=e;if(!this.state.selected||this.state.selected.path===t.path||n){const e=j(this.state.treeData,t,e=>b(b({},e),{},{expanded:n}));this.setState({treeData:e,selected:t,useFilter:!1})}else this.setState({selected:t,useFilter:!1})}),this.state={treeData:R(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};P(this.state.treeData,t=>{t.expanded&&(e[t.path]=!0)});const i=R(t,n),o="/"+r;P(i,t=>{(e[t.path]||this.state.useFilter&&o.startsWith(t.path))&&(t.expanded=!0)}),this.setState({treeData:i})}}render(){const{treeData:e}=this.state,{collection:t}=this.props;return(0,s.jsx)(A,{collection:t,treeData:e,onToggle:this.onToggle})}}t.NestedCollection=I,_(I,"propTypes",{collection:h.default.map.isRequired,entries:h.default.list.isRequired,filterTerm:p.default.string});var M=(0,l.connect)((function(e,t){const{collection:n}=t;return{entries:(0,m.selectEntries)(e.entries,n)||(0,a.List)()}}),null)(I);t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21)),i=c(n(2)),o=c(n(33)),a=(c(n(0)),n(51)),s=n(155),l=n(17),u=n(9);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"enajvhy0",label:"CollectionTopContainer"})(l.components.cardTop,";margin-bottom:22px;"),f=(0,r.default)("div",{target:"enajvhy1",label:"CollectionTopRow"})({name:"1lekzkb",styles:"display:flex;align-items:center;justify-content:space-between;"}),p=(0,r.default)("h1",{target:"enajvhy2",label:"CollectionTopHeading"})(l.components.cardTopHeading,";"),h=(0,r.default)(s.Link,{target:"enajvhy3",label:"CollectionTopNewButton"})(l.buttons.button,";",l.shadows.dropDeep,";",l.buttons.default,";",l.buttons.gray,";padding:0 30px;"),m=(0,r.default)("p",{target:"enajvhy4",label:"CollectionTopDescription"})(l.components.cardTopDescription,";margin-bottom:0;");function g(e){let{collection:t,newEntryUrl:n,t:r}=e;const{collectionLabel:i,collectionLabelSingular:o,collectionDescription:a}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(t);return(0,u.jsx)(d,null,(0,u.jsx)(f,null,(0,u.jsx)(p,null,i),n?(0,u.jsx)(h,{to:n},r("collection.collectionTop.newButton",{collectionLabel:o||i})):null),a?(0,u.jsx)(m,null,a):null)}g.propTypes={collection:o.default.map.isRequired,newEntryUrl:i.default.string,t:i.default.func.isRequired};var v=(0,a.translate)()(g);t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EntriesCollection=void 0,t.filterNestedEntries=k;var r=v(n(21)),i=v(n(173)),o=v(n(0)),a=v(n(2)),s=v(n(33)),l=n(90),u=n(51),c=n(40),d=n(17),f=n(149),p=n(126),h=n(426),m=v(n(625)),g=n(9);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=(0,r.default)("h2",{target:"e5mmq7y0",label:"GroupHeading"})("font-size:23px;font-weight:600;color:",d.colors.textLead,";"),_=(0,r.default)("div",{target:"e5mmq7y1",label:"GroupContainer"})("");function w(e,t){return e.filter(e=>t.has(e.get("path")))}class x extends o.default.Component{constructor(){super(...arguments),y(this,"handleCursorActions",(e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)})}componentDidMount(){const{collection:e,entriesLoaded:t,loadEntries:n}=this.props;e&&!t&&n(e)}componentDidUpdate(e){const{collection:t,entriesLoaded:n,loadEntries:r}=this.props;t===e.collection||n||r(t)}render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:o,cursor:a,page:s,t:l}=this.props,u=t=>{let{entries:n}=t;return(0,g.jsx)(m.default,{collections:e,entries:n,isFetching:r,collectionName:e.get("label"),viewStyle:o,cursor:a,handleCursorActions:(0,i.default)(this.handleCursorActions,a),page:s})};return n&&n.length>0?function(e,t,n,r){return e.map(e=>{const i=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return(0,g.jsx)(_,{key:e.id,id:e.id},(0,g.jsx)(b,null,i),(0,g.jsx)(n,{entries:w(t,e.paths)}))})}(n,t,u,l):(0,g.jsx)(u,{entries:t})}}function k(e,t,n){return n.filter(n=>{const r=n.get("path").slice(t.length+1);if(!r.startsWith(e))return!1;if(e){return 2===r.slice(e.length+1).split("/").length}return r.split("/").length<=2})}t.EntriesCollection=x,y(x,"propTypes",{collection:s.default.map.isRequired,page:a.default.number,entries:s.default.list,groups:a.default.array,isFetching:a.default.bool.isRequired,viewStyle:a.default.string,cursor:a.default.object.isRequired,loadEntries:a.default.func.isRequired,traverseCollectionCursor:a.default.func.isRequired,entriesLoaded:a.default.bool});const E={loadEntries:f.loadEntries,traverseCollectionCursor:f.traverseCollectionCursor},S=(0,l.connect)((function(e,t){const{collection:n,viewStyle:r,filterTerm:i}=t,o=e.entries.getIn(["pages",n.get("name"),"page"]);let a=(0,p.selectEntries)(e.entries,n);const s=(0,p.selectGroups)(e.entries,n);if(n.has("nested")){a=k(i||"",n.get("folder"),a)}const l=(0,p.selectEntriesLoaded)(e.entries,n.get("name")),u=(0,p.selectIsFetching)(e.entries,n.get("name")),d=(0,h.selectCollectionEntriesCursor)(e.cursors,n.get("name"));return{collection:n,page:o,entries:a,groups:s,entriesLoaded:l,isFetching:u,viewStyle:r,cursor:c.Cursor.create(d).clearData()}}),E)(x);var O=(0,u.translate)()(S);t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(21)),i=f(n(2)),o=f(n(0)),a=f(n(33)),s=n(623),l=n(4),u=n(71),c=f(n(1228)),d=n(9);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=(0,r.default)("ul",{target:"e1hbvtjf0",label:"CardsGrid"})({name:"c1vo2d",styles:"display:flex;flex-flow:row wrap;list-style-type:none;margin-left:-12px;margin-top:16px;margin-bottom:16px;"});class g extends o.default.Component{constructor(){super(...arguments),h(this,"hasMore",()=>{var e,t;return null===(e=this.props.cursor)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t.has("append_next")}),h(this,"handleLoadMore",()=>{this.hasMore()&&this.props.handleCursorActions("append_next")}),h(this,"inferFields",e=>{const t=(0,u.selectInferedField)(e,"title"),n=(0,u.selectInferedField)(e,"description"),r=(0,u.selectInferedField)(e,"image"),i=(0,u.selectFields)(e),o=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:i&&i.filter(e=>-1===o.indexOf(e.get("name")))}}),h(this,"renderCardsForSingleCollection",()=>{const{collections:e,entries:t,viewStyle:n}=this.props,r={collection:e,inferedFields:this.inferFields(e),viewStyle:n};return t.map((e,t)=>(0,d.jsx)(c.default,p({},r,{entry:e,key:t})))}),h(this,"renderCardsForMultipleCollections",()=>{const{collections:e,entries:t}=this.props,n=1===e.size;return t.map((t,r)=>{const i=t.get("collection"),o=e.find(e=>e.get("name")===i),a=!n&&o.get("label"),s={collection:o,entry:t,inferedFields:this.inferFields(o),collectionLabel:a};return(0,d.jsx)(c.default,p({},s,{key:r}))})})}render(){const{collections:e,page:t}=this.props;return(0,d.jsx)("div",null,(0,d.jsx)(m,null,l.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections(),this.hasMore()&&(0,d.jsx)(s.Waypoint,{key:t,onEnter:this.handleLoadMore})))}}t.default=g,h(g,"propTypes",{collections:a.default.iterable.isRequired,entries:a.default.list,viewStyle:i.default.string,cursor:i.default.any.isRequired,handleCursorActions:i.default.func.isRequired,page:i.default.number})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(21)),i=(f(n(0)),n(90)),o=n(155),a=n(17),s=n(200),l=n(429),u=n(322),c=n(71),d=n(9);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=(0,r.default)("li",{target:"eab48an0",label:"ListCard"})(a.components.card,";width:",a.lengths.topCardWidth,";margin-left:12px;margin-bottom:10px;overflow:hidden;"),v=(0,r.default)(o.Link,{target:"eab48an1",label:"ListCardLink"})("display:block;max-width:100%;padding:16px 22px;&:hover{background-color:",a.colors.foreground,";}"),y=(0,r.default)("li",{target:"eab48an2",label:"GridCard"})(a.components.card,";flex:0 0 335px;height:240px;overflow:hidden;margin-left:12px;margin-bottom:16px;"),b=(0,r.default)(o.Link,{target:"eab48an3",label:"GridCardLink"})("display:block;height:100%;outline-offset:-2px;&,&:hover{background-color:",a.colors.foreground,";color:",a.colors.text,";}"),_=(0,r.default)("h2",{target:"eab48an4",label:"CollectionLabel"})("font-size:12px;color:",a.colors.textLead,";text-transform:uppercase;"),w=(0,r.default)("h2",{target:"eab48an5",label:"ListCardTitle"})({name:"gx0lhm",styles:"margin-bottom:0;"}),x=(0,r.default)("h2",{target:"eab48an6",label:"CardHeading"})({name:"1kpnu25",styles:"margin:0 0 2px;"}),k=(0,r.default)("div",{target:"eab48an7",label:"CardBody"})("padding:16px 22px;height:90px;position:relative;margin-bottom:",e=>e.hasImage&&0,";&:after{content:'';position:absolute;display:block;z-index:",a.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",a.colorsRaw.white,";}"),E=(0,r.default)("div",{target:"eab48an8",label:"CardImage"})("background-image:url(",e=>e.src,");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;");var S=(0,i.connect)((function(e,t){var n;const{entry:r,inferedFields:i,collection:o}=t,a=r.get("data"),s=(0,c.selectEntryCollectionTitle)(o,r);let l=a.get(i.imageField);l&&(l=encodeURI(l));const d=(0,u.selectIsLoadingAsset)(e.medias);return{summary:s,path:`/collections/${o.get("name")}/entries/${r.get("slug")}`,image:l,imageFolder:null===(n=o.get("fields"))||void 0===n?void 0:n.find(e=>e.get("name")===i.imageField&&"image"===e.get("widget")),isLoadingAsset:d}}),(function(e){return{boundGetAsset:(t,n)=>(0,s.boundGetAsset)(e,t,n)}}),(function(e,t,n){return h(h(h(h({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))((function(e){let{path:t,summary:n,image:r,imageField:i,collectionLabel:o,viewStyle:a=l.VIEW_STYLE_LIST,getAsset:s}=e;return a===l.VIEW_STYLE_LIST?(0,d.jsx)(g,null,(0,d.jsx)(v,{to:t},o?(0,d.jsx)(_,null,o):null,(0,d.jsx)(w,null,n))):a===l.VIEW_STYLE_GRID?(0,d.jsx)(y,null,(0,d.jsx)(b,{to:t},(0,d.jsx)(k,{hasImage:r},o?(0,d.jsx)(_,null,o):null,(0,d.jsx)(x,null,n)),r?(0,d.jsx)(E,{src:s(r,i).toString()}):null)):void 0}));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(258)),i=p(n(0)),o=p(n(2)),a=p(n(33)),s=n(90),l=n(40),u=n(121),c=n(320),d=p(n(625)),f=n(9);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends i.default.Component{constructor(){super(...arguments),h(this,"getCursor",()=>{const{page:e}=this.props;return l.Cursor.create({actions:isNaN(e)?[]:["append_next"]})}),h(this,"handleCursorActions",e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:i}=this.props;if("append_next"===e){r(n,i,t+1)}})}componentDidMount(){const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&(0,r.default)(e.collectionNames,n))return;const{searchEntries:i}=e;i(t,n)}componentWillUnmount(){this.props.clearSearch()}render(){const{collections:e,entries:t,isFetching:n}=this.props;return(0,f.jsx)(d.default,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n})}}h(m,"propTypes",{isFetching:o.default.bool,searchEntries:o.default.func.isRequired,clearSearch:o.default.func.isRequired,searchTerm:o.default.string.isRequired,collections:a.default.seq,collectionNames:o.default.array,entries:a.default.list,page:o.default.number});const g={searchEntries:c.searchEntries,clearSearch:c.clearSearch};var v=(0,s.connect)((function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),i=t.collections.keySeq().toArray();return{isFetching:e.search.isFetching,page:e.search.page,collections:r,collectionNames:i,entries:(0,u.selectSearchedEntries)(e,i),searchTerm:n}}),g)(m);t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21)),i=(c(n(0)),n(17)),o=c(n(1231)),a=c(n(1232)),s=c(n(1233)),l=c(n(1234)),u=n(9);function c(e){return e&&e.__esModule?e:{default:e}}const d=(0,r.default)("div",{target:"e17kb5zm0",label:"CollectionControlsContainer"})("display:flex;align-items:center;flex-direction:row-reverse;margin-top:22px;width:",i.lengths.topCardWidth,";max-width:100%;& > div{margin-left:6px;}");var f=function(e){let{viewStyle:t,onChangeViewStyle:n,sortableFields:r,onSortClick:i,sort:c,viewFilters:f,viewGroups:p,onFilterClick:h,onGroupClick:m,t:g,filter:v,group:y}=e;return(0,u.jsx)(d,null,(0,u.jsx)(o.default,{viewStyle:t,onChangeViewStyle:n}),p.length>0&&(0,u.jsx)(l.default,{viewGroups:p,onGroupClick:m,t:g,group:y}),f.length>0&&(0,u.jsx)(s.default,{viewFilters:f,onFilterClick:h,t:g,filter:v}),r.length>0&&(0,u.jsx)(a.default,{fields:r,sort:c,onSortClick:i}))};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),n(17)),o=n(429),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("div",{target:"e1d8o61m0",label:"ViewControlsSection"})({name:"nuh2uw",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px;"}),u=(0,r.default)("button",{target:"e1d8o61m1",label:"ViewControlsButton"})(i.buttons.button,";color:",e=>e.isActive?i.colors.active:"#b3b9c4",";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",i.Icon,"{display:block;}");var c=function(e){let{viewStyle:t,onChangeViewStyle:n}=e;return(0,a.jsx)(l,null,(0,a.jsx)(u,{isActive:t===o.VIEW_STYLE_LIST,onClick:()=>n(o.VIEW_STYLE_LIST)},(0,a.jsx)(i.Icon,{type:"list"})),(0,a.jsx)(u,{isActive:t===o.VIEW_STYLE_GRID,onClick:()=>n(o.VIEW_STYLE_GRID)},(0,a.jsx)(i.Icon,{type:"grid"})))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(0))&&r.__esModule;var r,i=n(51),o=n(17),a=n(423),s=n(433),l=n(9);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c={[a.SortDirection.Ascending]:"up",[a.SortDirection.Descending]:"down"};var d=(0,i.translate)()((function(e){let{t:t,fields:n,onSortClick:r,sort:i}=e;const d=null==i?void 0:i.valueSeq().toJS().some(e=>e.direction!==a.SortDirection.None);return(0,l.jsx)(o.Dropdown,{renderButton:()=>(0,l.jsx)(s.ControlButton,{active:d,title:t("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},n.map(e=>{const t=null==i?void 0:i.getIn([e.key,"direction"]),n=t&&t!==a.SortDirection.None,s=function(e){switch(e){case a.SortDirection.Ascending:return a.SortDirection.Descending;case a.SortDirection.Descending:return a.SortDirection.None;default:return a.SortDirection.Ascending}}(t);return(0,l.jsx)(o.DropdownItem,u({key:e.key,label:e.label,onClick:()=>r(e.key,s),isActive:n},n&&function(e){return{icon:"chevron",iconDirection:c[e],iconSmall:!0}}(t)))}))}));t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(0))&&r.__esModule;var r,i=n(51),o=n(17),a=n(433),s=n(9);var l=(0,i.translate)()((function(e){let{viewFilters:t,t:n,onFilterClick:r,filter:i}=e;const l=null==i?void 0:i.valueSeq().toJS().some(e=>!0===e.active);return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:l,title:n("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left"},t.map(e=>(0,s.jsx)(o.DropdownCheckedItem,{key:e.id,label:e.label,id:e.id,checked:i.getIn([e.id,"active"],!1),onClick:()=>r(e)})))}));t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(0))&&r.__esModule;var r,i=n(51),o=n(17),a=n(433),s=n(9);var l=(0,i.translate)()((function(e){let{viewGroups:t,t:n,onGroupClick:r,group:i}=e;const l=null==i?void 0:i.valueSeq().toJS().some(e=>!0===e.active);return(0,s.jsx)(o.Dropdown,{renderButton:()=>(0,s.jsx)(a.ControlButton,{active:l,title:n("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},t.map(e=>(0,s.jsx)(o.DropdownItem,{key:e.id,label:e.label,onClick:()=>r(e),isActive:i.getIn([e.id,"active"],!1)})))}));t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(21)),i=y(n(2)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(0)),a=y(n(33)),s=n(4),l=n(51),u=n(90),c=n(17),d=n(432),f=n(259),p=n(121),h=n(124),m=y(n(1236)),g=n(9);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}const b=(0,r.default)("div",{target:"eg19in30",label:"WorkflowContainer"})("padding:",c.lengths.pageMargin," 0;height:100vh;"),_=(0,r.default)("div",{target:"eg19in31",label:"WorkflowTop"})(c.components.cardTop,";"),w=(0,r.default)("div",{target:"eg19in32",label:"WorkflowTopRow"})("display:flex;justify-content:space-between;span[role='button']{",c.shadows.dropDeep,";}"),x=(0,r.default)("h1",{target:"eg19in33",label:"WorkflowTopHeading"})(c.components.cardTopHeading,";"),k=(0,r.default)("p",{target:"eg19in34",label:"WorkflowTopDescription"})(c.components.cardTopDescription,";");class E extends o.Component{componentDidMount(){const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:i,publishUnpublishedEntry:o,deleteUnpublishedEntry:a,collections:s,t:l}=this.props;if(!e)return null;if(n)return(0,g.jsx)(c.Loader,{active:!0},l("workflow.workflow.loading"));const u=r.get("pending_review").size,f=r.get("pending_publish").size;return(0,g.jsx)(b,null,(0,g.jsx)(_,null,(0,g.jsx)(w,null,(0,g.jsx)(x,null,l("workflow.workflow.workflowHeading")),(0,g.jsx)(c.Dropdown,{dropdownWidth:"160px",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>(0,g.jsx)(c.StyledDropdownButton,null,l("workflow.workflow.newPost"))},s.filter(e=>e.get("create")).toList().map(e=>(0,g.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label"),onClick:()=>(0,d.createNewEntry)(e.get("name"))})))),(0,g.jsx)(k,null,l("workflow.workflow.description",{smart_count:u,readyCount:f}))),(0,g.jsx)(m.default,{entries:r,handleChangeStatus:i,handlePublish:o,handleDelete:a,isOpenAuthoring:t,collections:s}))}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(E,"propTypes",{collections:a.default.map.isRequired,isEditorialWorkflow:i.default.bool.isRequired,isOpenAuthoring:i.default.bool,isFetching:i.default.bool,unpublishedEntries:a.default.map,loadUnpublishedEntries:i.default.func.isRequired,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,t:i.default.func.isRequired});var S=(0,u.connect)((function(e){const{collections:t,config:n,globalUI:r}=e,i=n.publish_mode===h.EDITORIAL_WORKFLOW,o={collections:t,isEditorialWorkflow:i,isOpenAuthoring:r.useOpenAuthoring};return i&&(o.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),o.unpublishedEntries=h.status.reduce((t,n)=>{const r=(0,p.selectUnpublishedEntriesByStatus)(e,n);return t.set(n,r)},(0,s.OrderedMap)())),o}),{loadUnpublishedEntries:f.loadUnpublishedEntries,updateUnpublishedEntryStatus:f.updateUnpublishedEntryStatus,publishUnpublishedEntry:f.publishUnpublishedEntry,deleteUnpublishedEntry:f.deleteUnpublishedEntry})((0,l.translate)()(E));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9),i=m(n(21)),o=m(n(2)),a=m(n(0)),s=m(n(33)),l=m(n(195)),u=n(51),c=n(17),d=n(124),f=n(172),p=m(n(1237)),h=n(71);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v=(0,i.default)("div",{target:"e1sboua10",label:"WorkflowListContainer"})({name:"1booyhj",styles:"min-height:60%;display:grid;grid-template-columns:33.3% 33.3% 33.3%;"}),y=(0,i.default)("div",{target:"e1sboua11",label:"WorkflowListContainerOpenAuthoring"})({name:"1q1dzdp",styles:"min-height:60%;display:grid;grid-template-columns:50% 50% 0%;"});var b={name:"qbubgm",styles:"margin-left:0;"},_={name:"1xzanuf",styles:"margin-right:0;"};const w={columnPosition:e=>0===e&&b||2===e&&_||(0,r.css)("&:before,&:after{content:'';display:block;position:absolute;width:2px;height:80%;top:76px;background-color:",c.colors.textFieldBorder,";}&:before{left:-23px;}&:after{right:-23px;}"),column:{name:"f8lkbe-column",styles:"margin:0 20px;transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;;label:column;"},columnHovered:(0,r.css)("border-color:",c.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"9wvypa-hiddenColumn",styles:"display:none;;label:hiddenColumn;"},hiddenRightBorder:{name:"hg8806-hiddenRightBorder",styles:"&:not(:first-child):not(:last-child){&:after{display:none;}};label:hiddenRightBorder;"}},x=(0,i.default)("h2",{target:"e1sboua12",label:"ColumnHeader"})("font-size:20px;font-weight:normal;padding:4px 14px;border-radius:",c.lengths.borderRadius,";margin-bottom:28px;",e=>"draft"===e.name&&(0,r.css)("background-color:",c.colors.statusDraftBackground,";color:",c.colors.statusDraftText,";;label:ColumnHeader;")," ",e=>"pending_review"===e.name&&(0,r.css)("background-color:",c.colors.statusReviewBackground,";color:",c.colors.statusReviewText,";;label:ColumnHeader;")," ",e=>"pending_publish"===e.name&&(0,r.css)("background-color:",c.colors.statusReadyBackground,";color:",c.colors.statusReadyText,";;label:ColumnHeader;"),""),k=(0,i.default)("p",{target:"e1sboua13",label:"ColumnCount"})("font-size:13px;font-weight:500;color:",c.colors.text,";text-transform:uppercase;margin-bottom:6px;");class E extends a.default.Component{constructor(){super(...arguments),g(this,"handleChangeStatus",(e,t)=>{const n=t.slug,r=t.collection,i=t.ownStatus;this.props.handleChangeStatus(r,n,i,e)}),g(this,"requestDelete",(e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)}),g(this,"requestPublish",(e,t,n)=>{n===d.status.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))}),g(this,"renderColumns",(e,t)=>{const{isOpenAuthoring:n,collections:i,t:o}=this.props;return e?t?(0,r.jsx)("div",null,e.map(e=>{const t=(0,l.default)(e.get("updatedOn")).format(o("workflow.workflow.dateFormat")),n=e.get("slug"),a=e.get("collection"),s=`collections/${a}/entries/${n}?ref=workflow`,u=e.get("status"),c=i.find(e=>e.get("name")===a),m=null==c?void 0:c.get("label"),g=e.get("isModification"),v=null==c?void 0:c.get("publish"),y=u===d.status.last()&&!e.get("isPersisting",!1),b=e.get("author");return(0,r.jsx)(f.DragSource,{namespace:"cms-workflow",key:`${a}-${n}`,slug:n,collection:a,ownStatus:u},i=>i((0,r.jsx)("div",null,(0,r.jsx)(p.default,{collectionLabel:m||a,title:(0,h.selectEntryCollectionTitle)(c,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:g,editLink:s,timestamp:t,onDelete:this.requestDelete.bind(this,a,n,u),allowPublish:v,canPublish:y,onPublish:this.requestPublish.bind(this,a,n,u),postAuthor:b}))))})):e.entrySeq().map((e,t)=>{let[i,o]=e;return(0,r.jsx)(f.DropTarget,{namespace:"cms-workflow",key:i,onDrop:this.handleChangeStatus.bind(this,i)},(e,a)=>{let{isHovered:s}=a;return e((0,r.jsx)("div",{style:{height:"100%"}},(0,r.jsx)("div",{css:(0,r.css)([w.column,w.columnPosition(t),s&&w.columnHovered,n&&"pending_publish"===i&&w.hiddenColumn,n&&"pending_review"===i&&w.hiddenRightBorder],";label:WorkflowList;")},(0,r.jsx)(x,{name:i},function(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}(i,this.props.t)),(0,r.jsx)(k,null,this.props.t("workflow.workflowList.currentEntries",{smart_count:o.size})),this.renderColumns(o,i))))})}):null})}render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?y:v;return(0,r.jsx)(t,null,e)}}g(E,"propTypes",{entries:s.default.orderedMap,handleChangeStatus:o.default.func.isRequired,handlePublish:o.default.func.isRequired,handleDelete:o.default.func.isRequired,t:o.default.func.isRequired,isOpenAuthoring:o.default.bool,collections:s.default.map.isRequired});var S=(0,f.HTML5DragDrop)((0,u.translate)()(E));t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(21)),i=(u(n(0)),u(n(2))),o=n(9),a=n(51),s=n(155),l=n(17);function u(e){return e&&e.__esModule?e:{default:e}}const c={text:{name:"1v21rim-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;;label:text;"},button:(0,o.css)(l.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px 0;;label:button;")},d=(0,r.default)(s.Link,{target:"e1x8f48e0",label:"WorkflowLink"})({name:"xe15uv",styles:"display:block;padding:0 18px 18px;height:200px;overflow:hidden;"}),f=(0,r.default)("div",{target:"e1x8f48e1",label:"CardCollection"})("font-size:14px;color:",l.colors.textLead,";text-transform:uppercase;margin-top:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),p=(0,r.default)("h2",{target:"e1x8f48e2",label:"CardTitle"})("margin:28px 0 0;color:",l.colors.textLead,";"),h=(0,r.default)("div",{target:"e1x8f48e3",label:"CardDateContainer"})(c.text,";"),m=(0,r.default)("p",{target:"e1x8f48e4",label:"CardBody"})(c.text,";color:",l.colors.text,";margin:24px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;"),g=(0,r.default)("div",{target:"e1x8f48e5",label:"CardButtonContainer"})("background-color:",l.colors.foreground,";position:absolute;bottom:0;width:100%;padding:12px 18px;display:flex;opacity:0;transition:opacity ",l.transitions.main,";cursor:pointer;"),v=(0,r.default)("button",{target:"e1x8f48e6",label:"DeleteButton"})(c.button,";background-color:",l.colorsRaw.redLight,";color:",l.colorsRaw.red,";margin-right:6px;"),y=(0,r.default)("button",{target:"e1x8f48e7",label:"PublishButton"})(c.button,";background-color:",l.colorsRaw.teal,";color:",l.colors.textLight,";margin-left:6px;&[disabled]{",l.buttons.disabled,";}"),b=(0,r.default)("div",{target:"e1x8f48e8",label:"WorkflowCardContainer"})(l.components.card,";margin-bottom:24px;position:relative;overflow:hidden;&:hover ",g,"{opacity:1;}");const _=(0,a.translate)()(e=>{let{t:t,date:n,author:r}=e;const i=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(n,r);if(i)return(0,o.jsx)(h,null,t("workflow.workflowCard."+i,{date:n,author:r}))});function w(e){let{collectionLabel:t,title:n,authorLastChange:r,body:i,isModification:a,editLink:s,timestamp:l,onDelete:u,allowPublish:c,canPublish:h,onPublish:w,postAuthor:x,t:k}=e;return(0,o.jsx)(b,null,(0,o.jsx)(d,{to:s},(0,o.jsx)(f,null,t),x,(0,o.jsx)(p,null,n),(l||r)&&(0,o.jsx)(_,{date:l,author:r}),(0,o.jsx)(m,null,i)),(0,o.jsx)(g,null,(0,o.jsx)(v,{onClick:u},k(a?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")),c&&(0,o.jsx)(y,{disabled:!h,onClick:w},k(a?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry"))))}w.propTypes={collectionLabel:i.default.string.isRequired,title:i.default.string,authorLastChange:i.default.string,body:i.default.string,isModification:i.default.bool,editLink:i.default.string.isRequired,timestamp:i.default.string.isRequired,onDelete:i.default.func.isRequired,allowPublish:i.default.bool.isRequired,canPublish:i.default.bool.isRequired,onPublish:i.default.func.isRequired,postAuthor:i.default.string,t:i.default.func.isRequired};var x=(0,a.translate)()(w);t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Editor=void 0;var r=w(n(261)),i=w(n(2)),o=w(n(0)),a=w(n(33)),s=n(90),l=n(17),u=n(51),c=n(221),d=n(241),f=n(149),p=n(259),h=n(612),m=n(121),g=n(71),v=n(124),y=w(n(1240)),b=w(n(1378)),_=n(9);function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k extends o.default.Component{constructor(){var e;super(...arguments),e=this,x(this,"createBackup",(0,r.default)((function(e,t){this.props.persistLocalBackup(e,t)}),2e3)),x(this,"handleChangeDraftField",(e,t,n,r)=>{const i=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:i,i18n:r})}),x(this,"handleChangeStatus",e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:i,currentStatus:o,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=v.status.get(e);n(r.get("name"),i,o,s)}),x(this,"handlePersistEntry",(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createNew:n=!1,duplicate:r=!1}=t,{persistEntry:i,collection:o,currentStatus:a,hasWorkflow:s,loadEntry:l,slug:u,createDraftDuplicateFromEntry:d,entryDraft:f}=e.props;await i(o),e.deleteBackup(),n?((0,c.navigateToNewEntry)(o.get("name")),r&&d(f.get("entry"))):u&&s&&!a&&l(o,u)})),x(this,"handlePublishEntry",(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createNew:n=!1,duplicate:r=!1}=t,{publishUnpublishedEntry:i,createDraftDuplicateFromEntry:o,entryDraft:a,collection:s,slug:l,currentStatus:u,t:d}=e.props;u===v.status.last()?a.get("hasChanged")?window.alert(d("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(d("editor.editor.onPublishing"))&&(await i(s.get("name"),l),e.deleteBackup(),n&&(0,c.navigateToNewEntry)(s.get("name")),r&&o(a.get("entry"))):window.alert(d("editor.editor.onPublishingNotReady"))})),x(this,"handleUnpublishEntry",async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),(0,c.navigateToCollection)(t.get("name"))}),x(this,"handleDuplicateEntry",()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;(0,c.navigateToNewEntry)(t.get("name")),e(n.get("entry"))}),x(this,"handleDeleteEntry",()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:i,t:o}=this.props;if(e.get("hasChanged")){if(!window.confirm(o("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(o("editor.editor.onDeletePublishedEntry")))return;if(t)return(0,c.navigateToCollection)(n.get("name"));setTimeout(async()=>(await r(n,i),this.deleteBackup(),(0,c.navigateToCollection)(n.get("name"))),0)}),x(this,"handleDeleteUnpublishedChanges",async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:i,isModification:o,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),o?i(t,n):(0,c.navigateToCollection)(t.get("name")))})}componentDidMount(){const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:i,loadEntries:o,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?i(t,this.props.location.search):r(t,n);const u=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=u,u},window.addEventListener("beforeunload",this.exitBlocker);const d=c.history.block((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),i=this.props.entryDraft.getIn(["entry","newRecord"]),o=`/collections/${t.get("name")}/new`;if(!r||!i||this.props.location.pathname!==o||"PUSH"!==n)return this.props.hasChanged?u:void 0});this.unlisten=c.history.listen((e,n)=>{const r=`/collections/${t.get("name")}/new`,i=`/collections/${t.get("name")}/entries/`,{pathname:o}=e;o.startsWith(r)||o.startsWith(i)&&"PUSH"===n||(this.deleteBackup(),d(),this.unlisten())}),s||o(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup){window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()}if(this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:i,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:m,deployPreview:g,loadDeployPreview:v,draftKey:b,slug:w,t:x,editorBackLink:k}=this.props,E=!f&&!d;return e&&e.get("error")?(0,_.jsx)("div",null,(0,_.jsx)("h3",null,e.get("error"))):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?(0,_.jsx)(l.Loader,{active:!0},x("editor.editor.loadingEntry")):(0,_.jsx)(y.default,{draftKey:b,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),onChange:this.handleChangeDraftField,onValidate:i,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:o,hasChanged:a,displayUrl:s,hasWorkflow:u,useOpenAuthoring:c,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,currentStatus:h,onLogoutClick:m,deployPreview:g,loadDeployPreview:t=>v(r,w,e,E,t),editorBackLink:k,t:x})}}t.Editor=k,x(k,"propTypes",{changeDraftField:i.default.func.isRequired,changeDraftFieldValidation:i.default.func.isRequired,collection:a.default.map.isRequired,createDraftDuplicateFromEntry:i.default.func.isRequired,createEmptyDraft:i.default.func.isRequired,discardDraft:i.default.func.isRequired,entry:a.default.map,entryDraft:a.default.map.isRequired,loadEntry:i.default.func.isRequired,persistEntry:i.default.func.isRequired,deleteEntry:i.default.func.isRequired,showDelete:i.default.bool.isRequired,fields:a.default.list.isRequired,slug:i.default.string,newEntry:i.default.bool.isRequired,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,unpublishedEntry:i.default.bool,isModification:i.default.bool,collectionEntriesLoaded:i.default.bool,updateUnpublishedEntryStatus:i.default.func.isRequired,publishUnpublishedEntry:i.default.func.isRequired,deleteUnpublishedEntry:i.default.func.isRequired,logoutUser:i.default.func.isRequired,loadEntries:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,currentStatus:i.default.string,user:i.default.object,location:i.default.shape({pathname:i.default.string,search:i.default.string}),hasChanged:i.default.bool,t:i.default.func.isRequired,retrieveLocalBackup:i.default.func.isRequired,localBackup:a.default.map,loadLocalBackup:i.default.func,persistLocalBackup:i.default.func.isRequired,deleteLocalBackup:i.default.func});const E={changeDraftField:f.changeDraftField,changeDraftFieldValidation:f.changeDraftFieldValidation,loadEntry:f.loadEntry,loadEntries:f.loadEntries,loadDeployPreview:h.loadDeployPreview,loadLocalBackup:f.loadLocalBackup,retrieveLocalBackup:f.retrieveLocalBackup,persistLocalBackup:f.persistLocalBackup,deleteLocalBackup:f.deleteLocalBackup,createDraftDuplicateFromEntry:f.createDraftDuplicateFromEntry,createEmptyDraft:f.createEmptyDraft,discardDraft:f.discardDraft,persistEntry:f.persistEntry,deleteEntry:f.deleteEntry,updateUnpublishedEntryStatus:p.updateUnpublishedEntryStatus,publishUnpublishedEntry:p.publishUnpublishedEntry,unpublishPublishedEntry:p.unpublishPublishedEntry,deleteUnpublishedEntry:p.deleteUnpublishedEntry,logoutUser:d.logoutUser};var S=(0,s.connect)((function(e,t){const{collections:n,entryDraft:r,auth:i,config:o,entries:a,globalUI:s}=e,l=t.match.params[0],u=n.get(t.match.params.name),c=u.get("name"),d=!0===t.newRecord,f=(0,g.selectFields)(u,l),p=d?null:(0,m.selectEntry)(e,c,l),h=i.user,y=r.get("hasChanged"),b=o.display_url,_=o.publish_mode===v.EDITORIAL_WORKFLOW,w=s.useOpenAuthoring,x=r.getIn(["entry","isModification"]),k=!!a.getIn(["pages",c]),E=(0,m.selectUnpublishedEntry)(e,c,l),S=(0,m.selectEntry)(e,c,l),O=E&&E.get("status"),C=(0,m.selectDeployPreview)(e,c,l),T=r.get("localBackup"),A=r.get("key");let P="/collections/"+c;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(P="/workflow"),u.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:u,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:y,displayUrl:b,hasWorkflow:_,useOpenAuthoring:w,isModification:x,collectionEntriesLoaded:k,currentStatus:O,deployPreview:C,localBackup:T,draftKey:A,publishedEntry:S,unPublishedEntry:E,editorBackLink:P}}),E)((0,b.default)((0,u.translate)()(k)));t.default=S},function(e,t,n){var r=n(88);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(21)),i=y(n(2)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(0)),a=y(n(33)),s=n(9),l=y(n(1241)),u=n(17),c=n(626),d=y(n(1243)),f=y(n(1371)),p=y(n(1377)),h=n(199),m=n(257),g=n(71);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w={splitPane:(0,s.css)(u.components.card,";border-radius:0;height:100%;;label:splitPane;"),pane:{name:"nq3sgi-pane",styles:"height:100%;overflow-y:auto;;label:pane;"}},x=(0,r.default)(u.IconButton,{target:"e1pxf6c40",label:"EditorToggle"})({name:"1upilqn",styles:"margin-bottom:12px;"});function k(){return(0,s.jsx)(s.Global,{styles:(0,s.css)(".Resizer.vertical{width:21px;cursor:col-resize;position:relative;transition:background-color ",u.transitions.main,";&:before{content:'';width:2px;height:100%;position:relative;left:10px;background-color:",u.colors.textFieldBorder,";display:block;}&:hover,&:active{background-color:",u.colorsRaw.GrayLight,";}};label:ReactSplitPaneGlobalStyles;")})}const E=(0,r.default)(l.default,{target:"e1pxf6c41",label:"StyledSplitPane"})(w.splitPane,";.Pane{height:100%;}"),S=(0,r.default)("div",{target:"e1pxf6c42",label:"NoPreviewContainer"})(w.splitPane,";"),O=(0,r.default)("div",{target:"e1pxf6c43",label:"EditorContainer"})("width:100%;min-width:800px;height:100%;position:absolute;top:0;left:0;overflow:hidden;padding-top:66px;background-color:",u.colors.background,";"),C=(0,r.default)("div",{target:"e1pxf6c44",label:"Editor"})({name:"1gs40ov",styles:"height:100%;margin:0 auto;position:relative;"}),T=(0,r.default)("div",{target:"e1pxf6c45",label:"PreviewPaneContainer"})("height:100%;pointer-events:",e=>e.blockEntry?"none":"auto",";overflow-y:",e=>e.overFlow?"auto":"hidden",";"),A=(0,r.default)(T,{target:"e1pxf6c46",label:"ControlPaneContainer"})({name:"pjxpm9",styles:"padding:0 16px;position:relative;overflow-x:hidden;"}),P=(0,r.default)("div",{target:"e1pxf6c47",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",u.zIndex.zIndex299,";");function R(e){let{i18nVisible:t,previewVisible:n,editor:r,editorWithEditor:i,editorWithPreview:o}=e;return t?i:n?o:(0,s.jsx)(S,null,r)}class j extends o.Component{constructor(){var e;super(...arguments),e=this,_(this,"state",{showEventBlocker:!1,previewVisible:"false"!==localStorage.getItem("cms.preview-visible"),scrollSyncEnabled:"false"!==localStorage.getItem("cms.scroll-sync-enabled"),i18nVisible:"false"!==localStorage.getItem("cms.i18n-visible")}),_(this,"handleSplitPaneDragStart",()=>{this.setState({showEventBlocker:!0})}),_(this,"handleSplitPaneDragFinished",()=>{this.setState({showEventBlocker:!1})}),_(this,"handleOnPersist",(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createNew:n=!1,duplicate:r=!1}=t;await e.controlPaneRef.switchToDefaultLocale(),e.controlPaneRef.validate(),e.props.onPersist({createNew:n,duplicate:r})})),_(this,"handleOnPublish",(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createNew:n=!1,duplicate:r=!1}=t;await e.controlPaneRef.switchToDefaultLocale(),e.controlPaneRef.validate(),e.props.onPublish({createNew:n,duplicate:r})})),_(this,"handleTogglePreview",()=>{const e=!this.state.previewVisible;this.setState({previewVisible:e}),localStorage.setItem("cms.preview-visible",e)}),_(this,"handleToggleScrollSync",()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem("cms.scroll-sync-enabled",e)}),_(this,"handleToggleI18n",()=>{const e=!this.state.i18nVisible;this.setState({i18nVisible:e}),localStorage.setItem("cms.i18n-visible",e)}),_(this,"handleLeftPanelLocaleChange",e=>{this.setState({leftPanelLocale:e})})}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,showDelete:a,onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,onPublish:y,unPublish:_,onDuplicate:w,onValidate:S,user:j,hasChanged:I,displayUrl:M,hasWorkflow:L,useOpenAuthoring:D,hasUnpublishedChanges:N,isNewEntry:F,isModification:B,currentStatus:z,onLogoutClick:U,loadDeployPreview:q,deployPreview:W,draftKey:H,editorBackLink:$,t:V}=this.props,{scrollSyncEnabled:G,showEventBlocker:K}=this.state,Y=function(e,t){if(e.get("type")===m.FILES){const n=(0,g.getFileFromSlug)(e,t.get("slug")),r=null==n?void 0:n.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),Q=(0,h.hasI18n)(e),{locales:X,defaultLocale:Z}=(0,h.getI18nInfo)(this.props.collection),J={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:S},ee=this.state.leftPanelLocale||(null==X?void 0:X[0]),te=(0,s.jsx)(A,{overFlow:!0,blockEntry:K},(0,s.jsx)(d.default,b({},J,{ref:e=>this.controlPaneRef=e,locale:ee,t:V,onLocaleChange:this.handleLeftPanelLocaleChange}))),ne=(0,s.jsx)(A,{overFlow:!this.state.scrollSyncEnabled,blockEntry:K},(0,s.jsx)(d.default,b({},J,{locale:null==X?void 0:X[1],t:V}))),re=Q?(0,h.getPreviewEntry)(t,ee,Z):t,ie=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(k,null),(0,s.jsx)(E,{maxSize:-100,defaultSize:parseInt(localStorage.getItem("cms.split-pane-position"),10)||"50%",onChange:e=>localStorage.setItem("cms.split-pane-position",e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,te),(0,s.jsx)(T,{blockEntry:K},(0,s.jsx)(f.default,{collection:e,entry:re,fields:n,fieldsMetaData:r,locale:ee}))))),oe=(0,s.jsx)(c.ScrollSync,{enabled:this.state.scrollSyncEnabled},(0,s.jsx)("div",null,(0,s.jsx)(E,{maxSize:-100,defaultSize:parseInt(localStorage.getItem("cms.split-pane-position"),10)||"50%",onChange:e=>localStorage.setItem("cms.split-pane-position",e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished},(0,s.jsx)(c.ScrollSyncPane,null,te),(0,s.jsx)(c.ScrollSyncPane,null,ne)))),ae=Q&&this.state.i18nVisible,se=Y&&this.state.previewVisible,le=ae||se;return(0,s.jsx)(O,null,(0,s.jsx)(p.default,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:l,onDeleteUnpublishedChanges:u,onChangeStatus:v,showDelete:a,onPublish:y,unPublish:_,onDuplicate:w,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:j,hasChanged:I,displayUrl:M,collection:e,hasWorkflow:L,useOpenAuthoring:D,hasUnpublishedChanges:N,isNewEntry:F,isModification:B,currentStatus:z,onLogoutClick:U,loadDeployPreview:q,deployPreview:W,editorBackLink:$}),(0,s.jsx)(C,{key:H},(0,s.jsx)(P,null,Q&&(0,s.jsx)(x,{isActive:ae,onClick:this.handleToggleI18n,size:"large",type:"page",title:V("editor.editorInterface.toggleI18n"),marginTop:"70px"}),Y&&(0,s.jsx)(x,{isActive:se,onClick:this.handleTogglePreview,size:"large",type:"eye",title:V("editor.editorInterface.togglePreview")}),le&&(0,s.jsx)(x,{isActive:G,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:V("editor.editorInterface.toggleScrollSync")})),(0,s.jsx)(R,{i18nVisible:ae,previewVisible:se,editor:te,editorWithEditor:oe,editorWithPreview:ie})))}}j.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:i.default.func.isRequired,onValidate:i.default.func.isRequired,onPersist:i.default.func.isRequired,showDelete:i.default.bool.isRequired,onDelete:i.default.func.isRequired,onDeleteUnpublishedChanges:i.default.func.isRequired,onPublish:i.default.func.isRequired,unPublish:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onChangeStatus:i.default.func.isRequired,user:i.default.object,hasChanged:i.default.bool,displayUrl:i.default.string,hasWorkflow:i.default.bool,useOpenAuthoring:i.default.bool,hasUnpublishedChanges:i.default.bool,isNewEntry:i.default.bool,isModification:i.default.bool,currentStatus:i.default.string,onLogoutClick:i.default.func.isRequired,deployPreview:i.default.object,loadDeployPreview:i.default.func.isRequired,draftKey:i.default.string.isRequired,t:i.default.func.isRequired};var I=j;t.default=I},function(e,t,n){"use strict";n.r(t),n.d(t,"Pane",(function(){return k}));var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=n(185),l=n.n(s),u=n(477);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}function x(e){return function(){var t,n=v(e);if(b()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return w(this,t)}}var k=function(e){g(n,e);var t=x(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.split,o=e.style,a=e.size,s=e.eleRef,l=["Pane",r,n],u={flex:1,position:"relative",outline:"none"};return void 0!==a&&("vertical"===r?u.width=a:(u.height=a,u.display="flex"),u.flex="none"),u=Object.assign({},u,o||{}),i.a.createElement("div",{ref:s,className:l.join(" "),style:u},t)}}]),n}(i.a.PureComponent);k.propTypes={className:a.a.string.isRequired,children:a.a.node.isRequired,size:a.a.oneOfType([a.a.string,a.a.number]),split:a.a.oneOf(["vertical","horizontal"]),style:l.a,eleRef:a.a.func},k.defaultProps={};var E=function(e){g(n,e);var t=x(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onDoubleClick,o=e.onMouseDown,a=e.onTouchEnd,s=e.onTouchStart,l=e.resizerClassName,u=e.split,c=e.style,d=[l,u,t];return i.a.createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return o(e)},onTouchStart:function(e){e.preventDefault(),s(e)},onTouchEnd:function(e){e.preventDefault(),a(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){r&&(e.preventDefault(),r(e))}})}}]),n}(i.a.Component);function S(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function O(e,t,n,r){if("number"==typeof r){var i="number"==typeof t?t:0,o="number"==typeof n&&n>=0?n:1/0;return Math.max(i,Math.min(o,r))}return void 0!==e?e:t}E.propTypes={className:a.a.string.isRequired,onClick:a.a.func,onDoubleClick:a.a.func,onMouseDown:a.a.func.isRequired,onTouchStart:a.a.func.isRequired,onTouchEnd:a.a.func.isRequired,split:a.a.oneOf(["vertical","horizontal"]),style:l.a,resizerClassName:a.a.string.isRequired},E.defaultProps={resizerClassName:"Resizer"};var C=function(e){g(n,e);var t=x(n);function n(e){var r;c(this,n),(r=t.call(this,e)).onMouseDown=r.onMouseDown.bind(_(r)),r.onTouchStart=r.onTouchStart.bind(_(r)),r.onMouseMove=r.onMouseMove.bind(_(r)),r.onTouchMove=r.onTouchMove.bind(_(r)),r.onMouseUp=r.onMouseUp.bind(_(r));var i=e.size,o=e.defaultSize,a=e.minSize,s=e.maxSize,l=e.primary,u=void 0!==i?i:O(o,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===l?u:void 0,pane2Size:"second"===l?u:void 0,instanceProps:{size:i}},r}return f(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,i=t.split;if(n){S(document,window);var o="vertical"===i?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:o})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,i=t.minSize,o=t.onChange,a=t.split,s=t.step,l=this.state,u=l.active,c=l.position;if(n&&u){S(document,window);var d="first"===this.props.primary,f=d?this.pane1:this.pane2,h=d?this.pane2:this.pane1;if(f){var m=f,g=h;if(m.getBoundingClientRect){var v=m.getBoundingClientRect().width,y=m.getBoundingClientRect().height,b="vertical"===a?v:y,_=c-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(_)<s)return;_=~~(_/s)*s}var w=d?_:-_;parseInt(window.getComputedStyle(m).order)>parseInt(window.getComputedStyle(g).order)&&(w=-w);var x=r;if(void 0!==r&&r<=0){var k=this.splitPane;x="vertical"===a?k.getBoundingClientRect().width+r:k.getBoundingClientRect().height+r}var E=b-w,O=c-_;E<i?E=i:void 0!==r&&E>x?E=x:this.setState({position:O,resized:!0}),o&&o(E),this.setState(p({draggedSize:E},d?"pane1Size":"pane2Size",E))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,i=r.active,o=r.draggedSize;t&&i&&("function"==typeof n&&n(o),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,o=t.className,a=t.onResizerClick,s=t.onResizerDoubleClick,l=t.paneClassName,u=t.pane1ClassName,c=t.pane2ClassName,d=t.paneStyle,f=t.pane1Style,p=t.pane2Style,h=t.resizerClassName,g=t.resizerStyle,v=t.split,y=t.style,b=this.state,_=b.pane1Size,w=b.pane2Size,x=n?"":"disabled",S=h?"".concat(h," ").concat("Resizer"):h,O=function(e){return i.a.Children.toArray(e).filter((function(e){return e}))}(r),C=m({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},y);"vertical"===v?Object.assign(C,{flexDirection:"row",left:0,right:0}):Object.assign(C,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var T=["SplitPane",o,v,x],A=m({},d,{},f),P=m({},d,{},p),R=["Pane1",l,u].join(" "),j=["Pane2",l,c].join(" ");return i.a.createElement("div",{className:T.join(" "),ref:function(t){e.splitPane=t},style:C},i.a.createElement(k,{className:R,key:"pane1",eleRef:function(t){e.pane1=t},size:_,split:v,style:A},O[0]),i.a.createElement(E,{className:x,onClick:a,onDoubleClick:s,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:S,split:v,style:g||{}}),i.a.createElement(k,{className:j,key:"pane2",eleRef:function(t){e.pane2=t},size:w,split:v,style:P},O[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return n.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:O(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var i="first"===e.primary;return n[i?"pane1Size":"pane2Size"]=r,n[i?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),n}(i.a.Component);C.propTypes={allowResize:a.a.bool,children:a.a.arrayOf(a.a.node).isRequired,className:a.a.string,primary:a.a.oneOf(["first","second"]),minSize:a.a.oneOfType([a.a.string,a.a.number]),maxSize:a.a.oneOfType([a.a.string,a.a.number]),defaultSize:a.a.oneOfType([a.a.string,a.a.number]),size:a.a.oneOfType([a.a.string,a.a.number]),split:a.a.oneOf(["vertical","horizontal"]),onDragStarted:a.a.func,onDragFinished:a.a.func,onChange:a.a.func,onResizerClick:a.a.func,onResizerDoubleClick:a.a.func,style:l.a,resizerStyle:l.a,paneClassName:a.a.string,pane1ClassName:a.a.string,pane2ClassName:a.a.string,paneStyle:l.a,pane1Style:l.a,pane2Style:l.a,resizerClassName:a.a.string,step:a.a.number},C.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},Object(u.polyfill)(C),t.default=C},function(e,t){e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(21)),i=d(n(0)),o=d(n(2)),a=d(n(33)),s=n(9),l=n(17),u=d(n(1244)),c=n(199);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)("div",{target:"e1tnasa20",label:"ControlPaneContainer"})({name:"78woh1",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px;"}),h=(0,r.default)(l.StyledDropdownButton,{target:"e1tnasa21",label:"LocaleButton"})(l.buttons.button,";",l.buttons.medium,";color:",l.colors.controlLabel,";background:",l.colors.textFieldBorder,";height:100%;&:after{top:11px;}"),m=(0,r.default)("div",{target:"e1tnasa22",label:"LocaleButtonWrapper"})({name:"k008qs",styles:"display:flex;"}),g=(0,r.default)("div",{target:"e1tnasa23",label:"LocaleRowWrapper"})({name:"k008qs",styles:"display:flex;"}),v=(0,r.default)(l.Dropdown,{target:"e1tnasa24",label:"StyledDropdown"})({name:"qq8cu0",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px;"});function y(e){let{locales:t,dropdownText:n,onLocaleChange:r}=e;return(0,s.jsx)(v,{renderButton:()=>(0,s.jsx)(m,null,(0,s.jsx)(h,null,n))},t.map(e=>(0,s.jsx)(l.DropdownItem,{css:(0,s.css)(l.text.fieldLabel,""),key:e,label:e,onClick:()=>r(e)})))}function b(e){let{field:t,entry:n,isTranslatable:r,locale:i}=e;if(t.get("meta"))return n.getIn(["meta",t.get("name")]);if(r){const e=(0,c.getLocaleDataPath)(i);return n.getIn([...e,t.get("name")])}return n.getIn(["data",t.get("name")])}class _ extends i.default.Component{constructor(){super(...arguments),f(this,"state",{selectedLocale:this.props.locale}),f(this,"componentValidate",{}),f(this,"handleLocaleChange",e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)}),f(this,"copyFromOtherLocale",e=>{let{targetLocale:t,t:n}=e;return e=>{if(!window.confirm(n("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:e.toUpperCase()})))return;const{entry:r,collection:i}=this.props,{locales:o,defaultLocale:a}=(0,c.getI18nInfo)(i),s=this.state.selectedLocale,l=o&&{currentLocale:s,locales:o,defaultLocale:a};this.props.fields.forEach(n=>{if((0,c.isFieldTranslatable)(n,t,e)){const t=b({field:n,entry:r,locale:e,isTranslatable:e!==a});this.props.onChange(n,t,void 0,l)}})}}),f(this,"validate",async()=>{this.props.fields.forEach(e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()})}),f(this,"switchToDefaultLocale",()=>{if((0,c.hasI18n)(this.props.collection)){const{defaultLocale:e}=(0,c.getI18nInfo)(this.props.collection);return new Promise(t=>this.setState({selectedLocale:e},t))}return Promise.resolve()})}controlRef(e,t){var n;if(!t)return;const r=e.get("name");this.componentValidate[r]=(null===(n=t.innerWrappedControl)||void 0===n?void 0:n.validate)||t.validate}render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:i,onChange:o,onValidate:a,t:l}=this.props;if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:d,defaultLocale:f}=(0,c.getI18nInfo)(e),h=this.state.selectedLocale,m=d&&{currentLocale:h,locales:d,defaultLocale:f};return(0,s.jsx)(p,null,d&&(0,s.jsx)(g,null,(0,s.jsx)(y,{locales:d,dropdownText:l("editor.editorControlPane.i18n.writingInLocale",{locale:h.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),(0,s.jsx)(y,{locales:d.filter(e=>e!==h),dropdownText:l("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:h,t:l})})),n.filter(e=>"hidden"!==e.get("widget")).map((n,l)=>{const d=(0,c.isFieldTranslatable)(n,h,f),p=(0,c.isFieldDuplicate)(n,h,f),g=(0,c.isFieldHidden)(n,h,f),v=m?`${h}_${l}`:l;return(0,s.jsx)(u.default,{key:v,field:n,value:b({field:n,entry:t,locale:h,isTranslatable:d}),fieldsMetaData:r,fieldsErrors:i,onChange:(e,t,n)=>{o(e,t,n,m)},onValidate:a,processControlRef:this.controlRef.bind(this),controlRef:this.controlRef,entry:t,collection:e,isDisabled:p,isHidden:g,isFieldDuplicate:e=>(0,c.isFieldDuplicate)(e,h,f),isFieldHidden:e=>(0,c.isFieldHidden)(e,h,f),locale:h})}))}}t.default=_,_.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,fieldsMetaData:a.default.map.isRequired,fieldsErrors:a.default.map.isRequired,onChange:o.default.func.isRequired,onValidate:o.default.func.isRequired,locale:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ControlHint=void 0;var r=E(n(21)),i=E(n(627)),o=E(n(173)),a=E(n(0)),s=n(227),l=E(n(2)),u=E(n(33)),c=n(51),d=n(9),f=n(90),p=n(17),h=E(n(1245)),m=E(n(1337)),g=n(136),v=n(149),y=n(200),b=n(322),_=n(320),w=n(171),x=E(n(1370));const k=["node"];function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P={widget:`\n display: block;\n width: 100%;\n padding: ${p.lengths.inputPadding};\n margin: 0;\n border: ${p.borders.textField};\n border-radius: ${p.lengths.borderRadius};\n border-top-left-radius: 0;\n outline: 0;\n box-shadow: none;\n background-color: ${p.colors.inputBackground};\n color: #444a57;\n transition: border-color ${p.transitions.main};\n position: relative;\n font-size: 15px;\n line-height: 1.5;\n\n select& {\n text-indent: 14px;\n height: 58px;\n }\n `,widgetActive:`\n border-color: ${p.colors.active};\n `,widgetError:`\n border-color: ${p.colors.errorText};\n `,disabled:"\n pointer-events: none;\n opacity: 0.5;\n background: #ccc;\n ",hidden:"\n visibility: hidden;\n "},R=(0,r.default)("div",{target:"ei073ck0",label:"ControlContainer"})({name:"gpgisz",styles:"margin-top:16px;&:first-of-type{margin-top:36px;}"}),j=(0,r.default)("ul",{target:"ei073ck1",label:"ControlErrorsList"})("list-style-type:none;font-size:12px;color:",p.colors.errorText,";margin-bottom:5px;text-align:right;text-transform:uppercase;position:relative;font-weight:600;top:20px;"),I=(0,r.default)("p",{target:"ei073ck2",label:"ControlHint"})("margin-bottom:0;padding:3px 0;font-size:12px;color:",e=>e.error?p.colors.errorText:e.active?p.colors.active:p.colors.controlLabel,";transition:color ",p.transitions.main,";");function M(e){let{field:t,isActive:n,hasErrors:r,uniqueFieldId:i,isFieldOptional:o,t:a}=e;const s=""+t.get("label",t.get("name"));return(0,d.jsx)(p.FieldLabel,{isActive:n,hasErrors:r,htmlFor:i},s," ",""+(o?` (${a("editor.editorControl.field.optional")})`:""))}t.ControlHint=I;class L extends a.default.Component{constructor(){super(...arguments),A(this,"state",{activeLabel:!1}),A(this,"uniqueFieldId",(0,i.default)(this.props.field.get("name")+"-field-")),A(this,"isAncestorOfFieldError",()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some(e=>e.some(e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))})}render(){const{value:e,entry:t,collection:n,config:r,field:i,fieldsMetaData:a,fieldsErrors:s,mediaPaths:l,boundGetAsset:u,onChange:c,openMediaLibrary:f,clearMediaControl:p,removeMediaControl:v,addAsset:y,removeInsertedMedia:b,persistMedia:_,onValidate:w,processControlRef:E,controlRef:S,query:O,queryHits:A,isFetching:L,clearSearch:N,clearFieldErrors:F,loadEntry:B,className:z,isSelected:U,isEditorComponent:q,isNewEditorComponent:W,parentIds:H,t:$,validateMetaField:V,isDisabled:G,isHidden:K,isFieldDuplicate:Y,isFieldHidden:Q,locale:X}=this.props,Z=i.get("widget"),J=(0,g.resolveWidget)(Z),ee=i.get("name"),te=i.get("hint"),ne=!1===i.get("required"),re=w,ie=a&&a.get(ee),oe=s&&s.get(this.uniqueFieldId),ae=this.isAncestorOfFieldError(),se=!!oe||ae;return(0,d.jsx)(d.ClassNames,null,a=>{let{css:Z,cx:ee}=a;return(0,d.jsx)(R,{className:z,css:Z`
${K&&P.hidden};
`},J.globalStyles&&(0,d.jsx)(d.Global,{styles:(0,d.css)(J.globalStyles,";label:EditorControl;")}),oe&&(0,d.jsx)(j,null,oe.map(e=>e.message&&"string"==typeof e.message&&(0,d.jsx)("li",{key:e.message.trim().replace(/[^a-z0-9]+/gi,"-")},e.message))),(0,d.jsx)(M,{field:i,isActive:U||this.state.styleActive,hasErrors:se,uniqueFieldId:this.uniqueFieldId,isFieldOptional:ne,t:$}),(0,d.jsx)(x.default,{classNameWrapper:ee(Z`
${P.widget};
`,{[Z`
${P.widgetActive};
`]:U||this.state.styleActive},{[Z`
${P.widgetError};
`]:se},{[Z`
${P.disabled}
`]:G}),classNameWidget:Z`
${P.widget};
`,classNameWidgetActive:Z`
${P.widgetActive};
`,classNameLabel:Z`
${P.label};
`,classNameLabelActive:Z`
${P.labelActive};
`,controlComponent:J.control,entry:t,collection:n,config:r,field:i,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:l,metadata:ie,onChange:(e,t)=>c(i,e,t),onValidate:w&&(0,o.default)(w,this.uniqueFieldId),onOpenMediaLibrary:f,onClearMediaControl:p,onRemoveMediaControl:v,onRemoveInsertedMedia:b,onPersistMedia:_,onAddAsset:y,getAsset:u,hasActiveStyle:U||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:g.resolveWidget,widget:J,getEditorComponents:g.getEditorComponents,ref:E&&(0,o.default)(E,i),controlRef:S,editorControl:D,query:O,loadEntry:B,queryHits:A[this.uniqueFieldId]||[],clearSearch:N,clearFieldErrors:F,isFetching:L,fieldsErrors:s,onValidateObject:re,isEditorComponent:q,isNewEditorComponent:W,parentIds:H,t:$,validateMetaField:V,isDisabled:G,isFieldDuplicate:Y,isFieldHidden:Q,locale:X}),te&&(0,d.jsx)(I,{active:U||this.state.styleActive,error:se},(0,d.jsx)(h.default,{remarkPlugins:[m.default],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:e=>{let{node:t}=e,n=T(e,k);return(0,d.jsx)("a",C({},n,{target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}}))}}},te)))})}}A(L,"propTypes",{value:l.default.oneOfType([l.default.node,l.default.object,l.default.string,l.default.bool]),field:u.default.map.isRequired,fieldsMetaData:u.default.map,fieldsErrors:u.default.map,mediaPaths:u.default.map.isRequired,boundGetAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,openMediaLibrary:l.default.func.isRequired,addAsset:l.default.func.isRequired,removeInsertedMedia:l.default.func.isRequired,persistMedia:l.default.func.isRequired,onValidate:l.default.func,processControlRef:l.default.func,controlRef:l.default.func,query:l.default.func.isRequired,queryHits:l.default.object,isFetching:l.default.bool,clearSearch:l.default.func.isRequired,clearFieldErrors:l.default.func.isRequired,loadEntry:l.default.func.isRequired,t:l.default.func.isRequired,isEditorComponent:l.default.bool,isNewEditorComponent:l.default.bool,parentIds:l.default.arrayOf(l.default.string),entry:u.default.map.isRequired,collection:u.default.map.isRequired,isDisabled:l.default.bool,isHidden:l.default.bool,isFieldDuplicate:l.default.func,isFieldHidden:l.default.func,locale:l.default.string}),A(L,"defaultProps",{parentIds:[]});const D=(0,f.connect)((function(e){const{collections:t,entryDraft:n}=e,r=n.get("entry"),i=t.get(n.getIn(["entry","collection"])),o=(0,b.selectIsLoadingAsset)(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,entry:r,collection:i,isLoadingAsset:o,loadEntry:async function(n,r){const i=t.get(n);if(i){return await(0,v.tryLoadEntry)(e,i,r)}throw new Error(`Can't find collection '${n}'`)},validateMetaField:(t,n,r)=>(0,v.validateMetaField)(e,i,t,n,r)}}),(function(e){return O(O({},(0,s.bindActionCreators)({openMediaLibrary:w.openMediaLibrary,clearMediaControl:w.clearMediaControl,removeMediaControl:w.removeMediaControl,removeInsertedMedia:w.removeInsertedMedia,persistMedia:w.persistMedia,addAsset:y.addAsset,query:_.query,clearSearch:_.clearSearch,clearFieldErrors:v.clearFieldErrors},e)),{},{boundGetAsset:(t,n)=>(0,y.boundGetAsset)(e,t,n)})}),(function(e,t,n){return O(O(O(O({},e),t),n),{},{boundGetAsset:t.boundGetAsset(e.collection,e.entry)})}))((0,c.translate)()(L));var N=D;t.default=N},function(e,t,n){"use strict";const r=n(0),i=n(628),o=n(1252),a=n(1256),s=n(1300),l=n(2),u=n(328),c=n(1328),d=n(1329),f=n(1330).hastChildrenToReact;e.exports=m;const p={}.hasOwnProperty,h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function m(e){for(const t in h)if(p.call(h,t)&&p.call(e,t)){const e=h[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete h[t]}const t=o().use(a).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);let n;"string"==typeof e.children?n=i(e.children):(void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=i());const l=t.runSync(t.parse(n),n);if("root"!==l.type)throw new TypeError("Expected a `root` node");let d=r.createElement(r.Fragment,{},f({options:e,schema:u,listDepth:0},l));return e.className&&(d=r.createElement("div",{className:e.className},d)),d}m.defaultProps={transformLinkUri:d},m.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},m.uriTransformer=d},function(e,t,n){"use strict";var r=n(1247),i=n(1248);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);this.path&&(i.name=this.path+":"+i.name,i.file=this.path);return i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},function(e,t,n){"use strict";var r=n(629);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(e,t,n){"use strict";var r=n(1249),i=n(1250),o=n(1251);e.exports=l;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},function(e,t,n){"use strict";function r(e){var t,n;return i(e),t=47===e.charCodeAt(0),(n=function(e,t){var n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length){i="",o=0,a=l,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,r,o,a,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(i(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else l<0&&(o=!0,l=n+1);return l<0?"":e.slice(s,l)}if(t===e)return"";r=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else r<0&&(o=!0,r=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(l=n):(a=-1,l=r));s===l?l=r:l<0&&(l=e.length);return e.slice(s,l)},t.dirname=function(e){var t,n,r;if(i(e),!e.length)return".";t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,r,o=-1,a=0,s=-1,l=0;i(e),r=e.length;for(;r--;)if(47!==(n=e.charCodeAt(r)))s<0&&(t=!0,s=r+1),46===n?o<0?o=r:1!==l&&(l=1):o>-1&&(l=-1);else if(t){a=r+1;break}if(o<0||s<0||0===l||1===l&&o===s-1&&o===a+1)return"";return e.slice(o,s)},t.join=function(){var e,t=-1;for(;++t<arguments.length;)i(arguments[t]),arguments[t]&&(e=void 0===e?arguments[t]:e+"/"+arguments[t]);return void 0===e?".":r(e)},t.sep="/"},function(e,t,n){"use strict";t.cwd=function(){return"/"}},function(e,t){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(630),i=n(1253),o=n(434),a=n(1254),s=n(631),l=n(628);e.exports=function e(){var t,n=[],i=s(),y={},b=-1;return _.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(m("data",t),y[e]=n,_):c.call(y,e)&&y[e]||null;if(e)return m("data",t),y=e,_;return y},_.freeze=w,_.attachers=n,_.use=function(e){var r;if(m("use",t),null==e);else if("function"==typeof e)c.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l(e):i(e)}r&&(y.settings=o(y.settings||{},r));return _;function i(e){l(e.plugins),e.settings&&(r=o(r||{},e.settings))}function s(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):i(e)}}function l(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function c(e,t){var r=x(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(u.call(arguments))}},_.parse=function(e){var t,n=l(e);if(w(),p("parse",t=_.Parser),f(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},_.stringify=function(e,t){var n,r=l(t);if(w(),h("stringify",n=_.Compiler),g(e),f(n,"compile"))return new n(e,r).compile();return n(e,r)},_.run=k,_.runSync=function(e,t){var n,i;return k(e,t,(function(e,t){i=!0,n=t,r(e)})),v("runSync","run",i),n},_.process=E,_.processSync=function(e){var t,n;return w(),p("processSync",_.Parser),h("processSync",_.Compiler),E(t=l(e),(function(e){n=!0,r(e)})),v("processSync","process",n),t},_;function _(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(o(!0,{},y)),t}function w(){var e,r;if(t)return _;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(_,e.slice(1)))&&i.use(r));return t=!0,b=1/0,_}function x(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function k(e,t,n){if(g(e),w(),n||"function"!=typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,l(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function E(e,t){if(w(),p("process",_.Parser),h("process",_.Compiler),!t)return new Promise(n);function n(n,r){var i=l(e);d.run(_,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);null==n||("string"==typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},function(e,t){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},function(e,t,n){"use strict";var r=[].slice;e.exports=function(e,t){var n;return function(){var t,a=r.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{t=e.apply(null,a)}catch(e){if(s&&n)throw e;return i(e)}s||(t&&"function"==typeof t.then?t.then(o,i):t instanceof Error?i(t):o(t))};function i(){n||(n=!0,t.apply(null,arguments))}function o(e){i(null,e)}}},function(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(1257)},function(e,t,n){"use strict";e.exports=n(1258)},function(e,t,n){"use strict";e.exports=function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n<t.length;)p(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:g(P),autolinkProtocol:x,autolinkEmail:x,atxHeading:g(C),blockQuote:g((function(){return{type:"blockquote",children:[]}})),characterEscape:x,characterReference:x,codeFenced:g(O),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:g(O,v),codeText:g((function(){return{type:"inlineCode",value:""}}),v),codeTextData:x,data:x,codeFlowValue:x,definition:g((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:g((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:g(T),hardBreakTrailing:g(T),htmlFlow:g(A,v),htmlFlowData:x,htmlText:g(A,v),htmlTextData:x,image:g((function(){return{type:"image",title:null,url:"",alt:null}})),label:v,link:g(P),listItem:g((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){h("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),c("expectingFirstListItemValue"))},listOrdered:g(R,(function(){c("expectingFirstListItemValue",!0)})),listUnordered:g(R),paragraph:g((function(){return{type:"paragraph",children:[]}})),reference:function(){c("referenceType","collapsed")},referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:g(C),strong:g((function(){return{type:"strong",children:[]}})),thematicBreak:g((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:b(),atxHeadingSequence:function(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)},autolink:b(),autolinkEmail:function(e){k.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){k.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:b(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:S,characterReferenceMarkerNumeric:S,characterReferenceValue:function(e){var t,n,r=this.sliceSerialize(e),i=h("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),c("characterReferenceType")):t=d(r);(n=this.stack.pop()).value+=t,n.position.end=m(e.end)},codeFenced:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")})),codeFencedFence:function(){if(h("flowCodeInside"))return;this.buffer(),c("flowCodeInside",!0)},codeFencedFenceInfo:function(){var e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:k,codeIndented:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:k,data:k,definition:b(),definitionDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:b(),hardBreakEscape:b(E),hardBreakTrailing:b(E),htmlFlow:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:k,htmlText:b((function(){var e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:k,image:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType);c("referenceType")})),label:function(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,c("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t},labelText:function(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()},lineEnding:function(e){var t=this.stack[this.stack.length-1];if(h("atHardBreak"))return t.children[t.children.length-1].position.end=m(e.end),void c("atHardBreak");!h("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(x.call(this,e),k.call(this,e))},link:b((function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType);c("referenceType")})),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),c("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){c("inReference")},setextHeading:b((function(){c("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){c("setextHeadingSlurpLineEnding",!0)},strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),l={};return function(e){var t,r,a={type:"root",children:[]},s=[],l=[],d=-1,p={stack:[a],tokenStack:s,config:n,enter:y,exit:_,buffer:v,resume:w,setData:c,getData:h};for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?l.push(d):(r=l.pop(d),d=u(e,r,d)));d=-1;for(;++d<e.length;)t=n[e[d][0]],o.call(t,e[d][1].type)&&t[e[d][1].type].call(i({sliceSerialize:e[d][2].sliceSerialize},p),e[d][1]);if(s.length)throw new Error("Cannot close document, a token (`"+s[s.length-1].type+"`, "+f({start:s[s.length-1].start,end:s[s.length-1].end})+") is still open");a.position={start:m(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:m(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;for(;++d<n.transforms.length;)a=n.transforms[d](a)||a;return a};function u(e,t,n){for(var r,i,o,a,s,l,u,c=t-1,d=-1,f=!1;++c<=n;)if("listUnordered"===(s=e[c])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,u=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||u||d||l||(l=c),u=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(u=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=c,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",f=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;l&&(!o||l<o)&&(r._spread=!0),r.end=m(o?e[o][1].start:s[1].end),e.splice(o||c,0,["exit",r,s[2]]),c++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:m(s[1].start)},e.splice(c,0,["enter",r,s[2]]),c++,n++,l=void 0,u=!0)}return e[t][1]._spread=f,n}function c(e,t){l[e]=t}function h(e){return l[e]}function m(e){return{line:e.line,column:e.column,offset:e.offset}}function g(e,t){return function(n){y.call(this,e(n),n),t&&t.call(this,n)}}function v(){this.stack.push({type:"fragment",children:[]})}function y(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:m(t.start)},e}function b(e){return function(t){e&&e.call(this,t);_.call(this,t)}}function _(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): its not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+f({start:n.start,end:n.end})+") is open");return t.position.end=m(e.end),t}function w(){return r(this.stack.pop())}function x(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:m(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function k(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=m(e.end)}function E(){c("atHardBreak",!0)}function S(e){c("characterReferenceType",e.type)}function O(){return{type:"code",lang:null,meta:null,value:""}}function C(){return{type:"heading",depth:void 0,children:[]}}function T(){return{type:"break"}}function A(){return{type:"html",value:""}}function P(){return{type:"link",title:null,url:"",children:[]}}function R(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(c(l(n).document().write(u()(e,t,!0))))};var r=n(1259),i=n(262),o=n(632),a=n(435),s=n(1260),l=n(1261),u=n(1297),c=n(1298),d=n(1299),f=n(629);function p(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},function(e,t,n){"use strict";function r(e){return e&&(e.value||e.alt||e.title||"children"in e&&i(e.children)||"length"in e&&i(e))||""}function i(e){for(var t=[],n=-1;++n<e.length;)t[n]=r(e[n]);return t.join("")}e.exports=r},function(e,t,n){"use strict";var r=n(323);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"<22>":r(n)}},function(e,t,n){"use strict";var r=n(1262),i=n(1263),o=n(1264),a=n(635),s=n(636),l=n(1267),u=n(436),c=n(1270);e.exports=function(e){var t={defined:[],constructs:s([c].concat(u((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return l(t,e,n)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61),i=n(68),o=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),o(t)}));return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}};t.tokenize=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61),i=n(68),o=n(324),a=function(e){var t,n,i,a=this,u=[],c=0,d={tokenize:function(e,r){var i=0;return t={},c;function c(r){return i<u.length?(a.containerState=u[i][1],e.attempt(u[i][0].continuation,d,f)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(a.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,h,m)(r))}function d(e){return i++,a.containerState._closeFlow?h(e):c(e)}function f(t){return n.currentConstruct&&n.currentConstruct.lazy?(a.containerState={},e.attempt(s,h,e.attempt(l,h,e.check(o,h,p)))(t)):h(t)}function p(e){return i=u.length,t.lazy=!0,t.flowContinue=!0,m(e)}function h(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=i,a.interrupt=a.containerState=void 0,r(e)}},partial:!0};return f;function f(t){return c<u.length?(a.containerState=u[c][1],e.attempt(u[c][0].continuation,p,h)(t)):h(t)}function p(e){return c++,f(e)}function h(r){return t&&t.flowContinue?g(r):(a.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,m,g)(r))}function m(e){return u.push([a.currentConstruct,a.containerState]),a.containerState=void 0,h(e)}function g(t){return null===t?(_(0,!0),void e.consume(t)):(n=n||a.parser.flow(a.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(t))}function v(t){return null===t?(b(e.exit("chunkFlow")),g(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,y)):(e.consume(t),v)}function y(e){return _(t.continued,t&&t.flowEnd),c=0,f(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(a.sliceStream(e))}function _(t,r){var o=u.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)a.containerState=u[o][1],u[o][0].exit.call(a,e);u.length=t}},s={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},l={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1265),i=n(68),o=n(324),a=function(e){var t=this,n=e.attempt(o,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=a},function(e,t,n){"use strict";var r=n(61),i=n(263),o=n(634),a=n(68),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(l,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},l={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},function(e,t,n){"use strict";var r=[].splice;e.exports=r},function(e,t,n){"use strict";var r=n(262),i=n(61),o=n(437),a=n(151),s=n(436),l=n(325),u=n(1268),c=n(201),d=n(1269);e.exports=function(e,t,n){var f=n?c(n):{line:1,column:1,offset:0},p={},h=[],m=[],g=[],v={consume:function(e){i(e)?(f.line++,f.column=1,f.offset+=-3===e?2:1,C()):-1!==e&&(f.column++,f.offset++);f._bufferIndex<0?f._index++:(f._bufferIndex++,f._bufferIndex===m[f._index].length&&(f._bufferIndex=-1,f._index++));y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=w(),y.events.push(["enter",n,y]),g.push(n),n},exit:function(e){var t=g.pop();return t.end=w(),y.events.push(["exit",t,y]),t},attempt:S((function(e,t){O(e,t.from)})),check:S(E),interrupt:S(E,{interrupt:!0}),lazy:S(E,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:_,sliceSerialize:function(e){return u(_(e))},now:w,defineSkip:function(e){p[e.line]=e.column,C()},write:function(e){if(m=o(m,e),x(),null!==m[m.length-1])return[];return O(t,0),y.events=l(h,y.events,y),y.events}},b=t.tokenize.call(y,v);return t.resolveAll&&h.push(t),f._index=0,f._bufferIndex=-1,y;function _(e){return d(m,e)}function w(){return c(f)}function x(){for(var e,t;f._index<m.length;)if("string"==typeof(t=m[f._index]))for(e=f._index,f._bufferIndex<0&&(f._bufferIndex=0);f._index===e&&f._bufferIndex<t.length;)k(t.charCodeAt(f._bufferIndex));else k(t)}function k(e){b=b(e)}function E(e,t){t.restore()}function S(e,t){return function(n,i,o){var a,l,u,c;return n.tokenize||"length"in n?d(s(n)):function(e){if(e in n||null in n)return d(n.null?s(n[e]).concat(s(n.null)):n[e])(e);return o(e)};function d(e){return a=e,p(e[l=0])}function p(e){return function(n){c=function(){var e=w(),t=y.previous,n=y.currentConstruct,r=y.events.length,i=Array.from(g);return{restore:function(){f=e,y.previous=t,y.currentConstruct=n,y.events.length=r,g=i,C()},from:r}}(),u=e,e.partial||(y.currentConstruct=e);if(e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1)return m();return e.tokenize.call(t?r({},y,t):y,v,h,m)(n)}}function h(t){return e(u,c),i}function m(e){return c.restore(),++l<a.length?p(a[l]):o}}}function O(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function C(){f.line in p&&f.column<2&&(f.column=p[f.line],f.offset+=p[f.line]-1)}}},function(e,t,n){"use strict";var r=n(323);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"==typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(635),i=n(1271),o=n(1274),a=n(1276),s=n(1277),l=n(1279),u=n(1282),c=n(1283),d=n(1284),f=n(1285),p=n(1286),h=n(1287),m=n(1288),g=n(1291),v=n(441),y=n(1292),b=n(1293),_=n(1294),w=n(1295),x=n(1296),k=n(643),E={42:w,43:w,45:w,48:w,49:w,50:w,51:w,52:w,53:w,54:w,55:w,56:w,57:w,62:a},S={91:f},O={"-2":c,"-1":c,32:c},C={35:h,42:k,45:[x,k],60:m,61:x,95:k,96:u,126:u},T={38:l,92:s},A={"-5":_,"-4":_,"-3":_,33:y,38:l,42:i,60:[o,g],91:b,92:[p,s],93:v,95:i,96:d},P={null:[i,r.resolver]};t.contentInitial=S,t.disable={null:[]},t.document=E,t.flow=C,t.flowInitial=O,t.insideSpan=P,t.string=T,t.text=A},function(e,t,n){"use strict";var r=n(437),i=n(151),o=n(637),a=n(1273),s=n(325),l=n(201),u={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,l,u,c;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),u=!(l=o(a))||2===l&&r,c=!r||2===r&&l,s._open=42===n?u:u&&(r||!c),s._close=42===n?c:c&&(l||!u),t(a))}},resolveAll:function(e,t){var n,o,u,c,d,f,p,h,m=-1;for(;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;f=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1,c={type:f>1?"strongSequence":"emphasisSequence",start:a(l(e[n][1].end),-f),end:l(e[n][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:l(e[m][1].start),end:a(l(e[m][1].start),f)},u={type:f>1?"strongText":"emphasisText",start:l(e[n][1].end),end:l(e[m][1].start)},o={type:f>1?"strong":"emphasis",start:l(c.start),end:l(d.end)},e[n][1].end=l(c.start),e[m][1].start=l(d.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=r(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=r(p,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",u,t]]),p=r(p,s(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),p=r(p,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[m][1].end.offset-e[m][1].start.offset?(h=2,p=r(p,[["enter",e[m][1],t],["exit",e[m][1],t]])):h=0,i(e,n-1,m-n+3,p),m=n+p.length-h-2;break}m=-1;for(;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=u},function(e,t,n){"use strict";e.exports=/[!-\/:-@\[-`\{-~\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\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\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-\u2E4F\u2E52\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]/},function(e,t,n){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},function(e,t,n){"use strict";var r=n(326),i=n(264),o=n(1275),a=n(440),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return r(t)?(e.consume(t),u):o(t)?f(t):n(t)}function u(e){return 43===e||45===e||46===e||i(e)?c(e):f(e)}function c(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),c):f(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),g(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function f(t){return 64===t?(e.consume(t),s=0,p):o(t)?(e.consume(t),f):n(t)}function p(e){return i(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),s=0,p):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",g(t)):m(t)}function m(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?m:h):n(t)}function g(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},function(e,t,n){"use strict";var r=n(174)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},function(e,t,n){"use strict";var r=n(150),i=n(68),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){if(62===t)return i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o;return n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},function(e,t,n){"use strict";var r=n(1278),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},function(e,t,n){"use strict";var r=n(174)(/[!-/:-@[-`{-~]/);e.exports=r},function(e,t,n){"use strict";var r=n(1280),i=n(264),o=n(638),a=n(1281);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(r),u={name:"characterReference",tokenize:function(e,t,n){var r,s,u=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),r=31,s=i,p(t))}function f(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,p):(e.enter("characterReferenceValue"),r=7,s=o,p(t))}function p(o){var a;return 59===o&&c?(a=e.exit("characterReferenceValue"),s!==i||l.default(u.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&c++<r?(e.consume(o),p):n(o)}}};e.exports=u},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";var r=n(174)(/[\dA-Fa-f]/);e.exports=r},function(e,t,n){"use strict";var r=n(61),i=n(152),o=n(263),a=n(68),s={name:"codeFenced",tokenize:function(e,t,n){var s,l=this,u={tokenize:function(e,t,n){var i=0;return a(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return t===s?(e.consume(t),i++,o):i<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,l,"whitespace")(t))}function l(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},c=o(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,f(t)};function f(t){return t===s?(e.consume(t),d++,f):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,p,"whitespace")(t))}function p(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,m,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function m(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===s?n(t):(e.consume(t),g)}function v(n){return e.exit("codeFencedFence"),l.interrupt?t(n):y(n)}function y(t){return null===t?_(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(u,_,c?a(e,y,"linePrefix",c+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function _(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},function(e,t,n){"use strict";var r=n(61),i=n(151),o=n(263),a=n(68),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(l,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(l,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},l={tokenize:function(e,t,n){var i=this;return a(e,(function s(l){if(r(l))return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a(e,s,"linePrefix",5);return o(i.events,"linePrefix")<4?n(l):t(l)}),"linePrefix",5)},partial:!0};e.exports=s},function(e,t,n){"use strict";var r=n(61),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,c(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),u)}function c(n){return 96===n?(e.consume(n),i++,c):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",u(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},function(e,t,n){"use strict";var r=n(61),i=n(152),o=n(435),a=n(639),s=n(640),l=n(68),u=n(641),c=n(642),d={name:"definition",tokenize:function(e,t,n){var i,c=this;return function(t){return e.enter("definition"),s.call(c,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return i=o(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),u(e,a(e,e.attempt(f,l(e,p,"whitespace"),l(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(o){return null===o||r(o)?(e.exit("definition"),c.parser.defined.indexOf(i)<0&&c.parser.defined.push(i),t(o)):n(o)}}},f={tokenize:function(e,t,n){return function(t){return i(t)?u(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?c(e,l(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},function(e,t,n){"use strict";var r=n(61),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},function(e,t,n){"use strict";var r=n(61),i=n(152),o=n(150),a=n(151),s=n(68),l={name:"headingAtx",tokenize:function(e,t,n){var a=this,l=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),u(t)};function u(r){return 35===r&&l++<6?(e.consume(r),u):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):c(r)):n(r)}function c(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,c,"whitespace")(n):(e.enter("atxHeadingText"),f(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),c(t))}function f(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),f)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=l},function(e,t,n){"use strict";var r=n(326),i=n(264),o=n(61),a=n(152),s=n(150),l=n(323),u=n(1289),c=n(1290),d=n(324),f={name:"htmlFlow",tokenize:function(e,t,n){var d,f,h,m,g,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),x):63===i?(e.consume(i),d=3,v.interrupt?t:q):r(i)?(e.consume(i),h=l(i),f=!0,k):n(i)}function b(i){return 45===i?(e.consume(i),d=2,_):91===i?(e.consume(i),d=5,h="CDATA[",m=0,w):r(i)?(e.consume(i),d=4,v.interrupt?t:q):n(i)}function _(r){return 45===r?(e.consume(r),v.interrupt?t:q):n(r)}function w(r){return r===h.charCodeAt(m++)?(e.consume(r),m===h.length?v.interrupt?t:L:w):n(r)}function x(t){return r(t)?(e.consume(t),h=l(t),k):n(t)}function k(r){return null===r||47===r||62===r||a(r)?47!==r&&f&&c.indexOf(h.toLowerCase())>-1?(d=1,v.interrupt?t(r):L(r)):u.indexOf(h.toLowerCase())>-1?(d=6,47===r?(e.consume(r),E):v.interrupt?t(r):L(r)):(d=7,v.interrupt?n(r):f?O(r):S(r)):45===r||i(r)?(e.consume(r),h+=l(r),k):n(r)}function E(r){return 62===r?(e.consume(r),v.interrupt?t:L):n(r)}function S(t){return s(t)?(e.consume(t),S):I(t)}function O(t){return 47===t?(e.consume(t),I):58===t||95===t||r(t)?(e.consume(t),C):s(t)?(e.consume(t),O):I(t)}function C(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),C):T(t)}function T(t){return 61===t?(e.consume(t),A):s(t)?(e.consume(t),T):O(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),g=t,P):s(t)?(e.consume(t),A):(g=void 0,R(t))}function P(t){return t===g?(e.consume(t),j):null===t||o(t)?n(t):(e.consume(t),P)}function R(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?T(t):(e.consume(t),R)}function j(e){return 47===e||62===e||s(e)?O(e):n(e)}function I(t){return 62===t?(e.consume(t),M):n(t)}function M(t){return s(t)?(e.consume(t),M):null===t||o(t)?L(t):n(t)}function L(t){return 45===t&&2===d?(e.consume(t),F):60===t&&1===d?(e.consume(t),B):62===t&&4===d?(e.consume(t),W):63===t&&3===d?(e.consume(t),q):93===t&&5===d?(e.consume(t),U):!o(t)||6!==d&&7!==d?null===t||o(t)?D(t):(e.consume(t),L):e.check(p,W,D)(t)}function D(t){return e.exit("htmlFlowData"),N(t)}function N(t){return null===t?H(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N):(e.enter("htmlFlowData"),L(t))}function F(t){return 45===t?(e.consume(t),q):L(t)}function B(t){return 47===t?(e.consume(t),h="",z):L(t)}function z(t){return 62===t&&c.indexOf(h.toLowerCase())>-1?(e.consume(t),W):r(t)&&h.length<8?(e.consume(t),h+=l(t),z):L(t)}function U(t){return 93===t?(e.consume(t),q):L(t)}function q(t){return 62===t?(e.consume(t),W):L(t)}function W(t){return null===t||o(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),W)}function H(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=f},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=["pre","script","style","textarea"]},function(e,t,n){"use strict";var r=n(326),i=n(264),o=n(61),a=n(152),s=n(150),l=n(68),u={name:"htmlText",tokenize:function(e,t,n){var u,c,d,f,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),T):63===t?(e.consume(t),O):r(t)?(e.consume(t),R):n(t)}function m(t){return 45===t?(e.consume(t),g):91===t?(e.consume(t),c="CDATA[",d=0,w):r(t)?(e.consume(t),S):n(t)}function g(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),_):o(t)?(f=b,B(t)):(e.consume(t),b)}function _(t){return 45===t?(e.consume(t),U):b(t)}function w(t){return t===c.charCodeAt(d++)?(e.consume(t),d===c.length?x:w):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),k):o(t)?(f=x,B(t)):(e.consume(t),x)}function k(t){return 93===t?(e.consume(t),E):x(t)}function E(t){return 62===t?U(t):93===t?(e.consume(t),E):x(t)}function S(t){return null===t||62===t?U(t):o(t)?(f=S,B(t)):(e.consume(t),S)}function O(t){return null===t?n(t):63===t?(e.consume(t),C):o(t)?(f=O,B(t)):(e.consume(t),O)}function C(e){return 62===e?U(e):O(e)}function T(t){return r(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||i(t)?(e.consume(t),A):P(t)}function P(t){return o(t)?(f=P,B(t)):s(t)?(e.consume(t),P):U(t)}function R(t){return 45===t||i(t)?(e.consume(t),R):47===t||62===t||a(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),U):58===t||95===t||r(t)?(e.consume(t),I):o(t)?(f=j,B(t)):s(t)?(e.consume(t),j):U(t)}function I(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),I):M(t)}function M(t){return 61===t?(e.consume(t),L):o(t)?(f=M,B(t)):s(t)?(e.consume(t),M):j(t)}function L(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,D):o(t)?(f=L,B(t)):s(t)?(e.consume(t),L):(e.consume(t),u=void 0,F)}function D(t){return t===u?(e.consume(t),N):null===t?n(t):o(t)?(f=D,B(t)):(e.consume(t),D)}function N(e){return 62===e||47===e||a(e)?j(e):n(e)}function F(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?j(t):(e.consume(t),F)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l(e,z,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function z(t){return e.enter("htmlTextData"),f(t)}function U(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=u},function(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(441).resolveAll};e.exports=r},function(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(441).resolveAll};e.exports=r},function(e,t,n){"use strict";var r=n(68),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},function(e,t,n){"use strict";var r=n(638),i=n(150),o=n(263),a=n(633),s=n(68),l=n(324),u=n(643),c={name:"list",tokenize:function(e,t,n){var s=this,c=o(s.events,"linePrefix"),f=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(u,n,h)(t):h(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(t)}return n(t)};function p(t){return r(t)&&++f<10?(e.consume(t),p):(!s.interrupt||f<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(l,s.interrupt?n:m,e.attempt(d,v,g))}function m(e){return s.containerState.initialBlankLine=!0,c++,v(e)}function g(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),v):n(t)}function v(n){return s.containerState.size=c+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(l,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!i(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(f,t,o)(n)}));function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(c,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=c},function(e,t,n){"use strict";var r=n(61),i=n(201),o=n(68),a={name:"setextUnderline",tokenize:function(e,t,n){var i,a,s=this,l=s.events.length;for(;l--;)if("lineEnding"!==s.events[l][1].type&&"linePrefix"!==s.events[l][1].type&&"content"!==s.events[l][1].type){a="paragraph"===s.events[l][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,u(t);return n(t)};function u(t){return t===i?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),o(e,c,"lineSuffix")(t))}function c(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){var n,r,o,a,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};e.exports=a},function(e,t,n){"use strict";var r=/[\0\t\n\r]/g;e.exports=function(){var e,t=!0,n=1,i="";return function(o,a,s){var l,u,c,d,f,p=[];o=i+o.toString(a),c=0,i="",t&&(65279===o.charCodeAt(0)&&c++,t=void 0);for(;c<o.length;){if(r.lastIndex=c,l=r.exec(o),d=l?l.index:o.length,f=o.charCodeAt(d),!l){i=o.slice(c);break}if(10===f&&c===d&&e)p.push(-3),e=void 0;else if(e&&(p.push(-5),e=void 0),c<d&&(p.push(o.slice(c,d)),n+=d-c),0===f)p.push(65533),n++;else if(9===f)for(u=4*Math.ceil(n/4),p.push(-2);n++<u;)p.push(-1);else 10===f?(p.push(-4),n=1):(e=!0,n=1);c=d+1}s&&(e&&p.push(-5),i&&p.push(i),p.push(null));return p}}},function(e,t,n){"use strict";var r=n(634);e.exports=function(e){for(;!r(e););return e}},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";var r=n(1301);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},function(e,t,n){"use strict";e.exports=n(1302)},function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||f||(f=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,l={};return p.dangerous=r,p.definition=s(e),p.footnoteById=l,p.footnoteOrder=[],p.augment=u,p.handlers=Object.assign({},c,n.handlers),p.unknownHandler=n.unknownHandler,p.passThrough=n.passThrough,i(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();d.call(l,t)||(l[t]=e)})),p;function u(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function p(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=l(n,e),h=u(n);h&&(p.children=p.children.concat(r("text","\n"),h));return p};var r=n(110),i=n(442),o=n(327),a=n(644),s=n(1305),l=n(645),u=n(1306),c=n(1307),d={}.hasOwnProperty,f=!1},function(e,t,n){"use strict";e.exports=o;var r=n(137),i=n(1304);function o(e,t,n,o){var a,s;"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),s=r(t),a=o?-1:1,function e(r,l,u){var c,d="object"==typeof r&&null!==r?r:{};"string"==typeof d.type&&(c="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0,f.displayName="node ("+i(d.type+(c?"<"+c+">":""))+")");return f;function f(){var i,c,d=u.concat(r),f=[];if((!t||s(r,l,u[u.length-1]||null))&&!1===(f=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[!0,e];return[e]}(n(r,u)))[0])return f;if(r.children&&"skip"!==f[0])for(c=(o?r.children.length:-1)+a;c>-1&&c<r.children.length;){if(!1===(i=e(r.children[c],c,d)())[0])return i;c="number"==typeof i[1]?i[1]:c+a}return f}}(e,null,[])()}o.CONTINUE=!0,o.SKIP="skip",o.EXIT=!1},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(442);e.exports=function(e,t){return function(e){return function(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",(function(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)})),t}(e))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,l=e.footnoteById,u=e.footnoteOrder,c=u.length,d=-1,f=[];for(;++d<c;)(t=l[u[d].toUpperCase()])&&(a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),f.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));if(0===f.length)return null;return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:f})],!0))};var r=n(646),i=n(647),o=n(265)},function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(1308),break:n(1309),code:n(1310),delete:n(1311),emphasis:n(1312),footnoteReference:n(648),footnote:n(1313),heading:n(1314),html:n(1315),imageReference:n(1316),image:n(1317),inlineCode:n(1318),linkReference:n(1319),link:n(1320),listItem:n(1321),list:n(647),paragraph:n(1322),root:n(1323),strong:n(1324),table:n(1325),text:n(1326),thematicBreak:n(646),toml:r,yaml:r,definition:r,footnoteDefinition:r}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(265),i=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(110)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta});return e(t.position,"pre",[n])};var r=n(110)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteById,i=e.footnoteOrder,o=1;for(;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(648)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(110)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(175),i=n(649)},function(e,t,n){"use strict";var r=n(175);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(110)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(175),i=n(649),o=n(99)},function(e,t,n){"use strict";var r=n(175),i=n(99);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,l,u=i(e,t),c=u[0],d=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),f={},p=[];"boolean"==typeof t.checked&&(c&&"p"===c.tagName||(c=e(null,"p",[]),u.unshift(c)),c.children.length>0&&c.children.unshift(r("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),f.className=["task-list-item"]);a=u.length,s=-1;for(;++s<a;)l=u[s],(d||0!==s||"p"!==l.tagName)&&p.push(r("text","\n")),"p"!==l.tagName||d?p.push(l):p=p.concat(l.children);a&&(d||"p"!==l.tagName)&&p.push(r("text","\n"));return e(t,"li",f,p)};var r=n(110),i=n(99);function o(e){var t=e.spread;return null==t?e.children.length>1:t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(110),i=n(265),o=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,l,u,c=t.children,d=c.length,f=t.align||[],p=f.length,h=[];for(;d--;){for(a=c[d].children,l=0===d?"th":"td",n=p||a.length,s=[];n--;)u=a[n],s[n]=e(u,l,{align:f[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0)):[]),!0))};var r=n(327),i=n(265),o=n(99)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(110)},function(e,t,n){"use strict";var r=n(329),i=n(222),o=n(657),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,u=r.number,c=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:c,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:c,cols:u,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:c,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:c,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:c,itemRef:c,itemScope:a,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:c,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:c,required:a,reversed:a,rows:u,rowSpan:u,sandbox:c,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:u,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},function(e,t,n){const r=n(442);e.exports=function(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return e=>{r(e,"element",t)};function t(t,n,r){const i=t,o=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(i.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(i,n,o)),a&&"number"==typeof n)return e.unwrapDisallowed&&i.children?o.children.splice(n,1,...i.children):o.children.splice(n,1),n}}},function(e,t){const n=["http","https","mailto","tel"];e.exports=function(e){const t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return t;const i=t.indexOf(":");if(-1===i)return t;let o=-1;for(;++o<n.length;){const e=n[o];if(i===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}if(o=t.indexOf("?"),-1!==o&&i>o)return t;if(o=t.indexOf("#"),-1!==o&&i>o)return t;return"javascript:void(0)"}},function(e,t,n){"use strict";const r=n(0),i=n(1331),o=n(266),a=n(330),s=n(1334),l=n(444),u=n(445),c=n(1335);t.hastToReact=h,t.hastChildrenToReact=p;const d={}.hasOwnProperty,f=new Set(["table","thead","tbody","tfoot","tr"]);function p(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)r=t.children[i],"element"===r.type?n.push(h(e,r,i,t)):"text"===r.type?"element"===t.type&&f.has(t.tagName)&&"\n"===r.value||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function h(e,t,n,a){const s=e.options,l=e.schema,u=t.tagName,c={};let f,h=l;if("html"===l.space&&"svg"===u&&(h=o,e.schema=h),t.properties)for(f in t.properties)d.call(t.properties,f)&&g(c,f,t.properties[f],e);"ol"!==u&&"ul"!==u||e.listDepth++;const v=p(e,t);"ol"!==u&&"ul"!==u||e.listDepth--,e.schema=l;const y=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},b=s.components&&d.call(s.components,u)?s.components[u]:u,_="string"==typeof b||b===r.Fragment;if(!i.isValidElementType(b))throw new TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=[u,y.start.line,y.start.column,n].join("-"),"a"===u&&s.linkTarget&&(c.target="function"==typeof s.linkTarget?s.linkTarget(c.href,t.children,c.title):s.linkTarget),"a"===u&&s.transformLinkUri&&(c.href=s.transformLinkUri(c.href,t.children,c.title)),_||"code"!==u||"element"!==a.type||"pre"===a.tagName||(c.inline=!0),_||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=parseInt(u.charAt(1),10)),"img"===u&&s.transformImageUri&&(c.src=s.transformImageUri(c.src,c.alt,c.title)),!_&&"li"===u&&"element"===a.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);c.checked=e&&e.properties?Boolean(e.properties.checked):null,c.index=m(a,t),c.ordered="ol"===a.tagName}var w;return _||"ol"!==u&&"ul"!==u||(c.ordered="ol"===u,c.depth=e.listDepth),"td"!==u&&"th"!==u||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),_||(c.isHeader="th"===u)),_||"tr"!==u||"element"!==a.type||(c.isHeader=Boolean("thead"===a.tagName)),s.sourcePos&&(c["data-sourcepos"]=[(w=y).start.line,":",w.start.column,"-",w.end.line,":",w.end.column].map(e=>String(e)).join("")),!_&&s.rawSourcePos&&(c.sourcePosition=t.position),!_&&s.includeElementIndex&&(c.index=m(a,t),c.siblingCount=m(a)),_||(c.node=t),v.length>0?r.createElement(b,c,v):r.createElement(b,c)}function m(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function g(e,t,n,r){const i=a(r.schema,t);let o=n;null!=o&&o==o&&(o&&"object"==typeof o&&"length"in o&&(o=(i.commaSeparated?u:l).stringify(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){const t={};try{c(e,(function(e,n){const r="-ms-"===e.slice(0,4)?"ms-"+e.slice(4):e;t[r.replace(/-([a-z])/g,v)]=n}))}catch(e){}return t}(o)),i.space&&i.property?e[d.call(s,i.property)?s[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function v(e,t){return t.toUpperCase()}},function(e,t,n){"use strict";e.exports=n(1332)},function(e,t,n){"use strict";
/** @license React v17.0.2
* 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 r=60103,i=60106,o=60107,a=60108,s=60114,l=60109,u=60110,c=60112,d=60113,f=60120,p=60115,h=60116,m=60121,g=60122,v=60117,y=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),i=_("react.portal"),o=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),l=_("react.provider"),u=_("react.context"),c=_("react.forward_ref"),d=_("react.suspense"),f=_("react.suspense_list"),p=_("react.memo"),h=_("react.lazy"),m=_("react.block"),g=_("react.server.block"),v=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case p:case l:return e;default:return t}}case i:return t}}}var x=l,k=r,E=c,S=o,O=h,C=p,T=i,A=s,P=a,R=d;t.ContextConsumer=u,t.ContextProvider=x,t.Element=k,t.ForwardRef=E,t.Fragment=S,t.Lazy=O,t.Memo=C,t.Portal=T,t.Profiler=A,t.StrictMode=P,t.Suspense=R,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===c},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===y||e===a||e===d||e===f||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===g)},t.typeOf=w},function(e,t,n){"use strict";var r=n(329),i=n(222),o=n(658),a=r.boolean,s=r.number,l=r.spaceSeparated,u=r.commaSeparated,c=r.commaOrSpaceSeparated;e.exports=i({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o,properties:{about:c,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c,rev:c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c,requiredFeatures:c,requiredFonts:c,requiredFormats:c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},function(e){e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},function(e,t,n){var r=n(1336);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)o=(n=s[u]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},function(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g;function c(e){return e?e.replace(u,""):""}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var u=1,d=1;function f(e){var t=e.match(r);t&&(u+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new h(e),y(),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=t.source}h.prototype.content=e;var m=[];function g(n){var r=new Error(t.source+":"+u+":"+d+": "+n);if(r.reason=n,r.filename=t.source,r.line=u,r.column=d,r.source=e,!t.silent)throw r;m.push(r)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(){v(i)}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function w(){var e=p(),t=v(o);if(t){if(_(),!v(a))return g("property missing ':'");var r=v(s),i=e({type:"declaration",property:c(t[0].replace(n,"")),value:r?c(r[0].replace(n,"")):""});return v(l),i}}return y(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},function(e,t,n){"use strict";var r,i=n(1338),o=n(1347),a=n(1356);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},function(e,t,n){e.exports=n(1339)},function(e,t,n){var r=n(636),i=n(1340),o=n(1342),a=n(1343),s=n(1345);e.exports=function(e){return r([i,o(e),a,s])}},function(e,t,n){e.exports=n(1341)},function(e,t,n){var r=n(326),i=n(264),o=n(440),a=n(61),s=n(438),l=n(439),u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},c={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(p,c,u)(t):46===t||95===t?e.check(f,c,u)(t):o(t)||l(t)||45!==t&&s(t)?c(t):(e.consume(t),a)}function u(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function c(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(p,t,i)(a):(40===a&&n++,41===a?e.check(f,o,i)(a):_(a)?t(a):b(a)?e.check(f,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):_(i)?t(i):n(i)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return _(e)?t(e):n(e)}},partial:!0},h={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!=87||!x(r.previous)||S(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u,e.attempt(c,e.attempt(d,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:x},m={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!=72||!k(r.previous)||S(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||t-32==84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32==84?(e.consume(t),u):n(t)}function u(t){return 80===t||t-32==80?(e.consume(t),f):n(t)}function f(t){return 83===t||t-32==83?(e.consume(t),p):p(t)}function p(t){return 58===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return o(t)||l(t)||s(t)?n(t):e.attempt(c,e.attempt(d,v),n)(t)}function v(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:k},g={tokenize:function(e,t,n){var r,o=this;return function(t){if(!w(t)||!E(o.previous)||S(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return w(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(f,d,l)(t):45===t||95===t?e.check(f,n,u)(t):i(t)?(e.consume(t),s):d(t)}function l(t){return e.consume(t),r=!0,s}function u(t){return e.consume(t),c}function c(t){return 46===t?e.check(f,n,l)(t):s(t)}function d(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:E},v={};t.text=v;for(var y=48;y<123;)v[y]=g,58===++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function _(e){return null===e||e<0||32===e||60===e}function w(e){return 43===e||45===e||46===e||95===e||i(e)}function x(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function k(e){return null===e||!r(e)}function E(e){return 47!==e&&k(e)}function S(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}v[43]=g,v[45]=g,v[46]=g,v[95]=g,v[72]=[g,m],v[104]=[g,m],v[87]=[g,h],v[119]=[g,h]},function(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return function(t){if(126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type)return i(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(a){var u,c,d=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,l):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),c=r(a),u._open=!c||2===c&&d,u._close=!d||2===d&&c,n(a))}},resolveAll:function(e,t){var n,r,s,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"strikethroughSequenceTemporary"===e[u][1].type&&e[u][1]._close)for(s=u;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[u][1].end.offset-e[u][1].start.offset==e[s][1].end.offset-e[s][1].start.offset){e[u][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[u][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[u][1].start)},l=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(l,l.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,u),t)),i(l,l.length,0,[["exit",r,t],["enter",e[u][1],t],["exit",e[u][1],t],["exit",n,t]]),i(e,s-1,u-s+3,l),u=s+l.length-2;break}return function(e){var t=-1,n=e.length;for(;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};null==t&&(t=!0);return{text:{126:n},insideSpan:{null:n}}};var r=n(637),i=n(151),o=n(325),a=n(201)},function(e,t,n){e.exports=n(1344)},function(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,l=[],u=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=l,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return u++,e.enter("temporaryTableCellContent"),p(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,m,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,u++),124===t?c(t):(e.enter("temporaryTableCellContent"),p(t)))}function f(t){return-2===t||-1===t||32===t?(e.consume(t),f):(e.exit("whitespace"),d(t))}function p(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function m(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),g(t))}function g(t){return null===t||-5===t||-4===t||-3===t?w(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,l.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function v(t){return-2===t||-1===t||32===t?(e.consume(t),v):(e.exit("whitespace"),g(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l[l.length-1]="left"===l[l.length-1]?"center":"right",_):g(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function _(t){return null===t||-5===t||-4===t||-3===t?w(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function w(t){return e.exit("tableDelimiterRow"),s&&u===l.length?null===t?x(t):e.check(o,x,k)(t):n(t)}function x(n){return e.exit("table"),t(n)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,E,"linePrefix",4)}function E(t){return e.enter("tableBody"),S(t)}function S(t){return e.enter("tableRow"),124===t?O(t):(e.enter("temporaryTableCellContent"),A(t))}function O(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),C}function C(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return R(t);return e.check(o,R,j)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),T):124===t?O(t):(e.enter("temporaryTableCellContent"),A(t))}function T(t){return-2===t||-1===t||32===t?(e.consume(t),T):(e.exit("whitespace"),C(t))}function A(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),C(t)):(e.consume(t),92===t?P:A)}function P(t){return 92===t||124===t?(e.consume(t),A):A(t)}function R(t){return e.exit("tableBody"),x(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,S,"linePrefix",4)}},resolve:function(e,t){var n,r,i,o,a,s,l,u,c,d,f=e.length,p=-1;for(;++p<f;)n=e[p][1],o&&("temporaryTableCellContent"===n.type&&(u=u||p,c=p),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!c||(s={type:"tableContent",start:e[u][1].start,end:e[c][1].end},l={type:"chunkText",start:s.start,end:s.end,contentType:"text"},e.splice(u,c-u+1,["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]),p-=c-u-3,f=e.length,u=void 0,c=void 0)),"exit"===e[p][0]&&d&&d+1<p&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<p||"whitespace"!==e[d][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[p][1].end},e.splice(p+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),p+=2,f=e.length,d=p+1),"tableRow"===n.type&&(o="enter"===e[p][0])&&(d=p+1),"tableDelimiterRow"===n.type&&(i="enter"===e[p][0])&&(d=p+1),"tableHead"===n.type&&(r="enter"===e[p][0]);return e},interruptible:!0}};var r=n(68),i={tokenize:function(e,t,n){return function(t){if(45!==t)return n(t);return e.enter("setextUnderline"),r(t)};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4===++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},function(e,t,n){e.exports=n(1346)},function(e,t,n){var r=n(152),i=n(68),o=n(263),a={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,(function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:a}},function(e,t,n){var r=n(1348),i=n(1353),o=n(1354),a=n(1355),s={}.hasOwnProperty;function l(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r<n;)l(t,e[r]);return t}([r,i,o,a])},function(e,t,n){var r=n(267),i=n(1349),o=n(438),a=n(439);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function l(e,t,n,i,o){var a,s,l="";return!!c(o)&&(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),o=o[0],t=o.indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),o=o.slice(t+1),t=o.indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s)))}function u(e,t,n,r){return!(!c(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,l],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,u]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o;"string"==typeof t||t&&"function"==typeof t.exec?o=[[t,n]]:(o=t,r=n);return s(e,i=r||{},function e(t){var n=t[0];return r;function r(r,o){var l,u,c,d,f=n[0],p=n[1],h=[],m=0,g=o.children.indexOf(r);for(f.lastIndex=0,u=f.exec(r.value);u&&(l=u.index,!1!==(d=p.apply(null,[].concat(u,{index:u.index,input:u.input})))&&(m!==l&&h.push({type:"text",value:r.value.slice(m,l)}),"string"==typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(h=[].concat(h,d)),m=l+u[0].length),f.global);)u=f.exec(r.value);if(void 0===l?(h=[r],g--):(m<r.value.length&&h.push({type:"text",value:r.value.slice(m)}),h.unshift(g,1),a.apply(o.children,h)),t.length>1)for(c=e(t.slice(1)),l=-1;++l<h.length;)"text"===(r=h[l]).type?c(r,o):s(r,i,c);return g+h.length+1}}(function(e){var t,n,r=[];if("object"!=typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([l(e[n][0]),u(e[n][1])]);else for(t in e)r.push([l(t),u(e[t])]);return r}(o))),e};var r=n(1350),i=n(137),o=n(1352),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",(function(e,t){var r,i,a=-1;for(;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)})),[]}function l(e){return"string"==typeof e?new RegExp(o(e),"g"):e}function u(e){return"function"==typeof e?e:function(){return e}}},function(e,t,n){"use strict";e.exports=o;var r=n(137),i=n(1351);function o(e,t,n,o){var a,s;"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),s=r(t),a=o?-1:1,function e(r,l,u){var c,d="object"==typeof r&&null!==r?r:{};"string"==typeof d.type&&(c="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0,f.displayName="node ("+i(d.type+(c?"<"+c+">":""))+")");return f;function f(){var i,c,d=u.concat(r),f=[];if((!t||s(r,l,u[u.length-1]||null))&&!1===(f=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[!0,e];return[e]}(n(r,u)))[0])return f;if(r.children&&"skip"!==f[0])for(c=(o?r.children.length:-1)+a;c>-1&&c<r.children.length;){if(!1===(i=e(r.children[c],c,d)())[0])return i;c="number"==typeof i[1]?i[1]:c+a}return f}}(e,null,[])()}o.CONTINUE=!0,o.SKIP="skip",o.EXIT=!1},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},function(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},function(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},function(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},function(e,t,n){var r=n(1357),i=n(1358),o=n(1359),a=n(1363),s=n(1369);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},function(e,t){var n=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:n},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:n},{character:":",before:"[ps]",after:"\\/",inConstruct:"phrasing",notInConstruct:n}]},function(e,t,n){var r=n(660);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},function(e,t,n){var r=n(660),i=n(1360),o=n(1362);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return c(function(e,t){var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");for(;++r<i;)o[r]=d(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=c([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:u,inlineCode:function(e,t,n){var r=i(e,t,n);-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function u(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:l,after:l});return i(),o}function c(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=u(n[r],0,t);return a(),o}}},function(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(1361);function i(e,t,n){for(var i,o,a,s,l=e.value||"",u="`",c=-1;new RegExp("(^|[^`])"+u+"([^`]|$)").test(l);)u+="`";for(/[^ \r\n]/.test(l)&&(/[ \r\n`]/.test(l.charAt(0))||/[ \r\n`]/.test(l.charAt(l.length-1)))&&(l=" "+l+" ");++c<n.unsafe.length;)if((i=n.unsafe[c]).atBreak)for(o=r(i);a=o.exec(l);)s=a.index,10===l.charCodeAt(s)&&13===l.charCodeAt(s-1)&&s--,l=l.slice(0,s)+" "+l.slice(a.index+1);return u+l+u}},function(e,t){e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e,t){var n,u,c,d,f,p,h,m,g,v,y,b=t||{},_=!1!==b.padding,w=!1!==b.delimiterStart,x=!1!==b.delimiterEnd,k=(b.align||[]).concat(),E=!1!==b.alignDelimiters,S=[],O=b.stringLength||s,C=-1,T=e.length,A=[],P=[],R=[],j=[],I=[],M=0;for(;++C<T;){for(n=e[C],u=-1,c=n.length,R=[],j=[],c>M&&(M=c);++u<c;)p=a(n[u]),!0===E&&(f=O(p),j[u]=f,(void 0===(d=I[u])||f>d)&&(I[u]=f)),R.push(p);A[C]=R,P[C]=j}if(u=-1,c=M,"object"==typeof k&&"length"in k)for(;++u<c;)S[u]=l(k[u]);else for(y=l(k);++u<c;)S[u]=y;u=-1,c=M,R=[],j=[];for(;++u<c;)y=S[u],g="",v="",108===y?g=":":y===o?v=":":99===y&&(g=":",v=":"),f=E?Math.max(1,I[u]-g.length-v.length):1,p=g+r("-",f)+v,!0===E&&((f=g.length+f+v.length)>I[u]&&(I[u]=f),j[u]=f),R[u]=p;A.splice(1,0,R),P.splice(1,0,j),C=-1,T=A.length,h=[];for(;++C<T;){for(R=A[C],j=P[C],u=-1,c=M,m=[];++u<c;)p=R[u]||"",g="",v="",!0===E&&(f=I[u]-(j[u]||0),(y=S[u])===o?g=r(" ",f):99===y?f%2==0?(g=r(" ",f/2),v=g):(g=r(" ",f/2+.5),v=r(" ",f/2-.5)):v=r(" ",f)),!0===w&&0===u&&m.push("|"),!0!==_||!1===E&&""===p||!0!==w&&0===u||m.push(" "),!0===E&&m.push(g),m.push(p),!0===E&&m.push(v),!0===_&&m.push(" "),!0!==x&&u===c-1||m.push("|");m=m.join(""),!1===x&&(m=m.replace(i,"")),h.push(m)}return h.join("\n")};var i=/ +$/,o=114;function a(e){return null==e?"":String(e)}function s(e){return e.length}function l(e){var t="string"==typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===o?o:67===t||99===t?99:0}},function(e,t,n){var r=n(1364);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];"boolean"==typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}},function(e,t,n){e.exports=function(e,t,n){var l,u,c,d=i(n),f=o(n);t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");l=d.length+1,("tab"===f||"mixed"===f&&(t&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));return c=n.enter("listItem"),u=s(a(e,n),(function(e,t,n){if(t)return(n?"":r(" ",l))+e;return(n?d:d+r(" ",l-d.length))+e})),c(),u};var r=n(77),i=n(1365),o=n(1366),a=n(1367),s=n(1368)},function(e,t){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},function(e,t){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},function(e,t,n){e.exports=function(e,t){var n,i=e.children||[],o=[],a=-1;for(;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"==typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(77)},function(e,t){e.exports=function(e,t){var r,i=[],o=0,a=0;for(;r=n.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(t(e,a,!e))}};var n=/\r?\n|\r/g},function(e,t){e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(2)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(0)),o=d(n(33)),a=n(4),s=n(111),l=n(136),u=d(n(427));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return{error:!1}}function h(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||a.List.isList(e)&&0===e.size}class m extends i.Component{constructor(){var e;super(...arguments),e=this,f(this,"processInnerControlRef",e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||p;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl)}),f(this,"getValidateValue",()=>{var e,t;let n=(null===(e=this.innerWrappedControl)||void 0===e||null===(t=e.getValidateValue)||void 0===t?void 0:t.call(e))||this.props.value;return a.List.isList(n)&&(n=n.join(",")),n}),f(this,"validate",(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=e.getValidateValue(),r=e.props.field,i=[],o=[e.validatePresence,e.validatePattern];if(r.get("meta")&&o.push(e.props.validateMetaField),o.forEach(t=>{const o=t(r,n,e.props.t);o.error&&i.push(o.error)}),t)t.error&&i.push(t.error);else{const t=e.validateWrappedControl(r);t.error&&i.push(t.error)}e.props.onValidate(i)})),f(this,"validatePresence",(e,t)=>{const{t:n,parentIds:r}=this.props;if(e.get("required",!0)&&h(t)){return{error:{type:u.default.PRESENCE,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}}return{error:!1}}),f(this,"validatePattern",(e,t)=>{const{t:n,parentIds:r}=this.props,i=e.get("pattern",!1);if(h(t))return{error:!1};if(i&&!RegExp(i.first()).test(t)){return{error:{type:u.default.PATTERN,parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:i.last()})}}}return{error:!1}}),f(this,"validateWrappedControl",e=>{const{t:t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(s.oneLine`
this.wrappedControlValid is not a function. Are you sure widget
"${e.get("widget")}" is registered?
`);const r=this.wrappedControlValid();if("boolean"==typeof r){return{error:!r}}if(Object.prototype.hasOwnProperty.call(r,"error"))return r;if(r instanceof Promise){r.then(()=>{this.validate({error:!1})},t=>{const n={type:u.default.CUSTOM,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})});return{error:{type:u.default.CUSTOM,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}}return{error:!1}}),f(this,"getObjectValue",()=>this.props.value||(0,a.Map)()),f(this,"onChangeObject",(e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})}),f(this,"setInactiveStyle",()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!h(this.getValidateValue())&&this.validate()})}shouldComponentUpdate(e){return this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle}render(){const{controlComponent:e,entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onValidateObject:d,onOpenMediaLibrary:f,onRemoveMediaControl:p,onPersistMedia:h,onClearMediaControl:m,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,classNameWrapper:b,classNameWidget:_,classNameWidgetActive:w,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,hasActiveStyle:S,editorControl:O,uniqueFieldId:C,resolveWidget:T,widget:A,getEditorComponents:P,query:R,queryHits:j,clearSearch:I,clearFieldErrors:M,isFetching:L,loadEntry:D,fieldsErrors:N,controlRef:F,isEditorComponent:B,isNewEditorComponent:z,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:H,isFieldHidden:$,locale:V}=this.props;return i.default.createElement(e,{entry:t,collection:n,config:r,field:o,value:a,mediaPaths:s,metadata:u,onChange:c,onChangeObject:this.onChangeObject,onValidateObject:d,onOpenMediaLibrary:f,onClearMediaControl:m,onRemoveMediaControl:p,onPersistMedia:h,onAddAsset:g,onRemoveInsertedMedia:v,getAsset:y,forID:C,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:b,classNameWidget:_,classNameWidgetActive:w,classNameLabel:x,classNameLabelActive:k,setActiveStyle:E,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:S,editorControl:O,resolveWidget:T,widget:A,getEditorComponents:P,getRemarkPlugins:l.getRemarkPlugins,query:R,queryHits:j,clearSearch:I,clearFieldErrors:M,isFetching:L,loadEntry:D,isEditorComponent:B,isNewEditorComponent:z,fieldsErrors:N,controlRef:F,parentIds:U,t:q,isDisabled:W,isFieldDuplicate:H,isFieldHidden:$,locale:V})}}t.default=m,f(m,"propTypes",{controlComponent:r.default.func.isRequired,field:o.default.map.isRequired,hasActiveStyle:r.default.bool,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,classNameWidget:r.default.string.isRequired,classNameWidgetActive:r.default.string.isRequired,classNameLabel:r.default.string.isRequired,classNameLabelActive:r.default.string.isRequired,value:r.default.oneOfType([r.default.node,r.default.object,r.default.string,r.default.bool]),mediaPaths:o.default.map.isRequired,metadata:o.default.map,fieldsErrors:o.default.map,onChange:r.default.func.isRequired,onValidate:r.default.func,onOpenMediaLibrary:r.default.func.isRequired,onClearMediaControl:r.default.func.isRequired,onRemoveMediaControl:r.default.func.isRequired,onPersistMedia:r.default.func.isRequired,onAddAsset:r.default.func.isRequired,onRemoveInsertedMedia:r.default.func.isRequired,getAsset:r.default.func.isRequired,resolveWidget:r.default.func.isRequired,widget:r.default.object.isRequired,getEditorComponents:r.default.func.isRequired,isFetching:r.default.bool,controlRef:r.default.func,query:r.default.func.isRequired,clearSearch:r.default.func.isRequired,clearFieldErrors:r.default.func.isRequired,queryHits:r.default.oneOfType([r.default.array,r.default.object]),editorControl:r.default.elementType.isRequired,uniqueFieldId:r.default.string.isRequired,loadEntry:r.default.func.isRequired,t:r.default.func.isRequired,onValidateObject:r.default.func,isEditorComponent:r.default.bool,isNewEditorComponent:r.default.bool,entry:o.default.map.isRequired,isDisabled:r.default.bool,isFieldDuplicate:r.default.func,isFieldHidden:r.default.func,locale:r.default.string})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewPane=void 0;var r=x(n(21)),i=x(n(2)),o=x(n(0)),a=n(4),s=x(n(33)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(661)),u=n(17),c=n(90),d=n(136),f=n(172),p=n(71),h=n(200),m=n(322),g=n(605),v=x(n(1374)),y=x(n(1375)),b=x(n(1376)),_=n(9);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function x(e){return e&&e.__esModule?e:{default:e}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const O=(0,r.default)(l.default,{target:"e6emspu0",label:"PreviewPaneFrame"})("width:100%;height:100%;border:none;background:#fff;border-radius:",u.lengths.borderRadius,";");class C extends o.default.Component{constructor(){var e;super(...arguments),e=this,S(this,"getWidget",(function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{getAsset:o,entry:s}=r,l=(0,d.resolveWidget)(e.get("widget")),u=i?e.get("name")+"_"+i:e.get("name"),c=t&&!l.allowMapValue&&a.Map.isMap(t);return l.preview?(0,_.jsx)(y.default,{previewComponent:l.preview,key:u,field:e,getAsset:o,value:c?t.get(e.get("name")):t,entry:s,fieldsMetaData:n,resolveWidget:d.resolveWidget,getRemarkPlugins:d.getRemarkPlugins}):null})),S(this,"inferedFields",{}),S(this,"widgetFor",(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.props.fields,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.entry.get("data"),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.props.fieldsMetaData,o=n&&n.find(e=>e.get("name")===t),s=a.Map.isMap(r)&&r.get(o.get("name"));o.get("meta")&&(s=e.props.entry.getIn(["meta",o.get("name")]));const l=o.get("fields"),u=o.get("field"),c=i&&i.get(o.get("name"),(0,a.Map)());l&&(o=o.set("fields",e.getNestedWidgets(l,s,c))),u&&(o=o.set("field",e.getSingleNested(u,s,c)));const d=["string","text","number"],f=Object.entries(e.inferedFields).filter(t=>{let[n]=t;return(0,p.selectField)(e.props.collection,n)===o}).map(e=>{let[,t]=e;return t})[0];return f?s=f.defaultPreview(s):s&&-1!==d.indexOf(o.get("widget"))&&s.toString().length<50&&(s=(0,_.jsx)("div",null,(0,_.jsx)("strong",null,o.get("label",o.get("name")),":")," ",s)),s?e.getWidget(o,s,c,e.props):null})),S(this,"getNestedWidgets",(e,t,n)=>a.List.isList(t)?t.map(t=>this.widgetsForNestedFields(e,t,n)):this.widgetsForNestedFields(e,t,n)),S(this,"getSingleNested",(e,t,n)=>a.List.isList(t)?t.map((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r)):this.getWidget(e,t,n.get(e.get("name")),this.props)),S(this,"widgetsForNestedFields",(e,t,n)=>e.map(r=>this.widgetFor(r.get("name"),e,t,n))),S(this,"widgetsFor",e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,i=t.find(t=>t.get("name")===e),o=i&&i.get("fields"),s=n.getIn(["data",i.get("name")]),l=r.get(i.get("name"),(0,a.Map)());return a.List.isList(s)?s.map(e=>{const t=o&&(0,a.Map)(o.map((t,n)=>[t.get("name"),(0,_.jsx)("div",{key:n},this.getWidget(t,e,l.get(t.get("name")),this.props))]));return(0,a.Map)({data:e,widgets:t})}):(0,a.Map)({data:s,widgets:o&&(0,a.Map)(o.map(e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)]))})})}inferFields(){const e=(0,p.selectInferedField)(this.props.collection,"title"),t=(0,p.selectInferedField)(this.props.collection,"shortTitle"),n=(0,p.selectInferedField)(this.props.collection,"author");this.inferedFields={},e&&(this.inferedFields[e]=g.INFERABLE_FIELDS.title),t&&(this.inferedFields[t]=g.INFERABLE_FIELDS.shortTitle),n&&(this.inferedFields[n]=g.INFERABLE_FIELDS.author)}render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=(0,d.getPreviewTemplate)((0,p.selectTemplateName)(t,e.get("slug")))||b.default;this.inferFields();const i=E(E({},this.props),{},{widgetFor:this.widgetFor,widgetsFor:this.widgetsFor}),o=(0,d.getPreviewStyles)().map((e,t)=>e.raw?(0,_.jsx)("style",{key:t},e.value):(0,_.jsx)("link",{key:t,href:e.value,type:"text/css",rel:"stylesheet"}));t||(0,_.jsx)(O,{id:"preview-pane",head:o});return(0,_.jsx)(f.ErrorBoundary,{config:n},(0,_.jsx)(O,{id:"preview-pane",head:o,initialContent:'\n<!DOCTYPE html>\n<html>\n <head><base target="_blank"/></head>\n <body><div></div></body>\n</html>\n'},(0,_.jsx)(l.FrameContextConsumer,null,e=>{let{document:t,window:n}=e;return(0,_.jsx)(v.default,{previewComponent:r,previewProps:E(E({},i),{},{document:t,window:n})})})))}}t.PreviewPane=C,C.propTypes={collection:s.default.map.isRequired,fields:s.default.list.isRequired,entry:s.default.map.isRequired,fieldsMetaData:s.default.map.isRequired,getAsset:i.default.func.isRequired};var T=(0,c.connect)((function(e){return{isLoadingAsset:(0,m.selectIsLoadingAsset)(e.medias),config:e.config}}),(function(e){return{boundGetAsset:(t,n)=>(0,h.boundGetAsset)(e,t,n)}}),(function(e,t,n){return E(E(E(E({},e),t),n),{},{getAsset:t.boundGetAsset(n.collection,n.entry)})}))(C);t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=d(o),s=d(n(54)),l=d(n(2)),u=n(662),c=d(n(1373));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Frame=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.setRef=function(e){r.nodeRef.current=e;var t=r.props.forwardedRef;"function"==typeof t?t(e):t&&(t.current=e)},r.handleLoad=function(){r.setState({iframeLoaded:!0})},r._isMounted=!1,r.nodeRef=a.default.createRef(),r.state={iframeLoaded:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this._isMounted=!0;var e=this.getDoc();e&&"complete"===e.readyState?this.forceUpdate():this.nodeRef.current.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("load",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,i=a.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},a.default.createElement(u.FrameContextProvider,{value:{document:e,window:r}},a.default.createElement("div",{className:"frame-content"},this.props.children))),o=this.getMountTarget();return[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(i,o)]}},{key:"render",value:function(){var e=r({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete e.head,delete e.initialContent,delete e.mountTarget,delete e.contentDidMount,delete e.contentDidUpdate,delete e.forwardedRef,a.default.createElement("iframe",r({},e,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),t}(o.Component);f.propTypes={style:l.default.object,head:l.default.node,initialContent:l.default.string,mountTarget:l.default.string,contentDidMount:l.default.func,contentDidUpdate:l.default.func,children:l.default.oneOfType([l.default.element,l.default.arrayOf(l.default.element)])},f.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=a.default.forwardRef((function(e,t){return a.default.createElement(f,r({},e,{forwardedRef:t}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=(a(i),a(n(2)));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return i.Children.only(this.props.children)}}]),t}(i.Component);u.propTypes={children:o.default.element.isRequired,contentDidMount:o.default.func.isRequired,contentDidUpdate:o.default.func.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(0)),o=n(375),a=n(626),s=n(661),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}class c extends i.default.Component{render(){const{previewComponent:e,previewProps:t}=this.props;return(0,l.jsx)(s.FrameContextConsumer,null,n=>(0,l.jsx)(a.ScrollSyncPane,{attachTo:n.document.scrollingElement},(0,o.isElement)(e)?i.default.cloneElement(e,t):i.default.createElement(e,t)))}}c.propTypes={previewComponent:r.default.func.isRequired,previewProps:r.default.object};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),i=s(n(2)),o=s(n(33));const a=["previewComponent"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}class u extends r.default.Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const e=this.props,{previewComponent:t}=e,n=l(e,a);return r.default.createElement(t,n)}}u.propTypes={previewComponent:i.default.func.isRequired,field:o.default.map.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.string,i.default.bool])};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=l(n(0)),o=l(n(2)),a=l(n(33)),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return"hidden"!==e.get("widget")}const c=(0,r.default)("div",{target:"e1r8oqnq0",label:"PreviewContainer"})({name:"1gj2677",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif;"});class d extends i.default.Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?(0,s.jsx)(c,null,t.filter(u).map(e=>(0,s.jsx)("div",{key:e.get("name")},n(e.get("name"))))):null}}t.default=d,d.propTypes={collection:a.default.map.isRequired,entry:a.default.map.isRequired,fields:a.default.list.isRequired,getAsset:o.default.func.isRequired,widgetFor:o.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.EditorToolbar=void 0;var r=p(n(21)),i=p(n(0)),o=p(n(2)),a=p(n(33)),s=n(9),l=n(51),u=n(155),c=n(17),d=n(124),f=n(172);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={noOverflow:{name:"1ven8wv-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;;label:noOverflow;"},buttonMargin:{name:"1yqtsv2-buttonMargin",styles:"margin:0 10px;;label:buttonMargin;"},toolbarSection:(0,s.css)("height:100%;display:flex;align-items:center;border:0 solid ",c.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,s.css)("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.teal,";;label:publishedButton;")},g=(0,r.default)("div",{target:"evqrzhe0",label:"TooltipText"})({name:"198q1ye",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s;"}),v=(0,r.default)("div",{target:"evqrzhe1",label:"Tooltip"})("position:relative;display:inline-block;&:hover + ",g,"{visibility:visible;opacity:0.9;}"),y=(0,r.default)("div",{target:"evqrzhe2",label:"TooltipContainer"})({name:"79elbk",styles:"position:relative;"}),b=(0,r.default)(c.StyledDropdownButton,{target:"evqrzhe3",label:"DropdownButton"})(m.noOverflow," @media (max-width:1200px){padding-left:10px;}"),_=(0,r.default)("div",{target:"evqrzhe4",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1);position:fixed;top:0;left:0;width:100%;min-width:800px;z-index:",c.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),w=(0,r.default)("div",{target:"evqrzhe5",label:"ToolbarSectionMain"})(m.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),x=(0,r.default)("div",{target:"evqrzhe6",label:"ToolbarSubSectionFirst"})({name:"70qvj9",styles:"display:flex;align-items:center;"}),k=(0,r.default)(x,{target:"evqrzhe7",label:"ToolbarSubSectionLast"})({name:"1a9getn",styles:"justify-content:flex-end;"}),E=(0,r.default)(u.Link,{target:"evqrzhe8",label:"ToolbarSectionBackLink"})(m.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),S=(0,r.default)("div",{target:"evqrzhe9",label:"ToolbarSectionMeta"})(m.toolbarSection,";border-left-width:1px;padding:0 7px;"),O=(0,r.default)(c.Dropdown,{target:"evqrzhe10",label:"ToolbarDropdown"})(m.buttonMargin,";",c.Icon,"{color:",c.colorsRaw.teal,";}"),C=(0,r.default)("div",{target:"evqrzhe11",label:"BackArrow"})("color:",c.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),T=(0,r.default)("div",{target:"evqrzhe12",label:"BackCollection"})("color:",c.colors.textLead,";font-size:14px;"),A=(0,r.default)("div",{target:"evqrzhe13",label:"BackStatus"})({name:"19ug521",styles:"margin-top:6px;"}),P=(0,r.default)(A,{target:"evqrzhe14",label:"BackStatusUnchanged"})(c.components.textBadgeSuccess,";"),R=(0,r.default)(A,{target:"evqrzhe15",label:"BackStatusChanged"})(c.components.textBadgeDanger,";"),j=(0,r.default)("button",{target:"evqrzhe16",label:"ToolbarButton"})(c.buttons.button,";",c.buttons.default,";",m.buttonMargin,";",m.noOverflow,";display:block;@media (max-width:1200px){padding:0 10px;}"),I=(0,r.default)(j,{target:"evqrzhe17",label:"DeleteButton"})(c.buttons.lightRed,";"),M=(0,r.default)(j,{target:"evqrzhe18",label:"SaveButton"})(c.buttons.lightBlue,";&[disabled]{",c.buttons.disabled,";}"),L=(0,r.default)(b,{target:"evqrzhe19",label:"PublishedToolbarButton"})(m.publishedButton,""),D=(0,r.default)(j,{target:"evqrzhe20",label:"PublishedButton"})(m.publishedButton,""),N=(0,r.default)(b,{target:"evqrzhe21",label:"PublishButton"})("background-color:",c.colorsRaw.teal,";"),F=(0,r.default)(b,{target:"evqrzhe22",label:"StatusButton"})("background-color:",c.colorsRaw.tealLight,";color:",c.colorsRaw.teal,";"),B=(0,r.default)("div",{target:"evqrzhe23",label:"PreviewButtonContainer"})("margin-right:12px;color:",c.colorsRaw.blue,";display:flex;align-items:center;a,",c.Icon,"{color:",c.colorsRaw.blue,";}",c.Icon,"{position:relative;top:1px;}"),z=(0,r.default)("button",{target:"evqrzhe24",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",c.colorsRaw.blue,";span{margin-right:6px;}"),U=z.withComponent("a",{target:"evqrzhe26",label:"PreviewLink"}),q=(0,r.default)(c.DropdownItem,{target:"evqrzhe25",label:"StatusDropdownItem"})(c.Icon,"{color:",c.colors.infoText,";}");class W extends i.default.Component{constructor(){super(...arguments),h(this,"renderSimpleControls",()=>{const{collection:e,hasChanged:t,isNewEntry:n,showDelete:r,onDelete:o,t:a}=this.props,l=e.get("create");return(0,s.jsx)(i.default.Fragment,null,n||t?this.renderNewEntrySimplePublishControls({canCreate:l}):this.renderExistingEntrySimplePublishControls({canCreate:l}),(0,s.jsx)("div",null,r?(0,s.jsx)(I,{onClick:o},a("editor.editorToolbar.deleteEntry")):null))}),h(this,"renderDeployPreviewControls",e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:i,status:o,isFetching:a}=t;if(!o)return;const l="SUCCESS"===o&&!a;return(0,s.jsx)(B,null,l?(0,s.jsx)(U,{rel:"noopener noreferrer",target:"_blank",href:i},(0,s.jsx)("span",null,e),(0,s.jsx)(c.Icon,{type:"new-tab",size:"xsmall"})):(0,s.jsx)(z,{onClick:n},(0,s.jsx)("span",null,r("editor.editorToolbar.deployPreviewPendingButtonLabel")),(0,s.jsx)(c.Icon,{type:"refresh",size:"xsmall"})))}),h(this,"renderStatusInfoTooltip",()=>{const{t:e,currentStatus:t}=this.props,n={[d.status.get("DRAFT")]:"statusInfoTooltipDraft",[d.status.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find(e=>e===t);return(0,s.jsx)(y,null,(0,s.jsx)(v,null,(0,s.jsx)(c.Icon,{type:"info-circle",size:"small",className:"tooltip"})),r&&(0,s.jsx)(g,null,e("editor.editorToolbar."+n[r])))}),h(this,"renderWorkflowStatusControls",()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:o}=this.props,a={[d.status.get("DRAFT")]:r("editor.editorToolbar.draft"),[d.status.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[d.status.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},l=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:a[n]});return(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(O,{dropdownTopOverlap:"40px",dropdownWidth:"120px",renderButton:()=>(0,s.jsx)(F,null,l)},(0,s.jsx)(q,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===d.status.get("DRAFT")?"check":null}),(0,s.jsx)(q,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===d.status.get("PENDING_REVIEW")?"check":null}),o?"":(0,s.jsx)(q,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===d.status.get("PENDING_PUBLISH")?"check":null})),o&&this.renderStatusInfoTooltip())}),h(this,"renderNewEntryWorkflowPublishControls",e=>{let{canCreate:t,canPublish:n}=e;const{isPublishing:r,onPublish:o,onPublishAndNew:a,onPublishAndDuplicate:l,t:u}=this.props;return n?(0,s.jsx)(O,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(N,null,u(r?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(c.DropdownItem,{label:u("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:o}),t?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(c.DropdownItem,{label:u("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:a}),(0,s.jsx)(c.DropdownItem,{label:u("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:l})):null):""}),h(this,"renderExistingEntryWorkflowPublishControls",e=>{let{canCreate:t,canPublish:n,canDelete:r}=e;const{unPublish:i,onDuplicate:o,isPersisting:a,t:l}=this.props;return n||t?(0,s.jsx)(O,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(L,null,l(a?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published"))},r&&n&&(0,s.jsx)(c.DropdownItem,{label:l("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:i}),t&&(0,s.jsx)(c.DropdownItem,{label:l("editor.editorToolbar.duplicate"),icon:"add",onClick:o})):""}),h(this,"renderExistingEntrySimplePublishControls",e=>{let{canCreate:t}=e;const{onDuplicate:n,t:r}=this.props;return t?(0,s.jsx)(O,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(L,null,r("editor.editorToolbar.published"))},(0,s.jsx)(c.DropdownItem,{label:r("editor.editorToolbar.duplicate"),icon:"add",onClick:n})):(0,s.jsx)(D,null,r("editor.editorToolbar.published"))}),h(this,"renderNewEntrySimplePublishControls",e=>{let{canCreate:t}=e;const{onPersist:n,onPersistAndNew:r,onPersistAndDuplicate:o,isPersisting:a,t:l}=this.props;return(0,s.jsx)("div",null,(0,s.jsx)(O,{dropdownTopOverlap:"40px",dropdownWidth:"150px",renderButton:()=>(0,s.jsx)(N,null,l(a?"editor.editorToolbar.publishing":"editor.editorToolbar.publish"))},(0,s.jsx)(c.DropdownItem,{label:l("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:n}),t?(0,s.jsx)(i.default.Fragment,null,(0,s.jsx)(c.DropdownItem,{label:l("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:r}),(0,s.jsx)(c.DropdownItem,{label:l("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:o})):null))}),h(this,"renderSimpleDeployPreviewControls",()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))}),h(this,"renderWorkflowControls",()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:i,hasUnpublishedChanges:o,useOpenAuthoring:a,isPersisting:l,isDeleting:u,isNewEntry:c,isModification:d,currentStatus:f,collection:p,t:h}=this.props,m=p.get("create"),g=p.get("publish")&&!a,v=p.get("delete",!0),y=o&&d&&h("editor.editorToolbar.deleteUnpublishedChanges")||o&&(c||!d)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!o&&!d&&h("editor.editorToolbar.deletePublishedEntry");return[(0,s.jsx)(M,{disabled:!i,key:"save-button",onClick:()=>i&&e()},h(l?"editor.editorToolbar.saving":"editor.editorToolbar.save")),f?[this.renderWorkflowStatusControls(),this.renderNewEntryWorkflowPublishControls({canCreate:m,canPublish:g})]:!c&&this.renderExistingEntryWorkflowPublishControls({canCreate:m,canPublish:g,canDelete:v}),r&&!a||o||d?(0,s.jsx)(I,{key:"delete-button",onClick:o?n:t},u?h("editor.editorToolbar.deleting"):y):null]}),h(this,"renderWorkflowDeployPreviewControls",()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))})}componentDidMount(){const{isNewEntry:e,loadDeployPreview:t}=this.props;e||t({maxAttempts:3})}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||r({maxAttempts:3})}render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:i,onLogoutClick:o,t:a,editorBackLink:l}=this.props;return(0,s.jsx)(_,null,(0,s.jsx)(E,{to:l},(0,s.jsx)(C,null,"←"),(0,s.jsx)("div",null,(0,s.jsx)(T,null,a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})),t?(0,s.jsx)(R,null,a("editor.editorToolbar.unsavedChanges")):(0,s.jsx)(P,null,a("editor.editorToolbar.changesSaved")))),(0,s.jsx)(w,null,(0,s.jsx)(x,null,i?this.renderWorkflowControls():this.renderSimpleControls()),(0,s.jsx)(k,null,i?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls())),(0,s.jsx)(S,null,(0,s.jsx)(f.SettingsDropdown,{displayUrl:n,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:o})))}}t.EditorToolbar=W,h(W,"propTypes",{isPersisting:o.default.bool,isPublishing:o.default.bool,isUpdatingStatus:o.default.bool,isDeleting:o.default.bool,onPersist:o.default.func.isRequired,onPersistAndNew:o.default.func.isRequired,onPersistAndDuplicate:o.default.func.isRequired,showDelete:o.default.bool.isRequired,onDelete:o.default.func.isRequired,onDeleteUnpublishedChanges:o.default.func.isRequired,onChangeStatus:o.default.func.isRequired,onPublish:o.default.func.isRequired,unPublish:o.default.func.isRequired,onDuplicate:o.default.func.isRequired,onPublishAndNew:o.default.func.isRequired,onPublishAndDuplicate:o.default.func.isRequired,user:o.default.object,hasChanged:o.default.bool,displayUrl:o.default.string,collection:a.default.map.isRequired,hasWorkflow:o.default.bool,useOpenAuthoring:o.default.bool,hasUnpublishedChanges:o.default.bool,isNewEntry:o.default.bool,isModification:o.default.bool,currentStatus:o.default.string,onLogoutClick:o.default.func.isRequired,deployPreview:o.default.object,loadDeployPreview:o.default.func.isRequired,t:o.default.func.isRequired,editorBackLink:o.default.string.isRequired});var H=(0,l.translate)()(W);t.default=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.connect)(h,null,m)(class extends i.default.Component{render(){return(0,c.jsx)(e,this.props)}})};var r,i=(r=n(0))&&r.__esModule?r:{default:r},o=n(90),a=n(124),s=n(121),l=n(71),u=n(259),c=n(9);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const{collections:n}=e,r=e.config.publish_mode===a.EDITORIAL_WORKFLOW,i=n.get(t.match.params.name),o={isEditorialWorkflow:r,showDelete:!t.newEntry&&(0,l.selectAllowDeletion)(i)};if(r){const n=t.match.params[0],r=(0,s.selectUnpublishedEntry)(e,i.get("name"),n);r&&(o.unpublishedEntry=!0,o.entry=r)}return o}function m(e,t,n){const{isEditorialWorkflow:r,unpublishedEntry:i}=e,{dispatch:o}=t,a={};return r&&(a.loadEntry=(e,t)=>o((0,u.loadUnpublishedEntry)(e,t)),a.persistEntry=e=>o((0,u.persistUnpublishedEntry)(e,i))),f(f(f({},n),e),a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=(l(n(0)),n(51)),o=n(17),a=l(n(2)),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)("div",{target:"e8enq1s0",label:"NotFoundContainer"})("margin:",o.lengths.pageMargin,";");function c(e){let{t:t}=e;return(0,s.jsx)(u,null,(0,s.jsx)("h2",null,t("app.notFoundPage.header")))}c.propTypes={t:a.default.func.isRequired};var d=(0,i.translate)()(c);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(21)),i=h(n(2)),o=h(n(0)),a=h(n(33)),s=n(9),l=n(51),u=n(155),c=n(17),d=n(90),f=n(172),p=n(613);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const v={buttonActive:(0,s.css)("color:",c.colors.active,";;label:buttonActive;")};function y(e){return(0,s.jsx)("header",g({css:(0,s.css)(c.shadows.dropMain,";position:sticky;width:100%;top:0;background-color:",c.colors.foreground,";z-index:",c.zIndex.zIndex300,";height:",c.lengths.topBarHeight,";;label:AppHeader;")},e))}const b=(0,r.default)("div",{target:"e16dayda0",label:"AppHeaderContent"})({name:"oh6t3a",styles:"display:flex;justify-content:space-between;min-width:800px;max-width:1440px;padding:0 12px;margin:0 auto;"}),_=(0,r.default)("button",{target:"e16dayda1",label:"AppHeaderButton"})(c.buttons.button,";background:none;color:#7b8290;font-family:inherit;font-size:16px;font-weight:500;display:inline-flex;padding:16px 20px;align-items:center;",c.Icon,"{margin-right:4px;color:#b3b9c4;}&:hover,&:active,&:focus{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}}",e=>(0,s.css)("&.",e.activeClassName,"{",v.buttonActive,";",c.Icon,"{",v.buttonActive,";}};label:AppHeaderButton;"),";"),w=_.withComponent(u.NavLink,{target:"e16dayda5",label:"AppHeaderNavLink"}),x=(0,r.default)("div",{target:"e16dayda2",label:"AppHeaderActions"})({name:"18biwo",styles:"display:inline-flex;align-items:center;"}),k=(0,r.default)(c.StyledDropdownButton,{target:"e16dayda3",label:"AppHeaderQuickNewButton"})(c.buttons.button,";",c.buttons.medium,";",c.buttons.gray,";margin-right:8px;&:after{top:11px;}"),E=(0,r.default)("ul",{target:"e16dayda4",label:"AppHeaderNavList"})({name:"lsxu3a",styles:"display:flex;margin:0;list-style:none;"});class S extends o.default.Component{constructor(){super(...arguments),m(this,"intervalId",void 0),m(this,"handleCreatePostClick",e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)})}componentDidMount(){this.intervalId=setInterval(()=>{this.props.checkBackendStatus()},3e5)}componentWillUnmount(){clearInterval(this.intervalId)}render(){const{user:e,collections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:i,displayUrl:o,isTestRepo:a,t:l,showMediaButton:u}=this.props,d=t.filter(e=>e.get("create")).toList();return(0,s.jsx)(y,null,(0,s.jsx)(b,null,(0,s.jsx)("nav",null,(0,s.jsx)(E,null,(0,s.jsx)("li",null,(0,s.jsx)(w,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/")},(0,s.jsx)(c.Icon,{type:"page"}),l("app.header.content"))),i&&(0,s.jsx)("li",null,(0,s.jsx)(w,{to:"/workflow",activeClassName:"header-link-active"},(0,s.jsx)(c.Icon,{type:"workflow"}),l("app.header.workflow"))),u&&(0,s.jsx)("li",null,(0,s.jsx)(_,{onClick:r},(0,s.jsx)(c.Icon,{type:"media-alt"}),l("app.header.media"))))),(0,s.jsx)(x,null,d.size>0&&(0,s.jsx)(c.Dropdown,{renderButton:()=>(0,s.jsx)(k,null," ",l("app.header.quickAdd")),dropdownTopOverlap:"30px",dropdownWidth:"160px",dropdownPosition:"left"},d.map(e=>(0,s.jsx)(c.DropdownItem,{key:e.get("name"),label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))}))),(0,s.jsx)(f.SettingsDropdown,{displayUrl:o,isTestRepo:a,imageUrl:null==e?void 0:e.avatar_url,onLogoutClick:n}))))}}m(S,"propTypes",{user:i.default.object.isRequired,collections:a.default.map.isRequired,onCreateEntryClick:i.default.func.isRequired,onLogoutClick:i.default.func.isRequired,openMediaLibrary:i.default.func.isRequired,hasWorkflow:i.default.bool.isRequired,displayUrl:i.default.string,isTestRepo:i.default.bool,t:i.default.func.isRequired,checkBackendStatus:i.default.func.isRequired});const O={checkBackendStatus:p.checkBackendStatus};var C=(0,d.connect)(null,O)((0,l.translate)()(S));t.default=C},function(e,t,n){"use strict";var r=n(136),i=a(n(1382)),o=a(n(1383));function a(e){return e&&e.__esModule?e:{default:e}}(0,r.registerWidget)("unknown",i.default,o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(0));var r=n(51),i=s(n(33)),o=s(n(2)),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){let{field:t,t:n}=e;return(0,a.jsx)("div",null,n("editor.editorWidgets.unknownControl.noControl",{widget:t.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired};var u=(0,r.translate)()(l);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(0));var r=n(51),i=s(n(33)),o=s(n(2)),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){let{field:t,t:n}=e;return(0,a.jsx)("div",{className:"nc-widgetPreview"},n("editor.editorWidgets.unknownPreview.noPreview",{widget:t.get("widget")}))}l.propTypes={field:i.default.map,t:o.default.func.isRequired};var u=(0,r.translate)()(l);t.default=u},function(e,t,n){"use strict";var r,i=(r=n(318))&&r.__esModule?r:{default:r},o=n(136),a=n(531),s=n(220),l=n(171);function u(e){return a.store.dispatch((0,l.insertMedia)(e,void 0))}const c=(0,i.default)((async function(e,t){const n=(0,o.getMediaLibrary)(e);if(n){const e=await n.init({options:t,handleInsert:u});a.store.dispatch((0,l.createMediaLibrary)(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);a.store.dispatch((0,s.configFailed)(t))}}));a.store.subscribe(()=>{const e=a.store.getState();if(e){var t;const n=null===(t=e.config.media_library)||void 0===t?void 0:t.name;if(n&&!e.mediaLibrary.get("externalLibrary")){const t=e.config.media_library;c(n,t)}}})},function(e,t,n){
/**
* what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
* @version v5.2.10
* @link https://github.com/ten1seven/what-input
* @license MIT
*/
var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,i=Date.now(),o="false",a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var m=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,m)}catch(e){}var g=function(){var e=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",v),window.PointerEvent?(window.addEventListener("pointerdown",y),window.addEventListener("pointermove",_)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y),window.addEventListener("MSPointerMove",_)):(window.addEventListener("mousedown",y),window.addEventListener("mousemove",_),"ontouchstart"in window&&(window.addEventListener("touchstart",y,e),window.addEventListener("touchend",y))),window.addEventListener(O(),_,e),window.addEventListener("keydown",y),window.addEventListener("keyup",y),window.addEventListener("focusin",w),window.addEventListener("focusout",x)},v=function(){if(o=!(e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(e){}b("input"),b("intent")},y=function(e){var t=e.which,i=c[e.type];"pointer"===i&&(i=E(e));var o=!u.length&&-1===l.indexOf(t),s=u.length&&-1!==u.indexOf(t),d="keyboard"===i&&t&&(o||s)||"mouse"===i||"touch"===i;if(S(i)&&(d=!1),d&&n!==i&&(k("input",n=i),b("input")),d&&r!==i){var f=document.activeElement;f&&f.nodeName&&(-1===a.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!A(f,"form"))&&(k("intent",r=i),b("intent"))}},b=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),C(t)},_=function(e){var t=c[e.type];"pointer"===t&&(t=E(e)),T(e),(!d&&!S(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(k("intent",r=t),b("intent"))},w=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):x()},x=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},k=function(e,t){if(o)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},E=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},S=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-i<200;return i=t,r},O=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},C=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},T=function(e){f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0},A=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(c[O()]="mouse",g()),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=r()},function(e,t,n){"use strict";var r=n(491),i=n(1387),o=n(448),a=n(450),s=n(1406),l=n(675),u=n(1427),c=n(1432),d=P(n(1434)),f=P(n(1437)),p=P(n(1441)),h=P(n(1444)),m=P(n(683)),g=P(n(1451)),v=P(n(1463)),y=P(n(1727)),b=P(n(468)),_=P(n(1734)),w=P(n(1740)),x=P(n(1742)),k=P(n(1748)),E=P(n(1752)),S=P(n(1756)),O=P(n(1878)),C=P(n(1890)),T=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(1891));function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function P(e){return e&&e.__esModule?e:{default:e}}r.NetlifyCmsCore.registerBackend("git-gateway",s.GitGatewayBackend),r.NetlifyCmsCore.registerBackend("azure",i.AzureBackend),r.NetlifyCmsCore.registerBackend("github",o.GitHubBackend),r.NetlifyCmsCore.registerBackend("gitlab",a.GitLabBackend),r.NetlifyCmsCore.registerBackend("bitbucket",l.BitbucketBackend),r.NetlifyCmsCore.registerBackend("test-repo",u.TestBackend),r.NetlifyCmsCore.registerBackend("proxy",c.ProxyBackend),r.NetlifyCmsCore.registerWidget([d.default.Widget(),f.default.Widget(),p.default.Widget(),h.default.Widget(),m.default.Widget(),g.default.Widget(),v.default.Widget(),y.default.Widget(),b.default.Widget(),_.default.Widget(),w.default.Widget(),x.default.Widget(),k.default.Widget(),E.default.Widget(),S.default.Widget(),O.default.Widget()]),r.NetlifyCmsCore.registerEditorComponent(C.default),r.NetlifyCmsCore.registerEditorComponent({id:"code-block",label:"Code Block",widget:"code",type:"code-block"}),Object.keys(T).forEach(e=>{r.NetlifyCmsCore.registerLocale(e,T[e])})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"AzureBackend",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsBackendAzure=void 0;var r=a(n(1388)),i=a(n(665)),o=a(n(663));function a(e){return e&&e.__esModule?e:{default:e}}const s={AzureBackend:r.default,API:i.default,AuthenticationPage:o.default};t.NetlifyCmsBackendAzure=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(122)),i=c(n(123)),o=c(n(193)),a=n(40),s=c(n(663)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(665));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,"lock",void 0),p(this,"api",void 0),p(this,"options",void 0),p(this,"repo",void 0),p(this,"branch",void 0),p(this,"apiRoot",void 0),p(this,"apiVersion",void 0),p(this,"token",void 0),p(this,"squashMerges",void 0),p(this,"cmsLabelPrefix",void 0),p(this,"mediaFolder",void 0),p(this,"previewContext",void 0),p(this,"_mediaDisplayURLSem",void 0),this.options=f({initialWorkflowStatus:""},t),this.repo=function(e){const{repo:t}=e.backend;if("string"!=typeof t)throw new Error('The Azure backend needs a "repo" in the backend configuration.');const n=t.split("/");if(3!==n.length)throw new Error("The Azure backend must be in a the format of {org}/{project}/{repo}");const[r,i,o]=n;return{org:r,project:i,repoName:o}}(e),this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://dev.azure.com",this.apiVersion=e.backend.api_version||"6.1-preview",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=(0,r.default)(e.media_folder,"/"),this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){return{auth:{status:await this.api.user().then(e=>!!e).catch(e=>(console.warn("Failed getting Azure user",e),!1))||!1},api:{status:!0,statusPage:""}}}authComponent(){return s.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new l.default({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const t=await this.api.user();return f({token:e.token},t)}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){return await(0,a.entriesByFolder)(async()=>(await this.api.listFiles(e,n>1)).filter(e=>(0,a.filterByExtension)({path:e.path},t)).map(e=>({id:e.id,path:e.path})),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){return(0,a.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),l.API_NAME)}async getEntry(e){return{file:{path:e},data:await this.api.readFile(e)}}async getMedia(){const e=await this.api.listFiles(this.mediaFolder,!1);return await Promise.all(e.map(async e=>{let{id:t,path:n,name:r}=e;return{id:t,name:r,displayURL:await this.getMediaDisplayURL({id:t,path:n}),path:n}}))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=new File([n],t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=e.assets;await this.api.persistFiles(e.dataFiles,n,t)}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,s=URL.createObjectURL(n);return{displayURL:s,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:s,id:r}}async deleteFiles(e,t){await this.api.deleteFiles(e,t)}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,null,(t,n,r)=>{let{parseText:i}=r;return this.api.readFile(t,n,{branch:e,parseText:i})}),r=(0,a.basename)(t.path),i=new File([n],r);return{id:t.path,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async loadEntryMediaFiles(e,t){return await Promise.all(t.map(t=>this.loadMediaFile(e,t)))}async unpublishedEntries(){return await(0,a.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,a.contentKeyFromBranch)(e))))}async unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;if(t){return await this.api.retrieveUnpublishedEntryData(t)}if(n&&r){const e=(0,a.generateContentKey)(n,r);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(122)),i=o(n(168));function o(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){this.err=e}toString(){return this.err&&this.err.message}}const s={github:{width:960,height:600},gitlab:{width:960,height:600},bitbucket:{width:960,height:500},email:{width:500,height:400}};var l=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.site_id=e.site_id||null,this.base_url=(0,i.default)(e.base_url,"/")||"https://api.netlify.com",this.auth_endpoint=(0,r.default)(e.auth_endpoint,"/")||"auth"}handshakeCallback(e,t){const n=r=>{if(r.data==="authorizing:"+e.provider&&r.origin===this.base_url)return window.removeEventListener("message",n,!1),window.addEventListener("message",this.authorizeCallback(e,t),!1),this.authWindow.postMessage(r.data,r.origin)};return n}authorizeCallback(e,t){const n=r=>{if(r.origin===this.base_url){if(0===r.data.indexOf("authorization:"+e.provider+":success:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":success:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(null,i)}if(0===r.data.indexOf("authorization:"+e.provider+":error:")){const i=JSON.parse(r.data.match(new RegExp("^authorization:"+e.provider+":error:(.+)$"))[1]);window.removeEventListener("message",n,!1),this.authWindow.close(),t(new a(i))}}};return n}getSiteID(){if(this.site_id)return this.site_id;const e=document.location.host.split(":")[0];return"localhost"===e?"cms.netlify.com":e}authenticate(e,t){const{provider:n}=e,r=this.getSiteID();if(!n)return t(new a({message:"You must specify a provider when calling netlify.authenticate"}));if(!r)return t(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make authentication work from localhost"}));const i=s[n]||s.github,o=screen.width/2-i.width/2,l=screen.height/2-i.height/2;window.addEventListener("message",this.handshakeCallback(e,t),!1);let u=`${this.base_url}/${this.auth_endpoint}?provider=${e.provider}&site_id=${r}`;e.scope&&(u+="&scope="+e.scope),!0===e.login&&(u+="&login=true"),e.beta_invite&&(u+="&beta_invite="+e.beta_invite),e.invite_code&&(u+="&invite_code="+e.invite_code),this.authWindow=window.open(u,"Netlify Authorization",`width=${i.width}, height=${i.height}, top=${l}, left=${o}`),this.authWindow.focus()}refresh(e,t){const{provider:n,refresh_token:r}=e,i=this.getSiteID(),o=t||Promise.reject.bind(Promise);if(!n||!r)return o(new a({message:"You must specify a provider and refresh token when calling netlify.refresh"}));if(!i)return o(new a({message:"You must set a site_id with netlify.configure({site_id: 'your-site-id'}) to make token refresh work from localhost"}));const s=`${this.base_url}/${this.auth_endpoint}/refresh?provider=${n}&site_id=${i}&refresh_token=${r}`,l=fetch(s,{method:"POST",body:""}).then(e=>e.json());if(!t)return l;l.then(e=>t(null,e)).catch(t)}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(4),i=l(n(122)),o=l(n(168)),a=n(664);const s=["access_token"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,o.default)(e.base_url,"/"),n=(0,i.default)(e.auth_endpoint,"/");this.auth_url=`${t}/${n}`,this.appID=e.app_id,this.clearHash=e.clearHash}authenticate(e,t){if((0,a.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","token"),n.searchParams.set("scope",e.scope),null!=e.prompt&&null!=e.prompt&&n.searchParams.set("prompt",e.prompt),null!=e.resource&&null!=e.resource&&n.searchParams.set("resource",e.resource);const r=JSON.stringify({auth_type:"implicit",nonce:(0,a.createNonce)()});n.searchParams.set("state",r),document.location.assign(n.href)}completeAuth(e){const t=new URLSearchParams(document.location.hash.replace(/^#?\/?/,""));if(!t.has("access_token")&&!t.has("error"))return;this.clearHash();const n=(0,r.Map)(t.entries()),{nonce:i}=JSON.parse(n.get("state"));if(!(0,a.validateNonce)(i))return e(new Error("Invalid nonce"));if(n.has("error"))return e(new Error(`${n.get("error")}: ${n.get("error_description")}`));if(n.has("access_token")){const t=n.toJS(),{access_token:r}=t;e(null,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({token:r},d(t,s)))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(122)),i=a(n(168)),o=n(664);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function u(e){const t=await async function(e){const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t);return String.fromCharCode(...new Uint8Array(n))}(e);return btoa(t).split("=")[0].replace(/\+/g,"-").replace(/\//g,"_")}function c(){const e=function(){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.";return Array.from(window.crypto.getRandomValues(new Uint8Array(128))).map(t=>e[t%e.length]).join("")}();return window.sessionStorage.setItem("netlify-cms-pkce-verifier-code",e),e}t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,i.default)(e.base_url,"/"),n=(0,r.default)(e.auth_endpoint,"/"),o=(0,r.default)(e.auth_token_endpoint,"/");this.auth_url=`${t}/${n}`,this.auth_token_url=`${t}/${o}`,this.appID=e.app_id}async authenticate(e,t){if((0,o.isInsecureProtocol)())return t(new Error("Cannot authenticate over insecure protocol!"));const n=new URL(this.auth_url);n.searchParams.set("client_id",this.appID),n.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),n.searchParams.set("response_type","code"),n.searchParams.set("scope",e.scope);const r=JSON.stringify({auth_type:"pkce",nonce:(0,o.createNonce)()});n.searchParams.set("state",r),n.searchParams.set("code_challenge_method","S256");const i=c(),a=await u(i);n.searchParams.set("code_challenge",a),document.location.assign(n.href)}async completeAuth(e){const t=new URLSearchParams(document.location.search);if(window.history.replaceState(null,"",document.location.pathname),!t.has("code")&&!t.has("error"))return;const{nonce:n}=JSON.parse(t.get("state"));if(!(0,o.validateNonce)(n))return e(new Error("Invalid nonce"));if(t.has("error"))return e(new Error(`${t.get("error")}: ${t.get("error_description")}`));if(t.has("code")){const n=t.get("code"),r=new URL(this.auth_token_url);r.searchParams.set("client_id",this.appID),r.searchParams.set("code",n),r.searchParams.set("grant_type","authorization_code"),r.searchParams.set("redirect_uri",document.location.origin+document.location.pathname),r.searchParams.set("code_verifier",window.sessionStorage.getItem("netlify-cms-pkce-verifier-code")),window.sessionStorage.removeItem("netlify-cms-pkce-verifier-code");const i=await fetch(r.href,{method:"POST"}),o=await i.json();e(null,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({token:o.access_token},o))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;p(n(0));var r=d(n(193)),i=d(n(123)),o=n(111),a=n(40),s=d(n(666)),l=p(n(449)),u=d(n(1394)),c=n(9);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{fetchWithTimeout:y}=a.unsentRequest,b=["API Requests","Issues, Pull Requests, Projects"];t.default=class{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,"lock",void 0),v(this,"api",void 0),v(this,"options",void 0),v(this,"originRepo",void 0),v(this,"repo",void 0),v(this,"openAuthoringEnabled",void 0),v(this,"useOpenAuthoring",void 0),v(this,"alwaysForkEnabled",void 0),v(this,"branch",void 0),v(this,"apiRoot",void 0),v(this,"mediaFolder",void 0),v(this,"previewContext",void 0),v(this,"token",void 0),v(this,"squashMerges",void 0),v(this,"cmsLabelPrefix",void 0),v(this,"useGraphql",void 0),v(this,"_currentUserPromise",void 0),v(this,"_userIsOriginMaintainerPromises",void 0),v(this,"_mediaDisplayURLSem",void 0),v(this,"getCursorAndFiles",(e,t)=>{const n=e.length,r=Math.ceil(e.length/20),i=[];t>1&&(i.push("prev"),i.push("first")),t<r&&(i.push("next"),i.push("last"));return{cursor:a.Cursor.create({actions:i,meta:{page:t,count:n,pageSize:20,pageCount:r},data:{files:e}}),files:e.slice(20*(t-1),20*t)}}),this.options=g({proxied:!1,API:null,initialWorkflowStatus:""},n),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitHub backend needs a "repo" in the backend configuration.');if(this.api=this.options.API||null,this.openAuthoringEnabled=e.backend.open_authoring||!1,this.openAuthoringEnabled){if(!this.options.useWorkflow)throw new Error("backend.open_authoring is true but publish_mode is not set to editorial_workflow.");this.originRepo=e.backend.repo||""}else this.repo=this.originRepo=e.backend.repo||"";this.alwaysForkEnabled=e.backend.always_fork||!1,this.branch=(null===(t=e.backend.branch)||void 0===t?void 0:t.trim())||"master",this.apiRoot=e.backend.api_root||"https://api.github.com",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.useGraphql=e.backend.use_graphql||!1,this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)()}isGitBackend(){return!0}async status(){const e=await y("https://www.githubstatus.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>b.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting GitHub status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.getUser().then(e=>!!e).catch(e=>(console.warn("Failed getting GitHub user",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:"https://www.githubstatus.com"}}}authComponent(){const e=e=>(0,c.jsx)(s.default,h({},e,{backend:this}));return e.displayName="AuthenticationPage",e}restoreUser(e){return this.openAuthoringEnabled?this.authenticateWithFork({userData:e,getPermissionToFork:()=>!0}).then(()=>this.authenticate(e)):this.authenticate(e)}async pollUntilForkExists(e){let{repo:t,token:n}=e;let r=!1;for(;!r;)r=await y(`${this.apiRoot}/repos/${t}`,{headers:{Authorization:"token "+n}}).then(()=>!0).catch(e=>e&&404===e.status?(console.log("This 404 was expected and handled appropriately."),!1):Promise.reject(e)),r||await new Promise(e=>setTimeout(e,250));return Promise.resolve()}async currentUser(e){let{token:t}=e;return this._currentUserPromise||(this._currentUserPromise=y(this.apiRoot+"/user",{headers:{Authorization:"token "+t}}).then(e=>e.json())),this._currentUserPromise}async userIsOriginMaintainer(e){let{username:t,token:n}=e;const r=t||(await this.currentUser({token:n})).login;return this._userIsOriginMaintainerPromises=this._userIsOriginMaintainerPromises||{},this._userIsOriginMaintainerPromises[r]||(this._userIsOriginMaintainerPromises[r]=y(`${this.apiRoot}/repos/${this.originRepo}/collaborators/${r}/permission`,{headers:{Authorization:"token "+n}}).then(e=>e.json()).then(e=>{let{permission:t}=e;return"admin"===t||"write"===t})),this._userIsOriginMaintainerPromises[r]}async forkExists(e){let{token:t}=e;try{const e=await this.currentUser({token:t}),n=this.originRepo.split("/")[1],r=await y(`${this.apiRoot}/repos/${e.login}/${n}`,{method:"GET",headers:{Authorization:"token "+t}}).then(e=>e.json());return!0===r.fork&&r.parent&&r.parent.full_name.toLowerCase()===this.originRepo.toLowerCase()}catch{return!1}}async authenticateWithFork(e){let{userData:t,getPermissionToFork:n}=e;if(!this.openAuthoringEnabled)throw new Error("Cannot authenticate with fork; Open Authoring is turned off.");const r=t.token;if(!this.alwaysForkEnabled&&await this.userIsOriginMaintainer({token:r}))return this.repo=this.originRepo,this.useOpenAuthoring=!1,Promise.resolve();await this.forkExists({token:r})||await n();const i=await y(`${this.apiRoot}/repos/${this.originRepo}/forks`,{method:"POST",headers:{Authorization:"token "+r}}).then(e=>e.json());return this.useOpenAuthoring=!0,this.repo=i.full_name,this.pollUntilForkExists({repo:i.full_name,token:r})}async authenticate(e){this.token=e.token;const t=this.useGraphql?u.default:l.default;this.api=new t({token:this.token,branch:this.branch,repo:this.repo,originRepo:this.originRepo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,useOpenAuthoring:this.useOpenAuthoring,initialWorkflowStatus:this.options.initialWorkflowStatus});const n=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=o.stripIndent`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a GitHub account with access.
If your repo is under an organization, ensure the organization has granted access to Netlify
CMS.
`,e}))throw new Error("Your GitHub user account does not have access to this repo.");return g(g({},n),{},{token:e.token,useOpenAuthoring:this.useOpenAuthoring})}logout(){if(this.token=null,this.api&&this.api.reset&&"function"==typeof this.api.reset)return this.api.reset()}getToken(){return Promise.resolve(this.token)}async entriesByFolder(e,t,n){const r=this.api.originRepoURL;let i;const o=await(0,a.entriesByFolder)(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>{const n=e.filter(e=>(0,a.filterByExtension)(e,t)),r=this.getCursorAndFiles(n,1);return i=r.cursor,r.files}),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),l.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=i,o}async allEntriesByFolder(e,t,n){const r=this.api.originRepoURL;return await(0,a.entriesByFolder)(()=>this.api.listFiles(e,{repoURL:r,depth:n}).then(e=>e.filter(e=>(0,a.filterByExtension)(e,t))),(e,t)=>this.api.readFile(e,t,{repoURL:r}),this.api.readFileMetadata.bind(this.api),l.API_NAME)}entriesByFiles(e){const t=this.useOpenAuthoring?this.api.originRepoURL:this.api.repoURL;return(0,a.entriesByFiles)(e,(e,n)=>this.api.readFile(e,n,{repoURL:t}).catch(()=>""),this.api.readFileMetadata.bind(this.api),l.API_NAME)}getEntry(e){const t=this.api.originRepoURL;return this.api.readFile(e,null,{repoURL:t}).then(t=>({file:{path:e,id:null},data:t})).catch(()=>({file:{path:e,id:null},data:""}))}getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;return this.api.listFiles(e).then(e=>e.map(e=>{let{id:t,name:n,size:r,path:i}=e;return{id:t,name:n,size:r,displayURL:{id:t,path:i},path:i}}))}async getMediaFile(e){const t=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),n=(0,a.basename)(e),r=(0,a.blobToFileObj)(n,t),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(t),displayURL:i,path:e,name:n,size:r.size,file:r,url:i}}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,r.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}persistEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.persistFiles(e.dataFiles,e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){try{await this.api.persistFiles([],[e],t);const{sha:n,path:r,fileObj:o}=e,a=URL.createObjectURL(o);return{id:n,name:o.name,size:o.size,displayURL:a,path:(0,i.default)(r,"/")}}catch(e){throw console.error(e),e}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}async traverseCursor(e,t){const n=e.meta,r=e.data.get("files").toJS();let i;switch(t){case"first":i=this.getCursorAndFiles(r,1);break;case"last":i=this.getCursorAndFiles(r,n.get("pageCount"));break;case"next":i=this.getCursorAndFiles(r,n.get("page")+1);break;case"prev":i=this.getCursorAndFiles(r,n.get("page")-1);break;default:i=this.getCursorAndFiles(r,1)}return{entries:await(0,a.entriesByFiles)(i.files,(e,t)=>this.api.readFile(e,t,{repoURL:this.api.originRepoURL}).catch(()=>""),this.api.readFileMetadata.bind(this.api),l.API_NAME),cursor:i.cursor}}async loadMediaFile(e,t){const n=await(0,a.getMediaAsBlob)(t.path,t.id,(t,n,r)=>{let{parseText:i}=r;return this.api.readFile(t,n,{branch:e,parseText:i})}),r=(0,a.basename)(t.path),i=(0,a.blobToFileObj)(r,n);return{id:t.id,displayURL:URL.createObjectURL(i),path:t.path,name:r,size:i.size,file:i}}async unpublishedEntries(){return await(0,a.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,a.contentKeyFromBranch)(e))))}async unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;if(t){return await this.api.retrieveUnpublishedEntryData(t)}if(n&&r){const e=this.api.generateContentKey(n,r);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=this.api.generateContentKey(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}}},function(e,t,n){var r=n(243);e.exports=function(e){return(null==e?0:e.length)?r(e,0,-1):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(123)),i=g(n(122)),o=n(667),a=n(755),s=n(756),l=n(669),u=n(40),c=g(n(1401)),d=m(n(449)),f=m(n(1402)),p=m(n(1403));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=new a.IntrospectionFragmentMatcher({introspectionQueryResultData:c.default});function w(e){return y(y({},e),{},{labels:e.labels.nodes,head:{ref:e.headRefName,sha:e.headRefOid,repo:{fork:e.repository.isFork}},base:{ref:e.baseRefName,sha:e.baseRefOid}})}class x extends d.default{constructor(e){super(e),b(this,"client",void 0),this.client=this.getApolloClient()}getApolloClient(){const e=(0,l.setContext)((e,t)=>{let{headers:n}=t;return{headers:y(y({"Content-Type":"application/json; charset=utf-8"},n),{},{authorization:this.token?"token "+this.token:""})}}),t=(0,s.createHttpLink)({uri:this.apiRoot+"/graphql"});return new o.ApolloClient({link:e.concat(t),cache:new a.InMemoryCache({fragmentMatcher:_}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}reset(){return this.client.resetStore()}async getRepository(e,t){const{data:n}=await this.query({query:f.repository,variables:{owner:e,name:t},fetchPolicy:"cache-first"});return n.repository}query(e){return this.client.query(e).catch(e=>{throw new u.APIError(e.message,500,"GitHub")})}async mutate(e){try{return await this.client.mutate(e)}catch(l){const c=l.graphQLErrors;if(Array.isArray(c)&&c.some(e=>"Ref cannot be created."===e.message)){var t,n;const i=(null==e||null===(t=e.variables)||void 0===t||null===(n=t.createRefInput)||void 0===n?void 0:n.name)||"",o=(0,r.default)(i,"refs/heads/");o&&await(0,u.throwOnConflictingBranches)(o,e=>this.getBranch(e),d.API_NAME)}else if(Array.isArray(c)&&c.some(e=>new RegExp(`A ref named "refs/heads/${u.CMS_BRANCH_PREFIX}/.+?" already exists in the repository.`).test(e.message))){var i,o,a,s;const t=(null==e||null===(i=e.variables)||void 0===i||null===(o=i.createRefInput)||void 0===o?void 0:o.name)||"",n=(null==e||null===(a=e.variables)||void 0===a||null===(s=a.createRefInput)||void 0===s?void 0:s.oid)||"",l=(0,r.default)(t,"refs/heads/");if(l&&l.startsWith(u.CMS_BRANCH_PREFIX+"/")&&n)try{await this.backupBranch(l),await this.deleteBranch(l);return await this.client.mutate(e)}catch(e){console.log(e)}}throw new u.APIError(l.message,500,"GitHub")}}async hasWriteAccess(){const{repoOwner:e,repoName:t}=this;try{const{data:n}=await this.query({query:f.repoPermission,variables:{owner:e,name:t},fetchPolicy:"cache-first"}),{viewerPermission:r}=n.repository;return["ADMIN","MAINTAIN","WRITE"].includes(r)}catch(e){throw console.error("Problem fetching repo data from GitHub"),e}}async user(){const{data:e}=await this.query({query:f.user,fetchPolicy:"cache-first"});return e.viewer}async retrieveBlobObject(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{data:i}=await this.query(y({query:f.blob,variables:{owner:e,name:t,expression:n}},r));if(i.repository.object){const{is_binary:e,text:t}=i.repository.object;return{isNull:!1,isBinary:e,text:t}}return{isNull:!0}}getOwnerAndNameFromRepoUrl(e){let{repoOwner:t,repoName:n}=this;return e===this.originRepoURL&&({originRepoOwner:t,originRepoName:n}=this),{owner:t,name:n}}async readFile(e,t){let{branch:n=this.branch,repoURL:r=this.repoURL,parseText:i=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t||(t=await this.getFileSha(e,{repoURL:r,branch:n}));return await(0,u.readFile)(t,()=>this.fetchBlobContent({sha:t,repoURL:r,parseText:i}),u.localForage,i)}async fetchBlobContent(e){let{sha:t,repoURL:n,parseText:r}=e;if(!r)return super.fetchBlobContent({sha:t,repoURL:n,parseText:r});const{owner:i,name:o}=this.getOwnerAndNameFromRepoUrl(n),{isNull:a,isBinary:s,text:l}=await this.retrieveBlobObject(i,o,t,{fetchPolicy:"cache-first"});if(a)throw new u.APIError("Not Found",404,"GitHub");return s?super.fetchBlobContent({sha:t,repoURL:n,parseText:r}):l}async getPullRequestAuthor(e){const t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.login)}async getPullRequests(e,t,n){const{originRepoOwner:r,originRepoName:i}=this;let o;o=t===d.PullRequestState.Open?["OPEN"]:t===d.PullRequestState.Closed?["CLOSED","MERGED"]:["OPEN","CLOSED","MERGED"];const{data:a}=await this.query({query:f.pullRequests,variables:y(y({owner:r,name:i},e?{head:e}:{}),{},{states:o})}),{pullRequests:s}=a.repository;return s.nodes.map(w).filter(e=>e.head.ref.startsWith(u.CMS_BRANCH_PREFIX+"/")&&n(e))}async getOpenAuthoringBranches(){const{repoOwner:e,repoName:t}=this,{data:n}=await this.query({query:f.openAuthoringBranches,variables:{owner:e,name:t,refPrefix:`refs/heads/cms/${this.repo}/`}});return n.repository.refs.nodes.map(e=>{let{name:t,prefix:n}=e;return{ref:`${n}${t}`}})}async getStatuses(e,t){const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=(await this.getBranchPullRequest(r)).head.sha,{originRepoOwner:o,originRepoName:a}=this,{data:s}=await this.query({query:f.statues,variables:{owner:o,name:a,sha:i}});if(s.repository.object){const{status:e}=s.repository.object,{contexts:t}=e||{contexts:[]};return t}return[]}getAllFiles(e,t){return e.reduce((e,n)=>{if("tree"===n.type){var r;const i=(null===(r=n.object)||void 0===r?void 0:r.entries)||[];return[...e,...this.getAllFiles(i,`${t}/${n.name}`)]}return"blob"===n.type?[...e,{name:n.name,type:n.type,id:n.sha,path:`${t}/${n.name}`,size:n.blob?n.blob.size:0}]:e},[])}async listFiles(e){let{repoURL:t=this.repoURL,branch:n=this.branch,depth:r=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{owner:o,name:a}=this.getOwnerAndNameFromRepoUrl(t),s=(0,i.default)(e,"/"),{data:l}=await this.query({query:f.files(r),variables:{owner:o,name:a,expression:`${n}:${s}`}});if(l.repository.object){return this.getAllFiles(l.repository.object.entries,s)}return[]}getBranchQualifiedName(e){return"refs/heads/"+e}getBranchQuery(e,t,n){return{query:f.branch,variables:{owner:t,name:n,qualifiedName:this.getBranchQualifiedName(e)}}}async getDefaultBranch(){const{data:e}=await this.query(y({},this.getBranchQuery(this.branch,this.originRepoOwner,this.originRepoName)));return e.repository.branch}async getBranch(e){const{data:t}=await this.query(y(y({},this.getBranchQuery(e,this.repoOwner,this.repoName)),{},{fetchPolicy:"cache-first"}));if(!t.repository.branch)throw new u.APIError("Branch not found",404,d.API_NAME);return t.repository.branch}async patchRef(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("heads"!==e)return super.patchRef(e,t,n,r);const i=r.force||!1,o=await this.getBranch(t),{data:a}=await this.mutate({mutation:p.updateBranch,variables:{input:{oid:n,refId:o.id,force:i}}});return a.updateRef.branch}async deleteBranch(e){const t=await this.getBranch(e),{data:n}=await this.mutate({mutation:p.deleteBranch,variables:{deleteRefInput:{refId:t.id}},update:e=>e.data.delete((0,a.defaultDataIdFromObject)(t))});return n.deleteRef}getPullRequestQuery(e){const{originRepoOwner:t,originRepoName:n}=this;return{query:f.pullRequest,variables:{owner:t,name:n,number:e}}}async getPullRequest(e){const{data:t}=await this.query(y(y({},this.getPullRequestQuery(e)),{},{fetchPolicy:"cache-first"})),n="OPEN"===t.repository.pullRequest.state?d.PullRequestState.Open:d.PullRequestState.Closed;return y(y({},t.repository.pullRequest),{},{state:n})}getPullRequestAndBranchQuery(e,t){const{repoOwner:n,repoName:r}=this,{originRepoOwner:i,originRepoName:o}=this;return{query:f.pullRequestAndBranch,variables:{owner:n,name:r,originRepoOwner:i,originRepoName:o,number:t,qualifiedName:this.getBranchQualifiedName(e)}}}async getPullRequestAndBranch(e,t){const{data:n}=await this.query(y(y({},this.getPullRequestAndBranchQuery(e,t)),{},{fetchPolicy:"cache-first"})),{repository:r,origin:i}=n;return{branch:r.branch,pullRequest:i.pullRequest}}async openPR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.reopenPullRequest,variables:{reopenPullRequestInput:{pullRequestId:t.id}},update:(e,t)=>{let{data:n}=t;const{pullRequest:r}=n.reopenPullRequest,i={repository:y(y({},r.repository),{},{pullRequest:r})};e.writeQuery(y(y({},this.getPullRequestQuery(r.number)),{},{data:i}))}});return n.reopenPullRequest}async closePR(e){const t=await this.getPullRequest(e),{data:n}=await this.mutate({mutation:p.closePullRequest,variables:{closePullRequestInput:{pullRequestId:t.id}},update:(e,t)=>{let{data:n}=t;const{pullRequest:r}=n.closePullRequest,i={repository:y(y({},r.repository),{},{pullRequest:r})};e.writeQuery(y(y({},this.getPullRequestQuery(r.number)),{},{data:i}))}});return n.closePullRequest}async deleteUnpublishedEntry(e,t){try{const n=this.generateContentKey(e,t),r=(0,u.branchFromContentKey)(n),i=await this.getBranchPullRequest(r);if(i.number!==d.MOCK_PULL_REQUEST){const{branch:e,pullRequest:t}=await this.getPullRequestAndBranch(r,i.number),{data:n}=await this.mutate({mutation:p.closePullRequestAndDeleteBranch,variables:{deleteRefInput:{refId:e.id},closePullRequestInput:{pullRequestId:t.id}},update:n=>{n.data.delete((0,a.defaultDataIdFromObject)(e)),n.data.delete((0,a.defaultDataIdFromObject)(t))}});return n.closePullRequest}return await this.deleteBranch(r)}catch(e){const{graphQLErrors:t}=e;if(t&&t.length>0){if(t.some(e=>"NOT_FOUND"===e.type))return}throw e}}async createPR(e,t){const[n,r]=await Promise.all([this.getRepository(this.originRepoOwner,this.originRepoName),this.useOpenAuthoring?`${(await this.user()).login}:${t}`:t]),{data:i}=await this.mutate({mutation:p.createPullRequest,variables:{createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:e,headRefName:r,repositoryId:n.id}},update:(e,t)=>{let{data:n}=t;const{pullRequest:r}=n.createPullRequest,i={repository:y(y({},r.repository),{},{pullRequest:r})};e.writeQuery(y(y({},this.getPullRequestQuery(r.number)),{},{data:i}))}}),{pullRequest:o}=i.createPullRequest;return y(y({},o),{},{head:{sha:o.headRefOid}})}async createBranch(e,t){const n=this.repoOwner,r=this.repoName,i=await this.getRepository(n,r),{data:o}=await this.mutate({mutation:p.createBranch,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:i.id}},update:(t,i)=>{let{data:o}=i;const{branch:a}=o.createRef,s={repository:y(y({},a.repository),{},{branch:a})};t.writeQuery(y(y({},this.getBranchQuery(e,n,r)),{},{data:s}))}}),{branch:a}=o.createRef;return y(y({},a),{},{ref:`${a.prefix}${a.name}`})}async createBranchAndPullRequest(e,t,n){const r=this.originRepoOwner,i=this.originRepoName,o=await this.getRepository(r,i),{data:a}=await this.mutate({mutation:p.createBranchAndPullRequest,variables:{createRefInput:{name:this.getBranchQualifiedName(e),oid:t,repositoryId:o.id},createPullRequestInput:{baseRefName:this.branch,body:u.DEFAULT_PR_BODY,title:n,headRefName:e,repositoryId:o.id}},update:(t,n)=>{let{data:o}=n;const{branch:a}=o.createRef,{pullRequest:s}=o.createPullRequest,l={repository:y(y({},a.repository),{},{branch:a})},u={repository:y(y({},s.repository),{},{branch:a}),origin:y(y({},s.repository),{},{pullRequest:s})};t.writeQuery(y(y({},this.getBranchQuery(e,r,i)),{},{data:l})),t.writeQuery(y(y({},this.getPullRequestAndBranchQuery(e,s.number)),{},{data:u}))}}),{pullRequest:s}=a.createPullRequest;return w(s)}async getFileSha(e){let{repoURL:t=this.repoURL,branch:n=this.branch}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{owner:r,name:i}=this.getOwnerAndNameFromRepoUrl(t),{data:o}=await this.query({query:f.fileSha,variables:{owner:r,name:i,expression:`${n}:${e}`}});if(o.repository.file)return o.repository.file.sha;throw new u.APIError("Not Found",404,d.API_NAME)}}t.default=x},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),c=l("observable"),d=l("species");function f(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:k}function h(e){return e instanceof k}function m(e){m.log?m.log(e):setTimeout((function(){throw e}))}function g(e){Promise.resolve().then((function(){try{e()}catch(e){m(e)}}))}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=f(t,"unsubscribe");n&&n.call(t)}}catch(e){m(e)}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e,t,n){e._state="running";var r=e._observer;try{var i=f(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(y(e),!i)throw n;i.call(r,n);break;case"complete":y(e),i&&i.call(r)}}catch(e){m(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function _(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void g((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(b(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void b(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new x(this);try{this._cleanup=n.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(y(this),v(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),x=function(){function e(t){r(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){_(this._subscription,"next",e)}},{key:"error",value:function(e){_(this._subscription,"error",e)}},{key:"complete",value:function(){_(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=p(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=p(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=f(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(s("iterator")&&(r=f(t,u)))return new n((function(e){g((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;if(e.next(l),e.closed)return}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){g((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){g((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:d,get:function(){return this}}]),e}();t.Observable=k,a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:c,hostReportError:m},configurable:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,i=(r=n(668))&&r.__esModule?r:{default:r};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.default)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var o=r.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,i=(r=n(1398))&&r.__esModule?r:{default:r};var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r=o(n(1399)),i=o(n(668));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},function(e,t,n){"use strict";function r(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function i(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),n=i(e);if(0!==n)for(var o=1;o<t.length;o++)t[o]=t[o].slice(n);var a=0;for(;a<t.length&&r(t[a]);)++a;var s=t.length;for(;s>a&&r(t[s-1]);)--s;return t.slice(a,s).join("\n")},t.getBlockStringIndentation=i,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,l="";!s||r&&i||(l+="\n"+t);l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n");return'"""'+l.replace(/"""/g,'\\"""')+'"""'}},function(e,t,n){"use strict";e.exports={__schema:{types:[{kind:"INTERFACE",name:"Node",possibleTypes:[{name:"AddedToProjectEvent"},{name:"App"},{name:"AssignedEvent"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"Blob"},{name:"Bot"},{name:"BranchProtectionRule"},{name:"ClosedEvent"},{name:"CodeOfConduct"},{name:"CommentDeletedEvent"},{name:"Commit"},{name:"CommitComment"},{name:"CommitCommentThread"},{name:"ConvertedNoteToIssueEvent"},{name:"CrossReferencedEvent"},{name:"DemilestonedEvent"},{name:"DeployKey"},{name:"DeployedEvent"},{name:"Deployment"},{name:"DeploymentEnvironmentChangedEvent"},{name:"DeploymentStatus"},{name:"ExternalIdentity"},{name:"Gist"},{name:"GistComment"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"Issue"},{name:"IssueComment"},{name:"Label"},{name:"LabeledEvent"},{name:"Language"},{name:"License"},{name:"LockedEvent"},{name:"Mannequin"},{name:"MarketplaceCategory"},{name:"MarketplaceListing"},{name:"MentionedEvent"},{name:"MergedEvent"},{name:"Milestone"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"Organization"},{name:"OrganizationIdentityProvider"},{name:"OrganizationInvitation"},{name:"PinnedEvent"},{name:"Project"},{name:"ProjectCard"},{name:"ProjectColumn"},{name:"PublicKey"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"},{name:"PullRequestReviewThread"},{name:"PushAllowance"},{name:"Reaction"},{name:"ReadyForReviewEvent"},{name:"Ref"},{name:"ReferencedEvent"},{name:"RegistryPackage"},{name:"RegistryPackageDependency"},{name:"RegistryPackageFile"},{name:"RegistryPackageTag"},{name:"RegistryPackageVersion"},{name:"Release"},{name:"ReleaseAsset"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"Repository"},{name:"RepositoryInvitation"},{name:"RepositoryTopic"},{name:"ReviewDismissalAllowance"},{name:"ReviewDismissedEvent"},{name:"ReviewRequest"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewRequestedEvent"},{name:"SavedReply"},{name:"SecurityAdvisory"},{name:"SponsorsListing"},{name:"Sponsorship"},{name:"Status"},{name:"StatusContext"},{name:"SubscribedEvent"},{name:"Tag"},{name:"Team"},{name:"Topic"},{name:"TransferredEvent"},{name:"Tree"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"},{name:"User"},{name:"UserBlockedEvent"},{name:"UserContentEdit"},{name:"UserStatus"}]},{kind:"INTERFACE",name:"UniformResourceLocatable",possibleTypes:[{name:"Bot"},{name:"ClosedEvent"},{name:"Commit"},{name:"CrossReferencedEvent"},{name:"Gist"},{name:"Issue"},{name:"Mannequin"},{name:"MergedEvent"},{name:"Milestone"},{name:"Organization"},{name:"PullRequest"},{name:"PullRequestCommit"},{name:"ReadyForReviewEvent"},{name:"Release"},{name:"Repository"},{name:"RepositoryTopic"},{name:"ReviewDismissedEvent"},{name:"User"}]},{kind:"INTERFACE",name:"Actor",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RegistryPackageOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"ProjectOwner",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"User"}]},{kind:"INTERFACE",name:"Closable",possibleTypes:[{name:"Issue"},{name:"Milestone"},{name:"Project"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Updatable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"Project"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"UNION",name:"ProjectCardItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Assignable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Comment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"UpdatableComment",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Labelable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"Lockable",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"INTERFACE",name:"RegistryPackageSearch",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"RepositoryOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"INTERFACE",name:"MemberStatusable",possibleTypes:[{name:"Organization"},{name:"Team"}]},{kind:"INTERFACE",name:"ProfileOwner",possibleTypes:[{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"PinnableItem",possibleTypes:[{name:"Gist"},{name:"Repository"}]},{kind:"INTERFACE",name:"Starrable",possibleTypes:[{name:"Gist"},{name:"Repository"},{name:"Topic"}]},{kind:"INTERFACE",name:"RepositoryInfo",possibleTypes:[{name:"Repository"}]},{kind:"INTERFACE",name:"GitObject",possibleTypes:[{name:"Blob"},{name:"Commit"},{name:"Tag"},{name:"Tree"}]},{kind:"INTERFACE",name:"RepositoryNode",possibleTypes:[{name:"CommitComment"},{name:"CommitCommentThread"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Subscribable",possibleTypes:[{name:"Commit"},{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Deletable",possibleTypes:[{name:"CommitComment"},{name:"GistComment"},{name:"IssueComment"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"Reactable",possibleTypes:[{name:"CommitComment"},{name:"Issue"},{name:"IssueComment"},{name:"PullRequest"},{name:"PullRequestReview"},{name:"PullRequestReviewComment"}]},{kind:"INTERFACE",name:"GitSignature",possibleTypes:[{name:"GpgSignature"},{name:"SmimeSignature"},{name:"UnknownSignature"}]},{kind:"UNION",name:"RequestedReviewer",possibleTypes:[{name:"User"},{name:"Team"},{name:"Mannequin"}]},{kind:"UNION",name:"PullRequestTimelineItem",possibleTypes:[{name:"Commit"},{name:"CommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestReviewComment"},{name:"IssueComment"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"MergedEvent"},{name:"ReferencedEvent"},{name:"CrossReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefRestoredEvent"},{name:"HeadRefForcePushedEvent"},{name:"BaseRefForcePushedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReviewDismissedEvent"},{name:"UserBlockedEvent"}]},{kind:"UNION",name:"Closer",possibleTypes:[{name:"Commit"},{name:"PullRequest"}]},{kind:"UNION",name:"ReferencedSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"Assignee",possibleTypes:[{name:"Bot"},{name:"Mannequin"},{name:"Organization"},{name:"User"}]},{kind:"UNION",name:"MilestoneItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"RenamedTitleSubject",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"PullRequestTimelineItems",possibleTypes:[{name:"PullRequestCommit"},{name:"PullRequestCommitCommentThread"},{name:"PullRequestReview"},{name:"PullRequestReviewThread"},{name:"PullRequestRevisionMarker"},{name:"BaseRefChangedEvent"},{name:"BaseRefForcePushedEvent"},{name:"DeployedEvent"},{name:"DeploymentEnvironmentChangedEvent"},{name:"HeadRefDeletedEvent"},{name:"HeadRefForcePushedEvent"},{name:"HeadRefRestoredEvent"},{name:"MergedEvent"},{name:"ReviewDismissedEvent"},{name:"ReviewRequestedEvent"},{name:"ReviewRequestRemovedEvent"},{name:"ReadyForReviewEvent"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"IssueOrPullRequest",possibleTypes:[{name:"Issue"},{name:"PullRequest"}]},{kind:"UNION",name:"IssueTimelineItem",possibleTypes:[{name:"Commit"},{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"ClosedEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"UnsubscribedEvent"},{name:"ReferencedEvent"},{name:"AssignedEvent"},{name:"UnassignedEvent"},{name:"LabeledEvent"},{name:"UnlabeledEvent"},{name:"UserBlockedEvent"},{name:"MilestonedEvent"},{name:"DemilestonedEvent"},{name:"RenamedTitleEvent"},{name:"LockedEvent"},{name:"UnlockedEvent"},{name:"TransferredEvent"}]},{kind:"UNION",name:"IssueTimelineItems",possibleTypes:[{name:"IssueComment"},{name:"CrossReferencedEvent"},{name:"AddedToProjectEvent"},{name:"AssignedEvent"},{name:"ClosedEvent"},{name:"CommentDeletedEvent"},{name:"ConvertedNoteToIssueEvent"},{name:"DemilestonedEvent"},{name:"LabeledEvent"},{name:"LockedEvent"},{name:"MentionedEvent"},{name:"MilestonedEvent"},{name:"MovedColumnsInProjectEvent"},{name:"PinnedEvent"},{name:"ReferencedEvent"},{name:"RemovedFromProjectEvent"},{name:"RenamedTitleEvent"},{name:"ReopenedEvent"},{name:"SubscribedEvent"},{name:"TransferredEvent"},{name:"UnassignedEvent"},{name:"UnlabeledEvent"},{name:"UnlockedEvent"},{name:"UserBlockedEvent"},{name:"UnpinnedEvent"},{name:"UnsubscribedEvent"}]},{kind:"UNION",name:"ReviewDismissalAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PushAllowanceActor",possibleTypes:[{name:"User"},{name:"Team"}]},{kind:"UNION",name:"PermissionGranter",possibleTypes:[{name:"Organization"},{name:"Repository"},{name:"Team"}]},{kind:"INTERFACE",name:"Sponsorable",possibleTypes:[{name:"User"}]},{kind:"INTERFACE",name:"Contribution",possibleTypes:[{name:"CreatedCommitContribution"},{name:"CreatedIssueContribution"},{name:"CreatedPullRequestContribution"},{name:"CreatedPullRequestReviewContribution"},{name:"CreatedRepositoryContribution"},{name:"JoinedGitHubContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedRepositoryOrRestrictedContribution",possibleTypes:[{name:"CreatedRepositoryContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedIssueOrRestrictedContribution",possibleTypes:[{name:"CreatedIssueContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"CreatedPullRequestOrRestrictedContribution",possibleTypes:[{name:"CreatedPullRequestContribution"},{name:"RestrictedContribution"}]},{kind:"UNION",name:"SearchResultItem",possibleTypes:[{name:"Issue"},{name:"PullRequest"},{name:"Repository"},{name:"User"},{name:"Organization"},{name:"MarketplaceListing"},{name:"App"}]},{kind:"UNION",name:"CollectionItemContent",possibleTypes:[{name:"Repository"},{name:"Organization"},{name:"User"}]}]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileSha=t.branch=t.blob=void 0,t.files=function(e){return r.gql`
query files($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(expression: $expression) {
${function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t="PLACE_HOLDER";let n=i.oneLine`
...ObjectParts
... on Tree {
entries {
...FileEntryParts
${t}
}
}
`;for(let r=0;r<e-1;r++)n=n.replace(t,i.oneLine`
object {
... on Tree {
entries {
...FileEntryParts
${t}
}
}
}
`);return n=n.replace(t,""),n}(e)}
}
}
}
${o.repository}
${o.object}
${o.fileEntry}
`},t.user=t.statues=t.repository=t.repoPermission=t.pullRequests=t.pullRequestAndBranch=t.pullRequest=t.openAuthoringBranches=void 0;var r=n(342),i=n(111),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(670));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}const s=r.gql`
query repoPermission($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
viewerPermission
}
}
${o.repository}
`;t.repoPermission=s;const l=r.gql`
query {
viewer {
id
avatar_url: avatarUrl
name
login
}
}
`;t.user=l;const u=r.gql`
query blob($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(expression: $expression) {
... on Blob {
...BlobWithTextParts
}
}
}
}
${o.repository}
${o.blobWithText}
`;t.blob=u;const c=r.gql`
query statues($owner: String!, $name: String!, $sha: GitObjectID!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
object(oid: $sha) {
...ObjectParts
... on Commit {
status {
id
contexts {
id
context
state
target_url: targetUrl
}
}
}
}
}
}
${o.repository}
${o.object}
`;t.statues=c;const d="\nbranch: ref(qualifiedName: $qualifiedName) {\n ...BranchParts\n}\n",f=r.gql`
query branch($owner: String!, $name: String!, $qualifiedName: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
${d}
}
}
${o.repository}
${o.branch}
`;t.branch=f;const p=r.gql`
query openAuthoringBranches($owner: String!, $name: String!, $refPrefix: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
refs(refPrefix: $refPrefix, last: 100) {
nodes {
...BranchParts
}
}
}
}
${o.repository}
${o.branch}
`;t.openAuthoringBranches=p;const h=r.gql`
query repository($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
}
}
${o.repository}
`;t.repository=h;const m=r.gql`
query pullRequest($owner: String!, $name: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
id
${"\npullRequest(number: $number) {\n ...PullRequestParts\n}\n"}
}
}
${o.pullRequest}
`;t.pullRequest=m;const g=r.gql`
query pullRequests($owner: String!, $name: String!, $head: String, $states: [PullRequestState!]) {
repository(owner: $owner, name: $name) {
id
pullRequests(last: 100, headRefName: $head, states: $states) {
nodes {
...PullRequestParts
}
}
}
}
${o.pullRequest}
`;t.pullRequests=g;const v=r.gql`
query pullRequestAndBranch($owner: String!, $name: String!, $originRepoOwner: String!, $originRepoName: String!, $qualifiedName: String!, $number: Int!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
${d}
}
origin: repository(owner: $originRepoOwner, name: $originRepoName) {
...RepositoryParts
${"\npullRequest(number: $number) {\n ...PullRequestParts\n}\n"}
}
}
${o.repository}
${o.branch}
${o.pullRequest}
`;t.pullRequestAndBranch=v;const y=r.gql`
query fileSha($owner: String!, $name: String!, $expression: String!) {
repository(owner: $owner, name: $name) {
...RepositoryParts
file: object(expression: $expression) {
...ObjectParts
}
}
}
${o.repository}
${o.object}
`;t.fileSha=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateBranch=t.reopenPullRequest=t.deleteBranch=t.createPullRequest=t.createBranchAndPullRequest=t.createBranch=t.closePullRequestAndDeleteBranch=t.closePullRequest=void 0;var r=n(342),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(670));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}const a=r.gql`
mutation updateRef($input: UpdateRefInput!) {
updateRef(input: $input) {
branch: ref {
...BranchParts
}
}
}
${i.branch}
`;t.updateBranch=a;const s=r.gql`
mutation deleteRef($deleteRefInput: DeleteRefInput!) {
${"\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n"}
}
`;t.deleteBranch=s;const l="\nclosePullRequest(input: $closePullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n",u=r.gql`
mutation closePullRequestAndDeleteBranch($closePullRequestInput: ClosePullRequestInput!) {
${l}
}
${i.pullRequest}
`;t.closePullRequest=u;const c=r.gql`
mutation closePullRequestAndDeleteBranch(
$closePullRequestInput: ClosePullRequestInput!
$deleteRefInput: DeleteRefInput!
) {
${l}
${"\ndeleteRef(input: $deleteRefInput) {\n clientMutationId\n}\n"}
}
${i.pullRequest}
`;t.closePullRequestAndDeleteBranch=c;const d="\n createPullRequest(input: $createPullRequestInput) {\n clientMutationId\n pullRequest {\n ...PullRequestParts\n }\n}\n ",f=r.gql`
mutation createPullRequest($createPullRequestInput: CreatePullRequestInput!) {
${d}
}
${i.pullRequest}
`;t.createPullRequest=f;const p=r.gql`
mutation createBranch($createRefInput: CreateRefInput!) {
createRef(input: $createRefInput) {
branch: ref {
...BranchParts
}
}
}
${i.branch}
`;t.createBranch=p;const h=r.gql`
mutation createBranchAndPullRequest(
$createRefInput: CreateRefInput!
$createPullRequestInput: CreatePullRequestInput!
) {
createRef(input: $createRefInput) {
branch: ref {
...BranchParts
}
}
${d}
}
${i.branch}
${i.pullRequest}
`;t.createBranchAndPullRequest=h;const m=r.gql`
mutation reopenPullRequest($reopenPullRequestInput: ReopenPullRequestInput!) {
reopenPullRequest(input: $reopenPullRequestInput) {
clientMutationId
pullRequest {
...PullRequestParts
}
}
}
${i.pullRequest}
`;t.reopenPullRequest=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(122)),i=d(n(123)),o=d(n(193)),a=n(111),s=n(40),l=d(n(671)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(672));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(this,"lock",void 0),h(this,"api",void 0),h(this,"options",void 0),h(this,"repo",void 0),h(this,"branch",void 0),h(this,"apiRoot",void 0),h(this,"token",void 0),h(this,"squashMerges",void 0),h(this,"cmsLabelPrefix",void 0),h(this,"mediaFolder",void 0),h(this,"previewContext",void 0),h(this,"useGraphQL",void 0),h(this,"graphQLAPIRoot",void 0),h(this,"_mediaDisplayURLSem",void 0),this.options=p({proxied:!1,API:null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The GitLab backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://gitlab.com/api/v4",this.token="",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder,this.previewContext=e.backend.preview_context||"",this.useGraphQL=e.backend.use_graphql||!1,this.graphQLAPIRoot=e.backend.graphql_api_root||"https://gitlab.com/api/graphql",this.lock=(0,s.asyncLock)()}isGitBackend(){return!0}async status(){var e;return{auth:{status:await(null===(e=this.api)||void 0===e?void 0:e.user().then(e=>!!e).catch(e=>(console.warn("Failed getting GitLab user",e),!1)))||!1},api:{status:!0,statusPage:""}}}authComponent(){return l.default}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.api=new u.default({token:this.token,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus,useGraphQL:this.useGraphQL,graphQLAPIRoot:this.graphQLAPIRoot});const t=await this.api.user();if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=a.stripIndent`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a GitLab account with access.
`,e}))throw new Error("Your GitLab user account does not have access to this repo.");return p(p({},t),{},{login:t.username,token:e.token})}async logout(){this.token=null}getToken(){return Promise.resolve(this.token)}filterFile(e,t,n,i){const o=(0,r.default)(t.path.split(e)[1]||"/","/");return(0,s.filterByExtension)(t,n)&&o.split("/").length<=i}async entriesByFolder(e,t,n){let r;const i=await(0,s.entriesByFolder)(()=>this.api.listFiles(e,n>1).then(i=>{let{files:o,cursor:a}=i;return r=a.mergeMeta({folder:e,extension:t,depth:n}),o.filter(r=>this.filterFile(e,r,t,n))}),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME);return i[s.CURSOR_COMPATIBILITY_SYMBOL]=r,i}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n>1)).filter(r=>this.filterFile(e,r,t,n))}async allEntriesByFolder(e,t,n){return await(0,s.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:this.api.readFile.bind(this.api),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:s.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>this.api.getDefaultBranch().then(e=>({name:e.name,sha:e.commit.id})),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>this.api.getFileId(e,this.branch),filterFile:r=>this.filterFile(e,r,t,n),customFetch:this.useGraphQL?e=>this.api.readFilesGraphQL(e):void 0})}entriesByFiles(e){return(0,s.entriesByFiles)(e,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;return this.api.listAllFiles(e).then(e=>e.map(e=>{let{id:t,name:n,path:r}=e;return{id:t,name:n,path:r,displayURL:{id:t,name:n,path:r}}}))}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,o.default)(10),(0,s.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,s.basename)(e),n=await(0,s.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,s.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,s.getBlobSHA)(n),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){return(0,s.runWithLock)(this.lock,()=>this.api.persistFiles(e.dataFiles,e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){const n=e.fileObj,[r]=await Promise.all([(0,s.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),{path:o}=e,a=URL.createObjectURL(n);return{displayURL:a,path:(0,i.default)(o,"/"),name:n.name,size:n.size,file:n,url:a,id:r}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async t=>{var n,r,i;let{entries:o,cursor:a}=t;const[l,c,d]=[null===(n=e.meta)||void 0===n?void 0:n.get("folder"),null===(r=e.meta)||void 0===r?void 0:r.get("depth"),null===(i=e.meta)||void 0===i?void 0:i.get("extension")];l&&c&&d&&(o=o.filter(e=>this.filterFile(l,e,d,c)),a=a.mergeMeta({folder:l,extension:d,depth:c}));return{entries:await(0,s.entriesByFiles)(o,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:a}})}loadMediaFile(e,t){return(0,s.getMediaAsBlob)(t.path,null,(t,n,r)=>{let{parseText:i}=r;return this.api.readFile(t,n,{branch:e,parseText:i})}).then(e=>{const n=(0,s.basename)(t.path),r=(0,s.blobToFileObj)(n,e);return{id:t.path,displayURL:URL.createObjectURL(r),path:t.path,name:n,size:r.size,file:r}})}async loadEntryMediaFiles(e,t){return await Promise.all(t.map(t=>this.loadMediaFile(e,t)))}async unpublishedEntries(){return await(0,s.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,s.contentKeyFromBranch)(e))))}async unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;if(t){return await this.api.retrieveUnpublishedEntryData(t)}if(n&&r){const e=(0,s.generateContentKey)(n,r);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,s.generateContentKey)(e,t);return(0,s.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(i,{path:n,id:r})}async updateUnpublishedEntryStatus(e,t,n){return(0,s.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,s.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,s.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.files=t.blobs=void 0,t.lastCommits=function(e){const t=e.map((e,t)=>i.oneLine`
tree${t}: tree(ref: $branch, path: "${e}") {
lastCommit {
authorName
authoredDate
author {
id
username
name
publicEmail
}
}
}
`).join("\n");return r.gql`
query lastCommits($repo: ID!, $branch: String!) {
project(fullPath: $repo) {
repository {
${t}
}
}
}
`};var r=n(342),i=n(111);const o=r.gql`
query files($repo: ID!, $branch: String!, $path: String!, $recursive: Boolean!, $cursor: String) {
project(fullPath: $repo) {
repository {
tree(ref: $branch, path: $path, recursive: $recursive) {
blobs(after: $cursor) {
nodes {
type
id: sha
path
name
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
}
}
`;t.files=o;const a=r.gql`
query blobs($repo: ID!, $branch: String!, $paths: [String!]!) {
project(fullPath: $repo) {
repository {
blobs(ref: $branch, paths: $paths) {
nodes {
id
data: rawBlob
}
}
}
}
}
`;t.blobs=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"GitGatewayBackend",{enumerable:!0,get:function(){return r.default}}),t.NetlifyCmsBackendGitGateway=void 0;var r=o(n(1407)),i=o(n(679));function o(e){return e&&e.__esModule?e:{default:e}}const a={GitGatewayBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendGitGateway=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(673)),i=v(n(180)),o=v(n(103)),a=v(n(1411)),s=v(n(1415)),l=v(n(1416)),u=n(40),c=n(448),d=n(450),f=n(675),p=v(n(1424)),h=v(n(1425)),m=v(n(679)),g=n(1426);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=["Git Gateway"],x={localhost:!0,"127.0.0.1":!0,"0.0.0.0":!0},k="/.netlify/identity",E="/.netlify/git",S="/.netlify/large-media";function O(e,t){if(x[document.location.host.split(":").shift()]&&t&&e.match(/^\/\.netlify\//)){const n=[];return t&&(n.push(t),t.match(/\/$/)||n.push("/")),n.push(e.replace(/^\//,"")),n.join("")}return e}let C=Promise.resolve();if(window.netlifyIdentity){let e=!1;C=Promise.race([new Promise(t=>{var n;null===(n=window.netlifyIdentity)||void 0===n||n.on("init",()=>{e=!0,t()})}),new Promise(e=>setTimeout(e,2500)).then(()=>{var t;e||(console.log("Manually initializing identity widget"),null===(t=window.netlifyIdentity)||void 0===t||t.init())})])}async function T(e){return await fetch("https://api.netlify.com/api/v1/sites/"+e).then(e=>e.json())}t.default=class{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_(this,"config",void 0),_(this,"api",void 0),_(this,"branch",void 0),_(this,"squashMerges",void 0),_(this,"cmsLabelPrefix",void 0),_(this,"mediaFolder",void 0),_(this,"transformImages",void 0),_(this,"gatewayUrl",void 0),_(this,"netlifyLargeMediaURL",void 0),_(this,"backendType",void 0),_(this,"apiUrl",void 0),_(this,"authClient",void 0),_(this,"backend",void 0),_(this,"acceptRoles",void 0),_(this,"tokenPromise",void 0),_(this,"_largeMediaClientPromise",void 0),_(this,"options",void 0),_(this,"requestFunction",e=>this.tokenPromise().then(t=>u.unsentRequest.withHeaders({Authorization:"Bearer "+t},e)).then(u.unsentRequest.performRequest)),this.options=b({proxied:!0,API:null,initialWorkflowStatus:""},n),this.config=e,this.branch=(null===(t=e.backend.branch)||void 0===t?void 0:t.trim())||"master",this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.mediaFolder=e.media_folder;const{use_large_media_transforms_in_media_library:r=!0}=e.backend;this.transformImages=r;const i=localStorage.getItem("netlifySiteURL");this.apiUrl=O(e.backend.identity_url||k,i),this.gatewayUrl=O(e.backend.gateway_url||E,i),this.netlifyLargeMediaURL=O(e.backend.large_media_url||S,i);const o=/\/(github|gitlab|bitbucket)\/?$/,a=this.gatewayUrl.match(o);a?(this.backendType=a[1],this.gatewayUrl=this.gatewayUrl.replace(o,"")):this.backendType=null,this.backend=null,m.default.authClient=()=>this.getAuthClient()}isGitBackend(){return!0}async status(){const e=await fetch("https://www.netlifystatus.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>w.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting Git Gateway status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.tokenPromise)||void 0===n?void 0:n.call(this).then(e=>!!e).catch(e=>(console.warn("Failed getting Identity token",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:"https://www.netlifystatus.com"}}}async getAuthClient(){if(this.authClient)return this.authClient;if(await C,window.netlifyIdentity)this.authClient={logout:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.logout()},currentUser:()=>{var e;return null===(e=window.netlifyIdentity)||void 0===e?void 0:e.currentUser()},clearStore:()=>{var e;const t=null===(e=window.netlifyIdentity)||void 0===e?void 0:e.store;t&&(t.user=null,t.modal.page="login",t.saving=!1)}};else{const e=new a.default({APIUrl:this.apiUrl});this.authClient={logout:()=>{const t=e.currentUser();if(t)return t.logout()},currentUser:()=>e.currentUser(),login:e.login.bind(e),clearStore:()=>{}}}return this.authClient}authenticate(e){const t=e;return this.tokenPromise=async()=>{try{const e=t.jwt.bind(t);return await e()}catch(e){throw new u.AccessTokenError("Failed getting access token: "+e.message)}},this.tokenPromise().then(async e=>{if(!this.backendType){const{github_enabled:t,gitlab_enabled:n,bitbucket_enabled:r,roles:i}=await u.unsentRequest.fetchWithTimeout(this.gatewayUrl+"/settings",{headers:{Authorization:"Bearer "+e}}).then(async e=>{const t=e.headers.get("Content-Type")||"";if(!t.includes("application/json")&&!t.includes("text/json"))throw new u.APIError("Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.",e.status,"Git Gateway");const n=await e.json();if(!e.ok)throw new u.APIError("Git Gateway Error: "+(n.message?n.message:n),e.status,"Git Gateway");return n});this.acceptRoles=i,t?this.backendType="github":n?this.backendType="gitlab":r&&(this.backendType="bitbucket")}if(this.acceptRoles&&this.acceptRoles.length>0){const t=(0,o.default)((0,s.default)(e),"app_metadata.roles",[]);if(!((0,r.default)(t,this.acceptRoles).length>0))throw new Error("You don't have sufficient permissions to access Netlify CMS")}const n={name:t.user_metadata.full_name||t.email.split("@").shift(),email:t.email,avatar_url:t.user_metadata.avatar_url,metadata:t.user_metadata},a={apiRoot:`${this.gatewayUrl}/${this.backendType}`,branch:this.branch,tokenPromise:this.tokenPromise,commitAuthor:(0,i.default)(n,["name","email"]),isLargeMedia:e=>this.isLargeMediaFile(e),squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus};if("github"===this.backendType?(this.api=new p.default(a),this.backend=new c.GitHubBackend(this.config,b(b({},this.options),{},{API:this.api}))):"gitlab"===this.backendType?(this.api=new h.default(a),this.backend=new d.GitLabBackend(this.config,b(b({},this.options),{},{API:this.api}))):"bitbucket"===this.backendType&&(this.api=new f.API(b(b({},a),{},{requestFunction:this.requestFunction,hasWriteAccess:async()=>!0})),this.backend=new f.BitbucketBackend(this.config,b(b({},this.options),{},{API:this.api}))),!await this.api.hasWriteAccess())throw new Error("You don't have sufficient permissions to access Netlify CMS");return{name:n.name,login:n.email}})}async restoreUser(){const e=(await this.getAuthClient()).currentUser();return e?this.authenticate(e):Promise.reject()}authComponent(){return m.default}async logout(){const e=await this.getAuthClient();try{e.logout()}catch(t){e.clearStore()}}getToken(){return this.tokenPromise()}async entriesByFolder(e,t,n){return this.backend.entriesByFolder(e,t,n)}allEntriesByFolder(e,t,n){return this.backend.allEntriesByFolder(e,t,n)}entriesByFiles(e){return this.backend.entriesByFiles(e)}getEntry(e){return this.backend.getEntry(e)}async unpublishedEntryDataFile(e,t,n,r){return this.backend.unpublishedEntryDataFile(e,t,n,r)}async isLargeMediaFile(e){const t=await this.getLargeMediaClient();return t.enabled&&t.matchPath(e)}async unpublishedEntryMediaFile(e,t,n,r){if(await this.isLargeMediaFile(n)){const i=this.backend.getBranch(e,t),{url:o,blob:a}=await this.getLargeMediaDisplayURL({path:n,id:r},i);return{id:r,name:(0,u.basename)(n),path:n,url:o,displayURL:o,file:new File([a],name),size:a.size}}return this.backend.unpublishedEntryMediaFile(e,t,n,r)}getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;return this.backend.getMedia(e)}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=this._getLargeMediaClient()),this._largeMediaClientPromise}_getLargeMediaClient(){const e=this.api.readFile(".lfsconfig").then(e=>l.default.decode(e)).then(e=>{let{lfs:{url:t}}=e;return new URL(t)}).then(e=>({enabled:e.hostname.endsWith("netlify.com")||e.hostname.endsWith("netlify.app")})).catch(e=>({enabled:!1,err:e})),t=this.api.readFile(".gitattributes").then(e=>(0,u.getLargeMediaPatternsFromGitAttributesFile)(e)).then(e=>({err:null,patterns:e})).catch(e=>e.message.includes("404")?(console.log("This 404 was expected and handled appropriately."),{err:null,patterns:[]}):{err:e,patterns:[]});return Promise.all([e,t]).then(e=>{let[{enabled:t},{patterns:n,err:r}]=e;const i=t&&!r;return t&&r&&console.error(r),(0,g.getClient)({enabled:i,rootURL:this.netlifyLargeMediaURL,makeAuthorizedRequest:this.requestFunction,patterns:n,transformImages:!!this.transformImages&&{nf_resize:"fit",w:560,h:320}})})}async getLargeMediaDisplayURL(e){let{path:t,id:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.branch;const i=(await(0,u.entriesByFiles)([{path:t,id:n}],(e,t,n)=>{let{parseText:i}=n;return this.api.readFile(e,t,{branch:r,parseText:i})},this.api.readFileMetadata.bind(this.api),"Git-Gateway"))[0],o=(0,u.parsePointerFile)(i.data);if(!o.sha)return console.warn("Failed parsing pointer file "+t),{url:t,blob:new Blob};const a=await this.getLargeMediaClient(),{url:s,blob:l}=await a.getDownloadURL(o);return{url:s,blob:l}}async getMediaDisplayURL(e){const{path:t,id:n}=e;if(await this.isLargeMediaFile(t)){const{url:e}=await this.getLargeMediaDisplayURL({path:t,id:n});return e}if("string"==typeof e)return e;return await this.backend.getMediaDisplayURL(e)}async getMediaFile(e){if(await this.isLargeMediaFile(e)){const{url:t,blob:n}=await this.getLargeMediaDisplayURL({path:e,id:null});return{id:t,name:(0,u.basename)(e),path:e,url:t,displayURL:t,file:new File([n],name),size:n.size}}return this.backend.getMediaFile(e)}async persistEntry(e,t){const n=await this.getLargeMediaClient();if(n.enabled){const r=await(0,u.getLargeMediaFilteredMediaFiles)(n,e.assets);return this.backend.persistEntry(b(b({},e),{},{assets:r}),t)}return this.backend.persistEntry(e,t)}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=URL.createObjectURL(n),o=await this.getLargeMediaClient(),a=r.startsWith("/")?r.slice(1):r;if(await this.isLargeMediaFile(a)){const e=await(0,u.getPointerFileForMediaFileObj)(o,n,r);return b(b({},await this.backend.persistMedia(e,t)),{},{displayURL:i})}return await this.backend.persistMedia(e,t)}deleteFiles(e,t){return this.backend.deleteFiles(e,t)}async getDeployPreview(e,t){let n=await this.backend.getDeployPreview(e,t);if(!n)try{const r=new URL(localStorage.getItem("netlifySiteURL")||"").hostname,i=await T(r),o=await T(i.id+"/deploys?per_page=100");if(o.length>0){const r=await this.api.getUnpublishedEntrySha(e,t),i=o.find(e=>e.commit_ref===r);i&&(n={status:"ready"===i.state?u.PreviewState.Success:u.PreviewState.Other,url:i.deploy_url})}}catch(e){}return n}unpublishedEntries(){return this.backend.unpublishedEntries()}unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;return this.backend.unpublishedEntry({id:t,collection:n,slug:r})}updateUnpublishedEntryStatus(e,t,n){return this.backend.updateUnpublishedEntryStatus(e,t,n)}deleteUnpublishedEntry(e,t){return this.backend.deleteUnpublishedEntry(e,t)}publishUnpublishedEntry(e,t){return this.backend.publishUnpublishedEntry(e,t)}traverseCursor(e,t){return this.backend.traverseCursor(e,t)}}},function(e,t,n){var r=n(292),i=n(301),o=n(397),a=n(143),s=n(190),l=n(293),u=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,g=[];p--;){var v=e[p];p&&t&&(v=a(v,s(t))),m=u(v.length,m),h[p]=!n&&(t||d>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var y=-1,b=h[0];e:for(;++y<d&&g.length<m;){var _=v[y],w=t?t(_):_;if(_=n||0!==_?_:0,!(b?l(b,w):c(g,w,n))){for(p=f;--p;){var x=h[p];if(!(x?l(x,w):c(e[p],w,n)))continue e}b&&b.push(w),g.push(_)}}return g}},function(e,t,n){var r=n(310);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(608),i=n(511);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(674)),a=(i=n(1413))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=/^http:\/\//,d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.APIUrl,r=void 0===n?"/.netlify/identity":n,i=t.audience,a=void 0===i?"":i,s=t.setCookie,u=void 0!==s&&s;l(this,e),r.match(c)&&console.warn("Warning:\n\nDO NOT USE HTTP IN PRODUCTION FOR GOTRUE EVER!\nGoTrue REQUIRES HTTPS to work securely."),a&&(this.audience=a),this.setCookie=u,this.api=new o.default(r)}var t,n,r;return t=e,(n=[{key:"_request",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.headers=t.headers||{};var n=t.audience||this.audience;return n&&(t.headers["X-JWT-AUD"]=n),this.api.request(e,t).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}},{key:"settings",value:function(){return this._request("/settings")}},{key:"signup",value:function(e,t,n){return this._request("/signup",{method:"POST",body:JSON.stringify({email:e,password:t,data:n})})}},{key:"login",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username=".concat(encodeURIComponent(e),"&password=").concat(encodeURIComponent(t))}).then((function(e){return a.default.removeSavedSession(),r.createUser(e,n)}))}},{key:"loginExternalUrl",value:function(e){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e)}},{key:"confirm",value:function(e,t){return this._setRememberHeaders(t),this.verify("signup",e,t)}},{key:"requestPasswordRecovery",value:function(e){return this._request("/recover",{method:"POST",body:JSON.stringify({email:e})})}},{key:"recover",value:function(e,t){return this._setRememberHeaders(t),this.verify("recovery",e,t)}},{key:"acceptInvite",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:e,password:t,type:"signup"})}).then((function(e){return r.createUser(e,n)}))}},{key:"acceptInviteExternalUrl",value:function(e,t){return"".concat(this.api.apiURL,"/authorize?provider=").concat(e,"&invite_token=").concat(t)}},{key:"createUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._setRememberHeaders(t);var n=new a.default(this.api,e,this.audience);return n.getUserData().then((function(e){return t&&e._saveSession(),e}))}},{key:"currentUser",value:function(){var e=a.default.recoverSession(this.api);return e&&this._setRememberHeaders(e._fromStorage),e}},{key:"verify",value:function(e,t,n){var r=this;return this._setRememberHeaders(n),this._request("/verify",{method:"POST",body:JSON.stringify({token:t,type:e})}).then((function(e){return r.createUser(e,n)}))}},{key:"_setRememberHeaders",value:function(e){this.setCookie&&(this.api.defaultHeaders=this.api.defaultHeaders||{},this.api.defaultHeaders["X-Use-Cookie"]=e?"1":"session")}}])&&u(t.prototype,n),r&&u(t,r),e}();t.default=d,"undefined"!=typeof window&&(window.GoTrue=d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.getPagination=function(e){var t=e.headers.get("Link"),n={};if(null==t)return null;t=t.split(",");for(var i=e.headers.get("X-Total-Count"),o=0,a=t.length;o<a;o++){var s=t[o].replace(/(^\s*|\s*$)/,"").split(";"),l=r(s,2),u=l[0],c=l[1],d=u.match(/page=(\d+)/),f=d&&parseInt(d[1],10);c.match(/last/)?n.last=f:c.match(/next/)?n.next=f:c.match(/prev/)?n.prev=f:c.match(/first/)&&(n.first=f)}return n.last=Math.max(n.last||0,n.prev&&n.prev+1||0),n.current=n.next?n.next-1:n.last||1,n.total=i?parseInt(i,10):null,n}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(674)),a=(i=n(1414))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f={},p=null,h={api:1,token:1,audience:1,url:1},m={api:1},g=function(){return"undefined"!=typeof window},v=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api=t,this.url=t.apiURL,this.audience=r,this._processTokenResponse(n),p=this}var t,n,r;return t=e,r=[{key:"removeSavedSession",value:function(){g()&&localStorage.removeItem("gotrue.user")}},{key:"recoverSession",value:function(t){if(p)return p;var n=g()&&localStorage.getItem("gotrue.user");if(n)try{var r=JSON.parse(n),i=r.url,a=r.token,s=r.audience;return i&&a?new e(t||new o.default(i,{}),a,s)._saveUserData(r,!0):null}catch(e){return console.error(new Error("Gotrue-js: Error recovering session: ".concat(e))),null}return null}}],(n=[{key:"update",value:function(e){var t=this;return this._request("/user",{method:"PUT",body:JSON.stringify(e)}).then((function(e){return t._saveUserData(e)._refreshSavedSession()}))}},{key:"jwt",value:function(e){var t=this.tokenDetails();if(null==t)return Promise.reject(new Error("Gotrue-js: failed getting jwt access token"));var n=t.expires_at,r=t.refresh_token,i=t.access_token;return e||n-6e4<Date.now()?this._refreshToken(r):Promise.resolve(i)}},{key:"logout",value:function(){return this._request("/logout",{method:"POST"}).then(this.clearSession.bind(this)).catch(this.clearSession.bind(this))}},{key:"_refreshToken",value:function(e){var t=this;return f[e]?f[e]:f[e]=this.api.request("/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=refresh_token&refresh_token=".concat(e)}).then((function(n){return delete f[e],t._processTokenResponse(n),t._refreshSavedSession(),t.token.access_token})).catch((function(n){return delete f[e],t.clearSession(),Promise.reject(n)}))}},{key:"_request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.headers=n.headers||{};var r=n.audience||this.audience;return r&&(n.headers["X-JWT-AUD"]=r),this.jwt().then((function(r){return t.api.request(e,u({headers:Object.assign(n.headers,{Authorization:"Bearer ".concat(r)})},n)).catch((function(e){return e instanceof o.JSONHTTPError&&e.json&&(e.json.msg?e.message=e.json.msg:e.json.error&&(e.message="".concat(e.json.error,": ").concat(e.json.error_description))),Promise.reject(e)}))}))}},{key:"getUserData",value:function(){return this._request("/user").then(this._saveUserData.bind(this)).then(this._refreshSavedSession.bind(this))}},{key:"_saveUserData",value:function(t,n){for(var r in t)r in e.prototype||r in h||(this[r]=t[r]);return n&&(this._fromStorage=!0),this}},{key:"_processTokenResponse",value:function(e){this.token=e;try{var t=JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}var n=window.atob(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}(e.access_token.split(".")[1]));this.token.expires_at=1e3*t.exp}catch(e){console.error(new Error("Gotrue-js: Failed to parse tokenResponse claims: ".concat(e)))}}},{key:"_refreshSavedSession",value:function(){return g()&&localStorage.getItem("gotrue.user")&&this._saveSession(),this}},{key:"_saveSession",value:function(){return g()&&localStorage.setItem("gotrue.user",JSON.stringify(this._details)),this}},{key:"tokenDetails",value:function(){return this.token}},{key:"clearSession",value:function(){e.removeSavedSession(),this.token=null,p=null}},{key:"admin",get:function(){return new a.default(this)}},{key:"_details",get:function(){var t={};for(var n in this)n in e.prototype||n in m||(t[n]=this[n]);return t}}])&&d(t.prototype,n),r&&d(t,r),e}();t.default=v},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.user=t}var t,n,i;return t=e,(n=[{key:"listUsers",value:function(e){return this.user._request("/admin/users",{method:"GET",audience:e})}},{key:"getUser",value:function(e){return this.user._request("/admin/users/".concat(e.id))}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.user._request("/admin/users/".concat(e.id),{method:"PUT",body:JSON.stringify(t)})}},{key:"createUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.email=e,n.password=t,this.user._request("/admin/users",{method:"POST",body:JSON.stringify(n)})}},{key:"deleteUser",value:function(e){return this.user._request("/admin/users/".concat(e.id),{method:"DELETE"})}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";function r(e){this.message=e}n.r(t),n.d(t,"InvalidTokenError",(function(){return a})),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},function(e,t,n){(function(t){const{hasOwnProperty:n}=Object.prototype,r=void 0!==t&&"win32"===t.platform?"\r\n":"\n",i=(e,t)=>{const n=[];let a="";"string"==typeof t?t={section:t,whitespace:!1}:(t=t||Object.create(null)).whitespace=!0===t.whitespace;const s=t.whitespace?" = ":"=";for(const t of Object.keys(e)){const i=e[t];if(i&&Array.isArray(i))for(const e of i)a+=l(t+"[]")+s+l(e)+"\n";else i&&"object"==typeof i?n.push(t):a+=l(t)+s+l(i)+r}t.section&&a.length&&(a="["+l(t.section)+"]"+r+a);for(const s of n){const n=o(s).join("\\."),l=(t.section?t.section+".":"")+n,{whitespace:u}=t,c=i(e[s],{section:l,whitespace:u});a.length&&c.length&&(a+=r),a+=c}return a},o=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(e=>e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),a=e=>{const t=Object.create(null);let r=t,i=null;const a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(const e of s){if(!e||e.match(/^\s*[;#]/))continue;const o=e.match(a);if(!o)continue;if(void 0!==o[1]){if(i=u(o[1]),"__proto__"===i){r=Object.create(null);continue}r=t[i]=t[i]||Object.create(null);continue}const s=u(o[2]),l=s.length>2&&"[]"===s.slice(-2),c=l?s.slice(0,-2):s;if("__proto__"===c)continue;const d=!o[3]||u(o[4]),f="true"===d||"false"===d||"null"===d?JSON.parse(d):d;l&&(n.call(r,c)?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]),Array.isArray(r[c])?r[c].push(f):r[c]=f}const l=[];for(const e of Object.keys(t)){if(!n.call(t,e)||"object"!=typeof t[e]||Array.isArray(t[e]))continue;const r=o(e);let i=t;const a=r.pop(),s=a.replace(/\\\./g,".");for(const e of r)"__proto__"!==e&&(n.call(i,e)&&"object"==typeof i[e]||(i[e]=Object.create(null)),i=i[e]);i===t&&s===a||(i[s]=t[e],l.push(e))}for(const e of l)delete t[e];return t},s=e=>'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1),l=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&s(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#"),u=(e,t)=>{if(e=(e||"").trim(),!s(e)){let t=!1,n="";for(let r=0,i=e.length;r<i;r++){const i=e.charAt(r);if(t)-1!=="\\;#".indexOf(i)?n+=i:n+="\\"+i,t=!1;else{if(-1!==";#".indexOf(i))break;"\\"===i?t=!0:n+=i}}return t&&(n+="\\"),n.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e};e.exports={parse:a,decode:a,stringify:i,encode:i,safe:l,unsafe:u}}).call(this,n(97))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(123)),i=f(n(193)),o=n(111),a=n(40),s=n(268),l=f(n(676)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(677)),c=n(1420);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g="https://bitbucket.status.atlassian.com",v=["API","Authentication and user management","Git LFS"];t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m(this,"lock",void 0),m(this,"api",void 0),m(this,"updateUserCredentials",void 0),m(this,"options",void 0),m(this,"repo",void 0),m(this,"branch",void 0),m(this,"apiRoot",void 0),m(this,"baseUrl",void 0),m(this,"siteId",void 0),m(this,"token",void 0),m(this,"mediaFolder",void 0),m(this,"refreshToken",void 0),m(this,"refreshedTokenPromise",void 0),m(this,"authenticator",void 0),m(this,"_mediaDisplayURLSem",void 0),m(this,"squashMerges",void 0),m(this,"cmsLabelPrefix",void 0),m(this,"previewContext",void 0),m(this,"largeMediaURL",void 0),m(this,"_largeMediaClientPromise",void 0),m(this,"authType",void 0),m(this,"requestFunction",async e=>{const t=await this.getToken(),n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e);return a.unsentRequest.performRequest(n)}),m(this,"apiRequestFunction",async e=>{const t=this.refreshedTokenPromise?await this.refreshedTokenPromise:this.token,n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e),r=await a.unsentRequest.performRequest(n);if(401===r.status){const t=await r.json().catch(()=>null);if(t&&"error"===t.type&&/^access token expired/i.test(t.error.message)){const t=await this.getRefreshedAccessToken(),n=a.unsentRequest.withHeaders({Authorization:"Bearer "+t},e);return a.unsentRequest.performRequest(n)}}return r}),this.options=h({proxied:!1,API:null,updateUserCredentials:async()=>null,initialWorkflowStatus:""},t),!this.options.proxied&&(null===e.backend.repo||void 0===e.backend.repo))throw new Error('The BitBucket backend needs a "repo" in the backend configuration.');this.api=this.options.API||null,this.updateUserCredentials=this.options.updateUserCredentials,this.repo=e.backend.repo||"",this.branch=e.backend.branch||"master",this.apiRoot=e.backend.api_root||"https://api.bitbucket.org/2.0",this.baseUrl=e.base_url||"",this.siteId=e.site_id||"",this.largeMediaURL=e.backend.large_media_url||`https://bitbucket.org/${e.backend.repo}/info/lfs`,this.token="",this.mediaFolder=e.media_folder,this.squashMerges=e.backend.squash_merges||!1,this.cmsLabelPrefix=e.backend.cms_label_prefix||"",this.previewContext=e.backend.preview_context||"",this.lock=(0,a.asyncLock)(),this.authType=e.backend.auth_type||""}isGitBackend(){return!0}async status(){const e=await fetch("https://bitbucket.status.atlassian.com/api/v2/components.json").then(e=>e.json()).then(e=>e.components.filter(e=>v.includes(e.name)).every(e=>"operational"===e.status)).catch(e=>(console.warn("Failed getting BitBucket status",e),!0));let t=!1;var n;e&&(t=await(null===(n=this.api)||void 0===n?void 0:n.user().then(e=>!!e).catch(e=>(console.warn("Failed getting Bitbucket user",e),!1)))||!1);return{auth:{status:t},api:{status:e,statusPage:g}}}authComponent(){return l.default}setUser(e){this.token=e.token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus})}restoreUser(e){return this.authenticate(e)}async authenticate(e){this.token=e.token,this.refreshToken=e.refresh_token,this.api=new u.default({requestFunction:this.apiRequestFunction,branch:this.branch,repo:this.repo,apiRoot:this.apiRoot,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus});if(!await this.api.hasWriteAccess().catch(e=>{throw e.message=o.stripIndent`
Repo "${this.repo}" not found.
Please ensure the repo information is spelled correctly.
If the repo is private, make sure you're logged into a Bitbucket account with access.
`,e}))throw new Error("Your BitBucket user account does not have access to this repo.");const t=await this.api.user();return h(h({},t),{},{name:t.display_name,login:t.username,token:e.token,avatar_url:t.links.avatar.href,refresh_token:e.refresh_token})}getRefreshedAccessToken(){if("implicit"===this.authType)throw new a.AccessTokenError("Can't refresh access token when using implicit auth");if(this.refreshedTokenPromise)return this.refreshedTokenPromise;if(!this.authenticator){const e={base_url:this.baseUrl,site_id:this.siteId};this.authenticator=new s.NetlifyAuthenticator(e)}return this.refreshedTokenPromise=this.authenticator.refresh({provider:"bitbucket",refresh_token:this.refreshToken}).then(e=>{let{token:t,refresh_token:n}=e;return this.token=t,this.refreshToken=n,this.refreshedTokenPromise=void 0,this.updateUserCredentials({token:t,refresh_token:n}),t}),this.refreshedTokenPromise}logout(){this.token=null}getToken(){return this.refreshedTokenPromise?this.refreshedTokenPromise:Promise.resolve(this.token)}async entriesByFolder(e,t,n){let r;const i=await this.api.defaultBranchCommitSha(),o=await(0,a.entriesByFolder)(()=>this.api.listFiles(e,n,20,this.branch).then(e=>{let{entries:n,cursor:i}=e;return r=i.mergeMeta({extension:t}),n.filter(e=>(0,a.filterByExtension)(e,t))}),(e,t)=>this.api.readFile(e,t,{head:i}),this.api.readFileMetadata.bind(this.api),u.API_NAME);return o[a.CURSOR_COMPATIBILITY_SYMBOL]=r,o}async listAllFiles(e,t,n){return(await this.api.listAllFiles(e,n,this.branch)).filter(e=>(0,a.filterByExtension)(e,t))}async allEntriesByFolder(e,t,n){const r=await this.api.defaultBranchCommitSha();return await(0,a.allEntriesByFolder)({listAllFiles:()=>this.listAllFiles(e,t,n),readFile:(e,t)=>this.api.readFile(e,t,{head:r}),readFileMetadata:this.api.readFileMetadata.bind(this.api),apiName:u.API_NAME,branch:this.branch,localForage:a.localForage,folder:e,extension:t,depth:n,getDefaultBranch:()=>Promise.resolve({name:this.branch,sha:r}),isShaExistsInBranch:this.api.isShaExistsInBranch.bind(this.api),getDifferences:(e,t)=>this.api.getDifferences(e,t),getFileId:e=>Promise.resolve(this.api.getFileId(r,e)),filterFile:e=>(0,a.filterByExtension)(e,t)})}async entriesByFiles(e){const t=await this.api.defaultBranchCommitSha();return(0,a.entriesByFiles)(e,(e,n)=>this.api.readFile(e,n,{head:t}),this.api.readFileMetadata.bind(this.api),u.API_NAME)}getEntry(e){return this.api.readFile(e).then(t=>({file:{path:e,id:null},data:t}))}getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;return this.api.listAllFiles(e,1,this.branch).then(e=>e.map(e=>{let{id:t,name:n,path:r}=e;return{id:t,name:n,path:r,displayURL:{id:t,path:r}}}))}getLargeMediaClient(){return this._largeMediaClientPromise||(this._largeMediaClientPromise=(async()=>{const e=await this.api.readFile(".gitattributes").then(e=>(0,a.getLargeMediaPatternsFromGitAttributesFile)(e)).catch(e=>(404===e.status?console.log("This 404 was expected and handled appropriately."):console.error(e),[]));return new c.GitLfsClient(!!(this.largeMediaURL&&e.length>0),this.largeMediaURL,e,this.requestFunction)})()),this._largeMediaClientPromise}getMediaDisplayURL(e){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||(0,i.default)(10),(0,a.getMediaDisplayURL)(e,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(e){const t=(0,a.basename)(e),n=await(0,a.getMediaAsBlob)(e,null,this.api.readFile.bind(this.api)),r=(0,a.blobToFileObj)(t,n),i=URL.createObjectURL(r);return{id:await(0,a.getBlobSHA)(r),displayURL:i,path:e,name:t,size:r.size,file:r,url:i}}async persistEntry(e,t){const n=await this.getLargeMediaClient();return(0,a.runWithLock)(this.lock,async()=>this.api.persistFiles(e.dataFiles,n.enabled?await(0,a.getLargeMediaFilteredMediaFiles)(n,e.assets):e.assets,t),"Failed to acquire persist entry lock")}async persistMedia(e,t){const{fileObj:n,path:r}=e,i=URL.createObjectURL(n),o=await this.getLargeMediaClient(),s=r.startsWith("/")?r.slice(1):r;if(!o.enabled||!o.matchPath(s))return this._persistMedia(e,t);const l=await(0,a.getPointerFileForMediaFileObj)(o,n,r);return h(h({},await this._persistMedia(l,t)),{},{displayURL:i})}async _persistMedia(e,t){const n=e.fileObj,[i]=await Promise.all([(0,a.getBlobSHA)(n),this.api.persistFiles([],[e],t)]),o=URL.createObjectURL(n);return{displayURL:o,path:(0,r.default)(e.path,"/k"),name:n.name,size:n.size,id:i,file:n,url:o}}deleteFiles(e,t){return this.api.deleteFiles(e,t)}traverseCursor(e,t){return this.api.traverseCursor(e,t).then(async t=>{var n;let{entries:r,cursor:i}=t;const o=null===(n=e.meta)||void 0===n?void 0:n.get("extension");o&&(r=r.filter(e=>(0,a.filterByExtension)(e,o)),i=i.mergeMeta({extension:o}));const s=await this.api.defaultBranchCommitSha();return{entries:await(0,a.entriesByFiles)(r,(e,t)=>this.api.readFile(e,t,{head:s}),this.api.readFileMetadata.bind(this.api),u.API_NAME),cursor:i}})}async loadMediaFile(e,t,n){let{branch:r}=n;const i=await(0,a.getMediaAsBlob)(e,t,async(e,t,n)=>{let{parseText:i}=n;return await this.api.readFile(e,t,{branch:r,parseText:i})}),o=(0,a.basename)(e),s=(0,a.blobToFileObj)(o,i);return{id:e,displayURL:URL.createObjectURL(s),path:e,name:o,size:s.size,file:s}}async unpublishedEntries(){return await(0,a.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(e=>e.map(e=>(0,a.contentKeyFromBranch)(e))))}async unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;if(t){return await this.api.retrieveUnpublishedEntryData(t)}if(n&&r){const e=(0,a.generateContentKey)(n,r);return await this.api.retrieveUnpublishedEntryData(e)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(e,t){const n=(0,a.generateContentKey)(e,t);return(0,a.branchFromContentKey)(n)}async unpublishedEntryDataFile(e,t,n,r){const i=this.getBranch(e,t);return await this.api.readFile(n,r,{branch:i})}async unpublishedEntryMediaFile(e,t,n,r){const i=this.getBranch(e,t);return await this.loadMediaFile(n,r,{branch:i})}async updateUnpublishedEntryStatus(e,t,n){return(0,a.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(e,t,n),"Failed to acquire update entry status lock")}async deleteUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(e,t),"Failed to acquire delete entry lock")}async publishUnpublishedEntry(e,t){return(0,a.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(e,t),"Failed to acquire publish entry lock")}async getDeployPreview(e,t){try{const n=await this.api.getStatuses(e,t),r=(0,a.getPreviewStatus)(n,this.previewContext);if(r){const{target_url:e,state:t}=r;return{url:e,status:t}}return null}catch(e){return null}}}},function(e,t,n){var r=n(1419);e.exports={parse:function(e){return r.parse(e.toString())}}},function(e,t,n){"use strict";function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}return"Expected "+function(e){var t,r,i,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(i=e[t],n[i.type](i));if(o.sort(),o.length>0){for(t=1,r=1;t<o.length;t++)o[t-1]!==o[t]&&(o[r]=o[t],r++);o.length=r}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:r,parse:function(e,t){t=void 0!==t?t:{};var n,i={},o={diffs:oe},a=oe,s=J("Binary files ",!1),l=J("diff --cc ",!1),u=J("* Unmerged path ",!1),c=J("--- ",!1),d=J("+++ ",!1),f=J("@@@ -",!1),p=J(" -",!1),h=J(" +",!1),m=J(" @@@",!1),g=J("@@ -",!1),v=J(" @@",!1),y=J(",",!1),b=J("+",!1),_=J("-",!1),w=J(" ",!1),x=J("\\",!1),k=function(e){return e.join("")},E=J("diff ",!1),S=J("similarity index ",!1),O=J("%",!1),C=J("new",!1),T=J("deleted",!1),A=J(" file mode ",!1),P=J("old mode ",!1),R=J("new mode ",!1),j=J("rename",!1),I=J("copy",!1),M=J(" from ",!1),L=function(e,t){return{operation:e,file:t}},D=J(" to ",!1),N=J("index ",!1),F=(ee([" ","\t"],!1,!1),J("\n",!1)),B=J("\r\n",!1),z={type:"any"},U=/^[^\r\n]/,q=ee(["\r","\n"],!0,!1),W=/^[^ \t\r\n]/,H=ee([" ","\t","\r","\n"],!0,!1),$=/^[0-9]/,V=ee([["0","9"]],!1,!1),G=0,K=[{line:1,column:1}],Y=0,Q=[],X=0,Z={};if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=o[t.startRule]}function J(e,t){return{type:"literal",text:e,ignoreCase:t}}function ee(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function te(t){var n,r=K[t];if(r)return r;for(n=t-1;!K[n];)n--;for(r={line:(r=K[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return K[t]=r,r}function ne(e,t){var n=te(e),r=te(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function re(e){G<Y||(G>Y&&(Y=G,Q=[]),Q.push(e))}function ie(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function oe(){var e,t,n,r=35*G+0,o=Z[r];if(o)return G=o.nextPos,o.result;for(e=G,t=[],n=ae();n!==i;)t.push(n),n=ae();return t!==i&&(e,t=t),e=t,Z[r]={nextPos:G,result:e},e}function ae(){var t,n=35*G+1,r=Z[n];return r?(G=r.nextPos,r.result):((t=function(){var e,t,n=35*G+5,r=Z[n];if(r)return G=r.nextPos,r.result;e=G,(t=le())!==i&&ve()!==i&&se()!==i?(e,t=ke(t,void 0,!0),e=t):(G=e,e=i);return Z[n]={nextPos:G,result:e},e}())===i&&(t=function(){var t,n,r,o,a,s,l,u,c=35*G+6,d=Z[c];if(d)return G=d.nextPos,d.result;t=G,(n=function(){var t,n,r,o,a,s,l=35*G+19,u=Z[l];if(u)return G=u.nextPos,u.result;t=G,"diff "===e.substr(G,5)?(n="diff ",G+=5):(n=i,0===X&&re(E));n!==i&&(r=_e())!==i?(32===e.charCodeAt(G)?(o=" ",G++):(o=i,0===X&&re(w)),o!==i&&(a=be())!==i&&(s=ye())!==i?t=n=[n,r,o,a,s]:(G=t,t=i)):(G=t,t=i);return Z[l]={nextPos:G,result:t},t}())!==i?((r=ge())===i&&(r=null),r!==i&&(o=function(){var t,n,r,o,a=35*G+21,s=Z[a];if(s)return G=s.nextPos,s.result;t=G,"similarity index "===e.substr(G,17)?(n="similarity index ",G+=17):(n=i,0===X&&re(S));n!==i&&(r=we())!==i?(37===e.charCodeAt(G)?(o="%",G++):(o=i,0===X&&re(O)),o!==i&&ye()!==i?(t,t=n=r):(G=t,t=i)):(G=t,t=i);return Z[a]={nextPos:G,result:t},t}())!==i&&(a=function(){var t,n,r,o,a=35*G+25,s=Z[a];if(s)return G=s.nextPos,s.result;t=G,"rename"===e.substr(G,6)?(n="rename",G+=6):(n=i,0===X&&re(j));n===i&&("copy"===e.substr(G,4)?(n="copy",G+=4):(n=i,0===X&&re(I)));n!==i?(" from "===e.substr(G,6)?(r=" from ",G+=6):(r=i,0===X&&re(M)),r!==i&&(o=be())!==i&&ye()!==i?(t,n=L(n,o),t=n):(G=t,t=i)):(G=t,t=i);return Z[a]={nextPos:G,result:t},t}())!==i&&(s=function(){var t,n,r,o,a=35*G+26,s=Z[a];if(s)return G=s.nextPos,s.result;t=G,"rename"===e.substr(G,6)?(n="rename",G+=6):(n=i,0===X&&re(j));n===i&&("copy"===e.substr(G,4)?(n="copy",G+=4):(n=i,0===X&&re(I)));n!==i?(" to "===e.substr(G,4)?(r=" to ",G+=4):(r=i,0===X&&re(D)),r!==i&&(o=be())!==i&&ye()!==i?(t,n=L(n,o),t=n):(G=t,t=i)):(G=t,t=i);return Z[a]={nextPos:G,result:t},t}())!==i?((l=ve())===i&&(l=null),l!==i?((u=se())===i&&(u=ue()),u===i&&(u=null),u!==i?(t,f=r,p=o,m=s,g=l,v=u,n=function(e,t,n,r,i,o){const a={oldPath:n,newPath:r,hunks:o?o.hunks:[],status:"copy"===e?"copied":"renamed",similarity:t};return i&&(a.oldMode=i.old_mode,a.newMode=i.new_mode),a}((h=a).operation,p,h.file,m.file,f||g,v),t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var f,p,h,m,g,v;return Z[c]={nextPos:G,result:t},t}())===i&&(t=function(){var e,t,n,r=35*G+7,o=Z[r];if(o)return G=o.nextPos,o.result;e=G,(t=le())!==i&&ve()!==i?((n=ue())===i&&(n=null),n!==i?(e,t=ke(t,n),e=t):(G=e,e=i)):(G=e,e=i);return Z[r]={nextPos:G,result:e},e}())===i&&(t=function(){var t,n,r,o=35*G+9,a=Z[o];if(a)return G=a.nextPos,a.result;t=G,"* Unmerged path "===e.substr(G,16)?(n="* Unmerged path ",G+=16):(n=i,0===X&&re(u));n!==i&&(r=be())!==i&&ye()!==i?(t,n=ke(r),t=n):(G=t,t=i);return Z[o]={nextPos:G,result:t},t}())===i&&(t=function(){var e,t,n,r,o=35*G+2,a=Z[o];if(a)return G=a.nextPos,a.result;e=G,(t=he())!==i?((n=me())===i&&(n=null),n!==i?((r=ce())===i&&(r=null),r!==i&&se()!==i?(e,t=xe(t,n,void 0,!0),e=t):(G=e,e=i)):(G=e,e=i)):(G=e,e=i);return Z[o]={nextPos:G,result:e},e}())===i&&(t=function(){var e,t,n,r,o=35*G+4,a=Z[o];if(a)return G=a.nextPos,a.result;e=G,(t=he())!==i?((n=me())===i&&(n=null),n!==i?((r=ue())===i&&(r=null),r!==i?(e,t=xe(t,n,r),e=t):(G=e,e=i)):(G=e,e=i)):(G=e,e=i);return Z[o]={nextPos:G,result:e},e}()),Z[n]={nextPos:G,result:t},t)}function se(){var t,n,r,o,a=35*G+3,l=Z[a];return l?(G=l.nextPos,l.result):(t=G,"Binary files "===e.substr(G,13)?(n="Binary files ",G+=13):(n=i,0===X&&re(s)),n!==i&&(r=be())!==i&&(o=ye())!==i?t=n=[n,r,o]:(G=t,t=i),Z[a]={nextPos:G,result:t},t)}function le(){var t,n,r,o=35*G+8,a=Z[o];return a?(G=a.nextPos,a.result):(t=G,"diff --cc "===e.substr(G,10)?(n="diff --cc ",G+=10):(n=i,0===X&&re(l)),n!==i&&(r=be())!==i&&ye()!==i?(t,t=n=r):(G=t,t=i),Z[o]={nextPos:G,result:t},t)}function ue(){var e,t,n,r=35*G+10,o=Z[r];if(o)return G=o.nextPos,o.result;if(e=G,ce()!==i){for(t=[],n=de();n!==i;)t.push(n),n=de();t!==i?(e,e={hunks:t}):(G=e,e=i)}else G=e,e=i;return Z[r]={nextPos:G,result:e},e}function ce(){var t,n,r,o,a,s=35*G+11,l=Z[s];return l?(G=l.nextPos,l.result):(t=G,"--- "===e.substr(G,4)?(n="--- ",G+=4):(n=i,0===X&&re(c)),n!==i&&(r=be())!==i&&ye()!==i?("+++ "===e.substr(G,4)?(o="+++ ",G+=4):(o=i,0===X&&re(d)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_file_name:r,new_file_name:a}):(G=t,t=i)):(G=t,t=i),Z[s]={nextPos:G,result:t},t)}function de(){var t,n,r,o,a,s,l=35*G+12,u=Z[l];if(u)return G=u.nextPos,u.result;if(t=G,(n=function(){var t,n=35*G+13,r=Z[n];if(r)return G=r.nextPos,r.result;(t=function(){var t,n,r,o,a,s,l,u,c,d=35*G+14,g=Z[d];if(g)return G=g.nextPos,g.result;t=G,"@@@ -"===e.substr(G,5)?(n="@@@ -",G+=5):(n=i,0===X&&re(f));n!==i&&(r=fe())!==i?(" -"===e.substr(G,2)?(o=" -",G+=2):(o=i,0===X&&re(p)),o!==i&&(a=fe())!==i?(" +"===e.substr(G,2)?(s=" +",G+=2):(s=i,0===X&&re(h)),s!==i&&(l=fe())!==i?(" @@@"===e.substr(G,4)?(u=" @@@",G+=4):(u=i,0===X&&re(m)),u!==i?((c=be())===i&&(c=null),c!==i&&ye()!==i?(t,y=a,b=l,_=c,n={ourStartLine:(v=r).start,ourLineCount:v.count,theirStartLine:b.start,theirLineCount:b.count,baseStartLine:y.start,baseLineCount:y.count,heading:_?_.trim():""},t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var v,y,b,_;return Z[d]={nextPos:G,result:t},t}())===i&&(t=function(){var t,n,r,o,a,s,l,u=35*G+15,c=Z[u];if(c)return G=c.nextPos,c.result;t=G,"@@ -"===e.substr(G,4)?(n="@@ -",G+=4):(n=i,0===X&&re(g));n!==i&&(r=fe())!==i?(" +"===e.substr(G,2)?(o=" +",G+=2):(o=i,0===X&&re(h)),o!==i&&(a=fe())!==i?(" @@"===e.substr(G,3)?(s=" @@",G+=3):(s=i,0===X&&re(v)),s!==i?((l=be())===i&&(l=null),l!==i&&ye()!==i?(t,f=a,p=l,n={oldStartLine:(d=r).start,oldLineCount:d.count,newStartLine:f.start,newLineCount:f.count,heading:p?p.trim():""},t=n):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i);var d,f,p;return Z[u]={nextPos:G,result:t},t}());return Z[n]={nextPos:G,result:t},t}())!==i){if(r=[],(o=pe())!==i)for(;o!==i;)r.push(o),o=pe();else r=i;r!==i?(t,a=n,s=r,t=n=Object.assign({},a,{lines:s})):(G=t,t=i)}else G=t,t=i;return Z[l]={nextPos:G,result:t},t}function fe(){var t,n,r,o,a=35*G+16,s=Z[a];return s?(G=s.nextPos,s.result):(t=G,(n=we())!==i?(44===e.charCodeAt(G)?(r=",",G++):(r=i,0===X&&re(y)),r!==i&&(o=we())!==i?(t,t=n={start:n,count:o}):(G=t,t=i)):(G=t,t=i),t===i&&(t=G,(n=we())!==i&&(t,n=function(e){return{start:e,count:1}}(n)),t=n),Z[a]={nextPos:G,result:t},t)}function pe(){var t,n,r,o,a=35*G+17,s=Z[a];return s?(G=s.nextPos,s.result):(t=G,n=G,43===e.charCodeAt(G)?(r="+",G++):(r=i,0===X&&re(b)),r===i&&(45===e.charCodeAt(G)?(r="-",G++):(r=i,0===X&&re(_)),r===i&&(32===e.charCodeAt(G)?(r=" ",G++):(r=i,0===X&&re(w)),r===i&&(92===e.charCodeAt(G)?(r="\\",G++):(r=i,0===X&&re(x))))),r!==i?((o=be())===i&&(o=null),o!==i?n=r=[r,o]:(G=n,n=i)):(G=n,n=i),n!==i&&(r=ye())!==i?(t,t=n=k(n)):(G=t,t=i),Z[a]={nextPos:G,result:t},t)}function he(){var t,n,r,o,a=35*G+18,s=Z[a];return s?(G=s.nextPos,s.result):(t=G,"diff "===e.substr(G,5)?(n="diff ",G+=5):(n=i,0===X&&re(E)),n!==i&&_e()!==i?(32===e.charCodeAt(G)?(r=" ",G++):(r=i,0===X&&re(w)),r!==i&&(o=function(){var e,t,n=35*G+20,r=Z[n];if(r)return G=r.nextPos,r.result;e=G,(t=be())!==i&&(e,t=(o=t).substr(o.length/2+1));var o;return e=t,Z[n]={nextPos:G,result:e},e}())!==i&&ye()!==i?(t,t=n={file_name:o}):(G=t,t=i)):(G=t,t=i),Z[a]={nextPos:G,result:t},t)}function me(){var t,n,r,o,a=35*G+22,s=Z[a];return s?(G=s.nextPos,s.result):(t=G,(n=function(){var t,n,r,o,a=35*G+23,s=Z[a];if(s)return G=s.nextPos,s.result;t=G,"new"===e.substr(G,3)?(n="new",G+=3):(n=i,0===X&&re(C));n===i&&("deleted"===e.substr(G,7)?(n="deleted",G+=7):(n=i,0===X&&re(T)));n!==i?(" file mode "===e.substr(G,11)?(r=" file mode ",G+=11):(r=i,0===X&&re(A)),r!==i&&(o=be())!==i&&ye()!==i?(t,l=o,t=n="new"===n?{old_mode:null,new_mode:l}:{old_mode:l,new_mode:null}):(G=t,t=i)):(G=t,t=i);var l;return Z[a]={nextPos:G,result:t},t}())===i&&(n=ge()),n===i&&(n=null),n!==i?((r=ve())===i&&(r=null),r!==i?(t,o=r,t=n=n||o):(G=t,t=i)):(G=t,t=i),Z[a]={nextPos:G,result:t},t)}function ge(){var t,n,r,o,a,s=35*G+24,l=Z[s];return l?(G=l.nextPos,l.result):(t=G,"old mode "===e.substr(G,9)?(n="old mode ",G+=9):(n=i,0===X&&re(P)),n!==i&&(r=be())!==i&&ye()!==i?("new mode "===e.substr(G,9)?(o="new mode ",G+=9):(o=i,0===X&&re(R)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_mode:r,new_mode:a}):(G=t,t=i)):(G=t,t=i),Z[s]={nextPos:G,result:t},t)}function ve(){var t,n,r,o,a,s,l=35*G+27,u=Z[l];return u?(G=u.nextPos,u.result):(t=G,"index "===e.substr(G,6)?(n="index ",G+=6):(n=i,0===X&&re(N)),n!==i&&(r=_e())!==i?(32===e.charCodeAt(G)?(o=" ",G++):(o=i,0===X&&re(w)),o!==i&&(a=be())!==i&&ye()!==i?(t,t=n={old_mode:s=a,new_mode:s}):(G=t,t=i)):(G=t,t=i),t===i&&(t=G,"index "===e.substr(G,6)?(n="index ",G+=6):(n=i,0===X&&re(N)),n!==i&&(r=_e())!==i&&(o=ye())!==i?t=n=[n,r,o]:(G=t,t=i)),Z[l]={nextPos:G,result:t},t)}function ye(){var t,n=35*G+29,r=Z[n];return r?(G=r.nextPos,r.result):(10===e.charCodeAt(G)?(t="\n",G++):(t=i,0===X&&re(F)),t===i&&("\r\n"===e.substr(G,2)?(t="\r\n",G+=2):(t=i,0===X&&re(B))),t===i&&(t=function(){var t,n,r=35*G+31,o=Z[r];if(o)return G=o.nextPos,o.result;t=G,X++,e.length>G?(n=e.charAt(G),G++):(n=i,0===X&&re(z));X--,n===i?t=void 0:(G=t,t=i);return Z[r]={nextPos:G,result:t},t}()),Z[n]={nextPos:G,result:t},t)}function be(){var t,n,r,o=35*G+32,a=Z[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],U.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(q)),r!==i)for(;r!==i;)n.push(r),U.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(q));else n=i;return n!==i&&(t,n=k(n)),t=n,Z[o]={nextPos:G,result:t},t}function _e(){var t,n,r,o=35*G+33,a=Z[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],W.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(H)),r!==i)for(;r!==i;)n.push(r),W.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(H));else n=i;return n!==i&&(t,n=k(n)),t=n,Z[o]={nextPos:G,result:t},t}function we(){var t,n,r,o=35*G+34,a=Z[o];if(a)return G=a.nextPos,a.result;if(t=G,n=[],$.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(V)),r!==i)for(;r!==i;)n.push(r),$.test(e.charAt(G))?(r=e.charAt(G),G++):(r=i,0===X&&re(V));else n=i;return n!==i&&(t,n=parseInt(n.join(""),10)),t=n,Z[o]={nextPos:G,result:t},t}function xe(e,t,n,r){if(t.old_mode&&!t.new_mode)return{newPath:null,oldPath:e.file_name,newMode:null,oldMode:t.old_mode,hunks:n?n.hunks:[],status:"deleted",binary:!!r};if(!t.old_mode&&t.new_mode)return{oldPath:null,newPath:e.file_name,oldMode:null,newMode:t.new_mode,hunks:n?n.hunks:[],status:"added",binary:!!r};if(t.old_mode&&t.new_mode)return{newPath:e.file_name,oldPath:e.file_name,oldMode:t.old_mode,newMode:t.new_mode,hunks:n?n.hunks:[],status:"modified",binary:!!r};throw new Error("file modes missing")}function ke(e,t,n){return(t=t||{}).filePath=e,t.status="unmerged",t.binary=!!n,t}if((n=a())!==i&&G===e.length)return n;throw n!==i&&G<e.length&&re({type:"end"}),ie(Q,Y<e.length?e.charAt(Y):null,Y<e.length?ne(Y,Y+1):ne(Y,Y))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GitLfsClient=void 0;var r,i=(r=n(678))&&r.__esModule?r:{default:r},o=n(40);const a=["sha"];function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{constructor(e,t,n,r){this.enabled=e,this.rootURL=t,this.patterns=n,this.makeAuthorizedRequest=r}matchPath(e){return this.patterns.some(t=>(0,i.default)(e,t,{matchBase:!0}))}async uploadResource(e,t){const n=await this.getResourceUploadRequests([e]);for(const e of n)await this.doUpload(e.actions.upload,t),e.actions.verify&&await this.doVerify(e.actions.verify,e);return e.sha}async doUpload(e,t){await o.unsentRequest.fetchWithTimeout(decodeURI(e.href),{method:"PUT",body:t,headers:e.header})}async doVerify(e,t){this.makeAuthorizedRequest({url:decodeURI(e.href),method:"POST",headers:u(u({},d.defaultContentHeaders),e.header),body:JSON.stringify({oid:t.oid,size:t.size})})}async getResourceUploadRequests(e){const t=await this.makeAuthorizedRequest({url:this.rootURL+"/objects/batch",method:"POST",headers:d.defaultContentHeaders,body:JSON.stringify({operation:"upload",transfers:["basic"],objects:e.map(e=>{let{sha:t}=e;return u(u({},s(e,a)),{},{oid:t})})})});return(await t.json()).objects.filter(e=>"error"in e?(console.error(e.error),!1):e.actions)}}t.GitLfsClient=d,c(d,"defaultContentHeaders",{Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"})},function(e,t,n){var r=n(1422),i=n(1423);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,n){var o=[],a=i("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var l,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),g=u||d,v=a.body.indexOf(",")>=0;if(!g&&!v)return a.post.match(/,.*\}/)?(t=a.pre+"{"+a.body+s+a.post,e(t)):[t];if(g)l=a.body.split(/\.\./);else{if(1===(l=function e(t){if(!t)return[""];var n=[],r=i("{","}",t);if(!r)return t.split(",");var o=r.pre,a=r.body,s=r.post,l=o.split(",");l[l.length-1]+="{"+a+"}";var u=e(s);s.length&&(l[l.length-1]+=u.shift(),l.push.apply(l,u));return n.push.apply(n,l),n}(a.body)).length)if(1===(l=e(l[0],!1).map(f)).length)return(_=a.post.length?e(a.post,!1):[""]).map((function(e){return a.pre+l[0]+e}))}var y,b=a.pre,_=a.post.length?e(a.post,!1):[""];if(g){var w=c(l[0]),x=c(l[1]),k=Math.max(l[0].length,l[1].length),E=3==l.length?Math.abs(c(l[2])):1,S=h;x<w&&(E*=-1,S=m);var O=l.some(p);y=[];for(var C=w;S(C,x);C+=E){var T;if(d)"\\"===(T=String.fromCharCode(C))&&(T="");else if(T=String(C),O){var A=k-T.length;if(A>0){var P=new Array(A+1).join("0");T=C<0?"-"+P+T.slice(1):P+T}}y.push(T)}}else y=r(l,(function(t){return e(t,!1)}));for(var R=0;R<y.length;R++)for(var j=0;j<_.length;j++){var I=b+y[R]+_[j];(!n||g||I)&&o.push(I)}return o}(function(e){return e.split("\\\\").join(o).split("\\{").join(a).split("\\}").join(s).split("\\,").join(l).split("\\.").join(u)}(e),!0).map(d)};var o="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(o).join("\\").split(a).join("{").split(s).join("}").split(l).join(",").split(u).join(".")}function f(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}},function(e,t){e.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var o=t(e[i],i);n(o)?r.push.apply(r,o):r.push(o)}return r};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t,n){e instanceof RegExp&&(e=i(e,n)),t instanceof RegExp&&(t=i(t,n));var r=o(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function i(e,t){var n=t.match(e);return n?n[0]:null}function o(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())<o&&(o=i,a=u),u=n.indexOf(t,c+1)),c=l<u&&l>=0?l:u;r.length&&(s=[o,a])}return s}e.exports=r,r.range=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(448),i=n(40);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.API{constructor(e){super(e),s(this,"tokenPromise",void 0),s(this,"commitAuthor",void 0),s(this,"isLargeMedia",void 0),this.apiRoot=e.apiRoot,this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.isLargeMedia=e.isLargeMedia,this.repoURL="",this.originRepoURL=""}hasWriteAccess(){return this.getDefaultBranch().then(()=>!0).catch(e=>{if(401===e.status){if("Bad credentials"===e.message)throw new i.APIError("Git Gateway Error: Please ask your site administrator to reissue the Git Gateway token.",e.status,"Git Gateway");return!1}throw 404!==e.status||void 0!==e.message&&"Unable to locate site configuration"!==e.message?(console.error("Problem fetching repo data from Git Gateway"),e):new i.APIError("Git Gateway Error: Please make sure Git Gateway is enabled on your site.",e.status,"Git Gateway")})}requestHeaders(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.tokenPromise().then(t=>a({Authorization:"Bearer "+t,"Content-Type":"application/json; charset=utf-8"},e))}handleRequestError(e,t){throw new i.APIError(e.message||e.msg,t,"Git Gateway")}user(){return Promise.resolve(a({login:""},this.commitAuthor))}async getHeadReference(e){if(!this.repoOwner){const e=(await this.getDefaultBranch())._links.self,t=new RegExp("https?://.+?/repos/(.+?)/"),n=e.match(t);this.repoOwner=n?n[1]:""}return super.getHeadReference(e)}commit(e,t){const n={message:e,tree:t.sha,parents:t.parentSha?[t.parentSha]:[]};return this.commitAuthor&&(n.author=a(a({},this.commitAuthor),{},{date:(new Date).toISOString()})),this.request("/git/commits",{method:"POST",body:JSON.stringify(n)})}nextUrlProcessor(){return e=>e.replace(/^(?:[a-z]+:\/\/.+?\/.+?\/.+?\/)/,this.apiRoot+"/")}async diffFromFile(e){const t=await super.diffFromFile(e);return a(a({},t),{},{binary:t.binary||await this.isLargeMedia(e.filename)})}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(450),i=n(40);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.API{constructor(e){super(e),o(this,"tokenPromise",void 0),o(this,"withAuthorizationHeaders",async e=>{const t=await this.tokenPromise();return i.unsentRequest.withHeaders({Authorization:"Bearer "+t},e)}),o(this,"hasWriteAccess",()=>Promise.resolve(!0)),this.tokenPromise=e.tokenPromise,this.commitAuthor=e.commitAuthor,this.repoURL=""}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=function(e){return(0,s.default)([Object.keys,(0,o.default)(t=>{return[t,(n=e,r=w[t],function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r(n,...t)})];var n,r}),a.default,t=>p(p({},t),{},{patterns:e.patterns,enabled:e.enabled})])(w)},t.matchPath=g;var r=d(n(135)),i=d(n(244)),o=d(n(406)),a=d(n(571)),s=d(n(572)),l=d(n(678)),u=n(40);const c=["sha"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){let{patterns:n}=e;return n.some(e=>(0,l.default)(t,e,{matchBase:!0}))}const v={Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"};async function y(e,t){let{rootURL:n,makeAuthorizedRequest:r}=e,{sha:i,size:o}=t;const a=await r({url:n+"/verify",method:"POST",headers:v,body:JSON.stringify({oid:i,size:o})});return!!a.ok||404!==a.status&&void 0}function b(e){return{operation:"upload",transfers:["basic"],objects:e.map(e=>{let{sha:t}=e;return p(p({},m(e,c)),{},{oid:t})})}}async function _(e,t){let{rootURL:n,makeAuthorizedRequest:r}=e;const i=await r({url:n+"/objects/batch",method:"POST",headers:v,body:JSON.stringify(b(t))}),{objects:o}=await i.json();return o.map(e=>{if(e.error)throw new Error(e.error.message);return e.actions.upload.href})}const w={resourceExists:y,getResourceUploadURLs:_,getDownloadURL:async function(e,t){let{rootURL:n,transformImages:o,makeAuthorizedRequest:a}=e,{sha:s}=t;try{const e=function(e){if((0,i.default)(e)&&!(0,r.default)(e)){const{nf_resize:t,w:n,h:r}=e;return`?nf_resize=${t}&w=${n}&h=${r}`}return""}(o),t=a(`${n}/origin/${s}${e}`),[l,u]=await Promise.all([t,e?a(`${n}/origin/${s}`):t]);if(!l.ok){const e=await l.json();throw new Error(`Failed getting large media for sha '${s}': '${e.code} - ${e.msg}'`)}const c=await l.blob();return{url:URL.createObjectURL(c),blob:e?await u.blob():c}}catch(e){return console.error(e),{url:"",blob:new Blob}}},uploadResource:async function(e,t,n){let{sha:r,size:i}=t;if(await y(e,{sha:r,size:i}))return r;const[o]=await _(e,[{sha:r,size:i}]);return await function(e,t){return u.unsentRequest.fetchWithTimeout(e,{method:"PUT",body:t})}(o,n),r},matchPath:g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsBackendTest=void 0,Object.defineProperty(t,"TestBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(1428)),i=o(n(681));function o(e){return e&&e.__esModule?e:{default:e}}const a={TestBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendTest=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFolderFiles=y;var r=f(n(135)),i=f(n(1429)),o=f(n(1431)),a=f(n(302)),s=f(n(548)),l=f(n(169)),u=n(40),c=n(98),d=f(n(681));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){const n=e.split("/");let r=t;for(;r&&n.length;)r=r[n.shift()];return r||{}}function m(e,t,n){const r=e.split("/");let i=n;for(;r.length>1;){const e=r.shift();i[e]=i[e]||{},i=i[e]}i[r.shift()]={content:t,path:e}}function g(e,t){(0,i.default)(t,e.split("/"))}window.repoFiles=window.repoFiles||{},window.repoFilesUnpublished=window.repoFilesUnpublished||[];function v(e,t,n,r,i){const o=n.length,a=Math.floor(o/10);return u.Cursor.create({actions:[...r<a?["next","last"]:[],...r>0?["prev","first"]:[]],meta:{index:r,count:o,pageSize:10,pageCount:a},data:{folder:e,extension:t,index:r,pageCount:a,depth:i}})}function y(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t;return r<=0||Object.keys(e[t]||{}).forEach(a=>{if(!(0,c.extname)(a)){return y(e[t],a,n,r-1,i,`${o}/${a}`)}{const r=e[t][a];n&&!a.endsWith("."+n)||i.unshift({content:r.content,path:`${o}/${a}`})}}),i}t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,"mediaFolder",void 0),p(this,"options",void 0),this.options=t,this.mediaFolder=e.media_folder}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return d.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}traverseCursor(e,t){const{folder:n,extension:r,index:i,pageCount:o,depth:a}=e.data.toObject(),s="next"===t?i+1:"prev"===t?i-1:"first"===t?0:"last"===t?o:0,l=y(window.repoFiles,n,r,a).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),u=l.slice(10*s,10*s+10),c=v(n,r,l,s,a);return Promise.resolve({entries:u,cursor:c})}entriesByFolder(e,t,n){const r=(e?y(window.repoFiles,e,t,n):[]).map(e=>({data:e.content,file:{path:e.path,id:e.path}})),i=v(e,t,r,0,n),a=(0,o.default)(r,10);return a[u.CURSOR_COMPATIBILITY_SYMBOL]=i,Promise.resolve(a)}entriesByFiles(e){return Promise.all(e.map(e=>({file:e,data:h(e.path,window.repoFiles).content})))}getEntry(e){return Promise.resolve({file:{path:e,id:null},data:h(e,window.repoFiles).content})}unpublishedEntries(){return Promise.resolve(Object.keys(window.repoFilesUnpublished))}unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;if(t){const e=t.split("/");n=e[0],r=e[1]}const i=window.repoFilesUnpublished[`${n}/${r}`];return i?Promise.resolve(i):Promise.reject(new u.EditorialWorkflowError("content is not under editorial workflow",!0))}async unpublishedEntryDataFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return null==r?void 0:r.content}async unpublishedEntryMediaFile(e,t,n){const r=window.repoFilesUnpublished[`${e}/${t}`].diffs.find(e=>e.path===n);return this.normalizeAsset(null==r?void 0:r.content)}deleteUnpublishedEntry(e,t){return delete window.repoFilesUnpublished[`${e}/${t}`],Promise.resolve()}async addOrUpdateUnpublishedEntry(e,t,n,i,o,a){const s=[];t.forEach(t=>{var n;const{path:i,newPath:o,raw:a}=t,l=null===(n=window.repoFilesUnpublished[e])||void 0===n?void 0:n.diffs.find(e=>e.path===i),u=l?l.originalPath:i;s.push({originalPath:u,id:o||i,path:o||i,newFile:(0,r.default)(h(u,window.repoFiles)),status:"added",content:a})}),n.forEach(e=>{const t=this.normalizeAsset(e);s.push({id:t.id,path:t.path,newFile:!0,status:"added",content:t})}),window.repoFilesUnpublished[e]={slug:i,collection:o,status:a,diffs:s,updatedAt:(new Date).toISOString()}}async persistEntry(e,t){if(t.useWorkflow){const n=e.dataFiles[0].slug,r=`${t.collectionName}/${n}`,i=window.repoFilesUnpublished[r],o=(null==i?void 0:i.status)||t.status||this.options.initialWorkflowStatus;return this.addOrUpdateUnpublishedEntry(r,e.dataFiles,e.assets,n,t.collectionName,o),Promise.resolve()}return e.dataFiles.forEach(e=>{const{path:t,raw:n}=e;m(t,n,window.repoFiles)}),e.assets.forEach(e=>{m(e.path,e,window.repoFiles)}),Promise.resolve()}updateUnpublishedEntryStatus(e,t,n){return window.repoFilesUnpublished[`${e}/${t}`].status=n,Promise.resolve()}publishUnpublishedEntry(e,t){const n=`${e}/${t}`,r=window.repoFilesUnpublished[n];delete window.repoFilesUnpublished[n];const i=window.repoFiles;return r.diffs.forEach(e=>{if(e.originalPath&&!e.newFile){const t=e.originalPath,n=(0,c.dirname)(t),r=(0,c.dirname)(e.path);y(i,t.split("/")[0],"",100).filter(e=>e.path.startsWith(n)).forEach(e=>{g(e.path,i),m(e.path.replace(n,r),e.content,i)})}m(e.path,e.content,i)}),Promise.resolve()}getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;const t=y(window.repoFiles,e.split("/")[0],"",100).filter(t=>t.path.startsWith(e)).map(e=>this.normalizeAsset(e.content));return Promise.resolve(t)}async getMediaFile(e){const t=h(e,window.repoFiles).content.toString(),n=(0,u.basename)(e),r=await fetch(t).then(e=>e.blob()),i=new File([r],n);return{id:t,displayURL:t,path:e,name:n,size:i.size,file:i,url:t}}normalizeAsset(e){const t=e.fileObj,{name:n,size:r}=t,i=(0,s.default)(window.URL.createObjectURL,t),o=(0,a.default)(i)?"":i;return{id:(0,l.default)(),name:n,size:r,path:e.path,url:o,displayURL:o,fileObj:t}}persistMedia(e){const t=this.normalizeAsset(e);return m(e.path,e,window.repoFiles),Promise.resolve(t)}deleteFiles(e){return e.forEach(e=>{g(e,window.repoFiles)}),Promise.resolve()}async getDeployPreview(){return null}}},function(e,t,n){var r=n(680);e.exports=function(e,t){return null==e||r(e,t)}},function(e,t,n){var r=n(240),i=n(243);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t,n){var r=n(243),i=n(134);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AuthenticationPage",{enumerable:!0,get:function(){return i.default}}),t.NetlifyCmsBackendProxy=void 0,Object.defineProperty(t,"ProxyBackend",{enumerable:!0,get:function(){return r.default}});var r=o(n(1433)),i=o(n(682));function o(e){return e&&e.__esModule?e:{default:e}}const a={ProxyBackend:r.default,AuthenticationPage:i.default};t.NetlifyCmsBackendProxy=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(40),o=(r=n(682))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function u(e){const t=await e.toBase64();return{path:e.path,content:t,encoding:"base64"}}function c(e){let{id:t,content:n,encoding:r,path:o,name:a}=e,s=new Uint8Array(0);if("base64"!==r)console.error(`Unsupported encoding '${r}' for file '${o}'`);else{const e=atob(n);s=new Uint8Array(e.length);for(let t=0;t<e.length;t++)s[t]=e.charCodeAt(t)}const l=new Blob([s]),u=(0,i.blobToFileObj)(a,l),c=URL.createObjectURL(u);return{id:t,name:a,path:o,file:u,size:u.size,url:c,displayURL:c}}t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l(this,"proxyUrl",void 0),l(this,"mediaFolder",void 0),l(this,"options",void 0),l(this,"branch",void 0),l(this,"cmsLabelPrefix",void 0),!e.backend.proxy_url)throw new Error('The Proxy backend needs a "proxy_url" in the backend configuration.');this.branch=e.backend.branch||"master",this.proxyUrl=e.backend.proxy_url,this.mediaFolder=e.media_folder,this.options=t,this.cmsLabelPrefix=e.backend.cms_label_prefix}isGitBackend(){return!1}status(){return Promise.resolve({auth:{status:!0},api:{status:!0,statusPage:""}})}authComponent(){return o.default}restoreUser(){return this.authenticate()}authenticate(){return Promise.resolve()}logout(){return null}getToken(){return Promise.resolve("")}async request(e){const t=await i.unsentRequest.fetchWithTimeout(this.proxyUrl,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(s({branch:this.branch},e))}),n=await t.json();if(t.ok)return n;throw new i.APIError(n.error,t.status,"Proxy")}entriesByFolder(e,t,n){return this.request({action:"entriesByFolder",params:{branch:this.branch,folder:e,extension:t,depth:n}})}entriesByFiles(e){return this.request({action:"entriesByFiles",params:{branch:this.branch,files:e}})}getEntry(e){return this.request({action:"getEntry",params:{branch:this.branch,path:e}})}unpublishedEntries(){return this.request({action:"unpublishedEntries",params:{branch:this.branch}})}async unpublishedEntry(e){let{id:t,collection:n,slug:r}=e;try{return await this.request({action:"unpublishedEntry",params:{branch:this.branch,id:t,collection:n,slug:r,cmsLabelPrefix:this.cmsLabelPrefix}})}catch(e){if(404===e.status)throw new i.EditorialWorkflowError("content is not under editorial workflow",!0);throw e}}async unpublishedEntryDataFile(e,t,n,r){const{data:i}=await this.request({action:"unpublishedEntryDataFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}});return i}async unpublishedEntryMediaFile(e,t,n,r){return c(await this.request({action:"unpublishedEntryMediaFile",params:{branch:this.branch,collection:e,slug:t,path:n,id:r}}))}deleteUnpublishedEntry(e,t){return this.request({action:"deleteUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async persistEntry(e,t){const n=await Promise.all(e.assets.map(u));return this.request({action:"persistEntry",params:{branch:this.branch,dataFiles:e.dataFiles,assets:n,options:s(s({},t),{},{status:t.status||this.options.initialWorkflowStatus}),cmsLabelPrefix:this.cmsLabelPrefix}})}updateUnpublishedEntryStatus(e,t,n){return this.request({action:"updateUnpublishedEntryStatus",params:{branch:this.branch,collection:e,slug:t,newStatus:n,cmsLabelPrefix:this.cmsLabelPrefix}})}publishUnpublishedEntry(e,t){return this.request({action:"publishUnpublishedEntry",params:{branch:this.branch,collection:e,slug:t}})}async getMedia(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaFolder;return(await this.request({action:"getMedia",params:{branch:this.branch,mediaFolder:e}})).map(c)}async getMediaFile(e){return c(await this.request({action:"getMediaFile",params:{branch:this.branch,path:e}}))}async persistMedia(e,t){const n=await u(e);return c(await this.request({action:"persistMedia",params:{branch:this.branch,asset:n,options:{commitMessage:t.commitMessage}}}))}deleteFiles(e,t){return this.request({action:"deleteFiles",params:{branch:this.branch,paths:e,options:{commitMessage:t}}})}getDeployPreview(e,t){return this.request({action:"getDeployPreview",params:{branch:this.branch,collection:e,slug:t}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetString=void 0;var r=o(n(1435)),i=o(n(1436));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({name:"string",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetString=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),i=a(n(2)),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.Component{constructor(){super(...arguments),s(this,"_sel",0),s(this,"_el",null),s(this,"handleChange",e=>{this._sel=e.target.selectionStart,this.props.onChange(e.target.value)})}componentDidUpdate(){this._el&&this._el.selectionStart!==this._sel&&this._el.setSelectionRange(this._sel,this._sel)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,setInactiveStyle:i}=this.props;return(0,o.jsx)("input",{ref:e=>{this._el=e},type:"text",id:e,className:n,value:t||"",onChange:this.handleChange,onFocus:r,onBlur:i})}}t.default=l,s(l,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),s(l,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t)}s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetNumber=void 0;var r=a(n(1438)),i=a(n(1439)),o=a(n(1440));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"number",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetNumber=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.validateMinMax=c;var r=s(n(0)),i=s(n(2)),o=s(n(33)),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u="RANGE";function c(e,t,n,r,i){let o;switch(!0){case""!==e&&!1!==t&&!1!==n&&(e<t||e>n):o={type:u,message:i("editor.editorControlPane.widget.range",{fieldLabel:r.get("label",r.get("name")),minValue:t,maxValue:n})};break;case""!==e&&!1!==t&&e<t:o={type:u,message:i("editor.editorControlPane.widget.min",{fieldLabel:r.get("label",r.get("name")),minValue:t})};break;case""!==e&&!1!==n&&e>n:o={type:u,message:i("editor.editorControlPane.widget.max",{fieldLabel:r.get("label",r.get("name")),maxValue:n})};break;default:o=null}return o}class d extends r.default.Component{constructor(){super(...arguments),l(this,"handleChange",e=>{const t=this.props.field.get("value_type"),{onChange:n}=this.props,r="float"===t?parseFloat(e.target.value):parseInt(e.target.value,10);isNaN(r)?n(""):n(r)}),l(this,"isValid",()=>{const{field:e,value:t,t:n}=this.props,r=!!e.get("pattern",!1),i=e.get("min",!1),o=e.get("max",!1);if(r)return!0;const a=c(t,i,o,e,n);return!a||{error:a}})}render(){const{field:e,value:t,classNameWrapper:n,forID:r,setActiveStyle:i,setInactiveStyle:o}=this.props,s=e.get("min",""),l=e.get("max",""),u=e.get("step","int"===e.get("value_type")?1:"");return(0,a.jsx)("input",{type:"number",id:r,className:n,onFocus:i,onBlur:o,value:t||(0===t?t:""),step:u,min:s,max:l,onChange:this.handleChange})}}t.default=d,l(d,"propTypes",{field:o.default.map.isRequired,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.node,forID:i.default.string,valueType:i.default.string,step:i.default.number,min:i.default.number,max:i.default.number,t:i.default.func.isRequired}),l(d,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t)}s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{step:{type:"number"},value_type:{type:"string"},min:{type:"number"},max:{type:"number"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetText=void 0;var r=o(n(1442)),i=o(n(1443));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({name:"text",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetText=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),i=s(n(2)),o=s(n(1930)),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"1feyfsx-TextControl",styles:"font-family:inherit;;label:TextControl;"};class c extends r.default.Component{shouldComponentUpdate(){return!0}render(){const{forID:e,value:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:s}=this.props;return(0,a.jsx)(o.default,{id:e,value:t||"",className:r,onFocus:i,onBlur:s,minRows:5,css:u,onChange:e=>n(e.target.value)})}}t.default=c,l(c,"propTypes",{onChange:i.default.func.isRequired,forID:i.default.string,value:i.default.node,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired}),l(c,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t)}s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetImage=void 0;var r=a(n(683)),i=a(n(1449)),o=a(n(1450));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=r.default.withFileControl({forImage:!0});const d={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"image",controlComponent:c,previewComponent:i.default,schema:o.default},e)},controlComponent:c,previewComponent:i.default};t.NetlifyCmsWidgetImage=d;var f=d;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e;let{forImage:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=class extends o.default.Component{constructor(e){super(e),v(this,"handleChange",e=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props;e.preventDefault();const o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:t,privateUpload:n.get("private"),value:M(i),allowMultiple:!!o.get("allow_multiple",!0),config:o.get("config"),field:n})}),v(this,"handleUrl",e=>t=>{t.preventDefault();const n=window.prompt(this.props.t(`editor.editorWidgets.${e}.promptUrl`));return this.props.onChange(n)}),v(this,"handleRemove",e=>(e.preventDefault(),this.props.onClearMediaControl(this.controlID),this.props.onChange(""))),v(this,"onRemoveOne",e=>()=>{const{value:t}=this.props;return t.splice(e,1),this.props.onChange(I(t)>0?[...t]:null)}),v(this,"onReplaceOne",e=>()=>{const{field:n,onOpenMediaLibrary:r,value:i}=this.props,o=this.getMediaLibraryFieldOptions();return r({controlID:this.controlID,forImage:t,privateUpload:n.get("private"),value:M(i),replaceIndex:e,allowMultiple:!1,config:o.get("config"),field:n})}),v(this,"getMediaLibraryFieldOptions",()=>{const{field:e}=this.props;return e.hasIn(["options","media_library"])?(L(e),e.getIn(["options","media_library"],(0,u.Map)())):e.get("media_library",(0,u.Map)())}),v(this,"allowsMultiple",()=>{const e=this.getMediaLibraryFieldOptions();return e.get("config",!1)&&e.get("config").get("multiple",!1)}),v(this,"onSortEnd",e=>{let{oldIndex:t,newIndex:n}=e;const{value:r}=this.props,i=(0,m.arrayMoveImmutable)(r,t,n);return this.props.onChange(i)}),v(this,"getValidateValue",()=>{const{value:e}=this.props;return e?j(e)?e.map(e=>(0,p.basename)(e)):(0,p.basename)(e):e}),v(this,"renderFileLink",e=>{if(!e||e.length<=50)return e;const t=`${e.slice(0,25)}…${e.slice(-24)}`;return(0,l.jsx)(C,{href:e,rel:"noopener",target:"_blank"},t)}),v(this,"renderFileLinks",()=>{const{value:e}=this.props;return j(e)?(0,l.jsx)(T,null,(0,l.jsx)(A,null,e.map(e=>(0,l.jsx)("li",{key:e},this.renderFileLink(e))))):(0,l.jsx)(T,null,this.renderFileLink(e))}),v(this,"renderImages",()=>{const{getAsset:e,value:t,field:n}=this.props;if(j(t))return(0,l.jsx)(O,{items:t,onSortEnd:this.onSortEnd,onRemoveOne:this.onRemoveOne,onReplaceOne:this.onReplaceOne,distance:4,getAsset:e,field:n,axis:"xy",lockToContainerEdges:!0});const r=e(t,n);return(0,l.jsx)(b,null,(0,l.jsx)(x,{src:r||""}))}),v(this,"renderSelection",e=>{const{t:n,field:r}=this.props,i=this.allowsMultiple();return(0,l.jsx)("div",null,t?this.renderImages():null,(0,l.jsx)("div",null,t?null:this.renderFileLinks(),(0,l.jsx)(P,{onClick:this.handleChange},n(`editor.editorWidgets.${e}.${this.allowsMultiple()?"addMore":"chooseDifferent"}`)),r.get("choose_url",!0)&&!this.allowsMultiple()?(0,l.jsx)(P,{onClick:this.handleUrl(e)},n(`editor.editorWidgets.${e}.replaceUrl`)):null,(0,l.jsx)(R,{onClick:this.handleRemove},n(`editor.editorWidgets.${e}.remove${i?"All":""}`))))}),v(this,"renderNoSelection",e=>{const{t:t,field:n}=this.props;return(0,l.jsx)(o.default.Fragment,null,(0,l.jsx)(P,{onClick:this.handleChange},t(`editor.editorWidgets.${e}.choose${this.allowsMultiple()?"Multiple":""}`)),n.get("choose_url",!0)?(0,l.jsx)(P,{onClick:this.handleUrl(e)},t(`editor.editorWidgets.${e}.chooseUrl`)):null)}),this.controlID=(0,c.default)()}shouldComponentUpdate(e){if(this.props.value!==e.value||this.props.getAsset!==e.getAsset)return!0;const t=e.mediaPaths.get(this.controlID);return!(!t||e.value===t)}componentDidUpdate(){const{mediaPaths:e,value:t,onRemoveInsertedMedia:n,onChange:r}=this.props,i=e.get(this.controlID);i&&i!==t?r(i):i&&i===t&&n(this.controlID)}componentWillUnmount(){this.props.onRemoveMediaControl(this.controlID)}render(){const{value:e,classNameWrapper:n}=this.props,r=t?"image":"file";return(0,l.jsx)("div",{className:n},(0,l.jsx)("span",null,e?this.renderSelection(r):this.renderNoSelection(r)))}},v(e,"propTypes",{field:a.default.object.isRequired,getAsset:a.default.func.isRequired,mediaPaths:s.default.map.isRequired,onAddAsset:a.default.func.isRequired,onChange:a.default.func.isRequired,onRemoveInsertedMedia:a.default.func.isRequired,onOpenMediaLibrary:a.default.func.isRequired,onClearMediaControl:a.default.func.isRequired,onRemoveMediaControl:a.default.func.isRequired,classNameWrapper:a.default.string.isRequired,value:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string),s.default.listOf(a.default.string)]),t:a.default.func.isRequired}),v(e,"defaultProps",{value:""}),e};var r=g(n(21)),i=g(n(318)),o=g(n(0)),a=g(n(2)),s=g(n(33)),l=n(9),u=n(4),c=g(n(169)),d=n(111),f=n(17),p=n(40),h=n(473),m=n(1446);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const b=(0,r.default)("div",{target:"e1awjdnj0",label:"ImageWrapper"})("flex-basis:155px;width:155px;height:100px;margin-right:20px;margin-bottom:20px;border:",f.borders.textField,";border-radius:",f.lengths.borderRadius,";overflow:hidden;",f.effects.checkerboard,";",f.shadows.inset,";cursor:",e=>e.sortable?"pointer":"auto",";"),_=(0,r.default)("div",{target:"e1awjdnj1",label:"SortableImageButtonsWrapper"})({name:"1qg97th",styles:"display:flex;justify-content:center;column-gap:10px;margin-right:20px;margin-top:-10px;margin-bottom:10px;"}),w=(0,r.default)("img",{target:"e1awjdnj2",label:"StyledImage"})({name:"r91awh",styles:"width:100%;height:100%;object-fit:contain;"});function x(e){return(0,l.jsx)(w,y({role:"presentation"},e))}function k(e){let{onRemove:t,onReplace:n}=e;return(0,l.jsx)(_,null,(0,l.jsx)(f.IconButton,{size:"small",type:"media",onClick:n}),(0,l.jsx)(f.IconButton,{size:"small",type:"close",onClick:t}))}const E=(0,h.SortableElement)(e=>{let{itemValue:t,getAsset:n,field:r,onRemove:i,onReplace:o}=e;return(0,l.jsx)("div",null,(0,l.jsx)(b,{sortable:!0},(0,l.jsx)(x,{src:n(t,r)||""})),(0,l.jsx)(k,{item:t,onRemove:i,onReplace:o}))});var S={name:"e1mylu-SortableMultiImageWrapper",styles:"display:flex;flex-wrap:wrap;;label:SortableMultiImageWrapper;"};const O=(0,h.SortableContainer)(e=>{let{items:t,getAsset:n,field:r,onRemoveOne:i,onReplaceOne:o}=e;return(0,l.jsx)("div",{css:S},t.map((e,t)=>(0,l.jsx)(E,{key:"item-"+e,index:t,itemValue:e,getAsset:n,field:r,onRemove:i(t),onReplace:o(t)})))}),C=(0,r.default)("a",{target:"e1awjdnj3",label:"FileLink"})({name:"7mbjrw",styles:"margin-bottom:20px;font-weight:normal;color:inherit;&:hover,&:active,&:focus{text-decoration:underline;}"}),T=(0,r.default)("div",{target:"e1awjdnj4",label:"FileLinks"})({name:"1upilqn",styles:"margin-bottom:12px;"}),A=(0,r.default)("ul",{target:"e1awjdnj5",label:"FileLinkList"})({name:"155za0w",styles:"list-style-type:none;"}),P=(0,r.default)("button",{target:"e1awjdnj6",label:"FileWidgetButton"})(f.buttons.button,";",f.components.badge,";margin-bottom:12px;"),R=(0,r.default)("button",{target:"e1awjdnj7",label:"FileWidgetButtonRemove"})(f.buttons.button,";",f.components.badgeDanger,";");function j(e){return Array.isArray(e)||u.List.isList(e)}function I(e){return Array.isArray(e)?e.length:u.List.isList(e)?e.size:e?1:0}function M(e){return u.List.isList(e)?e.toArray():e}const L=(0,i.default)(e=>console.warn(d.oneLine`
Netlify CMS config: ${e.get("name")} field: property "options" has been deprecated for the
${e.get("widget")} widget and will be removed in the next major release. Rather than
\`field.options.media_library\`, apply media library options for this widget under
\`field.media_library\`.
`))},function(e,t,n){"use strict";function r(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}}function i(e,t,n){return r(e=[...e],t,n),e}n.r(t),n.d(t,"arrayMoveMutable",(function(){return r})),n.d(t,"arrayMoveImmutable",(function(){return i}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=(l(n(0)),l(n(2))),o=n(4),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)(e=>{let{href:t,path:n}=e;return(0,s.jsx)("a",{href:t,rel:"noopener noreferrer",target:"_blank"},n)},{target:"e1sxjo0z0",label:"FileLink"})({name:"13o7eu2",styles:"display:block;"});function c(e){let{values:t,getAsset:n,field:r}=e;return(0,s.jsx)("div",null,t.map(e=>(0,s.jsx)(u,{key:e,path:e,href:n(e,r)})))}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?(0,s.jsx)(c,{values:t,getAsset:n,field:r}):(0,s.jsx)(u,{key:t,path:t,href:n(t,r)})}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node};var p=f;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_multiple:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(21)),i=(l(n(0)),l(n(2))),o=n(4),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}const u=(0,r.default)(e=>{let{src:t}=e;return(0,s.jsx)("img",{src:t||"",role:"presentation"})},{target:"e1ksx8c40",label:"StyledImage"})({name:"6b4u1g",styles:"display:block;max-width:100%;height:auto;"});function c(e){let{getAsset:t,value:n,field:r}=e;return(0,s.jsx)(u,{src:t(n,r)})}function d(e){const{value:t,getAsset:n,field:r}=e;return Array.isArray(t)||o.List.isList(t)?t.map(e=>(0,s.jsx)(c,{key:e,value:e,getAsset:n,field:r})):(0,s.jsx)(c,e)}function f(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,e.value?(0,s.jsx)(d,e):null)}f.propTypes={getAsset:i.default.func.isRequired,value:i.default.node};var p=f;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_multiple:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetSelect=void 0;var r=a(n(1452)),i=a(n(1461)),o=a(n(1462));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"select",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetSelect=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(451)),i=f(n(0)),o=f(n(2)),a=f(n(33)),s=n(4),l=f(n(475)),u=n(17),c=n(147),d=n(9);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return e&&e.value?e.value:null}function m(e){return"string"==typeof e?{label:e,value:e}:s.Map.isMap(e)?e.toJS():e}class g extends i.default.Component{constructor(){super(...arguments),p(this,"isValid",()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!e.get("multiple"))return{error:!1};const o=c.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}}),p(this,"handleChange",e=>{const{onChange:t,field:n}=this.props,r=n.get("multiple",!1),i=r?!(null!=e&&e.length):!e;if(n.get("required")&&i&&r)t((0,s.List)());else if(i)t(null);else if(r){const n=e.map(h);t((0,s.fromJS)(n))}else t(h(e))})}componentDidMount(){const{field:e,onChange:t,value:n}=this.props;e.get("required")&&e.get("multiple")&&(n&&!s.List.isList(n)?t((0,s.fromJS)([n])):n||t((0,s.fromJS)([])))}render(){const{field:e,value:t,forID:n,classNameWrapper:i,setActiveStyle:o,setInactiveStyle:a}=this.props,c=e.get("options"),f=e.get("multiple",!1),p=!e.get("required",!0)||f,h=[...c.map(m)],g=function(e){let{value:t,options:n,isMultiple:i}=e;if(i){const e=s.List.isList(t)?t.toJS():t;return e&&Array.isArray(e)?e.map(e=>n.find(t=>t.value===(e.value||e))).filter(Boolean).map(m):null}return(0,r.default)(n,["value",t])||null}({options:h,value:t,isMultiple:f});return(0,d.jsx)(l.default,{inputId:n,value:g,onChange:this.handleChange,className:i,onFocus:o,onBlur:a,options:h,styles:u.reactSelectStyles,isMulti:f,isClearable:p,placeholder:""})}}t.default=g,p(g,"propTypes",{onChange:o.default.func.isRequired,value:o.default.node,forID:o.default.string.isRequired,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired,field:a.default.contains({options:a.default.listOf(o.default.oneOfType([o.default.string,a.default.contains({label:o.default.string.isRequired,value:o.default.string.isRequired})])).isRequired})})},function(e,t,n){var r=n(394),i=n(109),o=n(134),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},function(e,t,n){var r=n(687);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(687);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(1459);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=(l(n(0)),n(4)),o=l(n(33)),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){let{values:t}=e;return(0,s.jsx)("ul",null,t.map((e,t)=>(0,s.jsx)("li",{key:t},e)))}function c(e){let{value:t}=e;return(0,s.jsx)(a.WidgetPreviewContainer,null,t&&(i.List.isList(t)?(0,s.jsx)(u,{values:t}):t),!t&&null)}c.propTypes={value:r.default.oneOfType([r.default.string,o.default.list])};var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},options:{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"object",properties:{label:{type:"string"},value:{oneOf:[{type:"string"},{type:"number"}]}},required:["label","value"]}]}}},required:["options"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetMarkdown=void 0;var r=a(n(452)),i=a(n(1724)),o=a(n(1726));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"markdown",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetMarkdown=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(21)),i=v(n(261)),o=v(n(0)),a=v(n(2)),s=v(n(33)),l=n(9),u=n(31),c=n(474),d=v(n(352)),f=v(n(127)),p=n(17),h=n(332),m=n(738),g=v(n(739));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){let{minimal:t}=e;return`\n position: relative;\n overflow: hidden;\n overflow-x: auto;\n min-height: ${t?"auto":p.lengths.richTextEditorMinHeight};\n font-family: ${p.fonts.mono};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${m.editorStyleVars.stickyDistanceBottom};\n`}const _=(0,r.default)("div",{target:"er7tv020",label:"RawEditorContainer"})({name:"79elbk",styles:"position:relative;"});class w extends o.default.Component{constructor(e){super(e),y(this,"handleCopy",(e,t)=>{const{getAsset:n,resolveWidget:r}=this.props,i=d.default.serialize(u.Value.create({document:t.value.fragment})),o=(0,h.markdownToHtml)(i,{getAsset:n,resolveWidget:r});(0,c.setEventTransfer)(e,"text",i),(0,c.setEventTransfer)(e,"html",o),e.preventDefault()}),y(this,"handleCut",(e,t,n)=>{this.handleCopy(e,t,n),t.delete()}),y(this,"handlePaste",(e,t,n)=>{e.preventDefault();const r=e.clipboardData;if((0,f.default)("shift",e))return n();const i=d.default.deserialize(r.getData("text/plain"));return t.insertFragment(i.document)}),y(this,"handleChange",e=>{this.state.value.document.equals(e.value.document)||this.handleDocumentChange(e),this.setState({value:e.value})}),y(this,"handleDocumentChange",(0,i.default)(e=>{const t=d.default.serialize(e.value);this.props.onChange(t)},150)),y(this,"handleToggleMode",()=>{this.props.onMode("rich_text")}),y(this,"processRef",e=>{this.editor=e}),this.state={value:d.default.deserialize(this.props.value||"")}}shouldComponentUpdate(e,t){return!this.state.value.equals(t.value)||e.value!==d.default.serialize(t.value)}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:d.default.deserialize(this.props.value)})}componentDidMount(){this.props.pendingFocus&&(this.editor.focus(),this.props.pendingFocus())}render(){const{className:e,field:t,isShowModeToggle:n,t:r}=this.props;return(0,l.jsx)(_,null,(0,l.jsx)(m.EditorControlBar,null,(0,l.jsx)(g.default,{onToggleMode:this.handleToggleMode,buttons:t.get("buttons"),disabled:!0,rawMode:!0,isShowModeToggle:n,t:r})),(0,l.jsx)(l.ClassNames,null,n=>{let{css:r,cx:i}=n;return(0,l.jsx)(c.Editor,{className:i(e,r`
${b({minimal:t.get("minimal")})}
`),value:this.state.value,onChange:this.handleChange,onPaste:this.handlePaste,onCut:this.handleCut,onCopy:this.handleCopy,ref:this.processRef})}))}}t.default=w,w.propTypes={onChange:a.default.func.isRequired,onMode:a.default.func.isRequired,className:a.default.string.isRequired,value:a.default.string,field:s.default.map.isRequired,isShowModeToggle:a.default.bool.isRequired,t:a.default.func.isRequired}},function(e,t,n){"use strict";
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=a,s=Number(new Date),l=s-(n||s);o.diff=l,o.prev=n,o.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var i=r.formatters[n];if("function"==typeof i){var a=t[u];e=i.call(o,a),t.splice(u,1),u--}return e})),r.formatArgs.call(o,t);var c=o.log||r.log;c.apply(o,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=o,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(690),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){var r=n(244);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=a,s=Number(new Date),l=s-(n||s);o.diff=l,o.prev=n,o.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var i=r.formatters[n];if("function"==typeof i){var a=t[u];e=i.call(o,a),t.splice(u,1),u--}return e})),r.formatArgs.call(o,t);var c=o.log||r.log;c.apply(o,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=o,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(690),Object.keys(e).forEach((function(t){r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){e.exports=function e(t){if(n(t))return t;if(n(t.ownerDocument))return t.ownerDocument;if(n(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};function n(e){return e&&9===e.nodeType}},function(e,t){e.exports=!!document.attachEvent&&window!==document.parentWindow},function(e,t,n){"use strict";var r=n(434),i=n(630),o=n(1472),a=n(631),s=n(1478),l=n(1479);e.exports=function e(){var t=[],n=a(),y={},b=!1,_=-1;return w.data=function(e,t){if(s(e))return 2===arguments.length?(m("data",b),y[e]=t,w):c.call(y,e)&&y[e]||null;if(e)return m("data",b),y=e,w;return y},w.freeze=x,w.attachers=t,w.use=function(e){var n;if(m("use",b),null==e);else if("function"==typeof e)s.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):i(e)}n&&(y.settings=r(y.settings||{},n));return w;function i(e){a(e.plugins),e.settings&&(n=r(n||{},e.settings))}function o(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s.apply(null,e):i(e)}}function a(e){var t,n;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)o(e[n])}}function s(e,n){var i=k(e);i?(l(i[1])&&l(n)&&(n=r(i[1],n)),i[1]=n):t.push(u.call(arguments))}},w.parse=function(e){var t,n=o(e);if(x(),p("parse",t=w.Parser),f(t))return new t(String(n),n).parse();return t(String(n),n)},w.stringify=function(e,t){var n,r=o(t);if(x(),h("stringify",n=w.Compiler),g(e),f(n))return new n(e,r).compile();return n(e,r)},w.run=E,w.runSync=function(e,t){var n,r=!1;return E(e,t,(function(e,t){r=!0,i(e),n=t})),v("runSync","run",r),n},w.process=S,w.processSync=function(e){var t,n=!1;return x(),p("processSync",w.Parser),h("processSync",w.Compiler),S(t=o(e),(function(e){n=!0,i(e)})),v("processSync","process",n),t},w;function w(){for(var n=e(),i=t.length,o=-1;++o<i;)n.use.apply(null,t[o]);return n.data(r(!0,{},y)),n}function x(){var e,r,i,o;if(b)return w;for(;++_<t.length;)r=(e=t[_])[0],null,!1!==(i=e[1])&&(!0===i&&(e[1]=void 0),"function"==typeof(o=r.apply(w,e.slice(1)))&&n.use(o));return b=!0,_=1/0,w}function k(e){for(var n,r=t.length,i=-1;++i<r;)if((n=t[i])[0]===e)return n}function E(e,t,r){if(g(e),x(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(i);function i(i,a){n.run(e,o(t),(function(t,n,o){n=n||e,t?a(t):i?i(n):r(null,n,o)}))}i(null,r)}function S(e,t){if(x(),p("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=o(e);d.run(w,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,d=a().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){t.file.contents=e.stringify(t.tree,t.file)}));function f(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||!s(e.type))throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},function(e,t,n){"use strict";var r=n(1473),i=n(1475);e.exports=i;var o=i.prototype;function a(e,t,n){var i=this.path,o=new r(e,t,n);return i&&(o.name=i+":"+o.name,o.file=i),o.fatal=!1,this.messages.push(o),o}o.message=a,o.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},o.warn=a},function(e,t,n){"use strict";var r=n(1474);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(e,t,n){"use strict";var r={}.hasOwnProperty;function i(e){return e&&"object"==typeof e||(e={}),a(e.line)+":"+a(e.column)}function o(e){return e&&"object"==typeof e||(e={}),i(e.start)+"-"+i(e.end)}function a(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return null;if(r.call(e,"position")||r.call(e,"type"))return o(e.position);if(r.call(e,"start")||r.call(e,"end"))return o(e);if(r.call(e,"line")||r.call(e,"column"))return i(e);return null}},function(e,t,n){"use strict";(function(t){var r=n(98),i=n(1476),o=n(1477);e.exports=u;var a={}.hasOwnProperty,s=u.prototype;s.toString=function(e){var t=this.contents||"";return o(t)?t.toString(e):String(t)};var l=["history","path","basename","stem","extname","dirname"];function u(e){var n,r,i;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),r=-1,i=l.length;++r<i;)n=l[r],a.call(e,n)&&(this[n]=e[n]);for(n in e)-1===l.indexOf(n)&&(this[n]=e[n])}function c(e,t){if(-1!==e.indexOf(r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function d(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(s,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){d(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(s,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(s,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){d(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(s,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){var t=e||"";if(c(t,"extname"),f(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,t)}}),Object.defineProperty(s,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){d(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})}).call(this,n(97))},function(e,t,n){"use strict";var r=n(98);e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},function(e,t){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return"[object String]"===n.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";var r=n(691),i=n(62),o=n(1481);function a(e){var t=this.data("settings"),n=r(o);n.prototype.options=i(n.prototype.options,t,e),this.Parser=n}e.exports=a,a.Parser=o},function(e,t,n){"use strict";var r=n(62),i=n(692),o=n(1482),a=n(1483),s=n(1484),l=n(1487);function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function d(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(1488),c.parse=n(1490),c.options=n(697),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(1493),indentedCode:n(1494),fencedCode:n(1495),blockquote:n(1496),atxHeading:n(1497),thematicBreak:n(1498),list:n(1499),setextHeading:n(1501),html:n(1502),footnote:n(1503),definition:n(1504),table:n(1505),paragraph:n(1506)},c.inlineTokenizers={escape:n(1507),autoLink:n(1509),url:n(1510),html:n(1512),link:n(1513),reference:n(1514),strong:n(1515),emphasis:n(1517),deletion:n(1520),code:n(1522),break:n(1524),text:n(1526)},c.blockMethods=d(c.blockTokenizers),c.inlineMethods=d(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},function(e,t,n){"use strict";function r(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function i(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:r(t),toOffset:i(t)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){var r,i=0,o=n.indexOf("\\"),a=e[t],s=[];for(;-1!==o;)s.push(n.slice(i,o)),i=o+1,(r=n.charAt(i))&&-1!==a.indexOf(r)||s.push("\\"),o=n.indexOf("\\",i+1);return s.push(n.slice(i)),s.join("")}}},function(e,t,n){"use strict";var r=n(62),i=n(333);e.exports=function(e){return n.raw=function(e,n,a){return i(e,r(a,{position:t(n),warning:o}))},n;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(n,r,a){i(n,{position:t(r),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function o(t,n,r){3!==r&&e.file.message(t,n)}}},function(e){e.exports=JSON.parse('{"0":"<22>","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":"Ÿ"}')},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";function r(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function i(e,t){return e.value+=t.value,e}function o(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}e.exports=function(e){return function(t,n){var a,s,l,u,c,d,f=this,p=f.offset,h=[],m=f[e+"Methods"],g=f[e+"Tokenizers"],v=n.line,y=n.column;if(!t)return h;x.now=_,x.file=f.file,b("");for(;t;){for(a=-1,s=m.length,c=!1;++a<s&&(u=m[a],!(l=g[u])||l.onlyAtStart&&!f.atStart||l.notInList&&f.inList||l.notInBlock&&f.inBlock||l.notInLink&&f.inLink||(d=t.length,l.apply(f,[x,t]),!(c=d!==t.length))););c||f.file.fail(new Error("Infinite loop"),x.now())}return f.eof=_(),h;function b(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)v++,t=n,n=e.indexOf("\n",n+1);-1===t?y+=e.length:y=e.length-t,v in p&&(-1!==t?y+=p[v]:y<=p[v]&&(y=p[v]+1))}function _(){var e={line:v,column:y};return e.offset=f.toOffset(e),e}function w(e){this.start=e,this.end=_()}function x(e){var n,a=function(){var e=[],t=v+1;return function(){for(var n=v+1;t<n;)e.push((p[t]||0)+1),t++;return e}}(),s=(n=_(),function(e,t){var r=e.position,i=r?r.start:n,o=[],a=r&&r.end.line,s=n.line;if(e.position=new w(i),r&&t&&r.indent){if(o=r.indent,a<s){for(;++a<s;)o.push((p[a]||0)+1);o.push(n.column)}t=o.concat(t)}return e.position.indent=t||[],e}),l=_();return function(e){t.substring(0,e.length)!==e&&f.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),_())}(e),u.reset=c,c.test=d,u.test=d,t=t.substring(e.length),b(e),a=a(),u;function u(e,t){return s(function(e,t){var n=t?t.children:h,a=n[n.length-1];return a&&e.type===a.type&&("text"===e.type||"blockquote"===e.type)&&r(a)&&r(e)&&(e=("text"===e.type?i:o).call(f,a,e)),e!==a&&n.push(e),f.atStart&&0!==h.length&&f.exitStart(),e}(s(e),t),a)}function c(){var n=u.apply(null,arguments);return v=l.line,y=l.column,t=e+t,n}function d(){var n=s({});return v=l.line,y=l.column,t=e+t,n.position}}}}},function(e,t,n){"use strict";var r=n(62),i=n(696),o=n(697);e.exports=function(e){var t,n,a=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=a[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=i(e),this}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";var r=n(62),i=n(1491);e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},a=r(n);65279===(t=t.replace(o,"\n")).charCodeAt(0)&&(t=t.slice(1),a.column++,a.offset++);e={type:"root",children:this.tokenizeBlock(t,a),position:{start:n,end:this.eof||r(n)}},this.options.position||i(e,!0);return e};var o=/\r\n|\r/g},function(e,t,n){"use strict";var r=n(334);function i(e){delete e.position}function o(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:o),e}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return a;if("object"==typeof e)return("length"in e?o:i)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function o(e){var t=function(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function a(){return!0}e.exports=r},function(e,t,n){"use strict";var r=n(104);e.exports=function(e,t,n){var i,o,a,s,l=t.charAt(0);if("\n"!==l)return;if(n)return!0;s=1,i=t.length,o=l,a="";for(;s<i&&(l=t.charAt(s),r(l));)a+=l,"\n"===l&&(o+=a,a=""),s++;e(o)}},function(e,t,n){"use strict";var r=n(77),i=n(335);e.exports=function(e,t,n){var r,a,s,l=-1,u=t.length,c="",d="",f="",p="";for(;++l<u;)if(r=t.charAt(l),s)if(s=!1,c+=f,d+=p,f="",p="","\n"===r)f=r,p=r;else for(c+=r,d+=r;++l<u;){if(!(r=t.charAt(l))||"\n"===r){p=r,f=r;break}c+=r,d+=r}else if(" "===r&&t.charAt(l+1)===r&&t.charAt(l+2)===r&&t.charAt(l+3)===r)f+=o,l+=3,s=!0;else if("\t"===r)f+=r,s=!0;else{for(a="";"\t"===r||" "===r;)a+=r,r=t.charAt(++l);if("\n"!==r)break;f+=a+r,p+=r}if(d)return!!n||e(c)({type:"code",lang:null,meta:null,value:i(d)})};var o=r(" ",4)},function(e,t,n){"use strict";var r=n(335);e.exports=function(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v=this.options.gfm,y=t.length+1,b=0,_="";if(!v)return;for(;b<y&&(" "===(a=t.charAt(b))||"\t"===a);)_+=a,b++;if(m=b,"~"!==(a=t.charAt(b))&&"`"!==a)return;b++,o=a,i=1,_+=a;for(;b<y&&(a=t.charAt(b))===o;)_+=a,i++,b++;if(i<3)return;for(;b<y&&(" "===(a=t.charAt(b))||"\t"===a);)_+=a,b++;s="",c="";for(;b<y&&"\n"!==(a=t.charAt(b))&&"~"!==a&&"`"!==a;)" "===a||"\t"===a?c+=a:(s+=c+a,c=""),b++;if((a=t.charAt(b))&&"\n"!==a)return;if(n)return!0;(g=e.now()).column+=_.length,g.offset+=_.length,_+=s,s=this.decode.raw(this.unescape(s),g),c&&(_+=c);c="",p="",h="",d="",f="";for(;b<y;)if(a=t.charAt(b),d+=p,f+=h,p="",h="","\n"===a){for(d?(p+=a,h+=a):_+=a,c="",b++;b<y&&" "===(a=t.charAt(b));)c+=a,b++;if(p+=c,h+=c.slice(m),!(c.length>=4)){for(c="";b<y&&(a=t.charAt(b))===o;)c+=a,b++;if(p+=c,h+=c,!(c.length<i)){for(c="";b<y&&(" "===(a=t.charAt(b))||"\t"===a);)p+=a,h+=a,b++;if(!a||"\n"===a)break}}}else d+=a,h+=a,b++;_+=d+p,b=-1,y=s.length;for(;++b<y;)if(" "===(a=s.charAt(b))||"\t"===a)l||(l=s.slice(0,b));else if(l){u=s.slice(b);break}return e(_)({type:"code",lang:l||s||null,meta:u||null,value:r(f)})}},function(e,t,n){"use strict";var r=n(202),i=n(454);e.exports=function(e,t,n){var o,a,s,l,u,c,d,f,p,h=this.offset,m=this.blockTokenizers,g=this.interruptBlockquote,v=e.now(),y=v.line,b=t.length,_=[],w=[],x=[],k=0;for(;k<b&&(" "===(a=t.charAt(k))||"\t"===a);)k++;if(">"!==t.charAt(k))return;if(n)return!0;k=0;for(;k<b;){for(l=t.indexOf("\n",k),d=k,f=!1,-1===l&&(l=b);k<b&&(" "===(a=t.charAt(k))||"\t"===a);)k++;if(">"===t.charAt(k)?(k++,f=!0," "===t.charAt(k)&&k++):k=d,u=t.slice(k,l),!f&&!r(u)){k=d;break}if(!f&&(s=t.slice(k),i(g,m,this,[e,s,!0])))break;c=d===k?u:t.slice(d,l),x.push(k-d),_.push(c),w.push(u),k=l+1}k=-1,b=x.length,o=e(_.join("\n"));for(;++k<b;)h[y]=(h[y]||0)+x[k],y++;return p=this.enterBlock(),w=this.tokenizeBlock(w.join("\n"),v),p(),o({type:"blockquote",children:w})}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a=this.options.pedantic,s=t.length+1,l=-1,u=e.now(),c="",d="";for(;++l<s;){if(" "!==(r=t.charAt(l))&&"\t"!==r){l--;break}c+=r}o=0;for(;++l<=s;){if("#"!==(r=t.charAt(l))){l--;break}c+=r,o++}if(o>6)return;if(!o||!a&&"#"===t.charAt(l+1))return;s=t.length+1,i="";for(;++l<s;){if(" "!==(r=t.charAt(l))&&"\t"!==r){l--;break}i+=r}if(!a&&0===i.length&&r&&"\n"!==r)return;if(n)return!0;c+=i,i="",d="";for(;++l<s&&(r=t.charAt(l))&&"\n"!==r;)if(" "===r||"\t"===r||"#"===r){for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++l);if(a||!d||i||"#"!==r){for(;"#"===r;)i+=r,r=t.charAt(++l);for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++l);l--}else d+=r}else d+=i+r,i="";return u.column+=c.length,u.offset+=c.length,e(c+=d+i)({type:"heading",depth:o,children:this.tokenizeInline(d,u)})}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=t.length+1,u="";for(;++s<l&&("\t"===(r=t.charAt(s))||" "===r);)u+=r;if("*"!==r&&"-"!==r&&"_"!==r)return;i=r,u+=r,o=1,a="";for(;++s<l;)if((r=t.charAt(s))===i)o++,u+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(u+=a,!!n||e(u)({type:"thematicBreak"})):void 0;a+=r}}},function(e,t,n){"use strict";var r=n(202),i=n(77),o=n(269),a=n(699),s=n(1500),l=n(454);e.exports=function(e,t,n){var i,a,s,u,c,d,f,p,m,g,v,y,b,_,w,x,k,E,S,O,C,T,A=this.options.commonmark,P=this.options.pedantic,R=this.blockTokenizers,j=this.interruptList,I=0,M=t.length,L=null,D=0,N=!1;for(;I<M;){if("\t"===(s=t.charAt(I)))D+=4-D%4;else{if(" "!==s)break;D++}I++}if(D>=4)return;if("*"===(s=t.charAt(I))||"+"===s||"-"===s)u=s,a=!1;else{for(a=!0,i="";I<M&&(s=t.charAt(I),o(s));)i+=s,I++;if(s=t.charAt(I),!i||!("."===s||A&&")"===s))return;L=parseInt(i,10),u=s}if(" "!==(s=t.charAt(++I))&&"\t"!==s&&(P||"\n"!==s&&""!==s))return;if(n)return!0;I=0,b=[],_=[],w=[];for(;I<M;){for(c=t.indexOf("\n",I),d=I,f=!1,T=!1,-1===c&&(c=M),C=I+4,D=0;I<M;){if("\t"===(s=t.charAt(I)))D+=4-D%4;else{if(" "!==s)break;D++}I++}if(D>=4&&(T=!0),x&&D>=x.indent&&(T=!0),s=t.charAt(I),p=null,!T){if("*"===s||"+"===s||"-"===s)p=s,I++,D++;else{for(i="";I<M&&(s=t.charAt(I),o(s));)i+=s,I++;s=t.charAt(I),I++,i&&("."===s||A&&")"===s)&&(p=s,D+=i.length+1)}if(p)if("\t"===(s=t.charAt(I)))D+=4-D%4,I++;else if(" "===s){for(C=I+4;I<C&&" "===t.charAt(I);)I++,D++;I===C&&" "===t.charAt(I)&&(I-=3,D-=3)}else"\n"!==s&&""!==s&&(p=null)}if(p){if(!P&&u!==p)break;f=!0}else A||T||" "!==t.charAt(d)?A&&x&&(T=D>=x.indent||D>4):T=!0,f=!1,I=d;if(g=t.slice(d,c),m=d===I?g:t.slice(I,c),("*"===p||"_"===p||"-"===p)&&R.thematicBreak.call(this,e,g,!0))break;if(v=y,y=!f&&!r(m).length,T&&x)x.value=x.value.concat(w,g),_=_.concat(w,g),w=[];else if(f)0!==w.length&&(N=!0,x.value.push(""),x.trail=w.concat()),x={value:[g],indent:D,trail:[]},b.push(x),_=_.concat(w,g),w=[];else if(y){if(v&&!A)break;w.push(g)}else{if(v)break;if(l(j,R,this,[e,g,!0]))break;x.value=x.value.concat(w,g),_=_.concat(w,g),w=[]}I=c+1}S=e(_.join("\n")).reset({type:"list",ordered:a,start:L,spread:N,children:[]}),k=this.enterList(),E=this.enterBlock(),I=-1,M=b.length;for(;++I<M;)x=b[I].value.join("\n"),O=e.now(),e(x)(h(this,x,O),S),x=b[I].trail.join("\n"),I!==M-1&&(x+="\n"),e(x);return k(),E(),S};var u=/\n\n(?!\s*$)/,c=/^\[([ \t]|x|X)][ \t]/,d=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,f=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,p=/^( {1,4}|\t)?/gm;function h(e,t,n){var r,i,o=e.offset,a=e.options.pedantic?m:g,s=null;return t=a.apply(null,arguments),e.options.gfm&&(r=t.match(c))&&(i=r[0].length,s="x"===r[1].toLowerCase(),o[n.line]+=i,t=t.slice(i)),{type:"listItem",spread:u.test(t),checked:s,children:e.tokenizeBlock(t,n)}}function m(e,t,n){var r=e.offset,i=n.line;return t=t.replace(f,o),i=n.line,t.replace(p,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function g(e,t,n){var r,o,l,u,c,f,p,h=e.offset,m=n.line;for(u=(t=t.replace(d,(function(e,t,n,a,s){o=t+n+a,l=s,Number(n)<10&&o.length%2==1&&(n=" "+n);return(r=t+i(" ",n.length)+a)+l}))).split("\n"),(c=s(t,a(r).indent).split("\n"))[0]=l,h[m]=(h[m]||0)+o.length,m++,f=0,p=u.length;++f<p;)h[m]=(h[m]||0)+u[f].length-c[f].length,m++;return c.join("\n")}},function(e,t,n){"use strict";var r=n(202),i=n(77),o=n(699);e.exports=function(e,t){var n,a,s,l,u=e.split("\n"),c=u.length+1,d=1/0,f=[];u.unshift(i(" ",t)+"!");for(;c--;)if(a=o(u[c]),f[c]=a.stops,0!==r(u[c]).length){if(!a.indent){d=1/0;break}a.indent>0&&a.indent<d&&(d=a.indent)}if(d!==1/0)for(c=u.length;c--;){for(s=f[c],n=d;n&&!(n in s);)n--;l=0!==r(u[c]).length&&d&&n!==d?"\t":"",u[c]=l+u[c].slice(n in s?s[n]+1:0)}return u.shift(),u.join("\n")}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l=e.now(),u=t.length,c=-1,d="";for(;++c<u;){if(" "!==(o=t.charAt(c))||c>=3){c--;break}d+=o}r="",i="";for(;++c<u;){if("\n"===(o=t.charAt(c))){c--;break}" "===o||"\t"===o?i+=o:(r+=i+o,i="")}if(l.column+=d.length,l.offset+=d.length,d+=r+i,o=t.charAt(++c),a=t.charAt(++c),"\n"!==o||"="!==a&&"-"!==a)return;d+=o,i=a,s="="===a?1:2;for(;++c<u;){if((o=t.charAt(c))!==a){if("\n"!==o)return;c--;break}i+=o}if(n)return!0;return e(d+i)({type:"heading",depth:s,children:this.tokenizeInline(r,l)})}},function(e,t,n){"use strict";var r=n(700).openCloseTag;e.exports=function(e,t,n){var r,g,v,y,b,_,w,x=this.options.blocks.join("|"),k=new RegExp("^</?("+x+")(?=(\\s|/?>|$))","i"),E=t.length,S=0,O=[[i,o,!0],[a,s,!0],[l,u,!0],[c,d,!0],[f,p,!0],[k,h,!0],[m,h,!1]];for(;S<E&&("\t"===(y=t.charAt(S))||" "===y);)S++;if("<"!==t.charAt(S))return;r=-1===(r=t.indexOf("\n",S+1))?E:r,g=t.slice(S,r),v=-1,b=O.length;for(;++v<b;)if(O[v][0].test(g)){_=O[v];break}if(!_)return;if(n)return _[2];if(S=r,!_[1].test(g))for(;S<E;){if(r=-1===(r=t.indexOf("\n",S+1))?E:r,g=t.slice(S+1,r),_[1].test(g)){g&&(S=r);break}S=r}return w=t.slice(0,S),e(w)({type:"html",value:w})};var i=/^<(script|pre|style)(?=(\s|>|$))/i,o=/<\/(script|pre|style)>/i,a=/^<!--/,s=/-->/,l=/^<\?/,u=/\?>/,c=/^<![A-Za-z]/,d=/>/,f=/^<!\[CDATA\[/,p=/\]\]>/,h=/^$/,m=new RegExp(r.source+"\\s*$")},function(e,t,n){"use strict";var r=n(104),i=n(455);e.exports=a,a.notInList=!0,a.notInBlock=!0;var o=/^( {4}|\t)?/gm;function a(e,t,n){var a,s,l,u,c,d,f,p,h,m,g,v,y=this.offset;if(this.options.footnotes){for(a=0,s=t.length,l="",u=e.now(),c=u.line;a<s&&(h=t.charAt(a),r(h));)l+=h,a++;if("["===t.charAt(a)&&"^"===t.charAt(a+1)){for(a=(l+="[^").length,f="";a<s&&"]"!==(h=t.charAt(a));)"\\"===h&&(f+=h,a++,h=t.charAt(a)),f+=h,a++;if(f&&"]"===t.charAt(a)&&":"===t.charAt(a+1)){if(n)return!0;for(m=f,a=(l+=f+"]:").length;a<s&&("\t"===(h=t.charAt(a))||" "===h);)l+=h,a++;for(u.column+=l.length,u.offset+=l.length,f="",d="",p="";a<s;){if("\n"===(h=t.charAt(a))){for(p=h,a++;a<s&&"\n"===(h=t.charAt(a));)p+=h,a++;for(f+=p,p="";a<s&&" "===(h=t.charAt(a));)p+=h,a++;if(0===p.length)break;f+=p}f&&(d+=f,f=""),d+=h,a++}return l+=d,d=d.replace(o,(function(e){return y[c]=(y[c]||0)+e.length,c++,""})),g=e(l),v=this.enterBlock(),d=this.tokenizeBlock(d,u),v(),g({type:"footnoteDefinition",identifier:i(m),label:m,children:d})}}}}},function(e,t,n){"use strict";var r=n(104),i=n(455);e.exports=o,o.notInList=!0,o.notInBlock=!0;function o(e,t,n){for(var r,o,l,u,c,d,f,p,h=this.options.commonmark,m=0,g=t.length,v="";m<g&&(" "===(u=t.charAt(m))||"\t"===u);)v+=u,m++;if("["===(u=t.charAt(m))){for(m++,v+=u,l="";m<g&&"]"!==(u=t.charAt(m));)"\\"===u&&(l+=u,m++,u=t.charAt(m)),l+=u,m++;if(l&&"]"===t.charAt(m)&&":"===t.charAt(m+1)){for(d=l,m=(v+=l+"]:").length,l="";m<g&&("\t"===(u=t.charAt(m))||" "===u||"\n"===u);)v+=u,m++;if(l="",r=v,"<"===(u=t.charAt(m))){for(m++;m<g&&a(u=t.charAt(m));)l+=u,m++;if((u=t.charAt(m))===a.delimiter)v+="<"+l+u,m++;else{if(h)return;m-=l.length+1,l=""}}if(!l){for(;m<g&&s(u=t.charAt(m));)l+=u,m++;v+=l}if(l){for(f=l,l="";m<g&&("\t"===(u=t.charAt(m))||" "===u||"\n"===u);)l+=u,m++;if(c=null,'"'===(u=t.charAt(m))?c='"':"'"===u?c="'":"("===u&&(c=")"),c){if(!l)return;for(m=(v+=l+u).length,l="";m<g&&(u=t.charAt(m))!==c;){if("\n"===u){if(m++,"\n"===(u=t.charAt(m))||u===c)return;l+="\n"}l+=u,m++}if((u=t.charAt(m))!==c)return;o=v,v+=l+u,m++,p=l,l=""}else l="",m=v.length;for(;m<g&&("\t"===(u=t.charAt(m))||" "===u);)v+=u,m++;return(u=t.charAt(m))&&"\n"!==u?void 0:!!n||(r=e(r).test().end,f=this.decode.raw(this.unescape(f),r,{nonTerminated:!1}),p&&(o=e(o).test().end,p=this.decode.raw(this.unescape(p),o)),e(v)({type:"definition",identifier:i(d),label:d,title:p||null,url:f}))}}}}function a(e){return">"!==e&&"["!==e&&"]"!==e}function s(e){return"["!==e&&"]"!==e&&!r(e)}a.delimiter=">"},function(e,t,n){"use strict";var r=n(104);e.exports=function(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_,w,x,k,E,S,O,C;if(!this.options.gfm)return;i=0,w=0,u=t.length+1,c=[];for(;i<u;){if(S=t.indexOf("\n",i),O=t.indexOf("|",i+1),-1===S&&(S=t.length),-1===O||O>S){if(w<2)return;break}c.push(t.slice(i,S)),w++,i=S+1}s=c.join("\n"),o=c.splice(1,1)[0]||[],i=0,u=o.length,w--,a=!1,h=[];for(;i<u;){if("|"===(f=o.charAt(i))){if(p=null,!1===a){if(!1===C)return}else h.push(a),a=!1;C=!1}else if("-"===f)p=!0,a=a||null;else if(":"===f)a="left"===a?"center":p&&null===a?"right":"left";else if(!r(f))return;i++}!1!==a&&h.push(a);if(h.length<1)return;if(n)return!0;_=-1,k=[],E=e(s).reset({type:"table",align:h,children:k});for(;++_<w;){for(x=c[_],l={type:"tableRow",children:[]},_&&e("\n"),e(x).reset(l,E),u=x.length+1,i=0,d="",m="",g=!0,v=null,y=null;i<u;)if("\t"!==(f=x.charAt(i))&&" "!==f){if(""===f||"|"===f)if(g)e(f);else{if(f&&y){d+=f,i++;continue}!m&&!f||g||(s=m,d.length>1&&(f?(s+=d.slice(0,d.length-1),d=d.charAt(d.length-1)):(s+=d,d="")),b=e.now(),e(s)({type:"tableCell",children:this.tokenizeInline(m,b)},l)),e(d+f),d="",m=""}else if(d&&(m+=d,d=""),m+=f,"\\"===f&&i!==u-2&&(m+=x.charAt(i+1),i++),"`"===f){for(v=1;x.charAt(i+1)===f;)m+=f,i++,v++;y?v>=y&&(y=0):y=v}g=!1,i++}else m?d+=f:e(f),i++;_||e("\n"+o)}return E}},function(e,t,n){"use strict";var r=n(202),i=n(269),o=n(335),a=n(454);e.exports=function(e,t,n){var s,l,u,c,d,f=this.options,p=f.commonmark,h=f.gfm,m=this.blockTokenizers,g=this.interruptParagraph,v=t.indexOf("\n"),y=t.length;for(;v<y;){if(-1===v){v=y;break}if("\n"===t.charAt(v+1))break;if(p){for(c=0,s=v+1;s<y;){if("\t"===(u=t.charAt(s))){c=4;break}if(" "!==u)break;c++,s++}if(c>=4&&"\n"!==u){v=t.indexOf("\n",v+1);continue}}if(l=t.slice(v+1),a(g,m,this,[e,l,!0]))break;if(m.list.call(this,e,l,!0)&&(this.inList||p||h&&!i(r.left(l).charAt(0))))break;if(s=v,-1!==(v=t.indexOf("\n",v+1))&&""===r(t.slice(s,v))){v=s;break}}if(l=t.slice(0,v),""===r(l))return e(l),null;if(n)return!0;return d=e.now(),l=o(l),e(l)({type:"paragraph",children:this.tokenizeInline(l,d)})}},function(e,t,n){"use strict";var r=n(1508);e.exports=i,i.locator=r;function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},function(e,t,n){"use strict";var r=n(104),i=n(333),o=n(702);e.exports=s,s.locator=o,s.notInLink=!0;var a="mailto:".length;function s(e,t,n){var o,s,l,u,c,d="",f=t.length,p=0,h="",m=!1,g="";if("<"===t.charAt(0)){for(p++,d="<";p<f&&(o=t.charAt(p),!(r(o)||">"===o||"@"===o||":"===o&&"/"===t.charAt(p+1)));)h+=o,p++;if(h){if(g+=h,h="",g+=o=t.charAt(p),p++,"@"===o)m=!0;else{if(":"!==o||"/"!==t.charAt(p+1))return;g+="/",p++}for(;p<f&&(o=t.charAt(p),!r(o)&&">"!==o);)h+=o,p++;if(o=t.charAt(p),h&&">"===o)return!!n||(l=g+=h,d+=g+o,(s=e.now()).column++,s.offset++,m&&("mailto:"===g.slice(0,a).toLowerCase()?(l=l.substr(a),s.column+=a,s.offset+=a):g="mailto:"+g),u=this.inlineTokenizers,this.inlineTokenizers={text:u.text},c=this.enterLink(),l=this.tokenizeInline(l,s),this.inlineTokenizers=u,c(),e(d)({type:"link",title:null,url:i(g,{nonTerminated:!1}),children:l}))}}}},function(e,t,n){"use strict";var r=n(333),i=n(104),o=n(1511);e.exports=l,l.locator=o,l.notInLink=!0;var a=["http://","https://","mailto:"],s=a.length;function l(e,t,n){var o,l,u,c,d,f,p,h,m,g,v,y,b;if(this.options.gfm){for(o="",c=-1;++c<s;)if(f=a[c],(p=t.slice(0,f.length)).toLowerCase()===f){o=p;break}if(o){for(c=o.length,h=t.length,m="",g=0;c<h&&(u=t.charAt(c),!i(u)&&"<"!==u)&&("."!==u&&","!==u&&":"!==u&&";"!==u&&'"'!==u&&"'"!==u&&")"!==u&&"]"!==u||(v=t.charAt(c+1))&&!i(v))&&("("!==u&&"["!==u||g++,")"!==u&&"]"!==u||!(--g<0));)m+=u,c++;if(m){if(l=o+=m,"mailto:"===f){if(-1===(d=m.indexOf("@"))||d===h-1)return;l=l.substr("mailto:".length)}return!!n||(b=this.enterLink(),y=this.inlineTokenizers,this.inlineTokenizers={text:y.text},l=this.tokenizeInline(l,e.now()),this.inlineTokenizers=y,b(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:l}))}}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=r.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(n=e.indexOf(r[o],t))&&(n<a||-1===a)&&(a=n);return a};var r=["https://","http://","mailto:"]},function(e,t,n){"use strict";var r=n(695),i=n(702),o=n(700).tag;e.exports=l,l.locator=i;var a=/^<a /i,s=/^<\/a>/i;function l(e,t,n){var i,l,u=t.length;if(!("<"!==t.charAt(0)||u<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(l=t.match(o))))return!!n||(l=l[0],!this.inLink&&a.test(l)?this.inLink=!0:this.inLink&&s.test(l)&&(this.inLink=!1),e(l)({type:"html",value:l}))}},function(e,t,n){"use strict";var r=n(104),i=n(703);e.exports=o,o.locator=i;function o(e,t,n){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_,w,x="",k=0,E=t.charAt(0),S=this.options.pedantic,O=this.options.commonmark,C=this.options.gfm;if("!"===E&&(d=!0,x=E,E=t.charAt(++k)),"["===E&&(d||!this.inLink)){for(x+=E,v="",k++,h=t.length,g=0,(b=e.now()).column+=k,b.offset+=k;k<h;){if(u=E=t.charAt(k),"`"===E){for(o=1;"`"===t.charAt(k+1);)u+=E,k++,o++;a?o>=a&&(a=0):a=o}else if("\\"===E)k++,u+=t.charAt(k);else if(a&&!C||"["!==E){if((!a||C)&&"]"===E){if(!g){if(!S)for(;k<h&&(E=t.charAt(k+1),r(E));)u+=E,k++;if("("!==t.charAt(k+1))return;u+="(",i=!0,k++;break}g--}}else g++;v+=u,u="",k++}if(i){for(f=v,x+=v+u,k++;k<h&&(E=t.charAt(k),r(E));)x+=E,k++;if(v="",s=x,"<"===(E=t.charAt(k))){for(k++,s+="<";k<h&&">"!==(E=t.charAt(k));){if(O&&"\n"===E)return;v+=E,k++}if(">"!==t.charAt(k))return;x+="<"+v+">",y=v,k++}else{for(E=null,u="";k<h&&(E=t.charAt(k),!u||!('"'===E||"'"===E||O&&"("===E));){if(r(E)){if(!S)break;u+=E}else{if("("===E)g++;else if(")"===E){if(0===g)break;g--}v+=u,u="","\\"===E&&(v+="\\",E=t.charAt(++k)),v+=E}k++}y=v,k=(x+=v).length}for(v="";k<h&&(E=t.charAt(k),r(E));)v+=E,k++;if(E=t.charAt(k),x+=v,v&&('"'===E||"'"===E||O&&"("===E))if(k++,v="",p="("===E?")":E,l=x+=E,O){for(;k<h&&(E=t.charAt(k))!==p;)"\\"===E&&(v+="\\",E=t.charAt(++k)),k++,v+=E;if((E=t.charAt(k))!==p)return;for(m=v,x+=v+E,k++;k<h&&(E=t.charAt(k),r(E));)x+=E,k++}else for(u="";k<h;){if((E=t.charAt(k))===p)c&&(v+=p+u,u=""),c=!0;else if(c){if(")"===E){x+=v+p+u,m=v;break}r(E)?u+=E:(v+=p+u+E,u="",c=!1)}else v+=E;k++}if(")"===t.charAt(k))return!!n||(x+=")",y=this.decode.raw(this.unescape(y),e(s).test().end,{nonTerminated:!1}),m&&(l=e(l).test().end,m=this.decode.raw(this.unescape(m),l)),w={type:d?"image":"link",title:m||null,url:y},d?w.alt=this.decode.raw(this.unescape(f),b)||null:(_=this.enterLink(),w.children=this.tokenizeInline(f,b),_()),e(x)(w))}}}},function(e,t,n){"use strict";var r=n(104),i=n(703),o=n(455);e.exports=a,a.locator=i;function a(e,t,n){var i,a,s,l,u,c,d,f,p=this.options.commonmark,h=t.charAt(0),m=0,g=t.length,v="",y="",b="link",_="shortcut";if("!"===h&&(b="image",y=h,h=t.charAt(++m)),"["===h){if(m++,y+=h,c="",this.options.footnotes&&"^"===t.charAt(m)){if("image"===b)return;y+="^",m++,b="footnote"}for(f=0;m<g;){if("["===(h=t.charAt(m)))d=!0,f++;else if("]"===h){if(!f)break;f--}"\\"===h&&(c+="\\",h=t.charAt(++m)),c+=h,m++}if(v=c,i=c,"]"===(h=t.charAt(m))){if(m++,v+=h,c="",!p)for(;m<g&&(h=t.charAt(m),r(h));)c+=h,m++;if(h=t.charAt(m),"footnote"!==b&&"["===h){for(a="",c+=h,m++;m<g&&"["!==(h=t.charAt(m))&&"]"!==h;)"\\"===h&&(a+="\\",h=t.charAt(++m)),a+=h,m++;"]"===(h=t.charAt(m))?(_=a?"full":"collapsed",c+=a+h,m++):a="",v+=c,c=""}else{if(!i)return;a=i}if("full"===_||!d)return v=y+v,"link"===b&&this.inLink?null:!!n||("footnote"===b&&-1!==i.indexOf(" ")?e(v)({type:"footnote",children:this.tokenizeInline(i,e.now())}):((s=e.now()).column+=y.length,s.offset+=y.length,l={type:b+"Reference",identifier:o(a="full"===_?a:i),label:a},"link"!==b&&"image"!==b||(l.referenceType=_),"link"===b?(u=this.enterLink(),l.children=this.tokenizeInline(i,s),u()):"image"===b&&(l.alt=this.decode.raw(this.unescape(i),s)||null),e(v)(l)))}}}},function(e,t,n){"use strict";var r=n(202),i=n(104),o=n(1516);e.exports=a,a.locator=o;function a(e,t,n){var o,a,s,l,u,c,d,f=0,p=t.charAt(f);if(!("*"!==p&&"_"!==p||t.charAt(++f)!==p||(a=this.options.pedantic,u=(s=p)+s,c=t.length,f++,l="",p="",a&&i(t.charAt(f)))))for(;f<c;){if(d=p,!((p=t.charAt(f))!==s||t.charAt(f+1)!==s||a&&i(d))&&(p=t.charAt(f+2))!==s){if(!r(l))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(u+l+u)({type:"strong",children:this.tokenizeInline(l,o)}))}a||"\\"!==p||(l+=p,p=t.charAt(++f)),l+=p,f++}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(202),i=n(1518),o=n(104),a=n(1519);e.exports=s,s.locator=a;function s(e,t,n){var a,s,l,u,c,d,f,p=0,h=t.charAt(p);if(!("*"!==h&&"_"!==h||(s=this.options.pedantic,c=h,l=h,d=t.length,p++,u="",h="",s&&o(t.charAt(p)))))for(;p<d;){if(f=h,!((h=t.charAt(p))!==l||s&&o(f))){if((h=t.charAt(++p))!==l){if(!r(u)||f===l)return;if(!s&&"_"===l&&i(h)){u+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(c+u+l)({type:"emphasis",children:this.tokenizeInline(u,a)}))}u+=l}s||"\\"!==h||(u+=h,h=t.charAt(++p)),u+=h,p++}}},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\w/},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(104),i=n(1521);e.exports=o,o.locator=i;function o(e,t,n){var i,o,a,s="",l="",u="",c="";if(this.options.gfm&&"~"===t.charAt(0)&&"~"===t.charAt(1)&&!r(t.charAt(2)))for(i=1,o=t.length,(a=e.now()).column+=2,a.offset+=2;++i<o;){if(!("~"!==(s=t.charAt(i))||"~"!==l||u&&r(u)))return!!n||e("~~"+c+"~~")({type:"delete",children:this.tokenizeInline(c,a)});c+=l,u=l,l=s}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},function(e,t,n){"use strict";var r=n(104),i=n(1523);e.exports=o,o.locator=i;function o(e,t,n){for(var i,o,a,s,l,u,c,d,f=t.length,p=0,h="",m="";p<f&&"`"===t.charAt(p);)h+="`",p++;if(h){for(l=h,s=p,h="",d=t.charAt(p),a=0;p<f;){if(u=d,d=t.charAt(p+1),"`"===u?(a++,m+=u):(a=0,h+=u),a&&"`"!==d){if(a===s){l+=h+m,c=!0;break}h+=m,m=""}p++}if(!c){if(s%2!=0)return;h=""}if(n)return!0;for(i="",o="",f=h.length,p=-1;++p<f;)u=h.charAt(p),r(u)?o+=u:(o&&(i&&(i+=o),o=""),i+=u);return e(l)({type:"inlineCode",value:i})}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},function(e,t,n){"use strict";var r=n(1525);e.exports=i,i.locator=r;function i(e,t,n){for(var r,i=t.length,o=-1,a="";++o<i;){if("\n"===(r=t.charAt(o))){if(o<2)return;return!!n||e(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,d,f;if(n)return!0;r=this.inlineMethods,a=r.length,i=this.inlineTokenizers,o=-1,d=t.length;for(;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(this,t,1))&&l<d&&(d=l));s=t.slice(0,d),f=e.now(),this.decode(s,f,(function(t,n,r){e(r||t)({type:"text",value:t})}))}},function(e,t,n){"use strict";var r=n(691),i=n(62),o=n(1528);function a(e){var t=r(o);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}e.exports=a,a.Compiler=o},function(e,t,n){"use strict";var r=n(62),i=n(692);function o(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=r(this.options),this.setOptions({})}e.exports=o;var a=o.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(1529),a.options=n(705),a.setOptions=n(1530),a.compile=n(1535),a.visit=n(1537),a.all=n(1538),a.block=n(1539),a.visitOrderedItems=n(1540),a.visitUnorderedItems=n(1541),a.visitors={root:n(1542),text:n(1543),heading:n(1544),paragraph:n(1545),blockquote:n(1546),list:n(1547),listItem:n(1548),inlineCode:n(1549),code:n(1550),html:n(1551),thematicBreak:n(1552),strong:n(1553),emphasis:n(1554),break:n(1555),delete:n(1556),link:n(1557),linkReference:n(1558),imageReference:n(1560),definition:n(1561),image:n(1562),footnote:n(1563),footnoteReference:n(1564),footnoteDefinition:n(1565),table:n(1566),tableCell:n(1568)}},function(e,t,n){"use strict";var r=n(704);e.exports=function(e,t){var n=e.encode,i=e.escape,o=e.enterLink();if("shortcut"!==t.referenceType&&"collapsed"!==t.referenceType)return o;return e.escape=r,e.encode=r,function(){e.encode=n,e.escape=i,o()}}},function(e,t,n){"use strict";var r=n(62),i=n(1531),o=n(705),a=n(1533),s=n(704);e.exports=function(e){var t,n,d=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(n in o)u[typeof o[n]](e,n,d[n],l[n]);(t=e.ruleRepetition)&&t<3&&c(t,"options.ruleRepetition");return this.encode=function(e){var t={};if("false"===e)return s;"true"===e&&(t.useNamedReferences=!0);"escape"===e&&(t.escapeOnly=!0,t.useNamedReferences=!0);return function(e){return i(e,t)}}(String(e.entities)),this.escape=a(e),this.options=e,this};var l={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},u={boolean:function(e,t,n){var r=e[t];null==r&&(r=n);"boolean"!=typeof r&&c(r,"options."+t);e[t]=r},string:function(e,t,n,r){var i=e[t];null==i&&(i=n);(i=String(i))in r||c(i,"options."+t);e[t]=i},number:function(e,t,n){var r=e[t];null==r&&(r=n);isNaN(r)&&c(r,"options."+t);e[t]=r},function:function(e,t,n){var r=e[t];null==r&&(r=n);"function"!=typeof r&&c(r,"options."+t);e[t]=r}};function c(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}},function(e,t,n){"use strict";var r=n(706),i=n(453),o=n(693),a=n(694),s=n(1532);e.exports=p,p.escape=function(e){return p(e,{escapeOnly:!0,useNamedReferences:!0})};var l={}.hasOwnProperty,u=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),c=g(['"',"'","<",">","&","`"]),d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;function p(e,t){var n=t||{},r=n.subset,i=r?g(r):c,o=n.escapeOnly,a=n.omitOptionalSemicolons;return e=e.replace(i,(function(e,t,r){return h(e,r.charAt(t+1),n)})),r||o?e:e.replace(d,(function(e,t,n){return m(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),a)})).replace(f,(function(e,t,r){return h(e,r.charAt(t+1),n)}))}function h(e,t,n){var r,o,c=n.useShortestReferences,d=n.omitOptionalSemicolons;return(c||n.useNamedReferences)&&l.call(u,e)&&(r=function(e,t,n,r){var o="&"+e;if(n&&l.call(i,e)&&-1===s.indexOf(e)&&(!r||t&&"="!==t&&!a(t)))return o;return o+";"}(u[e],t,d,n.attribute)),!c&&r||(o=m(e.charCodeAt(0),t,d)),r&&(!c||r.length<o.length)?r:o}function m(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!o(t)?r:r+";"}function g(e){return new RegExp("["+e.join("")+"]","g")}},function(e){e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},function(e,t,n){"use strict";var r=n(269),i=n(1534),o=n(104),a=n(696),s=n(707);e.exports=function(e){return function(t,n,p){var h,m,g,v,y,b,_=e.gfm,w=e.commonmark,x=e.pedantic,k=w?[".",")"]:["."],E=p&&p.children,S=E&&E.indexOf(n),O=E&&E[S-1],C=E&&E[S+1],T=t.length,A=a(e),P=-1,R=[],j=R;h=O?d(O)&&u.test(O.value):!p||"root"===p.type||"paragraph"===p.type;for(;++P<T;){if(m=t.charAt(P),b=!1,"\n"===m)h=!0;else if("\\"===m||"`"===m||"*"===m||"!"===m&&"["===t.charAt(P+1)||"["===m||"<"===m||"&"===m&&s(t.slice(P))>0||"]"===m&&this.inLink||_&&"~"===m&&"~"===t.charAt(P+1)||_&&"|"===m&&(this.inTable||c(t,P))||"_"===m&&P>0&&P<T-1&&(x||!i(t.charAt(P-1))||!i(t.charAt(P+1)))||_&&!this.inLink&&":"===m&&f(R.join("")))b=!0;else if(h)if(">"===m||"#"===m||"*"===m||"-"===m||"+"===m)b=!0;else if(r(m)){for(y=P+1;y<T&&r(t.charAt(y));)y++;-1!==k.indexOf(t.charAt(y))&&((C=t.charAt(y+1))&&" "!==C&&"\t"!==C&&"\n"!==C||(R.push(t.slice(P,y)),P=y,m=t.charAt(P),b=!0))}h&&!o(m)&&(h=!1),R.push(b?I(m):m)}if(E&&d(n)){if(O&&"shortcut"===O.referenceType){for(P=-1,T=j.length;++P<T;)if(" "!==(m=j[P])&&"\t"!==m){"("!==m&&":"!==m||(j[P]=I(m));break}d(C)&&P===T&&"("===C.value.charAt(0)&&j.push("\\")}_&&!this.inLink&&d(O)&&":"===t.charAt(0)&&f(O.value.slice(-6))&&(j[0]=I(":")),d(C)&&"&"===t.charAt(T-1)&&0!==s("&"+C.value)&&(j[j.length-1]=I("&")),C&&"link"===C.type&&"!"===t.charAt(T-1)&&(j[j.length-1]=I("!")),_&&d(C)&&"~"===t.charAt(T-1)&&"~"===C.value.charAt(0)&&j.splice(j.length-1,0,"\\"),g=d(O)&&i(O.value.slice(-1)),v=d(C)&&i(C.value.charAt(0)),1===T?"_"!==t||!x&&g&&v||j.unshift("\\"):("_"!==t.charAt(0)||!x&&g&&i(t.charAt(1))||j.unshift("\\"),"_"!==t.charAt(T-1)||!x&&v&&i(t.charAt(T-2))||j.splice(j.length-1,0,"\\"))}return j.join("");function I(e){return-1===A.indexOf(e)?l[e]:"\\"+e}}};var l={"<":"&lt;",":":"&#x3A;","&":"&amp;","|":"&#x7C;","~":"&#x7E;"},u=/\n\s*$/;function c(e,t){var n,r=e.lastIndexOf("\n",t),i=e.indexOf("\n",t);for(i=-1===i?e.length:i;++r<i;)if(":"!==(n=e.charAt(r))&&"-"!==n&&" "!==n&&"|"!==n)return!1;return!0}function d(e){return e&&"text"===e.type}function f(e){var t=e.slice(-6).toLowerCase();return"mailto"===t||"https"===t.slice(-5)||"http"===t.slice(-4)}},function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},function(e,t,n){"use strict";var r=n(1536);e.exports=function(){return this.visit(r(this.tree,this.options.commonmark))}},function(e,t,n){"use strict";var r=n(334);function i(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}e.exports=function(e,t){return r(e,(function(e,n,r){var o=r?r.children:[],a=n&&o[n-1];if(a&&e.type===a.type&&i(a,t)&&i(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),o.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n})),e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=this.visitors;"function"!=typeof n[e.type]&&this.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e);return n[e.type].call(this,e,t)}},function(e,t,n){"use strict";e.exports=function(e){var t=e.children,n=t.length,r=[],i=-1;for(;++i<n;)r[i]=this.visit(t[i],e);return r}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=this.options,i=r.fences,o=r.commonmark?"\n\n\x3c!----\x3e\n\n":"\n\n\n",a=[],s=e.children,l=s.length,u=-1;for(;++u<l;)t=n,n=s[u],t&&("list"===t.type&&("list"===n.type&&t.ordered===n.ordered||"code"===n.type&&!n.lang&&!i)?a.push(o):a.push("\n\n")),a.push(this.visit(n,e));return a.join("")}},function(e,t,n){"use strict";e.exports=function(e){var t,n=this.visitors.listItem,r=this.options.incrementListMarker,i=[],o=e.start,a=e.children,s=a.length,l=-1;o=null==o?1:o;for(;++l<s;)t=(r?o+l:o)+".",i[l]=n.call(this,a[l],e,l,t);return i.join(e.spread?"\n\n":"\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=this.options.bullet,n=this.visitors.listItem,r=e.children,i=r.length,o=-1,a=[];for(;++o<i;)a[o]=n.call(this,r[o],e,o,t);return a.join(e.spread?"\n\n":"\n")}},function(e,t,n){"use strict";e.exports=function(e){return this.block(e)+"\n"}},function(e,t,n){"use strict";e.exports=function(e,t){return this.encode(this.escape(e.value,e,t),e)}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e){var t,n=e.depth,i=this.options.setext,o=this.options.closeAtx,a=this.all(e).join("");if(i&&n<3)return a+"\n"+r(1===n?"=":"-",a.length);return(t=r("#",e.depth))+" "+a+(o?" "+t:"")}},function(e,t,n){"use strict";e.exports=function(e){return this.all(e).join("")}},function(e,t,n){"use strict";e.exports=function(e){var t,n=this.block(e).split("\n"),r=[],i=n.length,o=-1;for(;++o<i;)t=n[o],r[o]=(t?" ":"")+t;return">"+r.join("\n>")}},function(e,t,n){"use strict";e.exports=function(e){return(e.ordered?this.visitOrderedItems:this.visitUnorderedItems).call(this,e)}},function(e,t,n){"use strict";var r=n(77),i=n(708);e.exports=function(e,t,n,a){var s,l,u,c=this.options.listItemIndent,d=a||this.options.bullet,f=null==e.spread||e.spread,p=e.checked,h=e.children,m=h.length,g=[],v=-1;for(;++v<m;)g[v]=this.visit(h[v],e);s=g.join(f?"\n\n":"\n"),"boolean"==typeof p&&(s="["+(p?"x":" ")+"] "+s);"1"===c||"mixed"===c&&-1===s.indexOf("\n")?(l=d.length+1,u=" "):(l=4*o((d.length+1)/4),u=r(" ",l-d.length));return s?d+u+i(s,l/4).slice(l):d};var o=Math.ceil},function(e,t,n){"use strict";var r=n(709),i=n(77);e.exports=function(e){var t=e.value,n=i("`",r(t,"`")+1),o=n,a=n;"`"===t.charAt(0)&&(o+=" ");"`"===t.charAt(t.length-1)&&(a=" "+a);return o+t+a}},function(e,t,n){"use strict";var r=n(709),i=n(77),o=n(708);e.exports=function(e,t){var n,a=e.value,s=this.options,l=s.fence,u=e.lang||"";u&&e.meta&&(u+=" "+e.meta);if(!(u=this.encode(this.escape(u,e)))&&!s.fences&&a)return t&&"listItem"===t.type&&"tab"!==s.listItemIndent&&s.pedantic&&this.file.fail("Cannot indent code properly. See https://git.io/fxKR8",e.position),o(a,1);return(n=i(l,Math.max(r(a,l)+1,3)))+u+"\n"+a+"\n"+n}},function(e,t,n){"use strict";e.exports=function(e){return e.value}},function(e,t,n){"use strict";var r=n(77);e.exports=function(){var e=this.options,t=r(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(" "):t}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e){var t=r(this.options.strong,2);return t+this.all(e).join("")+t}},function(e,t,n){"use strict";e.exports=function(e){var t=this.options.emphasis,n=this.all(e).join("");this.options.pedantic&&"_"===t&&-1!==n.indexOf(t)&&(t="*");return t+n+t}},function(e,t,n){"use strict";e.exports=function(){return this.options.commonmark?"\\\n":" \n"}},function(e,t,n){"use strict";e.exports=function(e){return"~~"+this.all(e).join("")+"~~"}},function(e,t,n){"use strict";var r=n(456),i=n(457);e.exports=function(e){var t=this.encode(e.url||"",e),n=this.enterLink(),a=this.encode(this.escape(e.url||"",e)),s=this.all(e).join("");if(n(),null==e.title&&o.test(t)&&a===s)return r(this.encode(e.url),!0);t=r(t),e.title&&(t+=" "+i(this.encode(this.escape(e.title,e),e)));return"["+s+"]("+t+")"};var o=/^[a-z][a-z+.-]+:\/?/i},function(e,t,n){"use strict";var r=n(1559),i=n(710);e.exports=function(e){var t=e.referenceType,n=this.enterLinkReference(this,e),o=this.all(e).join("");n(),("shortcut"===t||"collapsed"===t)&&(o=r(o,e.label||e.identifier));return"["+o+"]"+i(e)}},function(e,t,n){"use strict";var r=n(707);e.exports=function(e,t){var n,o=e.length,a=t.length,s=[],l=0,u=0;for(;u<o;){for(n=u;u<o&&!i.test(e.charAt(u));)u+=1;for(s.push(e.slice(n,u));l<a&&!i.test(t.charAt(l));)l+=1;for(n=l;l<a&&i.test(t.charAt(l));)"&"===t.charAt(l)&&(l+=r(t.slice(l))),l+=1;for(s.push(t.slice(n,l));u<o&&i.test(e.charAt(u));)u+=1}return s.join("")};var i=/[-!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~_]/},function(e,t,n){"use strict";var r=n(710);e.exports=function(e){return"!["+(this.encode(e.alt,e)||"")+"]"+r(e)}},function(e,t,n){"use strict";var r=n(456),i=n(457);e.exports=function(e){var t=r(e.url);e.title&&(t+=" "+i(e.title));return"["+(e.label||e.identifier)+"]: "+t}},function(e,t,n){"use strict";var r=n(456),i=n(457);e.exports=function(e){var t=r(this.encode(e.url||"",e)),n=this.enterLink(),o=this.encode(this.escape(e.alt||"",e));n(),e.title&&(t+=" "+i(this.encode(e.title,e)));return"!["+o+"]("+t+")"}},function(e,t,n){"use strict";e.exports=function(e){return"[^"+this.all(e).join("")+"]"}},function(e,t,n){"use strict";e.exports=function(e){return"[^"+(e.label||e.identifier)+"]"}},function(e,t,n){"use strict";var r=n(77),i=r(" ",4);e.exports=function(e){var t=this.all(e).join("\n\n"+i);return"[^"+(e.label||e.identifier)+"]: "+t}},function(e,t,n){"use strict";var r=n(1567);e.exports=function(e){var t,n,i=this.options,o=i.looseTable,a=i.spacedTable,s=i.paddedTable,l=i.stringLength,u=e.children,c=u.length,d=this.enterTable(),f=[];for(;c--;)f[c]=this.all(u[c]);d(),o?(t="",n=""):a?(t="| ",n=" |"):(t="|",n="|");return r(f,{align:e.align,pad:s,start:t,end:n,stringLength:l,delimiter:a?" | ":"|"})}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,u,c,d,f,p,h,m,g,v,y,b=t||{},_=b.delimiter,w=b.start,x=b.end,k=b.align,E=b.stringLength||a,S=0,O=-1,C=e.length,T=[];k=k?k.concat():[],null==_&&(_=" | ");null==w&&(w="| ");null==x&&(x=" |");for(;++O<C;)for(c=e[O],f=-1,c.length>S&&(S=c.length);++f<S;)p=c[f]?l(c[f]):null,T[f]||(T[f]=3),p>T[f]&&(T[f]=p);"string"==typeof k&&(k=s(S,k).split(""));f=-1;for(;++f<S;)"string"==typeof(n=k[f])&&(n=n.charAt(0).toLowerCase()),"l"!==n&&"r"!==n&&"c"!==n&&"."!==n&&(n=""),k[f]=n;O=-1,u=[];for(;++O<C;){for(c=e[O],f=-1,d=[];++f<S;)m=o(m=c[f]),"."===k[f]?(p=l(m),h=T[f]+(r.test(m)?0:1)-(E(m)-p),d[f]=m+s(h-1)):d[f]=m;u[O]=d}T=[],O=-1;for(;++O<C;)for(d=u[O],f=-1;++f<S;)m=d[f],T[f]||(T[f]=3),(h=E(m))>T[f]&&(T[f]=h);O=-1;for(;++O<C;){if(d=u[O],f=-1,!1!==b.pad)for(;++f<S;)m=d[f],p=T[f]-(E(m)||0),g=s(p),"r"===k[f]||"."===k[f]?m=g+m:"c"===k[f]?((p/=2)%1==0?(v=p,y=p):(v=p+.5,y=p-.5),m=s(v)+m+s(y)):m+=g,d[f]=m;u[O]=d.join(_)}if(!1!==b.rule){for(f=-1,i=[];++f<S;)!1===b.pad?(m=e[0][f],g=(g=E(o(m)))>3?g:3):g=T[f],n=k[f],m="r"===n||""===n?"-":":",m+=s(g-2,"-"),m+="l"!==n&&""!==n?":":"-",i[f]=m;u.splice(1,0,i.join(_))}return w+u.join(x+"\n"+w)+x};var r=/\./,i=/\.[^.]*$/;function o(e){return null==e?"":String(e)}function a(e){return String(e).length}function s(e,t){return new Array(e+1).join(t||" ")}function l(e){var t=i.exec(e);return t?t.index+1:e.length}},function(e,t,n){"use strict";e.exports=function(e){return this.all(e).join("")}},function(e,t,n){"use strict";var r=n(1570);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},function(e,t,n){"use strict";e.exports=n(1571)},function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{},i=n.allowDangerousHTML;return c.dangerous=i,c.definition=l(e,n),c.footnotes=[],c.augment=u,c.handlers=r(d,n.handlers||{}),o(e,"footnoteDefinition",f),c;function u(e,t){var n,i;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=r(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),i=e&&e.position?e:{position:e},s(i)||(t.position={start:a.start(i),end:a.end(i)}),t}function c(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),u(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function f(e){c.footnotes.push(e)}}(e,t),f=u(n,e),p=c(n);f&&f.children&&p&&(f.children=f.children.concat(i("text","\n"),p));return f};var r=n(62),i=n(72),o=n(334),a=n(327),s=n(644),l=n(711),u=n(712),c=n(1572),d=n(1573)},function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,l=e.footnotes,u=l.length,c=-1,d=[];if(!u)return null;for(;++c<u;)t=l[c],a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),d[c]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position};return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:d})],!0))};var r=n(713),i=n(714),o=n(223)},function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(1574),break:n(1575),code:n(1576),delete:n(1578),emphasis:n(1579),footnoteReference:n(715),footnote:n(1580),heading:n(1581),html:n(1582),imageReference:n(1583),image:n(1584),inlineCode:n(1585),linkReference:n(1586),link:n(1587),listItem:n(1588),list:n(714),paragraph:n(1589),root:n(1590),strong:n(1591),table:n(1592),text:n(1593),thematicBreak:n(713),toml:r,yaml:r,definition:r,footnoteDefinition:r}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(223),i=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(72)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value?r(t.value+"\n"):"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);return e(t.position,"pre",[e(t,"code",a,[i("text",n)])])};var r=n(1577),i=n(72)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t||4,l=[],u=0,c=0,d=-1;if("string"!=typeof e)throw new Error("detab expected string");for(;c<e.length;)i.lastIndex=c,o=i.exec(e),a=o?o.index:e.length,9===e.charCodeAt(a)?(n=s-(d+a-c+1)%s,l.push(e.slice(u,a),r(" ",n)),d+=a-c+n,u=a+1):d=-1,c=a+1;return l.push(e.slice(u)),l.join("")};var r=n(77),i=/[\t\n\r]/g},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=1,o=e.footnotes,a=o.length,s=-1;for(;++s<a;)n[s]=o[s].identifier;for(;-1!==n.indexOf(String(i));)i++;return i=String(i),o.push({type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position}),r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(715)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(72)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(175),i=n(716)},function(e,t,n){"use strict";var r=n(175);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"code",[i("text",r(t.value))])};var r=n(701),i=n(72)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(175),i=n(716),o=n(100)},function(e,t,n){"use strict";var r=n(175),i=n(100);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var s,l,u,c,d,f=t.children[0],p=o(e,t),h=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=a(n[i]);return t}(n):a(t),m={};if(h)s=p;else for(s=[],c=p.length,u=-1;++u<c;)"p"===(d=p[u]).tagName?s=s.concat(d.children):s.push(d);"boolean"==typeof t.checked&&(!h||f&&"paragraph"===f.type||s.unshift(e(null,"p",[])),0!==(l=h?s[0].children:s).length&&l.unshift(r("text"," ")),l.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),m.className=["task-list-item"]);h&&0!==s.length&&(s=i(s,!0));return e(t,"li",m,s)};var r=n(72),i=n(223),o=n(100);function a(e){var t=e.spread;return null==t?e.children.length>1:t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(72),i=n(223),o=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,l,u,c=t.children,d=c.length,f=t.align,p=f.length,h=[];for(;d--;){for(a=c[d].children,l=0===d?"th":"td",n=p,s=[];n--;)u=a[n],s[n]=e(u,l,{align:f[n]},u?o(e,u):[]);h[d]=e(c[d],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))};var r=n(327),i=n(223),o=n(100)},function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",i(t.value)))};var r=n(72),i=n(1594)},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(r,"\n")};var r=/[ \t]*\n+[ \t]*/g},function(e,t,n){"use strict";var r=n(62),i=n(1596);e.exports=function(e){var t=r(e,this.data("settings"));this.Compiler=function(e){return i(e,t)}}},function(e,t,n){"use strict";e.exports=n(1597)},function(e,t,n){"use strict";var r,i=n(328),o=n(266),a=n(1598),s=n(1599),l=n(722);e.exports=function(e,t){var n=t||{},u=n.quote||'"',c='"'===u?"'":'"';if('"'!==u&&"'"!==u)throw new Error("Invalid quote `"+u+"`, expected `'` or `\"`");"allowDangerousHTML"in n&&!r&&(r=!0,console.warn("Deprecation warning: `allowDangerousHTML` is a nonstandard option, use `allowDangerousHtml` instead"));return l({valid:n.allowParseErrors?0:1,safe:n.allowDangerousCharacters?0:1,schema:"svg"===n.space?o:i,omit:n.omitOptionalTags&&s,quote:u,alternative:c,smart:n.quoteSmart,unquoted:n.preferUnquoted,tight:n.tightAttributes,upperDoctype:n.upperDoctype,tightDoctype:n.tightDoctype,bogusComments:n.bogusComments,tightLists:n.tightCommaSeparatedLists,tightClose:n.tightSelfClosing,collapseEmpty:n.collapseEmptyAttributes,dangerous:n.allowDangerousHtml||n.allowDangerousHTML,voids:n.voids||a.concat(),entities:n.entities||{},close:n.closeSelfClosing,closeEmpty:n.closeEmptyElements},e&&"object"==typeof e&&"length"in e?{type:"root",children:e}:e)}},function(e){e.exports=JSON.parse('["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]')},function(e,t,n){"use strict";t.opening=n(1600),t.closing=n(720)},function(e,t,n){"use strict";var r=n(458),i=n(717),o=n(718),a=n(719),s=n(720),l=n(721);e.exports=l({html:function(e){var t=i.after(e,-1);return!t||!a(t)},head:function(e){var t=e.children,n=[],i=-1;for(;++i<t.length;)if(r(t[i],["title","base"])){if(n.indexOf(t[i].tagName)>-1)return!1;n.push(t[i].tagName)}return t.length},body:function(e){var t=i.after(e,-1,!0);return!t||!a(t)&&!o(t)&&!r(t,["meta","link","script","style","template"])},colgroup:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1,!0);if(r(o,"colgroup")&&s(o,n.children.indexOf(o),n))return!1;return a&&r(a,"col")},tbody:function(e,t,n){var o=i.before(n,t),a=i.after(e,-1);if(r(o,["thead","tbody"])&&s(o,n.children.indexOf(o),n))return!1;return a&&r(a,"tr")}})},function(e,t,n){"use strict";var r=n(62),i=n(336);e.exports=function(e,t){return e.bogusComments?"<?"+i(t.value,r(e.entities,{subset:[">"]}))+">":"\x3c!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(t){return i(t,r(e.entities,{subset:["<",">"]}))}))+"--\x3e"}},function(e,t,n){"use strict";var r=n(1603),i=n(1610);e.exports=r,r.escape=i},function(e,t,n){"use strict";var r=n(62),i=n(723),o=n(724);e.exports=function(e,t){return i(e,r(t,{format:o}))}},function(e,t,n){e.exports=function(e,t,n){var i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(r(t))?i:i+";"};var r=n(460)},function(e,t,n){e.exports=function(e,t,n){var i="&#"+String(e);return n&&t&&!/\d/.test(r(t))?i:i+";"};var r=n(460)},function(e,t,n){e.exports=function(e,t,n,l){var u,c,d=o(e);if(a.call(i,d))return u=i[d],c="&"+u,n&&a.call(r,u)&&-1===s.indexOf(u)&&(!l||t&&61!==t&&/[^\da-z]/i.test(o(t)))?c:c+";";return""};var r=n(453),i=n(1607),o=n(460),a=n(1608),s=n(1609)},function(e,t,n){var r,i=n(706),o={};for(r in e.exports=o,i)o[i[r]]=r},function(e,t){e.exports={}.hasOwnProperty},function(e){e.exports=JSON.parse('["cent","copy","divide","gt","lt","not","para","times"]')},function(e,t,n){"use strict";var r=n(723),i=n(724);e.exports=function(e){return r(e,{escapeOnly:!0,useNamedReferences:!0,format:i})}},function(e,t,n){"use strict";var r=n(62),i=n(267),o=n(336);function a(e,t){var n=String(t),a=i(n,e.quote)>i(n,e.alternative)?e.alternative:e.quote;return a+o(n,r(e.entities,{subset:["<","&",a]}))+a}e.exports=function(e,t){var n=e.tightDoctype?"":" ",r=["<!"+(e.upperDoctype?"DOCTYPE":"doctype")];t.name&&(r.push(n,t.name),null!=t.public?r.push(" public",n,a(e,t.public)):null!=t.system&&r.push(" system"),null!=t.system&&r.push(n,a(e,t.system)));return r.join("")+">"}},function(e,t,n){"use strict";var r=n(62),i=n(266),o=n(330),a=n(444),s=n(445),l=n(336),u=n(267),c=n(725),d=n(1613);function f(e,t,n){var i,c,f=o(e.schema,t),p=e.quote;return!f.overloadedBoolean||n!==f.attribute&&""!==n?(f.boolean||f.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&n!=n?"":(c=l(f.attribute,r(e.entities,{subset:d.name["html"===e.schema.space?e.valid:1][e.safe]})),!0===n?c:(n="object"==typeof n&&"length"in n?(f.commaSeparated?s.stringify:a.stringify)(n,{padLeft:!e.tightLists}):String(n),e.collapseEmpty&&!n?c:(e.unquoted&&(i=l(n,r(e.entities,{subset:d.unquoted[e.valid][e.safe],attribute:!0}))),i!==n&&(e.smart&&u(n,p)>u(n,e.alternative)&&(p=e.alternative),i=p+l(n,r(e.entities,{subset:("'"===p?d.single:d.double)["html"===e.schema.space?e.valid:1][e.safe],attribute:!0}))+p),c+(i?"="+i:i))))}e.exports=function(e,t,n,r){var o,a,s,l=e.schema,u="svg"!==l.space&&e.omit,d=[],p="svg"===l.space?e.closeEmpty:e.voids.indexOf(t.tagName.toLowerCase())>-1;"html"===l.space&&"svg"===t.tagName&&(e.schema=i);o=function(e,t){var n,r,i,o=[],a=-1;for(n in t)null!=t[n]&&(r=f(e,n,t[n]))&&o.push(r);for(;++a<o.length;)i=e.tight?o[a].charAt(o[a].length-1):null,a!==o.length-1&&'"'!==i&&"'"!==i&&(o[a]+=" ");return o.join("")}(e,t.properties),a=c(e,"html"===l.space&&"template"===t.tagName?t.content:t),e.schema=l,a&&(p=!1);!o&&u&&u.opening(t,n,r)||(d.push("<",t.tagName,o?" "+o:""),p&&("svg"===l.space||e.close)&&(s=o.charAt(o.length-1),(!e.tightClose||"/"===s||"svg"===l.space&&s&&'"'!==s&&"'"!==s)&&d.push(" "),d.push("/")),d.push(">"));d.push(a),p||u&&u.closing(t,n,r)||d.push("</"+t.tagName+">");return d.join("")}},function(e,t,n){"use strict";e.exports={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]}},function(e,t,n){"use strict";var r=n(726);e.exports=function(e,t){return e.dangerous?t.value:r(e,t)}},function(e,t,n){"use strict";var r=n(1616),i=n(1623),o=n(62),a=n(1637),s={2:!0,1:!1,0:null};function l(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=o(e,this.data("settings")),n=t.position;n="boolean"!=typeof n||n,this.Parser=function(e,o){var u=t.fragment?"parseFragment":"parse",c=t.emitParseErrors?function(n){var r,i,u=n.code,c=function(e){return e.replace(/-[a-z]/g,l)}(u),d=t[c],f=null==d||d,p="number"==typeof f?f:f?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};p&&(r=a[c]||{reason:"",description:""},(i=o.message(g(r.reason),{start:h,end:m})).source="parse-error",i.ruleId=u,i.fatal=s[p],i.note=g(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+u);function g(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}}:null,d=new i({sourceCodeLocationInfo:n,onParseError:c,scriptingEnabled:!1});return r(d[u](e),{space:t.space,file:o,verbose:t.verbose})}}},function(e,t,n){"use strict";var r=n(328),i=n(266),o=n(330),a=n(1617),s=n(1618),l=n(1621),u=n(62),c=n(267);e.exports=function(e,t){var n,o=t||{};o.messages?(n=o,o={}):n=o.file;return p(e,{schema:"svg"===o.space?i:r,file:n,verbose:o.verbose,location:!1})};var d={}.hasOwnProperty,f={"#document":h,"#document-fragment":h,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function p(e,t){var n,s,l,c=t.schema,h=d.call(f,e.nodeName)?f[e.nodeName]:m;return h===m&&(t.schema=e.namespaceURI===a.svg?i:r),e.childNodes&&(n=function(e,t){var n=e.length,r=-1,i=[];for(;++r<n;)i[r]=p(e[r],t);return i}(e.childNodes,t)),s=h(e,n,t),e.sourceCodeLocation&&t.file&&(l=function(e,t,n){var r,i,a,s,l,c=n.schema,d=n.verbose,f=g(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(f.end=u(r.position.end)),d)){for(a in i=t.attrs,s={},i)l=o(c,a).property,s[l]=g(i[a]);e.data={position:{opening:g(t.startTag),closing:t.endTag?g(t.endTag):null,properties:s}}}return f}(s,e.sourceCodeLocation,t))&&(t.location=!0,s.position=l),t.schema=c,s}function h(e,t,n){var r,i={type:"root",children:t,data:{}};return i.data.quirksMode="quirks"===e.mode||"limited-quirks"===e.mode,n.file&&n.location&&(r=String(n.file),i.position={start:{line:1,column:1,offset:0},end:{line:c(r,"\n")+1,column:r.length-r.lastIndexOf("\n"),offset:r.length}}),i}function m(e,t,n){for(var r,i,o,a,u,c="svg"===n.schema.space?s:l,d=e.tagName,f=e.attrs,h=f.length,m={},v=-1;++v<h;)m[((r=f[v]).prefix?r.prefix+":":"")+r.name]=r.value;return i=c(d,m,t),"template"===d&&"content"in e&&(a=(o=e.sourceCodeLocation)&&o.startTag&&g(o.startTag).end,u=o&&o.endTag&&g(o.endTag).start,i.content=p(e.content,n),(a||u)&&n.file&&(i.content.position={start:a,end:u})),i}function g(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(e){return e.line&&e.column?e:null}},function(e){e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')},function(e,t,n){"use strict";var r=n(266),i=n(1619),o=n(727)(r,"g",i);o.displayName="svg",e.exports=o},function(e){e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o,a=e||"",s=t||"div",l={},u=0;for(;u<a.length;)r.lastIndex=u,o=r.exec(a),(n=a.slice(u,o?o.index:a.length))&&(i?"#"===i?l.id=n:l.className?l.className.push(n):l.className=[n]:s=n,u+=n.length),o&&(i=o[0],u++);return{type:"element",tagName:s,properties:l,children:[]}};var r=/[#.]/g},function(e,t,n){"use strict";e.exports=n(1622)},function(e,t,n){"use strict";var r=n(328),i=n(727)(r,"div");i.displayName="html",e.exports=i},function(e,t,n){"use strict";const r=n(337),i=n(1626),o=n(1627),a=n(1628),s=n(1630),l=n(153),u=n(1633),c=n(1634),d=n(1635),f=n(1636),p=n(462),h=n(461),m=n(224),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},_="IN_TABLE_MODE",w={[g.TR]:"IN_ROW_MODE",[g.TBODY]:"IN_TABLE_BODY_MODE",[g.THEAD]:"IN_TABLE_BODY_MODE",[g.TFOOT]:"IN_TABLE_BODY_MODE",[g.CAPTION]:"IN_CAPTION_MODE",[g.COLGROUP]:"IN_COLUMN_GROUP_MODE",[g.TABLE]:_,[g.BODY]:"IN_BODY_MODE",[g.FRAMESET]:"IN_FRAMESET_MODE"},x={[g.CAPTION]:_,[g.COLGROUP]:_,[g.TBODY]:_,[g.TFOOT]:_,[g.THEAD]:_,[g.COL]:"IN_COLUMN_GROUP_MODE",[g.TR]:"IN_TABLE_BODY_MODE",[g.TD]:"IN_ROW_MODE",[g.TH]:"IN_ROW_MODE"},k={INITIAL_MODE:{[r.CHARACTER_TOKEN]:N,[r.NULL_CHARACTER_TOKEN]:N,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},[r.START_TAG_TOKEN]:N,[r.END_TAG_TOKEN]:N,[r.EOF_TOKEN]:N},BEFORE_HTML_MODE:{[r.CHARACTER_TOKEN]:F,[r.NULL_CHARACTER_TOKEN]:F,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode="BEFORE_HEAD_MODE"):F(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||F(e,t)},[r.EOF_TOKEN]:F},BEFORE_HEAD_MODE:{[r.CHARACTER_TOKEN]:B,[r.NULL_CHARACTER_TOKEN]:B,[r.WHITESPACE_CHARACTER_TOKEN]:R,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:j,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):B(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?B(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:B},IN_HEAD_MODE:{[r.CHARACTER_TOKEN]:q,[r.NULL_CHARACTER_TOKEN]:q,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:j,[r.START_TAG_TOKEN]:z,[r.END_TAG_TOKEN]:U,[r.EOF_TOKEN]:q},IN_HEAD_NO_SCRIPT_MODE:{[r.CHARACTER_TOKEN]:W,[r.NULL_CHARACTER_TOKEN]:W,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:j,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?z(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):W(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode="IN_HEAD_MODE"):n===g.BR?W(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:W},AFTER_HEAD_MODE:{[r.CHARACTER_TOKEN]:H,[r.NULL_CHARACTER_TOKEN]:H,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:j,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode="IN_BODY_MODE"):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),z(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):H(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?H(e,t):n===g.TEMPLATE?U(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:H},IN_BODY_MODE:{[r.CHARACTER_TOKEN]:V,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:re,[r.END_TAG_TOKEN]:se,[r.EOF_TOKEN]:le},TEXT_MODE:{[r.CHARACTER_TOKEN]:L,[r.NULL_CHARACTER_TOKEN]:L,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:R,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:R,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[_]:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:de,[r.EOF_TOKEN]:le},IN_TABLE_TEXT_MODE:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:pe,[r.DOCTYPE_TOKEN]:pe,[r.START_TAG_TOKEN]:pe,[r.END_TAG_TOKEN]:pe,[r.EOF_TOKEN]:pe},IN_CAPTION_MODE:{[r.CHARACTER_TOKEN]:V,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,e._processToken(t)):re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&se(e,t)},[r.EOF_TOKEN]:le},IN_COLUMN_GROUP_MODE:{[r.CHARACTER_TOKEN]:he,[r.NULL_CHARACTER_TOKEN]:he,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?z(e,t):he(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_):n===g.TEMPLATE?U(e,t):n!==g.COL&&he(e,t)},[r.EOF_TOKEN]:le},IN_TABLE_BODY_MODE:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_ROW_MODE"):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode="IN_ROW_MODE",e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&de(e,t)},[r.EOF_TOKEN]:le},IN_ROW_MODE:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ue,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&de(e,t)},[r.EOF_TOKEN]:le},IN_CELL_MODE:{[r.CHARACTER_TOKEN]:V,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode="IN_ROW_MODE"):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&se(e,t)},[r.EOF_TOKEN]:le},IN_SELECT_MODE:{[r.CHARACTER_TOKEN]:L,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:me,[r.END_TAG_TOKEN]:ge,[r.EOF_TOKEN]:le},IN_SELECT_IN_TABLE_MODE:{[r.CHARACTER_TOKEN]:L,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):me(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):ge(e,t)},[r.EOF_TOKEN]:le},IN_TEMPLATE_MODE:{[r.CHARACTER_TOKEN]:V,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)z(e,t);else{const r=x[n]||"IN_BODY_MODE";e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&U(e,t)},[r.EOF_TOKEN]:ve},AFTER_BODY_MODE:{[r.CHARACTER_TOKEN]:ye,[r.NULL_CHARACTER_TOKEN]:ye,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?re(e,t):ye(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):ye(e,t)},[r.EOF_TOKEN]:D},IN_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},[r.EOF_TOKEN]:D},AFTER_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:L,[r.COMMENT_TOKEN]:I,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[r.EOF_TOKEN]:D},AFTER_AFTER_BODY_MODE:{[r.CHARACTER_TOKEN]:be,[r.NULL_CHARACTER_TOKEN]:be,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:M,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?re(e,t):be(e,t)},[r.END_TAG_TOKEN]:be,[r.EOF_TOKEN]:D},AFTER_AFTER_FRAMESET_MODE:{[r.CHARACTER_TOKEN]:R,[r.NULL_CHARACTER_TOKEN]:R,[r.WHITESPACE_CHARACTER_TOKEN]:$,[r.COMMENT_TOKEN]:M,[r.DOCTYPE_TOKEN]:R,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.NOFRAMES&&z(e,t)},[r.END_TAG_TOKEN]:R,[r.EOF_TOKEN]:D}};function E(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ae(e,t),n}function S(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function O(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=C(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function C(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function T(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function A(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function P(e,t){let n;for(let r=0;r<8&&(n=E(e,t),n);r++){const t=S(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=O(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),T(e,i,r),A(e,t,n)}}function R(){}function j(e){e._err(p.misplacedDoctype)}function I(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function M(e,t){e._appendCommentNode(t,e.document)}function L(e,t){e._insertCharacters(t)}function D(e){e.stopped=!0}function N(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function F(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function B(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function z(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):q(e,t)}function U(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===g.BODY||n===g.BR||n===g.HTML?q(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function q(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function W(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function H(e,t){e._insertFakeElement(g.BODY),e.insertionMode="IN_BODY_MODE",e._processToken(t)}function $(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function V(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function G(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function K(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Y(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Q(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function X(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Z(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function J(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function ee(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function te(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function re(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?Y(e,t):n===g.P?G(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(P(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ne(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?G(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let o=null;if(n===g.LI&&i===g.LI?o=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?Y(e,t):n===g.BR?X(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,e.ackSelfClosing=!0}(e,t):n===g.RB?te(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&ne(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?G(e,t):n===g.PRE?K(e,t):n===g.BIG?Y(e,t):n===g.IMG||n===g.WBR?X(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?te(e,t):n!==g.COL&&ne(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?z(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?G(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?Y(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(P(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?X(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&ne(e,t);break;case 5:n===g.STYLE||n===g.TITLE?z(e,t):n===g.ASIDE?G(e,t):n===g.SMALL?Y(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=_}(e,t):n===g.EMBED?X(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?Z(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,X(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ne(e,t);break;case 6:n===g.SCRIPT?z(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?G(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?Y(e,t):n===g.APPLET||n===g.OBJECT?Q(e,t):n===g.KEYGEN?X(e,t):n===g.SOURCE?Z(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===_||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||"IN_ROW_MODE"===e.insertionMode||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===g.OPTION?ee(e,t):ne(e,t);break;case 7:n===g.BGSOUND?z(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?G(e,t):n===g.LISTING?K(e,t):n===g.MARQUEE?Q(e,t):n===g.NOEMBED?J(e,t):n!==g.CAPTION&&ne(e,t);break;case 8:n===g.BASEFONT?z(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===g.FIELDSET?G(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode="TEXT_MODE"}(e,t):n===g.TEMPLATE?z(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?J(e,t):ne(e,t):n===g.OPTGROUP?ee(e,t):n!==g.COLGROUP&&ne(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):ne(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?G(e,t):ne(e,t);break;default:ne(e,t)}}function ie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function oe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ae(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function se(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?P(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):ae(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?ie(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?P(e,t):ae(e,t);break;case 3:n===g.BIG?P(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?ie(e,t):ae(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?P(e,t):n===g.MAIN||n===g.MENU?ie(e,t):ae(e,t);break;case 5:n===g.ASIDE?ie(e,t):n===g.SMALL?P(e,t):ae(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ie(e,t):n===g.APPLET||n===g.OBJECT?oe(e,t):n===g.STRIKE||n===g.STRONG?P(e,t):ae(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?ie(e,t):n===g.MARQUEE?oe(e,t):ae(e,t);break;case 8:n===g.FIELDSET?ie(e,t):n===g.TEMPLATE?U(e,t):ae(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ie(e,t):ae(e,t);break;default:ae(e,t)}}function le(e,t){e.tmplInsertionModeStackTop>-1?ve(e,t):e.stopped=!0}function ue(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):fe(e,t)}function ce(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):fe(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):fe(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):fe(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?z(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,v.HTML):fe(e,t),t.ackSelfClosing=!0}(e,t):fe(e,t);break;case 6:n===g.SCRIPT?z(e,t):fe(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):fe(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===g.TEMPLATE?z(e,t):fe(e,t);break;default:fe(e,t)}}function de(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?U(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&fe(e,t)}function fe(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pe(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)fe(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function he(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=_,e._processToken(t))}function me(e,t){const n=t.tagName;n===g.HTML?re(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||z(e,t)}function ge(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&U(e,t)}function ve(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function ye(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}function be(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}e.exports=class{constructor(e){this.options=c(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,a),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK)&&!i||!this._isIntegrationPoint(t,v.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!i||!this._isIntegrationPoint(t,v.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){k[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){k.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?L(this,e):e.type===r.COMMENT_TOKEN?I(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?f.adjustTokenMathMLAttrs(t):r===v.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=w[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&r===g.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},function(e,t,n){"use strict";const r=n(461),i=n(462),o=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,o.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===o.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===o.CARRIAGE_RETURN)return this.skipNextNewLine=!0,o.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";const r=n(224),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},function(e,t,n){"use strict";class r{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===r.MARKER_ENTRY)break;const s=a.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o&&l.length===n&&t.push({idx:e,attrs:l})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:r.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===r.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===r.ELEMENT_ENTRY&&n.element===e)return n}return null}}r.MARKER_ENTRY="MARKER_ENTRY",r.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=r},function(e,t,n){"use strict";const r=n(153),i=n(337),o=n(728),a=n(1629),s=n(224).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){const n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){const r=t.location,o=this.treeAdapter.getTagName(e);t.type===i.END_TAG_TOKEN&&o===t.tagName?(n.endTag=Object.assign({},r),n.endLine=r.endLine,n.endCol=r.endCol,n.endOffset=r.endOffset):(n.endLine=r.startLine,n.endCol=r.startCol,n.endOffset=r.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a],l=this.treeAdapter.getNodeSourceCodeLocation(s);l?(l.endLine=n.location.endLine,l.endCol=n.location.endCol,l.endOffset=n.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},function(e,t,n){"use strict";const r=n(153);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},function(e,t,n){"use strict";const r=n(463),i=n(1631),o=n(728),a=n(153);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,i,e.opts),a.install(this.tokenizer,o)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},function(e,t,n){"use strict";const r=n(463),i=n(1632),o=n(153);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},function(e,t,n){"use strict";const r=n(463),i=n(729),o=n(153);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(224);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}o(e,i(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,i(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(224),i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],s=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l=s.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function u(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function c(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if("html"!==e.name)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),a.indexOf(n)>-1)return r.QUIRKS;let e=null===t?o:i;if(c(n,e))return r.QUIRKS;if(e=null===t?s:l,c(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+u(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},function(e,t,n){"use strict";const r=n(337),i=n(224),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.ATTRS,l="text/html",u="application/xhtml+xml",c={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},f=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===o.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=c[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=f[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===o.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return t===l||t===u}return t===a.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}(e,t))}},function(e){e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},function(e,t,n){"use strict";var r=n(1639);e.exports=function(e,t){var n,i;return"function"==typeof e?(i=e,n=t||{}):n=e||{},void 0!==n.document&&null!==n.document||(n=Object.assign({},n,{document:!0})),i?function(e,t){return function(n,i,o){e.run(r(n,t),i,(function(e){o(e)}))}}(i,n):function(e){return function(t){return r(t,e)}}(n)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=t||{},f={};return p.nodeById=f,p.baseFound=!1,p.frozenBaseUrl=null,p.wrapText=!0,p.qNesting=0,p.handlers=o.handlers?s(u,o.handlers):u,p.augment=h,p.document=o.document,p.checked=o.checked||"[x]",p.unchecked=o.unchecked||"[ ]",p.quotes=o.quotes||['"'],a(e,"element",(function(e){var t=r(e,"id")&&String(e.properties.id).toUpperCase();t&&!c.call(f,t)&&(f[t]=e)})),i({newlines:!0===o.newlines})(e),n=l(p,e,null),a(n,"text",(function(e,t,n){var r=n.children[t-1];if(r&&e.type===r.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),d(n)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return n.children.splice(t,1),t})),n;function p(e,t,n,r){var i;return!r&&("string"==typeof n||"object"==typeof n&&"length"in n)&&(r=n,n={}),i=s({type:t},n),"string"==typeof r?i.value=r:r&&(i.children=r),h(e,i)}function h(e,t){return e.position&&(t.position=e.position),t}};var r=n(338),i=n(1640),o=n(137),a=n(464),s=n(62),l=n(730),u=n(1647),c=n(339),d=o(["heading","paragraph","root"])},function(e,t,n){"use strict";var r=n(458),i=n(1641),o=n(137),a=n(459),s=n(1642),l=n(1643),u=n(1644);e.exports=function(e){var t=(n=(e||{}).newlines?x:k,function(e){return String(e).replace(/[\t\n\v\f\r ]+/g,n)});var n;return function(e){m(e,{collapse:t,whitespace:"normal"})}};var c=o(["doctype","comment"]),d=o(["element","root"]),f=o(["root"]),p=o(["element"]),h=o(["text"]);function m(e,t){var n;if(d(e))return n=Object.assign({},t),(f(e)||b(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){var n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:return t.whitespace}}(e,t),function(e,t){var n,r=t.before,i=t.after,o=e.children,a=o.length,s=-1;for(;++s<a;)(n=m(o[s],Object.assign({},t,{before:r,after:g(o,s,i)}))).remove?(o.splice(s,1),s--,a--):n.ignore||(r=n.stripAtStart),y(o[s])&&(r=!1);return{remove:!1,ignore:!1,stripAtStart:r||i}}(e,n);if(h(e)){if("normal"===t.whitespace)return function(e,t){var n=t.collapse(e.value),r=0,i=n.length,o={remove:!1,ignore:!1,stripAtStart:!1};t.before&&w(n.charAt(0))&&r++;r!==i&&w(n.charAt(i-1))&&(t.after?i--:o.stripAtStart=!0);r===i?o.remove=!0:e.value=n.slice(r,i);return o}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:c(e),stripAtStart:!1}}function g(e,t,n){for(var r,i,o=e.length;++t<o;)if(void 0===(i=v(r=e[t]))&&r.children&&!_(r)&&(i=g(r.children,-1)),"boolean"==typeof i)return i;return n}function v(e){if(p(e)){if(y(e))return!1;if(b(e))return!0}else if(h(e)){if(!a(e))return!1}else if(!c(e))return!1}function y(e){return i(e)||r(e,l)}function b(e){return r(e,s)}function _(e){var t=e.properties||{};return c(e)||r(e,u)||t.hidden}function w(e){return" "===e||"\n"===e}function x(e){var t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function k(){return" "}},function(e,t,n){"use strict";var r=n(128);e.exports=r(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"])},function(e,t){e.exports=["br","wbr","li","table","caption","colgroup","col","thead","tbody","tfoot","tr","td","th","summary","optgroup","option","html","head","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul","li","th","td"]},function(e,t){e.exports=["button","input","select","textarea"]},function(e,t){e.exports=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"]},function(e,t,n){"use strict";e.exports=o;var r=n(137),i=n(1646);function o(e,t,n,o){var a,s;"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),s=r(t),a=o?-1:1,function e(r,l,u){var c,d="object"==typeof r&&null!==r?r:{};"string"==typeof d.type&&(c="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0,f.displayName="node ("+i(d.type+(c?"<"+c+">":""))+")");return f;function f(){var i,c,d=u.concat(r),f=[];if((!t||s(r,l,u[u.length-1]||null))&&!1===(f=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[!0,e];return[e]}(n(r,u)))[0])return f;if(r.children&&"skip"!==f[0])for(c=(o?r.children.length:-1)+a;c>-1&&c<r.children.length;){if(!1===(i=e(r.children[c],c,d)())[0])return i;c="number"==typeof i[1]?i[1]:c+a}return f}}(e,null,[])()}o.CONTINUE=!0,o.SKIP="skip",o.EXIT=!1},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(84),i=n(465),o=n(1649),a=n(1650),s=n(1651),l=n(1652),u=n(1654),c=n(1655),d=n(1656),f=n(1657),p=n(1658),h=n(1659),m=n(1660),g=n(1661),v=n(1662),y=n(1663),b=n(1664),_=n(1665),w=n(1666),x=n(1667),k=n(1668),E=n(1669),S=n(1670),O=n(1671),C=n(1672),T=n(1673),A=n(1674),P=n(1675),R=n(1676),j=n(1677),I=n(1678);function M(){}t.root=E,t.text=P,t.comment=u,t.doctype=M,t.applet=M,t.area=M,t.basefont=M,t.bgsound=M,t.caption=M,t.col=M,t.colgroup=M,t.command=M,t.content=M,t.datalist=M,t.dialog=M,t.element=M,t.embed=M,t.frame=M,t.frameset=M,t.isindex=M,t.keygen=M,t.link=M,t.math=M,t.menu=M,t.menuitem=M,t.meta=M,t.nextid=M,t.noembed=M,t.noframes=M,t.optgroup=M,t.option=M,t.param=M,t.script=M,t.shadow=M,t.source=M,t.spacer=M,t.style=M,t.svg=M,t.template=M,t.title=M,t.track=M,t.abbr=r,t.acronym=r,t.bdi=r,t.bdo=r,t.big=r,t.blink=r,t.button=r,t.canvas=r,t.cite=r,t.data=r,t.details=r,t.dfn=r,t.font=r,t.ins=r,t.label=r,t.map=r,t.marquee=r,t.meter=r,t.nobr=r,t.noscript=r,t.object=r,t.output=r,t.progress=r,t.rb=r,t.rbc=r,t.rp=r,t.rt=r,t.rtc=r,t.ruby=r,t.slot=r,t.small=r,t.span=r,t.sup=r,t.sub=r,t.tbody=r,t.tfoot=r,t.thead=r,t.time=r,t.address=i,t.article=i,t.aside=i,t.body=i,t.center=i,t.div=i,t.fieldset=i,t.figcaption=i,t.figure=i,t.form=i,t.footer=i,t.header=i,t.hgroup=i,t.html=i,t.legend=i,t.main=i,t.multicol=i,t.nav=i,t.picture=i,t.section=i,t.a=y,t.audio=w,t.b=O,t.base=o,t.blockquote=a,t.br=s,t.code=g,t.dir=_,t.dl=d,t.dt=b,t.dd=b,t.del=c,t.em=f,t.h1=p,t.h2=p,t.h3=p,t.h4=p,t.h5=p,t.h6=p,t.hr=j,t.i=f,t.iframe=h,t.img=m,t.image=m,t.input=v,t.kbd=g,t.li=b,t.listing=l,t.mark=f,t.ol=_,t.p=x,t.plaintext=l,t.pre=l,t.q=k,t.s=c,t.samp=g,t.select=S,t.strike=c,t.strong=O,t.summary=x,t.table=A,t.td=C,t.textarea=R,t.th=C,t.tr=T,t.tt=g,t.u=f,t.ul=_,t.var=g,t.video=w,t.wbr=I,t.xmp=l},function(e,t,n){"use strict";var r=n(137)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);r.displayName="isPhrasing",e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){e.baseFound||(e.frozenBaseUrl=t.properties.href,e.baseFound=!0)}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(e,t))};var r=n(465)},function(e,t,n){"use strict";e.exports=function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,c=t.children,d=-1;if(l(t))for(;++d<c.length;)if(u(c[d])&&r(c[d],"className")){n=c[d].properties.className;break}if(n)for(d=-1;++d<n.length;)if("language-"===n[d].slice(0,"language-".length)){i=n[d].slice("language-".length);break}return e(t,"code",{lang:i||null,meta:null},a(s(e,o(t))))};var r=n(338),i=n(128),o=n(340),a=n(335),s=n(138),l=i("pre"),u=i("code")},function(e,t,n){"use strict";var r=n(137);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"html","\x3c!--"+r(e,t.value)+"--\x3e")};var r=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"delete",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o=t.children,c=-1,d=[],f=[],p={titles:[],definitions:[]};for(;++c<o.length;)r=o[c],d=d.concat(a(r)?r.children:r);c=-1;for(;++c<d.length;)r=d[c],s(r)?(l(d[c-1])&&(f.push(p),p={titles:[],definitions:[]}),p.titles.push(r)):p.definitions.push(r);f.push(p),c=-1,n=[];for(;++c<f.length;)(p=u(e,f[c].titles).concat(u(e,f[c].definitions))).length&&n.push({type:"listItem",spread:p.length>1,checked:null,children:p});if(n.length)return e(t,"list",{ordered:!1,start:null,spread:i(n)},n)};var r=n(128),i=n(732),o=n(733),a=r("div"),s=r("dt"),l=r("dd");function u(e,t){var n=o(e,{children:t});return n.length?1===n.length?n[0].children:[{type:"list",ordered:!1,start:null,spread:i(n),children:n}]:n}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"emphasis",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=Number(t.tagName.charAt(1))||1,o=e.wrapText;return e.wrapText=!1,n=e(t,"heading",{depth:i},r(e,t)),e.wrapText=o,n};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.properties.src,o=t.properties.title;if(n&&o)return{type:"link",title:null,url:r(e,n),children:[{type:"text",value:i(e,o)}]}};var r=n(270),i=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"image",{url:r(e,t.properties.src),title:t.properties.title||null,alt:t.properties.alt||""})};var r=n(270)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"inlineCode",i(e,r(t)))};var r=n(340),i=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=t.properties,c=r.value||r.placeholder,d=[],f=[],p=-1;if(r.disabled||"hidden"===r.type||"file"===r.type)return;if("checkbox"===r.type||"radio"===r.type)return e(t,"text",l(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||c?e(t,"image",{url:s(e,r.src),title:r.title&&l(e,r.title)||null,alt:l(e,r.alt||c)}):[];c?f=[[c]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(n=String(r.list).toUpperCase(),a.call(e.nodeById,n)&&u(e.nodeById[n])&&(f=o(e,e.nodeById[n],r)));if(!f.length)return;"password"===r.type&&(f[0]=[i("•",f[0][0].length)]);if("url"===r.type||"email"===r.type){for(;++p<f.length;)c=s(e,f[p][0]),d.push(e(t,"link",{title:null,url:l(e,"email"===r.type?"mailto:"+c:c)},[{type:"text",value:l(e,f[p][1]||c)}])),p!==f.length-1&&d.push({type:"text",value:", "});return d}for(;++p<f.length;)d.push(f[p][1]?f[p][1]+" ("+f[p][0]+")":f[p][0]);return e(t,"text",l(e,d.join(", ")))};var r=n(128),i=n(77),o=n(734),a=n(339),s=n(270),l=n(138),u=r("datalist")},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"link",{title:t.properties.title||null,url:i(e,t.properties.href)},r(e,t))};var r=n(84),i=n(270)},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,l,u,c=t.children[0],d=null;a(c)&&(r=c.children[0],!s(r)||"checkbox"!==r.properties.type&&"radio"!==r.properties.type||(d=Boolean(r.properties.checked),(u=i(c)).children=c.children.slice(1),(l=i(t)).children=[u].concat(t.children.slice(1))));return n=o(e,l||t),e(t,"listItem",{spread:n.length>1,checked:d},n)};var r=n(128),i=n(731),o=n(465),a=r("p"),s=r("input")},function(e,t,n){"use strict";e.exports=function(e,t){var n=s(t),r=a(e,t),l=null;n&&(l=i(t,"start")?t.properties.start:1);return e(t,"list",{ordered:n,start:l,spread:o(r)},r)};var r=n(128),i=n(338),o=n(732),a=n(733),s=r("ol")},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=a(e,t),d=c(t)&&t.properties.poster,f=t.properties.src,p=-1;if(o({type:"root",children:r},"link",(function(){return n=!0,o.EXIT})),n||l.needed(r))return r;for(;!f&&++p<t.children.length;)u(t.children[p])&&(f=t.children[p].properties.src);d&&(r=[{type:"image",title:null,url:s(e,d),alt:i({children:r})}]);return{type:"link",title:t.properties.title||null,url:s(e,f),children:r}};var r=n(128),i=n(341),o=n(464),a=n(84),s=n(270),l=n(466),u=r("source"),c=r("video")},function(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t);if(n.length)return e(t,"paragraph",n)};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.quotes[e.qNesting%e.quotes.length];return e.qNesting++,n=r(e,t),e.qNesting--,n.unshift({type:"text",value:i.charAt(0)}),n.push({type:"text",value:i.length>1?i.charAt(1):i}),n};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n=r(e,t);(e.document||i.needed(n))&&(n=i(n));return e(t,"root",n)};var r=n(84),i=n(466)},function(e,t,n){"use strict";e.exports=function(e,t){var n,o=r(e,t),a=-1,s=[];for(;++a<o.length;)n=o[a],s.push(n[1]?n[1]+" ("+n[0]+")":n[0]);if(s.length)return e(t,"text",i(e,s.join(", ")))};var r=n(734),i=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.wrapText;return e.wrapText=!1,n=e(t,"tableCell",r(e,t)),e.wrapText=i,n};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"tableRow",r(e,t))};var r=n(84)},function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e){var t=!0,n=[null],r=0,o=0;return i(e,"element",(function(e){a(e)?t=!1:s(e)?(r++,o=0):l(e)&&(n[o]||(n[o]=e.properties.align||null),t&&r<2&&"th"===e.tagName&&(t=!1),o++)})),{align:n,headless:t}}(t);return e(t,"table",{align:n.align},function(e,t){var n,r,i=[],o=-1;t.headless&&i.push({type:"tableRow",children:[]});for(;++o<e.length;)"tableRow"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));r&&((n=i[i.length-1]).children=n.children.concat(r));o=-1;for(;++o<i.length;)(n=i[o]).children=u(n.children,t);return i}(o(e,t),n))};var r=n(128),i=n(464),o=n(84),a=r("thead"),s=r("tr"),l=r(["th","td"]);function u(e,t){for(var n,r,i=[],o=-1;++o<e.length;)"tableCell"===(n=e[o]).type?(r&&(n.children=r.concat(n.children),r=void 0),i.push(n)):(r||(r=[]),r.push(n));for(r&&((n=i[i.length-1])||(n={type:"tableCell",children:[]},i.push(n)),n.children=n.children.concat(r)),o=i.length-1;++o<t.align.length;)i.push({type:"tableCell",children:[]});return i}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text",r(e,t.value))};var r=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text",i(e,r(t)))};var r=n(340),i=n(138)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"thematicBreak")}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"text","")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{plugins:t,getAsset:n,resolveWidget:l}=e;return function(e){const t=(0,i.default)(e.children,u);return c(c({},e),{},{children:t})};function u(e){if(!(0,r.default)(e,["data","shortcode"]))return e;const{shortcode:i,shortcodeData:u}=e.data,d=function(e,t){const{toPreview:r,widget:i,fields:a}=e;if(r)return r(t,n,a);const s=l(i);return o.default.createElement(s.preview,{value:t,field:e,getAsset:n})}(t.get(i),u),f="string"==typeof d?d:(0,a.renderToString)(d),p=[(0,s.default)("html",f)];return c(c({},e),{},{children:p})}};var r=l(n(735)),i=l(n(167)),o=l(n(0)),a=n(1681),s=l(n(72));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){"use strict";e.exports=n(1682)},function(e,t,n){"use strict";
/** @license React v16.14.0
* react-dom-server.browser.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 r=n(207),i=n(0);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,_=a?Symbol.for("react.fundamental"):60117,w=a?Symbol.for("react.scope"):60119;function x(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case s:return"Portal";case c:return"Profiler";case u:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case v:return x(e.type);case b:return x(e.render);case y:if(e=1===e._status?e._result:null)return x(e)}return null}var k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;k.hasOwnProperty("ReactCurrentDispatcher")||(k.ReactCurrentDispatcher={current:null}),k.hasOwnProperty("ReactCurrentBatchConfig")||(k.ReactCurrentBatchConfig={suspense:null});var E={};function S(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var O=new Uint16Array(16),C=0;15>C;C++)O[C]=C+1;O[15]=0;var T=/^[: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]*$/,A=Object.prototype.hasOwnProperty,P={},R={};function j(e){return!!A.call(R,e)||!A.call(P,e)&&(T.test(e)?R[e]=!0:(P[e]=!0,!1))}function I(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){M[e]=new I(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];M[t]=new I(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){M[e]=new I(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){M[e]=new I(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){M[e]=new I(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){M[e]=new I(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){M[e]=new I(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){M[e]=new I(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){M[e]=new I(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function D(e){return e[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(e){var t=e.replace(L,D);M[t]=new I(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,D);M[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,D);M[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){M[e]=new I(e,1,!1,e.toLowerCase(),null,!1)})),M.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){M[e]=new I(e,1,!1,e.toLowerCase(),null,!0)}));var N=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=N.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}function B(e,t){var n,r=M.hasOwnProperty(e)?M[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):j(e)?e+'="'+F(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,q=null,W=null,H=!1,$=!1,V=null,G=0;function K(){if(null===U)throw Error(o(321));return U}function Y(){if(0<G)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Q(){return null===W?null===q?(H=!1,q=W=Y()):(H=!0,W=q):null===W.next?(H=!1,W=W.next=Y()):(H=!0,W=W.next),W}function X(e,t,n,r){for(;$;)$=!1,G+=1,W=null,n=e(t,r);return q=U=null,G=0,W=V=null,n}function Z(e,t){return"function"==typeof t?t(e):t}function J(e,t,n){if(U=K(),W=Q(),H){var r=W.queue;if(t=r.dispatch,null!==V&&void 0!==(n=V.get(r))){V.delete(r),r=W.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return W.memoizedState=r,[r,t]}return[W.memoizedState,t]}return e=e===Z?"function"==typeof t?t():t:void 0!==n?n(t):t,W.memoizedState=e,e=(e=W.queue={last:null,dispatch:null}).dispatch=ee.bind(null,U,e),[W.memoizedState,e]}function ee(e,t,n){if(!(25>G))throw Error(o(301));if(e===U)if($=!0,e={action:n,next:null},null===V&&(V=new Map),void 0===(n=V.get(t)))V.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return S(e,t),e[t]},useContext:function(e){K();var t=ne;return S(e,t),e[t]},useMemo:function(e,t){if(U=K(),t=void 0===t?null:t,null!==(W=Q())){var n=W.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!z(t[i],r[i])){r=!1;break e}r=!0}}if(r)return n[0]}}return e=e(),W.memoizedState=[e,t],e},useReducer:J,useRef:function(e){U=K();var t=(W=Q()).memoizedState;return null===t?(e={current:e},W.memoizedState=e):t},useState:function(e){return J(Z,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},ie="http://www.w3.org/1999/xhtml";function oe(e){switch(e){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"}}var ae={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},se=r({menuitem:!0},ae),le={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},ue=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ce=/([A-Z])/g,de=/^ms-/,fe=i.Children.toArray,pe=k.ReactCurrentDispatcher,he={listing:!0,pre:!0,textarea:!0},me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ge={},ve={};var ye=Object.prototype.hasOwnProperty,be={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function _e(e,t){if(void 0===e)throw Error(o(152,x(t)||"Component"))}function we(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&("object"==typeof(r=e.contextType)&&null!==r))return S(r,n),r[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=E;return t}(a,t,n,s),u=[],c=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(s){if(s=new a(i.props,l,d),"function"==typeof a.getDerivedStateFromProps){var f=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=f&&(s.state=r({},s.state,f))}}else if(U={},s=a(i.props,l,d),null==(s=X(a,i.props,s,l))||null==s.render)return void _e(e=s,a);if(s.props=i.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),u.length){d=u;var p=c;if(u=null,c=!1,p&&1===d.length)s.state=d[0];else{f=p?d[0]:s.state;var h=!0;for(p=p?1:0;p<d.length;p++){var m=d[p];null!=(m="function"==typeof m?m.call(s,f,i.props,l):m)&&(h?(h=!1,f=r({},f,m)):r(f,m))}s.state=f}}else u=null;if(_e(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var v in g)if(!(v in i))throw Error(o(108,x(a)||"Unknown",v))}g&&(t=r({},t,g))}for(;i.isValidElement(e);){var s=e,l=s.type;if("function"!=typeof l)break;a(s,l)}return{child:e,context:t}}var xe=function(){function e(e,t){i.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=i.isValidElement(e)?[e]:fe(e)):e=fe(e),e={type:null,domNamespace:ie,children:e,childIndex:0,context:E,footer:""};var n=O[0];if(0===n){var r=O,a=2*(n=r.length);if(!(65536>=a))throw Error(o(304));var s=new Uint16Array(a);for(s.set(r),(O=s)[0]=n+1,r=n;r<a-1;r++)O[r]=r+1;O[a-1]=0}else O[0]=O[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;O[e]=O[0],O[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;S(n,r);var i=n[r];this.contextStack[t]=n,this.contextValueStack[t]=i,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=pe.current;pe.current=re;try{for(var r=[""],i=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;O[a]=O[0],O[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===d)this.popProvider(s.type);else if(s.type===m){this.suspenseDepth--;var u=r.pop();if(i){i=!1;var c=s.fallbackFrame;if(!c)throw Error(o(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=u}r[this.suspenseDepth]+=l}else{var f=s.children[s.childIndex++],p="";try{p+=this.render(f,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(o(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=we(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw Error(o(257));throw Error(o(258,n.toString()))}return e=fe(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case u:case p:case c:case g:case l:return e=fe(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case m:throw Error(o(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:U={};var b=a.render(e.props,e.ref);return b=X(a.render,e.props,b,e.ref),b=fe(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case v:return e=[i.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case d:return n={type:e,domNamespace:n,children:a=fe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:a=e.type,b=e.props;var x=this.threadID;return S(a,x),a=fe(b.children(a[x])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case _:throw Error(o(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[i.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(o(295))}case w:throw Error(o(343))}throw Error(o(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===ie&&oe(a),!ge.hasOwnProperty(a)){if(!me.test(a))throw Error(o(65,a));ge[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var u=s.children;if(null!=u){if(null!=l)throw Error(o(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(o(93));u=u[0]}l=""+u}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=u){var d=null!=s.value?s.value+"":c;if(l=!1,Array.isArray(u)){for(var f=0;f<u.length;f++)if(""+u[f]===d){l=!0;break}}else l=""+u===d;s=r({selected:void 0,children:void 0},s,{selected:l,children:c})}}if(l=s){if(se[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(o(137,a,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(o(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(o(62,""))}for(_ in l=s,u=this.makeStaticMarkup,c=1===this.stack.length,d="<"+e.type,l)if(ye.call(l,_)){var p=l[_];if(null!=p){if("style"===_){f=void 0;var h="",m="";for(f in p)if(p.hasOwnProperty(f)){var g=0===f.indexOf("--"),v=p[f];if(null!=v){if(g)var y=f;else if(y=f,ve.hasOwnProperty(y))y=ve[y];else{var b=y.replace(ce,"-$1").toLowerCase().replace(de,"-ms-");y=ve[y]=b}h+=m+y+":",m=f,h+=g=null==v||"boolean"==typeof v||""===v?"":g||"number"!=typeof v||0===v||le.hasOwnProperty(m)&&le[m]?(""+v).trim():v+"px",m=";"}}p=h||null}f=null;e:if(g=a,v=l,-1===g.indexOf("-"))g="string"==typeof v.is;else switch(g){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":g=!1;break e;default:g=!0}g?be.hasOwnProperty(_)||(f=j(f=_)&&null!=p?f+'="'+F(p)+'"':""):f=B(_,p),f&&(d+=" "+f)}}u||c&&(d+=' data-reactroot=""');var _=d;l="",ae.hasOwnProperty(a)?_+="/>":(_+=">",l="</"+e.type+">");e:{if(null!=(u=s.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=s.children)||"number"==typeof u){u=F(u);break e}u=null}return null!=u?(s=[],he.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(_+="\n"),_+=u):s=fe(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?oe(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,_},e}(),ke={renderToString:function(e){e=new xe(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new xe(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(o(207))},renderToStaticNodeStream:function(){throw Error(o(208))},version:"16.14.0"};e.exports=ke.default||ke},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return"img"===t.tagName&&t.properties.dataEmojiCh?{type:"text",value:t.properties.dataEmojiCh}:(t.children=t.children?t.children.map(e):t.children,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){const n=function(e){const t=["paragraph","heading","code","blockquote","list","table","thematicBreak"],n=["root","blockquote","listItem","tableCell"];let i;return(0,s.default)(e,(e,s)=>{const l=!(0,r.default)(s)&&(0,o.default)(s).type;if(t.includes(e.type)&&!n.includes(l))return i=(0,a.default)(s,e),!1}),i}(t);return n?(function(e,t){const n=(0,i.default)(t,-3)||e,s=(0,i.default)(t,-2),l=(0,o.default)(t),u=n.children.indexOf(s),d=n.children,f=s.children.indexOf(l),p=s.children.slice(0,f),h=s.children.slice(f+1),m=!(0,r.default)(p)&&c(c({},s),{},{children:p}),g=!(0,r.default)(h)&&c(c({},s),{},{children:h}),v=[m,l,g].filter(e=>!(0,r.default)(e)),y=d.slice(0,u),b=d.slice(u+1),_=(0,a.default)(y,v,b);n.children=_}(t,n),e(t)):t}};var r=l(n(135)),i=l(n(1685)),o=l(n(194)),a=l(n(1687)),s=l(n(698));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(1686),i=n(134);e.exports=function(e,t){return e&&e.length?r(e,i(t)):void 0}},function(e,t,n){var r=n(211);e.exports=function(e,t){var n=e.length;if(n)return r(t+=t<0?n:0,n)?e[t]:void 0}},function(e,t,n){var r=n(294),i=n(242),o=n(216),a=n(49);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return r(a(n)?o(n):[n],i(t,1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){if("link"!==e.type)return e;const n=(0,d.default)(e),r=(0,s.default)(n," ")&&t(e),l=(0,a.default)(n," ")&&t(e,!0);if(!r&&!l)return e;r&&(r.value=(0,o.default)(r.value)),l&&(l.value=(0,i.default)(l.value));return[r&&(0,c.default)("text"," "),e,l&&(0,c.default)("text"," ")].filter(e=>e)}function t(e,t){let n,r;return n=t?l.default:u.default,function e(t){!r&&t.value&&(r=t);n(t.children,e)}(e),r}return function t(n){if(!n.children)return n;const i=(n.children.some(e=>"link"===e.type)?(0,r.default)(n.children,e):n.children).map(t);return h(h({},n),{},{children:i})}};var r=f(n(736)),i=f(n(168)),o=f(n(123)),a=f(n(1689)),s=f(n(610)),l=f(n(1690)),u=f(n(451)),c=f(n(72)),d=f(n(341));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(611),i=n(192),o=n(134),a=n(133);e.exports=function(e,t,n){e=a(e),t=i(t);var s=e.length,l=n=void 0===n?s:r(o(n),0,s);return(n-=t.length)>=0&&e.slice(n,l)==t}},function(e,t,n){var r=n(684)(n(1691));e.exports=r},function(e,t,n){var r=n(394),i=n(109),o=n(134),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var u=l-1;return void 0!==n&&(u=o(n),u=n<0?a(l+u,0):s(u,l-1)),r(e,i(t,3),u,!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return e.children=e.children.map(e=>"html"===e.type?(0,i.default)("paragraph",[e]):e),e}};var r,i=(r=n(72))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let{voidCodeBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t;function t(e){let n=!["strong","emphasis","delete"].includes(e.type)&&!(0,l.default)(e.children)&&(0,a.default)(e.children,t).filter(e=>e);Array.isArray(n)&&(n=v(n),n=y(n));return g(e,n||void 0)}function n(e,t){return t?d(d({},e),{},{nodes:t}):e}function r(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,s.default)(t)||(r=t,t=void 0);const i=(0,l.default)(t)?[c("")]:t,o=d({object:"block",type:e},r);return n(o,i)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const i=d({object:"inline",type:e},t),o=(0,l.default)(r)?[c("")]:r;return n(i,o)}function c(e){const t={object:"text"};if("string"==typeof e)return d(d({},t),{},{text:e});const{text:n,marks:r}=e;return d(d({},t),{},{text:n,marks:r})}function f(e,n){switch(e.type){case"html":case"text":return d(d({},g(e)),{},{marks:n});case"inlineCode":{const t=[...n,{type:h[e.type]}];return d(d({},g(e)),{},{marks:t})}case"strong":case"emphasis":case"delete":return m(e,n);case"link":{const t=(0,o.default)(e.children,e=>f(e,n));return g(e,(0,i.default)(t))}default:return t(d(d({},e),{},{data:d(d({},e.data),{},{marks:n})}))}}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=h[e.type],r=n?[...t.filter(e=>{let{type:t}=e;return t!==n}),{type:n}]:t,i=(0,a.default)(e.children,e=>f(e,r));return i}function g(t,n){switch(t.type){case"root":case"paragraph":case"blockquote":case"tableRow":case"tableCell":return r(p[t.type],n);case"listItem":{const e=(0,l.default)(n)?[r("paragraph")]:n;return r(p[t.type],e)}case"shortcode":{const e=[c("")],n=d({},t.data);return r(p[t.type],e,{data:n})}case"text":return c(t.value);case"html":return c(t.value);case"inlineCode":return c({text:t.value,marks:[{type:"code"}]});case"strong":case"emphasis":case"delete":return m(t);case"heading":return r("heading-"+{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.depth],n);case"code":{const n=d({lang:t.lang},e?{code:t.value}:{}),i=[c(e?"":t.value)];return r(p[t.type],i,{data:n})}case"list":return r(t.ordered?"numbered-list":"bulleted-list",n,{data:{start:t.start}});case"break":{const{data:e}=t;return u("break",{data:e})}case"thematicBreak":return r(p[t.type]);case"link":{const{title:e,url:r,data:i}=t,o=d(d({},i),{},{title:e,url:r});return u(p[t.type],{data:o},n)}case"image":{const{title:e,url:n,alt:r,data:i}=t,o=d(d({},i),{},{title:e,alt:r,url:n});return u(p[t.type],{data:o})}case"table":{const e={align:t.align};return r(p[t.type],n,{data:e})}}}},t.mergeAdjacentTexts=y,t.wrapInlinesWithTexts=v;var r=u(n(258)),i=u(n(245)),o=u(n(167)),a=u(n(736)),s=u(n(49)),l=u(n(135));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={root:"root",paragraph:"paragraph",blockquote:"quote",code:"code-block",listItem:"list-item",table:"table",tableRow:"table-row",tableCell:"table-cell",thematicBreak:"thematic-break",link:"link",image:"image",shortcode:"shortcode"},h={strong:"bold",emphasis:"italic",delete:"strikethrough",inlineCode:"code"};function m(e){return"inline"===e.object}function g(e){return"text"===e.object}function v(e){if(e.length<=0)return e;const t=[];let n=e[0];m(n)&&t.push(0);for(let r=1;r<e.length;r++){const i=e[r];(m(n)&&!g(i)||!g(n)&&m(i))&&t.push(r),n=i}m(n)&&t.push(e.length);for(let n=0;n<t.length;n++)e.splice(t[n]+n,0,{object:"text",text:""});return e}function y(e){if(e.length<=0)return e;const t=[];let n,i=!1;for(let s=0;s<e.length-1;s++){i||(n=e[s]);const l=e[s+1];g(n)&&g(l)&&(o=n,a=l,(0,r.default)(o.marks,a.marks))?(i=!0,n=d(d({},n),{},{text:`${n.text}${l.text}`})):(t.push(n),i=!1)}var o,a;return i?t.push(n):t.push(e[e.length-1]),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(t){const n=(0,a.default)(t);return e.call(null,n,t)};function e(t,n){const a=e.bind(null,t),s=n.children?n.children.map(a):n.children;if(["imageReference","linkReference"].includes(n.type)){const e="imageReference"===n.type?"image":"link",r=t(n.identifier);if(r){const{title:t,url:i}=r;return(0,o.default)(e,{title:t,url:i,alt:n.alt},s)}const i=(0,o.default)("text","imageReference"===n.type?"![":"["),a=(0,o.default)("text","]");return[i,...s||[(0,o.default)("text",n.alt)],a]}if("definition"===n.type)return null;const l=(0,i.default)(s,null);return u(u({},n),{},{children:(0,r.default)(l)})}};var r=s(n(245)),i=s(n(737)),o=s(n(72)),a=s(n(711));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(292),i=n(301),o=n(397),a=n(143),s=n(190),l=n(293);e.exports=function(e,t,n,u){var c=-1,d=i,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),u?(d=o,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++c<p;){var g=e[c],v=null==n?g:n(g);if(g=u||0!==g?g:0,f&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,u)||h.push(g)}return h}},function(e,t,n){"use strict";function r(e){return e.split("\n\n").reduce((e,t)=>{const{start:n,originalLength:r}=e[e.length-1];return[...e,{line:t.trimEnd(),start:n+r+"\n\n".length,originalLength:t.length}]},[{start:-"\n\n".length,originalLength:0}]).slice(1).map(e=>{let{line:t,start:n}=e;return{line:t,start:n}})}function i(e){let{trimmedLines:t,plugin:n}=e;for(const{line:e,start:r}of t){const t=e.match(n.pattern);if(t)return t.index+=r,t}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRemarkShortcodeStringifier=function(e){let{plugins:t}=e;return function(){this.Compiler.prototype.visitors.shortcode=function(e){const{data:n}=e;return t.find(e=>n.shortcode===e.id).toBlock(n.shortcodeData)}}},t.getLinesWithOffsets=r,t.remarkParseShortcodes=function(e){let{plugins:t}=e;const n=this.Parser,o=n.prototype.blockTokenizers,a=n.prototype.blockMethods;o.shortcode=function(e){let{plugins:t}=e;return function(e,n,o){const a=r(n),[{plugin:s,match:l}={}]=t.toArray().map(e=>({match:n.match(e.pattern)||i({trimmedLines:a,plugin:e}),plugin:e})).filter(e=>{let{match:t}=e;return!!t}).sort((e,t)=>e.match.index-t.match.index);if(l){if(o)return!0;const t=s.fromBlock(l);try{return e(l[0])({type:"shortcode",data:{shortcode:s.id,shortcodeData:t}})}catch(e){return console.warn(`Sent invalid data to remark. Plugin: ${s.id}. Value: ${l[0]}. Data: ${JSON.stringify(t)}`),!1}}}}({plugins:t}),a.unshift("shortcode")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t,n){if((0,a.default)(t.data,"shortcode"))return t;const r=t.children?{children:t.children.map(e)}:{};if(["text","html"].includes(t.type)){const e=0===n?function(e){return e.replace(/^\s*([-#*>=|]| {4,}|`{3,})/,"$`\\$1")}(y(t.value)):y(t.value);return c(c({},t),{},{value:e},r)}return c(c({},t),r)}};var r=l(n(167)),i=l(n(173)),o=l(n(146)),a=l(n(735)),s=n(1698);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={htmlOpeningTagEnd:/(?: *\w+=(?:(?:"[^"]*")|(?:'[^']*')))* *>/},p={htmlTags:[/<(?!pre|style|script)[\w]+/,f.htmlOpeningTagEnd],preformattedHtmlBlocks:[/<(pre|style|script)/,f.htmlOpeningTagEnd,/(.|[\n\r])*?/,/<\/\1>/]},h=(0,r.default)(p,e=>new RegExp((0,s.joinPatternSegments)(e))),m=(0,s.combinePatterns)(h),g=[/(\*+)[^*]*(\1)/g,/(_)[^_]+(_)\b/g,/(_{2,})[^_]*(\1)/g,/(~+)[^~]*(\1)/g,/(`+)[^`]*(\1)/g,/(\[(?!\^)+)[^\]]*]/g].map(e=>(0,i.default)(b,e)),v=(0,o.default)(g);function y(e){const t=new RegExp(m,"gm");return(0,s.replaceWhen)(t,v,e,!0)}function b(e,t){return t.replace(e,(e,t,n)=>{const r="string"==typeof n,i=r?e.length-n.length:e.length,o=e.slice(t.length,i);return`${_(t)}${o}${r?_(n):""}`})}function _(e){let t="";for(const n of e)t+="\\"+n;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combinePatterns=function(e){return e.map(e=>`(?:${e.source})`).join("|")},t.joinPatternSegments=function(e){return e.map(e=>e.source).join("")},t.replaceWhen=function(e,t,n,r){function o(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.push({index:t,text:n,match:r})}const a=function e(t,n,r){const a=t.exec(n),s=(0,i.default)(r);if(!a)return r;if(0===a.index)o(r,0,a[0],!0);else if(s)if(a.index===s.index+s.text.length)o(r,a.index,a[0],!0);else{const e=s.index+s.text.length;o(r,e,a.input.slice(e,a.index)),o(r,a.index,a[0],!0)}else o(r,0,a.input.slice(0,a.index)),o(r,a.index,a[0],!0);return e(t,n,r)}(e,n,[]),s=(0,i.default)(a);if(!s)return t(n);const l=s.index+s.text.length;n.length>l&&a.push({index:l,text:n.slice(l)});return a.map(e=>(r?!e.match:e.match)?t(e.text):e.text).join("")};var r,i=(r=n(194))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function e(t){return t.children&&(t.children=t.children.map((e,t,n)=>{if("break"===e.type){const r={type:"root",children:n.slice(t+1)};return(0,i.default)(r).trim()?e:null}return e}).filter(e=>e).map(e)),t}};var r,i=(r=n(341))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.Parser.prototype.inlineTokenizers.text=function(e,t,n){var r,i,o,a,s,l,u,c,d;if(n)return!0;for(a=(r=this.inlineMethods).length,i=this.inlineTokenizers,o=-1,d=t.length;++o<a;)"text"!==(c=r[o])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(this,t,1))&&l<d&&(d=l));e(s=t.slice(0,d))({type:"text",value:s})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let{voidCodeBlock:n}=t;return e.type="root",function e(t){const r=t.nodes&&t.nodes[0]&&"block"===t.nodes[0].object?t.nodes.map(e).filter(e=>e):function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=[];let r=t;for(;r.length>0;){const t=r[0];if("inline"===t.object||t.marks&&t.marks.length>0){const[t,i,o]=y(r);if("code"===t){const e=i[0];n.push((0,u.default)(_[t],e.data,e.text))}else if(t||1!==i.length||"inline"!==i[0].object){const{leadingWhitespace:a,trailingWhitespace:s,centerNodes:l}=E(i),d=e(l),f=(0,u.default)(_[t],d);if(""===(0,c.default)(f)){r=o;continue}const p=[S(a),f,S(s)].filter(e=>e);n.push(...p)}else{const t=i[0];n.push(O(t,e(t.nodes)))}r=o}else r.shift(),n.push((0,u.default)("html",t.text))}return n}(t.nodes);return function(e,t){switch(e.type){case"root":case"paragraph":case"quote":case"list-item":case"table":case"table-row":case"table-cell":return(0,u.default)(b[e.type],t);case"shortcode":{const{data:t}=e;return(0,u.default)(b[e.type],{data:t})}case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":{const n={one:1,two:2,three:3,four:4,five:5,six:6},r=e.type.split("-")[1],i=n[r],o=(0,u.default)(b[e.type],{depth:i},t);return(0,c.default)(o)?o:void 0}case"code-block":{var r;const i=(0,l.default)(e,"data",{}),{lang:o,code:a}=i,s=m(i,d),c=n?a:null===(r=t[0])||void 0===r?void 0:r.value;return(0,u.default)(b[e.type],{lang:o,data:s},c||"")}case"numbered-list":case"bulleted-list":{const n={ordered:"numbered-list"===e.type,start:(0,l.default)(e.data,"start")||1};return(0,u.default)(b[e.type],n,t)}case"thematic-break":return(0,u.default)(b[e.type])}}(t,r)}(e);function h(e){switch(e.type){case"link":{const t=e.nodes.map(e=>v(v({},e),{},{marks:e.marks?e.marks.filter(e=>{let{type:t}=e;return"code"!==t}):e.marks})),n=(0,o.default)(t,h);return(0,i.default)(...n)}case"break":case"image":return(0,o.default)((0,l.default)(e,["data","marks"]),e=>e.type);default:return(0,o.default)(e.marks,e=>e.type)}}function g(e,t){const n=h(t),r=(0,i.default)(e,n);return"code"===r[0]?1===n.length?e:[]:r}function y(e){let t=h(e[0])||[];"code"===t[0]&&t.length>1&&(t=[...(0,s.default)("firstGroupMarks","code"),"code"]);let n=1;if(t.length>0)for(;n<e.length;){if(e[n]){const r=g(t,e[n]);if(!(r.length>0))break;t=r}n+=1}const i=t[0],o=e.slice(0,n);return[i,i?function e(t,n){return t.map(t=>{switch(t.type){case"link":{const r=e(t.nodes,n);return v(v({},t),{},{nodes:r})}case"image":case"break":{const e=(0,r.default)(t.data,"marks");return v(v({},t),{},{data:e})}default:return v(v({},t),{},{marks:t.marks.filter(e=>{let{type:t}=e;return t!==n})})}})}(o,i):o,e.slice(n)]}function k(e){let{trailing:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.text)return{trimmedNode:e};const n=t?x:w,r=e.text.search(n);if(r>-1){const n=t?r:r+1,i=e.text.slice(0,n),o=e.text.slice(n),a=t?i:o;return{whitespace:t?o:i,trimmedNode:v(v({},e),{},{text:a})}}return{trimmedNode:e}}function E(e){const{whitespace:t,trimmedNode:n}=k(e[0]),r=k(e.length>1?(0,a.default)(e):n,{trailing:!0}),{whitespace:i,trimmedNode:o}=r;return{leadingWhitespace:t,centerNodes:function(e,t,n){switch(e.length){case 0:return[];case 1:return[n];case 2:return[t,n];default:return[t,...e.slice(1,-1),n]}}(e,n,o).filter(e=>e),trailingWhitespace:i}}function S(e){return e&&(0,u.default)("html",e)}function O(e,t){switch(e.type){case"break":return(0,u.default)(b[e.type]);case"link":{const n=(0,l.default)(e,"data",{}),{url:r,title:i}=n,o=m(n,f);return(0,u.default)(b[e.type],{url:r,title:i,data:o},t)}case"image":{const t=(0,l.default)(e,"data",{}),{url:n,title:r,alt:i}=t,o=m(t,p);return(0,u.default)(b[e.type],{url:n,title:r,alt:i,data:o})}}}};var r=h(n(177)),i=h(n(673)),o=h(n(167)),a=h(n(194)),s=h(n(737)),l=h(n(103)),u=h(n(72)),c=h(n(341));const d=["lang","code"],f=["url","title"],p=["url","title","alt"];function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={root:"root",paragraph:"paragraph","heading-one":"heading","heading-two":"heading","heading-three":"heading","heading-four":"heading","heading-five":"heading","heading-six":"heading",quote:"blockquote","code-block":"code","numbered-list":"list","bulleted-list":"list","list-item":"listItem",table:"table","table-row":"tableRow","table-cell":"tableCell",break:"break","thematic-break":"thematicBreak",link:"link",image:"image",shortcode:"shortcode"},_={bold:"strong",italic:"emphasis",strikethrough:"delete",code:"inlineCode"},w=/^\s+\S/,x=/(?!\S)\s+$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(21)),i=(s(n(0)),s(n(2))),o=n(17),a=n(9);function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.default)("button",{target:"ejt81md0",label:"StyledToolbarButton"})(o.buttons.button,";display:inline-block;padding:6px;border:none;background-color:transparent;font-size:16px;color:",e=>e.isActive?"#1e2532":"inherit",";cursor:pointer;&:disabled{cursor:auto;opacity:0.5;}",o.Icon,"{display:block;}");function u(e){let{type:t,label:n,icon:r,onClick:i,isActive:s,disabled:u}=e;return(0,a.jsx)(l,{isActive:s,onClick:e=>i&&i(e,t),title:n,disabled:u},r?(0,a.jsx)(o.Icon,{type:r}):n)}u.propTypes={type:i.default.string,label:i.default.string.isRequired,icon:i.default.string,onClick:i.default.func,isActive:i.default.bool,disabled:i.default.bool};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.mergeMediaConfig=O;var r=w(n(21)),i=w(n(261)),o=w(n(135)),a=w(n(103)),s=w(n(0)),l=w(n(2)),u=w(n(33)),c=n(4),d=n(9),f=n(31),p=n(474),h=n(17),m=n(738),g=n(332),v=w(n(739)),y=n(1704),b=w(n(1707)),_=w(n(1723));function w(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){let{minimal:t}=e;return`\n position: relative;\n overflow: auto;\n font-family: ${h.fonts.primary};\n min-height: ${t?"auto":h.lengths.richTextEditorMinHeight};\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: 0;\n margin-top: -${m.editorStyleVars.stickyDistanceBottom};\n padding: 0;\n display: flex;\n flex-direction: column;\n z-index: ${h.zIndex.zIndex100};\n`}const E=(0,r.default)("div",{target:"evezps90",label:"InsertionPoint"})({name:"b2d31m",styles:"flex:1 1 auto;cursor:text;"});function S(e,t){let{voidCodeBlock:n,remarkPlugins:r}=t;const i=e&&(0,g.markdownToSlate)(e,{voidCodeBlock:n,remarkPlugins:r}),s=!(0,o.default)((0,a.default)(i,"nodes")),l=f.Document.fromJSON(s?i:function(){const e=f.Text.create("");return{nodes:[f.Block.create({object:"block",type:"paragraph",nodes:[e]})]}}());return f.Value.create({document:l})}function O(e,t){if(e.has("image")){const n=e.get("image"),r=null==n?void 0:n.fields;r&&(n.fields=r.update(r.findIndex(e=>"image"===e.get("widget")),e=>(t.has("media_library")&&(e=e.set("media_library",t.get("media_library").mergeDeep(e.get("media_library")))),t.has("media_folder")&&!e.has("media_folder")&&(e=e.set("media_folder",t.get("media_folder"))),t.has("public_folder")&&!e.has("public_folder")&&(e=e.set("public_folder",t.get("public_folder"))),e)))}}var C={name:"t5h4ts-Editor",styles:"position:relative;;label:Editor;"};class T extends s.default.Component{constructor(e){super(e),x(this,"handleMarkClick",e=>{this.editor.toggleMark(e).focus()}),x(this,"handleBlockClick",e=>{this.editor.toggleBlock(e).focus()}),x(this,"handleLinkClick",()=>{this.editor.toggleLink(e=>window.prompt(this.props.t("editor.editorWidgets.markdown.linkPrompt"),e))}),x(this,"hasMark",e=>this.editor&&this.editor.hasMark(e)),x(this,"hasInline",e=>this.editor&&this.editor.hasInline(e)),x(this,"hasBlock",e=>this.editor&&this.editor.hasBlock(e)),x(this,"hasQuote",e=>this.editor&&this.editor.hasQuote(e)),x(this,"hasListItems",e=>this.editor&&this.editor.hasListItems(e)),x(this,"handleToggleMode",()=>{this.props.onMode("raw")}),x(this,"handleInsertShortcode",e=>{this.editor.insertShortcode(e)}),x(this,"handleClickBelowDocument",()=>{this.editor.moveToEndOfDocument()}),x(this,"handleDocumentChange",(0,i.default)(e=>{const{onChange:t}=this.props,n=e.value.document.toJS();t((0,g.slateToMarkdown)(n,{voidCodeBlock:this.codeBlockComponent,remarkPlugins:this.remarkPlugins}))},150)),x(this,"handleChange",e=>{this.state.value.document.equals(e.value.document)||this.handleDocumentChange(e),this.setState({value:e.value})}),x(this,"processRef",e=>{this.editor=e});const t=e.getEditorComponents();this.shortcodeComponents=t.filter(e=>{let{type:t}=e;return"shortcode"===t}),this.codeBlockComponent=(0,c.fromJS)(t.find(e=>{let{type:t}=e;return"code-block"===t})),this.editorComponents=this.codeBlockComponent||t.has("code-block")?t:t.set("code-block",{label:"Code Block",type:"code-block"}),this.remarkPlugins=e.getRemarkPlugins(),O(this.editorComponents,this.props.field),this.renderBlock=(0,y.renderBlock)({classNameWrapper:e.className,resolveWidget:e.resolveWidget,codeBlockComponent:this.codeBlockComponent}),this.renderInline=(0,y.renderInline)(),this.renderMark=(0,y.renderMark)(),this.schema=(0,_.default)({voidCodeBlock:!!this.codeBlockComponent}),this.plugins=(0,b.default)({getAsset:e.getAsset,resolveWidget:e.resolveWidget,t:e.t,remarkPlugins:this.remarkPlugins}),this.state={value:S(this.props.value,{voidCodeBlock:!!this.codeBlockComponent,remarkPlugins:this.remarkPlugins})}}shouldComponentUpdate(e,t){if(!this.state.value.equals(t.value))return!0;const n=t.value.document.toJS(),r=(0,g.slateToMarkdown)(n,{voidCodeBlock:this.codeBlockComponent,remarkPlugins:this.remarkPlugins});return e.value!==r}componentDidMount(){this.props.pendingFocus&&(this.editor.focus(),this.props.pendingFocus())}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:S(this.props.value,{voidCodeBlock:!!this.codeBlockComponent,remarkPlugins:this.remarkPlugins})})}render(){const{onAddAsset:e,getAsset:t,className:n,field:r,isShowModeToggle:i,t:o,isDisabled:a}=this.props;return(0,d.jsx)("div",{css:C},(0,d.jsx)(m.EditorControlBar,null,(0,d.jsx)(v.default,{onMarkClick:this.handleMarkClick,onBlockClick:this.handleBlockClick,onLinkClick:this.handleLinkClick,onToggleMode:this.handleToggleMode,plugins:this.editorComponents,onSubmit:this.handleInsertShortcode,onAddAsset:e,getAsset:t,buttons:r.get("buttons"),editorComponents:r.get("editor_components"),hasMark:this.hasMark,hasInline:this.hasInline,hasBlock:this.hasBlock,hasQuote:this.hasQuote,hasListItems:this.hasListItems,isShowModeToggle:i,t:o,disabled:a})),(0,d.jsx)(d.ClassNames,null,e=>{let{css:t,cx:i}=e;return(0,d.jsx)("div",{className:i(n,t`
${k({minimal:r.get("minimal")})}
`)},(0,d.jsx)(p.Editor,{className:t`
padding: 16px 20px 0;
`,value:this.state.value,renderBlock:this.renderBlock,renderInline:this.renderInline,renderMark:this.renderMark,schema:this.schema,plugins:this.plugins,onChange:this.handleChange,ref:this.processRef,spellCheck:!0}),(0,d.jsx)(E,{onClick:this.handleClickBelowDocument}))}))}}t.default=T,x(T,"propTypes",{onAddAsset:l.default.func.isRequired,getAsset:l.default.func.isRequired,onChange:l.default.func.isRequired,onMode:l.default.func.isRequired,className:l.default.string.isRequired,value:l.default.string,field:u.default.map.isRequired,getEditorComponents:l.default.func.isRequired,getRemarkPlugins:l.default.func.isRequired,isShowModeToggle:l.default.bool.isRequired,t:l.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderBlock=function(e){let{classNameWrapper:t,codeBlockComponent:n}=e;return e=>{switch(e.node.type){case"paragraph":return(0,i.jsx)(j,e);case"list-item":return(0,i.jsx)(I,e);case"quote":return(0,i.jsx)(M,e);case"code-block":return n?(0,i.jsx)(a.default,e,(0,i.jsx)(s.default,u({classNameWrapper:t,typeOverload:"code-block",dataKey:!1},e))):(0,i.jsx)(L,e);case"heading-one":return(0,i.jsx)(D,e);case"heading-two":return(0,i.jsx)(N,e);case"heading-three":return(0,i.jsx)(F,e);case"heading-four":return(0,i.jsx)(B,e);case"heading-five":return(0,i.jsx)(z,e);case"heading-six":return(0,i.jsx)(U,e);case"table":return(0,i.jsx)(q,e);case"table-row":return(0,i.jsx)(W,e);case"table-cell":return(0,i.jsx)(H,e);case"thematic-break":return(0,i.jsx)(a.default,e,(0,i.jsx)($,{editor:e.editor,node:e.node}));case"bulleted-list":return(0,i.jsx)(G,e);case"numbered-list":return(0,i.jsx)(K,e);case"shortcode":return(0,i.jsx)(a.default,e,(0,i.jsx)(s.default,u({classNameWrapper:t},e)))}}},t.renderInline=function(){return e=>{switch(e.node.type){case"link":return(0,i.jsx)(Y,e);case"image":return(0,i.jsx)(Q,e);case"break":return(0,i.jsx)(V,e)}}},t.renderMark=X;var r=l(n(21)),i=(l(n(0)),n(9)),o=n(17),a=l(n(1705)),s=l(n(1706));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const c="\n font-weight: 700;\n line-height: 1;\n",d=(0,r.default)("h1",{target:"e19otniy0",label:"StyledH1"})(c,";font-size:32px;margin-top:16px;"),f=(0,r.default)("h2",{target:"e19otniy1",label:"StyledH2"})(c,";font-size:24px;margin-top:12px;"),p=(0,r.default)("h3",{target:"e19otniy2",label:"StyledH3"})(c,";font-size:20px;"),h=(0,r.default)("h4",{target:"e19otniy3",label:"StyledH4"})(c,";font-size:18px;margin-top:8px;"),m=(0,r.default)("h5",{target:"e19otniy4",label:"StyledH5"})(c,";font-size:16px;margin-top:8px;"),g=m.withComponent("h6",{target:"e19otniy15",label:"StyledH6"}),v=(0,r.default)("p",{target:"e19otniy5",label:"StyledP"})("margin-bottom:","16px",";"),y=(0,r.default)("blockquote",{target:"e19otniy6",label:"StyledBlockQuote"})("padding-left:16px;border-left:3px solid ",o.colors.background,";margin-left:0;margin-right:0;margin-bottom:","16px",";"),b=(0,r.default)("pre",{target:"e19otniy7",label:"StyledPre"})("margin-bottom:","16px",";white-space:pre-wrap;& > code{display:block;width:100%;overflow-y:auto;background-color:#000;color:#ccc;border-radius:",o.lengths.borderRadius,";padding:10px;}"),_=(0,r.default)("code",{target:"e19otniy8",label:"StyledCode"})("background-color:",o.colors.background,";border-radius:",o.lengths.borderRadius,";padding:0 2px;font-size:85%;"),w=(0,r.default)("ul",{target:"e19otniy9",label:"StyledUl"})("margin-bottom:","16px",";padding-left:30px;"),x=w.withComponent("ol",{target:"e19otniy16",label:"StyledOl"}),k=(0,r.default)("li",{target:"e19otniy10",label:"StyledLi"})({name:"1eoco3j",styles:"& > p:first-child{margin-top:8px;}& > p:last-child{margin-bottom:8px;}"}),E=(0,r.default)("a",{target:"e19otniy11",label:"StyledA"})({name:"r1lz23",styles:"text-decoration:underline;font-size:inherit;"}),S=(0,r.default)("hr",{target:"e19otniy12",label:"StyledHr"})({name:"pqqqdc",styles:"border:1px solid;margin-bottom:16px;"}),O=(0,r.default)("table",{target:"e19otniy13",label:"StyledTable"})({name:"1uhv8nx",styles:"border-collapse:collapse;"}),C=(0,r.default)("td",{target:"e19otniy14",label:"StyledTd"})({name:"1fi1vzc",styles:"border:2px solid black;padding:8px;text-align:left;"});function T(e){return(0,i.jsx)("strong",null,e.children)}function A(e){return(0,i.jsx)("em",null,e.children)}function P(e){return(0,i.jsx)("s",null,e.children)}function R(e){return(0,i.jsx)(_,null,e.children)}function j(e){return(0,i.jsx)(v,e.attributes,e.children)}function I(e){return(0,i.jsx)(k,e.attributes,e.children)}function M(e){return(0,i.jsx)(y,e.attributes,e.children)}function L(e){return(0,i.jsx)(b,null,(0,i.jsx)(_,e.attributes,e.children))}function D(e){return(0,i.jsx)(d,e.attributes,e.children)}function N(e){return(0,i.jsx)(f,e.attributes,e.children)}function F(e){return(0,i.jsx)(p,e.attributes,e.children)}function B(e){return(0,i.jsx)(h,e.attributes,e.children)}function z(e){return(0,i.jsx)(m,e.attributes,e.children)}function U(e){return(0,i.jsx)(g,e.attributes,e.children)}function q(e){return(0,i.jsx)(O,null,(0,i.jsx)("tbody",e.attributes,e.children))}function W(e){return(0,i.jsx)("tr",e.attributes,e.children)}function H(e){return(0,i.jsx)(C,e.attributes,e.children)}function $(e){return(0,i.jsx)(S,u({},e.attributes,{css:e.editor.isSelected(e.node)&&(0,i.css)("box-shadow:0 0 0 2px ",o.colors.active,";border-radius:8px;color:",o.colors.active,";;label:ThematicBreak;")}))}function V(e){return(0,i.jsx)("br",e.attributes)}function G(e){return(0,i.jsx)(w,e.attributes,e.children)}function K(e){return(0,i.jsx)(x,u({},e.attributes,{start:e.node.data.get("start")||1}),e.children)}function Y(e){const t=e.node.get("data"),n=t.get("url"),r=t.get("title")||n;return(0,i.jsx)(E,u({href:n,title:r},e.attributes),e.children)}function Q(e){const t=e.node.get("data"),n=t.get("marks"),r=t.get("url"),o=t.get("title"),a=t.get("alt"),s=(0,i.jsx)("img",u({src:r,title:o,alt:a},e.attributes));return n?n.reduce((e,t)=>X(),s):s}function X(){return e=>{switch(e.mark.type){case"bold":return(0,i.jsx)(T,e);case"italic":return(0,i.jsx)(A,e);case"strikethrough":return(0,i.jsx)(P,e);case"code":return(0,i.jsx)(R,e)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(r=n(0))&&r.__esModule;var r,i=n(9),o=n(17);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return(0,i.jsx)("div",a({css:(0,i.css)("height:32px;cursor:text;position:relative;z-index:",o.zIndex.zIndex1,";margin-top:-16px;;label:InsertionPoint;")},e))}var l=function(e){let{editor:t,attributes:n,node:r,children:o}=e;return(0,i.jsx)("div",a({},n,{onClick:function(e){e.stopPropagation()}}),!t.canInsertBeforeNode(r)&&(0,i.jsx)(s,{onClick:()=>t.forceInsertBeforeNode(r)}),o,!t.canInsertAfterNode(r)&&(0,i.jsx)(s,{onClick:()=>t.forceInsertAfterNode(r)}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(177)),i=l(n(0)),o=n(9),a=n(4),s=n(452);function l(e){return e&&e.__esModule?e:{default:e}}var u={name:"1xfnuhy-Shortcode",styles:"margin-top:0;margin-bottom:16px;&:first-of-type{margin-top:0;};label:Shortcode;"};class c extends i.default.Component{constructor(){super(...arguments),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"state",{field:(0,a.Map)()})}componentDidMount(){const{node:e,typeOverload:t}=this.props,n=(0,s.getEditorComponents)().get(t||e.data.get("shortcode")),i=(0,a.fromJS)((0,r.default)(n,["id","fromBlock","toBlock","toPreview","pattern","icon"]));this.setState({field:i})}render(){const{editor:e,node:t,dataKey:n="shortcodeData"}=this.props,{field:r}=this.state,i=(0,s.getEditorControl)(),l=!1===n?t.data:(0,a.fromJS)(t.data.get(n));function c(){return e.moveToRangeOfNode(t)}return!r.isEmpty()&&(0,o.jsx)("div",{onClick:c,onFocus:c},(0,o.jsx)(i,{css:u,value:l,field:r,onChange:function(r,i,o){const s=!1===n?i:t.data.set("shortcodeData",i);e.setNodeByKey(t.key,{data:s||(0,a.Map)(),metadata:o})},isEditorComponent:!0,isNewEditorComponent:t.data.get("shortcodeNew"),isSelected:e.isSelected(t)}))}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(127)),i=y(n(1708)),o=y(n(1710)),a=y(n(1712)),s=y(n(1713)),l=y(n(1714)),u=y(n(1715)),c=y(n(1716)),d=y(n(1717)),f=y(n(1718)),p=y(n(1719)),h=y(n(1720)),m=n(1721),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(1722));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}var b=function(e){let{getAsset:t,resolveWidget:n,t:v,remarkPlugins:y}=e;return[{onKeyDown(e,t,n){(0,r.default)("mod+j",e)&&console.log(JSON.stringify(t.value.document.toJS(),null,2)),n()}},(0,g.default)(g.HOT_KEY_MAP.bold,e=>e.toggleMark("bold")),(0,g.default)(g.HOT_KEY_MAP.code,e=>e.toggleMark("code")),(0,g.default)(g.HOT_KEY_MAP.italic,e=>e.toggleMark("italic")),(0,g.default)(g.HOT_KEY_MAP.strikethrough,e=>e.toggleMark("strikethrough")),(0,g.default)(g.HOT_KEY_MAP["heading-one"],e=>e.toggleBlock("heading-one")),(0,g.default)(g.HOT_KEY_MAP["heading-two"],e=>e.toggleBlock("heading-two")),(0,g.default)(g.HOT_KEY_MAP["heading-three"],e=>e.toggleBlock("heading-three")),(0,g.default)(g.HOT_KEY_MAP["heading-four"],e=>e.toggleBlock("heading-four")),(0,g.default)(g.HOT_KEY_MAP["heading-five"],e=>e.toggleBlock("heading-five")),(0,g.default)(g.HOT_KEY_MAP["heading-six"],e=>e.toggleBlock("heading-six")),(0,g.default)(g.HOT_KEY_MAP.link,e=>e.toggleLink(()=>window.prompt(v("editor.editorWidgets.markdown.linkPrompt")))),(0,i.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,u.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE,type:"quote"}),(0,o.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE,unorderedListType:"bulleted-list",orderedListType:"numbered-list"}),(0,f.default)({type:"link"}),(0,a.default)(),(0,s.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,l.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,c.default)(),(0,p.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE}),(0,d.default)({getAsset:t,resolveWidget:n,remarkPlugins:y}),(0,h.default)({defaultType:m.SLATE_DEFAULT_BLOCK_TYPE})]};t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(467)),i=a(n(1709)),o=a(n(49));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){let{defaultType:t}=e;return{queries:{atStartOf(e,t){const{selection:n}=e.value;return n.isCollapsed&&n.start.isAtStartOfNode(t)},getAncestor:(e,t,n)=>t===n?e.value.document.getParent(t):e.value.document.getCommonAncestor(t,n),getOffset:(e,t)=>e.value.document.getParent(t.key).nodes.indexOf(t),getSelectedChildren:(e,t)=>t.nodes.filter(t=>e.isSelected(t)),getCommonAncestor(e){const{startBlock:t,endBlock:n,document:r}=e.value;return r.getCommonAncestor(t.key,n.key)},getClosestType(e,t,n){const i=(0,r.default)(n);return e.value.document.getClosest(t.key,e=>i.includes(e.type))},getBlockContainer(e,t){const{startBlock:n,selection:r}=e.value,i=t?e.value.document.getParent(t.key):r.isCollapsed&&n||e.getCommonAncestor();return i?["bulleted-list","numbered-list","list-item","quote","table-cell"].includes(i.type)?i:e.getBlockContainer(i):e.value.document},isSelected:(e,t)=>(0,r.default)(t).every(t=>e.value.document.isInRange(t.key,e.value.selection)),isFirstChild:(e,t)=>e.value.document.getParent(t.key).nodes.first().key===t.key,areSiblings(e,t){if(!(0,o.default)(t)||t.length<2)return!0;const n=e.value.document.getParent(t[0].key);return(0,i.default)(t).every(t=>e.value.document.getParent(t.key).key===n.key)},everyBlock:(e,t)=>e.value.blocks.every(e=>e.type===t),hasMark:(e,t)=>e.value.activeMarks.some(e=>e.type===t),hasBlock:(e,t)=>e.value.blocks.some(e=>e.type===t),hasInline:(e,t)=>e.value.inlines.some(e=>e.type===t),hasQuote(e,t){const{value:n}=e,{document:r,blocks:i}=n;return i.some(e=>{const{key:n}=e;return r.getParent(n).type===t})},hasListItems(e,t){const{value:n}=e,{document:r,blocks:i}=n;return i.some(e=>{const{key:n}=e,i=r.getParent(n),o=r.getParent(i.key);return"list-item"===i.type&&(null==o?void 0:o.type)===t})}},commands:{toggleBlock(e,n){switch(n){case"heading-one":case"heading-two":case"heading-three":case"heading-four":case"heading-five":case"heading-six":return e.setBlocks(e.everyBlock(n)?t:n);case"quote":return e.toggleQuoteBlock();case"numbered-list":case"bulleted-list":return e.toggleList(n)}},unwrapBlockChildren(e,t){if(!t||"block"!==t.object)throw Error(`Expected block but received ${t}.`);const n=e.value.document.getPath(t.key).last(),r=e.value.document.getParent(t.key);e.withoutNormalizing(()=>{t.nodes.forEach((t,i)=>{e.moveNodeByKey(t.key,r.key,n+i)}),e.removeNodeByKey(t.key)})},unwrapNodeToDepth(e,t,n){let r=0;e.withoutNormalizing(()=>{for(;r<n;)e.unwrapNodeByKey(t.key),r+=1})},unwrapNodeFromAncestor(e,t,n){const r=n.getDepth(t.key);e.unwrapNodeToDepth(t,r)}}}};t.default=s},function(e,t,n){var r=n(243);e.exports=function(e){var t=null==e?0:e.length;return t?r(e,1,t):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(103)),i=d(n(480)),o=d(n(467)),a=n(4),s=n(31),l=d(n(127)),u=n(1711);const c=["node"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var m=function(e){let{defaultType:t,unorderedListType:n,orderedListType:d}=e;const m=[d,n];function g(e){switch(e){case m[0]:return m[1];case m[1]:return m[0]}}return{queries:{getCurrentListItem(e){const{startBlock:t,endBlock:n}=e.value,r=e.value.document.getCommonAncestor(t.key,n.key);return r&&"list-item"===r.type?r:e.value.document.getClosest(r.key,e=>"list-item"===e.type)},getListOrListItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{node:n}=t,r=h(t,c);const i=e.getBlockContainer(n);if(i)return["bulleted-list","numbered-list","list-item"].includes(i.type)?i:r.force?e.getListOrListItem(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({node:i},r)):void 0},isList:(e,t)=>t&&m.includes(t.type),getLowestListItem(e,t){(0,u.assertType)(t,m);const n=t.nodes.last(),r=n.nodes.last();return e.isList(r)?e.getLowestListItem(r):n}},commands:{wrapInList(e,t){e.withoutNormalizing(()=>{e.wrapBlock(t).wrapBlock("list-item")})},unwrapListItem(e,t){(0,u.assertType)(t,"list-item"),e.withoutNormalizing(()=>{e.unwrapNodeByKey(t.key).unwrapBlockChildren(t)})},indentListItems:(0,i.default)((function(e,t){const n=a.List.isList(t)?t:(0,a.List)((0,o.default)(t)),r=n.first(),i=e.value.document.getPath(r.key).last(),l=e.value.document.getParent(r.key);if(0===i){const t=e.value.document.getPreviousSibling(l.key);if(!t||t.type!==g(l.type))return;e.withoutNormalizing(()=>{n.forEach((n,r)=>{const i=t.nodes.size+r;e.moveNodeByKey(n.key,t.key,i)})})}const u=s.Block.create("list-item"),c=s.Block.create(l.type);e.withoutNormalizing(()=>{e.insertNodeByKey(l.key,i,u).insertNodeByKey(u.key,0,c),n.forEach((t,n)=>{e.moveNodeByKey(t.key,c.key,n)}),e.mergeNodeByKey(u.key)})}),100),unindentListItems:(0,i.default)((function(e,t){const n=a.List.isList(t)?t:(0,a.List)((0,o.default)(t)),r=e.value.document.getParent(n.first().key);if(!e.isList(r))return;const i=e.value.document.getParent(r.key);if(!i||"list-item"!==i.type)return;const s=e.value.document.getNextSibling(n.last().key);if(e.withoutNormalizing(()=>{n.forEach(t=>e.unwrapNodeToDepth(t,2))}),s){const t=e.value.document.getNextSibling(n.last().key);e.mergeNodeByKey(t.key)}}),100),toggleListItemType(e,t){(0,u.assertType)(t,"list-item");const n=g(e.value.document.getParent(t.key).type);e.withoutNormalizing(()=>{e.unwrapNodeByKey(t.key).wrapBlockByKey(t.key,n)})},toggleList(e,t){if(!m.includes(t))throw Error(`${t} is not a valid list type, must be one of: ${m}`);const{startBlock:n,blocks:i}=e.value,o=e.getBlockContainer();switch((0,r.default)(o,"type")){case"bulleted-list":case"numbered-list":{const n=o;if(n.type!==t){const t=g(o.type),n=s.Block.create(t);e.withoutNormalizing(()=>{e.wrapBlock(n).unwrapNodeByKey(n.key)})}else e.withoutNormalizing(()=>{n.nodes.forEach(t=>{e.isSelected(t)&&e.unwrapListItem(t)})});break}case"list-item":{const r=o,i=e.value.document.getParent(r.key);e.isFirstChild(n)?i.type!==t?e.toggleListItemType(r):e.unwrapListItem(r):e.wrapInList(t);break}default:if(i.size>1){const r=i.map(e=>s.Block.create({type:"list-item",nodes:[e]})),o=s.Block.create({type:t,nodes:r});e.delete().replaceNodeByKey(n.key,o).moveToRangeOfNode(o)}else e.wrapInList(t)}}},onKeyDown(e,n,r){if((0,l.default)("space",e)&&("*"===n.value.startBlock.text||"-"===n.value.startBlock.text))return e.preventDefault(),n.wrapInList("bulleted-list").deleteBackward(1);if((0,l.default)("backspace",e)&&n.value.selection.isCollapsed){if(n.value.startBlock.type!==t)return r();const e=n.getListOrListItem();if(e&&"list-item"===e.type&&n.value.selection.start.isAtStartOfNode(e)){const t=e,r=n.value.document.getPreviousSibling(t.key);return r&&"list-item"===r.type?n.mergeNodeByKey(t.key):n.unwrapListItem(t)}return r()}if((0,l.default)("tab",e)||(0,l.default)("shift+tab",e)){const t=(0,l.default)("tab",e),i=!t;e.preventDefault();const o=n.getListOrListItem({force:!0});if(!o)return r();if("list-item"===o.type){const e=o;if(t)return n.indentListItems(e);if(i)return n.unindentListItems(e)}else{const e=o;if(t){const t=n.getSelectedChildren(e);return n.indentListItems(t)}if(i){const t=n.getSelectedChildren(e);return n.unindentListItems(t)}}return r()}if((0,l.default)("enter",e)){const e=n.getListOrListItem();if(!e)return r();if(n.value.selection.isExpanded&&n.delete(),"list-item"===e.type){const t=e,{value:{document:i}}=n;if(n.atStartOf(t)){const e=i.getParent(t.key),r=i.getParent(e.key);if("list-item"===r.type){const e=i.getParent(r.key),o=e.nodes.findIndex(e=>e.key===r.key);return n.moveNodeByKey(t.key,e.key,o+1)}return n.unwrapListItem(t)}if(n.atStartOf(n.value.startBlock)){const e=s.Block.create("list-item"),r=s.Range.create(n.value.selection).moveEndToEndOfNode(t);return n.withoutNormalizing(()=>{n.wrapBlockAtRange(r,e).unwrapNodeByKey(e.key)})}const o=i.getParent(t.key);if(m.includes(o.type)){const e=s.Block.create({type:"list-item",nodes:[s.Block.create("paragraph")]}),r=t.findDescendant(e=>m.includes(e.type));if(r)return n.insertNodeByKey(r.key,0,e).moveForward(1);const i=o.nodes.findIndex(e=>e.key===t.key);return n.insertNodeByKey(o.key,i+1,e).moveForward(1)}return r()}{const t=e;if(0===t.nodes.size)return n.removeNodeByKey(t.key)}return r()}return r()}}};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertType=function(e,t){const n=(0,i.default)(e),o=(0,r.default)(t)?e=>t.includes(e.type):e=>t===e.type,a=n.find(e=>!o(e));if(a)throw Error(`Expected node of type "${t}", received "${a.type}".`);return!0};var r=o(n(49)),i=o(n(467));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(127))&&r.__esModule?r:{default:r};var o=function(){return{onKeyDown:(e,t,n)=>(0,i.default)("shift+enter",e)?t.insertInline("break").insertText("").moveToStartOfNextText():n()}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(127))&&r.__esModule?r:{default:r};var o=function(e){let{defaultType:t}=e;return{onKeyDown(e,n,r){const{selection:o,startBlock:a}=n.value;return(0,i.default)("enter",e)?o.isExpanded?(n.delete(),r()):o.start.isAtEndOfNode(a)&&a.type!==t?n.insertBlock(t):r():r()}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(127))&&r.__esModule?r:{default:r};var o=function(e){let{defaultType:t}=e;return{onKeyDown(e,n,r){const{selection:o,startBlock:a}=n.value;return(0,i.default)("backspace",e)?o.isExpanded?n.delete():(!o.start.isAtStartOfNode(a)||a.text.length>0||a.type!==t&&n.setBlocks(t),r()):r()}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(31),o=(r=n(127))&&r.__esModule?r:{default:r};var a=function(e){let{type:t}=e;return{commands:{toggleQuoteBlock(e){const n=e.getBlockContainer();if(["bulleted-list","numbered-list"].includes(n.type)){const{nodes:r}=n;if(e.isSelected([r.first(),r.last()])){const r=e.getBlockContainer(n);(null==r?void 0:r.type)===t?e.unwrapNodeFromAncestor(n,r):e.wrapBlockByKey(n.key,t)}else{const o=e.value.document.getParent(n.key);e.withoutNormalizing(()=>{const a=r.filter(t=>e.isSelected(t)),s=i.Block.create(n.type);e.unwrapNodeByKey(a.first());const l=e.getOffset(a.first());e.insertNodeByKey(o.key,l+1,s),a.forEach((t,n)=>{let{key:r}=t;return e.moveNodeByKey(r,s.key,n)}),e.wrapBlockByKey(s.key,t)})}return}const r=e.value.blocks,o=r.first().key,a=r.last().key,s=e.getAncestor(o,a);s.type===t?e.unwrapBlockChildren(s):e.wrapBlock(t)}},onKeyDown(e,n,r){if(!(0,o.default)("enter",e)&&!(0,o.default)("backspace",e))return r();const{selection:i,startBlock:a,document:s}=n.value,l=s.getParent(a.key);if(!(l.type===t))return r();if((0,o.default)("enter",e)){if(i.isExpanded&&n.delete(),n.atStartOf(l))return n.unwrapBlockByKey(l.key);if(n.atStartOf(a)){const e=n.getOffset(a);return n.splitNodeByKey(l.key,e).unwrapBlockByKey(n.value.document.getParent(a.key).key)}return r()}if((0,o.default)("backspace",e)){if(i.isExpanded&&n.delete(),!n.atStartOf(l))return r();const e=s.getPreviousSibling(l.key);return e&&e.type===t?n.mergeNodeByKey(l.key):n.unwrapNodeByKey(a.key)}return r()}}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(127))&&r.__esModule?r:{default:r};var o=function(){return{onKeyDown:(e,t,n)=>(0,i.default)("mod+a",e)?(e.preventDefault(),t.moveToRangeOfDocument()):n()}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(31),i=n(474),o=l(n(232)),a=l(n(127)),s=n(332);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){let{getAsset:t,resolveWidget:n,remarkPlugins:l}=e;function u(e,r){const a=(0,s.slateToMarkdown)(r.value.fragment.toJS(),{remarkPlugins:l}),u=(0,s.markdownToHtml)(a,{getAsset:t,resolveWidget:n,remarkPlugins:l});(0,i.setEventTransfer)(e,"text",a),(0,i.setEventTransfer)(e,"html",u),(0,i.setEventTransfer)(e,"fragment",o.default.serializeNode(r.value.fragment)),e.preventDefault()}return{onPaste(e,t,n){const i=e.clipboardData;if((0,a.default)("shift",e))return n();if(i.types.includes("application/x-slate-fragment")){const e=o.default.deserializeNode(i.getData("application/x-slate-fragment"));return t.insertFragment(e)}const u=i.types.includes("text/html")&&i.getData("text/html"),c=u?(0,s.htmlToSlate)(u):(0,s.markdownToSlate)(i.getData("text/plain"),{remarkPlugins:l}),d=r.Document.fromJSON(c);return t.insertFragment(d)},onCopy(e,t,n){u(e,t)},onCut(e,t,n){u(e,t),t.delete()}}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){let{type:t}=e;return{commands:{toggleLink(e,n){const r=e.value.selection,i=r&&r.isCollapsed;if(e.hasInline(t)){const r=n(e.value.inlines.toJSON().find(e=>e.type===t).data.url);return r?e.setInlines({data:{url:r}}):e.unwrapInline(t)}{const r=n();if(!r)return;return i?e.insertInline({type:t,data:{url:r},nodes:[{object:"text",text:r}]}):e.wrapInline({type:t,data:{url:r}}).moveToEnd()}}}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){let{defaultType:t}=e;return{queries:{canInsertBeforeNode:(e,t)=>!e.isVoid(t)||!!e.value.document.getPreviousSibling(t.key),canInsertAfterNode(e,t){if(!e.isVoid(t))return!0;const n=e.value.document.getNextSibling(t.key);return n&&!e.isVoid(n)}},commands:{forceInsertBeforeNode(e,n){const r={type:t,object:"block"},i=e.value.document.getParent(n.key);return e.insertNodeByKey(i.key,0,r).moveToStartOfNode(i).focus()},forceInsertAfterNode:(e,n)=>e.moveToEndOfNode(n).insertBlock(t).focus(),moveToEndOfDocument(e){const n=e.value.document.nodes.last();return e.isVoid(n)&&e.insertBlock(t),e.moveToEndOfNode(n).focus()}}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(31);var i=function(e){let{defaultType:t}=e;return{commands:{insertShortcode(e,n){const i=function(e){if("code-block"===e.type)return r.Block.create({type:e.type,data:{shortcodeNew:!0}});const t=[r.Text.create("")],n=e.fields.toMap().mapKeys((e,t)=>t.get("name")).filter(e=>e.has("default")).map(e=>e.get("default"));return r.Block.create({type:"shortcode",data:{shortcode:e.id,shortcodeNew:!0,shortcodeData:n},nodes:t})}(n),{focusBlock:o}=e.value;""===o.text&&o.type===t?e.replaceNodeByKey(o.key,i):e.insertBlock(i),e.focus()}}}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SLATE_DEFAULT_BLOCK_TYPE=t.SLATE_BLOCK_PARENT_TYPES=void 0;t.SLATE_DEFAULT_BLOCK_TYPE="paragraph";t.SLATE_BLOCK_PARENT_TYPES=["list-item","quote"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HOT_KEY_MAP=void 0;var r,i=(r=n(127))&&r.__esModule?r:{default:r};t.HOT_KEY_MAP={bold:"mod+b",code:"mod+shift+c",italic:"mod+i",strikethrough:"mod+shift+s","heading-one":"mod+1","heading-two":"mod+2","heading-three":"mod+3","heading-four":"mod+4","heading-five":"mod+5","heading-six":"mod+6",link:"mod+k"};var o=function(e,t){return{onKeyDown(n,r,o){if(!(0,i.default)(e,n))return o();n.preventDefault(),r.command(t)}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(31);const i={match:[{object:"block",type:"code-block"}],nodes:[{match:[{object:"text"}]}],normalize:(e,t)=>{switch(t.code){case"child_object_invalid":{const{child:n}=t;if(r.Inline.isInline(n)&&"break"===n.type)return void e.replaceNodeByKey(n.key,r.Text.create({text:"\n"}))}}}},o={match:[{object:"block",type:"code-block"}],isVoid:!0};var a=function(){let{voidCodeBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{rules:[{match:[{object:"document"}],nodes:[{match:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],min:1}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":{const n={object:"block",type:"paragraph"};return void e.insertNodeByKey(t.node.key,0,n)}}}},{match:[{object:"block",type:"quote"},{object:"block",type:"list-item"}],nodes:[{match:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}]}]},{match:[{object:"block",type:"list-item"}],parent:[{type:"bulleted-list"},{type:"numbered-list"}]},{match:[{object:"block",type:"paragraph"},{object:"block",type:"heading-one"},{object:"block",type:"heading-two"},{object:"block",type:"heading-three"},{object:"block",type:"heading-four"},{object:"block",type:"heading-five"},{object:"block",type:"heading-six"},{object:"block",type:"table-cell"},{object:"inline",type:"link"}],nodes:[{match:[{object:"text"},{type:"link"},{type:"image"},{type:"break"}]}]},{match:[{object:"block",type:"bulleted-list"}],nodes:[{match:[{type:"list-item"}],min:1}],next:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"numbered-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":return void e.removeNodeByKey(t.node.key);case"next_sibling_type_invalid":return void("bulleted-list"===t.next.type&&e.mergeNodeByKey(t.next.key))}}},{match:[{object:"block",type:"numbered-list"}],nodes:[{match:[{type:"list-item"}],min:1}],next:[{type:"paragraph"},{type:"heading-one"},{type:"heading-two"},{type:"heading-three"},{type:"heading-four"},{type:"heading-five"},{type:"heading-six"},{type:"quote"},{type:"code-block"},{type:"bulleted-list"},{type:"thematic-break"},{type:"table"},{type:"shortcode"}],normalize:(e,t)=>{switch(t.code){case"child_min_invalid":return void e.removeNodeByKey(t.node.key);case"next_sibling_type_invalid":return void("numbered-list"===t.next.type&&e.mergeNodeByKey(t.next.key))}}},{match:[{object:"inline",type:"image"},{object:"inline",type:"break"},{object:"block",type:"thematic-break"},{object:"block",type:"shortcode"}],isVoid:!0},{match:[{object:"block",type:"table"}],nodes:[{match:[{object:"block",type:"table-row"}]}]},{match:[{object:"block",type:"table-row"}],nodes:[{match:[{object:"block",type:"table-cell"}]}]},{match:[{object:"mark",type:"bold"},{object:"mark",type:"italic"},{object:"mark",type:"strikethrough"},{object:"mark",type:"code"}]},e?o:i]}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),i=u(n(2)),o=n(17),a=u(n(1725)),s=n(332),l=n(9);function u(e){return e&&e.__esModule?e:{default:e}}class c extends r.default.Component{render(){const{value:e,getAsset:t,resolveWidget:n,field:r,getRemarkPlugins:i}=this.props;if(null===e)return null;const u=(0,s.markdownToHtml)(e,{getAsset:t,resolveWidget:n},null==i?void 0:i()),c=null!=r&&r.get("sanitize_preview",!1)?a.default.sanitize(u):u;return(0,l.jsx)(o.WidgetPreviewContainer,{dangerouslySetInnerHTML:{__html:c}})}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(c,"propTypes",{getAsset:i.default.func.isRequired,resolveWidget:i.default.func.isRequired,value:i.default.string});var d=c;t.default=d},function(e,t,n){
/*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,o=Object.freeze,a=Object.seal,s=Object.create,l="undefined"!=typeof Reflect&&Reflect,u=l.apply,c=l.construct;u||(u=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var d,f=x(Array.prototype.forEach),p=x(Array.prototype.pop),h=x(Array.prototype.push),m=x(String.prototype.toLowerCase),g=x(String.prototype.match),v=x(String.prototype.replace),y=x(String.prototype.indexOf),b=x(String.prototype.trim),_=x(RegExp.prototype.test),w=(d=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(d,t)});function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(e,t,r)}}function k(e,r){t&&t(e,null);for(var i=r.length;i--;){var o=r[i];if("string"==typeof o){var a=m(o);a!==o&&(n(r)||(r[i]=a),o=a)}e[o]=!0}return e}function E(t){var n=s(null),r=void 0;for(r in t)u(e,t,[r])&&(n[r]=t[r]);return n}function S(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}var O=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A=o(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=o(["#text"]),I=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),M=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),L=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),N=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=a(/<%[\s\S]*|[\s\S]*%>/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),U=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=a(/^html$/i),$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var G=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":$(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G(),n=function(t){return e(t)};if(n.version="2.3.6",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,d=t.NamedNodeMap,x=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,Y=t.HTMLFormElement,Q=t.DOMParser,X=t.trustedTypes,Z=u.prototype,J=S(Z,"cloneNode"),ee=S(Z,"nextSibling"),te=S(Z,"childNodes"),ne=S(Z,"parentNode");if("function"==typeof s){var re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}var ie=K(X,r),oe=ie?ie.createHTML(""):"",ae=i,se=ae.implementation,le=ae.createNodeIterator,ue=ae.createDocumentFragment,ce=ae.getElementsByTagName,de=r.importNode,fe={};try{fe=E(i).documentMode?i.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==fe;var he=N,me=F,ge=B,ve=z,ye=q,be=W,_e=U,we=null,xe=k({},[].concat(V(O),V(C),V(T),V(P),V(j))),ke=null,Ee=k({},[].concat(V(I),V(M),V(L),V(D))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,Ce=null,Te=!0,Ae=!0,Pe=!1,Re=!1,je=!1,Ie=!1,Me=!1,Le=!1,De=!1,Ne=!1,Fe=!0,Be=!0,ze=!1,Ue={},qe=null,We=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,$e=k({},["audio","video","img","source","image","track"]),Ve=null,Ge=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Xe=Qe,Ze=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,it=i.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},at=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":$(e))||(e={}),e=E(e),we="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS):xe,ke="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR):Ee,Ve="ADD_URI_SAFE_ATTR"in e?k(E(Ge),e.ADD_URI_SAFE_ATTR):Ge,He="ADD_DATA_URI_TAGS"in e?k(E($e),e.ADD_DATA_URI_TAGS):$e,qe="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS):We,Oe="FORBID_TAGS"in e?k({},e.FORBID_TAGS):{},Ce="FORBID_ATTR"in e?k({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=e.SAFE_FOR_TEMPLATES||!1,je=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,Xe=e.NAMESPACE||Qe,e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:m,Re&&(Ae=!1),De&&(Le=!0),Ue&&(we=k({},[].concat(V(j))),ke=[],!0===Ue.html&&(k(we,O),k(ke,I)),!0===Ue.svg&&(k(we,C),k(ke,M),k(ke,D)),!0===Ue.svgFilters&&(k(we,T),k(ke,M),k(ke,D)),!0===Ue.mathMl&&(k(we,P),k(ke,L),k(ke,D))),e.ADD_TAGS&&(we===xe&&(we=E(we)),k(we,e.ADD_TAGS)),e.ADD_ATTR&&(ke===Ee&&(ke=E(ke)),k(ke,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&k(Ve,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(qe===We&&(qe=E(qe)),k(qe,e.FORBID_CONTENTS)),Be&&(we["#text"]=!0),je&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete Oe.tbody),o&&o(e),rt=e)},st=k({},["mi","mo","mn","ms","mtext"]),lt=k({},["foreignobject","desc","title","annotation-xml"]),ut=k({},C);k(ut,T),k(ut,A);var ct=k({},P);k(ct,R);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===Ye)return t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ut[n]);if(e.namespaceURI===Ke)return t.namespaceURI===Qe?"math"===n:t.namespaceURI===Ye?"math"===n&&lt[r]:Boolean(ct[n]);if(e.namespaceURI===Qe){if(t.namespaceURI===Ye&&!lt[r])return!1;if(t.namespaceURI===Ke&&!st[r])return!1;var i=k({},["title","style","font","a","script"]);return!ct[n]&&(i[n]||!ut[n])}return!1},ft=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},pt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Le||De)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,n=void 0;if(Me)e="<remove></remove>"+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ie?ie.createHTML(e):e;if(Xe===Qe)try{t=(new Q).parseFromString(o,Je)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ze?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Xe===Qe?ce.call(t,je?"html":"body")[0]:je?t.documentElement:a},mt=function(e){return le.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof x)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===l?"undefined":$(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":$(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,t,r){pe[e]&&f(pe[e],(function(e){e.call(n,t,r,rt)}))},bt=function(e){var t=void 0;if(yt("beforeSanitizeElements",e,null),gt(e))return ft(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&_(/<template/i,e.innerHTML))return ft(e),!0;if(!we[r]||Oe[r]){if(!Oe[r]&&wt(r)){if(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(Be&&!qe[r]){var i=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(J(o[a],!0),ee(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,t=v(t,he," "),t=v(t,me," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(ft(e),!0)},_t=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in it))return!1;if(Ae&&!Ce[t]&&_(ge,t));else if(Te&&_(ve,t));else if(!ke[t]||Ce[t]){if(!(wt(e)&&(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&_(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&_(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ve[t]);else if(_(_e,v(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!He[e])if(Pe&&!_(ye,v(n,be,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},xt=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(o=a.length;o--;){var l=t=a[o],u=l.name,c=l.namespaceURI;if(r=b(t.value),i=nt(u),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(pt(u,e),s.keepAttr))if(_(/\/>/i,r))pt(u,e);else{Re&&(r=v(r,he," "),r=v(r,me," "));var d=nt(e.nodeName);if(_t(d,i,r))try{c?e.setAttributeNS(c,u,r):e.setAttribute(u,r),p(n.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},kt=function e(t){var n=void 0,r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof a&&e(n.content),xt(n));yt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var o=void 0,s=void 0,u=void 0,c=void 0,d=void 0;if((Ze=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===$(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(vt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ie||at(i),n.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){var f=nt(e.nodeName);if(!we[f]||Oe[f])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(s=(o=ht("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!Le&&!Re&&!je&&-1===e.indexOf("<"))return ie&&Ne?ie.createHTML(e):e;if(!(o=ht(e)))return Le?null:Ne?oe:""}o&&Me&&ft(o.firstChild);for(var p=mt(ze?e:o);u=p.nextNode();)3===u.nodeType&&u===c||bt(u)||(u.content instanceof a&&kt(u.content),xt(u),c=u);if(c=null,ze)return e;if(Le){if(De)for(d=ue.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return ke.shadowroot&&(d=de.call(r,d,!0)),d}var h=je?o.outerHTML:o.innerHTML;return je&&we["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&_(H,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Re&&(h=v(h,he," "),h=v(h,me," ")),ie&&Ne?ie.createHTML(h):h},n.setConfig=function(e){at(e),Ie=!0},n.clearConfig=function(){rt=null,Ie=!1},n.isValidAttribute=function(e,t,n){rt||at({});var r=nt(e),i=nt(t);return _t(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],h(pe[e],t))},n.removeHook=function(e){pe[e]&&p(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{minimal:{type:"boolean"},buttons:{type:"array",items:{type:"string",enum:["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","quote","bulleted-list","numbered-list"]}},editor_components:{type:"array",items:{type:"string"}},modes:{type:"array",items:{type:"string",enum:["raw","rich_text"]},minItems:1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetList=void 0;var r=a(n(468)),i=a(n(1731)),o=a(n(1733));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=r.default.previewComponent;const d={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"list",controlComponent:i.default,previewComponent:c,schema:o.default},e)},controlComponent:i.default,previewComponent:c};t.NetlifyCmsWidgetList=d;var f=d;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),i=c(n(2)),o=c(n(33)),a=n(9),s=n(4),l=n(17),u=n(147);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f="\n padding: 6px 14px 14px;\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n ",p=`\n padding: ${l.lengths.objectWidgetTopBarContainerPadding};\n `,h="\n display: none;\n ";class m extends r.default.Component{constructor(e){super(e),d(this,"componentValidate",{}),d(this,"validate",()=>{const{field:e}=this.props;let t=e.get("field")||e.get("fields");t=s.List.isList(t)?t:(0,s.List)([t]),t.forEach(e=>{"hidden"!==e.get("widget")&&this.componentValidate[e.get("name")]()})}),d(this,"handleCollapseToggle",()=>{this.setState({collapsed:!this.state.collapsed})}),d(this,"renderFields",(e,t)=>e?e.map((e,t)=>this.controlFor(e,t)):this.controlFor(t)),d(this,"objectLabel",()=>{const{value:e,field:t}=this.props,n=t.get("label",t.get("name")),r=t.get("summary");return r?u.stringTemplate.compileStringTemplate(r,null,"",e):n}),this.state={collapsed:e.field.get("collapsed",!1)}}shouldComponentUpdate(){return!0}controlFor(e,t){const{value:n,onChangeObject:r,onValidateObject:i,clearFieldErrors:o,metadata:l,fieldsErrors:u,editorControl:c,controlRef:d,parentIds:f,isFieldDuplicate:p,isFieldHidden:h,locale:m}=this.props;if("hidden"===e.get("widget"))return null;const g=e.get("name"),v=n&&s.Map.isMap(n)?n.get(g):n,y=p&&p(e),b=h&&h(e);return(0,a.jsx)(c,{key:t,field:e,value:v,onChange:r,clearFieldErrors:o,fieldsMetaData:l,fieldsErrors:u,onValidate:i,processControlRef:d&&d.bind(this),controlRef:d,parentIds:f,isDisabled:y,isHidden:b,isFieldDuplicate:p,isFieldHidden:h,locale:m})}render(){const{field:e,forID:t,classNameWrapper:n,forList:r,hasError:i,t:o}=this.props,s=r?this.props.collapsed:this.state.collapsed,u=e.get("fields"),c=e.get("field");return u||c?(0,a.jsx)(a.ClassNames,null,e=>{let{css:d,cx:m}=e;return(0,a.jsx)("div",{id:t,className:m(n,d`
${p}
`,{[d`
${f}
`]:r},{[d`
border-color: ${l.colors.textFieldBorder};
`]:!!r&&!i})},r?null:(0,a.jsx)(l.ObjectWidgetTopBar,{collapsed:s,onCollapseToggle:this.handleCollapseToggle,heading:s&&this.objectLabel(),t:o}),(0,a.jsx)("div",{className:m({[d`
${h}
`]:s})},this.renderFields(u,c)))}):(0,a.jsx)("h3",null,"No field(s) defined for this widget")}}t.default=m,d(m,"propTypes",{onChangeObject:i.default.func.isRequired,onValidateObject:i.default.func.isRequired,value:i.default.oneOfType([i.default.node,i.default.object,i.default.bool]),field:i.default.object,forID:i.default.string,classNameWrapper:i.default.string.isRequired,forList:i.default.bool,controlRef:i.default.func,editorControl:i.default.elementType.isRequired,resolveWidget:i.default.func.isRequired,clearFieldErrors:i.default.func.isRequired,fieldsErrors:o.default.map.isRequired,hasError:i.default.bool,t:i.default.func.isRequired,locale:i.default.string}),d(m,"defaultProps",{value:(0,s.Map)()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{field:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t&&t.get("fields")||t.get("field")||null)}s.propTypes={field:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{collapsed:{type:"boolean"},i18n:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9),i=y(n(21)),o=y(n(627)),a=y(n(135)),s=y(n(173)),l=y(n(0)),u=y(n(2)),c=y(n(33)),d=n(4),f=y(n(169)),p=n(473),h=y(n(468)),m=n(17),g=n(147),v=n(1732);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=h.default.controlComponent,w=(0,i.default)("div",{target:"e14bfka80",label:"ListItem"})(""),x=(0,p.SortableElement)(w),k=(0,i.default)(m.ListItemTopBar,{target:"e14bfka81",label:"StyledListItemTopBar"})("background-color:",m.colors.textFieldBorder,";"),E=(0,i.default)("div",{target:"e14bfka82",label:"NestedObjectLabel"})("display:",e=>e.collapsed?"block":"none",";border-top:0;color:",e=>e.error?m.colors.errorText:"inherit",";background-color:",m.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",m.lengths.borderRadius," ",m.lengths.borderRadius,";"),S="\n display: none;\n ",O=`\n padding: ${m.lengths.objectWidgetTopBarContainerPadding};\n `,C={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1u3t54p-listControlItemCollapsed",styles:"padding-bottom:0;;label:listControlItemCollapsed;"}},T=(0,p.SortableContainer)(e=>{let{items:t,renderItem:n}=e;return(0,r.jsx)("div",null,t.map(n))}),A="SINGLE",P="MULTIPLE",R="MIXED";function j(e,t,n,r){const i=g.stringTemplate.addFileTemplateFields(t.get("path"),r.set("fields.label",n));return g.stringTemplate.compileStringTemplate(e,null,"",i)}function I(e,t){return!!d.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function M(e){let{field:t,isActive:n,hasErrors:i,uniqueFieldId:o,isFieldOptional:a,t:s}=e;const l=""+t.get("label",t.get("name"));return(0,r.jsx)(m.FieldLabel,{isActive:n,hasErrors:i,htmlFor:o},l," ",""+(a?` (${s("editor.editorControl.field.optional")})`:""))}class L extends l.default.Component{constructor(e){var t;super(e),t=this,b(this,"validations",[]),b(this,"valueToString",e=>{let t;return d.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")}),b(this,"getValueType",()=>{const{field:e}=this.props;return e.get("fields")?P:e.get("field")?A:e.get(v.TYPES_KEY)?R:null}),b(this,"uniqueFieldId",(0,o.default)(this.props.field.get("name")+"-field-")),b(this,"handleChange",e=>{const{onChange:t}=this.props,n=this.state.value,r=e.target.value.trim(),i=r?r.split(","):[];r.match(/,$/)&&n.match(/, $/)&&i.pop();const o=this.valueToString(i);this.setState({value:o}),t((0,d.List)(i.map(e=>e.trim())))}),b(this,"handleFocus",()=>{this.props.setActiveStyle()}),b(this,"handleBlur",e=>{const t=e.target.value.split(",").map(e=>e.trim()).filter(e=>e);this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()}),b(this,"handleAdd",e=>{e.preventDefault();const{field:t}=this.props,n=this.getValueType()===A?this.singleDefault():(0,d.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(n)}),b(this,"singleDefault",()=>this.props.field.getIn(["field","default"],null)),b(this,"multipleDefault",e=>this.getFieldsDefault(e)),b(this,"handleAddType",(e,t)=>{const n=(0,d.fromJS)(this.mixedDefault(t,e));this.addItem(n)}),b(this,"mixedDefault",(e,t)=>{const n=this.props.field.get(v.TYPES_KEY).find(e=>e.get("name")===t),r=n.get("fields")||[n.get("field")];return this.getFieldsDefault(r,{[e]:t})}),b(this,"getFieldsDefault",(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((e,n)=>{const r=n.get("field")||n.get("fields"),i="object"==n.get("widget"),o=n.get("name"),s=n.get("default",null);if(d.List.isList(r)&&i){const n=t.getFieldsDefault(r);return!(0,a.default)(n)&&(e[o]=n),e}if(d.Map.isMap(r)&&i){const n=t.getFieldsDefault([r]);return!(0,a.default)(n)&&(e[o]=n),e}return null!==s&&(e[o]=s),e},n)})),b(this,"addItem",e=>{const{value:t,onChange:n,field:r}=this.props,i=r.get("add_to_top",!1),o=(0,f.default)();this.setState({itemsCollapsed:i?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:i?[o,...this.state.keys]:[...this.state.keys,o]});const a=t||(0,d.List)();n(i?a.unshift(e):a.push(e))}),b(this,"processControlRef",e=>{if(!e)return;const{validate:t,props:{validationKey:n}}=e;this.validations.push({key:n,validate:t})}),b(this,"validate",()=>{this.getValueType()?this.validations.forEach(e=>{e.validate()}):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())}),b(this,"validateSize",()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!(e.get("required",!0)||null!=t&&t.size))return[];const o=g.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?[o]:[]}),b(this,"getObjectValue",e=>this.props.value.get(e)||(0,d.Map)()),b(this,"handleRemove",(e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,{value:r,metadata:i,onChange:o,field:a,clearFieldErrors:s}=this.props,l=a.get("name"),u=this.getValueType()===A?r.get(e):r.get(e).valueSeq(),c=i&&!i.isEmpty()?{[l]:i.removeIn(u)}:i;n.splice(e,1),this.validations=[],this.setState({itemsCollapsed:[...n],keys:Array.from({length:r.size-1},()=>(0,f.default)())}),o(r.remove(e),c),s()}),b(this,"handleItemCollapseToggle",(e,t)=>{t.preventDefault();const{itemsCollapsed:n}=this.state,r=n.map((t,n)=>e===n?!t:t);this.setState({itemsCollapsed:r})}),b(this,"handleCollapseAllToggle",e=>{e.preventDefault();const{value:t,field:n}=this.props,{itemsCollapsed:r,listCollapsed:i}=this.state,o=n.get("minimize_collapsed",!1),a=n.get("collapsed",!0),s=r.every(e=>!0===e);if(o){let e=r;i&&a||(e=Array(t.size).fill(!i)),this.setState({listCollapsed:!i,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})}),b(this,"onSortEnd",e=>{let{oldIndex:t,newIndex:n}=e;const{value:r,clearFieldErrors:i}=this.props,{itemsCollapsed:o,keys:a}=this.state,s=r.get(t),l=r.delete(t).insert(n,s);this.props.onChange(l);const u=o[t];o.splice(t,1);const c=[...o];c.splice(n,0,u);const d=a.map((e,r)=>r===t||r===n?(0,f.default)():e);this.setState({itemsCollapsed:c,keys:d}),i(),this.validations=this.validations.filter(e=>d.includes(e.key))}),b(this,"hasError",e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some(t=>t.some(t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))}),b(this,"renderItem",(e,t)=>{const{classNameWrapper:n,editorControl:i,onValidateObject:o,metadata:a,clearFieldErrors:l,fieldsErrors:u,controlRef:c,resolveWidget:d,parentIds:f,forID:h,t:m}=this.props,{itemsCollapsed:g,keys:y}=this.state,b=g[t],w=y[t];let O=this.props.field;const T=this.hasError(t),A=this.getValueType()===R;return A&&(O=(0,v.getTypedFieldForValue)(O,e),!O)?this.renderErroneousTypedItem(t,e):(0,r.jsx)(x,{css:(0,r.css)([C.listControlItem,b&&C.listControlItemCollapsed],";label:ListControl;"),index:t,key:w},A&&(0,r.jsx)(M,{field:O,isActive:!1,hasErrors:T,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===O.get("required"),t:m}),(0,r.jsx)(k,{collapsed:b,onCollapseToggle:(0,s.default)(this.handleItemCollapseToggle,t),onRemove:(0,s.default)(this.handleRemove,t),dragHandleHOC:p.SortableHandle,"data-testid":"styled-list-item-top-bar-"+w}),(0,r.jsx)(E,{collapsed:b,error:T},this.objectLabel(e)),(0,r.jsx)(r.ClassNames,null,s=>{let{css:p,cx:m}=s;return(0,r.jsx)(_,{classNameWrapper:m(n,{[p`
${S};
`]:b}),value:e,field:O,onChangeObject:this.handleChangeFor(t),editorControl:i,resolveWidget:d,metadata:a,forList:!0,onValidateObject:o,clearFieldErrors:l,fieldsErrors:u,ref:this.processControlRef,controlRef:c,validationKey:w,collapsed:b,"data-testid":"object-control-"+w,hasError:T,parentIds:[...f,h,w]})}))});const{field:n,value:i}=e,l=n.get("collapsed",!0),u=i&&Array(i.size).fill(l)||[],c=i&&Array.from({length:i.size},()=>(0,f.default)())||[];this.state={listCollapsed:l,itemsCollapsed:u,value:this.valueToString(i),keys:c}}shouldComponentUpdate(){return!0}handleChangeFor(e){return(t,n,r)=>{const{value:i,metadata:o,onChange:a,field:s}=this.props,l=s.get("name"),u="object"===s.getIn(["field","widget"]),c=this.getValueType()!==A||this.getValueType()===A&&u?this.getObjectValue(e).set(t.get("name"),n):n,d={[l]:Object.assign(o?o.toJS():{},r||{})};a(i.set(e,c),d)}}objectLabel(e){const{field:t,entry:n}=this.props;switch(this.getValueType()){case R:{if(!I(t,e))return;const r=(0,v.getTypedFieldForValue)(t,e),i=r.get("label",r.get("name")),o=r.get("summary",t.get("summary"));return o?j(o,n,i,e):i}case A:{const r=t.get("field"),i=r.get("label",r.get("name")),o=t.get("summary"),a=(0,d.fromJS)({[r.get("name")]:e});return o?j(o,n,i,a):i}case P:{if(!I(t,e))return;const r=t.get("fields"),i=r&&r.first(),o=e.get(i.get("name")),a=t.get("summary");return((a?j(a,n,o,e):o)||"No "+i.get("name")).toString()}}return""}renderErroneousTypedItem(e,t){const n=this.props.field,i=(0,v.getErrorMessageForTypedFieldAndValue)(n,t),o="item-"+e;return(0,r.jsx)(x,{css:(0,r.css)([C.listControlItem,C.listControlItemCollapsed],";label:ListControl;"),index:e,key:o},(0,r.jsx)(k,{onCollapseToggle:null,onRemove:(0,s.default)(this.handleRemove,e,o),dragHandleHOC:p.SortableHandle}),(0,r.jsx)(E,{collapsed:!0,error:!0},i))}renderListControl(){const{value:e,forID:t,field:n,classNameWrapper:i,t:o}=this.props,{itemsCollapsed:a,listCollapsed:s}=this.state,l=e||(0,d.List)(),u=n.get("label",n.get("name")),c=n.get("label_singular")||n.get("label",n.get("name")),f=1===l.size?c.toLowerCase():u.toLowerCase(),p=n.get("minimize_collapsed",!1),h=a.every(e=>!0===e)&&(s||!p);return(0,r.jsx)(r.ClassNames,null,e=>{let{cx:a,css:s}=e;return(0,r.jsx)("div",{id:t,className:a(i,s`
${O}
`)},(0,r.jsx)(m.ObjectWidgetTopBar,{allowAdd:n.get("allow_add",!0),onAdd:this.handleAdd,types:n.get(v.TYPES_KEY,null),onAddType:e=>this.handleAddType(e,(0,v.resolveFieldKeyType)(n)),heading:`${l.size} ${f}`,label:c.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:h,t:o}),(!h||!p)&&(0,r.jsx)(T,{items:l,renderItem:this.renderItem,onSortEnd:this.onSortEnd,useDragHandle:!0,lockAxis:"y"}))})}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:n}=this.state;return(0,r.jsx)("input",{type:"text",id:e,value:n,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}t.default=L,b(L,"propTypes",{metadata:c.default.map,onChange:u.default.func.isRequired,onChangeObject:u.default.func.isRequired,onValidateObject:u.default.func.isRequired,validate:u.default.func.isRequired,value:c.default.list,field:u.default.object,forID:u.default.string,controlRef:u.default.func,mediaPaths:c.default.map.isRequired,getAsset:u.default.func.isRequired,onOpenMediaLibrary:u.default.func.isRequired,onAddAsset:u.default.func.isRequired,onRemoveInsertedMedia:u.default.func.isRequired,classNameWrapper:u.default.string.isRequired,setActiveStyle:u.default.func.isRequired,setInactiveStyle:u.default.func.isRequired,editorControl:u.default.elementType.isRequired,resolveWidget:u.default.func.isRequired,clearFieldErrors:u.default.func.isRequired,fieldsErrors:c.default.map.isRequired,entry:c.default.map.isRequired,t:u.default.func.isRequired}),b(L,"defaultProps",{value:(0,d.List)(),parentIds:[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEY=t.TYPES_KEY=t.DEFAULT_TYPE_KEY=void 0,t.getErrorMessageForTypedFieldAndValue=function(e,t){const n=r(e),i=t.get(n);let o;o=i?`Error: item has illegal '${n}' property: '${i}'`:`Error: item has no '${n}' property`;return o},t.getTypedFieldForValue=function(e,t){const n=r(e),i=e.get("types"),o=t.get(n);return i.find(e=>e.get("name")===o)},t.resolveFieldKeyType=r,t.resolveFunctionForTypedField=function(e){const t=r(e),n=e.get("types");return e=>{const r=e.get(t);return n.find(e=>e.get("name")===r)}};t.TYPES_KEY="types";t.TYPE_KEY="typeKey";function r(e){return e.get("typeKey","type")}t.DEFAULT_TYPE_KEY="type"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{allow_add:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetRelation=void 0;var r=a(n(1735)),i=a(n(1738)),o=a(n(1739));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"relation",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetRelation=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(1736)),i=_(n(194)),o=_(n(135)),a=_(n(103)),s=_(n(451)),l=_(n(261)),u=_(n(0)),c=_(n(2)),d=_(n(33)),f=n(475),p=_(n(1737)),h=n(4),m=n(17),g=n(147),v=n(624),y=n(473),b=n(9);function _(e){return e&&e.__esModule?e:{default:e}}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S=(0,y.SortableElement)(e=>{const t=k(k({},e.innerProps),{},{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}});return(0,b.jsx)(f.components.MultiValue,w({},e,{innerProps:t}))}),O=(0,y.SortableHandle)(e=>(0,b.jsx)(f.components.MultiValueLabel,e)),C=(0,y.SortableContainer)(p.default);function T(e){let{index:t,style:n,data:r}=e;return(0,b.jsx)("div",{style:n},r.options[t])}function A(e){if(e.isLoading||e.options.length<=0||!Array.isArray(e.children))return e.children;const t=e.children;return(0,b.jsx)(v.FixedSizeList,{style:{width:"100%"},width:300,height:Math.min(300,30*t.length+10),itemCount:t.length,itemSize:30,itemData:{options:t}},T)}function P(e){return e&&e.value?e.value:""}function R(e){return"string"==typeof e?{label:e,value:e}:h.Map.isMap(e)?e.toJS():e}function j(e){const t=h.List.isList(e)?e.toJS():e;return t&&Array.isArray(t)?t:null}function I(e,t){return(0,r.default)(e.concat(t),e=>e.value)}function M(e){return h.List.isList(e)?e.toJS():[e]}class L extends u.default.Component{constructor(){super(...arguments),E(this,"mounted",!1),E(this,"state",{initialOptions:[]}),E(this,"isValid",()=>{const{field:e,value:t,t:n}=this.props,r=e.get("min"),i=e.get("max");if(!this.isMultiple())return{error:!1};const o=g.validations.validateMinMax(n,e.get("label",e.get("name")),t,r,i);return o?{error:o}:{error:!1}}),E(this,"onSortEnd",e=>t=>{let{oldIndex:n,newIndex:r}=t;const{onChange:a,field:s}=this.props,l=function(e,t,n){const r=e.slice();return r.splice(n<0?e.length+n:n,0,r.splice(t,1)[0]),r}(e.map(P),n,r),u=!(0,o.default)(e)&&{[s.get("name")]:{[s.get("collection")]:{[(0,i.default)(l)]:(0,i.default)(e).data}}}||{};a((0,h.fromJS)(l),u)}),E(this,"handleChange",e=>{const{onChange:t,field:n}=this.props;if(this.isMultiple()){const r=e;this.setState({initialOptions:r.filter(Boolean)});const a=r.map(P),s=!(0,o.default)(r)&&{[n.get("name")]:{[n.get("collection")]:{[(0,i.default)(a)]:(0,i.default)(r).data}}}||{};t((0,h.fromJS)(a),s)}else{this.setState({initialOptions:[e].filter(Boolean)});const r=P(e);t(r,e&&{[n.get("name")]:{[n.get("collection")]:{[r]:e.data}}})}}),E(this,"parseNestedFields",(e,t)=>{const{locale:n}=this.props,r=null!=n&&null!=e.i18n&&null!=e.i18n[n]?e.i18n[n].data:e.data;if(g.stringTemplate.extractTemplateVars(t).length<=0)return(0,a.default)(r,t);const i=g.stringTemplate.addFileTemplateFields(e.path,(0,h.fromJS)(r));return g.stringTemplate.compileStringTemplate(t,null,e.slug,i)}),E(this,"parseHitOptions",e=>{const{field:t}=this.props,n=t.get("value_field"),r=t.get("display_fields")||(0,h.List)([t.get("value_field")]);return e.reduce((e,t)=>{const i=g.stringTemplate.expandPath({data:t.data,path:n});for(let n=0;n<i.length;n++){const o=r.toJS().map(e=>{const r=g.stringTemplate.expandPath({data:t.data,path:e});return this.parseNestedFields(t,r[n]||r[0])}).join(" "),a=this.parseNestedFields(t,i[n]);e.push({data:t.data,value:a,label:o})}return e},[])}),E(this,"loadOptions",(0,l.default)((e,t)=>{const{field:n,query:r,forID:i}=this.props,o=n.get("collection"),a=n.get("options_length")||20;r(i,o,M(n.get("search_fields")),e,n.get("file"),a).then(e=>{let{payload:n}=e;const r=n.hits||[],i=this.parseHitOptions(r),o=I(this.state.initialOptions,i);t(o)})},500))}shouldComponentUpdate(e){return this.props.value!==e.value||this.props.hasActiveStyle!==e.hasActiveStyle||this.props.queryHits!==e.queryHits}async componentDidMount(){this.mounted=!0;const{forID:e,field:t,value:n,query:r,onChange:i}=this.props,o=t.get("collection"),a=t.get("file"),s=n&&(this.isMultiple()?j(n):[n]);if(s&&s.length>0){const l={},u=M(t.get("search_fields")),{payload:c}=await r(e,o,u,"",a),d=c.hits||[],f=this.parseHitOptions(d),p=s.map(e=>{const t=f.find(t=>t.value===e);return l[e]=null==t?void 0:t.data,t}).filter(Boolean);this.mounted&&this.setState({initialOptions:p}),this.mounted&&i(n,{[t.get("name")]:{[t.get("collection")]:l}})}}componentWillUnmount(){this.mounted=!1}isMultiple(){return this.props.field.get("multiple",!1)}render(){const{value:e,field:t,forID:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o,queryHits:a}=this.props,l=this.isMultiple(),u=!t.get("required",!0)||l,c=this.parseHitOptions(a),d=function(e){let{value:t,options:n,isMultiple:r}=e;if(r){const e=j(t);if(null===e)return null;return e.map(e=>n.find(t=>t.value===(e.value||e))).filter(Boolean).map(R)}return(0,s.default)(n,["value",t])||null}({options:I(this.state.initialOptions,c),value:e,isMultiple:l});return(0,b.jsx)(C,{useDragHandle:!0,axis:"xy",onSortEnd:this.onSortEnd(d),distance:4,getHelperDimensions:e=>{let{node:t}=e;return t.getBoundingClientRect()},components:{MenuList:A,MultiValue:S,MultiValueLabel:O},value:d,inputId:n,cacheOptions:!0,defaultOptions:!0,loadOptions:this.loadOptions,onChange:this.handleChange,className:r,onFocus:i,onBlur:o,styles:m.reactSelectStyles,isMulti:l,isClearable:u,placeholder:""})}}t.default=L,E(L,"propTypes",{onChange:c.default.func.isRequired,forID:c.default.string.isRequired,value:c.default.node,field:d.default.map,query:c.default.func.isRequired,queryHits:c.default.array,classNameWrapper:c.default.string.isRequired,setActiveStyle:c.default.func.isRequired,setInactiveStyle:c.default.func.isRequired,locale:c.default.string})},function(e,t,n){var r=n(109),i=n(396);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultProps",(function(){return h})),n.d(t,"makeAsyncSelect",(function(){return m}));var r=n(11),i=n(130),o=n(34),a=n(22),s=n(80),l=n(81),u=n(91),c=n(0),d=n.n(c),f=n(176),p=n(351),h=(n(688),n(689),n(344),n(54),n(686),{cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1}),m=function(e){var t,n;return n=t=function(t){Object(u.a)(c,t);var n=Object(a.j)(c);function c(e){var t;return Object(s.a)(this,c),(t=n.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.handleInputChange=function(e,n){var r=t.props,i=r.cacheOptions,s=r.onInputChange,l=Object(a.h)(e,n,s);if(!l)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&t.state.optionsCache[l])t.setState({inputValue:l,loadedInputValue:l,loadedOptions:t.state.optionsCache[l],isLoading:!1,passEmptyOptions:!1});else{var u=t.lastRequest={};t.setState({inputValue:l,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(l,(function(e){t.mounted&&u===t.lastRequest&&(delete t.lastRequest,t.setState((function(t){return{isLoading:!1,loadedInputValue:l,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?Object(a.k)(Object(a.k)({},t.optionsCache),{},Object(o.a)({},l,e)):t.optionsCache}})))}))}))}return l},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},t}return Object(l.a)(c,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props;n.loadOptions;var o=n.isLoading,a=Object(i.a)(n,["loadOptions","isLoading"]),s=this.state,l=s.defaultOptions,u=s.inputValue,c=s.isLoading,f=s.loadedInputValue,p=s.loadedOptions,h=s.passEmptyOptions?[]:u&&f?p:l||[];return d.a.createElement(e,Object(r.a)({},a,{ref:function(e){t.select=e},options:h,isLoading:c||o,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return Object(a.k)(Object(a.k)({},n),r)}}]),c}(c.Component),t.defaultProps=h,n},g=Object(p.a)(f.a),v=m(g);t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t)}s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{collection:{type:"string"},value_field:{type:"string"},search_fields:{type:"array",minItems:1,items:{type:"string"}},file:{type:"string"},multiple:{type:"boolean"},min:{type:"integer"},max:{type:"integer"},display_fields:{type:"array",minItems:1,items:{type:"string"}},options_length:{type:"integer"}},oneOf:[{required:["collection","value_field","search_fields"]},{required:["collection","valueField","searchFields"]}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetBoolean=void 0;var r,i=(r=n(1741))&&r.__esModule?r:{default:r};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a({name:"boolean",controlComponent:i.default},e)},controlComponent:i.default};t.NetlifyCmsWidgetBoolean=l;var u=l;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(0)),o=u(n(33)),a=n(9),s=n(17);const l=["isActive"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){let{isActive:t}=e,n=d(e,l);return(0,a.jsx)(s.ToggleBackground,c({css:(0,a.css)("background-color:",t?s.colors.active:s.colors.textFieldBorder,";;label:BooleanBackground;")},n))}class p extends i.default.Component{render(){const{value:e,forID:t,onChange:n,classNameWrapper:r,setActiveStyle:i,setInactiveStyle:o}=this.props;return(0,a.jsx)("div",{className:r},(0,a.jsx)(s.Toggle,{id:t,active:e,onChange:n,onFocus:i,onBlur:o,Background:f}))}}t.default=p,p.propTypes={field:o.default.map.isRequired,onChange:r.default.func.isRequired,classNameWrapper:r.default.string.isRequired,setActiveStyle:r.default.func.isRequired,setInactiveStyle:r.default.func.isRequired,forID:r.default.string,value:r.default.bool},p.defaultProps={value:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetMap=void 0;var r=a(n(1743)),i=a(n(1746)),o=a(n(1747));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(0,r.default)();const d={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"map",controlComponent:c,previewComponent:i.default,schema:o.default},e)},controlComponent:c,previewComponent:i.default};t.NetlifyCmsWidgetMap=d;var f=d;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e;let{getFormat:t,getMap:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(e=class extends r.default.Component{constructor(e){super(e),this.mapContainer=r.default.createRef()}componentDidMount(){const{field:e,onChange:r,value:i}=this.props,o=t?t(e):y(),a=i?[o.readFeature(i)]:[],s=new h.default({features:a,wrapX:!1}),l=new f.default({source:s}),u=this.mapContainer.current,d=n?n(u,l):b(u,l);a.length>0&&d.getView().fit(s.getExtent(),{maxZoom:16,padding:[80,80,80,80]});const p=new c.default({source:s,type:e.get("type","Point")});d.addInteraction(p);const m={decimals:e.get("decimals",7)};p.on("drawend",e=>{let{feature:t}=e;s.clear(),r(o.writeGeometry(t.getGeometry(),m))})}render(){const{height:e}=this.props;return(0,o.jsx)(o.ClassNames,null,t=>{let{cx:n,css:r}=t;return(0,o.jsx)("div",{className:n(this.props.classNameWrapper,r`
${a.default};
padding: 0;
overflow: hidden;
height: ${e};
`),ref:this.mapContainer})})}},"propTypes",{onChange:i.default.func.isRequired,field:i.default.object.isRequired,height:i.default.string,value:i.default.node}),g(e,"defaultProps",{value:"",height:"400px"}),e};var r=m(n(0)),i=m(n(2)),o=n(9),a=m(n(1744)),s=m(n(1926)),l=m(n(160)),u=m(n(1931)),c=m(n(476)),d=m(n(1932)),f=m(n(482)),p=m(n(1928)),h=m(n(483));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"};function y(){return new u.default(v)}function b(e,t){return new s.default({target:e,layers:[new d.default({source:new p.default}),t],view:new l.default({center:[0,0],zoom:2})})}},function(e,t,n){var r=n(1745);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(260)(!1)).push([e.i,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid rgb(179,197,219);\n background-color: rgba(255,255,255,0.4);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-viewport canvas {\n all: unset;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n.ol-attribution a {\n color: rgba(0,60,136,0.7);\n text-decoration: none;\n}\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n font-size: 12px;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution button {\n flex-shrink: 0;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 2px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t?t.toString():null)}s.propTypes={value:r.default.string};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{decimals:{type:"integer"},type:{type:"string",enum:["Point","LineString","Polygon"]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetDate=void 0;var r=o(n(1749)),i=o(n(1751));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({name:"date",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetDate=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(318)),i=d(n(0)),o=d(n(2)),a=n(9),s=d(n(740)),l=d(n(741)),u=d(n(195)),c=n(111);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=(0,r.default)(()=>console.warn(c.oneLine`
Netlify CMS config: the date widget has been deprecated and will
be removed in the next major release. Please use the datetime widget instead.
`));class h extends i.default.Component{constructor(){super(...arguments),f(this,"formats",this.getFormats()),f(this,"defaultValue",this.getDefaultValue()),f(this,"isValidDate",e=>u.default.isMoment(e)||e instanceof Date||""===e),f(this,"handleChange",e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props,{format:n}=this.formats;if(n){t(e?(0,u.default)(e).format(n):"")}else{t(u.default.isMoment(e)?e.toDate():e)}}),f(this,"onClose",e=>{const{setInactiveStyle:t}=this.props;if(!this.isValidDate(e)){(0,u.default)(e).isValid()?this.handleChange(e):window.alert("The date you entered is invalid.")}t()})}getFormats(){const{field:e,includeTime:t}=this.props,n=e.get("format"),r=e.get("date_format");let i=e.get("time_format");return void 0===i&&(i=!!t),{format:n,dateFormat:r,timeFormat:i}}getDefaultValue(){const{field:e}=this.props;return e.get("default")}componentDidMount(){p();const{value:e}=this.props;void 0===e&&setTimeout(()=>{this.handleChange(void 0===this.defaultValue?new Date:this.defaultValue)},0)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r}=this.props,{format:i,dateFormat:o,timeFormat:c}=this.formats;return(0,a.jsx)("div",{css:(0,a.css)(s.default,";;label:DateControl;")},(0,a.jsx)(l.default,{dateFormat:o,timeFormat:c,value:(0,u.default)(t,i),onChange:this.handleChange,onOpen:r,onClose:this.onClose,inputProps:{className:n,id:e}}))}}t.default=h,f(h,"propTypes",{field:o.default.object.isRequired,forID:o.default.string,onChange:o.default.func.isRequired,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired,value:o.default.oneOfType([o.default.object,o.default.string]),includeTime:o.default.bool})},function(e,t,n){(t=n(260)(!1)).push([e.i,"/*!\n * https://github.com/arqex/react-datetime\n */\n\n.rdt {\n position: relative;\n}\n.rdtPicker {\n display: none;\n position: absolute;\n min-width: 250px;\n padding: 4px;\n margin-top: 1px;\n z-index: 99999 !important;\n background: #fff;\n box-shadow: 0 1px 3px rgba(0,0,0,.1);\n border: 1px solid #f9f9f9;\n}\n.rdtOpen .rdtPicker {\n display: block;\n}\n.rdtStatic .rdtPicker {\n box-shadow: none;\n position: static;\n}\n\n.rdtPicker .rdtTimeToggle {\n text-align: center;\n}\n\n.rdtPicker table {\n width: 100%;\n margin: 0;\n}\n.rdtPicker td,\n.rdtPicker th {\n text-align: center;\n height: 28px;\n}\n.rdtPicker td {\n cursor: pointer;\n}\n.rdtPicker td.rdtDay:hover,\n.rdtPicker td.rdtHour:hover,\n.rdtPicker td.rdtMinute:hover,\n.rdtPicker td.rdtSecond:hover,\n.rdtPicker .rdtTimeToggle:hover {\n background: #eeeeee;\n cursor: pointer;\n}\n.rdtPicker td.rdtOld,\n.rdtPicker td.rdtNew {\n color: #999999;\n}\n.rdtPicker td.rdtToday {\n position: relative;\n}\n.rdtPicker td.rdtToday:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-bottom: 7px solid #428bca;\n border-top-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n bottom: 4px;\n right: 4px;\n}\n.rdtPicker td.rdtActive,\n.rdtPicker td.rdtActive:hover {\n background-color: #428bca;\n color: #fff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.rdtPicker td.rdtActive.rdtToday:before {\n border-bottom-color: #fff;\n}\n.rdtPicker td.rdtDisabled,\n.rdtPicker td.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n\n.rdtPicker td span.rdtOld {\n color: #999999;\n}\n.rdtPicker td span.rdtDisabled,\n.rdtPicker td span.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker th {\n border-bottom: 1px solid #f9f9f9;\n}\n.rdtPicker .dow {\n width: 14.2857%;\n border-bottom: none;\n cursor: default;\n}\n.rdtPicker th.rdtSwitch {\n width: 100px;\n}\n.rdtPicker th.rdtNext,\n.rdtPicker th.rdtPrev {\n font-size: 21px;\n vertical-align: top;\n}\n\n.rdtPrev span,\n.rdtNext span {\n display: block;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\n.rdtPicker th.rdtDisabled,\n.rdtPicker th.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker thead tr:first-of-type th {\n cursor: pointer;\n}\n.rdtPicker thead tr:first-of-type th:hover {\n background: #eeeeee;\n}\n\n.rdtPicker tfoot {\n border-top: 1px solid #f9f9f9;\n}\n\n.rdtPicker button {\n border: none;\n background: none;\n cursor: pointer;\n}\n.rdtPicker button:hover {\n background-color: #eee;\n}\n\n.rdtPicker thead button {\n width: 100%;\n height: 100%;\n}\n\ntd.rdtMonth,\ntd.rdtYear {\n height: 50px;\n width: 25%;\n cursor: pointer;\n}\ntd.rdtMonth:hover,\ntd.rdtYear:hover {\n background: #eee;\n}\n\n.rdtCounters {\n display: inline-block;\n}\n\n.rdtCounters > div {\n float: left;\n}\n\n.rdtCounter {\n height: 100px;\n}\n\n.rdtCounter {\n width: 40px;\n}\n\n.rdtCounterSeparator {\n line-height: 100px;\n}\n\n.rdtCounter .rdtBtn {\n height: 40%;\n line-height: 40px;\n cursor: pointer;\n display: block;\n\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n.rdtCounter .rdtBtn:hover {\n background: #eee;\n}\n.rdtCounter .rdtCount {\n height: 20%;\n font-size: 1.2em;\n}\n\n.rdtMilli {\n vertical-align: middle;\n padding-left: 8px;\n width: 48px;\n}\n\n.rdtMilli input {\n width: 100%;\n font-size: 1.2em;\n margin-top: 37px;\n}\n\n.rdtTime td {\n cursor: default;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t?t.toString():null)}s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetDatetime=void 0;var r=a(n(1753)),i=a(n(1754)),o=a(n(1755));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"datetime",controlComponent:r.default,previewComponent:i.default,schema:o.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetDatetime=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),i=c(n(2)),o=n(9),a=c(n(740)),s=c(n(741)),l=c(n(195)),u=n(17);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={name:"6zq5jn-NowButton",styles:"position:absolute;right:20px;transform:translateY(-40px);width:fit-content;z-index:1;;label:NowButton;"};function p(e){let{t:t,handleChange:n}=e;return(0,o.jsx)("div",{css:f},(0,o.jsx)("button",{css:(0,o.css)(u.buttons.button," ",u.buttons.widget,";label:NowButton;"),onClick:()=>{n((0,l.default)())}},t("editor.editorWidgets.datetime.now")))}class h extends r.default.Component{constructor(){super(...arguments),d(this,"formats",this.getFormats()),d(this,"defaultValue",this.getDefaultValue()),d(this,"pickerUtc",this.getPickerUtc()),d(this,"isValidDate",e=>l.default.isMoment(e)||e instanceof Date||""===e),d(this,"handleChange",e=>{if(!this.isValidDate(e))return;const{onChange:t}=this.props,{format:n}=this.formats;if(n){t(e?(0,l.default)(e).format(n):"")}else{t(l.default.isMoment(e)?e.toDate():e)}}),d(this,"onClose",e=>{const{setInactiveStyle:t}=this.props;if(!this.isValidDate(e)){(0,l.default)(e).isValid()?this.handleChange(e):window.alert("The date you entered is invalid.")}t()})}getFormats(){const{field:e}=this.props,t=e.get("format"),n=e.get("date_format");let r=e.get("time_format");return void 0===r&&(r=!0),{format:t,dateFormat:n,timeFormat:r}}getDefaultValue(){const{field:e}=this.props;return e.get("default")}getPickerUtc(){const{field:e}=this.props;return e.get("picker_utc")}componentDidMount(){const{value:e}=this.props;void 0===e&&setTimeout(()=>{this.handleChange(void 0===this.defaultValue?new Date:this.defaultValue)},0)}render(){const{forID:e,value:t,classNameWrapper:n,setActiveStyle:r,t:i,isDisabled:u}=this.props,{format:c,dateFormat:d,timeFormat:f}=this.formats;return(0,o.jsx)("div",{css:(0,o.css)(a.default,";position:relative;;label:DateTimeControl;")},(0,o.jsx)(s.default,{dateFormat:d,timeFormat:f,value:(0,l.default)(t,c),onChange:this.handleChange,onOpen:r,onClose:this.onClose,inputProps:{className:n,id:e},utc:this.pickerUtc}),!u&&(0,o.jsx)(p,{t:i,handleChange:e=>this.handleChange(e)}))}}t.default=h,d(h,"propTypes",{field:i.default.object.isRequired,forID:i.default.string,onChange:i.default.func.isRequired,classNameWrapper:i.default.string.isRequired,setActiveStyle:i.default.func.isRequired,setInactiveStyle:i.default.func.isRequired,value:i.default.oneOfType([i.default.object,i.default.string])})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t?t.toString():null)}s.propTypes={value:r.default.oneOfType([r.default.object,r.default.string])};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{format:{type:"string"},date_format:{oneOf:[{type:"string"},{type:"boolean"}]},time_format:{oneOf:[{type:"string"},{type:"boolean"}]},picker_utc:{type:"boolean"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetCode=void 0;var r=a(n(1757)),i=a(n(1876)),o=a(n(1877));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l({name:"code",controlComponent:r.default,previewComponent:i.default,schema:o.default,allowMapValue:!0,codeMirrorConfig:{}},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetCode=c;var d=c;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(135)),i=y(n(258)),o=y(n(546)),a=y(n(0)),s=y(n(2)),l=y(n(33)),u=n(9),c=n(4),d=y(n(169)),f=n(1758),p=y(n(5));n(1759),n(1761),n(1762);var h=y(n(1763)),m=y(n(1765)),g=y(n(1767)),v=y(n(744));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const x=[{label:"AGS Script",identifiers:["ags","asc","ash"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"APL",identifiers:["apl","dyalog"],codemirror_mode:"apl",codemirror_mime_type:"text/apl"},{label:"ASN.1",identifiers:["asn"],codemirror_mode:"asn.1",codemirror_mime_type:"text/x-ttcn-asn"},{label:"ASP",identifiers:["asp","aspx","asax","ascx","ashx","asmx","axd"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-aspx"},{label:"Alpine Abuild",identifiers:["abuild","apkbuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"AngelScript",identifiers:["angelscript","as"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Ant Build System",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"application/xml"},{label:"Apex",identifiers:["apex","cls"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Asymptote",identifiers:["asymptote","asy"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"BibTeX",identifiers:["bibtex","bib"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Brainfuck",identifiers:["brainfuck","b","bf"],codemirror_mode:"brainfuck",codemirror_mime_type:"text/x-brainfuck"},{label:"C",identifiers:["c","cats","h","idc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"C#",identifiers:["csharp","cs","cake","csx"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"C++",identifiers:["cpp","cc","cp","cxx","h","hh","hpp","hxx","inc","inl","ino","ipp","re","tcc","tpp"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"C2hs Haskell",identifiers:["chs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"CMake",identifiers:["cmake"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"COBOL",identifiers:["cobol","cob","cbl","ccp","cpy"],codemirror_mode:"cobol",codemirror_mime_type:"text/x-cobol"},{label:"COLLADA",identifiers:["collada","dae"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"CSON",identifiers:["cson"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"CSS",identifiers:["css"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Cabal Config",identifiers:["Cabal","cabal"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"ChucK",identifiers:["chuck","ck"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Clojure",identifiers:["clojure","clj","boot","cljc","cljs","cljscm","cljx","hic"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Closure Templates",identifiers:["soy"],codemirror_mode:"soy",codemirror_mime_type:"text/x-soy"},{label:"Cloud Firestore Security Rules",identifiers:[],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"CoffeeScript",identifiers:["coffeescript","coffee","cake","cjsx","iced"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Common Lisp",identifiers:["lisp","asd","cl","l","lsp","ny","podsl","sexp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Common Workflow Language",identifiers:["cwl"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Component Pascal",identifiers:["delphi","objectpascal","cp","cps"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Crystal",identifiers:["crystal","cr"],codemirror_mode:"crystal",codemirror_mime_type:"text/x-crystal"},{label:"Cuda",identifiers:["cuda","cu","cuh"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Cycript",identifiers:["cycript","cy"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"Cython",identifiers:["cython","pyrex","pyx","pxd","pxi"],codemirror_mode:"python",codemirror_mime_type:"text/x-cython"},{label:"D",identifiers:["d","di"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"DTrace",identifiers:["dtrace","d"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Dart",identifiers:["dart"],codemirror_mode:"dart",codemirror_mime_type:"application/dart"},{label:"Dhall",identifiers:["dhall"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Diff",identifiers:["diff","udiff","patch"],codemirror_mode:"diff",codemirror_mime_type:"text/x-diff"},{label:"Dockerfile",identifiers:["dockerfile"],codemirror_mode:"dockerfile",codemirror_mime_type:"text/x-dockerfile"},{label:"Dylan",identifiers:["dylan","dyl","intr","lid"],codemirror_mode:"dylan",codemirror_mime_type:"text/x-dylan"},{label:"EBNF",identifiers:["ebnf"],codemirror_mode:"ebnf",codemirror_mime_type:"text/x-ebnf"},{label:"ECL",identifiers:["ecl","eclxml"],codemirror_mode:"ecl",codemirror_mime_type:"text/x-ecl"},{label:"EQ",identifiers:["eq"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"Eagle",identifiers:["eagle","sch","brd"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Easybuild",identifiers:["easybuild","eb"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Ecere Projects",identifiers:["epj"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"EditorConfig",identifiers:["editorconfig"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Edje Data Collection",identifiers:["edc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Eiffel",identifiers:["eiffel","e"],codemirror_mode:"eiffel",codemirror_mime_type:"text/x-eiffel"},{label:"Elm",identifiers:["elm"],codemirror_mode:"elm",codemirror_mime_type:"text/x-elm"},{label:"Emacs Lisp",identifiers:["elisp","emacs","el"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"EmberScript",identifiers:["emberscript","em"],codemirror_mode:"coffeescript",codemirror_mime_type:"text/x-coffeescript"},{label:"Erlang",identifiers:["erlang","erl","es","escript","hrl","xrl","yrl"],codemirror_mode:"erlang",codemirror_mime_type:"text/x-erlang"},{label:"F#",identifiers:["fsharp","fs","fsi","fsx"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-fsharp"},{label:"Factor",identifiers:["factor"],codemirror_mode:"factor",codemirror_mime_type:"text/x-factor"},{label:"Forth",identifiers:["forth","fth","f","for","fr","frt","fs"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Fortran",identifiers:["fortran","f","for","fpp"],codemirror_mode:"fortran",codemirror_mime_type:"text/x-fortran"},{label:"GCC Machine Description",identifiers:["md"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"GN",identifiers:["gn","gni"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"Game Maker Language",identifiers:["gml"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Genshi",identifiers:["genshi","kid"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Gentoo Ebuild",identifiers:["ebuild"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Gentoo Eclass",identifiers:["eclass"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Attributes",identifiers:["gitattributes"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Git Config",identifiers:["gitconfig","gitmodules"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Glyph",identifiers:["glyph","glf"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Go",identifiers:["go","golang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"Grammatical Framework",identifiers:["gf"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Groovy",identifiers:["groovy","grt","gtpl","gvy"],codemirror_mode:"groovy",codemirror_mime_type:"text/x-groovy"},{label:"Groovy Server Pages",identifiers:["gsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"HCL",identifiers:["hcl","terraform","tf","tfvars","workflow"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"HTML",identifiers:["html","xhtml","htm","inc","st","xht"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+Django",identifiers:["django","htmldjango","njk","nunjucks","jinja","mustache"],codemirror_mode:"django",codemirror_mime_type:"text/x-django"},{label:"HTML+ECR",identifiers:["ecr"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+EEX",identifiers:["eex"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTML+ERB",identifiers:["erb"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"HTML+PHP",identifiers:["phtml"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"HTML+Razor",identifiers:["razor","cshtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"HTTP",identifiers:["http"],codemirror_mode:"http",codemirror_mime_type:"message/http"},{label:"Hack",identifiers:["hack","hh","php"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"Haml",identifiers:["haml"],codemirror_mode:"haml",codemirror_mime_type:"text/x-haml"},{label:"Haskell",identifiers:["haskell","hs","hsc"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Haxe",identifiers:["haxe","hx","hxsl"],codemirror_mode:"haxe",codemirror_mime_type:"text/x-haxe"},{label:"HolyC",identifiers:["holyc","hc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"IDL",identifiers:["idl","pro","dlm"],codemirror_mode:"idl",codemirror_mime_type:"text/x-idl"},{label:"INI",identifiers:["ini","dosini","cfg","lektorproject","prefs","pro","properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"IRC log",identifiers:["irc","irclog","weechatlog"],codemirror_mode:"mirc",codemirror_mime_type:"text/mirc"},{label:"Ignore List",identifiers:["ignore","gitignore"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"JSON",identifiers:["json","avsc","geojson","gltf","har","ice","jsonl","mcmeta","tfstate","topojson","webapp","webmanifest","yy","yyp"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSON with Comments",identifiers:["jsonc"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JSON5",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONLD",identifiers:["jsonld"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSONiq",identifiers:["jsoniq","jq"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"JSX",identifiers:["jsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Java",identifiers:["java"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"Java Properties",identifiers:["properties"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"Java Server Pages",identifiers:["jsp"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-jsp"},{label:"JavaScript",identifiers:["javascript","js","node","bones","es","frag","gs","jake","jsb","jscad","jsfl","jsm","jss","mjs","njs","pac","sjs","ssjs","xsjs","xsjslib"],codemirror_mode:"javascript",codemirror_mime_type:"text/javascript"},{label:"JavaScript+ERB",identifiers:[],codemirror_mode:"javascript",codemirror_mime_type:"application/javascript"},{label:"Julia",identifiers:["julia","jl"],codemirror_mode:"julia",codemirror_mime_type:"text/x-julia"},{label:"Jupyter Notebook",identifiers:["ipynb"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"KiCad Layout",identifiers:["pcbnew"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Kit",identifiers:["kit"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Kotlin",identifiers:["kotlin","kt","ktm","kts"],codemirror_mode:"clike",codemirror_mime_type:"text/x-kotlin"},{label:"LFE",identifiers:["lfe"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"LTspice Symbol",identifiers:["asy"],codemirror_mode:"spreadsheet",codemirror_mime_type:"text/x-spreadsheet"},{label:"LabVIEW",identifiers:["labview","lvproj"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Latte",identifiers:["latte"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Less",identifiers:["less"],codemirror_mode:"css",codemirror_mime_type:"text/css"},{label:"Literate Haskell",identifiers:["lhaskell","lhs"],codemirror_mode:"haskell-literate",codemirror_mime_type:"text/x-literate-haskell"},{label:"LiveScript",identifiers:["livescript","ls"],codemirror_mode:"livescript",codemirror_mime_type:"text/x-livescript"},{label:"LookML",identifiers:["lookml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Lua",identifiers:["lua","fcgi","nse","rbxs","wlua"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"M",identifiers:["m","mumps"],codemirror_mode:"mumps",codemirror_mime_type:"text/x-mumps"},{label:"MATLAB",identifiers:["matlab","octave","m"],codemirror_mode:"octave",codemirror_mime_type:"text/x-octave"},{label:"MTML",identifiers:["mtml"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"MUF",identifiers:["muf","m"],codemirror_mode:"forth",codemirror_mime_type:"text/x-forth"},{label:"Makefile",identifiers:["makefile","bsdmake","make","mf","mak","d","mk","mkfile"],codemirror_mode:"cmake",codemirror_mime_type:"text/x-cmake"},{label:"Markdown",identifiers:["markdown","pandoc","md","mdown","mdwn","mdx","mkd","mkdn","mkdown","ronn","workbook"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"Marko",identifiers:["marko","markojs"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Mathematica",identifiers:["mathematica","mma","cdf","m","ma","mt","nb","nbp","wl","wlt"],codemirror_mode:"mathematica",codemirror_mime_type:"text/x-mathematica"},{label:"Maven POM",identifiers:[],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Max",identifiers:["max","maxmsp","maxpat","maxhelp","maxproj","mxt","pat"],codemirror_mode:"javascript",codemirror_mime_type:"application/json"},{label:"Metal",identifiers:["metal"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Mirah",identifiers:["mirah","druby","duby"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Modelica",identifiers:["modelica","mo"],codemirror_mode:"modelica",codemirror_mime_type:"text/x-modelica"},{label:"NSIS",identifiers:["nsis","nsi","nsh"],codemirror_mode:"nsis",codemirror_mime_type:"text/x-nsis"},{label:"NetLogo",identifiers:["netlogo","nlogo"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"NewLisp",identifiers:["newlisp","nl","lisp","lsp"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"Nginx",identifiers:["nginx","nginxconf","vhost"],codemirror_mode:"nginx",codemirror_mime_type:"text/x-nginx-conf"},{label:"Nu",identifiers:["nu","nush"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"NumPy",identifiers:["numpy","numpyw","numsc"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"OCaml",identifiers:["ocaml","ml","eliom","eliomi","mli","mll","mly"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Objective-C",identifiers:["objc","objectivec","m","h"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"Objective-C++",identifiers:["mm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-objectivec"},{label:"OpenCL",identifiers:["opencl","cl"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"OpenRC runscript",identifiers:["openrc"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Oz",identifiers:["oz"],codemirror_mode:"oz",codemirror_mime_type:"text/x-oz"},{label:"PHP",identifiers:["php","inc","aw","ctp","fcgi","phps","phpt"],codemirror_mode:"php",codemirror_mime_type:"application/x-httpd-php"},{label:"PLSQL",identifiers:["plsql","pls","bdy","ddl","fnc","pck","pkb","pks","plb","prc","spc","sql","tpb","tps","trg","vw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-plsql"},{label:"PLpgSQL",identifiers:["plpgsql","pgsql","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"Pascal",identifiers:["pascal","pas","dfm","dpr","inc","lpr","pp"],codemirror_mode:"pascal",codemirror_mime_type:"text/x-pascal"},{label:"Perl",identifiers:["perl","cperl","pl","al","cgi","fcgi","ph","plx","pm","psgi","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Perl 6",identifiers:["nqp","pl","pm","t"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"Pic",identifiers:["pic","chem"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Pod",identifiers:["pod"],codemirror_mode:"perl",codemirror_mime_type:"text/x-perl"},{label:"PowerShell",identifiers:["powershell","posh","pwsh"],codemirror_mode:"powershell",codemirror_mime_type:"application/x-powershell"},{label:"Protocol Buffer",identifiers:["protobuf","proto"],codemirror_mode:"protobuf",codemirror_mime_type:"text/x-protobuf"},{label:"Public Key",identifiers:["asc","pub"],codemirror_mode:"asciiarmor",codemirror_mime_type:"application/pgp"},{label:"Pug",identifiers:["pug","jade"],codemirror_mode:"pug",codemirror_mime_type:"text/x-pug"},{label:"Puppet",identifiers:["puppet","pp"],codemirror_mode:"puppet",codemirror_mime_type:"text/x-puppet"},{label:"PureScript",identifiers:["purescript","purs"],codemirror_mode:"haskell",codemirror_mime_type:"text/x-haskell"},{label:"Python",identifiers:["python","rusthon","py","bzl","cgi","fcgi","gyp","gypi","lmi","pyde","pyi","pyp","pyt","pyw","rpy","spec","tac","wsgi","xpy"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"R",identifiers:["r","R","Rscript","splus","rd","rsx"],codemirror_mode:"r",codemirror_mime_type:"text/x-rsrc"},{label:"RAML",identifiers:["raml"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"RHTML",identifiers:["rhtml"],codemirror_mode:"htmlembedded",codemirror_mime_type:"application/x-erb"},{label:"RMarkdown",identifiers:["rmarkdown","rmd"],codemirror_mode:"gfm",codemirror_mime_type:"text/x-gfm"},{label:"RPM Spec",identifiers:["specfile","spec"],codemirror_mode:"rpm",codemirror_mime_type:"text/x-rpm-spec"},{label:"Reason",identifiers:["reason","re","rei"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"Roff",identifiers:["roff","groff","man","manpage","mdoc","nroff","troff","l","me","ms","n","nr","rno","tmac"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Roff Manpage",identifiers:["man","mdoc"],codemirror_mode:"troff",codemirror_mime_type:"text/troff"},{label:"Rouge",identifiers:["rouge","rg"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"Ruby",identifiers:["ruby","jruby","macruby","rake","rb","rbx","builder","eye","fcgi","gemspec","god","jbuilder","mspec","pluginspec","podspec","rabl","rbuild","rbw","ru","spec","thor","watchr"],codemirror_mode:"ruby",codemirror_mime_type:"text/x-ruby"},{label:"Rust",identifiers:["rust","rs"],codemirror_mode:"rust",codemirror_mime_type:"text/x-rustsrc"},{label:"SAS",identifiers:["sas"],codemirror_mode:"sas",codemirror_mime_type:"text/x-sas"},{label:"SCSS",identifiers:["scss"],codemirror_mode:"css",codemirror_mime_type:"text/x-scss"},{label:"SPARQL",identifiers:["sparql","rq"],codemirror_mode:"sparql",codemirror_mime_type:"application/sparql-query"},{label:"SQL",identifiers:["sql","cql","ddl","inc","mysql","prc","tab","udf","viw"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SQLPL",identifiers:["sqlpl","sql"],codemirror_mode:"sql",codemirror_mime_type:"text/x-sql"},{label:"SRecode Template",identifiers:["srt"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"SVG",identifiers:["svg"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"Sage",identifiers:["sage","sagews"],codemirror_mode:"python",codemirror_mime_type:"text/x-python"},{label:"SaltStack",identifiers:["saltstack","saltstate","salt","sls"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Sass",identifiers:["sass"],codemirror_mode:"sass",codemirror_mime_type:"text/x-sass"},{label:"Scala",identifiers:["scala","kojo","sbt","sc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-scala"},{label:"Scheme",identifiers:["scheme","scm","sch","sld","sls","sps","ss"],codemirror_mode:"scheme",codemirror_mime_type:"text/x-scheme"},{label:"Shell",identifiers:["shell","sh","bash","zsh","bats","cgi","command","fcgi","ksh","tmux","tool"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"ShellSession",identifiers:["shellsession","console"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"Slim",identifiers:["slim"],codemirror_mode:"slim",codemirror_mime_type:"text/x-slim"},{label:"Smalltalk",identifiers:["smalltalk","squeak","st","cs"],codemirror_mode:"smalltalk",codemirror_mime_type:"text/x-stsrc"},{label:"Smarty",identifiers:["smarty","tpl"],codemirror_mode:"smarty",codemirror_mime_type:"text/x-smarty"},{label:"Squirrel",identifiers:["squirrel","nut"],codemirror_mode:"clike",codemirror_mime_type:"text/x-c++src"},{label:"Standard ML",identifiers:["sml","ML","fun","sig"],codemirror_mode:"mllike",codemirror_mime_type:"text/x-ocaml"},{label:"Svelte",identifiers:["svelte"],codemirror_mode:"htmlmixed",codemirror_mime_type:"text/html"},{label:"Swift",identifiers:["swift"],codemirror_mode:"swift",codemirror_mime_type:"text/x-swift"},{label:"SystemVerilog",identifiers:["systemverilog","sv","svh","vh"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-systemverilog"},{label:"TOML",identifiers:["toml"],codemirror_mode:"toml",codemirror_mime_type:"text/x-toml"},{label:"TSX",identifiers:["tsx"],codemirror_mode:"jsx",codemirror_mime_type:"text/jsx"},{label:"Tcl",identifiers:["tcl","adp","tm"],codemirror_mode:"tcl",codemirror_mime_type:"text/x-tcl"},{label:"Tcsh",identifiers:["tcsh","csh"],codemirror_mode:"shell",codemirror_mime_type:"text/x-sh"},{label:"TeX",identifiers:["tex","latex","aux","bbx","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],codemirror_mode:"stex",codemirror_mime_type:"text/x-stex"},{label:"Terra",identifiers:["terra","t"],codemirror_mode:"lua",codemirror_mime_type:"text/x-lua"},{label:"Textile",identifiers:["textile"],codemirror_mode:"textile",codemirror_mime_type:"text/x-textile"},{label:"Turtle",identifiers:["turtle","ttl"],codemirror_mode:"turtle",codemirror_mime_type:"text/turtle"},{label:"Twig",identifiers:["twig"],codemirror_mode:"twig",codemirror_mime_type:"text/x-twig"},{label:"TypeScript",identifiers:["typescript","ts"],codemirror_mode:"javascript",codemirror_mime_type:"application/typescript"},{label:"Unified Parallel C",identifiers:["upc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"Unity3D Asset",identifiers:["anim","asset","mat","meta","prefab","unity"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"Uno",identifiers:["uno"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csharp"},{label:"UnrealScript",identifiers:["unrealscript","uc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-java"},{label:"V",identifiers:["v","vlang"],codemirror_mode:"go",codemirror_mime_type:"text/x-go"},{label:"VHDL",identifiers:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],codemirror_mode:"vhdl",codemirror_mime_type:"text/x-vhdl"},{label:"Verilog",identifiers:["verilog","v","veo"],codemirror_mode:"verilog",codemirror_mime_type:"text/x-verilog"},{label:"Visual Basic",identifiers:["vbnet","vb","bas","cls","frm","frx","vba","vbhtml","vbs"],codemirror_mode:"vb",codemirror_mime_type:"text/x-vb"},{label:"Volt",identifiers:["volt"],codemirror_mode:"d",codemirror_mime_type:"text/x-d"},{label:"WebAssembly",identifiers:["webassembly","wast","wasm","wat"],codemirror_mode:"commonlisp",codemirror_mime_type:"text/x-common-lisp"},{label:"WebIDL",identifiers:["webidl"],codemirror_mode:"webidl",codemirror_mime_type:"text/x-webidl"},{label:"Windows Registry Entries",identifiers:["reg"],codemirror_mode:"properties",codemirror_mime_type:"text/x-properties"},{label:"X BitMap",identifiers:["xbm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"X PixMap",identifiers:["xpm","pm"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XC",identifiers:["xc"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XML",identifiers:["xml","rss","xsd","wsdl","adml","admx","ant","axml","builds","ccproj","ccxml","clixml","cproject","cscfg","csdef","csl","csproj","ct","depproj","dita","ditamap","ditaval","dotsettings","filters","fsproj","fxml","glade","gml","gmx","grxml","iml","ivy","jelly","jsproj","kml","launch","mdpolicy","mjml","mm","mod","mxml","natvis","ncl","ndproj","nproj","nuspec","odd","osm","pkgproj","pluginspec","proj","props","pt","rdf","resx","sch","scxml","sfproj","shproj","srdf","storyboard","targets","tml","ts","tsx","ui","urdf","ux","vbproj","vcxproj","vsixmanifest","vssettings","vstemplate","vxml","wixproj","workflow","wsf","wxi","wxl","wxs","xacro","xaml","xib","xlf","xliff","xmi","xproj","xspec","xul","zcml"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XML Property List",identifiers:["plist","stTheme","tmCommand","tmLanguage","tmPreferences","tmSnippet","tmTheme"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XPages",identifiers:["xpages"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XProc",identifiers:["xproc","xpl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"XQuery",identifiers:["xquery","xq","xql","xqm","xqy"],codemirror_mode:"xquery",codemirror_mime_type:"application/xquery"},{label:"XS",identifiers:["xs"],codemirror_mode:"clike",codemirror_mime_type:"text/x-csrc"},{label:"XSLT",identifiers:["xslt","xsl"],codemirror_mode:"xml",codemirror_mime_type:"text/xml"},{label:"YAML",identifiers:["yaml","yml","mir","reek","rviz","syntax"],codemirror_mode:"yaml",codemirror_mime_type:"text/x-yaml"},{label:"edn",identifiers:["edn"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"},{label:"reStructuredText",identifiers:["restructuredtext","rst","rest"],codemirror_mode:"rst",codemirror_mime_type:"text/x-rst"},{label:"wisp",identifiers:["wisp"],codemirror_mode:"clojure",codemirror_mime_type:"text/x-clojure"}].map(e=>({label:e.label,name:e.identifiers[0],mode:e.codemirror_mode,mimeType:e.codemirror_mime_type})),k={name:"",mode:"",label:"none"};function E(e){return"string"==typeof e?{value:e,label:e}:{value:e.name,label:e.label||e.name}}const S=x.map(E),O=["default","material"],C={theme:"cms.codemirror.theme",keyMap:"cms.codemirror.keymap"};class T extends a.default.Component{constructor(){var e;super(...arguments),w(this,"keys",this.getKeys(this.props.field)),w(this,"state",{isActive:!1,unknownLang:null,lang:"",keyMap:localStorage.getItem(C.keyMap)||"default",settingsVisible:!1,codeMirrorKey:(0,d.default)(),theme:localStorage.getItem(C.theme)||O[O.length-1],lastKnownValue:this.valueIsMap()?null===(e=this.props.value)||void 0===e?void 0:e.get(this.keys.code):this.props.value}),w(this,"getLanguageByName",e=>x.find(t=>t.name===e)),w(this,"getKeyMapOptions",()=>Object.keys(p.default.keyMap).sort().filter(e=>["emacs","vim","sublime","default"].includes(e)).map(e=>({value:e,label:e}))),w(this,"getInitialLang",()=>{const{value:e,field:t}=this.props,n=this.valueIsMap()&&e&&e.get(this.keys.lang)||t.get("default_language"),r=this.getLanguageByName(n);return n&&!r&&this.setState({unknownLang:n}),n}),w(this,"allowLanguageSelection",!this.props.field.has("allow_language_selection")||!!this.props.field.get("allow_language_selection")),w(this,"toValue",this.valueIsMap()?(e,t)=>(this.props.value||(0,c.Map)()).set(this.keys[e],t):(e,t)=>"code"===e?t:this.props.value),w(this,"showSettings",()=>{this.setState({settingsVisible:!0})}),w(this,"hideSettings",()=>{this.state.settingsVisible&&this.setState({settingsVisible:!1}),this.cm.focus()}),w(this,"handleFocus",()=>{this.hideSettings(),this.props.setActiveStyle(),this.setActive()}),w(this,"handleBlur",()=>{this.setInactive(),this.props.setInactiveStyle()}),w(this,"setActive",()=>this.setState({isActive:!0})),w(this,"setInactive",()=>this.setState({isActive:!1}))}shouldComponentUpdate(e,t){return!(0,i.default)(this.state,t)||this.props.classNameWrapper!==e.classNameWrapper}componentDidMount(){this.setState({lang:this.getInitialLang()||""})}componentDidUpdate(e,t){this.updateCodeMirrorProps(t)}updateCodeMirrorProps(e){const t=function(e,t,n){const i=(n||(0,o.default)(Object.keys(e),Object.keys(t))).reduce((n,r)=>(e[r]!==t[r]&&(n[r]=t[r]),n),{});if(!(0,r.default)(i))return i}(e,this.state,["lang","theme","keyMap"]);t&&this.handleChangeCodeMirrorProps(t)}getKeys(e){const t={code:"code",lang:"lang"};if(this.props.isEditorComponent)return t;const n=e.get("keys",(0,c.Map)()).toJS();return _(_({},t),n)}valueIsMap(){const{field:e,isEditorComponent:t}=this.props;return!e.get("output_code_only")||t}async handleChangeCodeMirrorProps(e){const{onChange:t}=this.props;if(e.lang){const{mode:t}=this.getLanguageByName(e.lang)||{};t&&n(1769)(`./${t}/${t}.js`)}if(this.cm){const e=this.cm.doc.getCursor(),t=this.cm.doc.listSelections();this.setState({codeMirrorKey:(0,d.default)()},()=>{this.cm.doc.setCursor(e),this.cm.doc.setSelections(t)})}for(const t of["theme","keyMap"])e[t]&&localStorage.setItem(C[t],e[t]);e.lang&&this.valueIsMap()&&t(this.toValue("lang",e.lang))}handleChange(e){const t=this.cm.doc.getCursor(),n=this.cm.doc.listSelections();this.setState({lastKnownValue:e}),this.props.onChange(this.toValue("code",e),{cursor:t,selections:n})}render(){const{classNameWrapper:e,forID:t,widget:n,isNewEditorComponent:r}=this.props,{lang:i,settingsVisible:o,keyMap:a,codeMirrorKey:s,theme:l,lastKnownValue:c}=this.state,d=this.getLanguageByName(i),p=(null==d?void 0:d.mimeType)||(null==d?void 0:d.mode);return(0,u.jsx)(u.ClassNames,null,i=>{let{css:y,cx:b}=i;return(0,u.jsx)("div",{className:b(e,y`
${h.default};
${m.default};
${"\n padding: 0;\n"};
`)},!o&&(0,u.jsx)(v.default,{onClick:this.showSettings}),o&&(0,u.jsx)(g.default,{hideSettings:this.hideSettings,forID:t,modes:S,mode:E(d||k),theme:O.find(e=>e===l),themes:O,keyMap:{value:a,label:a},keyMaps:this.getKeyMapOptions(),allowLanguageSelection:this.allowLanguageSelection,onChangeLang:e=>this.setState({lang:e}),onChangeTheme:e=>this.setState({theme:e}),onChangeKeyMap:e=>this.setState({keyMap:e})}),(0,u.jsx)(f.UnControlled,{key:s,id:t,className:y`
height: 100%;
border-radius: 0 3px 3px;
overflow: hidden;
.CodeMirror {
height: auto !important;
cursor: text;
min-height: 300px;
}
.CodeMirror-scroll {
min-height: 300px;
}
`,options:_(_({lineNumbers:!0},n.codeMirrorConfig),{},{extraKeys:_({"Shift-Tab":"indentLess",Tab:"indentMore"},n.codeMirrorConfig.extraKeys||{}),theme:l,mode:p,keyMap:a,viewportMargin:1/0}),detach:!0,editorDidMount:e=>{this.cm=e,r&&this.handleFocus()},value:c,onChange:(e,t,n)=>this.handleChange(n),onFocus:this.handleFocus,onBlur:this.handleBlur}))})}}t.default=T,w(T,"propTypes",{field:l.default.map.isRequired,onChange:s.default.func.isRequired,value:s.default.node,forID:s.default.string.isRequired,classNameWrapper:s.default.string.isRequired,widget:s.default.object.isRequired})},function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnControlled=t.Controlled=void 0;var s,l=n(0),u="undefined"==typeof navigator||!0===e.PREVENT_CODEMIRROR_RENDER;u||(s=n(5));var c=function(){function e(){}return e.equals=function(e,t){var n=this,r=Object.keys,o=i(e),a=i(t);return e&&t&&"object"===o&&o===a?r(e).length===r(t).length&&r(e).every((function(r){return n.equals(e[r],t[r])})):e===t},e}(),d=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,n){var r=this.editor.getDoc();n&&this.editor.focus(),t?r.setCursor(e):r.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,n){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(n.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter((function(e){return/^on/.test(e)})).forEach((function(e){switch(e){case"onBlur":t.editor.on("blur",(function(e,n){t.props.onBlur(t.editor,n)}));break;case"onContextMenu":t.editor.on("contextmenu",(function(e,n){t.props.onContextMenu(t.editor,n)}));break;case"onCopy":t.editor.on("copy",(function(e,n){t.props.onCopy(t.editor,n)}));break;case"onCursor":t.editor.on("cursorActivity",(function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())}));break;case"onCursorActivity":t.editor.on("cursorActivity",(function(e){t.props.onCursorActivity(t.editor)}));break;case"onCut":t.editor.on("cut",(function(e,n){t.props.onCut(t.editor,n)}));break;case"onDblClick":t.editor.on("dblclick",(function(e,n){t.props.onDblClick(t.editor,n)}));break;case"onDragEnter":t.editor.on("dragenter",(function(e,n){t.props.onDragEnter(t.editor,n)}));break;case"onDragLeave":t.editor.on("dragleave",(function(e,n){t.props.onDragLeave(t.editor,n)}));break;case"onDragOver":t.editor.on("dragover",(function(e,n){t.props.onDragOver(t.editor,n)}));break;case"onDragStart":t.editor.on("dragstart",(function(e,n){t.props.onDragStart(t.editor,n)}));break;case"onDrop":t.editor.on("drop",(function(e,n){t.props.onDrop(t.editor,n)}));break;case"onFocus":t.editor.on("focus",(function(e,n){t.props.onFocus(t.editor,n)}));break;case"onGutterClick":t.editor.on("gutterClick",(function(e,n,r,i){t.props.onGutterClick(t.editor,n,r,i)}));break;case"onInputRead":t.editor.on("inputRead",(function(e,n){t.props.onInputRead(t.editor,n)}));break;case"onKeyDown":t.editor.on("keydown",(function(e,n){t.props.onKeyDown(t.editor,n)}));break;case"onKeyHandled":t.editor.on("keyHandled",(function(e,n,r){t.props.onKeyHandled(t.editor,n,r)}));break;case"onKeyPress":t.editor.on("keypress",(function(e,n){t.props.onKeyPress(t.editor,n)}));break;case"onKeyUp":t.editor.on("keyup",(function(e,n){t.props.onKeyUp(t.editor,n)}));break;case"onMouseDown":t.editor.on("mousedown",(function(e,n){t.props.onMouseDown(t.editor,n)}));break;case"onPaste":t.editor.on("paste",(function(e,n){t.props.onPaste(t.editor,n)}));break;case"onRenderLine":t.editor.on("renderLine",(function(e,n,r){t.props.onRenderLine(t.editor,n,r)}));break;case"onScroll":t.editor.on("scroll",(function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())}));break;case"onSelection":t.editor.on("beforeSelectionChange",(function(e,n){t.props.onSelection(t.editor,n)}));break;case"onTouchStart":t.editor.on("touchstart",(function(e,n){t.props.onTouchStart(t.editor,n)}));break;case"onUpdate":t.editor.on("update",(function(e){t.props.onUpdate(t.editor)}));break;case"onViewportChange":t.editor.on("viewportChange",(function(e,n,r){t.props.onViewportChange(t.editor,n,r)}))}}))},e}(),f=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedNext=!1,n.appliedUserDefined=!1,n.deferred=null,n.emulating=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&(t.editor.setOption(e,i[e]),t.mirror.setOption(e,i[e]))})),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),n=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:n,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if("undo"===this.deferred.origin?t.undo():"redo"===this.deferred.origin?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var n=t.getCursor();t.setValue(e),t.setCursor(n)}this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.mirror=s((function(){}),this.props.options),this.editor.on("electricInput",(function(){e.mirror.setHistory(e.editor.getDoc().getHistory())})),this.editor.on("cursorActivity",(function(){e.mirror.setCursor(e.editor.getDoc().getCursor())})),this.editor.on("beforeChange",(function(t,n){if(!e.emulating){n.cancel(),e.deferred=n;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,n,e.editor.getValue())})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.Controlled=f;var p=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedUserDefined=!1,n.continueChange=!1,n.detached=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1,n.onBeforeChangeCb=function(){n.continueChange=!0}),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);if(Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&t.editor.setOption(e,i[e])})),!this.hydrated){var o=this.editor.getDoc(),a=o.lastLine(),l=o.getLine(o.lastLine()).length;o.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:l})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new d(this.editor,this.props),this.editor.on("beforeChange",(function(t,n){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,n,e.editor.getValue(),e.onBeforeChangeCb)})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,n,e.editor.getValue()):e.props.onChange(e.editor,n,e.editor.getValue()))})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){var n=!0;return u&&(n=!1),this.detached&&e.detach&&(n=!1),n},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.UnControlled=p}).call(this,n(56))},function(e,t,n){!function(e){"use strict";var t=e.Pos;function n(e,n){var r=e.state.vim;if(!r||r.insertMode)return n.head;var i=r.sel.head;return i?r.visualBlock&&n.head.line!=i.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=i.line||n.head.ch==i.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var r=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],i=r.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];e.Vim=function(){function a(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==s||function(t){t.setOption("disableInput",!1),t.off("cursorActivity",Je),e.off(t.getInputField(),"paste",d(t)),t.state.vim=null,Be&&clearTimeout(Be)}(t)}function s(t,r){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),r&&r.attach==s||function(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",Je),N(t),e.on(t.getInputField(),"paste",d(t))}(t)}function l(t,n){if(n){if(this[t])return this[t];var r=function(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in u?t[i]=u[o]:r=!0,o in c&&(t[i]=c[o])}return!!r&&(E(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}(t);if(!r)return!1;var i=B.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,(function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var u={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},c={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function d(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(Z(e.getCursor(),0,1)),Y.enterInsertMode(e,{},t))}),t.onPasteFn}var f=/[\d]/,p=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],h=[function(e){return/\S/.test(e)}];function m(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var g,v=m(65,26),y=m(97,26),b=m(48,10),_=[].concat(v,y,b,["<",">"]),w=[].concat(v,y,b,["-",'"',".",":","_","/"]);try{g=new RegExp("^[\\p{Lu}]$","u")}catch(e){g=/^[A-Z]$/}function x(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function k(e){return/^[a-z]$/.test(e)}function E(e){return g.test(e)}function S(e){return/^\s*$/.test(e)}function O(e){return-1!=".?!".indexOf(e)}function C(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var T={};function A(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),T[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)T[r[o]]=T[e];t&&P(e,t)}function P(e,t,n,r){var i=T[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function R(e,t,n){var r=T[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}A("filetype",void 0,"string",["ft"],(function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}}));var j,I,M=function(){var e=-1,t=0,n=0,r=new Array(100);function i(i,o){(e+=o)>t?e=t:e<n&&(e=n);var a=r[(100+e)%100];if(a&&!a.find()){var s,l=o>0?1:-1,u=i.getCursor();do{if((a=r[(100+(e+=l))%100])&&(s=a.find())&&!ne(u,s))break}while(e<t&&e>n)}return a}return{cachedCursor:void 0,add:function(i,o,a){var s=r[e%100];function l(t){var n=++e%100,o=r[n];o&&o.clear(),r[n]=i.setBookmark(t)}if(s){var u=s.find();u&&!ne(u,o)&&l(o)}else l(o);l(a),t=e,(n=e-100+1)<0&&(n=0)},find:function(t,n){var r=e,o=i(t,n);return e=r,o&&o.find()},move:i}},L=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function D(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=L()}function N(e){return e.state.vim||(e.state.vim={inputState:new z,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function F(){for(var e in j={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:M(),macroModeState:new D,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new W({}),searchHistoryController:new H,exCommandHistoryController:new H},T){var t=T[e];t.value=t.defaultValue}}D.prototype={exitMacroRecordMode:function(){var e=j.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=j.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog(document.createTextNode("(recording)["+t+"]"),null,{bottom:!0})),this.isRecording=!0)}};var B={buildKeyMap:function(){},getRegisterController:function(){return j.registerController},resetVimGlobalState_:F,getVimGlobalState_:function(){return j},maybeInitVimState_:N,suppressErrorLogging:!1,InsertModeKey:et,map:function(e,t,n){Ke.map(e,t,n)},unmap:function(e,t){return Ke.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=r.length,l=s-i;l<s&&a.length;l++){var u=r[l];if(!(u.keys!=t||n&&u.context&&u.context!==n||"ex"===u.type.substr(0,2)||"key"===u.type.substr(0,3))){var c={};for(var d in u)c[d]=u[d];c.keys=e,n&&!c.context&&(c.context=n),this._mapCommand(c);var f=o(u.context);a=a.filter((function(e){return-1===f.indexOf(e)}))}}},mapclear:function(e){var t=r.length,n=i,o=r.slice(0,t-n);if(r=r.slice(t-n),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var u in l)if(l[u]!==e){var c={};for(var d in s)c[d]=s[d];c.context=l[u],this._mapCommand(c)}}}},setOption:P,getOption:R,defineOption:A,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ge[e]=n,Ke.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},findKey:function(e,t,n){var i,o=N(e);function a(){var r=j.macroModeState;if(r.isRecording){if("q"==t)return r.exitMacroRecordMode(),U(e),!0;"mapping"!=n&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=j.registerController.getRegister(n);r&&r.pushText(t)}}(r,t)}}function s(){if("<Esc>"==t){if(o.visualMode)me(e);else{if(!o.insertMode)return;Ye(e)}return U(e),!0}}return!1===(i=o.insertMode?function(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,i=1==t.length,a=$.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=$.matchCommand(n,r,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return U(e),!1;if("partial"==a.type)return I&&window.clearTimeout(I),I=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&U(e)}),R("insertModeEscKeysTimeout")),!i;if(I&&window.clearTimeout(I),i){for(var u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].head;e.replaceRange("",Z(d,0,-(n.length-1)),d,"+input")}j.macroModeState.lastInsertModeChanges.changes.pop()}return U(e),a.command}():function(){if(a()||s())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t;if(/^[1-9]\d*$/.test(n))return!0;if(!(u=/^(\d*)(.*)$/.exec(n)))return U(e),!1;var i=o.visualMode?"visual":"normal",l=u[2]||u[1];o.inputState.operatorShortcut&&o.inputState.operatorShortcut.slice(-1)==l&&(l=o.inputState.operatorShortcut);var u,c=$.matchCommand(l,r,o.inputState,i);return"none"==c.type?(U(e),!1):"partial"==c.type||(o.inputState.keyBuffer="",(u=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=u[1]&&o.inputState.pushRepeatDigit(u[1]),c.command)}())?o.insertMode||1!==t.length?void 0:function(){return!0}:!0===i?function(){return!0}:function(){return e.operation((function(){e.curOp.isVimOp=!0;try{"keyToKey"==i.type?function(n){for(var r;n;)r=/<\w+-.+?>|<\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),B.handleKey(e,t,"mapping")}(i.toKeys):$.processCommand(e,o,i)}catch(t){throw e.state.vim=void 0,N(e),B.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){Ke.processCommand(e,t)},defineMotion:function(e,t){V[e]=t},defineAction:function(e,t){Y[e]=t},defineOperator:function(e,t){K[e]=t},mapCommand:function(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Qe(o)},_mapCommand:Qe,defineRegister:function(e,t){var n=j.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,w.push(e)},exitVisualMode:me,exitInsertMode:Ye};function z(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function U(t,n){t.state.vim.inputState=new z,e.signal(t,"vim-command-done",n)}function q(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function W(e){this.registers=e,this.unnamedRegister=e['"']=new q,e["."]=new q,e[":"]=new q,e["/"]=new q}function H(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}z.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},z.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},q.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(L(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},W.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)E(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new q(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new q(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new q(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new q),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&C(e,w)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},H.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var $={matchCommand:function(e,t,n,r){var i,o=function(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=J(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}(e);if(!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=X(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);U(e)}r.operator=n.operator,r.operatorArgs=X(n.operatorArgs),n.keys.length>1&&(r.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,pe(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=X(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=X(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,U(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),Y[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;Ae(t).setReversed(!i);var a=i?"/":"?",s=Ae(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var u=j.macroModeState;u.isPlaying?p(f=u.replaySearchQueries.shift(),!0,!1):Ne(t,{onClose:function(e){t.scrollTo(l.left,l.top),p(e,!0,!0);var n=j.macroModeState;n.isRecording&&function(e,t){if(!e.isPlaying){var n=e.latestRegister,r=j.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}(n,e)},prefix:a,desc:"(JavaScript regexp)",onKeyUp:function(n,r,o){var a,s,u,c=e.keyName(n);"Up"==c||"Down"==c?(a="Up"==c,s=n.target?n.target.selectionEnd:0,o(r=j.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&j.searchHistoryController.reset();try{u=Fe(t,r,!0,!0)}catch(n){}u?t.scrollIntoView(Ue(t,!i,u),30):(qe(t),t.scrollTo(l.left,l.top))},onKeyDown:function(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(j.searchHistoryController.pushInput(r),j.searchHistoryController.reset(),Fe(t,s),qe(t),t.scrollTo(l.left,l.top),e.e_stop(n),U(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}});break;case"wordUnderCursor":var c=ve(t,!1,0,!1,!0),d=!0;if(c||(c=ve(t,!1,0,!1,!1),d=!1),!c)return;var f=t.getLine(c.start.line).substring(c.start.ch,c.end.ch);f=d&&o?"\\b"+f+"\\b":f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),j.jumpList.cachedCursor=t.getCursor(),t.setCursor(c.start),p(f,!0,!1)}}function p(e,i,o){j.searchHistoryController.pushInput(e),j.searchHistoryController.reset();try{Fe(t,e,i,o)}catch(n){return De(t,"Invalid regex: "+e),void U(t)}$.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}},processEx:function(t,n,r){function i(e){j.exCommandHistoryController.pushInput(e),j.exCommandHistoryController.reset(),Ke.processCommand(t,e)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(j.exCommandHistoryController.pushInput(r),j.exCommandHistoryController.reset(),e.e_stop(n),U(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=j.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&j.exCommandHistoryController.reset()}"keyToEx"==r.type?Ke.processCommand(t,r.exArgs.input):n.visualMode?Ne(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):Ne(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,n){var r,i,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},u=a.operator,c=a.operatorArgs||{},d=a.registerName,f=n.sel,p=te(n.visualMode?Q(e,f.head):e.getCursor("head")),h=te(n.visualMode?Q(e,f.anchor):e.getCursor("anchor")),m=te(p),g=te(h);if(u&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=a.selectedCharacter),l.repeat=o,U(e),s){var v=V[s](e,p,l,n,a);if(n.lastMotion=V[s],!v)return;if(l.toJumplist){var y=j.jumpList,b=y.cachedCursor;b?(ye(e,b,v),delete y.cachedCursor):ye(e,p,v)}v instanceof Array?(i=v[0],r=v[1]):r=v,r||(r=te(p)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=Q(e,r)),i&&(i=Q(e,i)),i=i||g,f.anchor=i,f.head=r,pe(e),Se(e,n,"<",re(i,r)?i:r),Se(e,n,">",re(i,r)?r:i)):u||(r=Q(e,r),e.setCursor(r.line,r.ch))}if(u){if(c.lastSel){i=g;var _=c.lastSel,w=Math.abs(_.head.line-_.anchor.line),x=Math.abs(_.head.ch-_.anchor.ch);r=_.visualLine?new t(g.line+w,g.ch):_.visualBlock?new t(g.line+w,g.ch+x):_.head.line==_.anchor.line?new t(g.line,g.ch+x):new t(g.line+w,g.ch),n.visualMode=!0,n.visualLine=_.visualLine,n.visualBlock=_.visualBlock,f=n.sel={anchor:i,head:r},pe(e)}else n.visualMode&&(c.lastSel={anchor:te(f.anchor),head:te(f.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var k,E,O,C,T;if(n.visualMode){if(k=ie(f.head,f.anchor),E=oe(f.head,f.anchor),O=n.visualLine||c.linewise,T=he(e,{anchor:k,head:E},C=n.visualBlock?"block":O?"line":"char"),O){var A=T.ranges;if("block"==C)for(var P=0;P<A.length;P++)A[P].head.ch=se(e,A[P].head.line);else"line"==C&&(A[0].head=new t(A[0].head.line+1,0))}}else{if(k=te(i||g),re(E=te(r||m),k)){var R=k;k=E,E=R}(O=l.linewise||c.linewise)?function(e,t,n){t.ch=0,n.ch=0,n.line++}(0,k,E):l.forward&&function(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&S(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=se(e,n.line)):n.ch=0}}(e,k,E),T=he(e,{anchor:k,head:E},C="char",!l.inclusive||O)}e.setSelections(T.ranges,T.primary),n.lastMotion=null,c.repeat=o,c.registerName=d,c.linewise=O;var I=K[u](e,c,T.ranges,g,r);n.visualMode&&me(e,null!=I),I&&e.setCursor(I)}},recordLastEdit:function(e,t,n){var r=j.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},V={moveToTopLine:function(e,n,r){var i=We(e).top+r.repeat-1;return new t(i,ge(e.getLine(i)))},moveToMiddleLine:function(e){var n=We(e),r=Math.floor(.5*(n.top+n.bottom));return new t(r,ge(e.getLine(r)))},moveToBottomLine:function(e,n,r){var i=We(e).bottom-r.repeat+1;return new t(i,ge(e.getLine(i)))},expandToLine:function(e,n,r){return new t(n.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=Ae(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,ze(e,i),Ue(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(n,r,i,o,a){var s=Ae(n),l=s.getQuery();if(l){var u=!i.forward,c=function(e,n,r,i,o){return void 0===i&&(i=1),e.operation((function(){var a=e.getCursor(),s=e.getSearchCursor(r,a),l=s.find(!n);!o.visualMode&&l&&ne(s.from(),a)&&s.find(!n);for(var u=0;u<i;u++)if(!(l=s.find(n))&&!(s=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return;return[s.from(),s.to()]}))}(n,u=s.isReversed()?!u:u,l,i.repeat,o);if(c){if(a.operator)return c;var d=c[0],f=new t(c[1].line,c[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""}));var p=o.sel.anchor;if(p)return s.isReversed()?i.forward?[p,d]:[p,f]:i.forward?[p,f]:[p,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""});return u?[f,d]:[d,f]}}},goToMark:function(e,t,n,r){var i=He(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:ge(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,n,r,i){if(i.visualBlock&&r.sameLine){var o=i.sel;return[Q(e,new t(o.anchor.line,o.head.ch)),Q(e,new t(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,n,r,i){for(var o=n,a=0;a<r.repeat;a++){var s=o;for(var l in i.marks)if(k(l)){var u=i.marks[l].find();if(!((r.forward?re(u,s):re(s,u))||r.linewise&&u.line==s.line)){var c=ne(s,o),d=r.forward?ae(s,u,o):ae(o,u,s);(c||d)&&(o=u)}}}return r.linewise&&(o=new t(o.line,ge(e.getLine(o.line)))),o},moveByCharacters:function(e,n,r){var i=n,o=r.repeat,a=r.forward?i.ch+o:i.ch-o;return new t(i.line,a)},moveByLines:function(e,n,r,i){var o=n,a=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=i.lastHPos;break;default:i.lastHPos=a}var s=r.repeat+(r.repeatOffset||0),l=r.forward?o.line+s:o.line-s,u=e.firstLine(),c=e.lastLine(),d=e.findPosV(o,r.forward?s:-s,"line",i.lastHSPos);return(r.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<u&&o.line==u?this.moveToStartOfLine(e,n,r,i):l>c&&o.line==c?ke(e,n,r,i,!0):(r.toFirstChar&&(a=ge(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,r,i){var o=n;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat;if((l=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos)).hitSide)if(r.forward)var s={top:e.charCoords(l,"div").top+8,left:i.lastHSPos},l=e.coordsChar(s,"div");else{var u=e.charCoords(new t(e.firstLine(),0),"div");u.left=i.lastHSPos,l=e.coordsChar(u,"div")}return i.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Ce(e,t,n.repeat,r)},moveBySentence:function(e,n,r){var i=r.forward?1:-1;return function(e,n,r,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!x(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(u=e.getLine(t)),a={line:u,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!S(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!O(a.line[a.pos])||i||a.pos!==a.line.length-1&&!S(a.line[a.pos+1])||(i=!0),o(e,a)}var u=e.getLine(s.ln);s.pos=0;for(var c=u.length-1;c>=0;--c)if(!S(u[c])){s.pos=c;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(O(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||S(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var u=0;u<l.length;++u)if(!S(l[u])){a.pos=u;break}return a}for(var l={ln:n.line,pos:n.ch};r>0;)l=i<0?s(e,l.ln,l.pos,i):a(e,l.ln,l.pos,i),r--;return new t(l.ln,l.pos)}(e,n,r.repeat,i)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(o=V.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(e,n,r){return function(e,n,r,i,o,a){var s=te(n),l=[];(i&&!o||!i&&o)&&r++;for(var u=!(i&&o),c=0;c<r;c++){var d=xe(e,n,i,a,u);if(!d){var f=se(e,e.lastLine());l.push(i?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(d),n=new t(d.line,i?d.to-1:d.from)}var p=l.length!=r,h=l[0],m=l.pop();return i&&!o?(p||h.from==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.from)):i&&o?new t(m.line,m.to-1):!i&&o?(p||h.to==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.to)):new t(m.line,m.from)}(e,n,r.repeat,!!r.forward,!!r.wordEnd,!!r.bigWord)},moveTillCharacter:function(e,t,n){var r=Ee(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return be(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return be(0,n),Ee(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,n,r){return function(e,n,r,i){var o=te(e.getCursor()),a=r?1:-1,s=r?e.lineCount():-1,l=o.ch,u=o.line,c=e.getLine(u),d={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:i,reverseSymb:(r?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:r,depth:0,curMoveThrough:!1},f=_e[i];if(!f)return o;var p=we[f].init,h=we[f].isComplete;for(p&&p(d);u!==s&&n;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(u+=a,d.lineText=e.getLine(u)||"",a>0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=u,o.ch=d.index,n--)}return d.nextCh||d.curMoveThrough?new t(u,d.index):o}(e,r.repeat,r.forward,r.selectedCharacter)||n},moveToColumn:function(e,n,r,i){var o=r.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(n,"div").left,function(e,n){var r=e.getCursor().line;return Q(e,new t(r,n-1))}(e,o)},moveToEol:function(e,t,n,r){return ke(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var r=n;return new t(r.line,ge(e.getLine(r.line)))},moveToMatchedSymbol:function(e,n){for(var r,i=n,o=i.line,a=i.ch,s=e.getLine(o);a<s.length;a++)if((r=s.charAt(a))&&-1!="()[]{}".indexOf(r)){var l=e.getTokenTypeAt(new t(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var u="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:u}).to}return i},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),new t(i,ge(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(n,r,i,o){var a=i.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!i.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[a])s=function(e,n,r,i){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],u={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],c=e.getLine(s.line).charAt(s.ch)===u?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+c),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+c),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return i?a.ch+=1:o.ch+=1,{start:o,end:a}}(n,r,a,l);else if({"'":!0,'"':!0,"`":!0}[a])s=function(e,n,r,i){var o,a,s,l,u=te(n),c=e.getLine(u.line).split(""),d=c.indexOf(r);if(u.ch<d?u.ch=d:d<u.ch&&c[u.ch]==r&&(a=u.ch,--u.ch),c[u.ch]!=r||a)for(s=u.ch;s>-1&&!o;s--)c[s]==r&&(o=s+1);else o=u.ch+1;if(o&&!a)for(s=o,l=c.length;s<l&&!a;s++)c[s]==r&&(a=s);return o&&a?(i&&(--o,++a),{start:new t(u.line,o),end:new t(u.line,a)}):{start:u,end:u}}(n,r,a,l);else if("W"===a)s=ve(n,l,0,!0);else if("w"===a)s=ve(n,l,0,!1);else if("p"===a)if(s=Ce(n,r,i.repeat,0,l),i.linewise=!0,o.visualMode)o.visualLine||(o.visualLine=!0);else{var u=o.inputState.operatorArgs;u&&(u.linewise=!0),s.end.line--}else{if("t"!==a)return null;s=function(t,n,r){var i=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:i,end:i};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}(n,r,l)}return n.state.vim.visualMode?function(e,n,r){var i,o=e.state.vim.sel,a=o.head,s=o.anchor;return re(r,n)&&(i=r,r=n,n=i),re(a,s)?(a=ie(n,a),s=oe(s,r)):(s=ie(n,s),-1==(a=Z(a=oe(a,r),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,se(e,a.line-1)))),[s,a]}(n,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=j.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Ee(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function G(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var K={change:function(n,r,i){var o,a,s=n.state.vim,l=i[0].anchor,u=i[0].head;if(s.visualMode)if(r.fullLine)u.ch=Number.MAX_VALUE,u.line--,n.setSelection(l,u),a=n.getSelection(),n.replaceSelection(""),o=l;else{a=n.getSelection();var c=G("",i.length);n.replaceSelections(c),o=ie(i[0].head,i[0].anchor)}else{a=n.getRange(l,u);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!S(a)){var f=/\s+$/.exec(a);f&&d.motionArgs&&d.motionArgs.forward&&(u=Z(u,0,-f[0].length),a=a.slice(0,-f[0].length))}var p=new t(l.line-1,Number.MAX_VALUE),h=n.firstLine()==n.lastLine();u.line>n.lastLine()&&r.linewise&&!h?n.replaceRange("",p,u):n.replaceRange("",l,u),r.linewise&&(h||(n.setCursor(p),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}j.registerController.pushText(r.registerName,"change",a,r.linewise,i.length>1),Y.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=G("",r.length);e.replaceSelections(s),i=ie(r[0].head,r[0].anchor)}else{var l=r[0].anchor,u=r[0].head;n.linewise&&u.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==u.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,se(e,l.line-1))),o=e.getRange(l,u),e.replaceRange("",l,u),i=l,n.linewise&&(i=V.moveToFirstNonWhiteSpaceCharacter(e,l))}return j.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),Q(e,i)},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?t.repeat:1;t.linewise&&o--;for(var s=i;s<=o;s++)for(var l=0;l<a;l++)e.indentLine(s,t.indentRight);return V.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),V.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var u=o[l],c="";if(!0===s)c=u.toLowerCase();else if(!1===s)c=u.toUpperCase();else for(var d=0;d<u.length;d++){var f=u.charAt(d);c+=E(f)?f.toLowerCase():f.toUpperCase()}a.push(c)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?V.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:ie(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?ie(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return j.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}},Y={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=j.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=te(e.getCursor()),u=e.charCoords(l,"local");if(t.forward)s>u.top?(l.line+=(s-u.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.top)):e.scrollTo(null,s);else{var c=s+e.getScrollInfo().clientHeight;c<u.bottom?(l.line-=(u.bottom-c)/i,l.line=Math.floor(l.line),e.setCursor(l),u=e.charCoords(l,"local"),e.scrollTo(null,u.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,n){var r=e.getCursor().line,i=e.charCoords(new t(r,0),"local"),o=e.getScrollInfo().clientHeight,a=i.top,s=i.bottom-a;switch(n.position){case"center":a=a-o/2+s;break;case"bottom":a=a-o+s}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=j.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)Xe(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=j.macroModeState,r=t.selectedCharacter;j.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,i){if(!n.getOption("readOnly")){i.insertMode=!0,i.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=i.sel,s=r.head||n.getCursor("head"),l=n.listSelections().length;if("eol"==o)s=new t(s.line,se(n,s.line));else if("bol"==o)s=new t(s.line,0);else if("charAfter"==o)s=Z(s,0,1);else if("firstNonBlank"==o)s=V.moveToFirstNonWhiteSpaceCharacter(n,s);else if("startOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?Z(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(i.visualMode)return}else"lastEdit"==o&&(s=$e(n)||s);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),j.macroModeState.isPlaying||(n.on("change",Ze),e.on(n.getInputField(),"keydown",tt)),i.visualMode&&me(n),de(n,s,l)}},toggleVisualMode:function(n,r,i){var o,a=r.repeat,s=n.getCursor();i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),pe(n)):me(n):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,o=Q(n,new t(s.line,s.ch+a-1)),i.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),pe(n),Se(n,i,"<",ie(s,o)),Se(n,i,">",oe(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&fe(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,pe(t),Se(t,r,"<",ie(o,a)),Se(t,r,">",oe(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,n,r){var i,o;if(r.visualMode){if(i=e.getCursor("anchor"),re(o=e.getCursor("head"),i)){var a=o;o=i,i=a}o.ch=se(e,o.line)-1}else{var s=Math.max(n.repeat,2);i=e.getCursor(),o=Q(e,new t(i.line+s-1,1/0))}for(var l=0,u=i.line;u<o.line;u++){l=se(e,i.line),a=new t(i.line+1,se(e,i.line+1));var c=e.getRange(i,a);c=n.keepSpaces?c.replace(/\n\r?/g,""):c.replace(/\n\s*/g," "),e.replaceRange(c,i,a)}var d=new t(i.line,l);r.visualMode&&me(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(n,r,i){i.insertMode=!0;var o=te(n.getCursor());o.line!==n.firstLine()||r.after?(o.line=r.after?o.line:o.line-1,o.ch=se(n,o.line),n.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n)):(n.replaceRange("\n",new t(n.firstLine(),0)),n.setCursor(n.firstLine(),0)),this.enterInsertMode(n,{repeat:r.repeat},i)},paste:function(e,n,r){var i=te(e.getCursor()),o=j.registerController.getRegister(n.registerName);if(p=o.toString()){if(n.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),u=s(l.match(/^\s*/)[0]),c=p.replace(/\n$/,""),d=p!==c,f=s(p.match(/^\s*/)[0]),p=c.replace(/^\s*/gm,(function(t){var n=u+(s(t)-f);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));p+=d?"\n":""}n.repeat>1&&(p=Array(n.repeat+1).join(p));var h,m,g=o.linewise,v=o.blockwise;if(v){p=p.split("\n"),g&&p.pop();for(var y=0;y<p.length;y++)p[y]=""==p[y]?" ":p[y];i.ch+=n.after?1:0,i.ch=Math.min(se(e,i.line),i.ch)}else g?r.visualMode?p=r.visualLine?p.slice(0,-1):"\n"+p.slice(0,p.length-1)+"\n":n.after?(p="\n"+p.slice(0,p.length-1),i.ch=se(e,i.line)):i.ch=0:i.ch+=n.after?1:0;if(r.visualMode){var b;r.lastPastedText=p;var _=function(e,n){var r=n.lastSelection;return n.visualMode?function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[re(n.anchor,n.head)?n.anchor:n.head,re(r.anchor,r.head)?r.head:r.anchor]}():function(){var n=e.getCursor(),i=e.getCursor(),o=r.visualBlock;if(o){var a=o.width,s=o.height;i=new t(n.line+s,n.ch+a);for(var l=[],u=n.line;u<i.line;u++){var c={anchor:new t(u,n.ch),head:new t(u,i.ch)};l.push(c)}e.setSelections(l)}else{var d=r.anchorMark.find(),f=r.headMark.find(),p=f.line-d.line,h=f.ch-d.ch;i={line:i.line+p,ch:p?i.ch:h+i.ch},r.visualLine&&(n=new t(n.line,0),i=new t(i.line,se(e,i.line))),e.setSelection(n,i)}return[n,i]}()}(e,r),w=_[0],x=_[1],k=e.getSelection(),E=e.listSelections(),S=new Array(E.length).join("1").split("1");r.lastSelection&&(b=r.lastSelection.headMark.find()),j.registerController.unnamedRegister.setText(k),v?(e.replaceSelections(S),x=new t(w.line+p.length-1,w.ch),e.setCursor(w),ce(e,x),e.replaceSelections(p),h=w):r.visualBlock?(e.replaceSelections(S),e.setCursor(w),e.replaceRange(p,w,w),h=w):(e.replaceRange(p,w,x),h=e.posFromIndex(e.indexFromPos(w)+p.length-1)),b&&(r.lastSelection.headMark=e.setBookmark(b)),g&&(h.ch=0)}else if(v){for(e.setCursor(i),y=0;y<p.length;y++){var O=i.line+y;O>e.lastLine()&&e.replaceRange("\n",new t(O,0)),se(e,O)<i.ch&&ue(e,O,i.ch)}e.setCursor(i),ce(e,new t(i.line+p.length-1,i.ch)),e.replaceSelections(p),h=i}else e.replaceRange(p,i),g&&n.after?h=new t(i.line+1,ge(e.getLine(i.line+1))):g&&!n.after?h=new t(i.line,ge(e.getLine(i.line))):!g&&n.after?(m=e.indexFromPos(i),h=e.posFromIndex(m+p.length-1)):(m=e.indexFromPos(i),h=e.posFromIndex(m+p.length));r.visualMode&&me(e,!1),e.setCursor(h)}},undo:function(t,n){t.operation((function(){ee(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))}))},redo:function(t,n){ee(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Se(e,n,t.selectedCharacter,e.getCursor())},replace:function(n,r,i){var o,a,s=r.selectedCharacter,l=n.getCursor(),u=n.listSelections();if(i.visualMode)l=n.getCursor("start"),a=n.getCursor("end");else{var c=n.getLine(l.line);(o=l.ch+r.repeat)>c.length&&(o=c.length),a=new t(l.line,o)}if("\n"==s)i.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(l,a);if(d=d.replace(/[^\n]/g,s),i.visualBlock){var f=new Array(n.getOption("tabSize")+1).join(" ");d=(d=n.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(d)}else n.replaceRange(d,l,a);i.visualMode?(l=re(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,n.setCursor(l),me(n,!1)):n.setCursor(Z(a,0,-1))}},incrementNumberToken:function(e,n){for(var r,i,o,a,s=e.getCursor(),l=e.getLine(s.line),u=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=u.exec(l))&&(o=(i=r.index)+r[0].length,!(s.ch<o)););if((n.backtrack||!(o<=s.ch))&&r){var c=r[2]||r[4],d=r[3]||r[5],f=n.increase?1:-1,p={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];a=(parseInt(r[1]+d,p)+f*n.repeat).toString(p);var h=c?new Array(d.length-a.length+1+r[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+c+h+a.substr(1):c+h+a;var m=new t(s.line,i),g=new t(s.line,o);e.replaceRange(a,m,g),e.setCursor(new t(s.line,i+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,nt(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Ye};function Q(e,n){var r=e.state.vim,i=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),n.line),e.lastLine()),a=se(e,o)-1+!!i,s=Math.min(Math.max(0,n.ch),a);return new t(o,s)}function X(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Z(e,n,r){return"object"==typeof n&&(r=n.ch,n=n.line),new t(e.line+n,e.ch+r)}function J(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function ee(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function te(e){return new t(e.line,e.ch)}function ne(e,t){return e.ch==t.ch&&e.line==t.line}function re(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function ie(e,t){return arguments.length>2&&(t=ie.apply(void 0,Array.prototype.slice.call(arguments,1))),re(e,t)?e:t}function oe(e,t){return arguments.length>2&&(t=oe.apply(void 0,Array.prototype.slice.call(arguments,1))),re(e,t)?t:e}function ae(e,t,n){var r=re(e,t),i=re(t,n);return r&&i}function se(e,t){return e.getLine(t).length}function le(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ue(e,n,r){var i=se(e,n),o=new Array(r-i+1).join(" ");e.setCursor(new t(n,i)),e.replaceRange(o,e.getCursor())}function ce(e,n){var r=[],i=e.listSelections(),o=te(e.clipPos(n)),a=!ne(n,o),s=function(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&ne(e[r].anchor,t),o="anchor"!=n&&ne(e[r].head,t);if(i||o)return r}return-1}(i,e.getCursor("head")),l=ne(i[s].head,i[s].anchor),u=i.length-1,c=u-s>s?u:0,d=i[c].anchor,f=Math.min(d.line,o.line),p=Math.max(d.line,o.line),h=d.ch,m=o.ch,g=i[c].head.ch-h,v=m-h;g>0&&v<=0?(h++,a||m--):g<0&&v>=0?(h--,l||m++):g<0&&-1==v&&(h--,m++);for(var y=f;y<=p;y++){var b={anchor:new t(y,h),head:new t(y,m)};r.push(b)}return e.setSelections(r),n.ch=m,d.ch=h,d}function de(e,t,n){for(var r=[],i=0;i<n;i++){var o=Z(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function fe(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:te(n),head:te(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function pe(e,t,n){var r=e.state.vim,i=he(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary)}function he(e,n,r,i){var o=te(n.head),a=te(n.anchor);if("char"==r){var s=i||re(n.head,n.anchor)?0:1,l=re(n.head,n.anchor)?1:0;return o=Z(n.head,0,s),{ranges:[{anchor:a=Z(n.anchor,0,l),head:o}],primary:0}}if("line"==r){if(re(n.head,n.anchor))o.ch=0,a.ch=se(e,a.line);else{a.ch=0;var u=e.lastLine();o.line>u&&(o.line=u),o.ch=se(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){var c=Math.min(a.line,o.line),d=a.ch,f=Math.max(a.line,o.line),p=o.ch;d<p?p+=1:d+=1;for(var h=f-c+1,m=o.line==c?0:h-1,g=[],v=0;v<h;v++)g.push({anchor:new t(c+v,d),head:new t(c+v,p)});return{ranges:g,primary:m}}}function me(t,n){var r=t.state.vim;!1!==n&&t.setCursor(Q(t,r.sel.head)),fe(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function ge(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function ve(e,n,r,i,o){for(var a=function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=ie(t,e.getCursor("anchor"))),t}(e),s=e.getLine(a.line),l=a.ch,u=o?p[0]:h[0];!u(s.charAt(l));)if(++l>=s.length)return null;i?u=h[0]:(u=p[0])(s.charAt(l))||(u=p[1]);for(var c=l,d=l;u(s.charAt(c))&&c<s.length;)c++;for(;u(s.charAt(d))&&d>=0;)d--;if(d++,n){for(var f=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(f==c){for(var m=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=m)}}return{start:new t(a.line,d),end:new t(a.line,c)}}function ye(e,t,n){ne(t,n)||j.jumpList.add(e,t,n)}function be(e,t){j.lastCharacterSearch.increment=e,j.lastCharacterSearch.forward=t.forward,j.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var _e={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},we={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function xe(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,u=r?h:p;if(i&&""==s){if(o+=l,s=e.getLine(o),!x(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var c=l>0?s.length:-1,d=c,f=c;a!=c;){for(var m=!1,g=0;g<u.length&&!m;++g)if(u[g](s.charAt(a))){for(d=a;a!=c&&u[g](s.charAt(a));)a+=l;if(m=d!=(f=a),d==t.ch&&o==t.line&&f==d+l)continue;return{from:Math.min(d,f+1),to:Math.max(d,f),line:o}}m||(a+=l)}if(!x(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function ke(e,n,r,i,o){var a=new t(n.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,"div").left),a}function Ee(e,n,r,i){for(var o,a=e.getCursor(),s=a.ch,l=0;l<n;l++){if(-1==(o=Oe(s,e.getLine(a.line),i,r,!0)))return null;s=o}return new t(e.getCursor().line,o)}function Se(e,t,n,r){C(n,_)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function Oe(e,t,n,r,i){var o;return r?-1==(o=t.indexOf(n,e+1))||i||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||i||(o+=1),o}function Ce(e,n,r,i,o){var a,s=n.line,l=e.firstLine(),u=e.lastLine(),c=s;function d(t){return!e.getLine(t)}function f(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(i){for(;l<=c&&c<=u&&r>0;)f(c,i)&&r--,c+=i;return new t(c,0)}var p=e.state.vim;if(p.visualLine&&f(s,1,!0)){var h=p.sel.anchor;f(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var m=d(s);for(c=s;c<=u&&r;c++)f(c,1,!0)&&(o&&d(c)==m||r--);for(a=new t(c,0),c>u&&!m?m=!0:o=!1,c=s;c>l&&(o&&d(c)!=m&&c!=s||!f(c,-1,!0));c--);return{start:new t(c,0),end:a}}function Te(){}function Ae(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Te)}function Pe(e,t){var n=Re(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function Re(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}A("pcre",!0,"boolean"),Te.prototype={getQuery:function(){return j.query},setQuery:function(e){j.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return j.isReversed},setReversed:function(e){j.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var je={"\\n":"\n","\\r":"\r","\\t":"\t"},Ie={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function Me(e,t,n){if(j.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=Re(e,"/");return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(R("pcre")||(r=function(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"",a=o&&-1!="|(){".indexOf(o);t?("\\"===i&&a||n.push(i),t=!1):"\\"===i?(t=!0,o&&-1!="}".indexOf(o)&&(a=!0),a&&"\\"!==o||n.push(i)):(n.push(i),a&&"\\"!==o&&n.push("\\"))}return n.join("")}(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"im":"m")):null}function Le(e){"string"==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments[n])if("object"!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("$"===r[0]?e.style[r.slice(1)]=t[r]:e.setAttribute(r,t[r]));return e}function De(e,t){var n=Le("pre",{$color:"red",class:"cm-vim-message"},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function Ne(e,t){var n,r,i=(n=t.prefix,r=t.desc,Le(document.createDocumentFragment(),Le("span",{$fontFamily:"monospace",$whiteSpace:"pre"},n,Le("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),r&&Le("span",{$color:"#888"},r)));if(e.openDialog)e.openDialog(i,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var o="";"string"!=typeof t.prefix&&t.prefix&&(o+=t.prefix.textContent),t.desc&&(o+=" "+t.desc),t.onClose(prompt(o,""))}}function Fe(e,t,n,r){if(t){var i=Ae(e),o=Me(t,!!n,!!r);if(o)return ze(e,o),function(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}(o,i.getQuery())||i.setQuery(o),o}}var Be=0;function ze(e,t){clearTimeout(Be),Be=setTimeout((function(){if(e.state.vim){var n=Ae(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))}}),50)}function Ue(e,n,r,i){return void 0===i&&(i=1),e.operation((function(){for(var o=e.getCursor(),a=e.getSearchCursor(r,o),s=0;s<i;s++){var l=a.find(n);if(0==s&&l&&ne(a.from(),o)){var u=n?a.from():a.to();(l=a.find(n))&&!l[0]&&ne(a.from(),u)&&e.getLine(u.line).length==u.ch&&(l=a.find(n))}if(!l&&!(a=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return}return a.from()}))}function qe(e){var t=Ae(e);e.removeOverlay(Ae(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function We(e){var t=e.getScrollInfo(),n=e.coordsChar({left:0,top:6+t.top},"local"),r=t.clientHeight-10+t.top,i=e.coordsChar({left:0,top:r},"local");return{top:n.line,bottom:i.line}}function He(e,n,r){if("'"==r||"`"==r)return j.jumpList.find(e,-1)||new t(0,0);if("."==r)return $e(e);var i=n.marks[r];return i&&i.find()}function $e(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return te(t[n].changes[0].to)}var Ve=function(){this.buildCommandMap_()};Ve.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(t,n,r){var i=t.state.vim,o=j.registerController.getRegister(":"),a=o.toString();i.visualMode&&me(t);var s=new e.StringStream(n);o.setText(n);var l,u,c=r||{};c.input=n;try{this.parseInput_(t,s,c)}catch(e){throw De(t,e.toString()),e}if(c.commandName){if(l=this.matchCommand_(c.commandName)){if(u=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,c,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)B.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==c.line&&(u="move");if(u)try{Ge[u](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw De(t,e.toString()),e}else De(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=He(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=le(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),r.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:t},n&&(o.context=n),r.unshift(o)},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return delete this.commandMap_[n],!0}else for(var i=e,o=0;o<r.length;o++)if(i==r[o].keys&&r[o].context===t)return r.splice(o,1),!0}};var Ge={colorscheme:function(e,t){!t.args||t.args.length<1?De(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&De(e,"Invalid mapping: "+t.input):Ke.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;(!r||r.length<1||!Ke.unmap(r[0],n))&&e&&De(e,"No such mapping: "+t.input)},move:function(e,t){$.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&De(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=T[o]&&"boolean"==T[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var u=R(o,e,r);u instanceof Error?De(e,u.message):De(e,!0===u||!1===u?" "+(u?"":"no")+o:" "+o+"="+u)}else{var c=P(o,a,e,r);c instanceof Error&&De(e,c.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=j.registerController.registers,i="----------Registers----------\n\n";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),j.registerController.isValidRegister(a)&&(i+='"'+a+" "+(r[a]||new q).toString()+"\n")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+" "+s+"\n")}De(e,i)},sort:function(n,r){var i,o,a,s,l,u=function(){if(r.argString){var t=new e.StringStream(r.argString);if(t.eat("!")&&(i=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!t.eol())return"Invalid arguments";if(n[1]){o=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var u=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,c=-1!=n[1].indexOf("x")&&1,d=-1!=n[1].indexOf("o")&&1;if(u+c+d>1)return"Invalid arguments";s=(u?"decimal":c&&"hex")||d&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}();if(u)De(n,u+": "+r.argString);else{var c=r.line||n.firstLine(),d=r.lineEnd||r.line||n.lastLine();if(c!=d){var f=new t(c,0),p=new t(d,se(n,d)),h=n.getRange(f,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var b=0;b<h.length;b++){var _=l?h[b].match(l):null;_&&""!=_[0]?v.push(_):!l&&m.exec(h[b])?v.push(h[b]):y.push(h[b])}else y=h;if(v.sort(l?function(e,t){var n;return i&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:k),l)for(b=0;b<v.length;b++)v[b]=v[b].input;else s||y.sort(k);if(h=i?v.concat(y):y.concat(v),a){var w,x=h;for(h=[],b=0;b<x.length;b++)x[b]!=w&&h.push(x[b]),w=x[b]}n.replaceRange(h.join("\n"),f,p)}}function k(e,t){var n;i&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var r=s&&m.exec(e),a=s&&m.exec(t);return r?(r=parseInt((r[1]+r[2]).toLowerCase(),g))-(a=parseInt((a[1]+a[2]).toLowerCase(),g)):e<t?-1:1}},vglobal:function(e,t){this.global(e,t)},global:function(e,t){var n=t.argString;if(n){var r,i="v"===t.commandName[0],o=void 0!==t.line?t.line:e.firstLine(),a=t.lineEnd||t.line||e.lastLine(),s=function(e){return Pe(e,"/")}(n),l=n;if(s.length&&(l=s[0],r=s.slice(1,s.length).join("/")),l)try{Fe(e,l,!0,!0)}catch(t){return void De(e,"Invalid regex: "+l)}for(var u=Ae(e).getQuery(),c=[],d=o;d<=a;d++){var f=e.getLineHandle(d);u.test(f.text)!==i&&c.push(r?f:f.text)}if(r){var p=0,h=function(){if(p<c.length){var t=c[p++],n=e.getLineNumber(t);if(null==n)return void h();var i=n+1+r;Ke.processCommand(e,i,{callback:h})}};h()}else De(e,c.join("\n"))}else De(e,"Regular Expression missing from global")},substitute:function(n,r){if(!n.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var i,o,a,s,l=r.argString,u=l?Pe(l,l[0]):[],c="",d=!1,p=!1;if(u.length)i=u[0],R("pcre")&&""!==i&&(i=new RegExp(i).source),void 0!==(c=u[1])&&(c=R("pcre")?function(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in Ie)if(n.match(o,!0)){i=!0,r.push(Ie[o]);break}i||r.push(n.next())}return r.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t,n=!1,r=[],i=-1;i<e.length;i++){var o=e.charAt(i)||"",a=e.charAt(i+1)||"";je[o+a]?(r.push(je[o+a]),i++):n?(r.push(o),n=!1):"\\"===o?(n=!0,t=a,f.test(t)||"$"===a?r.push("$"):"/"!==a&&"\\"!==a&&r.push("\\")):("$"===o&&r.push("$"),r.push(o),"/"===a&&r.push("\\"))}return r.join("")}(c),j.lastSubstituteReplacePart=c),o=u[2]?u[2].split(" "):[];else if(l&&l.length)return void De(n,"Substitutions should be of the form :s/pattern/replace/");if(o&&(a=o[0],s=parseInt(o[1]),a&&(-1!=a.indexOf("c")&&(d=!0),-1!=a.indexOf("g")&&(p=!0),i=R("pcre")?i+"/"+a:i.replace(/\//g,"\\/")+"/"+a)),i)try{Fe(n,i,!0,!0)}catch(e){return void De(n,"Invalid regex: "+i)}if(void 0!==(c=c||j.lastSubstituteReplacePart)){var h=Ae(n).getQuery(),m=void 0!==r.line?r.line:n.getCursor().line,g=r.lineEnd||m;m==n.firstLine()&&g==n.lastLine()&&(g=1/0),s&&(g=(m=g)+s-1);var v=Q(n,new t(m,0)),y=n.getSearchCursor(h,v);!function(t,n,r,i,o,a,s,l,u){t.state.vim.exMode=!0;var c,d,f,p=!1;function h(){t.operation((function(){for(;!p;)m(),g();v()}))}function m(){var e=t.getRange(a.from(),a.to()).replace(s,l),n=a.to().line;a.replace(e),d=a.to().line,o+=d-n,f=d<n}function g(){for(;l=void 0,u=void 0,l=c&&te(a.to()),(u=a.findNext())&&!u[0]&&l&&ne(a.from(),l)&&(u=a.findNext()),u&&(e=a.from(),n=i,s=o,"number"!=typeof e&&(e=e.line),n instanceof Array?C(e,n):"number"==typeof s?e>=n&&e<=s:e==n);)if(r||a.from().line!=d||f)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),c=a.from(),void(p=!1);var e,n,s,l,u;p=!0}function v(e){if(e&&e(),t.focus(),c){t.setCursor(c);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=c.ch}u&&u()}if(g(),!p)return n?void Ne(t,{prefix:Le("span","replace with ",Le("strong",l)," (y/n/a/q/l)"),onKeyDown:function(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":m(),g();break;case"N":g();break;case"A":var o=u;u=void 0,t.operation(h),u=o;break;case"L":m();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":v(i)}return p&&v(i),!0}}):(h(),void(u&&u()));De(t,"No matches for "+s.source)}(n,d,p,m,g,y,h,c,r.callback)}else De(n,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){qe(e)},yank:function(e){var t=te(e.getCursor()).line,n=e.getLine(t);j.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&le(n.argString))for(var r=t.state.vim,i=new e.StringStream(le(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void De(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void De(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(k(s)&&k(l)||E(s)&&E(l)))return void De(t,"Invalid argument: "+s+"-");var u=s.charCodeAt(0),c=l.charCodeAt(0);if(u>=c)return void De(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=c-u;d++){var f=String.fromCharCode(u+d);delete r.marks[f]}}else delete r.marks[a]}else De(t,"Argument required")}},Ke=new Ve;function Ye(t){var n=t.state.vim,r=j.macroModeState,i=j.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",Ze),e.off(t.getInputField(),"keydown",tt)),!o&&n.insertModeRepeat>1&&(nt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,n=j.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function Qe(e){r.unshift(e)}function Xe(e,t,n,r){var i=j.registerController.getRegister(r);if(":"==r)return i.keyBuffer[0]&&Ke.processCommand(e,i.keyBuffer[0]),void(n.isPlaying=!1);var o=i.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var s=0;s<o.length;s++)for(var l,u,c=o[s];c;)if(u=(l=/<\w+-.+?>|<\w+>|./.exec(c))[0],c=c.substring(l.index+u.length),B.handleKey(e,u,"macro"),t.insertMode){var d=i.insertModeChanges[a++].changes;j.macroModeState.lastInsertModeChanges.changes=d,rt(e,d,1),Ye(e)}n.isPlaying=!1}function Ze(e,t){var n=j.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function Je(t){var n=t.state.vim;if(n.insertMode){var r=j.macroModeState;if(r.isPlaying)return;var i=r.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else t.curOp.isVimOp||function(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?me(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=re(i,r)?0:-1,a=re(i,r)?-1:0;i=Z(i,0,o),r=Z(r,0,a),n.sel={anchor:r,head:i},Se(t,n,"<",ie(i,r)),Se(t,n,">",oe(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}(t,n)}function et(e){this.keyName=e}function tt(t){var n=j.macroModeState.lastInsertModeChanges,r=e.keyName(t);r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",(function(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new et(r)),!0})))}function nt(e,t,n,r){var i=j.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?$.processAction(e,t,t.lastEditActionCommand):$.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;rt(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var u=0;u<n;u++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&Ye(e),i.isPlaying=!1}function rt(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=j.macroModeState.lastInsertModeChanges.visualBlock;a&&(de(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(Z(o,s,0));for(var l=0;l<n.length;l++){var u=n[l];if(u instanceof et)e.lookupKey(u.keyName,"vim-insert",i);else if("string"==typeof u)t.replaceSelection(u);else{var c=t.getCursor(),d=Z(c,0,u[0].length);t.replaceRange(u[0],c,d),t.setCursor(d)}}}a&&t.setCursor(Z(o,0,1))}return e.keyMap.vim={attach:s,detach:a,call:l},A("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:s,detach:a,call:l},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:s,detach:a,call:l},F(),B}()}(n(5),n(742),n(1760),n(743))},function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,u)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,u)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];!function(t){e.on(p,"click",(function(n){e.e_preventDefault(n),d(),t&&t(u)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(5))},function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function s(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch=="(){}[]".charAt("(){}[]".indexOf(l.ch)+1)){var c=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(c,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:c,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function l(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function c(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function f(e,t){var r=d(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)},t.selectScope=function(e){s(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!s(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,l(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,l(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0,1)},t.reverseSortLines=function(e){u(e,!0,-1)},t.sortLinesInsensitive=function(e){u(e,!1,1)},t.reverseSortLinesInsensitive=function(e){u(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){c(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){c(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){f(e,!0)},t.findUnderPrevious=function(e){f(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime);var h=p.default==p.macDefault;p.sublime=h?p.macSublime:p.pcSublime}(n(5),n(742),n(743))},function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(e,t){return e.line==t.line&&e.ch==t.ch}var i=[];function o(e){i.push(e),i.length>50&&i.shift()}function a(e){return i[i.length-(e?Math.min(e,1):1)]||""}var s=null;function l(e,t,n,a,l){null==l&&(l=e.getRange(t,n)),"grow"==a&&s&&s.cm==e&&r(t,s.pos)&&e.isClean(s.gen)?function(e){if(!i.length)return o(e);i[i.length-1]+=e}(l):!1!==a&&o(l),e.replaceRange("",t,n,"+delete"),s="grow"==a?{cm:e,pos:t,gen:e.changeGeneration()}:null}function u(e,t,n){return e.findPosH(t,n,"char",!0)}function c(e,t,n){return e.findPosH(t,n,"word",!0)}function d(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function f(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function p(e,t,r){for(var i=t.line,o=e.getLine(i),a=/\S/.test(r<0?o.slice(0,t.ch):o.slice(t.ch)),s=e.firstLine(),l=e.lastLine();;){if((i+=r)<s||i>l)return e.clipPos(n(i-r,r<0?0:null));if(o=e.getLine(i),/\S/.test(o))a=!0;else if(a)return n(i,0)}}function h(e,t,r){for(var i=t.line,o=t.ch,a=e.getLine(t.line),s=!1;;){var l=a.charAt(o+(r<0?-1:0));if(l){if(s&&/[!?.]/.test(l))return n(i,o+(r>0?1:0));s||(s=/\w/.test(l)),o+=r}else{if(i==(r<0?e.firstLine():e.lastLine()))return n(i,o);if(a=e.getLine(i+r),!/\S/.test(a))return n(i,o);i+=r,o=r<0?a.length:0}}}function m(e,t,i){var o;if(e.findMatchingBracket&&(o=e.findMatchingBracket(t,{strict:!0}))&&o.match&&(o.forward?1:-1)==i)return i>0?n(o.to.line,o.to.ch+1):o.to;for(var a=!0;;a=!1){var s=e.getTokenAt(t),l=n(t.line,i<0?s.start:s.end);if(!(a&&i>0&&s.end==t.ch)&&/\w/.test(s.string))return l;var u=e.findPosH(l,i,"char");if(r(l,u))return t;t=u}}function g(e,t){var n=e.state.emacsPrefix;return n?(S(e),"-"==n?-1:Number(n)):t?null:1}function v(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=g(e);t(e);for(var r=1;r<n;++r)t(e)}}function y(e,t,n,i){var o=g(e);o<0&&(i=-i,o=-o);for(var a=0;a<o;++a){var s=n(e,t,i);if(r(s,t))break;t=s}return t}function b(e,t){var n=function(n){n.extendSelection(y(n,n.getCursor(),e,t))};return n.motion=!0,n}function _(e,t,n,r){for(var i,o=e.listSelections(),a=o.length;a--;)l(e,i=o[a].head,y(e,i,t,n),r)}function w(e,t){if(e.somethingSelected()){for(var n,r=e.listSelections(),i=r.length;i--;)l(e,(n=r[i]).anchor,n.head,t);return!0}}function x(e,t){e.state.emacsPrefix?"-"!=t&&(e.state.emacsPrefix+=t):(e.state.emacsPrefix=t,e.on("keyHandled",E),e.on("inputRead",O))}var k={"Alt-G":!0,"Ctrl-X":!0,"Ctrl-Q":!0,"Ctrl-U":!0};function E(e,t){e.state.emacsPrefixMap||k.hasOwnProperty(t)||S(e)}function S(e){e.state.emacsPrefix=null,e.off("keyHandled",E),e.off("inputRead",O)}function O(e,t){var n=g(e);if(n>1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;o<n;++o)i+=r;e.replaceSelection(i)}}function C(e,t){("string"!=typeof t||!/^\d$/.test(t)&&"Ctrl-U"!=t)&&(e.removeKeyMap(j),e.state.emacsPrefixMap=!1,e.off("keyHandled",C),e.off("inputRead",C))}function T(e){e.setExtending(!1),e.setCursor(e.getCursor())}function A(e,t,n){e.openDialog?e.openDialog(function(e){var t=document.createDocumentFragment(),n=document.createElement("input");return n.setAttribute("type","text"),n.style.width="10em",t.appendChild(document.createTextNode(e+": ")),t.appendChild(n),t}(t),n,{bottom:!0}):n(prompt(t,""))}function P(e,t){var n=e.getCursor(),r=e.findPosH(n,1,"word");e.replaceRange(t(e.getRange(n,r)),n,r),e.setCursor(r)}t.setMark=function(e){e.setCursor(e.getCursor()),e.setExtending(!e.getExtending()),e.on("change",(function(){e.setExtending(!1)}))},t.killRegion=function(e){l(e,e.getCursor("start"),e.getCursor("end"),!0)},t.killLineEmacs=v((function(e){var t=e.getCursor(),r=e.clipPos(n(t.line)),i=e.getRange(t,r);/\S/.test(i)||(i+="\n",r=n(t.line+1,0)),l(e,t,r,"grow",i)})),t.killRingSave=function(e){o(e.getSelection()),T(e)},t.yank=function(e){var t=e.getCursor();e.replaceRange(a(g(e)),t,t,"paste"),e.setSelection(t,e.getCursor())},t.yankPop=function(e){e.replaceSelection((i.length>1&&i.pop(),a()),"around","paste")},t.forwardChar=b(u,1),t.backwardChar=b(u,-1),t.deleteChar=function(e){_(e,u,1,!1)},t.deleteForwardChar=function(e){w(e,!1)||_(e,u,1,!1)},t.deleteBackwardChar=function(e){w(e,!1)||_(e,u,-1,!1)},t.forwardWord=b(c,1),t.backwardWord=b(c,-1),t.killWord=function(e){_(e,c,1,"grow")},t.backwardKillWord=function(e){_(e,c,-1,"grow")},t.nextLine=b(d,1),t.previousLine=b(d,-1),t.scrollDownCommand=b(f,-1),t.scrollUpCommand=b(f,1),t.backwardParagraph=b(p,-1),t.forwardParagraph=b(p,1),t.backwardSentence=b(h,-1),t.forwardSentence=b(h,1),t.killSentence=function(e){_(e,h,1,"grow")},t.backwardKillSentence=function(e){l(e,e.getCursor(),h(e,e.getCursor(),1),"grow")},t.killSexp=function(e){_(e,m,1,"grow")},t.backwardKillSexp=function(e){_(e,m,-1,"grow")},t.forwardSexp=b(m,1),t.backwardSexp=b(m,-1),t.markSexp=function(e){var t=e.getCursor();e.setSelection(y(e,t,m,1),t)},t.transposeSexps=function(e){var t=m(e,e.getCursor(),-1),n=m(e,t,1),r=m(e,n,1),i=m(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},t.backwardUpList=v((function(e){for(var t=e.getCursor(),r=t.line,i=t.ch,o=[];r>=e.firstLine();){for(var a=e.getLine(r),s=null==i?a.length:i;s>0;)if(")"==(i=a.charAt(--s)))o.push("(");else if("]"==i)o.push("[");else if("}"==i)o.push("{");else if(/[\(\{\[]/.test(i)&&(!o.length||o.pop()!=i))return e.extendSelection(n(r,s));--r,i=null}})),t.justOneSpace=function(e){for(var t=e.getCursor(),r=t.ch,i=t.ch,o=e.getLine(t.line);r&&/\s/.test(o.charAt(r-1));)--r;for(;i<o.length&&/\s/.test(o.charAt(i));)++i;e.replaceRange(" ",n(t.line,r),n(t.line,i))},t.openLine=v((function(e){e.replaceSelection("\n","start")})),t.transposeCharsRepeatable=v((function(e){e.execCommand("transposeChars")})),t.capitalizeWord=v((function(e){P(e,(function(e){var t=e.search(/\w/);return-1==t?e:e.slice(0,t)+e.charAt(t).toUpperCase()+e.slice(t+1).toLowerCase()}))})),t.upcaseWord=v((function(e){P(e,(function(e){return e.toUpperCase()}))})),t.downcaseWord=v((function(e){P(e,(function(e){return e.toLowerCase()}))})),t.undoRepeatable=v("undo"),t.keyboardQuit=function(e){e.execCommand("clearSearch"),T(e)},t.newline=v((function(e){e.replaceSelection("\n","end")})),t.gotoLine=function(e){var t=g(e,!0);if(null!=t&&t>0)return e.setCursor(t-1);A(e,"Goto line",(function(t){var n;t&&!isNaN(n=Number(t))&&n==(0|n)&&n>0&&e.setCursor(n-1)}))},t.indentRigidly=function(e){e.indentSelection(g(e,!0)||e.getOption("indentUnit"))},t.exchangePointAndMark=function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},t.quotedInsertTab=v("insertTab"),t.universalArgument=function(e){e.state.emacsPrefixMap=!0,e.addKeyMap(j),e.on("keyHandled",C),e.on("inputRead",C)},e.emacs={kill:l,killRegion:w,repeated:v};var R=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":"killRegion","Ctrl-K":"killLineEmacs","Alt-W":"killRingSave","Ctrl-Y":"yank","Alt-Y":"yankPop","Ctrl-Space":"setMark","Ctrl-Shift-2":"setMark","Ctrl-F":"forwardChar","Ctrl-B":"backwardChar",Right:"forwardChar",Left:"backwardChar","Ctrl-D":"deleteChar",Delete:"deleteForwardChar","Ctrl-H":"deleteBackwardChar",Backspace:"deleteBackwardChar","Alt-F":"forwardWord","Alt-B":"backwardWord","Alt-Right":"forwardWord","Alt-Left":"backwardWord","Alt-D":"killWord","Alt-Backspace":"backwardKillWord","Ctrl-N":"nextLine","Ctrl-P":"previousLine",Down:"nextLine",Up:"previousLine","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":"scrollDownCommand","Ctrl-V":"scrollUpCommand",PageUp:"scrollDownCommand",PageDown:"scrollUpCommand","Ctrl-Up":"backwardParagraph","Ctrl-Down":"forwardParagraph","Alt-{":"backwardParagraph","Alt-}":"forwardParagraph","Alt-A":"backwardSentence","Alt-E":"forwardSentence","Alt-K":"killSentence","Ctrl-X Delete":"backwardKillSentence","Ctrl-Alt-K":"killSexp","Ctrl-Alt-Backspace":"backwardKillSexp","Ctrl-Alt-F":"forwardSexp","Ctrl-Alt-B":"backwardSexp","Shift-Ctrl-Alt-2":"markSexp","Ctrl-Alt-T":"transposeSexps","Ctrl-Alt-U":"backwardUpList","Alt-Space":"justOneSpace","Ctrl-O":"openLine","Ctrl-T":"transposeCharsRepeatable","Alt-C":"capitalizeWord","Alt-U":"upcaseWord","Alt-L":"downcaseWord","Alt-;":"toggleComment","Ctrl-/":"undoRepeatable","Shift-Ctrl--":"undoRepeatable","Ctrl-Z":"undoRepeatable","Cmd-Z":"undoRepeatable","Ctrl-X U":"undoRepeatable","Shift-Ctrl-Z":"redo","Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findPersistentNext","Ctrl-R":"findPersistentPrev","Ctrl-G":"keyboardQuit","Shift-Alt-5":"replace","Alt-/":"autocomplete",Enter:"newlineAndIndent","Ctrl-J":"newline",Tab:"indentAuto","Alt-G G":"gotoLine","Ctrl-X Tab":"indentRigidly","Ctrl-X Ctrl-X":"exchangePointAndMark","Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X K":"close","Ctrl-X H":"selectAll","Ctrl-Q Tab":"quotedInsertTab","Ctrl-U":"universalArgument",fallthrough:"default"}),j={"Ctrl-G":S};function I(e){j[e]=function(t){x(t,e)},R["Ctrl-"+e]=function(t){x(t,e)},k["Ctrl-"+e]=!0}for(var M=0;M<10;++M)I(String(M));I("-")}(n(5))},function(e,t,n){var r=n(1764);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(260)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""]),e.exports=t},function(e,t,n){var r=n(1766);r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},function(e,t,n){(t=n(260)(!1)).push([e.i,"/*\n Name: material\n Author: Mattia Astorino (http://github.com/equinusocio)\n Website: https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n background-color: #263238;\n color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n background: #263238;\n color: #546E7A;\n border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n border-left: 1px solid #FFCC00;\n}\n.cm-s-material.cm-fat-cursor .CodeMirror-cursor {\n background-color: #5d6d5c80 !important;\n}\n.cm-s-material .cm-animate-fat-cursor {\n background-color: #5d6d5c80 !important;\n}\n\n.cm-s-material div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n color: rgba(255, 255, 255, 1.0);\n background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(21)),i=d(n(0)),o=d(n(475)),a=d(n(127)),s=n(17),l=d(n(744)),u=d(n(1768)),c=n(9);function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("div",{target:"e17zz1uv0",label:"SettingsPaneContainer"})("position:absolute;right:0;width:200px;z-index:",s.zIndex.zIndex10,";height:100%;background-color:#fff;overflow:hidden;overflow-y:scroll;padding:12px;border-radius:0 3px 3px 0;",s.shadows.drop,";"),p=(0,r.default)("label",{target:"e17zz1uv1",label:"SettingsFieldLabel"})(s.text.fieldLabel,";font-size:11px;display:block;margin-top:8px;margin-bottom:2px;"),h=(0,r.default)("h3",{target:"e17zz1uv2",label:"SettingsSectionTitle"})({name:"punfmt",styles:"font-size:14px;margin-top:14px;margin-bottom:0;&:first-of-type{margin-top:4px;}"});function m(e){let{value:t,options:n,onChange:r,forID:i,type:a,autoFocus:s}=e;return(0,c.jsx)(o.default,{inputId:`${i}-select-${a}`,styles:u.default,value:t,options:n,onChange:e=>r(e.value),menuPlacement:"auto",captureMenuScroll:!1,autoFocus:s})}var g=function(e){let{hideSettings:t,forID:n,modes:r,mode:o,theme:s,themes:u,keyMap:d,keyMaps:g,allowLanguageSelection:v,onChangeLang:y,onChangeTheme:b,onChangeKeyMap:_}=e;return(0,c.jsx)(f,{onKeyDown:e=>(0,a.default)("esc",e)&&t()},(0,c.jsx)(l.default,{onClick:t,showClose:!0}),v&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Field Settings"),(0,c.jsx)(p,{htmlFor:n+"-select-mode"},"Mode"),(0,c.jsx)(m,{type:"mode",forID:n,value:o,options:r,onChange:y,autoFocus:!0})),(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(h,null,"Global Settings"),u&&(0,c.jsx)(i.default.Fragment,null,(0,c.jsx)(p,{htmlFor:n+"-select-theme"},"Theme"),(0,c.jsx)(m,{type:"theme",forID:n,value:{value:s,label:s},options:u.map(e=>({value:e,label:e})),onChange:b,autoFocus:!v})),(0,c.jsx)(p,{htmlFor:n+"-select-keymap"},"KeyMap"),(0,c.jsx)(m,{type:"keymap",forID:n,value:d,options:g,onChange:_})))};t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(17);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=o(o({},r.reactSelectStyles),{},{container:e=>o(o({},r.reactSelectStyles.container(e)),{},{"margin-top":"2px"}),control:e=>o(o({},r.reactSelectStyles.control(e)),{},{border:r.borders.textField,padding:0,fontSize:"13px",minHeight:"auto"}),dropdownIndicator:e=>o(o({},r.reactSelectStyles.dropdownIndicator(e)),{},{padding:"4px"}),option:(e,t)=>o(o({},r.reactSelectStyles.option(e,t)),{},{padding:0,paddingLeft:"8px"}),menu:e=>o(o({},r.reactSelectStyles.menu(e)),{},{margin:"2px 0"}),menuList:e=>o(o({},e),{},{"max-height":"200px"})});t.default=s},function(e,t,n){var r={"./apl/apl.js":1770,"./asciiarmor/asciiarmor.js":1771,"./asn.1/asn.1.js":1772,"./asterisk/asterisk.js":1773,"./brainfuck/brainfuck.js":1774,"./clike/clike.js":469,"./clojure/clojure.js":1775,"./cmake/cmake.js":1776,"./cobol/cobol.js":1777,"./coffeescript/coffeescript.js":745,"./commonlisp/commonlisp.js":1778,"./crystal/crystal.js":1779,"./css/css.js":271,"./cypher/cypher.js":1780,"./d/d.js":1781,"./dart/dart.js":1782,"./diff/diff.js":1783,"./django/django.js":1784,"./dockerfile/dockerfile.js":1785,"./dtd/dtd.js":1786,"./dylan/dylan.js":1787,"./ebnf/ebnf.js":1788,"./ecl/ecl.js":1789,"./eiffel/eiffel.js":1790,"./elm/elm.js":1791,"./erlang/erlang.js":1792,"./factor/factor.js":1793,"./fcl/fcl.js":1794,"./forth/forth.js":1795,"./fortran/fortran.js":1796,"./gas/gas.js":1797,"./gfm/gfm.js":1798,"./gherkin/gherkin.js":1800,"./go/go.js":1801,"./groovy/groovy.js":1802,"./haml/haml.js":1803,"./handlebars/handlebars.js":747,"./haskell-literate/haskell-literate.js":1804,"./haskell/haskell.js":748,"./haxe/haxe.js":1805,"./htmlembedded/htmlembedded.js":1806,"./htmlmixed/htmlmixed.js":154,"./http/http.js":1807,"./idl/idl.js":1808,"./javascript/javascript.js":225,"./jinja2/jinja2.js":1809,"./jsx/jsx.js":1810,"./julia/julia.js":1811,"./livescript/livescript.js":1812,"./lua/lua.js":1813,"./markdown/markdown.js":746,"./mathematica/mathematica.js":1814,"./mbox/mbox.js":1815,"./mirc/mirc.js":1816,"./mllike/mllike.js":1817,"./modelica/modelica.js":1818,"./mscgen/mscgen.js":1819,"./mumps/mumps.js":1820,"./nginx/nginx.js":1821,"./nsis/nsis.js":1822,"./ntriples/ntriples.js":1823,"./octave/octave.js":1824,"./oz/oz.js":1825,"./pascal/pascal.js":1826,"./pegjs/pegjs.js":1827,"./perl/perl.js":1828,"./php/php.js":1829,"./pig/pig.js":1830,"./powershell/powershell.js":1831,"./properties/properties.js":1832,"./protobuf/protobuf.js":1833,"./pug/pug.js":749,"./puppet/puppet.js":1834,"./python/python.js":750,"./q/q.js":1835,"./r/r.js":1836,"./rpm/rpm.js":1837,"./rst/rst.js":1838,"./ruby/ruby.js":470,"./rust/rust.js":1839,"./sas/sas.js":1840,"./sass/sass.js":752,"./scheme/scheme.js":1841,"./shell/shell.js":1842,"./sieve/sieve.js":1843,"./slim/slim.js":1844,"./smalltalk/smalltalk.js":1845,"./smarty/smarty.js":1846,"./solr/solr.js":1847,"./soy/soy.js":1848,"./sparql/sparql.js":1849,"./spreadsheet/spreadsheet.js":1850,"./sql/sql.js":1851,"./stex/stex.js":751,"./stylus/stylus.js":753,"./swift/swift.js":1852,"./tcl/tcl.js":1853,"./textile/textile.js":1854,"./tiddlywiki/tiddlywiki.js":1855,"./tiki/tiki.js":1856,"./toml/toml.js":1857,"./tornado/tornado.js":1858,"./troff/troff.js":1859,"./ttcn-cfg/ttcn-cfg.js":1860,"./ttcn/ttcn.js":1861,"./turtle/turtle.js":1862,"./twig/twig.js":1863,"./vb/vb.js":1864,"./vbscript/vbscript.js":1865,"./velocity/velocity.js":1866,"./verilog/verilog.js":1867,"./vhdl/vhdl.js":1868,"./vue/vue.js":1869,"./wast/wast.js":1870,"./webidl/webidl.js":1871,"./xml/xml.js":272,"./xquery/xquery.js":1872,"./yacas/yacas.js":1873,"./yaml-frontmatter/yaml-frontmatter.js":1874,"./yaml/yaml.js":754,"./z80/z80.js":1875};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=1769},function(e,t,n){!function(e){"use strict";e.defineMode("apl",(function(){var e={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"":["absolute","residue"],"":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"":["unique","union"],"∩":[null,"intersection"],"":["not","without"],"":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,o=/←/,a=/[⍝#].*$/;return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(s,l){var u,c,d,f;return s.eatSpace()?null:'"'===(u=s.next())||"'"===u?(s.eatWhile((d=u,f=!1,function(e){return f=e,e!==d||"\\"===f})),s.next(),l.prev=!0,"string"):/[\[{\(]/.test(u)?(l.prev=!1,null):/[\]}\)]/.test(u)?(l.prev=!0,null):r.test(u)?(l.prev=!1,"niladic"):/[¯\d]/.test(u)?(l.func?(l.func=!1,l.prev=!1):l.prev=!0,s.eatWhile(/[\w\.]/),"number"):n.test(u)?"operator apl-"+e[u]:o.test(u)?"apl-arrow":i.test(u)?(c="apl-",null!=t[u]&&(l.prev?c+=t[u][1]:c+=t[u][0]),l.func=!0,l.prev=!1,"function "+c):a.test(u)?(s.skipToEnd(),"comment"):"∘"===u&&"."===s.peek()?(s.next(),"function jot-dot"):(s.eatWhile(/[\w\$_]/),l.prev=!0,"keyword")}}})),e.defineMIME("text/apl","apl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}e.defineMode("asciiarmor",(function(){return{token:function(e,n){var r;if("top"==n.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state="headers",n.type=r[1],"tag"):t(e);if("headers"==n.state){if(e.sol()&&e.match(/^\w+:/))return n.state="header","atom";var i=t(e);return i&&(n.state="body"),i}return"header"==n.state?(e.skipToEnd(),n.state="headers","string"):"body"==n.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=n.type?"error":(n.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==n.state?t(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}})),e.defineMIME("application/pgp","asciiarmor"),e.defineMIME("application/pgp-encrypted","asciiarmor"),e.defineMIME("application/pgp-keys","asciiarmor"),e.defineMIME("application/pgp-signature","asciiarmor")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("asn.1",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.cmipVerbs||{},a=t.compareTypes||{},s=t.status||{},l=t.tags||{},u=t.storage||{},c=t.modifier||{},d=t.accessTypes||{},f=t.multiLineStrings,p=!1!==t.indentStatements,h=/[\|\^]/;function m(e,t){var r,p=e.next();if('"'==p||"'"==p)return t.tokenize=(r=p,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!f)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(p))return n=p,"punctuation";if("-"==p&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(p))return e.eatWhile(/[\w\.]/),"number";if(h.test(p))return e.eatWhile(h),"operator";e.eatWhile(/[\w\-]/);var m=e.current();return i.propertyIsEnumerable(m)?"keyword":o.propertyIsEnumerable(m)?"variable cmipVerbs":a.propertyIsEnumerable(m)?"atom compareTypes":s.propertyIsEnumerable(m)?"comment status":l.propertyIsEnumerable(m)?"variable-3 tags":u.propertyIsEnumerable(m)?"builtin storage":c.propertyIsEnumerable(m)?"string-2 modifier":d.propertyIsEnumerable(m)?"atom accessTypes":"variable"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||m)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)v(t,e.column(),"}");else if("["==n)v(t,e.column(),"]");else if("("==n)v(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=y(t);for("}"==r.type&&(r=y(t));"statement"==r.type;)r=y(t)}else n==r.type?y(t):p&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"--",fold:"brace"}})),e.defineMIME("text/x-ttcn-asn",{name:"asn.1",keywords:t("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:t("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:t("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:t("current deprecated mandatory obsolete"),tags:t("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:t("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:t("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:t("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("asterisk",(function(){var e=["exten","same","include","ignorepat","switch"],t=["#include","#exec"],n=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(r,i){var o="";return r.eatSpace()?null:i.extenStart?(r.eatWhile(/[^\s]/),o=r.current(),/^=>?$/.test(o)?(i.extenExten=!0,i.extenStart=!1,"strong"):(i.extenStart=!1,r.skipToEnd(),"error")):i.extenExten?(i.extenExten=!1,i.extenPriority=!0,r.eatWhile(/[^,]/),i.extenInclude&&(r.skipToEnd(),i.extenPriority=!1,i.extenInclude=!1),i.extenSame&&(i.extenPriority=!1,i.extenSame=!1,i.extenApplication=!0),"tag"):i.extenPriority?(i.extenPriority=!1,i.extenApplication=!0,r.next(),i.extenSame?null:(r.eatWhile(/[^,]/),"number")):i.extenApplication?(r.eatWhile(/,/),","===(o=r.current())?null:(r.eatWhile(/\w/),o=r.current().toLowerCase(),i.extenApplication=!1,-1!==n.indexOf(o)?"def strong":null)):function(n,r){var i="",o=n.next();if(r.blockComment)return"-"==o&&n.match("-;",!0)?r.blockComment=!1:n.skipTo("--;")?(n.next(),n.next(),n.next(),r.blockComment=!1):n.skipToEnd(),"comment";if(";"==o)return n.match("--",!0)&&!n.match("-",!1)?(r.blockComment=!0,"comment"):(n.skipToEnd(),"comment");if("["==o)return n.skipTo("]"),n.eat("]"),"header";if('"'==o)return n.skipTo('"'),"string";if("'"==o)return n.skipTo("'"),"string-2";if("#"==o&&(n.eatWhile(/\w/),i=n.current(),-1!==t.indexOf(i)))return n.skipToEnd(),"strong";if("$"==o&&"{"==n.peek())return n.skipTo("}"),n.eat("}"),"variable-3";if(n.eatWhile(/\w/),i=n.current(),-1!==e.indexOf(i)){switch(r.extenStart=!0,i){case"same":r.extenSame=!0;break;case"include":case"switch":case"ignorepat":r.extenInclude=!0}return"atom"}}(r,i)},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}})),e.defineMIME("text/x-asterisk","asterisk")}(n(5))},function(e,t,n){!function(e){"use strict";var t="><+-.,[]".split("");e.defineMode("brainfuck",(function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();return-1===t.indexOf(r)?(n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment"):!0===n.commentLine?(e.eol()&&(n.commentLine=!1),"comment"):"]"===r||"["===r?("["===r?n.left++:n.right++,"bracket"):"+"===r||"-"===r?"keyword":"<"===r||">"===r?"atom":"."===r||","===r?"def":void(e.eol()&&(n.commentLine=!1))}}})),e.defineMIME("text/x-brainfuck","brainfuck")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("clojure",(function(t){var n=["false","nil","true"],r=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],i=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];e.registerHelper("hintWords","clojure",[].concat(n,r,i));var o=g(n),a=g(r),s=g(i),l=g(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,c=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,d=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,f=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(c))return[null,"number"];if(e.match(d))return[null,"string-2"];if(e.eat(/^"/))return(t.tokenize=h)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(f),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=m)(e,t):v(r,o)||":"===r.charAt(0)?["symbol","atom"]:v(r,a)||v(r,s)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!v(e,u)})),[null,"error"])}function h(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=p;break}r=!r&&"\\"===n}return[null,"string"]}function m(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=p;break}return["space","comment"]}function g(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function v(e,t){return t instanceof RegExp?t.test(e):t instanceof Object?t.propertyIsEnumerable(e):void 0}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:p}},token:function(e,n){e.sol()&&"number"!=typeof n.ctx.indentTo&&(n.ctx.indentTo=n.ctx.start+1);var r=n.tokenize(e,n),i=r[0],o=r[1],a=e.current();return"space"!==i&&("("===n.lastToken&&null===n.ctx.indentTo?"symbol"===i&&v(a,l)?n.ctx.indentTo=n.ctx.start+t.indentUnit:n.ctx.indentTo="next":"next"===n.ctx.indentTo&&(n.ctx.indentTo=e.column()),n.lastToken=a),"open"===i?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:"close"===i&&(n.ctx=n.ctx.prev||n.ctx),o},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-clojure","clojure"),e.defineMIME("text/x-clojurescript","clojure"),e.defineMIME("application/edn","clojure")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("cmake",(function(){var e=/({)?[a-zA-Z0-9_]+(})?/;function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return{startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(n,r){return n.eatSpace()?null:function(n,r){var i=n.next();return"$"===i?n.match(e)?"variable-2":"variable":r.continueString?(n.backUp(1),t(n,r)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):"#"==i?(n.skipToEnd(),"comment"):"'"==i||'"'==i?(r.pending=i,t(n,r)):"("==i||")"==i?"bracket":i.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}(n,r)}}})),e.defineMIME("text/x-cmake","cmake")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("cobol",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),n=e("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),r=e("- * ** / + < <= = > >= "),i={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,o){if(null==o.indentStack&&e.sol()&&(o.indentation=6),e.eatSpace())return null;var a=null;switch(o.mode){case"string":for(var s=!1;null!=(s=e.next());)if(('"'==s||"'"==s)&&!e.match(/['"]/,!1)){o.mode=!1;break}a="string";break;default:var l=e.next(),u=e.column();if(u>=0&&u<=5)a="def";else if(u>=72&&u<=79)e.skipToEnd(),a="header";else if("*"==l&&6==u)e.skipToEnd(),a="comment";else if('"'==l||"'"==l)o.mode="string",a="string";else if("'"!=l||i.digit_or_colon.test(e.peek()))if("."==l)a="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(i.hex),!0):("+"!=e&&"-"!=e||!i.digit.test(t.peek())||(t.eat(i.sign),e=t.next()),!!i.digit.test(e)&&(t.eat(e),t.eatWhile(i.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(i.digit)),t.eat(i.exponent)&&(t.eat(i.sign),t.eatWhile(i.digit)),!0))}(l,e))a="number";else{if(e.current().match(i.symbol))for(;u<71&&void 0!==e.eat(i.symbol);)u++;a=n&&n.propertyIsEnumerable(e.current().toUpperCase())?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"builtin":t&&t.propertyIsEnumerable(e.current().toUpperCase())?"atom":null}else a="atom"}return a},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}})),e.defineMIME("text/x-cobol","cobol")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("commonlisp",(function(e){var t,n=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,r=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,o=/[^\s'`,@()\[\]";]/;function a(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!o.test(t)){e.backUp(1);break}return e.current()}function s(e,o){if(e.eatSpace())return t="ws",null;if(e.match(i))return"number";var s;if("\\"==(s=e.next())&&(s=e.next()),'"'==s)return(o.tokenize=l)(e,o);if("("==s)return t="open","bracket";if(")"==s||"]"==s)return t="close","bracket";if(";"==s)return e.skipToEnd(),t="ws","comment";if(/['`,@]/.test(s))return null;if("|"==s)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==s)return"("==(s=e.next())?(t="open","bracket"):/[+\-=\.']/.test(s)||/\d/.test(s)&&e.match(/^\d*#/)?null:"|"==s?(o.tokenize=u)(e,o):":"==s?(a(e),"meta"):"\\"==s?(e.next(),a(e),"string-2"):"error";var c=a(e);return"."==c?null:(t="symbol","nil"==c||"t"==c||":"==c.charAt(0)?"atom":"open"==o.lastType&&(n.test(c)||r.test(c))?"keyword":"&"==c.charAt(0)?"variable-2":"variable")}function l(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=s;break}r=!r&&"\\"==n}return"string"}function u(e,n){for(var r,i;r=e.next();){if("#"==r&&"|"==i){n.tokenize=s;break}i=r}return t="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:s}},token:function(n,i){n.sol()&&"number"!=typeof i.ctx.indentTo&&(i.ctx.indentTo=i.ctx.start+1),t=null;var o=i.tokenize(n,i);return"ws"!=t&&(null==i.ctx.indentTo?"symbol"==t&&r.test(n.current())?i.ctx.indentTo=i.ctx.start+e.indentUnit:i.ctx.indentTo="next":"next"==i.ctx.indentTo&&(i.ctx.indentTo=n.column()),i.lastType=t),"open"==t?i.ctx={prev:i.ctx,start:n.column(),indentTo:null}:"close"==t&&(i.ctx=i.ctx.prev||i.ctx),o},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}})),e.defineMIME("text/x-common-lisp","commonlisp")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("crystal",(function(e){function t(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function n(e,t,n){return n.tokenize.push(e),e(t,n)}var r=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,o=/^(?:\[\][?=]?)/,a=/^(?:\.(?:\.{2})?|->|[?:])/,s=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,l=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,u=t(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),c=t(["true","false","nil","self"]),d=t(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),f=t(["if","unless","case","while","until","begin","then"]),p=["end","else","elsif","rescue","ensure"],h=t(p),m=["\\)","\\}","\\]"],g=new RegExp("^(?:"+m.join("|")+")$"),v={def:x,fun:x,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(s)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:k,module:k,struct:k,lib:k,enum:k,union:k},y={"[":"]","{":"}","(":")","<":">"};function b(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return n(w("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return n(w("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var p;if(e.match(s))return e.eat(/[?!]/),p=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":u.test(p)?(d.test(p)?"fun"==p&&t.blocks.indexOf("lib")>=0||"def"==p&&"abstract"==t.lastToken||(t.blocks.push(p),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!f.test(p)?"end"==p&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(p),t.currentIndent+=1),v.hasOwnProperty(p)&&t.tokenize.push(v[p]),"keyword"):c.test(p)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?n(_("[","]","meta"),e,t):(e.eat("@"),e.match(s)||e.match(l),"variable-2");if(e.match(l))return"tag";if(e.eat(":"))return e.eat('"')?n(E('"',"atom",!1),e,t):e.match(s)||e.match(l)||e.match(r)||e.match(i)||e.match(o)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return n(E('"',"string",!0),e,t);if("%"==e.peek()){var h,m="string",g=!0;if(e.match("%r"))m="string-2",h=e.next();else if(e.match("%w"))g=!1,h=e.next();else if(e.match("%q"))g=!1,h=e.next();else if(h=e.match(/^%([^\w\s=])/))h=h[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return y.hasOwnProperty(h)&&(h=y[h]),n(E(h,m,g),e,t)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?n(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(w("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(w("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(_("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(p[2],!p[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(r)?(e.eat("="),"operator"):e.match(i)||e.match(a)?"operator":(p=e.match(/[({[]/,!1))?n(_(p=p[0],y[p],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function _(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=_(e,t,n,!0),o.currentIndent+=1,n;var a=b(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function w(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=w(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):b(r,i)}}function x(e,t){return e.eatSpace()?null:(e.match(s)?e.eat(/[!?]/):e.match(r)||e.match(i)||e.match(o),t.tokenize.pop(),"def")}function k(e,t){return e.eatSpace()?null:(e.match(l),t.tokenize.pop(),"def")}function E(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(w("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(w("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(_("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}return{startState:function(){return{tokenize:[b],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(t,n){return n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),h.test(n)||g.test(n)?e.indentUnit*(t.currentIndent-1):e.indentUnit*t.currentIndent},fold:"indent",electricInput:t(m.concat(p),!0),lineComment:"#"}})),e.defineMIME("text/x-crystal","crystal")}(n(5))},function(e,t,n){!function(e){"use strict";var t=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};e.defineMode("cypher",(function(n){var r,i=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^[^"]*"/),"string";if("'"===t)return e.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"node";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":u.test(n)?"def":c.test(n)||d.test(n)?"keyword":"variable"},o=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},a=function(e){return e.indent=e.context.indent,e.context=e.context.prev},s=n.indentUnit,l=t(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),u=t(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),c=t(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=t(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)o(t,")",e.column());else if("["===r)o(t,"]",e.column());else if("{"===r)o(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)a(t);t.context&&r===t.context.type&&a(t)}else"."===r&&t.context&&"pattern"===t.context.type?a(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?o(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(t,n){var r=n&&n.charAt(0),i=t.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?e.commands.newlineAndIndent:i.align?i.col+(o?0:1):i.indent+(o?0:s):0}}})),e.modeExtensions.cypher={autoFormatLineBreaks:function(e){for(var t=e.split("\n"),n=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,r=0;r<t.length;r++)t[r]=t[r].replace(n," \n$1 ").trim();return t.join("\n")}},e.defineMIME("application/x-cypher-query","cypher")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("d",(function(t,n){var r,i=t.indentUnit,o=n.statementIndentUnit||i,a=n.keywords||{},s=n.builtin||{},l=n.blockKeywords||{},u=n.atoms||{},c=n.hooks||{},d=n.multiLineStrings,f=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,i=e.next();if(c[i]){var o=c[i](e,t);if(!1!==o)return o}if('"'==i||"'"==i||"`"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!d)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(i))return r=i,null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("/"==i){if(e.eat("+"))return t.tokenize=m,m(e,t);if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(i))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var p=e.current();return a.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"keyword"):s.propertyIsEnumerable(p)?(l.propertyIsEnumerable(p)&&(r="newstatement"),"builtin"):u.propertyIsEnumerable(p)?"atom":"variable"}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function y(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-i,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;r=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r&&","!=r||"statement"!=n.type)if("{"==r)v(t,e.column(),"}");else if("["==r)v(t,e.column(),"]");else if("("==r)v(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=y(t);for("}"==n.type&&(n=y(t));"statement"==n.type;)n=y(t)}else r==n.type?y(t):(("}"==n.type||"top"==n.type)&&";"!=r||"statement"==n.type&&"newstatement"==r)&&v(t,e.column(),"statement");else y(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=p&&null!=t.tokenize)return e.Pass;var r=t.context,a=n&&n.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var s=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:o):r.align?r.column+(s?0:1):r.indented+(s?0:i)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";e.defineMIME("text/x-d",{name:"d",keywords:t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+n),blockKeywords:t(n),builtin:t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:t("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}})}(n(5))},function(e,t,n){!function(e){"use strict";var t="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),n="try catch finally do else for if switch while".split(" "),r="true false null".split(" "),i="void bool num int double dynamic var String Null Never".split(" ");function o(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function a(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function s(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function l(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return a(n),n.tokenize=u,"string";var s=t.next();if(s==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==s}return"string"}return n.tokenize=o,o(t,n)}function u(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=c,null}function c(e,t){return e.eatWhile(/[\w_]/),t.tokenize=s(t),"variable"}e.defineMIME("application/dart",{name:"clike",keywords:o(t),blockKeywords:o(n),builtin:o(i),atoms:o(r),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return l("'",e,t,!1)},'"':function(e,t){return l('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&l(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=s(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function e(t){return function(n,r){for(var i;i=n.next();){if("*"==i&&n.eat("/")){if(1==t){r.tokenize=null;break}return r.tokenize=e(t-1),r.tokenize(n,r)}if("/"==i&&n.eat("*"))return r.tokenize=e(t+1),r.tokenize(n,r)}return"comment"}}(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"variable-2"}}}),e.registerHelper("hintWords","application/dart",t.concat(r).concat(i)),e.defineMode("dart",(function(t){return e.getMode(t,"application/dart")}),"clike")}(n(5),n(469))},function(e,t,n){!function(e){"use strict";e.defineMode("diff",(function(){var e={"+":"positive","-":"negative","@":"meta"};return{token:function(t){var n=t.string.search(/[\t ]+?$/);if(!t.sol()||0===n)return t.skipToEnd(),("error "+(e[t.string.charAt(0)]||"")).replace(/ $/,"");var r=e[t.peek()]||t.skipToEnd();return-1===n?t.skipToEnd():t.pos=n,r}}})),e.defineMIME("text/x-diff","diff")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("django:inner",(function(){var e=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],n=["==","!=","<",">","<=",">="],r=["in","not","or","and"];function i(e,t){if(e.match("{{"))return t.tokenize=a,"tag";if(e.match("{%"))return t.tokenize=s,"tag";if(e.match("{#"))return t.tokenize=l,"comment";for(;null!=e.next()&&!e.match(/\{[{%#]/,!1););return null}function o(e,t){return function(n,r){return!r.escapeNext&&n.eat(e)?r.tokenize=t:(r.escapeNext&&(r.escapeNext=!1),"\\"==n.next()&&(r.escapeNext=!0)),"string"}}function a(e,n){if(n.waitDot){if(n.waitDot=!1,"."!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("."))return n.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(n.waitPipe){if(n.waitPipe=!1,"|"!=e.peek())return"null";if(e.match(/\.\W+/))return"error";if(e.eat("|"))return n.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return n.waitProperty&&(n.waitProperty=!1,e.match(/\b(\w+)\b/))?(n.waitDot=!0,n.waitPipe=!0,"property"):n.waitFilter&&(n.waitFilter=!1,e.match(t))?"variable-2":e.eatSpace()?(n.waitProperty=!1,"null"):e.match(/\b\d+(\.\d+)?\b/)?"number":e.match("'")?(n.tokenize=o("'",n.tokenize),"string"):e.match('"')?(n.tokenize=o('"',n.tokenize),"string"):e.match(/\b(\w+)\b/)&&!n.foundVariable?(n.waitDot=!0,n.waitPipe=!0,"variable"):e.match("}}")?(n.waitProperty=null,n.waitFilter=null,n.waitDot=null,n.waitPipe=null,n.tokenize=i,"tag"):(e.next(),"null")}function s(a,s){if(s.waitDot){if(s.waitDot=!1,"."!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("."))return s.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(s.waitPipe){if(s.waitPipe=!1,"|"!=a.peek())return"null";if(a.match(/\.\W+/))return"error";if(a.eat("|"))return s.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(s.waitProperty&&(s.waitProperty=!1,a.match(/\b(\w+)\b/)))return s.waitDot=!0,s.waitPipe=!0,"property";if(s.waitFilter&&(s.waitFilter=!1,a.match(t)))return"variable-2";if(a.eatSpace())return s.waitProperty=!1,"null";if(a.match(/\b\d+(\.\d+)?\b/))return"number";if(a.match("'"))return s.tokenize=o("'",s.tokenize),"string";if(a.match('"'))return s.tokenize=o('"',s.tokenize),"string";if(a.match(n))return"operator";if(a.match(r))return"keyword";var l=a.match(e);return l?("comment"==l[0]&&(s.blockCommentTag=!0),"keyword"):a.match(/\b(\w+)\b/)?(s.waitDot=!0,s.waitPipe=!0,"variable"):a.match("%}")?(s.waitProperty=null,s.waitFilter=null,s.waitDot=null,s.waitPipe=null,s.blockCommentTag?(s.blockCommentTag=!1,s.tokenize=u):s.tokenize=i,"tag"):(a.next(),"null")}function l(e,t){return e.match(/^.*?#\}/)?t.tokenize=i:e.skipToEnd(),"comment"}function u(e,t){return e.match(/\{%\s*endcomment\s*%\}/,!1)?(t.tokenize=s,e.match("{%"),"tag"):(e.next(),"comment")}return e=new RegExp("^\\b("+e.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),n=new RegExp("^\\b("+n.join("|")+")\\b"),r=new RegExp("^\\b("+r.join("|")+")\\b"),{startState:function(){return{tokenize:i}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}})),e.defineMode("django",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"django:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-django","django")}(n(5),n(154),n(273))},function(e,t,n){!function(e){"use strict";var t="from",n=new RegExp("^(\\s*)\\b("+t+")\\b","i"),r=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s="("+[t,o].concat(r).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",l=new RegExp("^(\\s*)"+s+"(\\s*)(#.*)?$","i"),u=new RegExp("^(\\s*)"+s+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:l,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:u,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")}(n(5),n(226))},function(e,t,n){!function(e){"use strict";e.defineMode("dtd",(function(e){var t,n=e.indentUnit;function r(e,n){return t=n,e}function i(e,t){var n,a,s,l=e.next();if("<"!=l||!e.eat("!")){if("<"==l&&e.eat("?"))return t.tokenize=(a="meta",s="?>",function(e,t){for(;!e.eol();){if(e.match(s)){t.tokenize=i;break}e.next()}return a}),r("meta",l);if("#"==l&&e.eatWhile(/[\w]/))return r("atom","tag");if("|"==l)return r("keyword","separator");if(l.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,l);if(l.match(/[\[\]]/))return r("rule",l);if('"'==l||"'"==l)return t.tokenize=(n=l,function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&!a){t.tokenize=i;break}a=!a&&"\\"==o}return r("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var u=e.current();return null!==u.substr(u.length-1,u.length).match(/\?|\+/)&&e.backUp(1),r("tag","tag")}return"%"==l||"*"==l?r("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=o,o(e,t)):e.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function o(e,t){for(var n,o=0;null!=(n=e.next());){if(o>=2&&">"==n){t.tokenize=i;break}o="-"==n?o+1:0}return r("comment","comment")}return{startState:function(e){return{tokenize:i,baseIndent:e||0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),i=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==i?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,r){var i=e.stack.length;return"]"===r.charAt(0)?i--:">"===r.substr(r.length-1,r.length)&&("<"===r.substr(0,1)||"doindent"==t&&r.length>1||("doindent"==t?i--:">"==t&&r.length>1||"tag"==t&&">"!==r||("tag"==t&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==t?i++:">"===r&&"rule"==e.stack[e.stack.length-1]&&">"===t?i--:">"===r&&"rule"==e.stack[e.stack.length-1]||("<"!==r.substr(0,1)&&">"===r.substr(0,1)?i-=1:">"===r||(i-=1)))),null!=t&&"]"!=t||i--),e.baseIndent+i*n},electricChars:"]>"}})),e.defineMIME("application/xml-dtd","dtd")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}e.defineMode("dylan",(function(e){var r={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};r.otherDefinition=r.unnamedDefinition.concat(r.namedDefinition).concat(r.otherParameterizedDefinition),r.definition=r.typeParameterizedDefinition.concat(r.otherDefinition),r.parameterizedDefinition=r.typeParameterizedDefinition.concat(r.otherParameterizedDefinition),r.simpleDefinition=r.constantSimpleDefinition.concat(r.variableSimpleDefinition).concat(r.otherSimpleDefinition),r.keyword=r.statement.concat(r.separator).concat(r.other);var i="[-_a-zA-Z?!*@<>$%]+",o=new RegExp("^"+i),a={symbolKeyword:i+":",symbolClass:"<"+i+">",symbolGlobal:"\\*"+i+"\\*",symbolConstant:"\\$"+i},s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var l in a)a.hasOwnProperty(l)&&(a[l]=new RegExp("^"+a[l]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},c={},d={};function f(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){var r=e.peek();if("'"==r||'"'==r)return e.next(),f(e,t,m(r,"string"));if("/"==r){if(e.next(),e.eat("*"))return f(e,t,h);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(r)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==r)return e.next(),'"'==(r=e.peek())?(e.next(),f(e,t,m('"',"string"))):"b"==r?(e.next(),e.eatWhile(/[01]/),"number"):"x"==r?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==r?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==r?(e.next(),"punctuation"):"["==r||"("==r?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==r)return e.next(),"="==(r=e.peek())?(e.next(),"="==(r=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==r){if(e.next(),"="==(r=e.peek()))return e.next(),"operator";if(":"==r)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(r))return e.next(),"bracket";if(-1!=".,".indexOf(r))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];if(l instanceof Array&&n(l,(function(t){return e.match(t)}))||e.match(l))return s[i]}return/[+\-*\/^=<>&|]/.test(r)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),c.hasOwnProperty(e.current())?d[e.current()]:e.current().match(o)?"variable":(e.next(),"variable-2"))}function h(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=p;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function m(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=p),t}}return t(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){t(r[e],(function(t){c[t]=e,d[t]=u[e]}))})),{startState:function(){return{tokenize:p,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-dylan","dylan")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("ebnf",(function(t){var n=0,r=1,i=0,o=1,a=2,s=null;return t.bracesMode&&(s=e.getMode(t,t.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(t,l){if(t){switch(0===l.stack.length&&('"'==t.peek()||"'"==t.peek()?(l.stringType=t.peek(),t.next(),l.stack.unshift(o)):t.match("/*")?(l.stack.unshift(i),l.commentType=n):t.match("(*")&&(l.stack.unshift(i),l.commentType=r)),l.stack[0]){case o:for(;l.stack[0]===o&&!t.eol();)t.peek()===l.stringType?(t.next(),l.stack.shift()):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return l.lhs?"property string":"string";case i:for(;l.stack[0]===i&&!t.eol();)l.commentType===n&&t.match("*/")||l.commentType===r&&t.match("*)")?(l.stack.shift(),l.commentType=null):t.match(/^.[^\*]*/);return"comment";case a:for(;l.stack[0]===a&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(".")||l.stack.shift();return"operator"}var u=t.peek();if(null!==s&&(l.braced||"{"===u)){null===l.localState&&(l.localState=e.startState(s));var c=s.token(t,l.localState),d=t.current();if(!c)for(var f=0;f<d.length;f++)"{"===d[f]?(0===l.braced&&(c="matchingbracket"),l.braced++):"}"===d[f]&&(l.braced--,0===l.braced&&(c="matchingbracket"));return c}switch(u){case"[":return t.next(),l.stack.unshift(a),"bracket";case":":case"|":case";":return t.next(),"operator";case"%":if(t.match("%%"))return"header";if(t.match(/[%][A-Za-z]+/))return"keyword";if(t.match(/[%][}]/))return"matchingbracket";break;case"/":if(t.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(t.match(/[\][a-z]+/))return"string-2";case".":if(t.match("."))return"atom";case"*":case"-":case"+":case"^":if(t.match(u))return"atom";case"$":if(t.match("$$"))return"builtin";if(t.match(/[$][0-9]+/))return"variable-3";case"<":if(t.match(/<<[a-zA-Z_]+>>/))return"builtin"}return t.match("//")?(t.skipToEnd(),"comment"):t.match("return")?"operator":t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?t.match(/(?=[\(.])/)?"variable":t.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":-1!=["[","]","(",")"].indexOf(t.peek())?(t.next(),"bracket"):(t.eatSpace()||t.next(),null)}}}})),e.defineMIME("text/x-ebnf","ebnf")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("ecl",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=e.indentUnit,i=t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),o=t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),a=t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),s=t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),l=t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),u=t("catch class do else finally for if switch try while"),c=t("true false null"),d={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},f=/[+\-*&%=<>!?|\/]/;function p(e,t){var r,m=e.next();if(d[m]){var g=d[m](e,t);if(!1!==g)return g}if('"'==m||"'"==m)return t.tokenize=(r=m,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(m))return n=m,null;if(/\d/.test(m))return e.eatWhile(/[\w\.]/),"number";if("/"==m){if(e.eat("*"))return t.tokenize=h,h(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(m))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_]/);var v=e.current().toLowerCase();if(i.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"keyword";if(o.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable";if(a.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-2";if(s.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"variable-3";if(l.propertyIsEnumerable(v))return u.propertyIsEnumerable(v)&&(n="newstatement"),"builtin";for(var y=v.length-1;y>=0&&(!isNaN(v[y])||"_"==v[y]);)--y;if(y>0){var b=v.substr(0,y+1);if(s.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(n="newstatement"),"variable-3"}return c.propertyIsEnumerable(v)?"atom":null}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function m(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new m((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||p)(e,t);if("comment"==i||"meta"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n||"statement"!=r.type)if("{"==n)g(t,e.column(),"}");else if("["==n)g(t,e.column(),"]");else if("("==n)g(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=v(t);for("}"==r.type&&(r=v(t));"statement"==r.type;)r=v(t)}else n==r.type?v(t):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==n)&&g(t,e.column(),"statement");else v(t);return t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=p&&null!=e.tokenize)return 0;var n=e.context,i=t&&t.charAt(0);"statement"==n.type&&"}"==i&&(n=n.prev);var o=i==n.type;return"statement"==n.type?n.indented+("{"==i?0:r):n.align?n.column+(o?0:1):n.indented+(o?0:r)},electricChars:"{}"}})),e.defineMIME("text/x-ecl","ecl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("eiffel",(function(){function e(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var t=e(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),n=e([":=","and then","and","or","<<",">>"]);function r(e,t){if(e.eatSpace())return null;var n,r,i,o=e.next();return'"'==o||"'"==o?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=o,r="string",function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&(i||!a)){t.tokenize.pop();break}a=!a&&"%"==o}return r}),e,t):"-"==o&&e.eat("-")?(e.skipToEnd(),"comment"):":"==o&&e.eat("=")?"operator":/[0-9]/.test(o)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(o)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(o)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}return{startState:function(){return{tokenize:[r]}},token:function(e,r){var i=r.tokenize[r.tokenize.length-1](e,r);if("ident"==i){var o=e.current();i=t.propertyIsEnumerable(e.current())?"keyword":n.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(o)?"tag":/^0[bB][0-1]+$/g.test(o)||/^0[cC][0-7]+$/g.test(o)||/^0[xX][a-fA-F0-9]+$/g.test(o)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(o)||/^[0-9]+$/g.test(o)?"number":"variable"}return i},lineComment:"--"}})),e.defineMIME("text/x-eiffel","eiffel")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("elm",(function(){function e(e,t,n){return t(n),n(e,t)}var t=/[a-z]/,n=/[A-Z]/,r=/[a-zA-Z0-9_]/,i=/[0-9]/,o=/[0-9A-Fa-f]/,a=/[-&*+.\\/<>=?^|:]/,s=/[(),[\]{}]/,l=/[ \v\f]/;function u(){return function(h,m){if(h.eatWhile(l))return null;var g=h.next();if(s.test(g))return"{"===g&&h.eat("-")?e(h,m,function e(t){return 0==t?u():function(n,r){for(;!n.eol();){var i=n.next();if("{"==i&&n.eat("-"))++t;else if("-"==i&&n.eat("}")&&0==--t)return r(u()),"comment"}return r(e(t)),"comment"}}(1)):"["===g&&h.match("glsl|")?e(h,m,p):"builtin";if("'"===g)return e(h,m,f);if('"'===g)return h.eat('"')?h.eat('"')?e(h,m,c):"string":e(h,m,d);if(n.test(g))return h.eatWhile(r),"variable-2";if(t.test(g)){var v=1===h.pos;return h.eatWhile(r),v?"def":"variable"}if(i.test(g)){if("0"===g){if(h.eat(/[xX]/))return h.eatWhile(o),"number"}else h.eatWhile(i);return h.eat(".")&&h.eatWhile(i),h.eat(/[eE]/)&&(h.eat(/[-+]/),h.eatWhile(i)),"number"}return a.test(g)?"-"===g&&h.eat("-")?(h.skipToEnd(),"comment"):(h.eatWhile(a),"keyword"):"_"===g?"keyword":"error"}}function c(e,t){for(;!e.eol();)if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(u()),"string";return"string"}function d(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function f(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(u()),"string"):(e.skipToEnd(),t(u()),"error")}function p(e,t){for(;!e.eol();)if("|"===e.next()&&e.eat("]"))return t(u()),"string";return"string"}var h={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:u()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return h.hasOwnProperty(r)?"keyword":n}}})),e.defineMIME("text/x-elm","elm")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",(function(t){var n=["-type","-spec","-export_type","-opaque"],r=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],i=/[\->,;]/,o=["->",";",","],a=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,l=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],u=/[<\(\[\{]/,c=["<<","(","[","{"],d=/[>\)\]\}]/,f=["}","]",")",">>"],p=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],h=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],m=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,g=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function v(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(x(e.current(),n))return!0;e.backUp(1)}e.next()}return!1}function b(e){return w(e,'"',"\\")}function _(e){return w(e,"'","\\")}function w(e,t,n){for(;!e.eol();){var r=e.next();if(r==t)return!0;r==n&&e.next()}return!1}function x(e,t){return-1<t.indexOf(e)}function k(e,t,n){switch(function(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=function(e,t){var n=e.length-1;return 0<n&&"record"===e[n].type&&"dot"===t.type?e.pop():0<n&&"group"===e[n].type?(e.pop(),e.push(t)):e.push(t),e}(e.tokenStack,t),e.tokenStack=function(e){if(!e.length)return e;var t=e.length-1;if("dot"===e[t].type)return[];if(t>1&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return C(e,{g:["{"]});case"]":return C(e,{i:["["]});case")":return C(e,{i:["("]});case">>":return C(e,{i:["<<"]});case"end":return C(e,{i:["begin","case","fun","if","receive","try"]});case",":return C(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return C(e,{r:["when"],m:["try","if","case","receive"]});case";":return C(e,{E:["case","fun","if","receive","try","when"]});case"catch":return C(e,{e:["try"]});case"of":return C(e,{e:["case"]});case"after":return C(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return E(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function E(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function S(e){return E(e,0,0,e)}function O(e,t){var n=e.tokenStack.length,r=t||1;return!(n<r)&&e.tokenStack[n-r]}function C(e,t){for(var n in t)for(var r=e.length-1,i=t[n],o=r-1;-1<o;o--)if(x(e[o].token,i)){var a=e.slice(0,o);switch(n){case"m":return a.concat(e[o]).concat(e[r]);case"r":return a.concat(e[r]);case"i":return a;case"g":return a.concat(S("group"));case"E":case"e":return a.concat(e[o])}}return"E"==n?[]:e}function T(n,r){var i,o,a=t.indentUnit,s=R(o=r.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===o.index?o[0]:"",l=O(n,1),u=O(n,2);return n.in_string||n.in_atom?e.Pass:u?"when"==l.token?l.column+a:"when"===s&&"function"===u.type?u.indent+a:"("===s&&"fun"===l.token?l.column+3:"catch"===s&&(i=A(n,["try"]))?i.column:x(s,["end","after","of"])?(i=A(n,["begin","case","fun","if","receive","try"]))?i.column:e.Pass:x(s,f)?(i=A(n,c))?i.column:e.Pass:x(l.token,[",","|","||"])||x(s,[",","|","||"])?(i=function(e){var t=e.tokenStack.slice(0,-1),n=P(t,"type",["open_paren"]);return!!R(t[n])&&t[n]}(n))?i.column+i.token.length:a:"->"==l.token?x(u.token,["receive","case","if","try"])?u.column+a+a:u.column+a:x(l.token,c)?l.column+l.token.length:(i=function(e){var t=e.tokenStack,n=P(t,"type",["open_paren","separator","keyword"]),r=P(t,"type",["operator"]);return R(n)&&R(r)&&n<r?t[n+1]:!!R(n)&&t[n]}(n),R(i)?i.column+a:0):0}function A(e,t){var n=e.tokenStack,r=P(n,"token",t);return!!R(n[r])&&n[r]}function P(e,t,n){for(var r=e.length-1;-1<r;r--)if(x(e[r][t],n))return r;return!1}function R(e){return!1!==e&&null!=e}return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return function(e,t){if(t.in_string)return t.in_string=!b(e),k(t,e,"string");if(t.in_atom)return t.in_atom=!_(e),k(t,e,"atom");if(e.eatSpace())return k(t,e,"whitespace");if(!O(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),n)?k(t,e,"type"):k(t,e,"attribute");var w=e.next();if("%"==w)return e.skipToEnd(),k(t,e,"comment");if(":"==w)return k(t,e,"colon");if("?"==w)return e.eatSpace(),e.eatWhile(m),k(t,e,"macro");if("#"==w)return e.eatSpace(),e.eatWhile(m),k(t,e,"record");if("$"==w)return"\\"!=e.next()||e.match(g)?k(t,e,"number"):k(t,e,"error");if("."==w)return k(t,e,"dot");if("'"==w){if(!(t.in_atom=!_(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),k(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return k(t,e,"function")}return k(t,e,"atom")}if('"'==w)return t.in_string=!b(e),k(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(w))return e.eatWhile(m),k(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(w)){if(e.eatWhile(m),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),k(t,e,"fun");var E=e.current();return x(E,r)?k(t,e,"keyword"):x(E,a)?k(t,e,"operator"):e.match(/\s*\(/,!1)?!x(E,h)||":"==O(t).token&&"erlang"!=O(t,2).token?x(E,p)?k(t,e,"guard"):k(t,e,"function"):k(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?k(t,e,"erlang"==E?"builtin":"function"):x(E,["true","false"])?k(t,e,"boolean"):k(t,e,"atom")}var S=/[0-9]/;return S.test(w)?(e.eatWhile(S),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(S)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(S)||e.backUp(2):e.eatWhile(S)||e.backUp(1)):e.backUp(1)),k(t,e,"number")):v(e,u,c)?k(t,e,"open_paren"):v(e,d,f)?k(t,e,"close_paren"):y(e,i,o)?k(t,e,"separator"):y(e,s,l)?k(t,e,"operator"):k(t,e,null)}(e,t)},indent:function(e,t){return T(e,t)},lineComment:"%"}}))}(n(5))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:"!"}}),e.defineMIME("text/x-factor","factor")}(n(5),n(226))},function(e,t,n){!function(e){"use strict";e.defineMode("fcl",(function(e){var t=e.indentUnit,n={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},r={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},i={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},o={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var s=e.next();if(/[\d\.]/.test(s))return"."==s?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==s?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==s||"("==s){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(s))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current().toLowerCase();return n.propertyIsEnumerable(u)||r.propertyIsEnumerable(u)||i.propertyIsEnumerable(u)?"keyword":o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}return{startState:function(e){return{tokenize:null,context:new u((e||0)-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var o=(t.tokenize||s)(e,t);if("comment"==o)return o;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return r.propertyIsEnumerable(a)?function(e,t,n){e.context=new u(e.indented,t,n,null,e.context)}(t,e.column(),"end_block"):i.propertyIsEnumerable(a)&&function(e){e.context.prev&&("end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev)}(t),t.startOfLine=!1,o},indent:function(e,n){if(e.tokenize!=s&&null!=e.tokenize)return 0;var r=e.context,o=i.propertyIsEnumerable(n);return r.align?r.column+(o?0:1):r.indented+(o?0:t)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}})),e.defineMIME("text/x-fcl","fcl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}var n=t("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),r=t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");e.defineMode("forth",(function(){function e(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}return{startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:r,wordList:[]}},token:function(t,n){var r;if(t.eatSpace())return null;if(""===n.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return n.state=" compilation","builtin compilation";if(r=t.match(/^(\:)\s+(\S+)(\s|$)+/))return n.wordList.push({name:r[2].toUpperCase()}),n.state=" compilation","def"+n.state;if(r=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return n.wordList.push({name:r[2].toUpperCase()}),"def"+n.state;if(r=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"+n.state}else{if(t.match(/^(\;|\[)(\s)/))return n.state="",t.backUp(1),"builtin compilation";if(t.match(/^(\;|\[)($)/))return n.state="","builtin compilation";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(r=t.match(/^(\S+)(\s+|$)/))?void 0!==e(n.wordList,r[1])?"variable"+n.state:"\\"===r[1]?(t.skipToEnd(),"comment"+n.state):void 0!==e(n.coreWordList,r[1])?"builtin"+n.state:void 0!==e(n.immediateWordList,r[1])?"keyword"+n.state:"("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"comment"+n.state):".("===r[1]?(t.eatWhile((function(e){return")"!==e})),t.eat(")"),"string"+n.state):'S"'===r[1]||'."'===r[1]||'C"'===r[1]?(t.eatWhile((function(e){return'"'!==e})),t.eat('"'),"string"+n.state):r[1]-68719476735?"number"+n.state:"atom"+n.state:void 0}}})),e.defineMIME("text/x-forth","forth")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("fortran",(function(){function e(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var t=e(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),n=e(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),r=e(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),i=/[+\-*&=<>\/\:]/,o=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function a(e,a){if(e.match(o))return"operator";var s,l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(e,a);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(i.test(l))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var u=e.current().toLowerCase();return t.hasOwnProperty(u)?"keyword":n.hasOwnProperty(u)||r.hasOwnProperty(u)?"builtin":"variable"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||a)(e,t);return n}}})),e.defineMIME("text/x-fortran","fortran")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("gas",(function(e,t){var n=[],r="",i={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},o={},a=(t.architecture||"x86").toLowerCase();function s(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===a?(r="#",o.al="variable",o.ah="variable",o.ax="variable",o.eax="variable-2",o.rax="variable-3",o.bl="variable",o.bh="variable",o.bx="variable",o.ebx="variable-2",o.rbx="variable-3",o.cl="variable",o.ch="variable",o.cx="variable",o.ecx="variable-2",o.rcx="variable-3",o.dl="variable",o.dh="variable",o.dx="variable",o.edx="variable-2",o.rdx="variable-3",o.si="variable",o.esi="variable-2",o.rsi="variable-3",o.di="variable",o.edi="variable-2",o.rdi="variable-3",o.sp="variable",o.esp="variable-2",o.rsp="variable-3",o.bp="variable",o.ebp="variable-2",o.rbp="variable-3",o.ip="variable",o.eip="variable-2",o.rip="variable-3",o.cs="keyword",o.ds="keyword",o.ss="keyword",o.es="keyword",o.fs="keyword",o.gs="keyword"):"arm"!==a&&"armv6"!==a||(r="@",i.syntax="builtin",o.r0="variable",o.r1="variable",o.r2="variable",o.r3="variable",o.r4="variable",o.r5="variable",o.r6="variable",o.r7="variable",o.r8="variable",o.r9="variable",o.r10="variable",o.r11="variable",o.r12="variable",o.sp="variable-2",o.lr="variable-2",o.pc="variable-2",o.r13=o.sp,o.r14=o.lr,o.r15=o.pc,n.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{startState:function(){return{tokenize:null}},token:function(e,t){if(t.tokenize)return t.tokenize(e,t);if(e.eatSpace())return null;var a,l,u=e.next();if("/"===u&&e.eat("*"))return t.tokenize=s,s(e,t);if(u===r)return e.skipToEnd(),"comment";if('"'===u)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if(n===t&&!r)return!1;r=!r&&"\\"===n}}(e,'"'),"string";if("."===u)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(a=i[l])||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"bracket";if("}"===u)return"bracket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(a=o[l])||null);for(var c=0;c<n.length;c++)if(a=n[c](u,e,t))return a},lineComment:r,blockCommentStart:"/*",blockCommentEnd:"*/"}}))}(n(5))},function(e,t,n){!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0,o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:function(e){return e.code=!1,null}},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in r)a[s]=r[s];return a.name="markdown",e.overlayMode(e.getMode(n,a),o)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(5),n(746),n(273))},function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("gherkin",(function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}})),e.defineMIME("text/x-feature","gherkin")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("go",(function(t){var n,r=t.indentUnit,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var r,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(r=u,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return n=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}function d(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new u((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==r.align&&(r.align=!0),"{"==n?c(t,e.column(),"}"):"["==n?c(t,e.column(),"]"):"("==n?c(t,e.column(),")"):"case"==n?r.type="case":("}"==n&&"}"==r.type||n==r.type)&&d(t),t.startOfLine=!1),i},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-go","go")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("groovy",(function(t){function n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var r,i=n("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),o=n("catch class def do else enum finally for if interface switch trait try while"),a=n("return break continue"),s=n("null true false this");function l(e,t){var n=e.next();if('"'==n||"'"==n)return u(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return r=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(d),d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(f(t.lastToken,!1))return u(n,e,t)}if("-"==n&&e.eat(">"))return r="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return r="proplabel","property";var l=e.current();return s.propertyIsEnumerable(l)?"atom":i.propertyIsEnumerable(l)?(o.propertyIsEnumerable(l)?r="newstatement":a.propertyIsEnumerable(l)&&(r="standalone"),"keyword"):"variable"}function u(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o&&t.eat("{"))return n.tokenize.push(c()),"string";o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function c(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return l(t,n)}return t.isBase=!0,t}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function f(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return l.isBase=!0,{startState:function(e){return{tokenize:[l],context:new p((e||0)-t.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||f(t.lastToken,!0)||(m(t),n=t.context)),e.eatSpace())return null;r=null;var i=t.tokenize[t.tokenize.length-1](e,t);if("comment"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r||"statement"!=n.type)if("->"==r&&"statement"==n.type&&"}"==n.prev.type)m(t),t.context.align=!1;else if("{"==r)h(t,e.column(),"}");else if("["==r)h(t,e.column(),"]");else if("("==r)h(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=m(t);for("}"==n.type&&(n=m(t));"statement"==n.type;)n=m(t)}else r==n.type?m(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==r)&&h(t,e.column(),"statement");else m(t);return t.startOfLine=!1,t.lastToken=r||i,i},indent:function(n,r){if(!n.tokenize[n.tokenize.length-1].isBase)return e.Pass;var i=r&&r.charAt(0),o=n.context;"statement"!=o.type||f(n.lastToken,!0)||(o=o.prev);var a=i==o.type;return"statement"==o.type?o.indented+("{"==i?0:t.indentUnit):o.align?o.column+(a?0:1):o.indented+(a?0:t.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-groovy","groovy")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("haml",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby");function i(e){return function(t,n){return t.peek()==e&&1==n.rubyState.tokenize.length?(t.next(),n.tokenize=a,"closeAttributeTag"):o(t,n)}}function o(e,t){return e.match("-#")?(e.skipToEnd(),"comment"):r.token(e,t.rubyState)}function a(e,t){var r=e.peek();if("comment"==t.previousToken.style&&t.indented>t.previousToken.indented)return e.skipToEnd(),"commentLine";if(t.startOfLine){if("!"==r&&e.match("!!"))return e.skipToEnd(),"tag";if(e.match(/^%[\w:#\.]+=/))return t.tokenize=o,"hamlTag";if(e.match(/^%[\w:]+/))return"hamlTag";if("/"==r)return e.skipToEnd(),"comment"}if((t.startOfLine||"hamlTag"==t.previousToken.style)&&("#"==r||"."==r))return e.match(/[\w-#\.]*/),"hamlAttribute";if(t.startOfLine&&!e.match("--\x3e",!1)&&("="==r||"-"==r))return t.tokenize=o,t.tokenize(e,t);if("hamlTag"==t.previousToken.style||"closeAttributeTag"==t.previousToken.style||"hamlAttribute"==t.previousToken.style){if("("==r)return t.tokenize=i(")"),t.tokenize(e,t);if("{"==r&&!e.match(/^\{%.*/))return t.tokenize=i("}"),t.tokenize(e,t)}return n.token(e,t.htmlState)}return{startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),indented:0,previousToken:{style:null,indented:0},tokenize:a}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()&&(t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var n=t.tokenize(e,t);if(t.startOfLine=!1,n&&"commentLine"!=n&&(t.previousToken={style:n,indented:t.indented}),e.eol()&&t.tokenize==o){e.backUp(1);var r=e.peek();e.next(),r&&","!=r&&(t.tokenize=a)}return"hamlTag"==n?n="tag":"commentLine"==n?n="comment":"hamlAttribute"==n?n="attribute":"closeAttributeTag"==n&&(n=null),n}}}),"htmlmixed","ruby"),e.defineMIME("text/x-haml","haml")}(n(5),n(154),n(470))},function(e,t,n){!function(e){"use strict";e.defineMode("haskell-literate",(function(t,n){var r=e.getMode(t,n&&n.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(r)}},token:function(e,t){return e.sol()&&(t.inCode=e.eat(">"))?"meta":t.inCode?r.token(e,t.baseState):(e.skipToEnd(),"comment")},innerMode:function(e){return e.inCode?{state:e.baseState,mode:r}:null}}}),"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")}(n(5),n(748))},function(e,t,n){!function(e){"use strict";e.defineMode("haxe",(function(e,t){var n=e.indentUnit;function r(e){return{type:e,style:"keyword"}}var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),u={type:"atom",style:"atom"},c={type:"attribute",style:"attribute"},d=r("typedef"),f={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:c,static:c,using:r("import"),public:c,private:c,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:u,false:u,null:u},p=/[+\-*&%=<>!?|]/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return h(e,t,(r=n,function(e,t){return m(e,r)&&(t.tokenize=v),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return m(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string-2");if("/"==n)return e.eat("*")?h(e,t,y):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(p),g("operator",null,e.current()));if("#"==n)return e.skipToEnd(),g("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(p.test(n))return e.eatWhile(p),g("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),g("type","variable-3",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=f.propertyIsEnumerable(i)&&f[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function x(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r<n;r++)if(e.importedtypes[r]==t)return!0}function k(e){for(var t=E.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}var E={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function O(){return S.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=E.state;if(t.context){if(E.marked="def",C(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(C(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var A={name:"this",next:null};function P(){E.state.context||(E.state.localVars=A),E.state.context={prev:E.state.context,vars:E.state.localVars}}function R(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function j(e,t){var n=function(){var n=E.state;n.lexical=new _(n.indented,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function I(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){return function t(n){return n==e?O():";"==e?S():O(t)}}function L(e){return"@"==e?O(z):"var"==e?O(j("vardef"),Y,M(";"),I):"keyword a"==e?O(j("form"),D,L,I):"keyword b"==e?O(j("form"),L,I):"{"==e?O(j("}"),P,K,I,R):";"==e?O():"attribute"==e?O(B):"function"==e?O(J):"for"==e?O(j("form"),M("("),j(")"),X,M(")"),I,L,I):"variable"==e?O(j("stat"),H):"switch"==e?O(j("form"),D,j("}","switch"),M("{"),K,I,I):"case"==e?O(D,M(":")):"default"==e?O(M(":")):"catch"==e?O(j("form"),P,M("("),re,M(")"),L,I,R):"import"==e?O(q,M(";")):"typedef"==e?O(W):S(j("stat"),D,M(";"),I)}function D(e){return b.hasOwnProperty(e)||"type"==e?O(F):"function"==e?O(J):"keyword c"==e?O(N):"("==e?O(j(")"),N,M(")"),I,F):"operator"==e?O(D):"["==e?O(j("]"),G(N,"]"),I,F):"{"==e?O(j("}"),G(V,"}"),I,F):O()}function N(e){return e.match(/[;\}\)\],]/)?S():S(D)}function F(e,t){return"operator"==e&&/\+\+|--/.test(t)?O(F):"operator"==e||":"==e?O(D):";"!=e?"("==e?O(j(")"),G(D,")"),I,F):"."==e?O($,F):"["==e?O(j("]"),D,M("]"),I,F):void 0:void 0}function B(e){return"attribute"==e?O(B):"function"==e?O(J):"var"==e?O(Y):void 0}function z(e){return":"==e||"variable"==e?O(z):"("==e?O(j(")"),G(U,")"),I,L):void 0}function U(e){if("variable"==e)return O()}function q(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),O()):"variable"==e||"property"==e||"."==e||"*"==t?O(q):void 0}function W(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(k(t),O()):"type"==e&&/[A-Z]/.test(t.charAt(0))?O():void 0}function H(e){return":"==e?O(I,L):S(F,M(";"),I)}function $(e){if("variable"==e)return E.marked="property",O()}function V(e){if("variable"==e&&(E.marked="property"),b.hasOwnProperty(e))return O(M(":"),D)}function G(e,t){function n(r){return","==r?O(e,n):r==t?O():O(M(t))}return function(r){return r==t?O():S(e,n)}}function K(e){return"}"==e?O():S(L,K)}function Y(e,t){return"variable"==e?(T(t),O(ee,Q)):O()}function Q(e,t){return"="==t?O(D,Q):","==e?O(Y):void 0}function X(e,t){return"variable"==e?(T(t),O(Z,D)):S()}function Z(e,t){if("in"==t)return O()}function J(e,t){return"variable"==e||"type"==e?(T(t),O(J)):"new"==t?O(J):"("==e?O(j(")"),P,G(re,")"),I,ee,L,R):void 0}function ee(e){if(":"==e)return O(te)}function te(e){return"type"==e||"variable"==e?O():"{"==e?O(j("}"),G(ne,"}"),I):void 0}function ne(e){if("variable"==e)return O(ee)}function re(e,t){if("variable"==e)return T(t),O(ee)}return R.lex=!0,I.lex=!0,{startState:function(e){var r={tokenize:v,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new _((e||0)-n,0,"block",!1),localVars:t.localVars,importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:t.localVars&&{vars:t.localVars},indented:0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():L)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&w(e,r)?"variable-2":"variable"==n&&x(e,r)?"variable-3":t}}(t,n,d,i,e))},indent:function(e,t){if(e.tokenize!=v)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n):i.indented+(/^(?:case|default)\b/.test(t)?n:2*n)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-haxe","haxe"),e.defineMode("hxml",(function(){return{startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}return n=e.peek(),0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},lineComment:"#"}})),e.defineMIME("text/x-hxml","hxml")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("htmlembedded",(function(t,n){var r=n.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:n.openComment||"<%--",close:r,delimStyle:"comment",mode:{token:function(e){return e.skipTo(r)||e.skipToEnd(),"comment"}}},{open:n.open||n.scriptStartRegex||"<%",close:n.close||n.scriptEndRegex||"%>",mode:e.getMode(t,n.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}(n(5),n(154),n(471))},function(e,t,n){!function(e){"use strict";e.defineMode("http",(function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,r){return t.match(/^HTTP\/\d\.\d/)?(r.cur=n,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(r.cur=i,"keyword"):e(t,r)}function n(t,n){var i=t.match(/^\d+/);if(!i)return e(t,n);n.cur=r;var o=Number(i[0]);return o>=100&&o<200?"positive informational":o>=200&&o<300?"positive success":o>=300&&o<400?"positive redirect":o>=400&&o<500?"negative client-error":o>=500&&o<600?"negative server-error":"error"}function r(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,n){return t.match(/^HTTP\/\d\.\d$/)?(n.cur=a,"keyword"):e(t,n)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var n=t.cur;return n!=a&&n!=s&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}})),e.defineMIME("message/http","http")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],r=t(n),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],o=t(i);e.registerHelper("hintWords","idl",n.concat(i));var a=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),s=/[+\-*&=<>\/@#~$]/,l=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");e.defineMode("idl",(function(){return{token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(r)?"builtin":e.match(a)?"variable":e.match(s)||e.match(l)?"operator":(e.next(),null)}(e)}}})),e.defineMIME("text/x-idl","idl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("jinja2",(function(){var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{tokenize:o}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"{#",blockCommentEnd:"#}"}})),e.defineMIME("text/jinja2","jinja2")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function l(n,i){return i.context.mode==o?function(n,i,u){if(2==u.depth)return n.match(/^.*?\*\//)?u.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(u.state);var c=s(u.state),d=u.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?c-=r.indentUnit:u.prev.state.lexical&&(c=u.prev.state.lexical.indented)}else 1==u.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==u.depth){if("<"==n.peek())return o.skipAttribute(u.state),i.context=new t(e.startState(o,s(u.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return u.depth=2,l(n,i)}var f,p=o.token(n,u.state),h=n.current();return/\btag\b/.test(p)?/>$/.test(h)?u.state.context?u.depth=0:i.context=i.context.prev:/^</.test(h)&&(u.depth=1):!p&&(f=h.indexOf("{"))>-1&&n.backUp(h.length-f),p}(n,i,i.context):function(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),a.skipExpression(i.state),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var l=n.current();"{"==l?i.depth++:"}"==l&&0==--i.depth&&(r.context=r.context.prev)}return s}(n,i,i.context)}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:l,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(5),n(272),n(225))},function(e,t,n){!function(e){"use strict";e.defineMode("julia",(function(t,n){function r(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=n.operators||r(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=n.delimiters||/^[;,()[\]{}]/,s=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),u=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],c=["true","false","nothing","NaN","Inf"];e.registerHelper("hintWords","julia",u.concat(c));var d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),f=r(["end","else","elseif","catch","finally"]),p=r(u),h=r(c),m=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,v=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,y=r(i,"","@"),b=r(i,"",":");function _(e){return e.nestedArrays>0}function w(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function x(e,t){if(e.match("#=",!1))return t.tokenize=E,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i,l=e.peek();if("#"===l)return e.skipToEnd(),"comment";if("["===l&&(t.scopes.push("["),t.nestedArrays++),"("===l&&(t.scopes.push("("),t.nestedGenerators++),_(t)&&"]"===l){for(;t.scopes.length&&"["!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===l){for(;t.scopes.length&&"("!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(_(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(f,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=k,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(b)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var u=RegExp(/^im\b/),c=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(c=!0),e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(c=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(c=!0),c)return e.match(u),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=S,t.tokenize(e,t);if(e.match(v))return t.tokenize=('"""'===(i=e.current()).substr(-3)?i='"""':'"'===i.substr(-1)&&(i='"'),function(e,t){if(e.eat("\\"))e.next();else{if(e.match(i))return t.tokenize=x,t.leavingExpr=!0,"string";e.eat(/[`"]/)}return e.eatWhile(/[^\\`"]/),"string"}),t.tokenize(e,t);if(e.match(m)||e.match(y))return"meta";if(e.match(a))return null;if(e.match(p))return"keyword";if(e.match(h))return"builtin";var O=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?O?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function k(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=x),"builtin"}function E(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=x)),"comment"}function S(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i))((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next());else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=x,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=x),"error")}return{startState:function(){return{tokenize:x,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,n){var r=0;return("]"===n||")"===n||/^end\b/.test(n)||/^else/.test(n)||/^catch\b/.test(n)||/^elseif\b/.test(n)||/^finally/.test(n))&&(r=-1),(e.scopes.length+r)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"}})),e.defineMIME("text/x-julia","julia")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("livescript",(function(){var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=o[n];if(r.splice){for(var i=0;i<r.length;++i){var a=r[i];if(a.regex&&e.match(a.regex))return t.next=a.next||t.next,a.token}return e.next(),"error"}if(e.match(a=o[n]))return a.regex&&e.match(a.regex)?(t.next=a.next,a.token):(e.next(),"error")}return e.next(),"error"};return{startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(t,n){for(;t.pos==t.start;)var r=e(t,n);return n.lastToken={style:r,indent:t.indentation(),content:t.current()},r.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(n)&&(t+=2),t}}}));var t="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",i={token:"string",regex:".+"},o={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:t+"\\s*:(?![:=])"},{token:"variable",regex:t},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:t,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},i],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},i],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},i],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},i],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},i],words:[{token:"string",regex:".*?\\]>",next:"key"},i]};for(var a in o){var s=o[a];if(s.splice)for(var l=0,u=s.length;l<u;++l){var c=s[l];"string"==typeof c.regex&&(o[a][l].regex=new RegExp("^"+c.regex))}else"string"==typeof c.regex&&(o[a].regex=new RegExp("^"+s.regex))}e.defineMIME("text/x-livescript","livescript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("lua",(function(e,t){var n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(t.specials||[]),o=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),a=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),s=r(["function","if","repeat","do","\\(","{"]),l=r(["end","until","\\)","}"]),u=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function c(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function d(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=f(c(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=d),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=f(c(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function f(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=d;break}o=null}return t}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:d}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(a.test(r)?n="keyword":o.test(r)?n="builtin":i.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(s.test(r)?++t.indentDepth:l.test(r)&&--t.indentDepth),n},indent:function(e,t){var r=u.test(t);return e.basecol+n*(e.indentDepth-(r?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}})),e.defineMIME("text/x-lua","lua")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mathematica",(function(e,t){var n="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",r="(?:`(?:`?"+n+")?)",i=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+r+"?(?:\\*\\^[+-]?\\d+)?))"),o=new RegExp("(?:"+n+r+"?(?:\\*\\^[+-]?\\d+)?)"),a=new RegExp("(?:`?)(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*)(?:`(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*))*(?:`?)");function s(e,t){var n;return'"'===(n=e.next())?(t.tokenize=l,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=u,t.tokenize(e,t)):(e.backUp(1),e.match(i,!0,!1)||e.match(o,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(a,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function l(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=s),"string"}function u(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=s),"comment"}return{startState:function(){return{tokenize:s,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}})),e.defineMIME("text/x-mathematica",{name:"mathematica"})}(n(5))},function(e,t,n){!function(e){"use strict";var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],n=["Date","Subject","Comments","Keywords","Resent-Date"];e.registerHelper("hintWords","mbox",t.concat(n));var r=/^[ \t]/,i=/^From /,o=new RegExp("^("+t.join("|")+"): "),a=new RegExp("^("+n.join("|")+"): "),s=/^[^:]+:/,l=/^[^ ]+@[^ ]+/,u=/^.*?(?=[^ ]+?@[^ ]+)/,c=/^<.*?>/,d=/^.*?(?=<.*>)/;function f(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(r))return null;if(t.inHeader=!1,t.header=null,e.match(i))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,f=!1;return(n=e.match(a))||(f=!0)&&(n=e.match(o))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=f,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(s))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(l)?"link":(e.match(u)||e.skipToEnd(),"atom");if(t.inHeader){var p=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(c))return p+" link";if(e.match(d))return p}return e.skipToEnd(),p}return e.skipToEnd(),null}e.defineMode("mbox",(function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:f,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}})),e.defineMIME("application/mbox","mbox")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMIME("text/mirc","mirc"),e.defineMode("mirc",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),n=e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),r=e("if elseif else and not or eq ne in ni for foreach while switch"),i=/[+\-*&%=<>!?^\/\|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var u=a.beforeParams;a.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c))return"("==c&&u?a.inParams=!0:")"==c&&(a.inParams=!1),null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),"number";if("\\"==c)return e.eat("\\"),e.eat(/./),"number";if("/"==c&&e.eat("*"))return o(e,a,s);if(";"==c&&e.match(/ *\( *\(/))return o(e,a,l);if(";"!=c||a.inParams){if('"'==c)return e.eat(/"/),"keyword";if("$"==c)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),t&&t.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(a.beforeParams=!0,"builtin");if("%"==c)return e.eatWhile(/[^,\s()]/),a.beforeParams=!0,"string";if(i.test(c))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return n&&n.propertyIsEnumerable(d)?"keyword":r&&r.propertyIsEnumerable(d)?(a.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function s(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function l(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=a;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}))}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mllike",(function(t,n){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},i=n.extraWords||{};for(var o in i)i.hasOwnProperty(o)&&(r[o]=n.extraWords[o]);var a=[];for(var s in r)a.push(s);function l(e,t){var i=e.next();if('"'===i)return t.tokenize=u,t.tokenize(e,t);if("{"===i&&e.eat("|"))return t.longString=!0,t.tokenize=d,t.tokenize(e,t);if("("===i&&e.match(/^\*(?!\))/))return t.commentLevel++,t.tokenize=c,t.tokenize(e,t);if("~"===i||"?"===i)return e.eatWhile(/\w/),"variable-2";if("`"===i)return e.eatWhile(/\w/),"quote";if("/"===i&&n.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===i&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===i&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){e.eatWhile(/[\w\xa1-\uffff]/);var o=e.current();return r.hasOwnProperty(o)?r[o]:"variable"}return null}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=l),"string"}function c(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=l),"comment"}function d(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=l),"string"}return e.registerHelper("hintWords","mllike",a),{startState:function(){return{tokenize:l,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}})),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),e.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("modelica",(function(t,n){var r=t.indentUnit,i=n.keywords||{},o=n.builtin||{},a=n.atoms||{},s=/[;=\(:\),{}.*<>+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,u=/[0-9]/,c=/[_a-zA-Z]/;function d(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function f(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function h(e,t){for(e.eatWhile(u);e.eat(u)||e.eat(c););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function m(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function g(e,t){return e.eatWhile(u),e.eat(".")&&e.eatWhile(u),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(u)),t.tokenize=null,t.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=d;else if("/"==n&&e.eat("*"))t.tokenize=f;else{if(l.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(s.test(n))return t.tokenize=null,"operator";if(c.test(n))t.tokenize=h;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=m;else if('"'==n)t.tokenize=p;else{if(!u.test(n))return t.tokenize=null,"error";t.tokenize=g}}return t.tokenize(e,t)},indent:function(t,n){if(null!=t.tokenize)return e.Pass;var i=t.level;return/(algorithm)/.test(n)&&i--,/(equation)/.test(n)&&i--,/(initial algorithm)/.test(n)&&i--,/(initial equation)/.test(n)&&i--,/(end)/.test(n)&&i--,i>0?r*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-modelica"],{name:"modelica",keywords:t("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),builtin:t("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),atoms:t("Real Boolean Integer String")})}(n(5))},function(e,t,n){!function(e){"use strict";var t={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};function n(e){return new RegExp("^\\b(?:"+e.join("|")+")\\b","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")","i")}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function o(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}e.defineMode("mscgen",(function(e,a){var s,l=t[a&&a.language||"mscgen"];return{startState:i,copyState:o,token:(s=l,function(e,t){if(e.match(r(s.brackets),!0,!0))return"bracket";if(!t.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return t.inComment=!0,"comment";if(e.match(r(s.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(t.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?t.inComment=!1:e.skipToEnd(),"comment";if(!t.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return t.inString=!0,"string";if(t.inString)return e.match(/[^\"]*\"/,!0,!0)?t.inString=!1:e.skipToEnd(),"string";if(s.keywords&&e.match(n(s.keywords),!0,!0))return"keyword";if(e.match(n(s.options),!0,!0))return"keyword";if(e.match(n(s.arcsWords),!0,!0))return"keyword";if(e.match(r(s.arcsOthers),!0,!0))return"keyword";if(s.operators&&e.match(r(s.operators),!0,!0))return"operator";if(s.constants&&e.match(r(s.constants),!0,!0))return"variable";if(!s.inAttributeList&&s.attributes&&e.match("[",!0,!0))return s.inAttributeList=!0,"bracket";if(s.inAttributeList){if(null!==s.attributes&&e.match(n(s.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return s.inAttributeList=!1,"bracket"}return e.next(),"base"}),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-mscgen","mscgen"),e.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),e.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("mumps",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),n=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),r=new RegExp("^[\\.,:]"),i=new RegExp("[()]"),o=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=e(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),s=e(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);return{startState:function(){return{label:!1,commandMode:0}},token:function(e,l){var u=function(e,l){e.sol()&&(l.label=!0,l.commandMode=0);var u=e.peek();return" "==u||"\t"==u?(l.label=!1,0==l.commandMode?l.commandMode=1:(l.commandMode<0||2==l.commandMode)&&(l.commandMode=0)):"."!=u&&l.commandMode>0&&(l.commandMode=":"==u?-1:2),"("!==u&&"\t"!==u||(l.label=!1),";"===u?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==u?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(n)||e.match(t)?"operator":e.match(r)?null:i.test(u)?(e.next(),"bracket"):l.commandMode>0&&e.match(s)?"variable-2":e.match(a)?"builtin":e.match(o)?"variable":"$"===u||"^"===u?(e.next(),"builtin"):"@"===u?(e.next(),"string-2"):/[\w%]/.test(u)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,l);return l.label?"tag":u}}})),e.defineMIME("text/x-mumps","mumps")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("nginx",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=t("http mail events server types location upstream charset_map limit_except if geo map"),o=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit;function s(e,t){return n=t,e}function l(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(r.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"variable-2";if(o.propertyIsEnumerable(n))return"string-2";var a,d=e.next();return"@"==d?(e.eatWhile(/[\w\\\-]/),s("meta",e.current())):"/"==d&&e.eat("*")?(t.tokenize=u,u(e,t)):"<"==d&&e.eat("!")?(t.tokenize=c,c(e,t)):"="!=d?"~"!=d&&"|"!=d||!e.eat("=")?'"'==d||"'"==d?(t.tokenize=(a=d,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=a||r);)r=!r&&"\\"==n;return r||(t.tokenize=l),s("string","string")}),t.tokenize(e,t)):"#"==d?(e.skipToEnd(),s("comment","comment")):"!"==d?(e.match(/^\s*\w*/),s("keyword","important")):/\d/.test(d)?(e.eatWhile(/[\w.%]/),s("number","unit")):/[,.+>*\/]/.test(d)?s(null,"select-op"):/[;{}:\[\]]/.test(d)?s(null,d):(e.eatWhile(/[\w\\\-]/),s("variable","variable")):s(null,"compare"):void s(null,"compare")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=l;break}r="*"==n}return s("comment","comment")}function c(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=l;break}r="-"==n?r+1:0}return s("comment","comment")}return{startState:function(e){return{tokenize:l,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;n=null;var r=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"hash"==n&&"rule"==i?r="atom":"variable"==r&&("rule"==i?r="number":i&&"@media{"!=i||(r="tag")),"rule"==i&&/^[\{\};]$/.test(n)&&t.stack.pop(),"{"==n?"@media"==i?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==n?t.stack.pop():"@media"==n?t.stack.push("@media"):"{"==i&&"comment"!=n&&t.stack.push("rule"),r},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\!\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")}(n(5),n(226))},function(e,t,n){!function(e){"use strict";e.defineMode("ntriples",(function(){var e=0,t=1,n=2,r=3,i=4,o=5,a=6,s=7,l=8,u=9,c=10,d=11,f=12;function p(p,h){var m,g=p.location;m=g==e&&"<"==h?t:g==e&&"_"==h?n:g==r&&"<"==h?i:g==o&&"<"==h?a:g==o&&"_"==h?s:g==o&&'"'==h?l:g==t&&">"==h||g==n&&" "==h?r:g==i&&">"==h?o:g==a&&">"==h||g==s&&" "==h||g==l&&'"'==h||g==u&&" "==h||g==c&&">"==h?d:g==l&&"@"==h?u:g==l&&"^"==h?c:" "!=h||g!=e&&g!=r&&g!=o&&g!=d?g==d&&"."==h?e:f:g,p.location=m}return{startState:function(){return{location:e,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){p(t,n);var r="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(r+=e,!0)})),t.uris.push(r),e.match("#",!1)||(e.next(),p(t,">")),"variable"}if("#"==n){var i="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(i+=e,!0)})),t.anchors.push(i),"variable-2"}if(">"==n)return p(t,">"),"variable";if("_"==n){p(t,n);var o="";return e.eatWhile((function(e){return" "!=e&&(o+=e,!0)})),t.bnodes.push(o),e.next(),p(t," "),"builtin"}if('"'==n)return p(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&p(t,'"'),"string";if("@"==n){p(t,"@");var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.langs.push(a),e.next(),p(t," "),"string-2"}if("^"==n){e.next(),p(t,"^");var s="";return e.eatWhile((function(e){return">"!=e&&(s+=e,!0)})),t.types.push(s),e.next(),p(t,">"),"variable"}" "==n&&p(t,n),"."==n&&p(t,n)}}})),e.defineMIME("application/n-triples","ntriples"),e.defineMIME("application/n-quads","ntriples"),e.defineMIME("text/n-triples","ntriples")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("octave",(function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),n=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),r=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),i=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),o=new RegExp("^((>>=)|(<<=))"),a=new RegExp("^[\\]\\)]"),s=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),l=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),u=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function c(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=f,f(e,t)):(e.next(),t.tokenize=f,"operator")}function d(e,t){return e.match(/^.*%}/)?(t.tokenize=f,"comment"):(e.skipToEnd(),"comment")}function f(p,h){if(p.eatSpace())return null;if(p.match("%{"))return h.tokenize=d,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=f,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(p.match(e(["nan","NaN","inf","Inf"])))return"number";var m=p.match(/^"(?:[^"]|"")*("|$)/)||p.match(/^'(?:[^']|'')*('|$)/);return m?m[1]?"string":"string error":p.match(u)?"keyword":p.match(l)?"builtin":p.match(s)?"variable":p.match(t)||p.match(r)?"operator":p.match(n)||p.match(i)||p.match(o)?null:p.match(a)?(h.tokenize=c,null):(p.next(),"error")}return{startState:function(){return{tokenize:f}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=c),n},lineComment:"%",fold:"indent"}})),e.defineMIME("text/x-octave","octave")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("oz",(function(e){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n,r=/[\^@!\|<>#~\.\*\-\+\\/,=]/,i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,o=/(:::)|(\.\.\.)|(=<:)|(>=:)/,a=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],l=t(["true","false","nil","unit"]),u=t(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),c=t(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),d=t(a),f=t(s);function p(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(o)||e.match(i))return"operator";if(e.match(l))return"atom";var n=e.match(c);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=g:"class"==n[0]?t.tokenize=h:"meth"==n[0]&&(t.tokenize=m),"keyword";if(e.match(d)||e.match(u))return"keyword";if(e.match(f))return t.currentIndent--,"keyword";var a,s=e.next();if('"'==s||"'"==s)return t.tokenize=(a=s,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==a&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=p),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=v,v(e,t)):r.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function h(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"variable-3")}function m(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=p,"def")}function g(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=p,"def"):(t.tokenize=p,null)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}return{startState:function(){return{tokenize:p,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(d)||r.match(/(\[])/)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit},fold:"indent",electricInput:(n=a.concat(s),new RegExp("[\\[\\]]|("+n.join("|")+")$")),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-oz","oz")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pascal",(function(){var e=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),t={null:!0},n=/[+\-*&%=<>!?|\/]/;function r(r,a){var s,l=r.next();if("#"==l&&a.startOfLine)return r.skipToEnd(),"meta";if('"'==l||"'"==l)return a.tokenize=(s=l,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==s&&!r){i=!0;break}r=!r&&"\\"==n}return!i&&r||(t.tokenize=null),"string"}),a.tokenize(r,a);if("("==l&&r.eat("*"))return a.tokenize=i,i(r,a);if("{"==l)return a.tokenize=o,o(r,a);if(/[\[\]\(\),;\:\.]/.test(l))return null;if(/\d/.test(l))return r.eatWhile(/[\w\.]/),"number";if("/"==l&&r.eat("/"))return r.skipToEnd(),"comment";if(n.test(l))return r.eatWhile(n),"operator";r.eatWhile(/[\w\$_]/);var u=r.current();return e.propertyIsEnumerable(u)?"keyword":t.propertyIsEnumerable(u)?"atom":"variable"}function i(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function o(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||r)(e,t);return n},electricChars:"{}"}})),e.defineMIME("text/x-pascal","pascal")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("pegjs",(function(t){var n=e.getMode(t,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,r){if(t&&(r.inString||r.inComment||'"'!=t.peek()&&"'"!=t.peek()||(r.stringType=t.peek(),t.next(),r.inString=!0)),r.inString||r.inComment||!t.match("/*")||(r.inComment=!0),r.inString){for(;r.inString&&!t.eol();)t.peek()===r.stringType?(t.next(),r.inString=!1):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return r.lhs?"property string":"string"}if(r.inComment){for(;r.inComment&&!t.eol();)t.match("*/")?r.inComment=!1:t.match(/^.[^\*]*/);return"comment"}if(r.inCharacterClass)for(;r.inCharacterClass&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||(r.inCharacterClass=!1);else{if("["===t.peek())return t.next(),r.inCharacterClass=!0,"bracket";if(t.match("//"))return t.skipToEnd(),"comment";if(r.braced||"{"===t.peek()){null===r.localState&&(r.localState=e.startState(n));var i=n.token(t,r.localState),o=t.current();if(!i)for(var a=0;a<o.length;a++)"{"===o[a]?r.braced++:"}"===o[a]&&r.braced--;return i}if(function(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}(t))return":"===t.peek()?"variable":"variable-2";if(-1!=["[","]","(",")"].indexOf(t.peek()))return t.next(),"bracket";t.eatSpace()||t.next()}return null}}}),"javascript")}(n(5),n(225))},function(e,t,n){!function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t<n?t:r)}function i(e,t){var n,r=e.pos+t;r<=0?e.pos=0:r>=(n=e.string.length-1)?e.pos=n:e.pos=r}e.defineMode("perl",(function(){var e={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},o="string-2",a=/[goseximacplud]/;function s(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=u,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function l(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=u),e.skipToEnd(),"string"},t.tokenize(e,t)}function u(u,c){if(u.eatSpace())return null;if(c.chain)return s(u,c,c.chain,c.style,c.tail);if(u.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(u.match(/^<<(?=[_a-zA-Z])/))return u.eatWhile(/\w/),l(u,c,u.current().substr(2));if(u.sol()&&u.match(/^\=item(?!\w)/))return l(u,c,"=cut");var d=u.next();if('"'==d||"'"==d){if(n(u,3)=="<<"+d){var f=u.pos;u.eatWhile(/\w/);var p=u.current().substr(1);if(p&&u.eat(d))return l(u,c,p);u.pos=f}return s(u,c,[d],"string")}if(!("q"!=d||(h=t(u,-2))&&/\w/.test(h)))if("x"==(h=t(u,0))){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if("q"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"string");if("["==h)return i(u,2),s(u,c,["]"],"string");if("{"==h)return i(u,2),s(u,c,["}"],"string");if("<"==h)return i(u,2),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"string")}else if("w"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],"bracket");if("["==h)return i(u,2),s(u,c,["]"],"bracket");if("{"==h)return i(u,2),s(u,c,["}"],"bracket");if("<"==h)return i(u,2),s(u,c,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],"bracket")}else if("r"==h){if("("==(h=t(u,1)))return i(u,2),s(u,c,[")"],o,a);if("["==h)return i(u,2),s(u,c,["]"],o,a);if("{"==h)return i(u,2),s(u,c,["}"],o,a);if("<"==h)return i(u,2),s(u,c,[">"],o,a);if(/[\^'"!~\/]/.test(h))return i(u,1),s(u,c,[u.eat(h)],o,a)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(u,1),s(u,c,[")"],"string");if("["==h)return i(u,1),s(u,c,["]"],"string");if("{"==h)return i(u,1),s(u,c,["}"],"string");if("<"==h)return i(u,1),s(u,c,[">"],"string");if(/[\^'"!~\/]/.test(h))return s(u,c,[u.eat(h)],"string")}if("m"==d&&(!(h=t(u,-2))||!/\w/.test(h))&&(h=u.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return s(u,c,[h],o,a);if("("==h)return s(u,c,[")"],o,a);if("["==h)return s(u,c,["]"],o,a);if("{"==h)return s(u,c,["}"],o,a);if("<"==h)return s(u,c,[">"],o,a)}if("s"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("y"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("t"==d&&!(h=/[\/>\]})\w]/.test(t(u,-2)))&&(h=u.eat("r"))&&(h=u.eat(/[(\[{<\^'"!~\/]/)))return s(u,c,"["==h?["]","]"]:"{"==h?["}","}"]:"<"==h?[">",">"]:"("==h?[")",")"]:[h,h],o,a);if("`"==d)return s(u,c,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(u))?s(u,c,[d],o,a):"operator";if("$"==d){if(f=u.pos,u.eatWhile(/\d/)||u.eat("{")&&u.eatWhile(/\d/)&&u.eat("}"))return"variable-2";u.pos=f}if(/[$@%]/.test(d)){if(f=u.pos,u.eat("^")&&u.eat(/[A-Z]/)||!/[@$%&]/.test(t(u,-2))&&u.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=u.current();if(e[h])return"variable-2"}u.pos=f}if(/[$@%&]/.test(d)&&(u.eatWhile(/[\w$]/)||u.eat("{")&&u.eatWhile(/[\w$]/)&&u.eat("}")))return h=u.current(),e[h]?"variable-2":"variable";if("#"==d&&"$"!=t(u,-2))return u.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){if(f=u.pos,u.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),e[u.current()])return"operator";u.pos=f}if("_"==d&&1==u.pos){if("_END__"==r(u,6))return s(u,c,["\0"],"comment");if("_DATA__"==r(u,7))return s(u,c,["\0"],"variable-2");if("_C__"==r(u,7))return s(u,c,["\0"],"string")}if(/\w/.test(d)){if(f=u.pos,"{"==t(u,-2)&&("}"==t(u,0)||u.eatWhile(/\w/)&&"}"==t(u,0)))return"string";u.pos=f}if(/[A-Z]/.test(d)){var m=t(u,-2);if(f=u.pos,u.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(u,0)))return(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta";u.pos=f}return/[a-zA-Z_]/.test(d)?(m=t(u,-2),u.eatWhile(/\w/),(h=e[u.current()])?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"):null}return{startState:function(){return{tokenize:u,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||u)(e,t)},lineComment:"#"}})),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,i){return 0==e.length?r(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=r(t,i),"string"}}function r(e,t){return function(r,i){return function(e,t,r,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/^->\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}(r,i,e,t)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(o),builtin:t(a),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,s);return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:function(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=r.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),u=l.search(/<\?/);return-1!=u&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-u)),a},indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}(n(5),n(154),n(469))},function(e,t,n){!function(e){"use strict";e.defineMode("pig",(function(e,t){var n=t.keywords,r=t.builtins,i=t.types,o=t.multiLineStrings,a=/[*+\-%<>=&?:\/!|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=u;break}r="*"==n}return"comment"}function u(e,t){var c,d=e.next();return'"'==d||"'"==d?s(e,t,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return(i||!r&&!o)&&(t.tokenize=u),"error"})):/[\[\]{}\(\),;\.]/.test(d)?null:/\d/.test(d)?(e.eatWhile(/[\w\.]/),"number"):"/"==d?e.eat("*")?s(e,t,l):(e.eatWhile(a),"operator"):"-"==d?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(a),"operator"):a.test(d)?(e.eatWhile(a),"operator"):(e.eatWhile(/[\w\$_]/),n&&n.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":r&&r.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:u,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),function(){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",r="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",i="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";e.defineMIME("text/x-pig",{name:"pig",builtins:t(n),keywords:t(r),types:t(i)}),e.registerHelper("hintWords","pig",(n+i+r).split(" "))}()}(n(5))},function(e,t,n){!function(e){"use strict";var t;(t=n(5)).defineMode("powershell",(function(){function e(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;i<e.length;i++)e[i]instanceof RegExp?e[i]=e[i].source:e[i]=e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(n+"("+e.join("|")+")"+r,"i")}var t=/[\w\-:]/,n=e([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:"(?=[^A-Za-z\\d\\-_]|$)"}),r=e(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),i=e([r,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),o=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),a=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),s={keyword:n,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:i,builtin:e([/[A-Z]:|%|\?/i,o,a],{suffix:"(?=[^A-Za-z\\d\\-_]|$)"}),punctuation:/[\[\]{},;`\\\.]|@[({]/,identifier:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function l(e,n){var r=n.returnStack[n.returnStack.length-1];if(r&&r.shouldReturnFrom(n))return n.tokenize=r.tokenize,n.returnStack.pop(),n.tokenize(e,n);if(e.eatSpace())return null;if(e.eat("("))return n.bracketNesting+=1,"punctuation";if(e.eat(")"))return n.bracketNesting-=1,"punctuation";for(var i in s)if(e.match(s[i]))return i;var o=e.next();if("'"===o)return function(e,t){for(var n;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=l,"string";return"error"}(e,n);if("$"===o)return m(e,n);if('"'===o)return u(e,n);if("<"===o&&e.eat("#"))return n.tokenize=h,h(e,n);if("#"===o)return e.skipToEnd(),"comment";if("@"===o){var a=e.eat(/["']/);if(a&&e.eol())return n.tokenize=v,n.startQuote=a[0],v(e,n);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(t))return m(e,n)}return"error"}function u(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=c,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=l,"string"}else e.next()}return"error"}function c(e,t){return p(e,t,u)}function d(e,t){return t.tokenize=v,t.startQuote='"',v(e,t)}function f(e,t){return p(e,t,d)}function p(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=l,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=m,t.tokenize(e,t)}function h(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=l;break}r="#"===n}return"comment"}function m(e,n){var r=e.peek();return e.eat("{")?(n.tokenize=g,g(e,n)):null!=r&&r.match(t)?(e.eatWhile(t),n.tokenize=l,"variable-2"):(n.tokenize=l,"error")}function g(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=l;break}return"variable-2"}function v(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=l;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=f,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:l}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"}})),t.defineMIME("application/x-powershell","powershell")}()},function(e,t,n){!function(e){"use strict";e.defineMode("properties",(function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}})),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")}(n(5))},function(e,t,n){!function(e){"use strict";var t=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],n=new RegExp("^(("+t.join(")|(")+"))\\b","i");e.registerHelper("hintWords","protobuf",t);var r=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function i(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(r)?"variable":(e.next(),null)}e.defineMode("protobuf",(function(){return{token:i,fold:"brace"}})),e.defineMIME("text/x-protobuf","protobuf")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("puppet",(function(){var e={},t=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function n(t,n){for(var r=n.split(" "),i=0;i<r.length;i++)e[r[i]]=t}function r(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}return n("keyword","class define site node include import inherits"),n("keyword","case if else in and elsif default or"),n("atom","false true running present absent file directory undef"),n("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"),{startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(n,i){return n.eatSpace()?null:function(n,i){var o=n.match(/[\w]+/,!1),a=n.match(/(\s+)?\w+\s+=>.*/,!1),s=n.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=n.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=n.next();if("$"===u)return n.match(t)?i.continueString?"variable-2":"variable":"error";if(i.continueString)return n.backUp(1),r(n,i);if(i.inDefinition){if(n.match(/(\s+)?[\w:_]+(\s+)?/))return"def";n.match(/\s+{/),i.inDefinition=!1}return i.inInclude?(n.match(/(\s+)?\S+(\s+)?/),i.inInclude=!1,"def"):n.match(/(\s+)?\w+\(/)?(n.backUp(1),"def"):a?(n.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(n.backUp(1),n.match(/[\w]+/),n.match(/\s+\S+\s+{/,!1)&&(i.inDefinition=!0),"include"==o&&(i.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(n.backUp(1),n.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(n.match(/(\s+)?[\w:_]+/),"def"):l?(n.match(/(\s+)?[@]{1,2}/),"special"):"#"==u?(n.skipToEnd(),"comment"):"'"==u||'"'==u?(i.pending=u,r(n,i)):"{"==u||"}"==u?"bracket":"/"==u?(n.match(/^[^\/]*\//),"variable-3"):u.match(/[0-9]/)?(n.eatWhile(/[0-9]+/),"number"):"="==u?(">"==n.peek()&&n.next(),"operator"):(n.eatWhile(/[\w-]/),null)}(n,i)}}})),e.defineMIME("text/x-puppet","puppet")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("q",(function(e){var t,n=e.indentUnit,r=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),i=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function o(e,n){var s=e.sol(),c=e.next();if(t=null,s){if("/"==c)return(n.tokenize=a)(e,n);if("\\"==c)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=l)(e):n.tokenize=o,"comment"):(n.tokenize=o,"builtin")}if(/\s/.test(c))return"/"==e.peek()?(e.skipToEnd(),"comment"):"whitespace";if('"'==c)return(n.tokenize=u)(e,n);if("`"==c)return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if("."==c&&/\d/.test(e.peek())||/\d/.test(c)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(c=e.peek())&&!i.test(c)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(c)?(e.eatWhile(/[A-Za-z._\d]/),r.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(c)||/[{}\(\[\]\)]/.test(c)?null:"error"}function a(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=s)(e,t):t.tokenize=o,"comment"}function s(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=o),"comment"}function l(e){return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}function c(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function d(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)c(n,")",e.column());else if("["==t)c(n,"]",e.column());else if("{"==t)c(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)d(n);n.context&&t==n.context.type&&d(n)}else"."==t&&n.context&&"pattern"==n.context.type?d(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?c(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0}}})),e.defineMIME("text/x-q","q")}(n(5))},function(e,t,n){!function(e){"use strict";e.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",(function(t){function n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var r=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],i=["list","quote","bquote","eval","return","call","parse","deparse"],o=["if","else","repeat","while","function","for","in","next","break"];e.registerHelper("hintWords","r",r.concat(i,o));var a,s=n(r),l=n(i),u=n(o),c=n(["if","else","repeat","while","function","for"]),d=/[+\-*\/^<>=!&|~$:]/;function f(e,t){a=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string-2"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=f;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"variable-3";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return s.propertyIsEnumerable(i)?"atom":u.propertyIsEnumerable(i)?(c.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(a="block"),"keyword"):l.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)?"operator arrow":"="==r&&t.ctx.argList?"arg-is":d.test(r)?"$"==r?"operator dollar":(e.eatWhile(d),"operator"):/[\(\){}\[\];]/.test(r)?(a=r,";"==r?"semi":null):null}function p(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function h(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function m(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:f,ctx:{type:"top",indent:-t.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&m(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&h(t,1),";"!=a&&"{"!=a&&"}"!=a||"block"!=t.ctx.type||m(t),"{"==a?p(t,"}",e):"("==a?(p(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==a?p(t,"]",e):"block"==a?p(t,"block",e):a==t.ctx.type?m(t):"block"==t.ctx.type&&"comment"!=n&&h(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,n){if(e.tokenize!=f)return 0;var r=n&&n.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:t.indentUnit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:t.indentUnit)},lineComment:"#"}})),e.defineMIME("text/x-rsrc","r")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("rpm-changes",(function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}})),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",(function(){var e=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,s){if("#"==a.peek())return a.skipToEnd(),"comment";if(a.sol()){if(a.match(t))return"header";if(a.match(n))return"atom"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(i))return"keyword";if(a.match(r))return s.controlFlow=!0,"keyword";if(s.controlFlow){if(a.match(o))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(s.controlFlow=!1)}if(a.match(e))return a.eol()&&(s.controlFlow=!1),"number";if(a.match(/^%[\w]+/))return a.match("(")&&(s.macroParameters=!0),"keyword";if(s.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(")"))return s.macroParameters=!1,"keyword"}return a.match(/^%\{\??[\w \-\:\!]+\}/)?(a.eol()&&(s.controlFlow=!1),"def"):(a.next(),null)}}})),e.defineMIME("text/x-rpm-spec","rpm-spec")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("rst",(function(t,n){var r=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,i=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,o=/^``[^`\s](?:[^`]*[^`\s])``/,a=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,u=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),c={token:function(e){if(e.match(r)&&e.match(/\W+|$/,!1))return"strong";if(e.match(i)&&e.match(/\W+|$/,!1))return"em";if(e.match(o)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(a))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(u))return"link";for(;!(null==e.next()||e.match(r,!1)||e.match(i,!1)||e.match(o,!1)||e.match(a,!1)||e.match(s,!1)||e.match(l,!1)||e.match(u,!1)););return null}},d=e.getMode(t,n.backdrop||"rst-base");return e.overlayMode(d,c,!0)}),"python","stex"),e.defineMode("rst-base",(function(t){function n(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}var r=e.getMode(t,"python"),i=e.getMode(t,"stex"),o="(?:\\s*|\\W|$)",a=new RegExp(n("^{0}",o)),s="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",l=new RegExp(n("^{0}",s)),u=n("(?:{0}|`{1}`)",s,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),c="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",d="(?:[^\\`]+)",f=new RegExp(n("^{0}",d)),p=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),h=new RegExp(n("^\\.\\.{0}","\\s+")),m=new RegExp(n("^_{0}:{1}|^__:{1}",u,o)),g=new RegExp(n("^{0}::{1}",u,o)),v=new RegExp(n("^\\|{0}\\|{1}{2}::{3}",c,"\\s+",u,o)),y=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}",u,o)),b=new RegExp(n("^\\[{0}\\]{1}",u,o)),_=new RegExp(n("^\\|{0}\\|",c)),w=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_",u)),x=new RegExp(n("^\\[{0}\\]_",u)),k=new RegExp(n("^{0}__?",u)),E=new RegExp(n("^`{0}`_",d)),S=new RegExp(n("^:{0}:`{1}`{2}",s,d,o)),O=new RegExp(n("^`{1}`:{0}:{2}",s,d,o)),C=new RegExp(n("^:{0}:{1}",s,o)),T=new RegExp(n("^{0}",u)),A=new RegExp(n("^::{0}",o)),P=new RegExp(n("^\\|{0}\\|",c)),R=new RegExp(n("^{0}","\\s+")),j=new RegExp(n("^{0}",u)),I=new RegExp(n("^::{0}",o)),M=new RegExp("^_"),L=new RegExp(n("^{0}|_",u)),D=new RegExp(n("^:{0}",o)),N=new RegExp("^::\\s*$"),F=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function B(t,n){var o=null;if(t.sol()&&t.match(F,!1))V(n,H,{mode:r,local:e.startState(r)});else if(t.sol()&&t.match(h))V(n,z),o="meta";else if(t.sol()&&t.match(p))V(n,B),o="header";else if(K(n)==S||t.match(S,!1))switch(G(n)){case 0:V(n,B,$(S,1)),t.match(/^:/),o="meta";break;case 1:V(n,B,$(S,2)),t.match(l),o="keyword",t.current().match(/^(?:math|latex)/)&&(n.tmp_stex=!0);break;case 2:V(n,B,$(S,3)),t.match(/^:`/),o="meta";break;case 3:if(n.tmp_stex&&(n.tmp_stex=void 0,n.tmp={mode:i,local:e.startState(i)}),n.tmp){if("`"==t.peek()){V(n,B,$(S,4)),n.tmp=void 0;break}o=n.tmp.mode.token(t,n.tmp.local);break}V(n,B,$(S,4)),t.match(f),o="string";break;case 4:V(n,B,$(S,5)),t.match(/^`/),o="meta";break;case 5:V(n,B,$(S,6)),t.match(a);break;default:V(n,B)}else if(K(n)==O||t.match(O,!1))switch(G(n)){case 0:V(n,B,$(O,1)),t.match(/^`/),o="meta";break;case 1:V(n,B,$(O,2)),t.match(f),o="string";break;case 2:V(n,B,$(O,3)),t.match(/^`:/),o="meta";break;case 3:V(n,B,$(O,4)),t.match(l),o="keyword";break;case 4:V(n,B,$(O,5)),t.match(/^:/),o="meta";break;case 5:V(n,B,$(O,6)),t.match(a);break;default:V(n,B)}else if(K(n)==C||t.match(C,!1))switch(G(n)){case 0:V(n,B,$(C,1)),t.match(/^:/),o="meta";break;case 1:V(n,B,$(C,2)),t.match(l),o="keyword";break;case 2:V(n,B,$(C,3)),t.match(/^:/),o="meta";break;case 3:V(n,B,$(C,4)),t.match(a);break;default:V(n,B)}else if(K(n)==_||t.match(_,!1))switch(G(n)){case 0:V(n,B,$(_,1)),t.match(P),o="variable-2";break;case 1:V(n,B,$(_,2)),t.match(/^_?_?/)&&(o="link");break;default:V(n,B)}else if(t.match(w))V(n,B),o="quote";else if(t.match(x))V(n,B),o="quote";else if(t.match(k))V(n,B),t.peek()&&!t.peek().match(/^\W$/)||(o="link");else if(K(n)==E||t.match(E,!1))switch(G(n)){case 0:!t.peek()||t.peek().match(/^\W$/)?V(n,B,$(E,1)):t.match(E);break;case 1:V(n,B,$(E,2)),t.match(/^`/),o="link";break;case 2:V(n,B,$(E,3)),t.match(f);break;case 3:V(n,B,$(E,4)),t.match(/^`_/),o="link";break;default:V(n,B)}else t.match(N)?V(n,q):t.next()&&V(n,B);return o}function z(t,n){var o=null;if(K(n)==v||t.match(v,!1))switch(G(n)){case 0:V(n,z,$(v,1)),t.match(P),o="variable-2";break;case 1:V(n,z,$(v,2)),t.match(R);break;case 2:V(n,z,$(v,3)),t.match(j),o="keyword";break;case 3:V(n,z,$(v,4)),t.match(I),o="meta";break;default:V(n,B)}else if(K(n)==g||t.match(g,!1))switch(G(n)){case 0:V(n,z,$(g,1)),t.match(T),o="keyword",t.current().match(/^(?:math|latex)/)?n.tmp_stex=!0:t.current().match(/^python/)&&(n.tmp_py=!0);break;case 1:V(n,z,$(g,2)),t.match(A),o="meta",(t.match(/^latex\s*$/)||n.tmp_stex)&&(n.tmp_stex=void 0,V(n,H,{mode:i,local:e.startState(i)}));break;case 2:V(n,z,$(g,3)),(t.match(/^python\s*$/)||n.tmp_py)&&(n.tmp_py=void 0,V(n,H,{mode:r,local:e.startState(r)}));break;default:V(n,B)}else if(K(n)==m||t.match(m,!1))switch(G(n)){case 0:V(n,z,$(m,1)),t.match(M),t.match(L),o="link";break;case 1:V(n,z,$(m,2)),t.match(D),o="meta";break;default:V(n,B)}else t.match(y)||t.match(b)?(V(n,B),o="quote"):(t.eatSpace(),t.eol()?V(n,B):(t.skipToEnd(),V(n,U),o="comment"));return o}function U(e,t){return W(e,t,"comment")}function q(e,t){return W(e,t,"meta")}function W(e,t,n){return e.eol()||e.eatSpace()?(e.skipToEnd(),n):(V(t,B),null)}function H(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||V(t,B),null):t.ctx.mode.token(e,t.ctx.local):(V(t,B),null)}function $(e,t,n,r){return{phase:e,stage:t,mode:n,local:r}}function V(e,t,n){e.tok=t,e.ctx=n||{}}function G(e){return e.ctx.stage||0}function K(e){return e.ctx.phase}return{startState:function(){return{tok:B,ctx:$(void 0,0)}},copyState:function(t){var n=t.ctx,r=t.tmp;return n.local&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),r&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),{tok:t.tok,ctx:n,tmp:r}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}}),"python","stex"),e.defineMIME("text/x-rst","rst")}(n(5),n(750),n(751),n(273))},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")}(n(5),n(226))},function(e,t,n){!function(e){"use strict";e.defineMode("sas",(function(){var e={},t={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},n=/(<=|>=|!=|<>)/,r=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(t,n,r){if(r)for(var i=n.split(" "),o=0;o<i.length;o++)e[i[o]]={style:t,state:r}}return i("def","stack pgm view source debug nesting nolist",["inDataStep"]),i("def","if while until for do do; end end; then else cancel",["inDataStep"]),i("def","label format _n_ _error_",["inDataStep"]),i("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]),i("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]),i("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]),i("def","zipfips zipname zipnamel zipstate",["inDataStep"]),i("def","put putc putn",["inDataStep"]),i("builtin","data run",["inDataStep"]),i("def","data",["inProc"]),i("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]),i("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]),i("def","footnote title libname ods",["ALL"]),i("def","%let %put %global %sysfunc %eval ",["ALL"]),i("variable","&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext",["ALL"]),i("def","source2 nosource2 page pageno pagesize",["ALL"]),i("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max",["inDataStep","inProc"]),i("operator","and not ",["inDataStep","inProc"]),{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(i,o){return i.eatSpace()?null:function(i,o){var a=i.next();if("/"===a&&i.eat("*"))return o.continueComment=!0,"comment";if(!0===o.continueComment)return"*"===a&&"/"===i.peek()?(i.next(),o.continueComment=!1):i.skipTo("*")?(i.skipTo("*"),i.next(),i.eat("/")&&(o.continueComment=!1)):i.skipToEnd(),"comment";if("*"==a&&i.column()==i.indentation())return i.skipToEnd(),"comment";var s,l=a+i.peek();if(!('"'!==a&&"'"!==a||o.continueString))return o.continueString=a,"string";if(o.continueString)return o.continueString==a?o.continueString=null:i.skipTo(o.continueString)?(i.next(),o.continueString=null):i.skipToEnd(),"string";if(null!==o.continueString&&i.eol())return i.skipTo(o.continueString)||i.skipToEnd(),"string";if(/[\d\.]/.test(a))return"."===a?i.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"===a?i.match(/^[xX][0-9a-fA-F]+/)||i.match(/^0[0-7]+/):i.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(n.test(a+i.peek()))return i.next(),"operator";if(t.hasOwnProperty(l)){if(i.next()," "===i.peek())return t[l.toLowerCase()]}else if(r.test(a))return"operator";if(null!=i.match(/[%&;\w]+/,!1)){if(s=a+i.match(/[%&;\w]+/,!0),/&/.test(s))return"variable"}else s=a;if(o.nextword)return i.match(/[\w]+/),"."===i.peek()&&i.skipTo(" "),o.nextword=!1,"variable-2";if(s=s.toLowerCase(),o.inDataStep){if("run;"===s||i.match(/run\s;/))return o.inDataStep=!1,"builtin";if(s&&"."===i.next())return/\w/.test(i.peek())?"variable-2":"variable";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inDataStep")||-1!==e[s].state.indexOf("ALL"))){i.start<i.pos&&i.backUp(i.pos-i.start);for(var u=0;u<s.length;++u)i.next();return e[s].style}}if(o.inProc){if("run;"===s||"quit;"===s)return o.inProc=!1,"builtin";if(s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inProc")||-1!==e[s].state.indexOf("ALL")))return i.match(/[\w]+/),e[s].style}return o.inMacro?"%mend"===s?(";"===i.peek()&&i.next(),o.inMacro=!1,"builtin"):s&&e.hasOwnProperty(s)&&(-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL"))?(i.match(/[\w]+/),e[s].style):"atom":s&&e.hasOwnProperty(s)?(i.backUp(1),i.match(/[\w]+/),"data"===s&&!1===/=/.test(i.peek())?(o.inDataStep=!0,o.nextword=!0,"builtin"):"proc"===s?(o.inProc=!0,o.nextword=!0,"builtin"):"%macro"===s?(o.inMacro=!0,o.nextword=!0,"builtin"):/title[1-9]/.test(s)?"def":"footnote"===s?(i.eat(/[1-9]/),"def"):!0===o.inDataStep&&-1!==e[s].state.indexOf("inDataStep")||!0===o.inProc&&-1!==e[s].state.indexOf("inProc")||!0===o.inMacro&&-1!==e[s].state.indexOf("inMacro")||-1!==e[s].state.indexOf("ALL")?e[s].style:null):null}(i,o)},blockCommentStart:"/*",blockCommentEnd:"*/"}})),e.defineMIME("text/x-sas","sas")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("scheme",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),n=e("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function r(e,t,n){this.indent=e,this.type=t,this.prev=n}function i(e,t,n){e.indentStack=new r(t,n,e.indentStack)}var o=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),a=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),s=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),l=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function u(e){return e.match(o)}function c(e){return e.match(a)}function d(e,t){return!0===t&&e.backUp(1),e.match(l)}function f(e){return e.match(s)}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,r){if(null==r.indentStack&&e.sol()&&(r.indentation=e.indentation()),e.eatSpace())return null;var o=null;switch(r.mode){case"string":p(e,{token:'"',state:r}),o="string";break;case"symbol":p(e,{token:"|",state:r}),o="symbol";break;case"comment":for(var a,s=!1;null!=(a=e.next());){if("#"==a&&s){r.mode=!1;break}s="|"==a}o="comment";break;case"s-expr-comment":if(r.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),o="comment";break}r.sExprComment=0;default:var l=e.next();if('"'==l)r.mode="string",o="string";else if("'"==l)"("==e.peek()||"["==e.peek()?("number"!=typeof r.sExprQuote&&(r.sExprQuote=0),o="atom"):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),o="atom");else if("|"==l)r.mode="symbol",o="symbol";else if("#"==l)if(e.eat("|"))r.mode="comment",o="comment";else if(e.eat(/[tf]/i))o="atom";else if(e.eat(";"))r.mode="s-expr-comment",o="comment";else{var h=null,m=!1,g=!0;e.eat(/[ei]/i)?m=!0:e.backUp(1),e.match(/^#b/i)?h=u:e.match(/^#o/i)?h=c:e.match(/^#x/i)?h=f:e.match(/^#d/i)?h=d:e.match(/^[-+0-9.]/,!1)?(g=!1,h=d):m||e.eat("#"),null!=h&&(g&&!m&&e.match(/^#[ei]/i),h(e)&&(o="number"))}else if(/^[-+0-9.]/.test(l)&&d(e,!0))o="number";else if(";"==l)e.skipToEnd(),o="comment";else if("("==l||"["==l){for(var v,y="",b=e.column();null!=(v=e.eat(/[^\s\(\[\;\)\]]/));)y+=v;y.length>0&&n.propertyIsEnumerable(y)?i(r,b+2,l):(e.eatSpace(),e.eol()||";"==e.peek()?i(r,b+1,l):i(r,b+e.current().length,l)),e.backUp(e.current().length-1),"number"==typeof r.sExprComment&&r.sExprComment++,"number"==typeof r.sExprQuote&&r.sExprQuote++,o="bracket"}else")"==l||"]"==l?(o="bracket",null!=r.indentStack&&r.indentStack.type==(")"==l?"(":"[")&&(function(e){e.indentStack=e.indentStack.prev}(r),"number"==typeof r.sExprComment&&0==--r.sExprComment&&(o="comment",r.sExprComment=!1),"number"==typeof r.sExprQuote&&0==--r.sExprQuote&&(o="atom",r.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),o=t&&t.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof r.sExprComment?"comment":"number"==typeof r.sExprQuote?"atom":o},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-scheme","scheme")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r,i=e.sol(),o=e.next();if("\\"===o)return e.next(),null;if("'"===o||'"'===o||"`"===o)return n.tokens.unshift(s(o,"`"===o?"quote":"string")),c(e,n);if("#"===o)return i&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===o)return n.tokens.unshift(u),c(e,n);if("+"===o||"="===o)return"operator";if("-"===o)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==o){if(e.match("<<"))return"operator";var a=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(a)return n.tokens.unshift((r=a[1],function(e,t){return e.sol()&&e.string==r&&t.tokens.shift(),e.skipToEnd(),"string-2"})),"string-2"}if(/\d/.test(o)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var l=e.current();return"="===e.peek()&&/\w+/.test(l)?"def":t.hasOwnProperty(l)?t[l]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(u);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),c(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),c(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var u=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),c(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function c(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return c(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("sieve",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n=t("if elsif else stop require"),r=t("true false not"),i=e.indentUnit;function o(e,t){var i,l=e.next();if("/"==l&&e.eat("*"))return t.tokenize=s,s(e,t);if("#"===l)return e.skipToEnd(),"comment";if('"'==l)return t.tokenize=(i=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=i||r);)r=!r&&"\\"==n;return r||(t.tokenize=o),"string"}),t.tokenize(e,t);if("("==l)return t._indent.push("("),t._indent.push("{"),null;if("{"===l)return t._indent.push("{"),null;if(")"==l&&(t._indent.pop(),t._indent.pop()),"}"===l)return t._indent.pop(),null;if(","==l)return null;if(";"==l)return null;if(/[{}\(\),;]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==l)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var u=e.current();return"text"==u&&e.eat(":")?(t.tokenize=a,"string"):n.propertyIsEnumerable(u)?"keyword":r.propertyIsEnumerable(u)?"atom":null}function a(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=o),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function s(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=o;break}r="*"==n}return"comment"}return{startState:function(e){return{tokenize:o,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||o)(e,t)},indent:function(e,t){var n=e._indent.length;return t&&"}"==t[0]&&n--,n<0&&(n=0),n*i},electricChars:"}"}})),e.defineMIME("application/sieve","sieve")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("slim",(function(t){var n=e.getMode(t,{name:"htmlmixed"}),r=e.getMode(t,"ruby"),i={html:n,ruby:r},o={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},a=function(e){var t=[];for(var n in e)t.push(n);return new RegExp("^("+t.join("|")+"):")}(o),s={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},l={"{":"}","[":"]","(":")"},u="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>",c=u+"\\-0-9·̀-ͯ‿-⁀",d=new RegExp("^[:"+u+"](?::["+c+"]|["+c+"]*)"),f=new RegExp("^[:"+u+"][:\\."+c+"]*(?=\\s*=)"),p=new RegExp("^[:"+u+"][:\\."+c+"]*"),h=/^\.-?[_a-zA-Z]+[\w\-]*/,m=/^#[_a-zA-Z]+[\w\-]*/;function g(e,t){e.stack={parent:e.stack,style:"continuation",indented:t,tokenize:e.line},e.line=e.tokenize}function v(e){e.line==e.tokenize&&(e.line=e.stack.tokenize,e.stack=e.stack.parent)}function y(e,t){return function(n,r){return n.peek()==e&&1==r.rubyState.tokenize.length?(n.next(),r.tokenize=t,"closeAttributeTag"):_(n,r)}}function b(t){var n,i=function(e,r){if(1==r.rubyState.tokenize.length&&!r.rubyState.context.prev){if(e.backUp(1),e.eatSpace())return r.rubyState=n,r.tokenize=t,t(e,r);e.next()}return _(e,r)};return function(t,o){return n=o.rubyState,o.rubyState=e.startState(r),o.tokenize=i,_(t,o)}}function _(e,t){return r.token(e,t.rubyState)}function w(e,t){return e.match(/^#\{/)?(t.tokenize=y("}",t.tokenize),null):function(e,t,n,r,i){var o=e.current(),a=o.search(n);return a>-1&&(t.tokenize=function(e,t,n){var r=function(r,i){return i.tokenize=t,r.pos<e?(r.pos=e,n):i.tokenize(r,i)};return function(e,n){return n.tokenize=r,t(e,n)}}(e.pos,t.tokenize,i),e.backUp(o.length-a-r)),i}(e,t,/[^\\]#\{/,1,n.token(e,t.htmlState))}function x(e){return function(t,n){var r=function(e,t){return e.match(/^\\$/)?"lineContinuation":w(e,t)}(t,n);return t.eol()&&(n.tokenize=e),r}}function k(e,t,n){return t.stack={parent:t.stack,style:"html",indented:e.column()+n,tokenize:t.line},t.line=t.tokenize=w,null}function E(e,t){return e.skipToEnd(),t.stack.style}function S(e,t){return e.eat(t.stack.endQuote)?(t.line=t.stack.line,t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,null):e.match(p)?(t.tokenize=O,"slimAttribute"):(e.next(),null)}function O(e,t){return e.match(/^==?/)?(t.tokenize=C,null):S(e,t)}function C(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=U(n,"string",!0,!1,S),e.next(),t.tokenize(e,t)):"["==n?b(S)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=S,"keyword"):b(S)(e,t)}function T(t,n){if(t.match(/^#\{/))return n.tokenize=y("}",n.tokenize),null;var r=new e.StringStream(t.string.slice(n.stack.indented),t.tabSize);r.pos=t.pos-n.stack.indented,r.start=t.start-n.stack.indented,r.lastColumnPos=t.lastColumnPos-n.stack.indented,r.lastColumnValue=t.lastColumnValue-n.stack.indented;var i=n.subMode.token(r,n.subState);return t.pos=r.pos+n.stack.indented,i}function A(e,t){return t.stack.indented=e.column(),t.line=t.tokenize=T,t.tokenize(e,t)}function P(n){return i.hasOwnProperty(n)?i[n]:i[n]=function(n){var r=o[n],i=e.mimeModes[r];if(i)return e.getMode(t,i);var a=e.modes[r];return a?a(t,{name:r}):e.getMode(t,"null")}(n)}function R(e,t){return e.skipToEnd(),"slimDoctype"}function j(t,n){var r,i;if("<"==t.peek())return(n.tokenize=x(n.tokenize))(t,n);if(t.match(/^[|']/))return k(t,n,1);if(t.match(/^\/(!|\[\w+])?/))return function(e,t){return t.stack={parent:t.stack,style:"comment",indented:t.indented+1,tokenize:t.line},t.line=E,E(e,t)}(t,n);if(t.match(/^(-|==?[<>]?)/))return n.tokenize=function(e,t){return function(n,r){if(v(r),n.match(/^\\$/))return g(r,e),"lineContinuation";var i=t(n,r);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),i}}(t.column(),(r=t.column(),i=_,function(e,t){v(t);var n=i(e,t);return e.eol()&&e.current().match(/,$/)&&g(t,r),n})),"slimSwitch";if(t.match(/^doctype\b/))return n.tokenize=R,"keyword";var o=t.match(a);return o?function(t,n){var r=P(t),i=e.startState(r);return n.subMode=r,n.subState=i,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=A,"slimSubmode"}(o[1],n):M(t,n)}function I(e,t){return t.startOfLine?j(e,t):M(e,t)}function M(e,t){return e.eat("*")?(t.tokenize=b(L),null):e.match(d)?(t.tokenize=L,"slimTag"):D(e,t)}function L(e,t){return e.match(/^(<>?|><?)/)?(t.tokenize=D,null):D(e,t)}function D(e,t){return e.match(m)?(t.tokenize=D,"slimId"):e.match(h)?(t.tokenize=D,"slimClass"):N(e,t)}function N(e,t){return e.match(/^([\[\{\(])/)?function(e,t,n){return e.stack={parent:e.stack,style:"wrapper",indented:e.indented+1,tokenize:n,line:e.line,endQuote:t},e.line=e.tokenize=S,null}(t,l[RegExp.$1],N):e.match(f)?(t.tokenize=F,"slimAttribute"):"*"==e.peek()?(e.next(),t.tokenize=b(q),null):q(e,t)}function F(e,t){return e.match(/^==?/)?(t.tokenize=B,null):N(e,t)}function B(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=U(n,"string",!0,!1,N),e.next(),t.tokenize(e,t)):"["==n?b(N)(e,t):":"==n?b(z)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=N,"keyword"):b(N)(e,t)}function z(e,t){return e.backUp(1),e.match(/^[^\s],(?=:)/)?(t.tokenize=b(z),null):(e.next(),N(e,t))}function U(e,t,n,r,i){return function(o,a){v(a);var s=0==o.current().length;if(o.match(/^\\$/,s))return s?(g(a,a.indented),"lineContinuation"):t;if(o.match(/^#\{/,s))return s?(a.tokenize=y("}",a.tokenize),null):t;for(var l,u=!1;null!=(l=o.next());){if(l==e&&(r||!u)){a.tokenize=i;break}if(n&&"#"==l&&!u&&o.eat("{")){o.backUp(2);break}u=!u&&"\\"==l}return o.eol()&&u&&o.backUp(1),t}}function q(e,t){return e.match(/^==?/)?(t.tokenize=_,"slimSwitch"):e.match(/^\/$/)?(t.tokenize=I,null):e.match(/^:/)?(t.tokenize=M,"slimSwitch"):(k(e,t,0),t.tokenize(e,t))}var W={startState:function(){return{htmlState:e.startState(n),rubyState:e.startState(r),stack:null,last:null,tokenize:I,line:I,indented:0}},copyState:function(t){return{htmlState:e.copyState(n,t.htmlState),rubyState:e.copyState(r,t.rubyState),subMode:t.subMode,subState:t.subMode&&e.copyState(t.subMode,t.subState),stack:t.stack,last:t.last,tokenize:t.tokenize,line:t.line}},token:function(e,t){if(e.sol())for(t.indented=e.indentation(),t.startOfLine=!0,t.tokenize=t.line;t.stack&&t.stack.indented>t.indented&&"slimSubmode"!=t.last;)t.line=t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,t.subMode=null,t.subState=null;if(e.eatSpace())return null;var n=t.tokenize(e,t);return t.startOfLine=!1,n&&(t.last=n),s.hasOwnProperty(n)?s[n]:n},blankLine:function(e){if(e.subMode&&e.subMode.blankLine)return e.subMode.blankLine(e.subState)},innerMode:function(e){return e.subMode?{state:e.subState,mode:e.subMode}:{state:e,mode:W}}};return W}),"htmlmixed","ruby"),e.defineMIME("text/x-slim","slim"),e.defineMIME("application/x-slim","slim")}(n(5),n(154),n(470))},function(e,t,n){!function(e){"use strict";e.defineMode("smalltalk",(function(e){var t=/[+\-\/\\*~<>=@%|&?!.,:;^]/,n=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},i=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(t){this.userIndentationDelta=t>0?t/e.indentUnit-this.indentation:0};var a=function(e,o,a){var d=new i(null,o,!1),f=e.next();return'"'===f?d=s(e,new r(s,o)):"'"===f?d=l(e,new r(l,o)):"#"===f?"'"===e.peek()?(e.next(),d=u(e,new r(u,o))):e.eatWhile(/[^\s.{}\[\]()]/)?d.name="string-2":d.name="meta":"$"===f?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),d.name="string-2"):"|"===f&&a.expectVariable?d.context=new r(c,o):/[\[\]{}()]/.test(f)?(d.name="bracket",d.eos=/[\[{(]/.test(f),"["===f?a.indentation++:"]"===f&&(a.indentation=Math.max(0,a.indentation-1))):t.test(f)?(e.eatWhile(t),d.name="operator",d.eos=";"!==f):/\d/.test(f)?(e.eatWhile(/[\w\d]/),d.name="number"):/[\w_]/.test(f)?(e.eatWhile(/[\w\d_]/),d.name=a.expectVariable?n.test(e.current())?"keyword":"variable":null):d.eos=a.expectVariable,d},s=function(e,t){return e.eatWhile(/[^"]/),new i("comment",e.eat('"')?t.parent:t,!0)},l=function(e,t){return e.eatWhile(/[^']/),new i("string",e.eat("'")?t.parent:t,!1)},u=function(e,t){return e.eatWhile(/[^']/),new i("string-2",e.eat("'")?t.parent:t,!1)},c=function(e,t){var n=new i(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};return{startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation()),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var r=t.context.next===a&&n&&"]"===n.charAt(0)?-1:t.userIndentationDelta;return(t.indentation+r)*e.indentUnit},electricChars:"]"}})),e.defineMIME("text/x-stsrc",{name:"smalltalk"})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("smarty",(function(t,n){var r,i=n.rightDelimiter||"}",o=n.leftDelimiter||"{",a=n.version||2,s=e.getMode(t,n.baseMode||"null"),l=["debug","extends","function","include","literal"],u={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/};function c(e,t){return r=t,e}function d(e,t){return null==t&&(t=e.pos),3===a&&"{"==o&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function f(e,t){for(var n,a,l=e.string,u=e.pos;;){var c=l.indexOf(o,u);if(u=c+o.length,-1==c||!d(e,c+o.length))break}if(c==e.pos)return e.match(o),e.eat("*")?function(e,t,n){return t.tokenize=n,n(e,t)}(e,t,(n="comment",a="*"+i,function(e,t){for(;!e.eol();){if(e.match(a)){t.tokenize=f;break}e.next()}return n})):(t.depth++,t.tokenize=p,r="startTag","tag");c>-1&&(e.string=l.slice(0,c));var h=s.token(e,t.base);return c>-1&&(e.string=l),h}function p(e,t){if(e.match(i,!0))return 3===a?(t.depth--,t.depth<=0&&(t.tokenize=f)):t.tokenize=f,c("tag",null);if(e.match(o,!0))return t.depth++,c("tag","startTag");var n=e.next();if("$"==n)return e.eatWhile(u.validIdentifier),c("variable-2","variable");if("|"==n)return c("operator","pipe");if("."==n)return c("operator","property");if(u.stringChar.test(n))return t.tokenize=(s=n,function(e,t){for(var n=null,r=null;!e.eol();){if(r=e.peek(),e.next()==s&&"\\"!==n){t.tokenize=p;break}n=r}return"string"}),c("string","string");if(u.operatorChars.test(n))return e.eatWhile(u.operatorChars),c("operator","operator");if("["==n||"]"==n)return c("bracket","bracket");if("("==n||")"==n)return c("bracket","operator");if(/\d/.test(n))return e.eatWhile(/\d/),c("number","number");if("variable"==t.last){if("@"==n)return e.eatWhile(u.validIdentifier),c("property","property");if("|"==n)return e.eatWhile(u.validIdentifier),c("qualifier","modifier")}else{if("pipe"==t.last)return e.eatWhile(u.validIdentifier),c("qualifier","modifier");if("whitespace"==t.last)return e.eatWhile(u.validIdentifier),c("attribute","modifier")}if("property"==t.last)return e.eatWhile(u.validIdentifier),c("property",null);if(/\s/.test(n))return r="whitespace",null;var s,d="";"/"!=n&&(d+=n);for(var h=null;h=e.eat(u.validIdentifier);)d+=h;for(var m=0,g=l.length;m<g;m++)if(l[m]==d)return c("keyword","keyword");return/\s/.test(n)?null:c("tag","tag")}return{startState:function(){return{base:e.startState(s),tokenize:f,last:null,depth:0}},copyState:function(t){return{base:e.copyState(s,t.base),tokenize:t.tokenize,last:t.last,depth:t.depth}},innerMode:function(e){if(e.tokenize==f)return{mode:s,state:e.base}},token:function(e,t){var n=t.tokenize(e,t);return t.last=r,n},indent:function(t,n,r){return t.tokenize==f&&s.indent?s.indent(t.base,n,r):e.Pass},blockCommentStart:o+"*",blockCommentEnd:"*"+i}})),e.defineMIME("text/x-smarty","smarty")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("solr",(function(){var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/i;function r(t){return function(r,o){for(var a=t;(t=r.peek())&&null!=t.match(e);)a+=r.next();return o.tokenize=i,n.test(a)?"operator":function(e){return parseFloat(e).toString()===e}(a)?"number":":"==r.peek()?"field":"string"}}function i(n,o){var a,s,l=n.next();return'"'==l?o.tokenize=(s=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=s||r);)r=!r&&"\\"==n;return r||(t.tokenize=i),"string"}):t.test(l)?o.tokenize=(a=l,function(e,t){var n="operator";return"+"==a?n+=" positive":"-"==a?n+=" negative":"|"==a?e.eat(/\|/):"&"==a?e.eat(/\&/):"^"==a&&(n+=" boost"),t.tokenize=i,n}):e.test(l)&&(o.tokenize=r(l)),o.tokenize!=i?o.tokenize(n,o):null}return{startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-solr","solr")}(n(5))},function(e,t,n){!function(e){"use strict";var t={noEndTag:!0,soyState:"param-def"},n={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@attribute":t,"@attribute?":t,"@param":t,"@param?":t,"@inject":t,"@inject?":t,"@state":t,template:{soyState:"templ-def",variableScope:!0},extern:{soyState:"param-def"},export:{soyState:"export"},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},javaimpl:{},jsimpl:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0},velog:{},const:{soyState:"const-def"}},r=Object.keys(n).filter((function(e){return!n[e].noEndTag||n[e].reduceIndent}));e.defineMode("soy",(function(t){var i=e.getMode(t,"text/plain"),o={html:e.getMode(t,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),attributes:i,text:i,uri:i,trusted_resource_uri:i,css:e.getMode(t,"text/css"),js:e.getMode(t,{name:"text/javascript",statementIndent:2*t.indentUnit})};function a(e){return e[e.length-1]}function s(e,t,n){if(e.sol()){for(var r=0;r<t.indent&&e.eat(/\s/);r++);if(r)return null}var i=e.string,o=n.exec(i.substr(e.pos));o&&(e.string=i.substr(0,e.pos+o.index));var s=e.hideFirstChars(t.indent,(function(){var n=a(t.localStates);return n.mode.token(e,n.state)}));return e.string=i,s}function l(e,t){return{element:t,next:e}}function u(e){e.context&&(e.context.scope&&(e.variables=e.context.scope),e.context=e.context.previousContext)}function c(e,t,n){return function(e,t){for(;e;){if(e.element===t)return!0;e=e.next}return!1}(e,t)?"variable-2":n?"variable":"variable-2 error"}function d(e,t,n){this.previousContext=e,this.tag=t,this.kind=null,this.scope=n}function f(e,t){var n;return e.match(/[[]/)?(t.soyState.push("list-literal"),t.context=new d(t.context,"list-literal",t.variables),t.lookupVariables=!1,null):e.match(/\bmap(?=\()/)?(t.soyState.push("map-literal"),"keyword"):e.match(/\brecord(?=\()/)?(t.soyState.push("record-literal"),"keyword"):e.match(/([\w]+)(?=\()/)?"variable callee":(n=e.match(/^["']/))?(t.soyState.push("string"),t.quoteKind=n[0],"string"):e.match(/^[(]/)?(t.soyState.push("open-parentheses"),null):e.match(/(null|true|false)(?!\w)/)||e.match(/0x([0-9a-fA-F]{2,})/)||e.match(/-?([0-9]*[.])?[0-9]+(e[0-9]*)?/)?"atom":e.match(/(\||[+\-*\/%]|[=!]=|\?:|[<>]=?)/)?"operator":(n=e.match(/^\$([\w]+)/))?c(t.variables,n[1],!t.lookupVariables):(n=e.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(n[0])?"keyword":null:(e.next(),null)}return{startState:function(){return{soyState:[],variables:l(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:o.html,state:e.startState(o.html)}]}},copyState:function(t){return{tag:t.tag,soyState:t.soyState.concat([]),variables:t.variables,context:t.context,indent:t.indent,quoteKind:t.quoteKind,lookupVariables:t.lookupVariables,localStates:t.localStates.map((function(t){return{mode:t.mode,state:e.copyState(t.mode,t.state)}}))}},token:function(i,p){switch(a(p.soyState)){case"comment":if(i.match(/^.*?\*\//)?p.soyState.pop():i.skipToEnd(),!p.context||!p.context.scope)for(var h=/@param\??\s+(\S+)/g,m=i.current();g=h.exec(m);)p.variables=l(p.variables,g[1]);return"comment";case"string":var g;return(g=i.match(/^.*?(["']|\\[\s\S])/))?g[1]==p.quoteKind&&(p.quoteKind=null,p.soyState.pop()):i.skipToEnd(),"string"}if(!p.soyState.length||"literal"!=a(p.soyState)){if(i.match(/^\/\*/))return p.soyState.push("comment"),"comment";if(i.match(i.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(a(p.soyState)){case"templ-def":return(g=i.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(p.soyState.pop(),"def"):(i.next(),null);case"templ-ref":return(g=i.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(p.soyState.pop(),"."==g[0][0]?"variable-2":"variable"):(g=i.match(/^\$([\w]+)/))?(p.soyState.pop(),c(p.variables,g[1],!p.lookupVariables)):(i.next(),null);case"namespace-def":return(g=i.match(/^\.?([\w\.]+)/))?(p.soyState.pop(),"variable"):(i.next(),null);case"param-def":return(g=i.match(/^\*/))?(p.soyState.pop(),p.soyState.push("param-type"),"type"):(g=i.match(/^\w+/))?(p.variables=l(p.variables,g[0]),p.soyState.pop(),p.soyState.push("param-type"),"def"):(i.next(),null);case"param-ref":return(g=i.match(/^\w+/))?(p.soyState.pop(),"property"):(i.next(),null);case"open-parentheses":return i.match(/[)]/)?(p.soyState.pop(),null):f(i,p);case"param-type":var v=i.peek();return-1!="}]=>,".indexOf(v)?(p.soyState.pop(),null):"["==v?(p.soyState.push("param-type-record"),null):"("==v?(p.soyState.push("param-type-template"),null):"<"==v?(p.soyState.push("param-type-parameter"),null):(g=i.match(/^([\w]+|[?])/))?"type":(i.next(),null);case"param-type-record":return"]"==(v=i.peek())?(p.soyState.pop(),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"property"):(i.next(),null);case"param-type-parameter":return i.match(/^[>]/)?(p.soyState.pop(),null):i.match(/^[<,]/)?(p.soyState.push("param-type"),null):(i.next(),null);case"param-type-template":return i.match(/[>]/)?(p.soyState.pop(),p.soyState.push("param-type"),null):i.match(/^\w+/)?(p.soyState.push("param-type"),"def"):(i.next(),null);case"var-def":return(g=i.match(/^\$([\w]+)/))?(p.variables=l(p.variables,g[1]),p.soyState.pop(),"def"):(i.next(),null);case"for-loop":return i.match(/\bin\b/)?(p.soyState.pop(),"keyword"):"$"==i.peek()?(p.soyState.push("var-def"),null):(i.next(),null);case"record-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("record-key"),null):(i.next(),null);case"map-literal":return i.match(/^[)]/)?(p.soyState.pop(),null):i.match(/[(,]/)?(p.soyState.push("map-value"),p.soyState.push("map-value"),null):(i.next(),null);case"list-literal":return i.match("]")?(p.soyState.pop(),p.lookupVariables=!0,u(p),null):i.match(/\bfor\b/)?(p.lookupVariables=!0,p.soyState.push("for-loop"),"keyword"):f(i,p);case"record-key":return i.match(/[\w]+/)?"property":i.match(/^[:]/)?(p.soyState.pop(),null):(i.next(),null);case"map-value":return")"==i.peek()||","==i.peek()||i.match(/^[:)]/)?(p.soyState.pop(),null):f(i,p);case"import":return i.eat(";")?(p.soyState.pop(),p.indent-=2*t.indentUnit,null):i.match(/\w+(?=\s+as\b)/)?"variable":(g=i.match(/\w+/))?/\b(from|as)\b/.test(g[0])?"keyword":"def":(g=i.match(/^["']/))?(p.soyState.push("string"),p.quoteKind=g[0],"string"):(i.next(),null);case"tag":void 0===p.tag?(k=!0,S=""):S=(k="/"==p.tag[0])?p.tag.substring(1):p.tag;var y=n[S];if(i.match(/^\/?}/)){var b="/}"==i.current();return b&&!k&&u(p),"/template"==p.tag||"/deltemplate"==p.tag?(p.variables=l(null,"ij"),p.indent=0):p.indent-=t.indentUnit*(b||-1==r.indexOf(p.tag)?2:1),p.soyState.pop(),"keyword"}if(i.match(/^([\w?]+)(?==)/)){if(p.context&&p.context.tag==S&&"kind"==i.current()&&(g=i.match(/^="([^"]+)/,!1))){var _=g[1];p.context.kind=_;var w=o[_]||o.html;(T=a(p.localStates)).mode.indent&&(p.indent+=T.mode.indent(T.state,"","")),p.localStates.push({mode:w,state:e.startState(w)})}return"attribute"}return f(i,p);case"template-call-expression":return i.match(/^([\w-?]+)(?==)/)?"attribute":i.eat(">")||i.eat("/>")?(p.soyState.pop(),"keyword"):f(i,p);case"literal":return i.match("{/literal}",!1)?(p.soyState.pop(),this.token(i,p)):s(i,p,/\{\/literal}/);case"export":if(g=i.match(/\w+/)){if(p.soyState.pop(),"const"==g)return p.soyState.push("const-def"),"keyword";if("extern"==g)return p.soyState.push("param-def"),"keyword"}else i.next();return null;case"const-def":return i.match(/^\w+/)?(p.soyState.pop(),"def"):(i.next(),null)}if(i.match("{literal}"))return p.indent+=t.indentUnit,p.soyState.push("literal"),p.context=new d(p.context,"literal",p.variables),"keyword";if(g=i.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var x=p.tag;p.tag=g[1];var k="/"==p.tag[0],E=!!n[p.tag],S=k?p.tag.substring(1):p.tag;y=n[S],"/switch"!=p.tag&&(p.indent+=((k||y&&y.reduceIndent)&&"switch"!=x?1:2)*t.indentUnit),p.soyState.push("tag");var O=!1;if(y)if(k||y.soyState&&p.soyState.push(y.soyState),y.noEndTag||!E&&k){if(k){var C="extern"==S&&p.context&&"export"==p.context.tag;if(!p.context||p.context.tag!=S&&!C)O=!0;else if(p.context){var T;p.context.kind&&(p.localStates.pop(),(T=a(p.localStates)).mode.indent&&(p.indent-=T.mode.indent(T.state,"",""))),u(p)}}}else p.context=new d(p.context,p.tag,y.variableScope?p.variables:null);else k&&(O=!0);return(O?"error ":"")+"keyword"}return i.eat("{")?(p.tag="print",p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):!p.context&&i.sol()&&i.match(/import\b/)?(p.soyState.push("import"),p.indent+=2*t.indentUnit,"keyword"):(g=i.match("<{"))?(p.soyState.push("template-call-expression"),p.indent+=2*t.indentUnit,p.soyState.push("tag"),"keyword"):(g=i.match("</>"))?(p.indent-=1*t.indentUnit,"keyword"):s(i,p,/\{|\s+\/\/|\/\*/)},indent:function(n,r,i){var o=n.indent,s=a(n.soyState);if("comment"==s)return e.Pass;if("literal"==s)/^\{\/literal}/.test(r)&&(o-=t.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(r))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(r)&&(o-=t.indentUnit),"switch"!=n.tag&&/^\{(case|default)\b/.test(r)&&(o-=t.indentUnit),/^\{\/switch\b/.test(r)&&(o-=t.indentUnit)}var l=a(n.localStates);return o&&l.mode.indent&&(o+=l.mode.indent(l.state,r,i)),o},innerMode:function(e){return e.soyState.length&&"literal"!=a(e.soyState)?null:a(e.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}}),"htmlmixed"),e.registerHelper("wordChars","soy",/[\w$]/),e.registerHelper("hintWords","soy",Object.keys(n).concat(["css","debugger"])),e.defineMIME("text/x-soy","soy")}(n(5),n(154))},function(e,t,n){!function(e){"use strict";e.defineMode("sparql",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),o=r(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load"]),a=/[*+\-<>=&|\^\/!\?]/;function s(e,n){var r,u=e.next();if(t=null,"$"==u||"?"==u)return"?"==u&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][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]*/),"variable-2");if("<"!=u||e.match(/^[\s\u00a0=]/,!1)){if('"'==u||"'"==u)return n.tokenize=(r=u,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=s;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(u))return t=u,"bracket";if("#"==u)return e.skipToEnd(),"comment";if("^"===u)return"^"===(u=e.peek())?e.eat("^"):e.eatWhile(a),"operator";if(a.test(u))return e.eatWhile(a),"operator";if(":"==u)return l(e),"atom";if("@"==u)return e.eatWhile(/[a-z\d\-]/i),"meta";if(e.eatWhile(/[_\w\d]/),e.eat(":"))return l(e),"atom";var c=e.current();return i.test(c)?"builtin":o.test(c)?"keyword":"variable"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function l(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function u(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function c(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)u(n,")",e.column());else if("["==t)u(n,"]",e.column());else if("{"==t)u(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)c(n);n.context&&t==n.context.type&&(c(n),"}"==t&&n.context&&"pattern"==n.context.type&&c(n))}else"."==t&&n.context&&"pattern"==n.context.type?c(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?u(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("application/sparql-query","sparql")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("spreadsheet",(function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}})),e.defineMIME("text/x-spreadsheet","spreadsheet")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},s=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||o(a),u=n.keywords||o(i),c=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},f=n.hooks||{},p=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(f[n]){var i=f[n](e,t);if(!1!==i)return i}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=function e(t){return function(n,r){var i=n.match(/^.*?(\/\*|\*\/)/);return i?"/*"==i[1]?r.tokenize=e(t+1):r.tokenize=t>1?e(t-1):v:n.skipToEnd(),"comment"}}(1),t.tokenize(e,t);if("."!=n){if(c.test(n))return e.eatWhile(c),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return p.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(o)?"atom":l.hasOwnProperty(o)?"type":u.hasOwnProperty(o)?"keyword":r.hasOwnProperty(o)?"builtin":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:d.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?b(e,t,")"):"["==r?b(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function o(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var a="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:o(i+"begin"),builtin:o(a),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(i+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:o(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:o("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null},"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(i+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var n=t(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),r=t(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),i=t(["true","false","nil","self","super","_"]),o=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),a=/^\-?0b[01][01_]*/,s=/^\-?0o[0-7][0-7_]*/,l=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,u=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,c=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,d=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,f=/^\#[A-Za-z]+/,p=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function h(e,t,h){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var m,y=e.peek();if("/"==y){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(v),v(e,t)}if(e.match(f))return"builtin";if(e.match(p))return"attribute";if(e.match(a))return"number";if(e.match(s))return"number";if(e.match(l))return"number";if(e.match(u))return"number";if(e.match(d))return"property";if("+-/*%=|&<>~^?!".indexOf(y)>-1)return e.next(),"operator";if(":;,.(){}[]".indexOf(y)>-1)return e.next(),e.match(".."),"punctuation";if(m=e.match(/("""|"|')/)){var b=g.bind(null,m[0]);return t.tokenize.push(b),b(e,t)}if(e.match(c)){var _=e.current();return o.hasOwnProperty(_)?"variable-2":i.hasOwnProperty(_)?"atom":n.hasOwnProperty(_)?(r.hasOwnProperty(_)&&(t.prev="define"),"keyword"):"define"==h?"def":"variable"}return e.next(),null}function m(){var e=0;return function(t,n,r){var i=h(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function g(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(m()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function v(e,t){for(var n;e.match(/^[^/*]+/,!0),n=e.next();)"/"===n&&e.eat("*")?t.tokenize.push(v):"*"===n&&e.eat("/")&&t.tokenize.pop();return"comment"}function y(e,t,n){this.prev=e,this.align=t,this.indented=n}function b(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new y(e.context,n,e.indented)}function _(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||h)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?_:b)(t,e)}return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tcl",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),n=e("if elseif else and not or eq ne in ni for foreach while switch"),r=/[+\-*&%=<>!?^\/\|]/;function i(e,t,n){return t.tokenize=n,n(e,t)}function o(e,l){var u=l.beforeParams;l.beforeParams=!1;var c,d=e.next();if('"'!=d&&"'"!=d||!l.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&u?l.inParams=!0:")"==d&&(l.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?i(e,l,a):"#"==d&&e.match(/ *\[ *\[/)?i(e,l,s):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),l.beforeParams=!0,"builtin";if(r.test(d))return e.eatWhile(r),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=e.current().toLowerCase();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)?(l.beforeParams=!0,"keyword"):null}return i(e,l,(c=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==c&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=o),"string"}))}function a(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=o;break}r="*"==n}return"comment"}function s(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=o;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},lineComment:"#"}})),e.defineMIME("text/x-tcl","tcl")}(n(5))},function(e,t,n){!function(e){"use strict";var t={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function n(e,n,o){if("_"===o)return e.eat("_")?r(e,n,"italic",/__/,2):r(e,n,"em",/_/,1);if("*"===o)return e.eat("*")?r(e,n,"bold",/\*\*/,2):r(e,n,"strong",/\*/,1);if("["===o)return e.match(/\d+\]/)&&(n.footCite=!0),i(n);if("("===o&&e.match(/^(r|tm|c)\)/))return a(n,t.specialChar);if("<"===o&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return a(n,t.html);if("?"===o&&e.eat("?"))return r(e,n,"cite",/\?\?/,2);if("="===o&&e.eat("="))return r(e,n,"notextile",/==/,2);if("-"===o&&!e.eat("-"))return r(e,n,"deletion",/-/,1);if("+"===o)return r(e,n,"addition",/\+/,1);if("~"===o)return r(e,n,"sub",/~/,1);if("^"===o)return r(e,n,"sup",/\^/,1);if("%"===o)return r(e,n,"span",/%/,1);if("@"===o)return r(e,n,"code",/@/,1);if("!"===o){var s=r(e,n,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),s}return i(n)}function r(e,t,n,r,o){var a=e.pos>o?e.string.charAt(e.pos-o-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&a&&/\S/.test(a)){var l=i(t);return t[n]=!1,l}}else(!a||/\W/.test(a))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=c.attributes);return i(t)}function i(e){var n=o(e);if(n)return n;var r=[];return e.layoutType&&r.push(t[e.layoutType]),r=r.concat(function(e){for(var n=[],r=1;r<arguments.length;++r)e[arguments[r]]&&n.push(t[arguments[r]]);return n}(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),"header"===e.layoutType&&r.push(t.header+"-"+e.header),r.length?r.join(" "):null}function o(e){var n=e.layoutType;switch(n){case"notextile":case"code":case"pre":return t[n];default:return e.notextile?t.notextile+(n?" "+t[n]:""):null}}function a(e,t){var n=o(e);if(n)return n;var r=i(e);return t?r?r+" "+t:t:r}function s(e){var t=e.spanningLayout,n=e.layoutType;for(var r in e)e.hasOwnProperty(r)&&delete e[r];e.mode=c.newLayout,t&&(e.layoutType=n,e.spanningLayout=!0)}var l={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,u("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,u("allAttributes")),"+\\.");case"type":return l.makeRe("^",u("allTypes"));case"typeLayout":return l.makeRe("^",u("allTypes"),u("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",u("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t<arguments.length;++t){var n=arguments[t];e+="string"==typeof n?n:n.source}return new RegExp(e)},choiceRe:function(){for(var e=[arguments[0]],t=1;t<arguments.length;++t)e[2*t-1]="|",e[2*t]=arguments[t];return e.unshift("(?:"),e.push(")"),l.makeRe.apply(null,e)}};function u(e){return l.cache[e]||(l.cache[e]=l.createRe(e))}var c={newLayout:function(e,t){return e.match(u("typeLayout"),!1)?(t.spanningLayout=!1,(t.mode=c.blockType)(e,t)):(o(t)||(e.match(u("listLayout"),!1)?n=c.list:e.match(u("drawTable"),!1)?n=c.table:e.match(u("linkDefinition"),!1)?n=c.linkDefinition:e.match(u("definitionList"))?n=c.definitionList:e.match(u("html"),!1)&&(n=c.html)),(t.mode=n||c.text)(e,t));var n},blockType:function(e,t){var n,r;return t.layoutType=null,(n=e.match(u("type")))?((n=(r=n[0]).match(u("header")))?(t.layoutType="header",t.header=parseInt(n[0][1])):r.match(u("bq"))?t.layoutType="quote":r.match(u("bc"))?t.layoutType="code":r.match(u("foot"))?t.layoutType="footnote":r.match(u("notextile"))?t.layoutType="notextile":r.match(u("pre"))?t.layoutType="pre":r.match(u("div"))?t.layoutType="div":r.match(u("table"))&&(t.layoutType="table"),t.mode=c.attributes,i(t)):(t.mode=c.text)(e,t)},text:function(e,t){if(e.match(u("text")))return i(t);var r=e.next();return'"'===r?(t.mode=c.link)(e,t):n(e,t,r)},attributes:function(e,n){return n.mode=c.layoutLength,e.match(u("attributes"))?a(n,t.attributes):i(n)},layoutLength:function(e,t){return e.eat(".")&&e.eat(".")&&(t.spanningLayout=!0),t.mode=c.text,i(t)},list:function(e,t){var n=e.match(u("list"));t.listDepth=n[0].length;var r=(t.listDepth-1)%3;return t.layoutType=r?1===r?"list2":"list3":"list1",t.mode=c.attributes,i(t)},link:function(e,n){return n.mode=c.text,e.match(u("link"))?(e.match(/\S+/),a(n,t.link)):i(n)},linkDefinition:function(e,n){return e.skipToEnd(),a(n,t.linkDefinition)},definitionList:function(e,t){return e.match(u("definitionList")),t.layoutType="definitionList",e.match(/\s*$/)?t.spanningLayout=!0:t.mode=c.attributes,i(t)},html:function(e,n){return e.skipToEnd(),a(n,t.html)},table:function(e,t){return t.layoutType="table",(t.mode=c.tableCell)(e,t)},tableCell:function(e,t){return e.match(u("tableHeading"))?t.tableHeading=!0:e.eat("|"),t.mode=c.tableCellAttributes,i(t)},tableCellAttributes:function(e,n){return n.mode=c.tableText,e.match(u("tableCellAttributes"))?a(n,t.attributes):i(n)},tableText:function(e,t){return e.match(u("tableText"))?i(t):"|"===e.peek()?(t.mode=c.tableCell,i(t)):n(e,t,e.next())}};e.defineMode("textile",(function(){return{startState:function(){return{mode:c.newLayout}},token:function(e,t){return e.sol()&&function(e,t){t.mode=c.newLayout,t.tableHeading=!1,"definitionList"===t.layoutType&&t.spanningLayout&&e.match(u("definitionListEnd"),!1)&&(t.spanningLayout=!1)}(e,t),t.mode(e,t)},blankLine:s}})),e.defineMIME("text/x-textile","textile")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tiddlywiki",(function(){var e={},t={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},n=/[\w_\-]/i,r=/^\-\-\-\-+$/,i=/^\/\*\*\*$/,o=/^\*\*\*\/$/,a=/^<<<$/,s=/^\/\/\{\{\{$/,l=/^\/\/\}\}\}$/,u=/^<!--\{\{\{-->$/,c=/^<!--\}\}\}-->$/,d=/^\{\{\{$/,f=/^\}\}\}$/,p=/.*?\}\}\}/;function h(e,t,n){return t.tokenize=n,n(e,t)}function m(t,f){var p=t.sol(),m=t.peek();if(f.block=!1,p&&/[<\/\*{}\-]/.test(m)){if(t.match(d))return f.block=!0,h(t,f,y);if(t.match(a))return"quote";if(t.match(i)||t.match(o))return"comment";if(t.match(s)||t.match(l)||t.match(u)||t.match(c))return"comment";if(t.match(r))return"hr"}if(t.next(),p&&/[\/\*!#;:>|]/.test(m)){if("!"==m)return t.skipToEnd(),"header";if("*"==m)return t.eatWhile("*"),"comment";if("#"==m)return t.eatWhile("#"),"comment";if(";"==m)return t.eatWhile(";"),"comment";if(":"==m)return t.eatWhile(":"),"comment";if(">"==m)return t.eatWhile(">"),"quote";if("|"==m)return"header"}if("{"==m&&t.match("{{"))return h(t,f,y);if(/[hf]/i.test(m)&&/[ti]/i.test(t.peek())&&t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==m)return"string";if("~"==m)return"brace";if(/[\[\]]/.test(m)&&t.match(m))return"brace";if("@"==m)return t.eatWhile(n),"link";if(/\d/.test(m))return t.eatWhile(/\d/),"number";if("/"==m){if(t.eat("%"))return h(t,f,g);if(t.eat("/"))return h(t,f,b)}if("_"==m&&t.eat("_"))return h(t,f,_);if("-"==m&&t.eat("-")){if(" "!=t.peek())return h(t,f,w);if(" "==t.peek())return"brace"}return"'"==m&&t.eat("'")?h(t,f,v):"<"==m&&t.eat("<")?h(t,f,x):(t.eatWhile(/[\w\$_]/),e.propertyIsEnumerable(t.current())?"keyword":null)}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="%"==n}return"comment"}function v(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=m;break}r="'"==n}return"strong"}function y(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(p)||n&&e.sol()&&e.match(f)?(t.tokenize=m,"comment"):(e.next(),"comment")}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="/"==n}return"em"}function _(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=m;break}r="_"==n}return"underlined"}function w(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=m;break}r="-"==n}return"strikethrough"}function x(e,n){if("<<"==e.current())return"macro";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),n.tokenize=m,"macro"):(e.eatWhile(/[\w\$_]/),t.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=m,null)}return{startState:function(){return{tokenize:m}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-tiddlywiki","tiddlywiki")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tiki",(function(e){function t(e,t,n){return function(i,o){for(;!i.eol();){if(i.match(t)){o.tokenize=r;break}i.next()}return n&&(o.tokenize=n),e}}function n(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=r,e}}function r(e,i){function o(t){return i.tokenize=t,t(e,i)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),i.tokenize=u,"tag";case"_":if(e.eat("_"))return o(t("strong","__",r));break;case"'":if(e.eat("'"))return o(t("em","''",r));break;case"(":if(e.eat("("))return o(t("variable-2","))",r));break;case"[":return o(t("variable-3","]",r));case"|":if(e.eat("|"))return o(t("comment","||"));break;case"-":if(e.eat("="))return o(t("header string","=-",r));if(e.eat("-"))return o(t("error tw-deleted","--",r));break;case"=":if(e.match("=="))return o(t("tw-underline","===",r));break;case":":if(e.eat(":"))return o(t("comment","::"));break;case"^":return o(t("tw-box","^"));case"~":if(e.match("np~"))return o(t("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),o(n("header string"));case"*":case"#":case"+":return o(n("tw-listitem bracket"))}return null}var i,o,a,s,l=e.indentUnit;function u(e,t){var n,i=e.next(),a=e.peek();return"}"==i?(t.tokenize=r,"tag"):"("==i||")"==i?"bracket":"="==i?(o="equals",">"==a&&(e.next(),a=e.peek()),/[\'\"]/.test(a)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(i)?(t.tokenize=(n=i,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function c(){for(var e=arguments.length-1;e>=0;e--)a.cc.push(arguments[e])}function d(){return c.apply(null,arguments),!0}function f(e,t){var n=a.context&&a.context.noIndent;a.context={prev:a.context,pluginName:e,indent:a.indented,startOfLine:t,noIndent:n}}function p(){a.context&&(a.context=a.context.prev)}function h(e){if("openPlugin"==e)return a.pluginName=i,d(m,(n=a.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?d():"endPlugin"==e?(f(a.pluginName,n),d()):d()}));if("closePlugin"==e){var t=!1;return a.context?(t=a.context.pluginName!=i,p()):t=!0,t&&(s="error"),d(function(e){return function(t){return e&&(s="error"),"endPlugin"==t?d():c()}}(t))}return"string"==e?(a.context&&"!cdata"==a.context.name||f("!cdata"),a.tokenize==r&&p(),d()):d();var n}function m(e){return"keyword"==e?(s="attribute",d(m)):"equals"==e?d(g,m):c()}function g(e){return"keyword"==e?(s="string",d()):"string"==e?d(v):c()}function v(e){return"string"==e?d(v):c()}return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=o=i=null;var n=t.tokenize(e,t);if((n||o)&&"comment"!=n)for(a=t;!(t.cc.pop()||h)(o||n););return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+l:0},electricChars:"/"}})),e.defineMIME("text/tiki","tiki")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("toml",(function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}}})),e.defineMIME("text/x-toml","toml")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("tornado:inner",(function(){var e=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];function t(n,r){n.eatWhile(/[^\{]/);var i,o=n.next();if("{"==o&&(o=n.eat(/\{|%|#/)))return r.tokenize=("{"==(i=o)&&(i="}"),function(n,r){return n.next()==i&&n.eat("}")?(r.tokenize=t,"tag"):n.match(e)?"keyword":"#"==i?"comment":"string"}),"tag"}return e=new RegExp("^(("+e.join(")|(")+"))\\b"),{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)}}})),e.defineMode("tornado",(function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"tornado:inner");return e.overlayMode(n,r)})),e.defineMIME("text/x-tornado","tornado")}(n(5),n(154),n(273))},function(e,t,n){!function(e){"use strict";e.defineMode("troff",(function(){var e={};function t(t){if(t.eatSpace())return null;var n=t.sol(),r=t.next();if("\\"===r)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===r||"'"===r)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(n&&"."===r){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var i=t.current();return e.hasOwnProperty(i)?e[i]:null}function n(e,n){return(n.tokens[0]||t)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)}}})),e.defineMIME("text/troff","troff"),e.defineMIME("text/x-troff","troff"),e.defineMIME("application/x-troff","troff")}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn-cfg",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.fileNCtrlMaskOptions||{},a=t.externalCommands||{},s=t.multiLineStrings,l=!1!==t.indentStatements,u=/[\|]/;function c(e,t){var r,l=e.next();if('"'==l||"'"==l)return t.tokenize=(r=l,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!s)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[:=]/.test(l))return n=l,"punctuation";if("#"==l)return e.skipToEnd(),"comment";if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(u.test(l))return e.eatWhile(u),"operator";if("["==l)return e.eatWhile(/[\w_\]]/),"number sectionTitle";e.eatWhile(/[\w\$_]/);var c=e.current();return i.propertyIsEnumerable(c)?"keyword":o.propertyIsEnumerable(c)?"negative fileNCtrlMaskOptions":a.propertyIsEnumerable(c)?"negative externalCommands":"variable"}function d(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function p(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new d((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||c)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)f(t,e.column(),"}");else if("["==n)f(t,e.column(),"]");else if("("==n)f(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=p(t);for("}"==r.type&&(r=p(t));"statement"==r.type;)r=p(t)}else n==r.type?p(t):l&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&f(t,e.column(),"statement");else p(t);return t.startOfLine=!1,i},electricChars:"{}",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-ttcn-cfg",{name:"ttcn-cfg",keywords:t("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:t("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:t("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn",(function(e,t){var n,r=e.indentUnit,i=t.keywords||{},o=t.builtin||{},a=t.timerOps||{},s=t.portOps||{},l=t.configOps||{},u=t.verdictOps||{},c=t.sutOps||{},d=t.functionOps||{},f=t.verdictConsts||{},p=t.booleanConsts||{},h=t.otherConsts||{},m=t.types||{},g=t.visibilityModifiers||{},v=t.templateMatch||{},y=t.multiLineStrings,b=!1!==t.indentStatements,_=/[+\-*&@=<>!\/]/;function w(e,t){var r,b=e.next();if('"'==b||"'"==b)return t.tokenize=(r=b,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!y)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(b))return n=b,"punctuation";if("#"==b)return e.skipToEnd(),"atom preprocessor";if("%"==b)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(b))return e.eatWhile(/[\w\.]/),"number";if("/"==b){if(e.eat("*"))return t.tokenize=x,x(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(_.test(b))return"@"==b&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(_),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var w=e.current();return i.propertyIsEnumerable(w)?"keyword":o.propertyIsEnumerable(w)?"builtin":a.propertyIsEnumerable(w)?"def timerOps":l.propertyIsEnumerable(w)?"def configOps":u.propertyIsEnumerable(w)?"def verdictOps":s.propertyIsEnumerable(w)?"def portOps":c.propertyIsEnumerable(w)?"def sutOps":d.propertyIsEnumerable(w)?"def functionOps":f.propertyIsEnumerable(w)?"string verdictConsts":p.propertyIsEnumerable(w)?"string booleanConsts":h.propertyIsEnumerable(w)?"string otherConsts":m.propertyIsEnumerable(w)?"builtin types":g.propertyIsEnumerable(w)?"builtin visibilityModifiers":v.propertyIsEnumerable(w)?"atom templateMatch":"variable"}function x(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function k(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function E(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new k(r,t,n,null,e.context)}function S(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new k((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;n=null;var i=(t.tokenize||w)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)E(t,e.column(),"}");else if("["==n)E(t,e.column(),"]");else if("("==n)E(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=S(t);for("}"==r.type&&(r=S(t));"statement"==r.type;)r=S(t)}else n==r.type?S(t):b&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&E(t,e.column(),"statement");else S(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}})),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.timerOps),i(n.portOps),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-ttcn","text/x-ttcn3","text/x-ttcnpp"],{name:"ttcn",keywords:t("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:t("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:t("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:t("read running start stop timeout"),portOps:t("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:t("create connect disconnect done kill killed map unmap"),verdictOps:t("getverdict setverdict"),sutOps:t("action"),functionOps:t("apply derefers refers"),verdictConsts:t("error fail inconc none pass"),booleanConsts:t("true false"),otherConsts:t("null NULL omit"),visibilityModifiers:t("private public friend"),templateMatch:t("complement ifpresent subset superset permutation"),multiLineStrings:!0})}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("turtle",(function(e){var t,n=e.indentUnit;function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}r([]);var i=r(["@prefix","@base","a"]),o=/[*+\-<>=&|]/;function a(e,n){var r,s=e.next();if(t=null,"<"!=s||e.match(/^[\s\u00a0=]/,!1)){if('"'==s||"'"==s)return n.tokenize=(r=s,function(e,t){for(var n,i=!1;null!=(n=e.next());){if(n==r&&!i){t.tokenize=a;break}i=!i&&"\\"==n}return"string"}),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(s))return t=s,null;if("#"==s)return e.skipToEnd(),"comment";if(o.test(s))return e.eatWhile(o),null;if(":"==s)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variable-3";var l=e.current();return i.test(l)?"meta":s>="A"&&s<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function l(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)s(n,")",e.column());else if("["==t)s(n,"]",e.column());else if("{"==t)s(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)l(n);n.context&&t==n.context.type&&l(n)}else"."==t&&n.context&&"pattern"==n.context.type?l(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?s(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(e,t){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n):0},lineComment:"#"}})),e.defineMIME("text/turtle","turtle")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("twig:inner",(function(){var e=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(o,a){return function(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}(o,a)}}})),e.defineMode("twig",(function(t,n){var r=e.getMode(t,"twig:inner");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-twig","twig")}(n(5),n(471))},function(e,t,n){!function(e){"use strict";e.defineMode("vb",(function(t,n){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),a=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),s=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),u=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),c=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],d=["else","elseif","case","catch","finally"],f=["next","loop"],p=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],h=r(p),m=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],g=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],v=r(m),y=r(g),b=r(c),_=r(d),w=r(f),x=r(["end"]),k=r(["do"]);function E(e,t){t.currentIndent++}function S(e,t){t.currentIndent--}function O(e,t){if(e.eatSpace())return null;var r,c;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var d=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(d=!0),d)return e.eat(/J/i),"number";var f=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?f=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),f=!0):e.match(/^0(?![\dx])/i)&&(f=!0),f)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=(r=e.current(),c=1==r.length,function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(r))return t.tokenize=O,"string";e.eat(/['"]/)}if(c){if(n.singleLineStringErrors)return"error";t.tokenize=O}return"string"}),t.tokenize(e,t)):e.match(l)||e.match(s)?null:e.match(a)||e.match(i)||e.match(h)?"operator":e.match(o)?null:e.match(k)?(E(0,t),t.doInCurrentLine=!0,"keyword"):e.match(b)?(t.doInCurrentLine?t.doInCurrentLine=!1:E(0,t),"keyword"):e.match(_)?"keyword":e.match(x)?(S(0,t),S(0,t),"keyword"):e.match(w)?(S(0,t),"keyword"):e.match(y)||e.match(v)?"keyword":e.match(u)?"variable":(e.next(),"error")}return e.registerHelper("hintWords","vb",c.concat(d).concat(f).concat(p).concat(m).concat(g)),{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:O,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),r=e.current();if("."===r)return"variable"===(n=t.tokenize(e,t))?"variable":"error";var i="[({".indexOf(r);return-1!==i&&E(0,t),-1!==(i="])}".indexOf(r))&&S(0,t)?"error":n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(w)||r.match(x)||r.match(_)?t.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.indentUnit},lineComment:"'"}})),e.defineMIME("text/x-vb","vb")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("vbscript",(function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],c=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),c=c.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var d=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),f=n(["true","false","nothing","empty","null"]),p=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),h=n(u),m=n(c),g=n(["class","sub","select","while","if","function","property","with","for"]),v=n(["else","elseif","case"]),y=n(["next","loop","wend"]),b=n(["end"]),_=n(["do"]),w=n(["on error resume next","exit"]),x=n(["rem"]);function k(e,t){t.currentIndent++}function E(e,t){t.currentIndent--}function S(e,n){if(e.eatSpace())return"space";var u,c;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(x))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var O=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(O=!0),O)return e.eat(/J/i),"number";var C=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?C=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),C=!0):e.match(/^0(?![\dx])/i)&&(C=!0),C)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(u=e.current(),c=1==u.length,function(e,n){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(u))return n.tokenize=S,"string";e.eat(/['"]/)}if(c){if(t.singleLineStringErrors)return"error";n.tokenize=S}return"string"}),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(w)?(n.doInCurrentLine=!0,"keyword"):e.match(_)?(k(0,n),n.doInCurrentLine=!0,"keyword"):e.match(g)?(n.doInCurrentLine?n.doInCurrentLine=!1:k(0,n),"keyword"):e.match(v)?"keyword":e.match(b)?(E(0,n),E(0,n),"keyword"):e.match(y)?(n.doInCurrentLine?n.doInCurrentLine=!1:E(0,n),"keyword"):e.match(d)?"keyword":e.match(f)?"atom":e.match(m)?"variable-2":e.match(p)?"builtin":e.match(h)?"variable-2":e.match(s)?"variable":(e.next(),"error")}return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:S,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),r=e.current();return"."===r?(n=t.tokenize(e,t),r=e.current(),!n||"variable"!==n.substr(0,8)&&"builtin"!==n&&"keyword"!==n?"error":("builtin"!==n&&"keyword"!==n||(n="variable"),c.indexOf(r.substr(1))>-1&&(n="variable-2"),n)):n}(e,t);return t.lastToken={style:n,content:e.current()},"space"===n&&(n=null),n},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(y)||r.match(b)||r.match(v)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}})),e.defineMIME("text/vbscript","vbscript")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),n=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),r=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),i=/[+\-*&%=<>!?:\/|]/;function o(e,t,n){return t.tokenize=n,n(e,t)}function a(e,a){var c=a.beforeParams;a.beforeParams=!1;var d=e.next();if("'"==d&&!a.inString&&a.inParams)return a.lastTokenWasBuiltin=!1,o(e,a,s(d));if('"'!=d){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&c?a.inParams=!0:")"==d&&(a.inParams=!1,a.lastTokenWasBuiltin=!0),null;if(/\d/.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==d&&e.eat("*"))return a.lastTokenWasBuiltin=!1,o(e,a,l);if("#"==d&&e.match(/ *\[ *\[/))return a.lastTokenWasBuiltin=!1,o(e,a,u);if("#"==d&&e.eat("#"))return a.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==d)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),r&&r.propertyIsEnumerable(e.current())?"keyword":(a.lastTokenWasBuiltin=!0,a.beforeParams=!0,"builtin");if(i.test(d))return a.lastTokenWasBuiltin=!1,e.eatWhile(i),"operator";e.eatWhile(/[\w\$_{}@]/);var f=e.current();return t&&t.propertyIsEnumerable(f)?"keyword":n&&n.propertyIsEnumerable(f)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!n||!n.propertyIsEnumerable(f.toLowerCase()))?(a.beforeParams=!0,a.lastTokenWasBuiltin=!1,"keyword"):a.inString?(a.lastTokenWasBuiltin=!1,"string"):e.pos>f.length&&"."==e.string.charAt(e.pos-f.length-1)&&a.lastTokenWasBuiltin?"builtin":(a.lastTokenWasBuiltin=!1,null)}return a.lastTokenWasBuiltin=!1,a.inString?(a.inString=!1,"string"):a.inParams?o(e,a,s(d)):void 0}function s(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=a),"string"}}function l(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=a;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=a;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}return{startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("verilog",(function(t,n){var r=t.indentUnit,i=n.statementIndentUnit||r,o=n.dontAlignCalls,a=n.compilerDirectivesUseRegularIndentation,s=n.noIndentKeywords||[],l=n.multiLineStrings,u=n.hooks||{};function c(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var d,f,p=c("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),h=/[\+\-\*\/!~&|^%=?:<>]/,m=/[\[\]{}()]/,g=/\d[0-9_]*/,v=/\d*\s*'s?d\s*\d[0-9_]*/i,y=/\d*\s*'s?b\s*[xz01][xz01_]*/i,b=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,_=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,w=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,x=/^((`?\w+)|[)}\]])/,k=/[)}\]]/,E=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),S=/^(`(?:ifdef|ifndef|elsif|else))\b/,O=/^(`(?:elsif|else|endif))\b/,C=c("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),T={};for(var A in C)T[A]="end"+A;for(var P in T.begin="end",T.casex="endcase",T.casez="endcase",T.do="while",T.fork="join;join_any;join_none",T.covergroup="endgroup",T.macro_begin="macro_end",s)A=s[P],T[A]&&(T[A]=void 0);var R=c("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function j(e,t){var n,r,i=e.peek();if(u[i]&&0!=(n=u[i](e,t)))return n;if(u.tokenBase&&0!=(n=u.tokenBase(e,t)))return n;if(/[,;:\.]/.test(i))return d=e.next(),null;if(m.test(i))return d=e.next(),"bracket";if("`"==i){if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(f=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var a=f.substr(0,f.length-5)+"end";T[o]=a,d="newblock"}else{e.eatSpace(),"("==e.peek()&&(d="newmacro");var s=e.current();e.backUp(s.length-o.length)}return"def"}return null}if("$"==i)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==i)return e.next(),e.eatWhile(/[\d_.]/),"def";if("@"==i)return e.next(),e.eatWhile(/[@]/),"def";if('"'==i)return e.next(),t.tokenize=(r=i,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return(o||!i&&!l)&&(t.tokenize=j),"string"}),t.tokenize(e,t);if("/"==i){if(e.next(),e.eat("*"))return t.tokenize=I,I(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}return e.match(w)||e.match(v)||e.match(y)||e.match(b)||e.match(_)||e.match(g)||e.match(w)?"number":e.eatWhile(h)?(d=e.current(),"meta"):e.eatWhile(/[\w\$_]/)?(o=e.current(),p[o]?(T[o]&&(d="newblock","fork"===o&&(e.eatSpace(),";"==e.peek()&&(d="newstatement"),e.backUp(e.current().length-o.length))),R[o]&&(d="newstatement"),f=o,"keyword"):"variable"):(e.next(),null)}function I(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=j;break}r="*"==n}return"comment"}function M(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=i,this.prev=o}function L(e,t,n,r){var i=new M(e.indented,t,n,r||"",null,e.context);return e.context=i}function D(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}return{electricInput:function(){var e=[];for(var t in T)if(T[t]){var n=T[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),startState:function(e){var t={tokenize:null,context:new M((e||0)-r,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return u.startState&&u.startState(t),t},token:function(e,t){var n,r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),u.token&&void 0!==(n=u.token(e,t)))return n;if(e.eatSpace())return null;if(d=null,f=null,"comment"==(n=(t.tokenize||j)(e,t))||"meta"==n||"variable"==n)return"="!==d&&"<="!==d||function e(t,n){return null!=t&&(t.scopekind===n||e(t.prev,n))}(r,"assignment")||(L(t,e.column()+d.length,"assignment","assignment"),null==r.align&&(r.align=!0)),n;null==r.align&&(r.align=!0);var o="assignment"==r.type&&k.test(d)&&r.prev&&r.prev.type===d;if(d==r.type||o){if(o&&(r=D(t)),r=D(t),")"==d){if(r&&"macro"===r.type)for(r=D(t);r&&("statement"==r.type||"assignment"==r.type);)r=D(t)}else if("}"==d&&r&&"statement"===r.type)for(;r&&"statement"==r.type;)r=D(t)}else if((";"==d||","==d)&&("statement"==r.type||"assignment"==r.type)||r.type&&N(f,r.type))for(r=D(t);r&&("statement"==r.type||"assignment"==r.type);)r=D(t);else if("{"==d)L(t,e.column(),"}");else if("["==d)L(t,e.column(),"]");else if("("==d)L(t,e.column(),")");else if(r&&"endcase"==r.type&&":"==d)L(t,e.column(),"statement","case");else if("newstatement"==d)L(t,e.column(),"statement",f);else if("newblock"==d){if("function"!=f||!r||"statement"!=r.type&&"endgroup"!=r.type)if("task"==f&&r&&"statement"==r.type);else if("class"==f&&r&&"statement"==r.type);else{var a=T[f];L(t,e.column(),a,f)}}else("newmacro"==d||f&&f.match(E))&&("newmacro"==d&&L(t,e.column(),"macro","macro"),f.match(O)&&(t.compilerDirectiveIndented-=i),f.match(S)&&(t.compilerDirectiveIndented+=i));return t.startOfLine=!1,n},indent:function(t,n){if(t.tokenize!=j&&null!=t.tokenize)return e.Pass;if(u.indent){var s=u.indent(t);if(s>=0)return s}var l=t.context,c=n&&n.charAt(0);"statement"==l.type&&"}"==c&&(l=l.prev);var d=!1,f=n.match(x);return f&&(d=N(f[0],l.type)),!a&&n.match(E)?n.match(O)?t.compilerDirectiveIndented-i:t.compilerDirectiveIndented:"statement"==l.type?l.indented+("{"==c?0:i):!k.test(l.type)&&"assignment"!=l.type||!l.align||o?")"!=l.type||d?l.indented+(d?0:r):l.indented+i:l.column+(d?0:1)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}})),e.defineMIME("text/x-verilog",{name:"verilog"}),e.defineMIME("text/x-systemverilog",{name:"verilog"});var t={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},n={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,i=/^[! ] /,o=/^[! ] */,a=/^\/[\/\*]/;function s(e,t,n){var r=t/3;return"tlv-"+e.tlvIndentationStyle[r]+"-"+n}e.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,l){var u=void 0;if(e.sol()&&!l.tlvInBlockComment){"\\"==e.peek()&&(u="def",e.skipToEnd(),e.string.match(/\\SV/)?l.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&0==e.pos&&0==l.indented&&(g=e.match(o,!1))&&(l.indented=g[0].length);var c=l.indented,d=c/3;if(d<=l.tlvIndentationStyle.length){var f=e.string.length==c,p=3*d;if(p<e.string.length){var h=e.string.slice(p),m=h[0];n[m]&&(g=h.match(r))&&t[g[1]]&&(c+=3,"\\"==m&&p>0||(l.tlvIndentationStyle[d]=n[m],d++))}if(!f)for(;l.tlvIndentationStyle.length>d;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=c}if(l.tlvCodeActive){var g,v=!1;if(void 0!==u)u+=" "+s(l,0,"scope-ident");else if(e.pos/3<l.tlvIndentationStyle.length&&(g=e.match(e.sol()?i:/^ /)))u="tlv-indent-"+(e.pos%2==0?"even":"odd")+" "+s(l,e.pos-3,"indent"),"!"==g[0].charAt(0)&&(u+=" tlv-alert-line-prefix"),function(e){var t;return(t=e.match(r,!1))&&t[2].length>0}(e)&&(u+=" "+s(l,e.pos,"before-scope-ident"));else if(l.tlvInBlockComment)e.match(/^.*?\*\//)?l.tlvInBlockComment=!1:e.skipToEnd(),u="comment";else if((g=e.match(a))&&!l.tlvInBlockComment)"//"==g[0]?e.skipToEnd():l.tlvInBlockComment=!0,u="comment";else if(g=e.match(r)){var y=g[1],b=g[2];t.hasOwnProperty(y)&&(b.length>0||e.eol())?(u=t[y],e.column()==l.indented&&(u+=" "+s(l,e.column(),"scope-ident"))):(e.backUp(e.current().length-1),u="tlv-default")}else e.match(/^\t+/)?u="tlv-tab":e.match(/^[\[\]{}\(\);\:]+/)?u="meta":(g=e.match(/^[mM]4([\+_])?[\w\d_]*/))?u="+"==g[1]?"tlv-m4-plus":"tlv-m4":e.match(/^ +/)?u=e.eol()?"error":"tlv-default":e.match(/^[\w\d_]+/)?u="number":(e.next(),u="tlv-default");v&&(u+=" tlv-statement")}else e.match(/^[mM]4([\w\d_]*)/)&&(u="tlv-m4");return u},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})}(n(5))},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(","),r=0;r<n.length;++r){var i=n[r].toUpperCase(),o=n[r].charAt(0).toUpperCase()+n[r].slice(1);t[n[r]]=!0,t[i]=!0,t[o]=!0}return t}function n(e){return e.eatWhile(/[\w\$_]/),"meta"}e.defineMode("vhdl",(function(e,r){var i,o=e.indentUnit,a=r.atoms||t("null"),s=r.hooks||{"`":n,$:n},l=r.multiLineStrings,u=t("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),c=t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),d=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;function f(e,t){var n,r=e.next();if(s[r]){var o=s[r](e,t);if(!1!==o)return o}if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(t.tokenize=f),"string-2"}),t.tokenize(e,t);if("'"==r)return t.tokenize=function(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"--"==r}return(o||!i&&!l)&&(n.tokenize=f),"string"}}(r),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/[\d']/.test(r))return e.eatWhile(/[\w\.']/),"number";if("-"==r&&e.eat("-"))return e.skipToEnd(),"comment";if(d.test(r))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_]/);var p=e.current();return u.propertyIsEnumerable(p.toLowerCase())?(c.propertyIsEnumerable(p)&&(i="newstatement"),"keyword"):a.propertyIsEnumerable(p)?"atom":"variable"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new p((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||f)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)h(t,e.column(),"}");else if("["==i)h(t,e.column(),"]");else if("("==i)h(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=m(t);for("}"==n.type&&(n=m(t));"statement"==n.type;)n=m(t)}else i==n.type?m(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&h(t,e.column(),"statement");else m(t);return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=f&&null!=e.tokenize)return 0;var n=t&&t.charAt(0),r=e.context,i=n==r.type;return"statement"==r.type?r.indented+("{"==n?0:o):r.align?r.column+(i?0:1):r.indented+(i?0:o)},electricChars:"{}"}})),e.defineMIME("text/x-vhdl","vhdl")}(n(5))},function(e,t,n){!function(e){"use strict";var t,r;t=n(5),n(273),n(272),n(225),n(745),n(271),n(752),n(753),n(749),n(747),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}})})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},function(e,t,n){!function(e){"use strict";e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:new RegExp(["align","block","br(_if|_table|_on_(cast|data|func|i31|null))?","call(_indirect|_ref)?","current_memory","\\bdata\\b","catch(_all)?","delegate","drop","elem","else","end","export","\\bextern\\b","\\bfunc\\b","global(\\.(get|set))?","if","import","local(\\.(get|set|tee))?","loop","module","mut","nop","offset","param","result","rethrow","return(_call(_indirect|_ref)?)?","select","start","table(\\.(size|get|set|size|grow|fill|init|copy))?","then","throw","try","type","unreachable","unwind","i(32|64)\\.(store(8|16)|(load(8|16)_[su]))","i64\\.(load32_[su]|store32)","[fi](32|64)\\.(const|load|store)","f(32|64)\\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)","i(32|64)\\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)","i64\\.extend_[su]_i32","i32\\.wrap_i64","i(32|64)\\.trunc_f(32|64)_[su]","f(32|64)\\.convert_i(32|64)_[su]","f64\\.promote_f32","f32\\.demote_f64","f32\\.reinterpret_i32","i32\\.reinterpret_f32","f64\\.reinterpret_i64","i64\\.reinterpret_f64","memory(\\.((atomic\\.(notify|wait(32|64)))|grow|size))?","i64.atomic\\.(load32_u|store32|rmw32\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)","i(32|64)\\.atomic\\.(load((8|16)_u)?|store(8|16)?|rmw(\\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))","v128\\.load(8x8|16x4|32x2)_[su]","v128\\.load(8|16|32|64)_splat","v128\\.(load|store)(8|16|32|64)_lane","v128\\.load(32|64)_zero","v128.(load|store|const|not|andnot|and|or|xor|bitselect|any_true)","i(8x16|16x8)\\.(extract_lane_[su]|(add|sub)_sat_[su]|avgr_u)","i(8x16|16x8|32x4|64x2)\\.(neg|add|sub|abs|shl|shr_[su]|all_true|bitmask|eq|ne|[lg][te]_s)","(i(8x16|16x8|32x4|64x2)|f(32x4|64x2)).(splat|replace_lane)","i(8x16|16x8|32x4)\\.(([lg][te]_u)|((min|max)_[su]))","f(32x4|64x2)\\.(neg|add|sub|abs|nearest|eq|ne|[lg][te]|sqrt|mul|div|min|max|ceil|floor|trunc)","[fi](32x4|64x2)\\.extract_lane","i8x16\\.(shuffle|swizzle|popcnt|narrow_i16x8_[su])","i16x8\\.(narrow_i32x4_[su]|mul|extadd_pairwise_i8x16_[su]|q15mulr_sat_s)","i16x8\\.(extend|extmul)_(low|high)_i8x16_[su]","i32x4\\.(mul|dot_i16x8_s|trunc_sat_f64x2_[su]_zero)","i32x4\\.((extend|extmul)_(low|high)_i16x8_|trunc_sat_f32x4_|extadd_pairwise_i16x8_)[su]","i64x2\\.(mul|(extend|extmul)_(low|high)_i32x4_[su])","f32x4\\.(convert_i32x4_[su]|demote_f64x2_zero)","f64x2\\.(promote_low_f32x4|convert_low_i32x4_[su])","\\bany\\b","array\\.len","(array|struct)(\\.(new_(default_)?with_rtt|get(_[su])?|set))?","\\beq\\b","field","i31\\.(new|get_[su])","\\bnull\\b","ref(\\.(([ai]s_(data|func|i31))|cast|eq|func|(is_|as_non_)?null|test))?","rtt(\\.(canon|sub))?"].join("|")),token:"keyword"},{regex:/\b((any|data|eq|extern|i31|func)ref|[fi](32|64)|i(8|16))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")}(n(5),n(226))},function(e,t,n){!function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],r=t(n),i=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],o=t(i),a=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],s=t(a),l=["true","false","Infinity","NaN","null"],u=t(l);e.registerHelper("hintWords","webidl",n.concat(i).concat(a).concat(l));var c=t(["callback","dictionary","enum","interface"]),d=t(["typedef"]),f=/^[:<=>?]/,p=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,v=/^"[^"]*"/,y=/^\/\*.*?\*\//,b=/^\/\*.*/,_=/^.*?\*\//;e.defineMode("webidl",(function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(_)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(y))return"comment";if(e.match(b))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(p)||e.match(h)))return"number";if(e.match(v))return"string";if(t.startDef&&e.match(m))return"def";if(t.endDef&&e.match(g))return t.endDef=!1,"def";if(e.match(s))return"keyword";if(e.match(o)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"variable-3"}return e.match(r)?"builtin":e.match(u)?"atom":e.match(m)?"variable":e.match(f)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=c.test(i),t.endDef=t.endDef||d.test(i)):t.startDef=!1}return n}}})),e.defineMIME("text/x-webidl","webidl")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("xquery",(function(){var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a<s;a++)i[o[a]]=e(o[a]);var l=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(a=0,s=l.length;a<s;a++)i[l[a]]=n;var u=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=u.length;a<s;a++)i[u[a]]=t;var c=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(a=0,s=c.length;a<s;a++)i[c[a]]=r;return i}();function t(e,t,n){return t.tokenize=n,n(e,t)}function n(d,m){var g=d.next(),v=!1,y=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(d);if("<"==g){if(d.match("!--",!0))return t(d,m,s);if(d.match("![CDATA",!1))return m.tokenize=l,"tag";if(d.match("?",!1))return t(d,m,u);var b=d.eat("/");d.eatSpace();for(var _,w="";_=d.eat(/[^\s\u00a0=<>\"\'\/?]/);)w+=_;return t(d,m,function(e,t){return function(r,i){return r.eatSpace(),t&&r.eat(">")?(h(i),i.tokenize=n,"tag"):(r.eat("/")||p(i,{type:"tag",name:e,tokenize:n}),r.eat(">")?(i.tokenize=n,"tag"):(i.tokenize=a,"tag"))}}(w,b))}if("{"==g)return p(m,{type:"codeblock"}),null;if("}"==g)return h(m),null;if(c(m))return">"==g?"tag":"/"==g&&d.eat(">")?(h(m),"tag"):"variable";if(/\d/.test(g))return d.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&d.eat(":"))return p(m,{type:"comment"}),t(d,m,r);if(y||'"'!==g&&"'"!==g){if("$"===g)return t(d,m,o);if(":"===g&&d.eat("="))return"keyword";if("("===g)return p(m,{type:"paren"}),null;if(")"===g)return h(m),null;if("["===g)return p(m,{type:"bracket"}),null;if("]"===g)return h(m),null;var x=e.propertyIsEnumerable(g)&&e[g];if(y&&'"'===g)for(;'"'!==d.next(););if(y&&"'"===g)for(;"'"!==d.next(););x||d.eatWhile(/[\w\$_-]/);var k=d.eat(":");!d.eat(":")&&k&&d.eatWhile(/[\w\$_-]/),d.match(/^[ \t]*\(/,!1)&&(v=!0);var E=d.current();return x=e.propertyIsEnumerable(E)&&e[E],v&&!x&&(x={type:"function_call",style:"variable def"}),function(e){return f(e,"xmlconstructor")}(m)?(h(m),"variable"):("element"!=E&&"attribute"!=E&&"axis_specifier"!=x.type||p(m,{type:"xmlconstructor"}),x?x.style:"variable")}return t(d,m,i(g))}function r(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){h(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function i(e,t){return function(r,o){var a;if(function(e){return f(e,"string")}(o)&&r.current()==e)return h(o),t&&(o.tokenize=t),"string";if(p(o,{type:"string",name:e,tokenize:i(e,t)}),r.match("{",!1)&&d(o))return o.tokenize=n,"string";for(;a=r.next();){if(a==e){h(o),t&&(o.tokenize=t);break}if(r.match("{",!1)&&d(o))return o.tokenize=n,"string"}return"string"}}function o(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function a(e,r){var o=e.next();return"/"==o&&e.eat(">")?(d(r)&&h(r),c(r)&&h(r),"tag"):">"==o?(d(r)&&h(r),"tag"):"="==o?null:'"'==o||"'"==o?t(e,r,i(o,a)):(d(r)||p(r,{type:"attribute",tokenize:a}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(h(r),r.tokenize=n),"attribute")}function s(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function l(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"comment meta"}function c(e){return f(e,"tag")}function d(e){return f(e,"attribute")}function f(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function p(e,t){e.stack.push(t)}function h(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}return{startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(:",blockCommentEnd:":)"}})),e.defineMIME("application/xquery","xquery")}(n(5))},function(e,t,n){!function(e){"use strict";e.defineMode("yacas",(function(t,n){var r=function(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),i="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",o=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),a=new RegExp(i),s=new RegExp(i+"?_"+i),l=new RegExp(i+"\\s*\\(");function u(e,t){var n;if('"'===(n=e.next()))return t.tokenize=c,t.tokenize(e,t);if("/"===n){if(e.eat("*"))return t.tokenize=d,t.tokenize(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var i=e.match(/^(\w+)\s*\(/,!1);null!==i&&r.hasOwnProperty(i[1])&&t.scopes.push("bodied");var u=f(t);if("bodied"===u&&"["===n&&t.scopes.pop(),"["!==n&&"{"!==n&&"("!==n||t.scopes.push(n),("["===(u=f(t))&&"]"===n||"{"===u&&"}"===n||"("===u&&")"===n)&&t.scopes.pop(),";"===n)for(;"bodied"===u;)t.scopes.pop(),u=f(t);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(o,!0,!1)?"number":e.match(s,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(l,!0,!1)?(e.backUp(1),"variable"):e.match(a,!0,!1)?"variable-2":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=u),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=u;break}n=r}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}return{startState:function(){return{tokenize:u,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(n,r){if(n.tokenize!==u&&null!==n.tokenize)return e.Pass;var i=0;return"]"!==r&&"];"!==r&&"}"!==r&&"};"!==r&&");"!==r||(i=-1),(n.scopes.length+i)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-yacas",{name:"yacas"})}(n(5))},function(e,t,n){var r;r=n(5),n(754),r.defineMode("yaml-frontmatter",(function(e,t){var n=r.getMode(e,"yaml"),i=r.getMode(e,t&&t.base||"gfm");function o(e){return 1==e.state?{mode:n,state:e.yaml}:{mode:i,state:e.inner}}return{startState:function(){return{state:0,yaml:null,inner:r.startState(i)}},copyState:function(e){return{state:e.state,yaml:e.yaml&&r.copyState(n,e.yaml),inner:r.copyState(i,e.inner)}},token:function(e,t){if(0==t.state)return e.match("---",!1)?(t.state=1,t.yaml=r.startState(n),n.token(e,t.yaml)):(t.state=2,i.token(e,t.inner));if(1==t.state){var o=e.sol()&&e.match(/(---|\.\.\.)/,!1),a=n.token(e,t.yaml);return o&&(t.state=2,t.yaml=null),a}return i.token(e,t.inner)},innerMode:o,indent:function(e,t,n){var i=o(e);return i.mode.indent?i.mode.indent(i.state,t,n):r.Pass},blankLine:function(e){var t=o(e);if(t.mode.blankLine)return t.mode.blankLine(t.state)}}}))},function(e,t,n){!function(e){"use strict";e.defineMode("z80",(function(e,t){var n,r,i=t.ez80;i?(n=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(n=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var o=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,a=/^(n?[zc]|p[oe]?|m)\b/i,s=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,l=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var u;if(e.eatWhile(/\w/)){if(i&&e.eat(".")&&e.eatWhile(/\w/),u=e.current(),!e.indentation())return e.match(l)?"number":null;if((1==t.context||4==t.context)&&o.test(u))return t.context=4,"var2";if(2==t.context&&a.test(u))return t.context=4,"var3";if(n.test(u))return t.context=1,"keyword";if(r.test(u))return t.context=2,"keyword";if(4==t.context&&l.test(u))return"number";if(s.test(u))return"error"}else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(u=e.next())&&'"'!=u;)"\\"==u&&e.next();return"string"}if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}})),e.defineMIME("text/x-z80","z80"),e.defineMIME("text/x-ez80",{name:"z80",ez80:!0})}(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(307)),i=(l(n(0)),l(n(2))),o=n(4),a=n(17),s=n(9);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,s.jsx)(a.WidgetPreviewContainer,null,(0,s.jsx)("pre",null,(0,s.jsx)("code",null,function(e,t){return(0,r.default)(e)?e:o.Map.isMap(e)?e.get(t.getIn(["keys","code"],"code"),""):""}(e.value,e.field))))}u.propTypes={value:i.default.node};var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={properties:{default_language:{type:"string"},allow_language_selection:{type:"boolean"},output_code_only:{type:"boolean"},keys:{type:"object",properties:{code:{type:"string"},lang:{type:"string"}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsWidgetColorString=void 0;var r=o(n(1879)),i=o(n(1889));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={Widget:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({name:"color",controlComponent:r.default,previewComponent:i.default},e)},controlComponent:r.default,previewComponent:i.default};t.NetlifyCmsWidgetColorString=u;var c=u;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21)),i=c(n(0)),o=c(n(2)),a=c(n(1924)),s=c(n(1888)),l=n(17),u=n(9);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(0,u.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},(0,u.jsx)("path",{fill:"rgb(122, 130, 145)",d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))}const p=(0,r.default)("div",{target:"e10f1w7h0",label:"ClearButton"})("position:absolute;right:6px;z-index:",l.zIndex.zIndex1000,";padding:8px;margin-top:11px;"),h=(0,r.default)("div",{target:"e10f1w7h1",label:"ClearButtonWrapper"})({name:"1jke4yk",styles:"position:relative;width:100%;"}),m=(0,r.default)("div",{target:"e10f1w7h2",label:"ColorSwatchBackground"})("position:absolute;z-index:",l.zIndex.zIndex1,";background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==');height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;"),g=(0,r.default)("div",{target:"e10f1w7h3",label:"ColorSwatch"})("position:absolute;z-index:",l.zIndex.zIndex2,";background:",e=>e.background,";cursor:pointer;height:38px;width:48px;margin-top:10px;margin-left:10px;border-radius:5px;border:2px solid rgb(223,223,227);text-align:center;font-size:27px;line-height:1;padding-top:4px;user-select:none;color:",e=>e.color,";"),v=(0,r.default)("div",{target:"e10f1w7h4",label:"ColorPickerContainer"})("position:absolute;z-index:",l.zIndex.zIndex1000,";margin-top:48px;margin-left:12px;"),y=(0,r.default)("div",{target:"e10f1w7h5",label:"ClickOutsideDiv"})({name:"10i0qbj",styles:"position:fixed;top:0;right:0;bottom:0;left:0;"});class b extends i.default.Component{constructor(){super(...arguments),d(this,"state",{showColorPicker:!1}),d(this,"handleClick",()=>{this.setState({showColorPicker:!this.state.showColorPicker})}),d(this,"handleClear",()=>{this.props.onChange("")}),d(this,"handleClose",()=>{this.setState({showColorPicker:!1})}),d(this,"handleChange",e=>{const t=e.rgb.a<1?`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`:e.hex;this.props.onChange(t)})}render(){const{forID:e,value:t,field:n,onChange:r,classNameWrapper:o,setActiveStyle:l,setInactiveStyle:c}=this.props,d=n.get("allowInput",!1),b=!d&&t;return(0,u.jsx)(i.default.Fragment,null," ",b&&(0,u.jsx)(h,null,(0,u.jsx)(p,{onClick:this.handleClear},(0,u.jsx)(f,null))),(0,u.jsx)(m,null),(0,u.jsx)(g,{background:(0,s.default)(this.props.value)?this.props.value:"#fff",color:(0,s.default)(this.props.value)?"rgba(255, 255, 255, 0)":"rgb(223, 223, 227)",onClick:this.handleClick},"?"),this.state.showColorPicker&&(0,u.jsx)(v,null,(0,u.jsx)(y,{onClick:this.handleClose}),(0,u.jsx)(a.default,{color:t||"",onChange:this.handleChange,disableAlpha:!n.get("enableAlpha",!1)})),(0,u.jsx)("input",{type:"text",id:e,className:o,value:t||"",onChange:e=>r(e.target.value),onFocus:l,onBlur:c,style:{paddingLeft:"75px",paddingRight:"70px",color:!d&&"#bbb"},onClick:d?void 0:this.handleClick,readOnly:!d}))}}t.default=b,d(b,"propTypes",{onChange:o.default.func.isRequired,forID:o.default.string,value:o.default.node,classNameWrapper:o.default.string.isRequired,setActiveStyle:o.default.func.isRequired,setInactiveStyle:o.default.func.isRequired}),d(b,"defaultProps",{value:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(307)),i=s(n(472)),o=s(n(244)),a=s(n(167));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},function(e,t,n){var r=n(214);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(472)),i=a(n(1883)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=s},function(e,t,n){var r=n(309);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(472),o=(r=i)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,u;s(this,r);for(var c=arguments.length,d=Array(c),f=0;f<c;f++)d[f]=arguments[f];return o=u=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),u.state={hover:!1},u.handleMouseOver=function(){return u.setState({hover:!0})},u.handleMouseOut=function(){return u.setState({hover:!1})},u.render=function(){return a.default.createElement(t,{onMouseOver:u.handleMouseOver,onMouseOut:u.handleMouseOut},a.default.createElement(e,i({},u.props,u.state)))},l(u,o)}return u(r,n),r}(a.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,u;s(this,r);for(var c=arguments.length,d=Array(c),f=0;f<c;f++)d[f]=arguments[f];return o=u=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),u.state={active:!1},u.handleMouseDown=function(){return u.setState({active:!0})},u.handleMouseUp=function(){return u.setState({active:!1})},u.render=function(){return a.default.createElement(t,{onMouseDown:u.handleMouseDown,onMouseUp:u.handleMouseUp},a.default.createElement(e,i({},u.props,u.state)))},l(u,o)}return u(r,n),r}(a.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"validateHTMLColorName",(function(){return a})),n.d(t,"validateHTMLColorSpecialName",(function(){return s})),n.d(t,"validateHTMLColorHex",(function(){return l})),n.d(t,"validateHTMLColorRgb",(function(){return u})),n.d(t,"validateHTMLColorHsl",(function(){return f})),n.d(t,"validateHTMLColorHwb",(function(){return p})),n.d(t,"validateHTMLColorLab",(function(){return h})),n.d(t,"validateHTMLColor",(function(){return m}));const r=e=>e&&"string"==typeof e,i=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenrod","DarkGray","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","Goldenrod","Gray","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenrodYellow","LightGray","LightGreen","LightPink","LightSalmon","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquamarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenrod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],o=["currentColor","inherit","transparent"],a=e=>{let t=!1;return r(e)&&i.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},s=e=>{let t=!1;return r(e)&&o.map(n=>(e.toLowerCase()===n.toLowerCase()&&(t=!0),null)),t},l=e=>{if(r(e)){const t=/^#([\da-f]{3}){1,2}$|^#([\da-f]{4}){1,2}$/i;return e&&t.test(e)}},u=e=>{if(r(e)){const t=/(rgb)a?\((\s*\d+%?\s*?,?\s*){2}(\s*\d+%?\s*?,?\s*\)?)(\s*,?\s*\/?\s*(0?\.?\d+%?\s*)?|1|0)?\)$/i;return e&&t.test(e)}},c="(([0-9]|[1-9][0-9]|100)%)",d=`\\s*?\\)?)(\\s*?(\\/?)\\s+(((${c}))|(0?(\\.\\d+)?)|1))?\\s*?\\)$`,f=e=>{if(r(e)){const t=new RegExp(`(hsl)a?\\((\\s*?((-?([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9]|360)(deg)?)|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-9][0-9]|400)gra)|((([0-5])?\\.\\d+|6\\.([0-9]|1[0-9]|2[0-8])|[0-6])rad)|((0?(\\.\\d+)?|1)turn))((\\s*,\\s*)|(\\s+)))(\\s*?(0|${c})((\\s*,\\s*)|(\\s+)))(\\s*?(0|${c})\\s*?\\)?)(\\s*?(\\/?|,?)\\s*?(((${c}))|(0?(\\.\\d+)?)|1))?\\)$`);return e&&t.test(e)}},p=e=>{if(r(e)){const t=new RegExp(`(hwb\\(\\s*?(-?([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9]|360)(deg)?)\\s+)((0|${c})\\s+)((0|${c})${d}`);return e&&t.test(e)}},h=e=>{if(r(e)){const t="(-?(([0-9]|[1-9][0-9]|1[0-5][0-9])(\\.\\d+)??|160))",n=new RegExp(`(lab\\(\\s*?((\\d*(\\.\\d+)?)%)\\s+${t}\\s+${t}${d}`);return e&&n.test(e)}},m=e=>!!(e&&l(e)||u(e)||f(e)||p(e)||h(e));t.default=e=>!!(e&&l(e)||a(e)||s(e)||u(e)||f(e)||p(e)||h(e))}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(n(0));var r=a(n(2)),i=n(17),o=n(9);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){let{value:t}=e;return(0,o.jsx)(i.WidgetPreviewContainer,null,t)}s.propTypes={value:r.default.node};var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NetlifyCmsEditorComponentImage=void 0;(r=n(0))&&r.__esModule;var r,i=n(9);const o={label:"Image",id:"image",fromBlock:e=>e&&{image:e[2],alt:e[1],title:e[4]},toBlock:e=>{let{alt:t,image:n,title:r}=e;return`![${t||""}](${n||""}${r?` "${r.replace(/"/g,'\\"')}"`:""})`},toPreview:(e,t,n)=>{let{alt:r,image:o,title:a}=e;const s=t(o,null==n?void 0:n.find(e=>"image"===e.get("widget")));return(0,i.jsx)("img",{src:s||"",alt:r||"",title:a||""})},pattern:/^!\[(.*)\]\((.*?)(\s"(.*)")?\)$/,fields:[{label:"Image",name:"image",widget:"image",media_library:{allow_multiple:!1}},{label:"Alt Text",name:"alt"},{label:"Title",name:"title"}]},a=o;t.NetlifyCmsEditorComponentImage=a;var s=o;t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bg",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"da",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"de",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"en",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"es",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"gr",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"he",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"hr",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"it",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"nb_no",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"nn_no",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"ro",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"th",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"zh_Hans",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"zh_Hant",{enumerable:!0,get:function(){return C.default}});var r=I(n(1892)),i=I(n(1893)),o=I(n(1894)),a=I(n(1895)),s=I(n(1896)),l=I(n(1897)),u=I(n(1898)),c=I(n(1899)),d=I(n(1900)),f=I(n(1901)),p=I(n(1902)),h=I(n(1903)),m=I(n(1904)),g=I(n(1905)),v=I(n(1906)),y=I(n(1907)),b=I(n(1908)),_=I(n(1909)),w=I(n(1910)),x=I(n(1911)),k=I(n(1912)),E=I(n(1913)),S=I(n(1914)),O=I(n(1915)),C=I(n(1916)),T=I(n(1917)),A=I(n(1918)),P=I(n(1919)),R=I(n(1920)),j=I(n(1921));function I(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Přihlásit",loggingIn:"Přihlašování…",loginWithNetlifyIdentity:"Přihlásit pomocí Netlify Identity",loginWithAzure:"Přihlásit pomocí Azure",loginWithBitbucket:"Přihlásit pomocí Bitbucket",loginWithGitHub:"Přihlásit pomocí GitHub",loginWithGitLab:"Přihlásit pomocí GitLab",errors:{email:"Vyplňte e-mailovou adresu.",password:"Vyplňte heslo.",identitySettings:"Nastavení identity nenalezeno. Používáte-li git-gateway server nezapomeňte aktivovat službu Identity a Git Gateway."}},app:{header:{content:"Obsah",workflow:"Workflow",media:"Média",quickAdd:"Přidat"},app:{errorHeader:"Chyba při načítání CMS konfigurace",configErrors:"Chyba konfigurace",checkConfigYml:"Zkontrolujte soubor config.yml.",loadingConfig:"Načítání konfigurace…",waitingBackend:"Čekání na server…"},notFoundPage:{header:"Nenalezeno"}},collection:{sidebar:{collections:"Kolekce",allCollections:"Všechny kolekce",searchAll:"Hledat",searchIn:"Hledat v"},collectionTop:{sortBy:"Seřadit podle",viewAs:"Zobrazit jako",newButton:"Nový %{collectionLabel}",ascending:"Vzestupné",descending:"Sestupné",searchResults:'Výsledky vyhledávání pro "%{searchTerm}"',searchResultsInCollection:'Výsledky vyhledávání pro "%{searchTerm}" v kolekci %{collection}',filterBy:"Filtrovat podle",groupBy:"Seskupit podle"},entries:{loadingEntries:"Načítání záznamů",cachingEntries:"Úkládání záznamů do mezipaměti",longerLoading:"Načítání může trvat několik minut",noEntries:"Žádné záznamy"},groups:{other:"Ostatní",negateLabel:"Není %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Poslední aktualizace"}}},editor:{editorControl:{field:{optional:"volitelný"}},editorControlPane:{widget:{required:"%{fieldLabel} je povinný.",regexPattern:"%{fieldLabel} nesouhlasí s předepsaným vzorem: %{pattern}.",processing:"%{fieldLabel} se zpracovává.",range:"%{fieldLabel} musí být mezi %{minValue} a %{maxValue}.",min:"%{fieldLabel} musí být alespoň %{minValue}.",max:"%{fieldLabel} musí být %{maxValue} nebo méně.",rangeCount:"%{fieldLabel} musí mít %{minCount} až %{maxCount} položek.",rangeCountExact:"%{fieldLabel} musí mít přesně %{count} položek.",rangeMin:"%{fieldLabel} musí mít nejméně %{minCount} položky.",rangeMax:"%{fieldLabel} musí mít %{maxCount} nebo méně položek.",invalidPath:"'%{path}' není platnou cestou.",pathExists:"Cesta '%{path}' už existuje."},i18n:{writingInLocale:"Psát v %{locale}"}},editor:{onLeavePage:"Chcete opravdu opustit tuto stránku?",onUpdatingWithUnsavedChanges:"Máte neuložené změny. Uložte je prosím před změnou statusu.",onPublishingNotReady:"Změňte stav na „Připraveno“ před publikováním.",onPublishingWithUnsavedChanges:"Máte neuložené změny, prosím uložte je před publikováním.",onPublishing:"Chcete opravdu publikovat tento záznam?",onUnpublishing:"Chcete opravdu zrušit publikování tohoto záznamu?",onDeleteWithUnsavedChanges:"Chcete opravdu vymazat tento publikovaný záznam a všechny neuložené změny z této relace?",onDeletePublishedEntry:"Chcete opravdu smazat tento publikovaný záznam?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tato akce vymaže všechny nepublikované změny v tomto záznamu a také všechny neuložené změny z této relace. Chcete záznam skutečně vymazat?",onDeleteUnpublishedChanges:"Všechny nepublivkoané změny v tomto záznamu budou vymazány. Chcete ho skuteně vymazat?",loadingEntry:"Načítání záznamu…",confirmLoadBackup:"Lokální kopie tohoto záznamu byla nalezena, chcete ji použít?"},editorInterface:{toggleI18n:"Přepnout lokalizaci",togglePreview:"Přepnout náhled",toggleScrollSync:"Sladit skrolování"},editorToolbar:{publishing:"Publikování…",publish:"Publikovat",published:"Publikovaný",unpublish:"Zrušit publikování",duplicate:"Duplikovat",unpublishing:"Rušení publikování…",publishAndCreateNew:"Publikovat a vytvořit nový",publishAndDuplicate:"Publikovat a duplikovat",deleteUnpublishedChanges:"Vymazat nepublikované změny",deleteUnpublishedEntry:"Vymazat nepublikovaný záznam",deletePublishedEntry:"Vymazat publikovaný záznam",deleteEntry:"Vymazat záznam",saving:"Ukládání…",save:"Uložit",deleting:"Vymazávání…",updating:"Aktualizace…",status:"Status: %{status}",backCollection:" Píšete v kolekci %{collectionLabel}",unsavedChanges:"Neuložené změny",changesSaved:"Změny uloženy",draft:"Koncept",inReview:"V revizi",ready:"Připraveno",publishNow:"Publikovat teď",deployPreviewPendingButtonLabel:"Zkontrolovat náhled",deployPreviewButtonLabel:"Zobrazit náhled",deployButtonLabel:"Zobrazit na webu"},editorWidgets:{markdown:{bold:"Tučně",italic:"Kurzíva",code:"Kód",link:"Odkaz",linkPrompt:"Zadejte URL odkazu",headings:"Nadpisy",quote:"Citovat",bulletedList:"Odrážkový seznam",numberedList:"Číslovaný seznam",addComponent:"Přidat součástku",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Vyberte obrázek",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL obrázku",chooseDifferent:"Vyberte jiný obrázek",remove:"Odstranit obrázek"},file:{choose:"Vyberte soubor",chooseUrl:"Přidat z URL",replaceUrl:"Nahradit z URL",promptUrl:"Zadejte URL souboru",chooseDifferent:"Vyberte jiný soubor",remove:"Odebrat soubor"},unknownControl:{noControl:"Žádné ovládání pro widget '%{widget}'."},unknownPreview:{noPreview:"Žádný náhled pro widget '%{widget}'."},headingOptions:{headingOne:"Nadpis 1",headingTwo:"Nadpis 2",headingThree:"Nadpis 3",headingFour:"Nadpis 4",headingFive:"Nadpis 5",headingSix:"Nadpis 6"},datetime:{now:"Teď"}}},mediaLibrary:{mediaLibraryCard:{draft:"Koncept",copy:"Kopírovat",copyUrl:"Kopírovat URL",copyPath:"Kopírovat cestu",copyName:"Kopírovat název",copied:"Zkopírováno"},mediaLibrary:{onDelete:"Chcete skutečně vymazat označená média?",fileTooLarge:"Soubor je příliš velký.\nSoubor musí být menší než %{size} kB."},mediaLibraryModal:{loading:"Načítání…",noResults:"Nic nenalezeno.",noAssetsFound:"Média nenalezena.",noImagesFound:"Obrázky nenalezeny.",private:"Soukromé ",images:"Obrázky",mediaAssets:"Média",search:"Hledat…",uploading:"Nahrávání…",upload:"Nahrát nový",download:"Stáhnout",deleting:"Vymazávání…",deleteSelected:"Smazat označené",chooseSelected:"Vybrat označené"}},ui:{default:{goBackToSite:"Vrátit se na stránku"},errorBoundary:{title:"Chyba",details:"Nastala chyba prosím ",reportIt:"nahlašte ji.",detailsHeading:"Detaily",privacyWarning:"Při otevření problému budou předvyplněny ladící data a chybová zpráva.\nProsím zkontrolujte, jestli jsou informace správné, a případně odstraňte citlivé údaje.",recoveredEntry:{heading:"Nalezený dokument",warning:"Prosím zkopírujte dokument do schránky před tím než odejte z této stránky!",copyButtonLabel:"Zkopírovat do schránky"}},settingsDropdown:{logOut:"Odhlásit"},toast:{onFailToLoadEntries:"Chyba při načítání záznamu: %{details}",onFailToLoadDeployPreview:"Chyba při načítání náhledu: %{details}",onFailToPersist:"Chyba při ukládání záznamu: %{details}",onFailToDelete:"Chyba při vymazávání záznamu: %{details}",onFailToUpdateStatus:"Chyba při změně stavu záznamu: %{details}",missingRequiredField:"Vynechali jste povinné pole. Prosím vyplňte ho.",entrySaved:"Záznam uložen",entryPublished:"Záznam publikován",entryUnpublished:"Publikování záznamu zrušeno",onFailToPublishEntry:"Chyba při publikování záznamu: %{details}",onFailToUnpublishEntry:"Chyba při rušení publikování záznamu: %{details}",entryUpdated:"Stav záznamu byl změněn",onDeleteUnpublishedChanges:"Nepublikované změny byly smazány",onFailToAuth:"%{details}",onLoggedOut:"Byli jste odhlášeni, prosím zálohujte všechna data a znova se přihlašte",onBackendDown:"Backend zaznamenal výpadek. Podívejte se do %{details} pro více informací."}},workflow:{workflow:{loading:"Načítání workflow záznamů",workflowHeading:"Schvalovací Workflow",newPost:"Nový post",description:"%{smart_count} záznam čeká na schválení, %{readyCount} připraven k publikaci. |||| %{smart_count} čeká na schválení, %{readyCount} připraveno k publikaci. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} (%{author})",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Vymazat změny",deleteNewEntry:"Vymazat nový záznam",publishChanges:"Publikovat změny",publishNewEntry:"Publikovat nový záznam"},workflowList:{onDeleteEntry:"Opravdu chcete smazat tento záznam?",onPublishingNotReadyEntry:'Pouze položky se statusem "Připraveno" mohou být publikováno. Pro umožnění publikace musíte přetáhnout kartu do sloupce "Připraveno"',onPublishEntry:"Opravdu chcete publikovat tento záznam?",draftHeader:"Koncepty",inReviewHeader:"V revizi",readyHeader:"Připraveno",currentEntries:"%{smart_count} záznam |||| %{smart_count} záznamů"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Log ind",loggingIn:"Logger ind...",loginWithNetlifyIdentity:"Log ind med Netlify Identity",loginWithAzure:"Log ing med Azure",loginWithBitbucket:"Log ind med Bitbucket",loginWithGitHub:"Log ind med GitHub",loginWithGitLab:"Log ind med GitLab",errors:{email:"Vær sikker på du har indtastet din e-mail.",password:"Indtast dit kodeord.",identitySettings:"Kunne ikke tilgå identity opsætning. Ved brug af git-gateway som bagvedliggende service, sørg for at aktivere Identity service og Git Gateway."}},app:{header:{content:"Indhold",workflow:"Arbejdsgang",media:"Medier",quickAdd:"Hurtig opret"},app:{errorHeader:"Fejl ved indlæsning af CMS opsætningen",configErrors:"Opsætningsfejl",checkConfigYml:"Kontroller din config.yml fil.",loadingConfig:"Indlæser opsætning...",waitingBackend:"Venter på bagvedliggende service..."},notFoundPage:{header:"Ikke fundet"}},collection:{sidebar:{collections:"Samlinger",allCollections:"Alle samlinger",searchAll:"Søg i alt",searchIn:"Søg i"},collectionTop:{sortBy:"Sorter efter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Faldende",searchResults:'Søgeresultater for "%{searchTerm}"',searchResultsInCollection:'Søgeresultater for "%{searchTerm}" i %{collection}',filterBy:"Filtrer efter",groupBy:"Grupper efter"},entries:{loadingEntries:"Indlæser dokumenter...",cachingEntries:"Caching af dokumenter...",longerLoading:"Dette kan tage adskillige minutter",noEntries:"Ingen dokumenter"},groups:{other:"Anden",negateLabel:"Ikke %{label}"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Opdateret "}}},editor:{editorControl:{field:{optional:"kan udelades"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrævet.",regexPattern:"%{fieldLabel} matchede ikke: %{pattern}.",processing:"%{fieldLabel} behandles.",range:"%{fieldLabel} skal være mellem %{minValue} og %{maxValue}.",min:"%{fieldLabel} skal være mindst %{minValue}.",max:"%{fieldLabel} være være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} skal have mellem %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} skal have præcis %{count} element(er).",rangeMin:"%{fieldLabel} skal have mindst %{minCount} element(er).",rangeMax:"%{fieldLabel} skal have %{maxCount} eller færre element(er).",invalidPath:"'%{path}' er ikke en gyldig sti",pathExists:"Stien '%{path}' findes allerede"},i18n:{writingInLocale:"Skriver på %{locale}"}},editor:{onLeavePage:"Er du sikker på at du vil forlade siden?",onUpdatingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem disse før status ændres.",onPublishingNotReady:'Skift status til "Klar" inden publicering.',onPublishingWithUnsavedChanges:"Du har ændringer der ikke er gemt, gem inden publicing.",onPublishing:"Er du sikker på at du vil publicere dette dokument?",onUnpublishing:"Er du sikker på at du vil afpublicere dette dokument?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette dette tidliere publiceret dokument, samt dine nuværende ugemte ændringer fra denne session?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette tidliere publiceret dokument?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet ligesom dine nuværende ugemte ændringer fra denne session. Er du sikker på at du vil slette?",onDeleteUnpublishedChanges:"Alle ikke publicerede ændringer til dette dokument vil blive slettet. Er du sikker på at du vil slette?",loadingEntry:"Indlæser dokument...",confirmLoadBackup:"En lokal sikkerhedskopi blev gendannet for dette dokument, vil du anvende denne?"},editorToolbar:{publishing:"Publicerer...",publish:"Publicer",published:"Publiceret",unpublish:"Afpublicer",duplicate:"Kopier",unpublishing:"Afpublicerer...",publishAndCreateNew:"Publicer og opret ny",publishAndDuplicate:"Publicer og kopier",deleteUnpublishedChanges:"Slet upublicerede ændringer",deleteUnpublishedEntry:"Slet upubliceret dokument",deletePublishedEntry:"Slet publiceret dokument",deleteEntry:"Slet dokument",saving:"Gemmer...",save:"Gem",deleting:"Sletter...",updating:"Updaterer...",status:"Status: %{status}",backCollection:" Skriver til %{collectionLabel} samlingen",unsavedChanges:"Ugemte ændringer",changesSaved:"Ændringer gemt",draft:"Kladder",inReview:"Til gennemsyn",ready:"Klar",publishNow:"Publicer nu",deployPreviewPendingButtonLabel:"Lav preview",deployPreviewButtonLabel:"Vis preview",deployButtonLabel:"Vis live"},editorWidgets:{markdown:{bold:"Fed",italic:"Kursiv",code:"Kode",link:"Link",linkPrompt:"Indtast URL for link",headings:"Overskrifter",quote:"Citat",bulletedList:"Punktopstilling",numberedList:"Nummeret liste",addComponent:"Tilføj komponent",richText:"Formatteret tekst",markdown:"Markdown"},image:{choose:"Vælg et billede",chooseDifferent:"Vælg et andet billede",remove:"Fjern billede"},file:{choose:"Vælg fil",chooseDifferent:"Vælg en anden fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen kontrol finden for '%{widget}'."},unknownPreview:{noPreview:"Ingen preview for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nu"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladde"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette det valgte medie?",fileTooLarge:"Filen er for stor.\nOpsætningen tillader ikke filer større end %{size} kB."},mediaLibraryModal:{loading:"Indlæser...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer fundet.",noImagesFound:"Ingen billeder fundet.",private:"Privat ",images:"Billeder",mediaAssets:"Medie elementer",search:"Søg...",uploading:"Uploader...",upload:"Upload",download:"Download",deleting:"Slet...",deleteSelected:"Slet valgte",chooseSelected:"Anvend valgte"}},ui:{default:{goBackToSite:"Tilbage til hjemmesiden"},errorBoundary:{title:"Fejl",details:"Der opstod en fejl - venligst ",reportIt:"opret et issue på GitHub.",detailsHeading:"Detalger",privacyWarning:"Ved at oprette et issue forudfyldes det med fejlbeskeden og data til debugging.\nKontroller venligst at informationerne er korrekte og fjern eventuelle følsomme data.",recoveredEntry:{heading:"Gendannet dokument",warning:"Kopier dette et sted hen inden du navigerer væk!",copyButtonLabel:"Kopier til udklipsholder"}},settingsDropdown:{logOut:"Log af"},toast:{onFailToLoadEntries:"Fejl ved indlæsning af dokumenter: %{details}",onFailToLoadDeployPreview:"Preview kunne ikke indlæses: %{details}",onFailToPersist:"Dokumentet kunne ikke gemmes: %{details}",onFailToDelete:"Dokumentet kunne ikke slettes: %{details}",onFailToUpdateStatus:"Status kunne ikke opdateres: %{details}",missingRequiredField:"Ups, du mangler et påkrævet felt. Udfyld de påkrævede felter før dokumentet gemmes.",entrySaved:"Dokumentet er gemt",entryPublished:"Dokumentet er publiceret ",entryUnpublished:"Dokumentet er afpubliceret",onFailToPublishEntry:"Kunne ikke publicere på grund af en fejl: %{details}",onFailToUnpublishEntry:"Kunne ikke afpublicere på grund af en fejl: %{details}",entryUpdated:"Dokumentstatus er opdateret",onDeleteUnpublishedChanges:"Upublicerede ændringer blev slettet",onFailToAuth:"%{details}",onLoggedOut:"Du er blevet logget ind, gem venligst evt. ændringer og log på igen",onBackendDown:"Den bagvedliggende service er ikke tilgængelig i øjeblikket. Se %{details} for mere information"}},workflow:{workflow:{loading:"Indlæser dokumenter i redaktionel arbejdsgang",workflowHeading:"Redaktionel arbejdsgang",newPost:"Nyt indlæg",description:"%{smart_count} dokumenter afventer gennemsyn, %{readyCount} er klar til live. |||| %{smart_count} dokumenter afventer gennemsyn, %{readyCount} klar til go live. ",dateFormat:"D. MMMM"},workflowCard:{lastChange:"%{date} af %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"af %{author}",deleteChanges:"Slet ændringer",deleteNewEntry:"Slet nye dokumenter",publishChanges:"Publicer ændringer",publishNewEntry:"Publicer nye dokumenter"},workflowList:{onDeleteEntry:"Er du sikker på at du vil slette dette dokument?",onPublishingNotReadyEntry:'Kun dokumenter med "Klar" status kan publiceres. Træk kortet til "Klar" kolonnen for at tillade publicering.',onPublishEntry:"Er du sikker på at du vil publicere dokumentet?",draftHeader:"Kladder",inReviewHeader:"Til gennemsyn",readyHeader:"Klar",currentEntries:"%{smart_count} dokument |||| %{smart_count} dokumenter"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Login",loggingIn:"Sie werden eingeloggt...",loginWithNetlifyIdentity:"Mit Netlify Identity einloggen",loginWithAzure:"Mit Azure einloggen",loginWithBitbucket:"Mit Bitbucket einloggen",loginWithGitHub:"Mit GitHub einloggen",loginWithGitLab:"Mit GitLab einloggen",errors:{email:"Stellen Sie sicher, Ihre E-Mail-Adresse einzugeben.",password:"Bitte geben Sie Ihr Passwort ein.",identitySettings:"Identity Einstellungen konnten nicht abgerufen werden. Stellen Sie bei der Verwendung des Git-Gateway Backends sicher, den Identity Service und das Git Gateway zu aktivieren."}},app:{header:{content:"Inhalt",workflow:"Arbeitsablauf",media:"Medien",quickAdd:"Schnell-Erstellung"},app:{errorHeader:"Fehler beim Laden der CMS-Konfiguration.",configErrors:"Konfigurationsfehler",checkConfigYml:"Überprüfen Sie die config.yml Konfigurationsdatei.",loadingConfig:"Konfiguration laden...",waitingBackend:"Auf Server warten..."},notFoundPage:{header:"Nicht gefunden"}},collection:{sidebar:{collections:"Inhaltstypen",allCollections:"Allen Inhaltstypen",searchAll:"Alles durchsuchen",searchIn:"Suchen in"},collectionTop:{sortBy:"Sortieren nach",viewAs:"Anzeigen als",newButton:"Neue(r/s) %{collectionLabel}",ascending:"Aufsteigend",descending:"Absteigend",searchResults:'Suchergebnisse für "%{searchTerm}"',searchResultsInCollection:'Suchergebnisse für "%{searchTerm}" in %{collection}',filterBy:"Filtern nach",groupBy:"Gruppieren nach"},entries:{loadingEntries:"Beiträge laden",cachingEntries:"Beiträge zwischenspeichern",longerLoading:"Diese Aktion kann einige Minuten in Anspruch nehmen",noEntries:"Keine Beiträge"},groups:{other:"Andere",negateLabel:"Nicht %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Änderungsdatum"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} ist erforderlich.",regexPattern:"%{fieldLabel} entspricht nicht dem Muster: %{pattern}.",processing:"%{fieldLabel} wird verarbeitet.",range:"%{fieldLabel} muss zwischen %{minValue} und %{maxValue} liegen.",min:"%{fieldLabel} muss größer als %{minValue} sein.",max:"%{fieldLabel} darf nicht größer als %{maxValue} sein.",rangeCount:"%{fieldLabel} muss %{minCount} bis %{maxCount} Element(e) enthalten.",rangeCountExact:"%{fieldLabel} muss exakt %{count} Element(e) enthalten.",rangeMin:"%{fieldLabel} muss mindestens %{minCount} Element(e) enthalten.",rangeMax:"%{fieldLabel} darf maximal %{maxCount} Element(e) enthalten.",invalidPath:"'%{path}' ist kein gültiger Pfad",pathExists:"Pfad '%{path}' existiert bereits"},i18n:{writingInLocale:"Aktuelle Sprache: %{locale}",copyFromLocale:"Aus anderer Sprache übernehmen",copyFromLocaleConfirm:"Wollen Sie wirklich die Daten aus der Sprache %{locale} übernehmen?\nAlle bishergen Inhalte werden überschrieben."}},editor:{onLeavePage:"Möchten Sie diese Seite wirklich verlassen?",onUpdatingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speichern Sie diese, bevor Sie den Status aktualisieren.",onPublishingNotReady:'Bitte setzten die den Status vor dem Veröffentlichen auf "Abgeschlossen".',onPublishingWithUnsavedChanges:"Es sind noch ungespeicherte Änderungen vorhanden. Bitte speicheren Sie vor dem Veröffentlichen.",onPublishing:"Soll dieser Beitrag wirklich veröffentlicht werden?",onUnpublishing:"Soll die Veröffentlichung dieses Beitrags wirklich zurückgezogen werden?",onDeleteWithUnsavedChanges:"Möchten Sie diesen veröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeletePublishedEntry:"Soll dieser veröffentlichte Beitrag wirklich gelöscht werden?",onDeleteUnpublishedChangesWithUnsavedChanges:"Möchten Sie diesen unveröffentlichten Beitrag, sowie Ihre nicht gespeicherten Änderungen löschen?",onDeleteUnpublishedChanges:"Alle unveröffentlichten Änderungen werden gelöscht. Möchten Sie wirklich löschen?",loadingEntry:"Beitrag laden...",confirmLoadBackup:"Für diesen Beitrag ist ein lokales Backup vorhanden. Möchten Sie dieses benutzen?"},editorInterface:{toggleI18n:"Übersetzungen",togglePreview:"Vorschau",toggleScrollSync:"Synchron scrollen"},editorToolbar:{publishing:"Veröffentlichen...",publish:"Veröffentlichen",published:"Veröffentlicht",unpublish:"Veröffentlichung zurückziehen",duplicate:"Duplizieren",unpublishing:"Veröffentlichung wird zurückgezogen...",publishAndCreateNew:"Veröffentlichen und neuen Beitrag erstellen",publishAndDuplicate:"Veröffentlichen und Beitrag duplizieren",deleteUnpublishedChanges:"Unveröffentlichte Änderungen verwerfen",deleteUnpublishedEntry:"Lösche unveröffentlichten Beitrag",deletePublishedEntry:"Lösche veröffentlichten Beitrag",deleteEntry:"Lösche Beitrag",saving:"Speichern...",save:"Speichern",statusInfoTooltipDraft:"Beitrag ist im Entwurfsstatus. Um ihn fertigzustellen und zur Überprüfung freizugeben, setzen Sie den Status auf Zur Überprüfung.",statusInfoTooltipInReview:"Beitrag wird überprüft, keine weitere Aktion erforderlich. Sie können weitere Änderungen vornehmen, während die Überprüfung läuft.",deleting:"Löschen...",updating:"Aktualisieren...",status:"Status: %{status}",backCollection:"Zurück zu allen %{collectionLabel}",unsavedChanges:"Ungespeicherte Änderungen",changesSaved:"Änderungen gespeichert",draft:"Entwurf",inReview:"Zur Überprüfung",ready:"Abgeschlossen",publishNow:"Jetzt veröffentlichen",deployPreviewPendingButtonLabel:"Überprüfen ob eine Vorschau vorhanden ist",deployPreviewButtonLabel:"Vorschau anzeigen",deployButtonLabel:"Live ansehen"},editorWidgets:{markdown:{bold:"Fett",italic:"Kursiv",code:"Code",link:"Link",linkPrompt:"Link-URL eingeben",headings:"Überschriften",quote:"Zitat",bulletedList:"Aufzählungsliste",numberedList:"Nummerierte Liste",addComponent:"Komponente hinzufügen",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Wähle ein Bild",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Bild-URL eingeben",chooseDifferent:"Wähle ein anderes Bild",remove:"Entferne Bild"},file:{choose:"Wählen Sie eine Datei",chooseUrl:"Von URL hinzufügen",replaceUrl:"Von URL ersetzen",promptUrl:"Datei-URL eingeben",chooseDifferent:"Wählen Sie eine andere Datei",remove:"Datei löschen"},unknownControl:{noControl:"Kein Bedienelement für Widget '%{widget}'."},unknownPreview:{noPreview:"Keine Vorschau für Widget '%{widget}'."},headingOptions:{headingOne:"Überschrift 1",headingTwo:"Überschrift 2",headingThree:"Überschrift 3",headingFour:"Überschrift 4",headingFive:"Überschrift 5",headingSix:"Überschrift 6"},datetime:{now:"Jetzt"},list:{add:"%{item} hinzufügen",addType:"%{item} hinzufügen"}}},mediaLibrary:{mediaLibraryCard:{draft:"Entwurf",copy:"Kopieren",copyUrl:"URL kopieren",copyPath:"Pfad kopieren",copyName:"Name kopieren",copied:"Kopiert"},mediaLibrary:{onDelete:"Soll das ausgewählte Medium wirklich gelöscht werden?",fileTooLarge:"Datei zu groß.\nErlaubt sind nur Dateien bis %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Keine Egebnisse.",noAssetsFound:"Keine Medien gefunden.",noImagesFound:"Keine Bilder gefunden.",private:"Privat ",images:"Bilder",mediaAssets:"Medien",search:"Suchen...",uploading:"Hochladen...",upload:"Hochladen",download:"Download",deleting:"Löschen...",deleteSelected:"Ausgewähltes Element löschen",chooseSelected:"Ausgewähltes Element verwenden"}},ui:{default:{goBackToSite:"Zurück zur Seite"},errorBoundary:{title:"Fehler",details:"Ein Fehler ist aufgetreten - bitte ",reportIt:"berichte ihn.",detailsHeading:"Details",privacyWarning:"Beim Eröffnen eines Fehlerberichts werden automatisch die Fehlermeldung und Debugdaten eingefügt.\nBitte überprüfen Sie, ob die Informationen korrrekt sind und entfernen Sie ggfs. sensible Daten.",recoveredEntry:{heading:"Wiederhergestellter Beitrag",warning:"Bitte sichern Sie sich diese Informationen, bevor Sie die Seite verlassen!",copyButtonLabel:"In Zwischenablage speichern"}},settingsDropdown:{logOut:"Abmelden"},toast:{onFailToLoadEntries:"Beitrag konnte nicht geladen werden: %{details}",onFailToLoadDeployPreview:"Vorschau konnte nicht geladen werden: %{details}",onFailToPersist:"Beitrag speichern fehlgeschlagen: %{details}",onFailToDelete:"Beitrag löschen fehlgeschlagen: %{details}",onFailToUpdateStatus:"Status aktualisieren fehlgeschlagen: %{details}",missingRequiredField:"Oops, einige zwingend erforderliche Felder sind nicht ausgefüllt.",entrySaved:"Beitrag gespeichert",entryPublished:"Beitrag veröffentlicht",entryUnpublished:"Beitrag nicht mehr öffentlich",onFailToPublishEntry:"Veröffentlichen fehlgeschlagen: %{details}",onFailToUnpublishEntry:"Veröffentlichung des Beitrags konnte nicht rückgängig gemacht werden: %{details}",entryUpdated:"Beitragsstatus aktualisiert",onDeleteUnpublishedChanges:"Unveröffentlichte Änderungen verworfen",onFailToAuth:"%{details}",onLoggedOut:"Sie wurden ausgeloggt. Bitte sichern Sie Ihre Daten und melden Sie sich erneut an.",onBackendDown:"Der Server ist aktuell nicht erreichbar. Für weitere Informationen, siehe: %{details}"}},workflow:{workflow:{loading:"Arbeitsablauf Beiträge laden",workflowHeading:"Redaktioneller Arbeitsablauf",newPost:"Neuer Beitrag",description:"%{smart_count} Beitrag zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. |||| %{smart_count} Beiträge zur Überprüfung bereit, %{readyCount} bereit zur Veröffentlichung. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} von %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"von %{author}",deleteChanges:"Änderungen verwerfen",deleteNewEntry:"Lösche neuen Beitrag",publishChanges:"Veröffentliche Änderungen",publishNewEntry:"Veröffentliche neuen Beitrag"},workflowList:{onDeleteEntry:"Soll dieser Beitrag wirklich gelöscht werden?",onPublishingNotReadyEntry:'Nur Beiträge im Status "Abgeschlossen" können veröffentlicht werden. Bitte ziehen Sie den Beitrag in die "Abgeschlossen" Spalte um die Veröffentlichung zu aktivieren.',onPublishEntry:"Soll dieser Beitrag wirklich veröffentlicht werden soll?",draftHeader:"Entwurf",inReviewHeader:"In Prüfung",readyHeader:"Abgeschlossen",currentEntries:"%{smart_count} Beitrag |||| %{smart_count} Beiträge"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Login",loggingIn:"Logging in...",loginWithNetlifyIdentity:"Login with Netlify Identity",loginWithAzure:"Login with Azure",loginWithBitbucket:"Login with Bitbucket",loginWithGitHub:"Login with GitHub",loginWithGitLab:"Login with GitLab",errors:{email:"Make sure to enter your email.",password:"Please enter your password.",identitySettings:"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."}},app:{header:{content:"Contents",workflow:"Workflow",media:"Media",quickAdd:"Quick add"},app:{errorHeader:"Error loading the CMS configuration",configErrors:"Config Errors",checkConfigYml:"Check your config.yml file.",loadingConfig:"Loading configuration...",waitingBackend:"Waiting for backend..."},notFoundPage:{header:"Not Found"}},collection:{sidebar:{collections:"Collections",allCollections:"All Collections",searchAll:"Search all",searchIn:"Search in"},collectionTop:{sortBy:"Sort by",viewAs:"View as",newButton:"New %{collectionLabel}",ascending:"Ascending",descending:"Descending",searchResults:'Search Results for "%{searchTerm}"',searchResultsInCollection:'Search Results for "%{searchTerm}" in %{collection}',filterBy:"Filter by",groupBy:"Group by"},entries:{loadingEntries:"Loading Entries...",cachingEntries:"Caching Entries...",longerLoading:"This might take several minutes",noEntries:"No Entries"},groups:{other:"Other",negateLabel:"Not %{label}"},defaultFields:{author:{label:"Author"},updatedOn:{label:"Updated On"}}},editor:{editorControl:{field:{optional:"optional"}},editorControlPane:{widget:{required:"%{fieldLabel} is required.",regexPattern:"%{fieldLabel} didn't match the pattern: %{pattern}.",processing:"%{fieldLabel} is processing.",range:"%{fieldLabel} must be between %{minValue} and %{maxValue}.",min:"%{fieldLabel} must be at least %{minValue}.",max:"%{fieldLabel} must be %{maxValue} or less.",rangeCount:"%{fieldLabel} must have between %{minCount} and %{maxCount} item(s).",rangeCountExact:"%{fieldLabel} must have exactly %{count} item(s).",rangeMin:"%{fieldLabel} must be at least %{minCount} item(s).",rangeMax:"%{fieldLabel} must be %{maxCount} or less item(s).",invalidPath:"'%{path}' is not a valid path",pathExists:"Path '%{path}' already exists"},i18n:{writingInLocale:"Writing in %{locale}",copyFromLocale:"Fill in from another locale",copyFromLocaleConfirm:"Do you want to fill in data from %{locale} locale?\nAll existing content will be overwritten."}},editor:{onLeavePage:"Are you sure you want to leave this page?",onUpdatingWithUnsavedChanges:"You have unsaved changes, please save before updating status.",onPublishingNotReady:'Please update status to "Ready" before publishing.',onPublishingWithUnsavedChanges:"You have unsaved changes, please save before publishing.",onPublishing:"Are you sure you want to publish this entry?",onUnpublishing:"Are you sure you want to unpublish this entry?",onDeleteWithUnsavedChanges:"Are you sure you want to delete this published entry, as well as your unsaved changes from the current session?",onDeletePublishedEntry:"Are you sure you want to delete this published entry?",onDeleteUnpublishedChangesWithUnsavedChanges:"This will delete all unpublished changes to this entry, as well as your unsaved changes from the current session. Do you still want to delete?",onDeleteUnpublishedChanges:"All unpublished changes to this entry will be deleted. Do you still want to delete?",loadingEntry:"Loading entry...",confirmLoadBackup:"A local backup was recovered for this entry, would you like to use it?"},editorInterface:{toggleI18n:"Toggle i18n",togglePreview:"Toggle preview",toggleScrollSync:"Sync scrolling"},editorToolbar:{publishing:"Publishing...",publish:"Publish",published:"Published",unpublish:"Unpublish",duplicate:"Duplicate",unpublishing:"Unpublishing...",publishAndCreateNew:"Publish and create new",publishAndDuplicate:"Publish and duplicate",deleteUnpublishedChanges:"Delete unpublished changes",deleteUnpublishedEntry:"Delete unpublished entry",deletePublishedEntry:"Delete published entry",deleteEntry:"Delete entry",saving:"Saving...",save:"Save",statusInfoTooltipDraft:"Entry status is set to draft. To finalize and submit it for review, set the status to In review",statusInfoTooltipInReview:"Entry is being reviewed, no further actions are required. However, you can still make additional changes while it is being reviewed.",deleting:"Deleting...",updating:"Updating...",status:"Status: %{status}",backCollection:" Writing in %{collectionLabel} collection",unsavedChanges:"Unsaved Changes",changesSaved:"Changes saved",draft:"Draft",inReview:"In review",ready:"Ready",publishNow:"Publish now",deployPreviewPendingButtonLabel:"Check for Preview",deployPreviewButtonLabel:"View Preview",deployButtonLabel:"View Live"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",linkPrompt:"Enter the URL of the link",headings:"Headings",quote:"Quote",bulletedList:"Bulleted List",numberedList:"Numbered List",addComponent:"Add Component",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Choose an image",chooseMultiple:"Choose images",chooseUrl:"Insert from URL",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the image",chooseDifferent:"Choose different image",addMore:"Add more images",remove:"Remove image",removeAll:"Remove all images"},file:{choose:"Choose a file",chooseUrl:"Insert from URL",chooseMultiple:"Choose files",replaceUrl:"Replace with URL",promptUrl:"Enter the URL of the file",chooseDifferent:"Choose different file",addMore:"Add more files",remove:"Remove file",removeAll:"Remove all files"},unknownControl:{noControl:"No control for widget '%{widget}'."},unknownPreview:{noPreview:"No preview for widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Now"},list:{add:"Add %{item}",addType:"Add %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Draft",copy:"Copy",copyUrl:"Copy URL",copyPath:"Copy Path",copyName:"Copy Name",copied:"Copied"},mediaLibrary:{onDelete:"Are you sure you want to delete selected media?",fileTooLarge:"File too large.\nConfigured to not allow files greater than %{size} kB."},mediaLibraryModal:{loading:"Loading...",noResults:"No results.",noAssetsFound:"No assets found.",noImagesFound:"No images found.",private:"Private ",images:"Images",mediaAssets:"Media assets",search:"Search...",uploading:"Uploading...",upload:"Upload",download:"Download",deleting:"Deleting...",deleteSelected:"Delete selected",chooseSelected:"Choose selected"}},ui:{default:{goBackToSite:"Go back to site"},errorBoundary:{title:"Error",details:"There's been an error - please ",reportIt:"open an issue on GitHub.",detailsHeading:"Details",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Recovered document",warning:"Please copy/paste this somewhere before navigating away!",copyButtonLabel:"Copy to clipboard"}},settingsDropdown:{logOut:"Log Out"},toast:{onFailToLoadEntries:"Failed to load entry: %{details}",onFailToLoadDeployPreview:"Failed to load preview: %{details}",onFailToPersist:"Failed to persist entry: %{details}",onFailToDelete:"Failed to delete entry: %{details}",onFailToUpdateStatus:"Failed to update status: %{details}",missingRequiredField:"Oops, you've missed a required field. Please complete before saving.",entrySaved:"Entry saved",entryPublished:"Entry published",entryUnpublished:"Entry unpublished",onFailToPublishEntry:"Failed to publish: %{details}",onFailToUnpublishEntry:"Failed to unpublish entry: %{details}",entryUpdated:"Entry status updated",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}",onLoggedOut:"You have been logged out, please back up any data and login again",onBackendDown:"The backend service is experiencing an outage. See %{details} for more information"}},workflow:{workflow:{loading:"Loading Editorial Workflow Entries",workflowHeading:"Editorial Workflow",newPost:"New Post",description:"%{smart_count} entry waiting for review, %{readyCount} ready to go live. |||| %{smart_count} entries waiting for review, %{readyCount} ready to go live. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"Delete changes",deleteNewEntry:"Delete new entry",publishChanges:"Publish changes",publishNewEntry:"Publish new entry"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'Only items with a "Ready" status can be published. Please drag the card to the "Ready" column to enable publishing.',onPublishEntry:"Are you sure you want to publish this entry?",draftHeader:"Drafts",inReviewHeader:"In Review",readyHeader:"Ready",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Iniciar sesión",loggingIn:"Iniciando sesión...",loginWithNetlifyIdentity:"Iniciar sesión con Netlify Identity",loginWithBitbucket:"Iniciar sesión con Bitbucket",loginWithGitHub:"Iniciar sesión con GitHub",loginWithGitLab:"Iniciar sesión con GitLab",errors:{email:"Asegúrate de introducir tu correo electrónico.",password:"Por favor introduce tu contraseña.",identitySettings:"No se pudo acceder a la configuración de Identity. Cuando uses el backend git-gateway asegurate de habilitar el servicio Identity y Git Gateway."}},app:{header:{content:"Contenido",workflow:"Flujo Editorial",media:"Medios",quickAdd:"Añadir rápido"},app:{errorHeader:"Error al cargar la configuración del CMS",configErrors:"Errores de configuración",checkConfigYml:"Compruebe el archivo config.yml.",loadingConfig:"Cargando configuración....",waitingBackend:"Esperando al servidor..."},notFoundPage:{header:"No encontrado"}},collection:{sidebar:{collections:"Colecciones",searchAll:"Buscar todas"},collectionTop:{sortBy:"Ordenar por",viewAs:"Ver como",newButton:"Nuevo %{collectionLabel}",ascending:"Ascendente",descending:"Descendente"},entries:{loadingEntries:"Cargando entradas",cachingEntries:"Almacenando entradas en caché",longerLoading:"Esto puede tardar varios minutos",noEntries:"Ninguna entrada"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizado en"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} es obligatorio.",regexPattern:"%{fieldLabel} no coincide con el patrón: %{pattern}.",processing:"%{fieldLabel} está procesando.",range:"%{fieldLabel} debe estar entre %{minValue} y %{maxValue}.",min:"%{fieldLabel} debe ser por lo menos %{minValue}.",max:"%{fieldLabel} debe ser %{maxValue} o menos.",rangeCount:"%{fieldLabel} debe tener entre %{minCount} y %{maxCount} elemento(s).",rangeCountExact:"%{fieldLabel} debe tener exactamente %{count} elemento(s).",rangeMin:"%{fieldLabel} debe ser por lo menos %{minCount} elemento(s).",rangeMax:"%{fieldLabel} debe ser %{maxCount} o menos elemento(s)."}},editor:{onLeavePage:"¿Estás seguro de que quieres dejar esta página?",onUpdatingWithUnsavedChanges:"Tiene cambios no guardados, por favor, guárdelos antes de actualizar el estado.",onPublishingNotReady:'Por favor, actualice el estado a "Ready" antes de publicar.',onPublishingWithUnsavedChanges:"Tiene cambios no guardados, por favor guárdelos antes de publicarlos.",onPublishing:"¿Estás seguro de que quieres publicar esta entrada?",onUnpublishing:"¿Estás seguro de que quieres retirar esta entrada?",onDeleteWithUnsavedChanges:"¿Está seguro de que desea eliminar esta entrada publicada, así como los cambios no guardados de la sesión actual?",onDeletePublishedEntry:"¿Estás seguro de que quieres borrar esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Esto eliminará todos los cambios no publicados de esta entrada, así como los cambios no guardados de la sesión actual. ¿Todavía quieres borrar?",onDeleteUnpublishedChanges:"Todos los cambios no publicados en esta entrada serán eliminados. ¿Todavía quieres borrar?",loadingEntry:"Cargando entrada...",confirmLoadBackup:"Se recuperó una copia de seguridad local para esta entrada, ¿le gustaría utilizarla?"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Retirar",duplicate:"Duplicar",unpublishing:"Retirando...",publishAndCreateNew:"Publicar y crear nuevo",publishAndDuplicate:"Publicar y duplicar",deleteUnpublishedChanges:"Eliminar cambios no publicados",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardando...",save:"Guardar",deleting:"Eliminando...",updating:"Actualizando...",status:"Estado: %{status}",backCollection:" Escribiendo en la colección %{collectionLabel}",unsavedChanges:"Cambios no guardados",changesSaved:"Cambios guardados",draft:"Borrador",inReview:"En revisión",ready:"Listo",publishNow:"Publicar ahora",deployPreviewPendingButtonLabel:"Comprobar Vista Previa",deployPreviewButtonLabel:"Ver Vista Previa",deployButtonLabel:"Ver publicación"},editorWidgets:{markdown:{richText:"Texto enriquecido",markdown:"Markdown"},image:{choose:"Elige una imagen",chooseDifferent:"Elige una imagen diferente",remove:"Quita la imagen"},file:{choose:"Escoge un archivo",chooseDifferent:"Elige un archivo diferente",remove:"Remover archivo"},unknownControl:{noControl:"No existe un control para el widget '%{widget}'."},unknownPreview:{noPreview:"No existe una vista previa para el widget '%{widget}'."},headingOptions:{headingOne:"Encabezado 1",headingTwo:"Encabezado 2",headingThree:"Encabezado 3",headingFour:"Encabezado 4",headingFive:"Encabezado 5",headingSix:"Encabezado 6"},datetime:{now:"Ahora"}}},mediaLibrary:{mediaLibraryCard:{draft:"Borrador"},mediaLibrary:{onDelete:"¿Está seguro de que desea eliminar el archivo seleccionado?",fileTooLarge:"Archivo muy pesado.\nConfigurado para no permitir archivos más pesados que %{size} kB."},mediaLibraryModal:{loading:"Cargando...",noResults:"Sin resultados.",noAssetsFound:"Archivos no encontrados.",noImagesFound:"Imágenes no encontradas.",private:"Privado ",images:"Imágenes",mediaAssets:"Archivos multimedia",search:"Buscar...",uploading:"Subiendo...",upload:"Subir nuevo",download:"Descargar",deleting:"Eliminando...",deleteSelected:"Eliminar selección",chooseSelected:"Confirmar selección"}},ui:{default:{goBackToSite:"Regresar al sitio"},errorBoundary:{title:"Error",details:"Se ha producido un error - por favor ",reportIt:"infórmenos de ello.",detailsHeading:"Detalles",privacyWarning:"Abrir un reporte lo rellena previamente con el mensaje de error y los datos de depuración.\nPor favor verifica que la información es correcta y elimina cualquier dato sensible.",recoveredEntry:{heading:"Documento recuperado",warning:"¡Por favor, copie/pegue esto en algún lugar antes de ir a otra página!",copyButtonLabel:"Copiar al portapapeles"}},settingsDropdown:{logOut:"Cerrar sesión"},toast:{onFailToLoadEntries:"No se ha podido cargar la entrada: %{details}",onFailToLoadDeployPreview:"No se ha podido cargar la vista previa: %{details}",onFailToPersist:"No se ha podido guardar la entrada: %{details}",onFailToDelete:"No se ha podido borrar la entrada: %{details}",onFailToUpdateStatus:"No se ha podido actualizar el estado: %{details}",missingRequiredField:"Oops, no ha rellenado un campo obligatorio. Por favor, rellénelo antes de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada retirada",onFailToPublishEntry:"No se ha podido publicar: %{details}",onFailToUnpublishEntry:"No se ha podido retirar la entrada: %{details}",entryUpdated:"Estado de entrada actualizado",onDeleteUnpublishedChanges:"Cambios no publicados eliminados",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Cargando Entradas del Flujo Editorial",workflowHeading:"Flujo Editorial",newPost:"Nuevo artículo",description:"%{smart_count} entrada esperando revisión, %{readyCount} lista para publicar |||| %{smart_count} entradas esperando revisión, %{readyCount} listas para publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Eliminar cambios",deleteNewEntry:"Eliminar nueva entrada",publishChanges:"Publicar cambios",publishNewEntry:"Publicar nueva entrada"},workflowList:{onDeleteEntry:"¿Está seguro de que quiere borrar esta entrada?",onPublishingNotReadyEntry:'Sólo se pueden publicar los elementos con el estado "Listo". Por favor, arrastre la tarjeta hasta la columna "Listo" para permitir la publicación.',onPublishEntry:"¿Estás seguro de que quieres publicar esta entrada?",draftHeader:"Borradores",inReviewHeader:"En revisión",readyHeader:"Listo",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Iniciar sessió",loggingIn:"Iniciant sessió...",loginWithNetlifyIdentity:"Iniciar sessió amb l'identitat de Netlify",loginWithBitbucket:"Iniciar sessió amb Bitbucket",loginWithGitHub:"Iniciar sessió amb GitHub",loginWithGitLab:"Iniciar sessió amb GitLab",errors:{email:"Comprova que has escrit el teu email.",password:"Si us plau escriu la teva contrasenya.",identitySettings:"No s'ha pogut obtenir accés a les configuracions d'identitat. Quan feu servir backend de git-gateway, assegureu-vos que activeu el servei didentitat i la passarel·la de Git."}},app:{header:{content:"Contingut",workflow:"Flux Editorial",media:"Multimèdia",quickAdd:"Afegir"},app:{errorHeader:"Error al carregar la configuració del CMS",configErrors:"Errors de configuració",checkConfigYml:"Comprovi l'arxiu config.yml.",loadingConfig:"Carregant configuració....",waitingBackend:"Esperant al servidor..."},notFoundPage:{header:"No trobat"}},collection:{sidebar:{collections:"Col·leccions",allCollections:"Totes les col·leccions",searchAll:"Buscar tots",searchIn:"Buscar a"},collectionTop:{sortBy:"Ordenar per",viewAs:"Veure com",newButton:"Nou %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Buscar resultats per "%{searchTerm}"',searchResultsInCollection:'Buscar resultats per "%{searchTerm}" a %{collection}',filterBy:"Filtrar per",groupBy:"Agrupar per"},entries:{loadingEntries:"Carregant entrades",cachingEntries:"Emmagatzemant entrades a la caché",longerLoading:"Això podria tardar uns minuts",noEntries:"Cap entrada"},groups:{other:"Altre",negateLabel:"No %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualitzat el"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} és obligatori.",regexPattern:"%{fieldLabel} no coincideix amb el patró: %{pattern}.",processing:"%{fieldLabel} està processant.",range:"%{fieldLabel} ha d'estar entre %{minValue} i %{maxValue}.",min:"%{fieldLabel} ha ser com a mínim %{minValue}.",max:"%{fieldLabel} ha de ser %{maxValue} o més.",rangeCount:"%{fieldLabel} ha de tenir entre %{minCount} i %{maxCount} element(s).",rangeCountExact:"%{fieldLabel} ha de tenir exactament %{count} element(s).",rangeMin:"%{fieldLabel} ha de tenir com a mínim %{minCount} d'element(s).",rangeMax:"%{fieldLabel} ha de ser %{maxCount} o inferior.",invalidPath:"'%{path}' no és una ruta valida",pathExists:"'%{path}' ja existeix"},i18n:{writingInLocale:"Escriure en %{locale}"}},editor:{onLeavePage:"Estàs segur que vols deixar aquesta pàgina?",onUpdatingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans d'actualitzar l'estat.",onPublishingNotReady:'Si us plau, actualitza l\'estat a "Llest" abans de publicar.',onPublishingWithUnsavedChanges:"Tens canvis no guardats, si us plau, guarda'ls abans de publicar-los.",onPublishing:"Estàs segur que vols publicar aquesta entrada?",onUnpublishing:"Estàs segur que vols esborrar aquesta entrada?",onDeleteWithUnsavedChanges:"Està segur que vol eliminar aquesta entrada publicada, així com els canvis no guardats de la sessió actual?",onDeletePublishedEntry:"Està segur que vol eliminar aquesta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Això eliminarà tots els canvis no publicats d'aquesta entrada així com els canvis no guardats de la sessió actual. Encara vol procedir?",onDeleteUnpublishedChanges:"Tots els canvis no publicats en aquesta entrada seràn esborrats. Encara els vol eliminar?",loadingEntry:"Carregant entrada...",confirmLoadBackup:"S'ha recuperat una copia de seguretat local per aquesta entrada. La vol utilitzar?"},editorInterface:{toggleI18n:"Mostrar/Amagar traduccions",togglePreview:"Mostrar/Amagar previsualització"},editorToolbar:{publishing:"Publicant...",publish:"Publicar",published:"Publicat",unpublish:"Despublicar",duplicate:"Duplicar",unpublishing:"Despublicant...",publishAndCreateNew:"Publicar i crear de nou",publishAndDuplicate:"Publica i duplica",deleteUnpublishedChanges:"Eliminar canvis no publicats",deleteUnpublishedEntry:"Eliminar entrada no publicada",deletePublishedEntry:"Eliminar entrada publicada",deleteEntry:"Eliminar entrada",saving:"Guardant...",save:"Guardar",deleting:"Eliminant...",updating:"Actualizant...",status:"Estat: %{status}",backCollection:"Escrivint a la colecció %{collectionLabel}",unsavedChanges:"Canvis no guardats",changesSaved:"Canvis guardats",draft:"Esborrany",inReview:"En revisió",ready:"Llest",publishNow:"Publicar ara",deployPreviewPendingButtonLabel:"Comprovar Vista Prèvia",deployPreviewButtonLabel:"Veure Vista Prèvia",deployButtonLabel:"Veure publicació"},editorWidgets:{markdown:{bold:"Negreta",italic:"Cursiva",code:"Codi",link:"Enllaç",linkPrompt:"Introdueix l'URL de l'enllaç",headings:"Encapçalaments",bulletedList:"Llista",numberedList:"Llista numèrica",addComponent:"Afegir component",richText:"Text enriquit",markdown:"Markdown"},image:{choose:"Escull una imatge",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de la imatge",chooseDifferent:"Escull una imatge diferent",remove:"Treu la imatge"},file:{choose:"Escull un arxiu",chooseUrl:"Introdueix una URL",replaceUrl:"Substitueix per una URL",promptUrl:"Introdueix l'URL de l'arxiu",chooseDifferent:"Escull un arxiu diferent",remove:"Esborrar arxiu"},unknownControl:{noControl:"No existeix un control per al widget '%{widget}'."},unknownPreview:{noPreview:"No existeix una vista prèvia per al widget '%{widget}'."},headingOptions:{headingOne:"Encapçalament 1",headingTwo:"Encapçalament 2",headingThree:"Encapçalament 3",headingFour:"Encapçalament 4",headingFive:"Encapçalament 5",headingSix:"Encapçalament 6"},datetime:{now:"Ara"}}},mediaLibrary:{mediaLibraryCard:{draft:"Esborrany",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar path",copyName:"Copiar nom",copied:"Copiat"},mediaLibrary:{onDelete:"Està segur de que vol eliminar el mitjà seleccionat?",fileTooLarge:"El fitxer és massa gran.\nLa configuració no permet fitxers més grans de %{size} kB."},mediaLibraryModal:{loading:"Carregant...",noResults:"Sense resultats.",noAssetsFound:"Arxius no trobats.",noImagesFound:"Imatges no trobades.",private:"Privat",images:"Imatges",mediaAssets:"Arxius multimèdia",search:"Buscar...",uploading:"Penjant...",upload:"Penjar nou",download:"Descarregar",deleting:"Eliminant...",deleteSelected:"Eliminar selecció",chooseSelected:"Confirmar selecció"}},ui:{default:{goBackToSite:"Torna enrere al lloc"},errorBoundary:{title:"Error",details:"S'ha produït un error - si us plau ",reportIt:"Informa'ns d'això a GitHub.",detailsHeading:"Detalls",recoveredEntry:{heading:"Document recuperat",warning:"Si us plau, copiï/enganxi això en algun lloc abans de navegar a una altre pàgina!",copyButtonLabel:"Copiar al porta-retalls"}},settingsDropdown:{logOut:"Tancar sessió"},toast:{onFailToLoadEntries:"No s'ha ha pogut carregar l'entrada: %{details}",onFailToLoadDeployPreview:"No s'ha pogut carregar la vista prèvia: %{details}",onFailToPersist:"No s'ha pogut guardar l'entrada: %{details}",onFailToDelete:"No s'ha pogut eliminar l'entrada: %{details}",onFailToUpdateStatus:"No s'ha pogut actualitzar l'estat: %{details}",missingRequiredField:"Ups, no ha omplert un camp obligatori. Si us plau, ompli'l abans de guardar.",entrySaved:"Entrada guardada",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"No s'ha pogut publicar: %{details}",onFailToUnpublishEntry:"No s'ha pogut despublicar l'entrada: %{details}",entryUpdated:"Estat de l'entrada actualitzat",onDeleteUnpublishedChanges:"Canvis no publicats eliminats",onFailToAuth:"%{details}",onLoggedOut:"La teva sessió ha estat tancada. Si us plau, torna a iniciar-la",onBackendDown:"El servidor està patint problemes. Consulta %{details} per a més informació"}},workflow:{workflow:{loading:"Carregant Entradas del Flux Editorial",workflowHeading:"Flux Editorial",newPost:"Nou article",description:"%{smart_count} entrada esperant revisió, %{readyCount} llesta per a publicar |||| %{smart_count} entrades esperant revisió, %{readyCount} llestes per a publicar. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} per %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"per %{author}",deleteChanges:"Eliminar canvis",deleteNewEntry:"Eliminar nova entrada",publishChanges:"Publicar canvis",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Està segur que vol borrar aquesta entrada?",onPublishingNotReadyEntry:'Només es poden publicar elements amb estat "Llest". Si us plau, arrossegui la targeta fins la columna "Llest" per a permetre\'n la publicació',onPublishEntry:"Està segur que vol publicar aquesta entrada?",draftHeader:"Esborranys",inReviewHeader:"En revisió",readyHeader:"Llest",currentEntries:"%{smart_count} entrada |||| %{smart_count} entrades"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Se connecter",loggingIn:"Connexion en cours...",loginWithNetlifyIdentity:"Se connecter avec Netlify Identity",loginWithAzure:"Se connecter avec Azure",loginWithBitbucket:"Se connecter avec Bitbucket",loginWithGitHub:"Se connecter avec GitHub",loginWithGitLab:"Se connecter avec GitLab",errors:{email:"Assurez-vous d'avoir entré votre email.",password:"Merci de saisir votre mot de passe.",identitySettings:"Impsosible d'accéder aux paramètres d'identité. Si vous utilisez le backend git-gateway, merci de vous assurer que vous avez bien activé le service Identity et la passerelle Git."}},app:{header:{content:"Contenus",workflow:"Flux",media:"Media",quickAdd:"Ajout rapide"},app:{errorHeader:"Erreur au chargement de la configuration du CMS",configErrors:"Erreurs de configuration",checkConfigYml:"Vérifiez votre fichier config.yml.",loadingConfig:"Chargement de la configuration...",waitingBackend:"En attente du serveur..."},notFoundPage:{header:"Introuvable"}},collection:{sidebar:{collections:"Collections",allCollections:"Toutes les collections",searchAll:"Tout rechercher",searchIn:"Rechercher dans"},collectionTop:{sortBy:"Trier par",viewAs:"Voir comme",newButton:"Créer une entrée de type %{collectionLabel}",ascending:"Croissant",descending:"Décroissant",searchResults:'Résultats de la recherche pour "%{searchTerm}"',searchResultsInCollection:'Résultats de la recherche pour "%{searchTerm}" dans %{collection}',filterBy:"Filtrer par",groupBy:"Grouper par"},entries:{loadingEntries:"Chargement des entrées",cachingEntries:"Mise en cache des entrées",longerLoading:"Cela peut prendre quelques minutes",noEntries:"Aucune entrée"},groups:{other:"Autre",negateLabel:"Non %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Mis à jour le"}}},editor:{editorControl:{field:{optional:"optionnel"}},editorControlPane:{widget:{required:"Le champ %{fieldLabel} est requis.",regexPattern:"Le champ %{fieldLabel} ne correspond pas au schéma: %{pattern}.",processing:"Le champ %{fieldLabel} est en cours de traitement.",range:"Le champ %{fieldLabel} doit être compris entre %{minValue} et %{maxValue}.",min:"Le champ %{fieldLabel} doit avoir une valeur de %{minValue} ou plus.",max:"Le champ %{fieldLabel} doit avoir une valeur de %{maxValue} ou moins.",rangeCount:"%{fieldLabel} doit avoir entre %{minCount} et %{maxCount} élément(s).",rangeCountExact:"%{fieldLabel} doit avoir exactement %{count} éléments(s).",rangeMin:"%{fieldLabel} doit avoir au moins %{minCount} éléments(s).",rangeMax:"%{fieldLabel} doit avoir %{maxCount} éléments(s) ou moins.",invalidPath:"'%{path}' n'est pas un chemin valide",pathExists:"Le chemin '%{path}' existe déjà"},i18n:{writingInLocale:"Écrire en %{locale}"}},editor:{onLeavePage:"Voulez-vous vraiment quitter cette page ?",onUpdatingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de mettre à jour le statut.",onPublishingNotReady:'Veuillez mettre à jour le statut à "Prêt" avant de publier.',onPublishingWithUnsavedChanges:"Veuillez enregistrer vos modifications avant de publier.",onPublishing:"Voulez-vous vraiment publier cette entrée ?",onUnpublishing:"Voulez-vous vraiment dépublier cette entrée ?",onDeleteWithUnsavedChanges:"Voulez-vous vraiment supprimer cette entrée publiée ainsi que vos modifications non enregistrées de cette session ?",onDeletePublishedEntry:"Voulez-vous vraiment supprimer cette entrée publiée ?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ceci supprimera toutes les modifications non publiées de cette entrée ainsi que vos modifications non enregistrées de cette session. Voulez-vous toujours supprimer ?",onDeleteUnpublishedChanges:"Toutes les modifications non publiées de cette entrée seront supprimées. Voulez-vous toujours supprimer ?",loadingEntry:"Chargement de l'entrée...",confirmLoadBackup:"Une sauvegarde locale a été trouvée pour cette entrée. Voulez-vous l'utiliser ?"},editorInterface:{toggleI18n:"Édition multilingue",togglePreview:"Aperçu",toggleScrollSync:"Défilement synchronisé"},editorToolbar:{publishing:"Publication...",publish:"Publier",published:"Publiée",unpublish:"Dépublier",duplicate:"Dupliquer",unpublishing:"Dépublication...",publishAndCreateNew:"Publier et créer une nouvelle entrée",publishAndDuplicate:"Publier et dupliquer",deleteUnpublishedChanges:"Supprimer les modications non publiées",deleteUnpublishedEntry:"Supprimer l'entrée non publiée",deletePublishedEntry:"Supprimer l'entrée publiée",deleteEntry:"Supprimer l'entrée",saving:"Enregistrement...",save:"Enregistrer",deleting:"Suppression...",updating:"Mise à jour...",status:"Statut: %{status}",backCollection:" Écriture dans la collection %{collectionLabel}",unsavedChanges:"Modifications non enregistrées",changesSaved:"Modifications enregistrées",draft:"Brouillon",inReview:"En cours de révision",ready:"Prêt",publishNow:"Publier maintenant",deployPreviewPendingButtonLabel:"Vérifier l'aperçu",deployPreviewButtonLabel:"Voir l'aperçu",deployButtonLabel:"Voir en direct"},editorWidgets:{markdown:{bold:"Gras",italic:"Italique",code:"Code",link:"Lien",linkPrompt:"Entrer l'adresse web du lien",headings:"Titres",quote:"Citation",bulletedList:"Liste à puces",numberedList:"Liste numérotée",addComponent:"Ajouter un composant",richText:"Texte enrichi",markdown:"Markdown"},image:{choose:"Choisir une image",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web de l'image",chooseDifferent:"Choisir une image différente",remove:"Supprimer l'image"},file:{choose:"Choisir un fichier",chooseUrl:"Insérer depuis une adresse web",replaceUrl:"Remplacer depuis une adresse web",promptUrl:"Entrer l'adresse web du fichier",chooseDifferent:"Choisir un fichier différent",remove:"Effacer le fichier"},unknownControl:{noControl:"Pas de contrôle pour le gadget '%{widget}'."},unknownPreview:{noPreview:"Pas d'aperçu pour le gadget '%{widget}'."},headingOptions:{headingOne:"Titre 1",headingTwo:"Titre 2",headingThree:"Titre 3",headingFour:"Titre 4",headingFive:"Titre 5",headingSix:"Titre 6"},datetime:{now:"Maintenant"},list:{add:"Ajouter %{item}",addType:"Ajouter une entrée de type %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Brouillon",copy:"Copier",copyUrl:"Copier l'adresse web",copyPath:"Copier le chemin d'accès",copyName:"Copier le nom",copied:"Copié"},mediaLibrary:{onDelete:"Voulez-vous vraiment supprimer la ressource sélectionné ?",fileTooLarge:"Le fichier est trop volumineux.\nL'instance est configurée pour bloquer les envois de plus de %{size} kB."},mediaLibraryModal:{loading:"Chargement...",noResults:"Aucun résultat.",noAssetsFound:"Aucune ressource trouvée.",noImagesFound:"Aucune image trouvée.",private:"Privé ",images:"Images",mediaAssets:"Ressources",search:"Recherche...",uploading:"Téléversement...",upload:"Téléverser une nouvelle ressource",download:"Télécharger",deleting:"Suppression...",deleteSelected:"Supprimer les éléments sélectionnés",chooseSelected:"Choisir les éléments sélectionnés"}},ui:{default:{goBackToSite:"Retourner sur le site"},errorBoundary:{title:"Erreur",details:"Une erreur est survenue, veuillez ",reportIt:"la signaler sur GitHub.",detailsHeading:"Détails",privacyWarning:"Ouvrir une issue la préremplie avec le message d'erreur et des données de déboggage.\nMerci de vérifier l'exactitude des informations et de supprimer toute donnée sensible si nécessaire.",recoveredEntry:{heading:"Document récupéré",warning:"Veuillez copier/coller ceci quelque part avant de naviguer ailleurs!",copyButtonLabel:"Copier dans le presse-papier"}},settingsDropdown:{logOut:"Déconnexion"},toast:{onFailToLoadEntries:"Échec du chargement de l'entrée : %{details}",onFailToLoadDeployPreview:"Échec du chargement de l'aperçu : %{details}",onFailToPersist:"Échec de l'enregistrement de l'entrée : %{details}",onFailToDelete:"Échec de la suppression de l'entrée : %{details}",onFailToUpdateStatus:"Échec de la mise à jour du statut : %{details}",missingRequiredField:"Oops, il manque un champ requis. Veuillez le renseigner avant de soumettre.",entrySaved:"Entrée enregistrée",entryPublished:"Entrée publiée",entryUnpublished:"Entrée dépubliée",onFailToPublishEntry:"Échec de la publication : %{details}",onFailToUnpublishEntry:"Impossible de dépublier l'entrée : %{details}",entryUpdated:"Statut de l'entrée mis à jour",onDeleteUnpublishedChanges:"Modifications non publiées supprimées",onFailToAuth:"%{details}",onLoggedOut:"Vous avez été déconnecté, merci de sauvegarder les données et vous reconnecter",onBackendDown:"Le serveur est actuellement hors-service. Pour plus d'informations : %{details}"}},workflow:{workflow:{loading:"Chargement des entrées du flux éditorial",workflowHeading:"Flux éditorial",newPost:"Nouvel article",description:"%{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). |||| %{smart_count} entrée(s) en attente de revue, %{readyCount} prête(s) à être publiée(s). ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} par %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"par %{author}",deleteChanges:"Supprimer les mofications",deleteNewEntry:"Supprimer la nouvelle entrée",publishChanges:"Publier les modifications",publishNewEntry:"Publier la nouvelle entrée"},workflowList:{onDeleteEntry:"Voulez-vous vraiment supprimer cette entrée ?",onPublishingNotReadyEntry:'Seuls les éléments ayant le statut "Prêt" peuvent être publiés. Veuillez glisser/déposer la carte dans la colonne "Prêt" pour activer la publication',onPublishEntry:"Voulez-vous vraiment publier cette entrée ?",draftHeader:"Brouillons",inReviewHeader:"En cours de révision",readyHeader:"Prêt",currentEntries:"%{smart_count} entrée |||| %{smart_count} entrées"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Σύνδεση",loggingIn:"Σύνδεση στο...",loginWithNetlifyIdentity:"Σύνδεση μέσω Netlify",loginWithBitbucket:"Σύνδεση μέσω Bitbucket",loginWithGitHub:"Σύνδεση μέσω GitHub",loginWithGitLab:"Σύνδεση μέσω GitLab",errors:{email:"Βεβαιωθείτε ότι έχετε εισαγάγει το email σας.",password:"Παρακαλώ εισάγετε τον κωδικό πρόσβασής σας.",identitySettings:"Δεν είναι δυνατή η πρόσβαση στις ρυθμίσεις ταυτότητας. Όταν χρησιμοποιείτε το παρασκήνιο του git Gateway, φροντίστε να ενεργοποιήσετε την υπηρεσία Identity και το git Gateway."}},app:{header:{content:"Περιεχόμενα",workflow:"Ροής εργασίας",media:"Πολυμέσα",quickAdd:"Γρήγορη προσθήκη"},app:{errorHeader:"Σφάλμα κατά τη φόρτωση της ρύθμισης παραμέτρων CMS",configErrors:"Σφάλματα ρύθμισης παραμέτρων",checkConfigYml:"Ελέγξτε το αρχείο config.yml.",loadingConfig:"Φόρτωση ρύθμισης παραμέτρων...",waitingBackend:"Αναμονή για παρασκηνιακό..."},notFoundPage:{header:"Δεν βρέθηκε"}},collection:{sidebar:{collections:"Συλλογές",searchAll:"Αναζήτηση όλων"},collectionTop:{viewAs:"Προβολή ως",newButton:"Νέο %{collectionLabel}"},entries:{loadingEntries:"Εγγραφές φόρτωσης",cachingEntries:"Εγγραφές προσωρινής αποθήκευσης",longerLoading:"Αυτό μπορεί να διαρκέσει αρκετά λεπτά"}},editor:{editorControl:{field:{optional:"προαιρετικός"}},editorControlPane:{widget:{required:"Το %{fieldLabel} είναι απαραίτητο.",regexPattern:"Το %{fieldLabel} δεν ταιριάζει με το μοτίβο: %{pattern}.",processing:"Το %{fieldLabel} επεξεργάζεται.",range:"Το %{fieldLabel} πρέπει να είναι μεταξύ %{minValue} και %{maxValue}.",min:"Το %{fieldLabel} πρέπει να είναι τουλάχιστον %{minValue}.",max:"Το %{fieldLabel} πρέπει να είναι %{maxValue} ή μικρότερο."}},editor:{onLeavePage:"Είστε βέβαιοι ότι θέλετε να αφήσετε αυτήν τη σελίδα;",onUpdatingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν να ενημερώσετε την κατάσταση.",onPublishingNotReady:'Ενημερώστε την κατάσταση σε "έτοιμο" πριν από τη δημοσίευση.',onPublishingWithUnsavedChanges:"Έχετε μη αποθηκευμένες αλλαγές, αποθηκεύστε πριν από τη δημοσίευση.",onPublishing:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",onUnpublishing:"Είστε βέβαιοι ότι θέλετε να καταργήσετε τη δημοσίευση αυτής της καταχώρησης;",onDeleteWithUnsavedChanges:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση, καθώς και τις αλλαγές που δεν αποθηκεύσατε από την τρέχουσα περίοδο λειτουργίας;",onDeletePublishedEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν τη δημοσιευμένη καταχώρηση;",onDeleteUnpublishedChangesWithUnsavedChanges:"Αυτό θα διαγράψει όλες τις μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση, καθώς και τις αλλαγές που δεν έχετε αποθηκεύσει από την τρέχουσα περίοδο λειτουργίας. Θέλετε ακόμα να διαγράψετε;",onDeleteUnpublishedChanges:"Όλες οι μη δημοσιευμένες αλλαγές σε αυτήν την καταχώρηση θα διαγραφούν. Θέλετε ακόμα να διαγράψετε;",loadingEntry:"Φόρτωση εισόδου...",confirmLoadBackup:"Ανακτήθηκε ένα τοπικό αντίγραφο ασφαλείας για αυτήν την καταχώρηση, θέλετε να το χρησιμοποιήσετε;"},editorToolbar:{publishing:"Δημοσίευση...",publish:"Δημοσίευση",published:"Δημοσιεύθηκε",unpublish:"Κατάργηση δημοσίευσης",duplicate:"Διπλότυπο",unpublishing:"Κατάργηση δημοσίευσης...",publishAndCreateNew:"Δημοσίευση και δημιουργία νέων",publishAndDuplicate:"Δημοσίευση και αντίγραφο",deleteUnpublishedChanges:"Διαγραφή μη δημοσιευμένων αλλαγών",deleteUnpublishedEntry:"Διαγραφή μη δημοσιευμένης καταχώρησης",deletePublishedEntry:"Διαγραφή δημοσιευμένης καταχώρησης",deleteEntry:"Διαγραφή καταχώρησης",saving:"Εξοικονόμηση...",save:"Αποθήκευση",deleting:"Διαγραφή...",updating:"Ενημέρωση...",status:"Κατάστασης: %{status}",backCollection:" Εγγραφή στη συλλογή %{collectionLabel}",unsavedChanges:"Μη αποθηκευμένες αλλαγές",changesSaved:"Αλλαγές που αποθηκεύτηκαν",draft:"Σχέδιο",inReview:"Σε επανεξέταση",ready:"Έτοιμα",publishNow:"Δημοσίευση τώρα",deployPreviewPendingButtonLabel:"Έλεγχος για προεπισκόπηση",deployPreviewButtonLabel:"Προβολή προεπισκόπησης",deployButtonLabel:"Προβολή Live"},editorWidgets:{image:{choose:"Επιλέξτε μια εικόνα",chooseDifferent:"Επιλέξτε διαφορετική εικόνα",remove:"Αφαιρέστε την εικόνα"},file:{choose:"Επιλέξτε ένα αρχείο",chooseDifferent:"Επιλέξτε διαφορετικό αρχείο",remove:"Αφαιρέστε το αρχείο"},unknownControl:{noControl:"Δεν υπάρχει έλεγχος για το widget '%{widget}'."},unknownPreview:{noPreview:"Δεν υπάρχει προεπισκόπηση για το widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Προσχέδιο"},mediaLibrary:{onDelete:"Είστε βέβαιοι ότι θέλετε να διαγράψετε τα επιλεγμένα πολυμέσα;",fileTooLarge:"Το αρχείο είναι πολύ μεγάλο.\nΔεν επιτρέπονται αρχεία μεγαλύτερα από %{size} kB."},mediaLibraryModal:{loading:"Φόρτωση...",noResults:"Χωρίς αποτελέσματα.",noAssetsFound:"Δεν βρέθηκαν αρχεία.",noImagesFound:"Δεν βρέθηκαν εικόνες.",private:"Ιδιωτικό",images:"Εικόνες",mediaAssets:"Αρχεία πολυμέσων",search:"Αναζήτηση...",uploading:"Φόρτωμα...",upload:"Ανεβάστε νέα",deleting:"Διαγραφή...",deleteSelected:"Διαγραφή επιλεγμένου",chooseSelected:"Επιλέξτε επιλεγμένο"}},ui:{errorBoundary:{title:"Σφάλμα",details:"Υπάρχει ένα λάθος ",reportIt:"παρακαλώ να το αναφέρετε.",detailsHeading:"Λεπτομέρειες",recoveredEntry:{heading:"Ανακτημένο έγγραφο",warning:"Παρακαλώ αντιγράψτε/επικολλήστε αυτό κάπου πριν πλοηγηθείτε μακριά!",copyButtonLabel:"Αντιγραφή στο Πρόχειρο"}},settingsDropdown:{logOut:"Αποσύνδεση"},toast:{onFailToLoadEntries:"Απέτυχε η φόρτωση της καταχώρησης: %{details}",onFailToLoadDeployPreview:"Απέτυχε η φόρτωση της προεπισκόπησης: %{details}",onFailToPersist:"Απέτυχε η διατήρηση της καταχώρησης:% {Details}",onFailToDelete:"Απέτυχε η διαγραφή της καταχώρησης: %{details}",onFailToUpdateStatus:"Απέτυχε η ενημέρωση της κατάστασης: %{details}",missingRequiredField:"Ουπς, ξεχάσατε ένα απαιτούμενο πεδίο. Συμπληρώστε το πριν από την αποθήκευση.",entrySaved:"Η καταχώρηση Αποθηκεύτηκε",entryPublished:"Η καταχώρηση δημοσιεύτηκε",entryUnpublished:"Μη δημοσιευμένη καταχώρηση",onFailToPublishEntry:"Η δημοσίευση απέτυχε: %{details}",onFailToUnpublishEntry:"Απέτυχε η κατάργηση δημοσίευσης καταχώρησης: %{details}",entryUpdated:"Η κατάσταση εισόδου ενημερώθηκε",onDeleteUnpublishedChanges:"Οι μη δημοσιευμένες αλλαγές διαγράφηκαν",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Φόρτωση καταχωρήσεων ροής εργασίας σύνταξης",workflowHeading:"Ροή εργασιών",newPost:"Νέα δημοσίευση",description:"%{smart_count} καταχώρησεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. |||| %{smart_count} καταχωρήσεις σε αναμονή για αναθεώρηση, %{readyCount} έτοιμες για Live μετάβαση. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} από %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"από %{author}",deleteChanges:"Διαγραφή αλλαγών",deleteNewEntry:"Διαγραφή νέας καταχώρησης",publishChanges:"Δημοσίευση αλλαγών",publishNewEntry:"Δημοσίευση νέας καταχώρησης"},workflowList:{onDeleteEntry:"Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την καταχώρηση;",onPublishingNotReadyEntry:'Μόνο τα στοιχεία με κατάσταση "Ready" μπορούν να δημοσιευτούν. Σύρετε την κάρτα στη στήλη "έτοιμο" για να ενεργοποιήσετε τη δημοσίευση.',onPublishEntry:"Είστε βέβαιοι ότι θέλετε να δημοσιεύσετε αυτήν την καταχώρηση;",draftHeader:"Προσχέδια",inReviewHeader:"Σε ανασκόπηση",readyHeader:"Έτοιμα",currentEntries:"%{smart_count} καταχωρηση |||| %{smart_count} καταχωρησεις"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={app:{header:{content:"Tartalom",workflow:"Munkafolyamat",media:"Média",quickAdd:"Gyors hozzáadás"},app:{errorHeader:"Hiba történt a CMS konfiguráció betöltése közben",configErrors:"Configurációs hibák",checkConfigYml:"Ellenőrizd a config.yml filet.",loadingConfig:"Konfiguráció betöltése...",waitingBackend:"Várakozás hattérrendszerekre..."},notFoundPage:{header:"Nincs találat"}},collection:{sidebar:{collections:"Gyűjtemények",searchAll:"Keresés mindenre"},collectionTop:{viewAs:"Nézet mint",newButton:"Új %{collectionLabel}"},entries:{loadingEntries:"Bejegyzések betöltése",cachingEntries:"Bejegyzések cacheelése",longerLoading:"Ez még eltarthat néhany percig"}},editor:{editorControl:{field:{optional:"választható"}},editorControlPane:{widget:{required:"%{fieldLabel} kötelező mező.",regexPattern:"%{fieldLabel} nem egyezik a %{pattern} mintával.",processing:"%{fieldLabel} feldolgozás alatt.",range:"%{fieldLabel}, %{minValue} és %{maxValue} értékek között kell legyen.",min:"%{fieldLabel} legalább %{minValue} kell legyen vagy több.",max:"%{fieldLabel} legalabb %{maxValue} vagy kevesebb kell legyen."}},editor:{onLeavePage:"Biztos hogy el akarod hagyni az oldalt?",onUpdatingWithUnsavedChanges:"Mentettlen változtatások vannak, kérjük, mentse az állapot frissítése előtt.",onPublishingNotReady:'Változtasd az állapotot "Kész"-re publikálás előtt.',onPublishingWithUnsavedChanges:"Mentetlen változtatások vannak, kérjük, mentsen a publikálás előtt.",onPublishing:"Publikálod ezt a bejegyzést?",onUnpublishing:"Publikálás visszavonása erre a bejegyzésre?",onDeleteWithUnsavedChanges:"Töröljük ezt a publikált bejegyzést, a többi mentetlen modositással együtt?",onDeletePublishedEntry:"Töröljük ezt a publikált bejegyzést?",onDeleteUnpublishedChangesWithUnsavedChanges:"Ezzel törli a bejegyzés összes nem közzétett módosítását, valamint az aktuális munkamenetből nem mentett módosításokat. Még mindig törli?",onDeleteUnpublishedChanges:"A bejegyzés összes, nem közzétett módosítása törlődik. Még mindig törli?",loadingEntry:"Bejegyzés betöltése...",confirmLoadBackup:"Helyi biztonsági másolat került helyre ehhez a bejegyzéshez, szeretné használni?"},editorToolbar:{publishing:"Publikálás...",publish:"Publikáció",published:"Publikálás",unpublish:"Publikálás visszavonása",duplicate:"Duplikált",unpublishing:"Publikálás visszavonása...",publishAndCreateNew:"Publikálás és új létrehozása",publishAndDuplicate:"Publikálás és duplikál",deleteUnpublishedChanges:"Nempublikált változtatások törlése",deleteUnpublishedEntry:"Nempublikált bejegyzés törlése",deletePublishedEntry:"Publikált bejegyzés törlése",deleteEntry:"Bejegyzés törlése",saving:"Mentés...",save:"Mentés",deleting:"Törlés...",updating:"Frissítés...",status:"Beállitása: %{status}",backCollection:" Írás a %{collectionLabel} gyűjteménybe",unsavedChanges:"Nemmentett változtatások",changesSaved:"Változások elmentve",draft:"Piszkozat",inReview:"Felülvizsgálat alatt",ready:"Kész",publishNow:"Publikálás most",deployPreviewPendingButtonLabel:"Előnézet ellenörzése",deployPreviewButtonLabel:"Előnézet megtekintése",deployButtonLabel:"Élő megtekintése"},editorWidgets:{image:{choose:"Válasszon képet",chooseDifferent:"Válasszon másik képet",remove:"Távolítsa el a képet"},file:{choose:"Válasszon fájlt",chooseDifferent:"Válasszon másik fájlt",remove:"Távolítsa el a fájlt"},unknownControl:{noControl:"Nincs vezérlés a '%{widget}' widget számára."},unknownPreview:{noPreview:"Nincs előnézet a '%{widget}' widget számára."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},list:{add:"Új %{item}",addType:"Új típus %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Piszkozat"},mediaLibrary:{onDelete:"Biztos törli a kiválasztott média tartalmat?"},mediaLibraryModal:{loading:"Betöltés...",noResults:"Nincs találat.",noAssetsFound:"Nem található tartalom.",noImagesFound:"Nem található kép.",private:"Privát ",images:"Képek",mediaAssets:"Média tartalmak",search:"Keresés...",uploading:"Feltöltés...",upload:"Új feltöltés",deleting:"Törlés...",deleteSelected:"Kijelöltek törlése",chooseSelected:"Kijelöl"}},ui:{errorBoundary:{title:"Hiba",details:"Hiba történt - kérjük ",reportIt:"jelentse.",detailsHeading:"Részletek",recoveredEntry:{heading:"Helyreállitott dokumentum",warning:"Kérjük mentse ezt el (vágólapra) mielőtt elhagyná az oldalt!",copyButtonLabel:"Másolás a vágólapra"}},settingsDropdown:{logOut:"Kijelentkezés"},toast:{onFailToLoadEntries:"A bejegyzés betöltése nem sikerült: %{details}",onFailToLoadDeployPreview:"Az előnézet betöltése nem sikerült: %{details}",onFailToPersist:"Bejegyzés megtartása sikertelen: %{details}",onFailToDelete:"A bejegyzés törlése sikertelen: %{details}",onFailToUpdateStatus:"Az állapot frissítése nem sikerült: %{details}",missingRequiredField:"Hoppá, kihagytál egy kötelező mezőt. Mentés előtt töltsd ki.",entrySaved:"Bejegyzés elmentve",entryPublished:"Bejegyzés publikálva",entryUnpublished:"Bejegyzés publikálása visszavonva",onFailToPublishEntry:"Bejegyzés publikálása sikertelen: %{details}",onFailToUnpublishEntry:"Bejegyzés publikálásának visszavonása sikertelen: %{details}",entryUpdated:"Bejegyzés állapota frissült",onDeleteUnpublishedChanges:"Unpublished changes deleted",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"A szerkesztési munkafolyamat-bejegyzések betöltése",workflowHeading:"Szerkesztői Folyamat",newPost:"New Post",description:"%{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. |||| %{smart_count} bejegyzés felülvizsgálatra vár, %{readyCount} élesítésre vár. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, írta %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Változtatások törlése",deleteNewEntry:"Új bejegyzés törlése",publishChanges:"Változtatások publikálása",publishNewEntry:"Új bejegyzés publikálása"},workflowList:{onDeleteEntry:"Biztosan törli ezt a bejegyzést?",onPublishingNotReadyEntry:'Csak a "Kész" állapotú tételek tehetők közzé. A közzététel engedélyezéséhez húzza a kártyát a „Kész” oszlopba.',onPublishEntry:"Biztosan közzéteszi ezt a bejegyzést?",draftHeader:"Piszkozat",inReviewHeader:"Vizsgálat alatt",readyHeader:"Kész",currentEntries:"%{smart_count} bejegyzés |||| %{smart_count} bejegyzések"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Accedi",loggingIn:"Effettuando l'accesso...",loginWithNetlifyIdentity:"Accedi con Netlify Identity",loginWithBitbucket:"Accedi con Bitbucket",loginWithGitHub:"Accedi con GitHub",loginWithGitLab:"Accedi con GitLab",errors:{email:"Assicurati di inserire la tua mail.",password:"Inserisci la tua password.",identitySettings:"Impossibile accedere alle impostazioni di Identity. Quando usi git-gateway come backend assicurati di abilitare il servizio Itentity e Git Gateway."}},app:{header:{content:"Contenuti",workflow:"Workflow",media:"Media",quickAdd:"Aggiunta veloce"},app:{errorHeader:"Errore nel caricamento della configurazione CMS",configErrors:"Errori di Configurazione",checkConfigYml:"Controlla il tuo file config.yml.",loadingConfig:"Caricando la configurazione...",waitingBackend:"Attendi il backend..."},notFoundPage:{header:"Non trovato"}},collection:{sidebar:{collections:"Collezioni",searchAll:"Cerca su tutto"},collectionTop:{viewAs:"Vedi come",newButton:"Nuovo/a %{collectionLabel}"},entries:{loadingEntries:"Caricando le voci",cachingEntries:"Cachando le voci",longerLoading:"Questa operazione potrebbe durare diversi minuti"}},editor:{editorControl:{field:{optional:"opzionale"}},editorControlPane:{widget:{required:"%{fieldLabel} è richiesto.",regexPattern:"%{fieldLabel} non corrisponde allo schema: %{pattern}.",processing:"%{fieldLabel} sta elaborando.",range:"%{fieldLabel} deve essere tra %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve essere almeno %{minValue}.",max:"%{fieldLabel} deve essere %{maxValue} o meno."}},editor:{onLeavePage:"Sei sicuro di voler lasciare questa pagina?",onUpdatingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di aggiornare lo status.",onPublishingNotReady:'Aggiorna lo status a "Pronto" prima di pubblicare.',onPublishingWithUnsavedChanges:"Hai delle modifiche non salvate, salvale prima di pubblicare.",onPublishing:"Sei sicuro di voler pubblicare questa voce?",onUnpublishing:"Sei sicuro di voler nascondere questa voce?",onDeleteWithUnsavedChanges:"Sei sicuro di voler cancellare questa voce pubblicata e tutte le modifiche non salvate della tua sessione corrente?",onDeletePublishedEntry:"Sei sicuro di voler cancellare questa voce pubblicata?",onDeleteUnpublishedChangesWithUnsavedChanges:"Questo cancellerà tutte le modifiche non pubblicate di questa voce, come anche tutte le modifiche non salvate della sessione corrente. Vuoi ancora cancellarle?",onDeleteUnpublishedChanges:"Tutte le modifiche non pubblicate a questa voce saranno cancellate. Vuoi ancora cancellarle?",loadingEntry:"Caricando la voce...",confirmLoadBackup:"Un backup locale è stato recuperato per questa voce, vuoi utilizzarlo?"},editorToolbar:{publishing:"Pubblicando...",publish:"Pubblica",published:"Pubblicato",unpublish:"Rimuovi dalla pubblicazione",duplicate:"Duplica",unpublishing:"Rimuovendo dalla pubblicazione...",publishAndCreateNew:"Pubblica e creane uno nuovo",publishAndDuplicate:"Pubblica e duplica",deleteUnpublishedChanges:"Cancella le modifiche non pubblicate",deleteUnpublishedEntry:"Cancella le voci non pubblicate",deletePublishedEntry:"Cancella la voce pubblicata",deleteEntry:"Cancella voce",saving:"Salvando...",save:"Salva",deleting:"Cancellando...",updating:"Aggiornando...",status:"Status: %{status}",backCollection:" Scrivendo nella sezione %{collectionLabel}",unsavedChanges:"Modifiche non salvate",changesSaved:"Modifiche salvate",draft:"Bozza",inReview:"In revisione",ready:"Pronto",publishNow:"Pubblica ora",deployPreviewPendingButtonLabel:"Controlla l'anteprima",deployPreviewButtonLabel:"Guarda l'anteprima",deployButtonLabel:"Guarda Live"},editorWidgets:{image:{choose:"Scegli un'immagine",chooseDifferent:"Scegli un'immagine diversa",remove:"Rimuovi immagine"},file:{choose:"Scegli un file",chooseDifferent:"Scegli un altro file",remove:"Rimuovi il file"},unknownControl:{noControl:"Nessun controllo per il widget '%{widget}'."},unknownPreview:{noPreview:"Nessuna preview per il widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bozza"},mediaLibrary:{onDelete:"Sei sicuro di voler cancellare il media selezionato?",fileTooLarge:"File troppo grande.\nConfigurato per non accettare file piú grandi di %{size} kB."},mediaLibraryModal:{loading:"Caricamento...",noResults:"Nessun risultato.",noAssetsFound:"Nessun assets trovato.",noImagesFound:"Nessuna immagine trovata.",private:"Privato ",images:"Immagini",mediaAssets:"Media assets",search:"Cerca...",uploading:"Uploading...",upload:"Upload",deleting:"Deleting...",deleteSelected:"Cancella selezionato",chooseSelected:"Prendi selezionato"}},ui:{errorBoundary:{title:"Errore",details:"C'è stato un errore - per favore ",reportIt:"riportalo.",detailsHeading:"Dettagli",recoveredEntry:{heading:"Documento recuperato",warning:"Per favore copia/incollalo da qualche parte prima di navigare altrove!",copyButtonLabel:"Copialo negli appunti"}},settingsDropdown:{logOut:"Esci"},toast:{onFailToLoadEntries:"Caricamento voce non riuscito: %{details}",onFailToLoadDeployPreview:"Caricamento della preview non riuscito: %{details}",onFailToPersist:"Salvataggio della voce non riuscito: %{details}",onFailToDelete:"Cancellazione della voce non riuscita: %{details}",onFailToUpdateStatus:"Aggiornamento dello status non riuscito: %{details}",missingRequiredField:"Oops, ti sei perso un campo obbligatorio. Per favore completalo prima di salvare.",entrySaved:"Voce salvata",entryPublished:"Voce pubblicata",entryUnpublished:"Voce rimossa dalla pubblicazione",onFailToPublishEntry:"Pubblicazione fallita: %{details}",onFailToUnpublishEntry:"Rimozione della pubblicazione fallita: %{details}",entryUpdated:"Status della voce aggiornato",onDeleteUnpublishedChanges:"Modifiche non pubblicate cancellate",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Caricando le voci del Flusso Editoriale",workflowHeading:"Flusso Editoriale",newPost:"Nuovo Post",description:"%{smart_count} voce attende la revisione, %{readyCount} pronte per la pubblicazione. |||| %{smart_count} voci attendono la revisione, %{readyCount} pronte per la pubblicazione. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} da %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"da %{author}",deleteChanges:"Cancella le modifiche",deleteNewEntry:"Cancella nuova voce",publishChanges:"Pubblica modifiche",publishNewEntry:"Pubblica una nuova voce"},workflowList:{onDeleteEntry:"Sei sicuro di voler cancellare questa voce?",onPublishingNotReadyEntry:'Solo gli oggetti con lo status "Pronto" possono essere pubblicati. Sposta la Card nella colonna "Pronto" per abilitare la pubblicazione.',onPublishEntry:"Sei sicuro di voler pubblicare questa voce?",draftHeader:"Bozze",inReviewHeader:"In Revisione",readyHeader:"Pronto",currentEntries:"%{smart_count} voce |||| %{smart_count} voci"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Prisijungti",loggingIn:"Prisijungiama...",loginWithNetlifyIdentity:"Prisijungti su Netlify Identity",loginWithAzure:"Prisijungti su Azure",loginWithBitbucket:"Prisijungti su Bitbucket",loginWithGitHub:"Prisijungti su GitHub",loginWithGitLab:"Prisijungti su GitLab",errors:{email:"Įveskite savo elektroninį paštą.",password:"Įveskite savo slaptažodį.",identitySettings:"Deja, nepavyksta pasiekti Identity paslaugos nustatymus. Kai naudojate git-gateway backend metodą, įjunkite „Identity service“ ir „Git Gateway“."}},app:{header:{content:"Turinys",workflow:"Darbo eiga",media:"Medija",quickAdd:"Sukurti naują"},app:{errorHeader:"Klaida, neišėjo užkrauti/pasiekti CMS konfigūracijos failą",configErrors:"Konfigūracijos (nustatymų) klaidos",checkConfigYml:"Patikrinkite config.yml balsą.",loadingConfig:"Kraunamas nustatymų (konfigūracijos) failas...",waitingBackend:"Laukiama serverio..."},notFoundPage:{header:"Nerasta"}},collection:{sidebar:{collections:"Kolekcijos",allCollections:"Visos kolekcijos",searchAll:"Ieškoti viską",searchIn:"Ieškoti tik čia"},collectionTop:{sortBy:"Rikiavimo tvarka",viewAs:"Peržiūrėti kaip",newButton:"Nauja(s) %{collectionLabel}",ascending:"Didėjimo tvarka (A-Z)",descending:"Mažėjimo tvarka (Z-A)",searchResults:"Paieškos rezultatai: „%{searchTerm}“",searchResultsInCollection:"Paieškos rezultatai: „%{searchTerm}“ iš %{collection}",filterBy:"Filtruoti",groupBy:"Grupuoti"},entries:{loadingEntries:"Kraunamas turinys...",cachingEntries:"Talpinami įrašai...",longerLoading:"Šis procesas gali trukti keletą minučių",noEntries:"Nėra turinio"},groups:{other:"Kita",negateLabel:"Ne %{label}"},defaultFields:{author:{label:"Autorius"},updatedOn:{label:"Atnaujinta"}}},editor:{editorControl:{field:{optional:"neprivaloma"}},editorControlPane:{widget:{required:"Privaloma užpildyti laukelį %{fieldLabel}.",regexPattern:"%{fieldLabel} laukelis neatitiko konfigūracijoje nustatytų taisyklių: %{pattern}.",processing:"Apdorojame %{fieldLabel}.",range:"%{fieldLabel} turi būti tarp %{minValue} ir %{maxValue}.",min:"%{fieldLabel} turi būti bent %{minValue}.",max:"%{fieldLabel} turi būti %{maxValue} arba mažiau.",rangeCount:"%{fieldLabel} turi būti tarp %{minCount} ir %{maxCount} elementų/-o.",rangeCountExact:"%{fieldLabel} turi turėti būtent tik %{count} elementų/-us.",rangeMin:"%{fieldLabel} turi būti bent %{minCount} elementų.",rangeMax:"%{fieldLabel} turi būti %{maxCount} arba mažiau elementų.",invalidPath:"'%{path}' nėra taisyklinga nuoroda/adresas į resursą/-us",pathExists:"Adresas '%{path}' jau egzistuoja"},i18n:{writingInLocale:"Rašome %{locale} kalboje"}},editor:{onLeavePage:"Ar tikrai norite uždaryti šį puslapį?",onUpdatingWithUnsavedChanges:"Turite neišsaugotų pakeitimų! Prašome išsaugoti prieš pakeičiant statusą.",onPublishingNotReady:"Prieš publikuojant, privalote pakeisti statusą į „Paruošta“.",onPublishingWithUnsavedChanges:"Yra neišsaugotų pakeitimų, prašome išsaugoti juos prieš publikuojant.",onPublishing:"Ae tikrai norite publikuoti šį įrašą?",onUnpublishing:"Tikrai norite panaikinti publikavimo statusą?",onDeleteWithUnsavedChanges:"Tikrai norite panaikinti publikuotą įrašą ir Jūsų pakeiitmus iš dabartinės sesijos?",onDeletePublishedEntry:"Tikrai norite ištrinti šį publikuotą įrašą?",onDeleteUnpublishedChangesWithUnsavedChanges:"Tai ištrins visus nepublikuotus pakeitimus įraše, taip pat neišsaugotus pakeitimus per dabartinę sesiją. Vis tiek norite trinti?",onDeleteUnpublishedChanges:"Visi Jūsų pakeitimai įraše bus panaikinti. Ar tikrai norite trinti jį?",loadingEntry:"Kraunamas įrašas...",confirmLoadBackup:"Radome Jūsų įrenginyje išsaugota juodraštį šiam įrašui, ar norite jį atgaivinti ir naudoti?"},editorToolbar:{publishing:"Publikuojama...",publish:"Publikuoti",published:"Jau publikuota",unpublish:"Atšaukti paskelbimą",duplicate:"Daryti dublį",unpublishing:"Nebeskelbiama...",publishAndCreateNew:"Publikuoti šitą, po to kurti kažką naujo",publishAndDuplicate:"Publikuoti šitą, po to kurti šito dublį",deleteUnpublishedChanges:"Ištrinti publikuotus pakeitimus",deleteUnpublishedEntry:"Ištrinti nepaskelbtą įrašą",deletePublishedEntry:"Ištrinti paskelbtą įrašą",deleteEntry:"Panaikinti įrašą",saving:"Išsaugojama...",save:"Išsaugoti",deleting:"Trinama...",updating:"Atnaujinama...",status:"Statusą: %{status}",backCollection:" Rašoma %{collectionLabel} kolekcijoje",unsavedChanges:"Neišsaugoti pakeitimai",changesSaved:"Pakeitimai išsauogti",draft:"Juodraštis",inReview:"Peržiūrima redakcijoje",ready:"Paruošta",publishNow:"Skelbti naują",deployPreviewPendingButtonLabel:"Tikrinti, ar yra demonstracija",deployPreviewButtonLabel:"Žiūrėti demonstraciją (netiesiogiai)",deployButtonLabel:"Žiūrėti tiesiogiai tinklalapyje"},editorWidgets:{markdown:{bold:"Paryškinta",italic:"Pasvariu tekstu (italic)",code:"Kodo šriftas",link:"Nuoroda (adresas)",linkPrompt:"Įveskite adresą čia",headings:"Antraštės",quote:"Citata",bulletedList:"Sąrašas su ženkleliais",numberedList:"Sąrašas su numeriais",addComponent:"Pridėti komponentą",richText:"Normali peržiūra",markdown:"Rodyti be formatavimo (Markdown)"},image:{choose:"Pasirinkti vaizdą",chooseDifferent:"Pasirinkti skirtingą vaizdą",remove:"Panaikinti vaizdą"},file:{choose:"Pasirinkti failą",chooseDifferent:"Pasirinkti kitą failą",remove:"Panaikinti failą"},unknownControl:{noControl:"Klaida: valdiklis taisyklingai neveikia. No control for widget '%{widget}'."},unknownPreview:{noPreview:"Klaida: valdiklis taisyklingai neveikia. No preview for widget '%{widget}'."},headingOptions:{headingOne:"Antraštė 1",headingTwo:"Antraštė 2",headingThree:"Antraštė 3",headingFour:"Antraštė 4",headingFive:"Antraštė 5",headingSix:"Antraštė 6"},datetime:{now:"Dabar"}}},mediaLibrary:{mediaLibraryCard:{draft:"Juodraštis"},mediaLibrary:{onDelete:"Ar jūs tikrai norite ištrinti pasirinktą mediją?",fileTooLarge:"Failas per didelis.\nNustatymuose (konfigūracijoje) nurodyta, kad failai negali viršyti %{size} kB."},mediaLibraryModal:{loading:"Kraunama...",noResults:"Nėra rezultatų.",noAssetsFound:"Turinio nerasta.",noImagesFound:"Vaizdų nerasta.",private:"Privatu ",images:"Vaizdai",mediaAssets:"Medijos turinys",search:"Paieška...",uploading:"Keliama...",upload:"Įkelti",download:"Parsiųsti",deleting:"Trinama...",deleteSelected:"Ištrinti parinktus",chooseSelected:"Pasirinkti parinktus"}},ui:{default:{goBackToSite:"Grįžti atgal į tinklalapį"},errorBoundary:{title:"Klaida",details:"Buvo klaida - jeigu galite, prašome ",reportIt:"pranešti apie techninę problemą „GitHub“ puslapyje.",detailsHeading:"Detalės",privacyWarning:"Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.",recoveredEntry:{heading:"Sugrąžintas dokumentas",warning:"Prašome kopijuoti/įkluoti šitą kažkur prieš uždarant puslapį!",copyButtonLabel:"Nukopijuoti į iškarpinę"}},settingsDropdown:{logOut:"Atsijungti"},toast:{onFailToLoadEntries:"Nepavyko užkrauti įrašo: %{details}",onFailToLoadDeployPreview:"Nepavyko užkrauti demonstracijos lango: %{details}",onFailToPersist:"Nepavyko išlaikyti įrašo: %{details}",onFailToDelete:"Nepayvko ištrinti: %{details}",onFailToUpdateStatus:"Nepavyko pakeisti statusą: %{details}",missingRequiredField:"Pasitikrinkite — kažkurio (ar kelių) laukelių neužpildėte. Tai padarius galėsite išsaugoti įrašą.",entrySaved:"Įrašas išsaugotos",entryPublished:"Įrašas publikuotas",entryUnpublished:"Įrašas nepublikuotas",onFailToPublishEntry:"Nepavyko publikuoti: %{details}",onFailToUnpublishEntry:"Nepavyko panaikinti publikavimą: %{details}",entryUpdated:"Įrašo statusas pakeistas",onDeleteUnpublishedChanges:"Nepublikuoti pakeitimai ištrinti",onFailToAuth:"Nepavyko prisijungti: %{details}",onLoggedOut:"Mes jus atjungėme. Jeigu yra poreikis, sukurkite duomenų atsarginę kopiją. Galite tiesiog iš naujo prisijungti.",onBackendDown:"Deja, serveris šiuo metu neveikia. Bandykite iš naujo dar sykį arba šiek tiek vėliau. Detalės: %{details}"}},workflow:{workflow:{loading:"Kraunamas turinys",workflowHeading:"Redakcijos darbo eiga",newPost:"Naujas įrašas",description:"%{smart_count} įrašas laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojamas. |||| %{smart_count} elementai laukia Jūsų peržiūrėjimo, %{readyCount} jau gali būti publikuojami. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} pagal %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"oagal %{author}",deleteChanges:"Trinti keitimus",deleteNewEntry:"Trinti naują įrašą",publishChanges:"Publikuoti keitimus",publishNewEntry:"Kurti naują įrašą"},workflowList:{onDeleteEntry:"Ar tikrai norite ištrinti šį įrašą?",onPublishingNotReadyEntry:"Tik įrašai su statusu „Paruošta“ gali būti patvirtinti. Prašome pajudinti įrašo kortelę link „Paruošta“ stulpelio, kad galėtumėte publikuoti įrašą.",onPublishEntry:"Ar jūs tikrai norite publikuoti šį įrašą?",draftHeader:"Juodraščiai",inReviewHeader:"Peržiūrima redakcijoje",readyHeader:"Paruošta",currentEntries:"%{smart_count} įrašas |||| %{smart_count} įrašai"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"ログイン",loggingIn:"ログインしています...",loginWithNetlifyIdentity:"Netlify Identity でログインする",loginWithAzure:"Azure でログインする",loginWithBitbucket:"Bitbucket でログインする",loginWithGitHub:"GitHub でログインする",loginWithGitLab:"GitLab でログインする",errors:{email:"メールアドレスを確認してください。",password:"パスワードを入力してください。",identitySettings:"認証情報にアクセスできませんでした。git-gateway backend を利用している場合は、認証サービスと Git Gateway が有効になっているかを確認してください。"}},app:{header:{content:"コンテンツ",workflow:"ワークフロー",media:"メディア",quickAdd:"新規作成"},app:{errorHeader:"CMS設定の読み込みエラー",configErrors:"設定エラー",checkConfigYml:"config.ymlを確認してください。",loadingConfig:"設定を読み込んでいます...",waitingBackend:"バックエンドの応答を待機しています..."},notFoundPage:{header:"ページが見つかりません"}},collection:{sidebar:{collections:"コレクション",allCollections:"すべてのコレクション",searchAll:"検索",searchIn:"検索対象"},collectionTop:{sortBy:"ソート",viewAs:"表示モード",newButton:"%{collectionLabel}を作成",ascending:"昇順",descending:"降順",searchResults:"「%{searchTerm}」の検索結果",searchResultsInCollection:"%{collection}内の「%{searchTerm}」の検索結果",filterBy:"絞り込み",groupBy:"グルーピング"},entries:{loadingEntries:"エントリを読み込み中",cachingEntries:"エントリをキャッシュ中",longerLoading:"少々お待ちください",noEntries:"エントリがありません"},groups:{other:"その他",negateLabel:"%{label}以外"},defaultFields:{author:{label:"作成者"},updatedOn:{label:"最終更新"}}},editor:{editorControl:{field:{optional:"任意"}},editorControlPane:{widget:{required:"%{fieldLabel}は必須です。",regexPattern:"%{fieldLabel}が入力規則(%{pattern})と一致しません。",processing:"%{fieldLabel}を処理しています。",range:"%{fieldLabel}は%{minValue}から%{maxValue}まで入力可能です。",min:"%{fieldLabel}の最小値は%{minValue}です。",max:"%{fieldLabel}の最大値は%{maxValue}です。",rangeCount:"%{fieldLabel}は%{minCount}個から%{maxCount}個まで選択してください。",rangeCountExact:"%{fieldLabel}はちょうど%{count}個選択してください。",rangeMin:"%{fieldLabel}は%{minCount}個以上選択してください。",rangeMax:"%{fieldLabel}は%{maxCount}個以下選択してください。",invalidPath:"'%{path}'は有効なパスではありません。",pathExists:"'%{path}'というパスはすでに存在しています。"},i18n:{writingInLocale:"言語: %{locale}"}},editor:{onLeavePage:"このページから遷移しますか?",onUpdatingWithUnsavedChanges:"変更した項目があります。ステータスを更新する前に保存してください。",onPublishingNotReady:"公開する前に、ステータスを「準備完了」に更新してください。",onPublishingWithUnsavedChanges:"変更した項目があります。公開する前に保存してください。",onPublishing:"このエントリを公開しますか?",onUnpublishing:"このエントリを未公開にしますか?",onDeleteWithUnsavedChanges:"保存されていない変更も削除されますが、この公開エントリを削除しますか?",onDeletePublishedEntry:"この公開エントリを削除しますか?",onDeleteUnpublishedChangesWithUnsavedChanges:"保存されていない変更も削除されますが、このエントリの未公開の変更を削除しますか?",onDeleteUnpublishedChanges:"公開されていない変更も削除されますが、このエントリを削除しますか?",loadingEntry:"エントリの読込中...",confirmLoadBackup:"ローカルのバックアップが復旧できました。利用しますか?"},editorInterface:{toggleI18n:"言語を切り替える",togglePreview:"プレビュー表示を切り替える",toggleScrollSync:"スクロール同期を切り替える"},editorToolbar:{publishing:"公開しています...",publish:"公開",published:"公開済",unpublish:"未公開",duplicate:"複製",unpublishing:"未公開にしています...",publishAndCreateNew:"公開して新規作成",publishAndDuplicate:"公開して複製する",deleteUnpublishedChanges:"未公開の変更を削除",deleteUnpublishedEntry:"未公開エントリを削除",deletePublishedEntry:"公開エントリを削除",deleteEntry:"エントリを削除",saving:"保存中...",save:"保存",statusInfoTooltipDraft:"エントリのステータスは下書きに設定されています。最終決定してレビューに提出するには、ステータスを「レビュー中」に設定します。",statusInfoTooltipInReview:"エントリはレビュー中なので、それ以上のアクションは必要ありません。ただし、レビュー中でも追加の変更を行うことができます。",deleting:"削除しています...",updating:"更新しています...",status:"ステータス: %{status}",backCollection:"%{collectionLabel}のエントリを作成中",unsavedChanges:"未保存",changesSaved:"保存済",draft:"下書き",inReview:"レビュー中",ready:"準備完了",publishNow:"公開する",deployPreviewPendingButtonLabel:"プレビューのチェック",deployPreviewButtonLabel:"プレビューを見る",deployButtonLabel:"ライブで見る"},editorWidgets:{markdown:{bold:"太字",italic:"斜体",code:"コード",link:"リンク",linkPrompt:"リンクのURLを入力してください",headings:"見出し",quote:"引用",bulletedList:"箇条書き",numberedList:"番号付きリスト",addComponent:"コンポーネント追加",richText:"リッチテキスト",markdown:"マークダウン"},image:{choose:"画像を選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"画像のURLを入力してください",chooseDifferent:"他の画像を選択",remove:"画像を削除"},file:{choose:"ファイルを選択",chooseUrl:"URLを入力する",replaceUrl:"URLを変更する",promptUrl:"ファイルのURLを入力してください",chooseDifferent:"他のファイルを選択",remove:"ファイルを削除"},unknownControl:{noControl:"'%{widget}'はウィジェットとして利用できません。"},unknownPreview:{noPreview:"'%{widget}'のウィジェットにはプレビューがありません。"},headingOptions:{headingOne:"見出し 1",headingTwo:"見出し 2",headingThree:"見出し 3",headingFour:"見出し 4",headingFive:"見出し 5",headingSix:"見出し 6"},datetime:{now:"現時刻"}}},mediaLibrary:{mediaLibraryCard:{draft:"下書き",copy:"コピー",copyUrl:"URLをコピー",copyPath:"パスをコピー",copyName:"名前をコピー",copied:"コピーしました"},mediaLibrary:{onDelete:"選択しているデータを削除しますか?",fileTooLarge:"ファイルサイズが大きすぎます。\n%{size} kB 以下にしてください。"},mediaLibraryModal:{loading:"読込中...",noResults:"データがありません。",noAssetsFound:"データがありません。",noImagesFound:"データがありません。",private:"プライベート",images:"画像",mediaAssets:"メディア",search:"検索",uploading:"アップロード中...",upload:"アップロードする",download:"ダウンロードする",deleting:"削除中...",deleteSelected:"削除する",chooseSelected:"選択する"}},ui:{default:{goBackToSite:"サイトに戻る"},errorBoundary:{title:"エラー",details:"エラーが発生しました。",reportIt:"レポートする",detailsHeading:"詳細",privacyWarning:"エラーメッセージとデバッグのデータがレポートする前に表示されます。\n情報が正しいことを確認し、機密データが存在する場合は削除してください。",recoveredEntry:{heading:"復旧したエントリ",warning:"必要あれば、このページから遷移する前にコピーしてください。",copyButtonLabel:"コピーする"}},settingsDropdown:{logOut:"ログアウト"},toast:{onFailToLoadEntries:"エントリの読み込みに失敗しました。%{details}",onFailToLoadDeployPreview:"プレビューの読み込みに失敗しました。%{details}",onFailToPersist:"エントリの保存に失敗しました。%{details}",onFailToDelete:"エントリの削除に失敗しました。%{details}",onFailToUpdateStatus:"エントリのステータス更新に失敗しました。%{details}",missingRequiredField:"すべての必須項目を入力してください。",entrySaved:"保存しました。",entryPublished:"公開しました。",entryUnpublished:"未公開にしました。",onFailToPublishEntry:"エントリの公開に失敗しました。%{details}",onFailToUnpublishEntry:"エントリを未公開にするのに失敗しました。%{details}",entryUpdated:"エントリのステータスを更新しました。",onDeleteUnpublishedChanges:"未公開の変更を削除しました。",onFailToAuth:"%{details}",onLoggedOut:"ログアウトされています。データをバックアップし、再度ログインしてください。",onBackendDown:"バックエンドのシステムが停止しています。%{details}"}},workflow:{workflow:{loading:"ワークフロー内のエントリを読込中",workflowHeading:"ワークフロー",newPost:"新規作成",description:"%{smart_count}件がレビュー中、%{readyCount}件が準備完了です。",dateFormat:"M月D日"},workflowCard:{lastChange:"%{author}が%{date}に更新",lastChangeNoAuthor:"最終更新日:%{date}",lastChangeNoDate:"最終更新者:%{author}",deleteChanges:"変更を削除",deleteNewEntry:"エントリを削除",publishChanges:"変更を公開",publishNewEntry:"エントリを公開"},workflowList:{onDeleteEntry:"このエントリを削除しますか?",onPublishingNotReadyEntry:"「準備完了」のエントリのみを公開できます。「準備完了」列にカードを移動し、ステータスを更新してください。",onPublishEntry:"このエントリを公開しますか?",draftHeader:"下書き",inReviewHeader:"レビュー中",readyHeader:"準備完了",currentEntries:"%{smart_count}件のエントリ"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Inloggen",loggingIn:"Inloggen...",loginWithNetlifyIdentity:"Inloggen met Netlify Identity",loginWithAzure:"Inloggen met Azure",loginWithBitbucket:"Inloggen met Bitbucket",loginWithGitHub:"Inloggen met GitHub",loginWithGitLab:"Inloggen met GitLab",errors:{email:"Voer uw email in.",password:"Voer uw wachtwoord in.",identitySettings:"Netlify Identity instellingen niet gevonden. Wanneer u git-gateway als backend gebruikt moet u de Identity service en Git Gateway activeren in uw Netlify instellingen."}},app:{header:{content:"Inhoud",workflow:"Workflow",media:"Media",quickAdd:"Snel toevoegen"},app:{errorHeader:"Fout bij het laden van de CMS configuratie",configErrors:"configuratiefouten",checkConfigYml:"Controleer je config.yml bestand",loadingConfig:"Configuatie laden...",waitingBackend:"Wachten op server..."},notFoundPage:{header:"Niet gevonden"}},collection:{sidebar:{collections:"Inhoudstypen",allCollections:"Alle inhoudstypen",searchAll:"Zoeken",searchIn:"Zoeken in"},collectionTop:{sortBy:"Sorteer op",viewAs:"Bekijk als",newButton:"Voeg %{collectionLabel} toe",ascending:"Oplopend",descending:"Aflopend",searchResults:'Zoekresultaten voor "%{searchTerm}"',searchResultsInCollection:'Zoekresultaten voor "%{searchTerm}" in %{collection}',filterBy:"Filteren op",groupBy:"Groepeer op"},entries:{loadingEntries:"Items laden",cachingEntries:"Items cachen",longerLoading:"Dit kan een paar minuten duren",noEntries:"Geen items"},groups:{other:"Anders",negateLabel:"Geen %{label}"},defaultFields:{author:{label:"Auteur"},updatedOn:{label:"Bijgewerkt op"}}},editor:{editorControl:{field:{optional:"optioneel"}},editorControlPane:{widget:{required:"%{fieldLabel} is vereist.",regexPattern:"%{fieldLabel} komt niet overeen met het patroon: %{pattern}.",processing:"%{fieldLabel} wordt verwerkt.",range:"%{fieldLabel} moet tussen %{minValue} en %{maxValue} liggen.",min:"%{fieldLabel} moet tenminste %{minValue} bevatten.",max:"%{fieldLabel} moet hoogstens %{maxValue} bevatten.",rangeCount:"%{fieldLabel} moet tussen %{minCount} en %{maxCount} item(s) bevatten.",rangeCountExact:"%{fieldLabel} moet exact %{count} item(s) bevatten.",rangeMin:"%{fieldLabel} moet tenminste %{minCount} item(s) bevatten.",rangeMax:"%{fieldLabel} moet hoogstens %{maxCount} item(s) bevatten."},i18n:{writingInLocale:"%{locale} aan het bewerken"}},editor:{onLeavePage:"Weet je zeker dat je deze pagina wilt verlaten?",onUpdatingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar ze voordat u de status bijwerkt.",onPublishingNotReady:'Stel de status in op "Voltooid" voordat u publiceert.',onPublishingWithUnsavedChanges:"Er zijn nog niet-opgeslagen wijzigingen. Bewaar deze voordat u publiceert.",onPublishing:"Weet u zeker dat u dit item wil publiceren?",onUnpublishing:"Weet u zeker dat u de publicatie voor dit item ongedaan wilt maken?",onDeleteWithUnsavedChanges:"Weet u zeker dat u dit gepubliceerde item en uw niet-opgeslagen wijzigingen uit de huidige sessie wilt verwijderen?",onDeletePublishedEntry:"Weet u zeker dat u dit gepubliceerde item wilt verwijderen?",onDeleteUnpublishedChangesWithUnsavedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd, evenals uw niet-opgeslagen wijzigingen uit de huidige sessie. Wilt u nog steeds verwijderen?",onDeleteUnpublishedChanges:"Alle niet-gepubliceerde wijzigingen in dit item worden verwijderd. Wilt u nog steeds verwijderen?",loadingEntry:"Item laden...",confirmLoadBackup:"Voor dit item is een lokale back-up hersteld, wilt u deze gebruiken?"},editorInterface:{toggleI18n:"Wissel i18n",togglePreview:"Wissel voorvertoning",toggleScrollSync:"Synchroniseer scrollen"},editorToolbar:{publishing:"Publiceren...",publish:"Publiceer",published:"Gepubliceerd",unpublish:"Publicatie terugtrekken",duplicate:"Dupliceren",unpublishing:"Publicatie ongedaan maken...",publishAndCreateNew:"Publiceer en maak nieuw item aan",publishAndDuplicate:"Publiceer en dupliceer item",deleteUnpublishedChanges:"Verwijder niet-gepubliceerde wijzigingen",deleteUnpublishedEntry:"Niet-gepubliceerd item verwijderen",deletePublishedEntry:"Gepubliceerd item verwijderen",deleteEntry:"Item verwijderen",saving:"Opslaan...",save:"Opslaan",deleting:"Verwijderen...",updating:"Bijwerken...",status:"Status: %{status}",backCollection:" Terug naar %{collectionLabel}",unsavedChanges:"Niet-opgeslagen wijzigingen",changesSaved:"Wijzigingen opgeslagen",draft:"Concept",inReview:"Wordt beoordeeld",ready:"Klaar",publishNow:"Publiceer nu",deployPreviewPendingButtonLabel:"Controleer of voorvertoning geladen is",deployPreviewButtonLabel:"Bekijk voorvertoning",deployButtonLabel:"Bekijk Live"},editorWidgets:{markdown:{bold:"Vet",italic:"Cursief",code:"Code",link:"Link",linkPrompt:"Voer de URL in",headings:"Hoofdtekst",quote:"Quote",bulletedList:"Lijst met opsommingstekens",numberedList:"Genummerde lijst",addComponent:"Voeg component toe",richText:"Rijke tekst",markdown:"Markdown"},image:{choose:"Kies een afbeelding",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van de afbeelding in",chooseDifferent:"Kies een andere afbeelding",remove:"Verwijder afbeelding"},file:{choose:"Kies een bestand",chooseUrl:"Voeg toe via URL",replaceUrl:"Vervang met URL",promptUrl:"Voer de URL van het bestand in",chooseDifferent:"Kies een ander bestand",remove:"Verwijder bestand"},unknownControl:{noControl:"Geen control voor widget '%{widget}'."},unknownPreview:{noPreview:"Geen voorvertoning voor widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Nu"},list:{add:"Voeg %{item} toe"}}},mediaLibrary:{mediaLibraryCard:{draft:"Concept",copy:"Kopieer",copyUrl:"Kopieer URL",copyPath:"Kopieer pad",copyName:"Kopieer naam",copied:"Gekopieerd"},mediaLibrary:{onDelete:"Weet u zeker dat u de geselecteerde media wilt verwijderen?",fileTooLarge:"Het bestand is te groot.\n De instellingen staan geen bestanden toe groter dan %{size} kB."},mediaLibraryModal:{loading:"Laden...",noResults:"Geen resultaten.",noAssetsFound:"Geen media gevonden.",noImagesFound:"Geen afbeeldingen gevonden.",private:"Privé",images:"Afbeeldingen",mediaAssets:"Media",search:"Zoeken...",uploading:"Uploaden...",upload:"Nieuwe uploaden",download:"Downloaden",deleting:"Verwijderen...",deleteSelected:"Verwijder selectie",chooseSelected:"Gebruik selectie"}},ui:{default:{goBackToSite:"Ga terug naar site"},errorBoundary:{title:"Fout",details:"Er is een fout opgetreden - ",reportIt:"maak er alstublieft een melding van.",detailsHeading:"Details",privacyWarning:"Als u een probleem opent, wordt het vooraf gevuld met het foutbericht en foutopsporingsgegevens. \nControleer of de informatie correct is en verwijder, indien aanwezig, gevoelige gegevens.",recoveredEntry:{heading:"Hersteld document",warning:"Kopieer / plak dit ergens voordat u weggaat!",copyButtonLabel:"Kopieer naar klembord"}},settingsDropdown:{logOut:"Uitloggen"},toast:{onFailToLoadEntries:"Kan item niet laden: %{details}",onFailToLoadDeployPreview:"Kan voorvertoning niet laden: %{details}",onFailToPersist:"Kan item niet opslaan: %{details}",onFailToDelete:"Kan item niet verwijderen: %{details}",onFailToUpdateStatus:"Kan status niet updaten: %{details}",missingRequiredField:"Oeps, sommige verplichte velden zijn niet ingevuld.",entrySaved:"Item opgeslagen",entryPublished:"Item gepubliceerd",entryUnpublished:"Publicatie teruggetrokken",onFailToPublishEntry:"Kan item niet publiceren: %{details}",onFailToUnpublishEntry:"Kan item niet terugtrekken: %{details}",entryUpdated:"Status van item geüpdatet",onDeleteUnpublishedChanges:"Niet-gepubliceerde wijzigingen verwijderd",onFailToAuth:"%{details}",onLoggedOut:"Je bent uitgelogd, back-up alstublieft uw data log daarna in",onBackendDown:"De backend-service ondervindt een storing. Zie% {details} voor meer informatie"}},workflow:{workflow:{loading:"Redactionele Workflow items laden",workflowHeading:"Redactionele Workflow",newPost:"Nieuw bericht",description:"%{smart_count} item wacht op beoordeling, %{readyCount} klaar om live te gaan. |||| %{smart_count} items wachten op beoordeling, %{readyCount} klaar om live te gaan. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} door %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"door %{author}",deleteChanges:"Verwijder wijzigingen",deleteNewEntry:"Verwijder nieuw item",publishChanges:"Publiceer wijzigingen",publishNewEntry:"Publiceer nieuw item"},workflowList:{onDeleteEntry:"Weet u zeker dat u dit item wilt verwijderen?",onPublishingNotReadyEntry:'Alleen items met de status "Gereed" kunnen worden gepubliceerd. Sleep de kaart naar de kolom "Gereed" om publiceren mogelijk te maken.',onPublishEntry:"Weet u zeker dat u dit item wilt publiceren?",draftHeader:"Concepten",inReviewHeader:"Wordt beoordeeld",readyHeader:"Klaar",currentEntries:"%{smart_count} item |||| %{smart_count} items"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logg inn",loggingIn:"Logger inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",errors:{email:"Du må skrive inn e-posten din.",password:"Du må skrive inn passordet ditt.",identitySettings:"Fant ingen innstillinger for Identity. Hvis du skal bruke git-gateway må du skru på Identity service og Git Gateway."}},app:{header:{content:"Innhold",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Det oppstod en feil under lastingen av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjekk config.yml filen.",loadingConfig:"Laster konfigurasjon...",waitingBackend:"Venter på backend..."},notFoundPage:{header:"Ikke funnet"}},collection:{sidebar:{collections:"Samlinger",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigende",descending:"Synkende"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrer innlegg...",longerLoading:"Dette kan ta opptil flere minutter",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valgfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} er påkrevd.",regexPattern:"%{fieldLabel} samsvarer ikke med mønsteret: %{pattern}.",processing:"%{fieldLabel} blir prosessert.",range:"%{fieldLabel} må være mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst være %{minValue}.",max:"%{fieldLabel} må være %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element(er).",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element(er).",rangeMin:"%{fieldLabel} må minst ha %{minCount} element(er).",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element(er)."}},editor:{onLeavePage:"Er du sikker på du vil navigere bort fra denne siden?",onUpdatingWithUnsavedChanges:"Du må lagre endringene dine før du oppdaterer status.",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer.',onPublishingWithUnsavedChanges:"Du må lagre endringene dine før du kan publisere.",onPublishing:"Er du sikker på at du vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikker på at du vil slette et publisert innlegg med tilhørende ulagrede endringer?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlingen sletter endringer som ikke er publisert eller lagret enda. Er du sikker på du vil fortsette?",onDeleteUnpublishedChanges:"Alle endringer som ikke er publisert i dette innlegget vil gå tapt. Vil du fortsette?",loadingEntry:"Laster innlegg...",confirmLoadBackup:"Vil du gjenopprette tidligere endringer som ikke har blitt lagret?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringer",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slett innlegg",saving:"Lagrer...",save:"Lagre",deleting:"Sletter...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriver i samlingen %{collectionLabel}",unsavedChanges:"Ulagrede endringer",changesSaved:"Endringer lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser nå",deployPreviewPendingButtonLabel:"Kontroller forhåndsvisning",deployPreviewButtonLabel:"Vis forhåndsvisning",deployButtonLabel:"Vis i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Velg et bilde",chooseDifferent:"Velg et annet bilde",remove:"Fjern bilde"},file:{choose:"Velg en fil",chooseDifferent:"Velg en annen fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen forhåndsvisning tilgjengelig for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"Nå"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Filen er for stor.\nMaksimal konfiguert filstørrelse er %{size} kB."},mediaLibraryModal:{loading:"Laster...",noResults:"Ingen resultater.",noAssetsFound:"Ingen elementer funnet.",noImagesFound:"Ingen bilder funnet.",private:"Privat ",images:"Bilder",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Laster opp...",upload:"Last opp",download:"Last ned",deleting:"Sletter...",deleteSelected:"Slett markert",chooseSelected:"Velg markert"}},ui:{default:{goBackToSite:"Gå tilbake til siden"},errorBoundary:{title:"Feil",details:"Det har oppstått en feil. Det er fint om du ",reportIt:"oppretter et issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du åpner et issue forhåndsutfylles feil og feilsøkingsdata. Dobbeltsjekk at informasjonen er riktig, og fjern eventuelle sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan være lurt å ta kopi av innholdet før navigerer bort fra denne siden!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikke laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikke laste forhåndsvisning: %{details}",onFailToPersist:"Kunne ikke lagre: %{details}",onFailToDelete:"Kunne ikke slette: %{details}",onFailToUpdateStatus:"Kunne ikke laste opp: %{details}",missingRequiredField:"Oisann, ser ut som du glemte et påkrevd felt. Du må fylle det ut før du kan fortsette.",entrySaved:"Innlegg lagret",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikke publisere: %{details}",onFailToUnpublishEntry:"Kunne ikke avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringer slettet",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Laster innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg trenger gjennomgang, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringer",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringer",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan bare publisere innlegg i "Klar" kolonnen. Trekk kortet til riktig kolonne for å fortsette.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logg inn",loggingIn:"Loggar inn..",loginWithNetlifyIdentity:"Logg på med Netlify Identity",loginWithBitbucket:"Logg på med Bitbucket",loginWithGitHub:"Logg på med GitHub",loginWithGitLab:"Logg på med GitLab",errors:{email:"Du må skriva inn e-posten din.",password:"Du må skriva inn passordet ditt.",identitySettings:"Fann ingen innstillingar for Identity. Om du ynskjer å nytte git-gateway må du hugse å skru på Identity service og Git Gateway"}},app:{header:{content:"Innhald",workflow:"Arbeidsflyt",media:"Media",quickAdd:"Hurtiginnlegg"},app:{errorHeader:"Noko gjekk gale under lastinga av CMS konfigurasjonen",configErrors:"Konfigurasjonsfeil",checkConfigYml:"Sjå over config.yml fila.",loadingConfig:"Lastar konfigurasjon...",waitingBackend:"Ventar på backend..."},notFoundPage:{header:"Ikkje funnen"}},collection:{sidebar:{collections:"Samlingar",searchAll:"Søk i alle"},collectionTop:{sortBy:"Sorter etter",viewAs:"Vis som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Synkande"},entries:{loadingEntries:"Laster innlegg...",cachingEntries:"Mellomlagrar innlegg...",longerLoading:"Dette kan ta fleire minutt",noEntries:"Ingen innlegg"},defaultFields:{author:{label:"Forfatter"},updatedOn:{label:"Oppdatert"}}},editor:{editorControl:{field:{optional:"valfritt"}},editorControlPane:{widget:{required:"%{fieldLabel} krevast.",regexPattern:"%{fieldLabel} samsvarar ikkje med mønsteret: %{pattern}.",processing:"%{fieldLabel} vart prosessert.",range:"%{fieldLabel} må vera mellom %{minValue} og %{maxValue}.",min:"%{fieldLabel} må minst vera %{minValue}.",max:"%{fieldLabel} må vera %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} må ha mellom %{minCount} og %{maxCount} element.",rangeCountExact:"%{fieldLabel} må ha nøyaktig %{count} element.",rangeMin:"%{fieldLabel} må minst ha %{minCount} element.",rangeMax:"%{fieldLabel} må ha %{maxCount} eller færre element."}},editor:{onLeavePage:"Er du sikker på at du vil navigere bort frå denne sida?",onUpdatingWithUnsavedChanges:"Du må lagra endringane dine før du endrar status",onPublishingNotReady:'Du må endre status til "Klar" før du publiserer',onPublishingWithUnsavedChanges:"Du må laga endringane dine før du kan publisere.",onPublishing:"Er du sikker på at vil publisere?",onUnpublishing:"Er du sikker på at du vil avpublisere innlegget?",onDeleteWithUnsavedChanges:"Er du sikkert på at du vil slette eit publisert innlegg med tilhøyrande ulagra endringar?",onDeletePublishedEntry:"Er du sikker på at du vil slette dette publiserte innlegget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Handlinga slettar endringar som ikkje er publisert eller lagra. Vil du halde fram?",onDeleteUnpublishedChanges:"Alle endringar som ikkje er publisert vil gå tapt. Vil du halde fram?",loadingEntry:"Lastar innlegg...",confirmLoadBackup:"Ynskjer du å gjennopprette tidlegare endringar som ikkje har verta lagra?"},editorToolbar:{publishing:"Publiserer...",publish:"Publiser",published:"Publisert",unpublish:"Avpubliser",duplicate:"Dupliser",unpublishing:"Avpubliserer...",publishAndCreateNew:"Publiser og lag nytt",publishAndDuplicate:"Publiser og dupliser",deleteUnpublishedChanges:"Slett upubliserte endringar",deleteUnpublishedEntry:"Slett upublisert innlegg",deletePublishedEntry:"Slett publisert innlegg",deleteEntry:"Slettar innlegg",saving:"Lagrar...",save:"Lagre",deleting:"Slettar...",updating:"Oppdaterer...",status:"Status: %{status}",backCollection:" Skriv i samlinga %{collectionLabel}",unsavedChanges:"Ulagra endringar",changesSaved:"Endringar lagret",draft:"Kladd",inReview:"Til godkjenning",ready:"Klar",publishNow:"Publiser no",deployPreviewPendingButtonLabel:"Kontroller førehandsvisning",deployPreviewButtonLabel:"Sjå førehandsvisning",deployButtonLabel:"Sjå i produksjon"},editorWidgets:{markdown:{richText:"Rik-tekst",markdown:"Markdown"},image:{choose:"Vel bilete",chooseDifferent:"Vel eit anna bilete",remove:"Fjern bilete"},file:{choose:"Vel fil",chooseDifferent:"Vel ei anna fil",remove:"Fjern fil"},unknownControl:{noControl:"Ingen konfigurasjon for widget '%{widget}'."},unknownPreview:{noPreview:"Ingen førehandsvisning tilgjengeleg for '%{widget}'."},headingOptions:{headingOne:"Overskrift 1",headingTwo:"Overskrift 2",headingThree:"Overskrift 3",headingFour:"Overskrift 4",headingFive:"Overskrift 5",headingSix:"Overskrift 6"},datetime:{now:"No"}}},mediaLibrary:{mediaLibraryCard:{draft:"Kladd"},mediaLibrary:{onDelete:"Er du sikker på at du vil slette markert element?",fileTooLarge:"Fila er for stor.\nMaksimal konfiguert filstorleik er %{size} kB."},mediaLibraryModal:{loading:"Lastar...",noResults:"Ingen resultat.",noAssetsFound:"Ingen elementer funne.",noImagesFound:"Ingen bilete funne.",private:"Privat ",images:"Bileter",mediaAssets:"Mediebibliotek",search:"Søk...",uploading:"Lastar opp...",upload:"Last opp",download:"Last ned",deleting:"Slettar...",deleteSelected:"Slett markert",chooseSelected:"Vel markert"}},ui:{default:{goBackToSite:"Attende til sida"},errorBoundary:{title:"Feil",details:"Ein feil har oppstått. Det er fint om du ",reportIt:"opnar eit issue på GitHub.",detailsHeading:"Detaljer",privacyWarning:"Når du opnar eit issue vart feil og feilsøkingsdata automatisk fylt ut. Hugs å sjå over at alt ser greitt ut, og ikkje inneheld sensitive data.",recoveredEntry:{heading:"Gjenopprettet dokument",warning:"Det kan vere lurt å ta kopi av innhaldet før du navigerer bort frå denne sida!",copyButtonLabel:"Kopier til utklippstavle"}},settingsDropdown:{logOut:"Logg ut"},toast:{onFailToLoadEntries:"Kunne ikkje laste innlegg: %{details}",onFailToLoadDeployPreview:"Kunne ikkje laste førehandsvisning: %{details}",onFailToPersist:"Kunne ikkje lagre: %{details}",onFailToDelete:"Kunne ikkje slette: %{details}",onFailToUpdateStatus:"Kunne ikkje laste opp: %{details}",missingRequiredField:"Oisann, gløymte du noko? Alle påkrevde felt må fyllast ut før du kan halde fram",entrySaved:"Innlegg lagra",entryPublished:"Innlegg publisert",entryUnpublished:"Innlegg avpublisert",onFailToPublishEntry:"Kunne ikkje publisere: %{details}",onFailToUnpublishEntry:"Kunne ikkje avpublisere: %{details}",entryUpdated:"Innleggsstatus oppdatert",onDeleteUnpublishedChanges:"Avpubliserte endringar sletta",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Lastar innlegg for redaksjonell arbeidsflyt",workflowHeading:"Redaksjonell arbeidsflyt",newPost:"Nytt innlegg",description:"%{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering. |||| %{smart_count} innlegg treng gjennomgong, og %{readyCount} er klar til publisering ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Slett endringar",deleteNewEntry:"Slett nytt innlegg",publishChanges:"Publiser endringar",publishNewEntry:"Publiser nytt innlegg"},workflowList:{onDeleteEntry:"Er du sikker på du vil slette innlegget?",onPublishingNotReadyEntry:'Du kan berre publisere innlegg i "Klar" kolonna. Dra kortet til riktig stad for å halde fram.',onPublishEntry:"Er du sikker på du vil publisere innlegget?",draftHeader:"Kladd",inReviewHeader:"Gjennomgås",readyHeader:"Klar",currentEntries:"%{smart_count} innlegg |||| %{smart_count} innlegg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Zaloguj się",loggingIn:"Logowanie...",loginWithNetlifyIdentity:"Zaloguj przez konto Netlify",loginWithAzure:"Zaloguj przez konto Azure",loginWithBitbucket:"Zaloguj przez Bitbucket",loginWithGitHub:"Zaloguj przez GitHub",loginWithGitLab:"Zaloguj przez GitLab",errors:{email:"Wprowadź swój adres email",password:"Wprowadź swoje hasło",identitySettings:"Brak dostępu do ustawień tożsamości. Jeśli używasza backendu git-gateway upewnij się, że usługa tożsamośći (Identity service) oraz Git Gateway są włączone."}},app:{header:{content:"Treść",workflow:"Przebieg redakcyjny",media:"Multimedia",quickAdd:"Szybkie dodawanie"},app:{errorHeader:"Błąd ładowania konfiguracji CMS",configErrors:"Błędy konfiguracji",checkConfigYml:"Sprawdź plik config.yml.",loadingConfig:"Ładowanie konfiguracji...",waitingBackend:"Oczekiwanie na backend..."},notFoundPage:{header:"Nie znaleziono"}},collection:{sidebar:{collections:"Kolekcje",allCollections:"Wszystkie kolekcje",searchAll:"Wyszukaj wszystkie",searchIn:"Wyszukaj w"},collectionTop:{sortBy:"Sortuj po",viewAs:"Wyświetl jako",newButton:"Nowy %{collectionLabel}",ascending:"Rosnąco",descending:"Malejąco",searchResults:"Wyszukaj wyniki dla %{searchTerm}",searchResultsInCollection:"Wyszukaj wyniki dla %{searchTerm} w %{collection}",filterBy:"Filtruj po",groupBy:"Grupuj po"},entries:{loadingEntries:"Ładowanie pozycji...",cachingEntries:"Ładowanie pozycji do pamięci podręcznej...",longerLoading:"To może zająć kilka minut",noEntries:"Brak pozycji"},groups:{other:"Inne",negateLabel:"Nie %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Zaktualizowano"}}},editor:{editorControl:{field:{optional:"opcjonalne"}},editorControlPane:{widget:{required:"%{fieldLabel} jest wymagane.",regexPattern:"%{fieldLabel} nie pasuje do formatu: %{pattern}.",processing:"%{fieldLabel} jest przetwarzane.",range:"%{fieldLabel} musi być pomiędzy %{minValue} a %{maxValue}.",min:"%{fieldLabel} musi być co najmniej %{minValue}.",max:"%{fieldLabel} musi być %{maxValue} lub mniej.",rangeCount:"%{fieldLabel} musi mieć od %{minCount} do %{maxCount} elementów",rangeCountExact:"%{fieldLabel} musi mieć %{count} elementów",rangeMin:"%{fieldLabel} musi mieć przynajmniej %{minCount} elementów",rangeMax:"%{fieldLabel} może mieć maksymalnie %{maxCount} elementów",invalidPath:"'%{path}' nie jest poprawna",pathExists:"Ścieżka '%{path}' już istnieje"},i18n:{writingInLocale:"Pisz w języku %{locale}"}},editor:{onLeavePage:"Czy na pewno chcesz opuścić tę stronę?",onUpdatingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed aktualizacją statusu.",onPublishingNotReady:'Proszę zaktualizować status do "Gotowe" przed publikacją.',onPublishingWithUnsavedChanges:"Masz niezapisane zmiany, proszę zapisz je przed publikacją.",onPublishing:"Czy na pewno chcesz opublikować tę pozycję?",onUnpublishing:"Czy na pewno chcesz cofnąć publikację tej pozycji?",onDeleteWithUnsavedChanges:"Czy na pewno chcesz usunąć tę opublikowaną pozycję, a także niezapisane zmiany z bieżącej sesji?",onDeletePublishedEntry:"Czy na pewno chcesz usunąć tę opublikowaną pozycję?",onDeleteUnpublishedChangesWithUnsavedChanges:"Spowoduje to usunięcie wszystkich nieopublikowanych zmian tej pozycji, a także niezapisanych zmian z bieżącej sesji. Czy nadal chcesz usunąć?",onDeleteUnpublishedChanges:"Wszystkie nieopublikowane zmiany tej pozycji zostaną usunięte. Czy nadal chcesz usunąć?",loadingEntry:"Ładowanie pozycji...",confirmLoadBackup:"Odzyskano lokalną kopię zapasową tej pozycji, czy chcesz jej użyć?"},editorInterface:{toggleI18n:"Przełącz i18n",togglePreview:"Przełącz podgląd",toggleScrollSync:"Synchroniczne przesuwanie"},editorToolbar:{publishing:"Publikowanie...",publish:"Opublikuj",published:"Opublikowane",unpublish:"Cofnij publikację",duplicate:"Zduplikuj",unpublishing:"Cofanie publikacji...",publishAndCreateNew:"Opublikuj i dodaj nowy",publishAndDuplicate:"Opublikuj i zduplikuj",deleteUnpublishedChanges:"Usuń nieopublikowane zmiany",deleteUnpublishedEntry:"Usuń nieopublikowaną pozycję",deletePublishedEntry:"Usuń opublikowaną pozycję",deleteEntry:"Usuń pozycję",saving:"Zapisywanie...",save:"Zapisz",statusInfoTooltipDraft:"Dodano jako wersję roboczą. Aby zakończyć i oddać do recenzji zmień status na `Do recenzji`",statusInfoTooltipInReview:"Wpis jest w trakcie recenzji, żadne dodatkowe akcje nie są wymagane. Jeśli chcesz, możesz jeszcze nanieść zmiany.",deleting:"Usuwanie...",updating:"Uaktualnianie...",status:"Status: %{status}",backCollection:" Edycja treści w zbiorze %{collectionLabel}",unsavedChanges:"Niezapisane zmiany",changesSaved:"Zmiany zapisane",draft:"Wersja robocza",inReview:"W recenzji",ready:"Gotowe",publishNow:"Opublikuj teraz",deployPreviewPendingButtonLabel:"Sprawdź, czy istnieje podgląd",deployPreviewButtonLabel:"Zobacz podgląd",deployButtonLabel:"Zobacz na żywo"},editorWidgets:{markdown:{bold:"Pogrubienie",italic:"Kursywa",code:"Kod",link:"Link",linkPrompt:"Dodaj adres URL",headings:"Nagłówki",quote:"Cytat",bulletedList:"Lista punktowana",numberedList:"Lista numerowana",addComponent:"Dodaj komponent",richText:"Tekst sformatowany",markdown:"Markdown"},image:{choose:"Wybierz zdjęcie",chooseUrl:"Dodaj adres URL zdjęcia",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Wprować adres URL zdjęcia",chooseDifferent:"Zmień zdjęcie",remove:"Usuń zdjęcie"},file:{choose:"Wybierz plik",chooseUrl:"Dodaj adres URL pliku",replaceUrl:"Zmień adres URL zdjęcia",promptUrl:"Dodaj adres URL pliku",chooseDifferent:"Wybierz inny plik",remove:"Usuń plik"},unknownControl:{noControl:"Brak kontrolki dla widżetu '%{widget}'."},unknownPreview:{noPreview:"Brak podglądu dla widżetu '%{widget}'."},headingOptions:{headingOne:"Nagłówek 1",headingTwo:"Nagłówek 2",headingThree:"Nagłówek 3",headingFour:"Nagłówek 4",headingFive:"Nagłówek 5",headingSix:"Nagłówek 6"},datetime:{now:"Teraz"},list:{add:"Dodaj %{item}",addType:"Dodaj nowy %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"Wersja robocza",copy:"Kopiuj",copyUrl:"Kopiuj URL",copyPath:"Kopiuj ścieżkę",copyName:"Kopiuj nazwę",copied:"Skopiowano"},mediaLibrary:{onDelete:"Czy na pewno chcesz usunąć zaznaczone multimedia?",fileTooLarge:"Plik jest za duży.\nUstawiony maksymalny rozmiar pliku: %{size} kB."},mediaLibraryModal:{loading:"Ładowanie...",noResults:"Brak wyników.",noAssetsFound:"Nie znaleziono żadnych zasobów.",noImagesFound:"Nie znaleziono żadnych obrazów.",private:"Prywatne ",images:"Obrazy",mediaAssets:"Zasoby multimedialne",search:"Szukaj...",uploading:"Przesyłanie...",upload:"Prześlij nowe",download:"Pobierz",deleting:"Usuwanie...",deleteSelected:"Usuń zaznaczone",chooseSelected:"Wybierz zaznaczone"}},ui:{default:{goBackToSite:"Wróć do strony"},errorBoundary:{title:"Błąd",details:"Wystąpił błąd - proszę ",reportIt:"zgłoś to.",detailsHeading:"Szczegóły",privacyWarning:"Nowe zgłoszenie zostanie wstępnie wypełnione danymi o błędzie.\nZweryfikuj czy dane są poprawne i usuń wrażliwe informacje jeśli takie zostały dodane.",recoveredEntry:{heading:"Odzyskany dokument",warning:"Proszę skopiuj/wklej to gdzieś zanim opuścisz tę stronę!",copyButtonLabel:"Skopiuj do schowka"}},settingsDropdown:{logOut:"Wyloguj się"},toast:{onFailToLoadEntries:"Nie udało się załadować pozycji: %{details}",onFailToLoadDeployPreview:"Nie udało się załadować podglądu: %{details}",onFailToPersist:"Nie udało się zapisać pozycji: %{details}",onFailToDelete:"Nie udało się usunąć pozycji: %{details}",onFailToUpdateStatus:"Nie udało się zaktualizować statusu: %{details}",missingRequiredField:"Ups, przegapiłeś wymagane pole. Proszę uzupełnij przed zapisaniem.",entrySaved:"Pozycja zapisana",entryPublished:"Pozycja opublikowana",entryUnpublished:"Cofnięto publikację pozycji",onFailToPublishEntry:"Nie udało się opublikować: %{details}",onFailToUnpublishEntry:"Nie udało się cofnąć publikacji pozycji: %{details}",entryUpdated:"Zaktualizowano status pozycji",onDeleteUnpublishedChanges:"Nieopublikowane zmiany zostały usunięte",onFailToAuth:"%{details}",onLoggedOut:"Zostałeś wylogowany, utwórz kopię zapasową danych i zaloguj się ponownie.",onBackendDown:"Usługa backendu uległa awarii. Zobacz więcej informacji: %{details}"}},workflow:{workflow:{loading:"Ładowanie pozycji przebiegu redakcyjnego",workflowHeading:"Przebieg redakcyjny",newPost:"Nowa pozycja",description:"%{smart_count} pozycja oczekuje na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycje oczekują na recenzję, %{readyCount} oczekuje na publikacje. |||| %{smart_count} pozycji oczekuje na recenzje, %{readyCount} oczekuje na publikacje. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} przez %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"przez %{author}",deleteChanges:"Usuń zmiany",deleteNewEntry:"Usuń nową pozycję",publishChanges:"Opublikuj zmiany",publishNewEntry:"Opublikuj nową pozycję"},workflowList:{onDeleteEntry:"Czy na pewno chcesz usunąć tę pozycję?",onPublishingNotReadyEntry:"Tylko pozycje o statusie „Gotowe” mogą być publikowane. Przeciągnij proszę kartę do kolumny „Gotowe do publikacji”, aby umożliwić publikowanie.",onPublishEntry:"Czy na pewno chcesz opublikować tę pozycję?",draftHeader:"Wersje robocze",inReviewHeader:"W recenzji",readyHeader:"Gotowe do publikacji",currentEntries:"%{smart_count} pozycja |||| %{smart_count} pozycje |||| %{smart_count} pozycji"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Entrar",loggingIn:"Entrando...",loginWithNetlifyIdentity:"Entrar com o Netlify Identity",loginWithAzure:"Entrar com o Azure",loginWithBitbucket:"Entrar com o Bitbucket",loginWithGitHub:"Entrar com o GitHub",loginWithGitLab:"Entrar com o GitLab",errors:{email:"Certifique-se de inserir seu e-mail.",password:"Por favor, insira sua senha.",identitySettings:"Não foi possível acessar as configurações de identidade. Ao usar o back-end git-gateway, certifique-se de habilitar o serviço Identity e o Git Gateway."}},app:{header:{content:"Conteúdos",workflow:"Fluxo de Trabalho",media:"Mídia",quickAdd:"Adição rápida"},app:{errorHeader:"Erro ao carregar a configuração do CMS",configErrors:"Erros de configuração",checkConfigYml:"Verifique o arquivo config.yml.",loadingConfig:"Carregando configuração...",waitingBackend:"Aguardando o back-end..."},notFoundPage:{header:"Não Encontrado"}},collection:{sidebar:{collections:"Coleções",allCollections:"Todas as Coleções",searchAll:"Pesquisar em todos",searchIn:"Pesquisar em"},collectionTop:{sortBy:"Ordenar por",viewAs:"Visualizar como",newButton:"Novo(a) %{collectionLabel}",ascending:"Ascendente",descending:"Descendente",searchResults:'Resultados da busca por "%{searchTerm}"',searchResultsInCollection:'Resultados da busca por "%{searchTerm}" em %{collection}',filterBy:"Filtrar por",groupBy:"Agrupar por"},entries:{loadingEntries:"Carregando Entradas",cachingEntries:"Armazenando Entradas em Cache",longerLoading:"Isso pode levar alguns minutos",noEntries:"Nenhuma Entrada"},groups:{other:"Outro",negateLabel:"Não %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Atualizado em"}}},editor:{editorControl:{field:{optional:"opcional"}},editorControlPane:{widget:{required:"%{fieldLabel} é obrigatório.",regexPattern:"%{fieldLabel} não corresponde com o padrão: %{pattern}.",processing:"%{fieldLabel} está processando.",range:"%{fieldLabel} deve estar entre %{minValue} e %{maxValue}.",min:"%{fieldLabel} deve ser, no mínimo, %{minValue}.",max:"%{fieldLabel} deve ser igual ou menor que %{maxValue}.",rangeCount:"%{fieldLabel} deve ser entre %{minCount} e %{maxCount}.",rangeCountExact:"%{fieldLabel} deve ser exatamente %{count}.",rangeMin:"%{fieldLabel} deve ter, pelo menos, %{minCount}.",rangeMax:"%{fieldLabel} deve ter %{maxCount} ou menos.",invalidPath:"'%{path}' não é um caminho válido",pathExists:"O caminho '%{path}' já existe"},i18n:{writingInLocale:"Escrevendo em %{locale}"}},editor:{onLeavePage:"Tem certeza que deseja sair desta página?",onUpdatingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de atualizar o status.",onPublishingNotReady:'Por favor, altere o status para "Pronto" antes de publicar.',onPublishingWithUnsavedChanges:"Há mudanças não salvas. Por favor, salve-as antes de publicar.",onPublishing:"Tem certeza que deseja publicar essa entrada?",onUnpublishing:"Tem certeza que deseja cancelar a publicação dessa entrada?",onDeleteWithUnsavedChanges:"Tem certeza de que deseja excluir esta entrada publicada, bem como as alterações não salvas da sessão atual?",onDeletePublishedEntry:"Tem certeza de que deseja excluir esta entrada publicada?",onDeleteUnpublishedChangesWithUnsavedChanges:"Isso excluirá todas as alterações não publicadas nesta entrada, bem como as alterações não salvas da sessão atual. Você ainda deseja excluir?",onDeleteUnpublishedChanges:"Todas as alterações não publicadas nesta entrada serão excluídas. Você ainda deseja excluir?",loadingEntry:"Carregando entrada...",confirmLoadBackup:"Um backup local foi recuperado para esta entrada. Deseja usá-lo?"},editorInterface:{toggleI18n:"Mudar i18n",togglePreview:"Mudar pré-visualização",toggleScrollSync:"Sincronizar rolagem"},editorToolbar:{publishing:"Publicando...",publish:"Publicar",published:"Publicado",unpublish:"Despublicar",duplicate:"Duplicado",unpublishing:"Despublicando...",publishAndCreateNew:"Publicar e criar novo(a)",publishAndDuplicate:"Publicar e duplicar",deleteUnpublishedChanges:"Excluir alterações não publicadas",deleteUnpublishedEntry:"Excluir entrada não publicada",deletePublishedEntry:"Excluir entrada publicada",deleteEntry:"Excluir entrada",saving:"Salvando...",save:"Salvar",statusInfoTooltipDraft:"Entrada definida como rascunho. Para finalizar e enviá-la a revisão, mude seu estado para 'Em revisão'",statusInfoTooltipInReview:"Entrada está sendo revisada, nenhuma ação extra é requirida. Porém, você ainda pode fazer mudanças adicionais enquanto ela está sendo revisada.",deleting:"Excluindo...",updating:"Atualizando...",status:"Status: %{status}",backCollection:" Escrevendo na coleção %{collectionLabel}",unsavedChanges:"Alterações não salvas",changesSaved:"Alterações salvas",draft:"Rascunho",inReview:"Em revisão",ready:"Pronto",publishNow:"Publicar agora",deployPreviewPendingButtonLabel:"Verificar se há Pré-visualização",deployPreviewButtonLabel:"Ver Pré-visualização",deployButtonLabel:"Ver em Produção"},editorWidgets:{markdown:{bold:"Negrito",italic:"Itálico",code:"Código",link:"Link",linkPrompt:"Insira a URL do link",headings:"Cabeçalho",quote:"Citação",bulletedList:"Lista Pontilhada",numberedList:"Lista Numerada",addComponent:"Adicionar Componente",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Escolha uma imagem",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL da imagem",chooseDifferent:"Escolha uma imagem diferente",remove:"Remover imagem"},file:{choose:"Escolha um arquivo",chooseUrl:"Inserir de uma URL",replaceUrl:"Substituir com uma URL",promptUrl:"Insira a URL do arquivo",chooseDifferent:"Escolha um arquivo diferente",remove:"Remover arquivo"},unknownControl:{noControl:"Nenhum controle para o widget '%{widget}'."},unknownPreview:{noPreview:"Nenhuma pré-visualização para o widget '%{widget}'."},headingOptions:{headingOne:"Título nível 1",headingTwo:"Título nível 2",headingThree:"Título nível 3",headingFour:"Título nível 4",headingFive:"Título nível 5",headingSix:"Título nível 6"},datetime:{now:"Agora"},list:{add:"Adicionar %{item}",addType:"Adicionar %{item} item"}}},mediaLibrary:{mediaLibraryCard:{draft:"Rascunho",copy:"Copiar",copyUrl:"Copiar URL",copyPath:"Copiar Caminho",copyName:"Copiar Nome",copied:"Copiado"},mediaLibrary:{onDelete:"Tem certeza de que deseja excluir a mídia selecionada?",fileTooLarge:"Arquivo muito grande.\nConfigurado para não permitir arquivos maiores que %{size} kB."},mediaLibraryModal:{loading:"Carregando...",noResults:"Nenhum resultado.",noAssetsFound:"Nenhum recurso encontrado.",noImagesFound:"Nenhuma imagem encontrada.",private:"Privado ",images:"Imagens",mediaAssets:"Recursos de mídia",search:"Pesquisar...",uploading:"Enviando...",upload:"Enviar novo",download:"Download",deleting:"Excluindo...",deleteSelected:"Excluir selecionado",chooseSelected:"Escolher selecionado"}},ui:{default:{goBackToSite:"Voltar ao site"},errorBoundary:{title:"Erro",details:"Ocorreu um erro - por favor ",reportIt:"relatar.",detailsHeading:"Detalhes",privacyWarning:"Ao abrir uma issue, ela é preenchida com a mensagem de erro e o log de debug.\nPor favor, verifique se a informação está correta e remova dados sensíveis caso existam.",recoveredEntry:{heading:"Documento recuperado",warning:"Copie/cole isso em algum lugar antes de sair!",copyButtonLabel:"Copiar para área de transferência"}},settingsDropdown:{logOut:"Sair"},toast:{onFailToLoadEntries:"Falha ao carregar a entrada: %{details}",onFailToLoadDeployPreview:"Falha ao carregar a pré-visualização: %{details}",onFailToPersist:"Falha ao persistir na entrada: %{details}",onFailToDelete:"Falha ao excluir a entrada: %{details}",onFailToUpdateStatus:"Falha ao atualizar status: %{details}",missingRequiredField:"Ops, você perdeu um campo obrigatório. Por favor, preencha antes de salvar.",entrySaved:"Entrada salva",entryPublished:"Entrada publicada",entryUnpublished:"Entrada despublicada",onFailToPublishEntry:"Falha ao publicar: %{details}",onFailToUnpublishEntry:"Falha ao cancelar a publicação da entrada: %{details}",entryUpdated:"Status da entrada atualizado",onDeleteUnpublishedChanges:"Alterações não publicadas excluídas",onFailToAuth:"%{details}",onLoggedOut:"Você foi desconectado. Por favor, salve as alterações e entre novamente",onBackendDown:"O serviço de back-end está fora do ar. Veja %{details} para mais informações"}},workflow:{workflow:{loading:"Carregando entradas do Fluxo de Trabalho Editorial",workflowHeading:"Fluxo de Trabalho Editorial",newPost:"Nova Publicação",description:"%{smart_count} entrada aguardando revisão, %{readyCount} pronta para publicação. |||| %{smart_count} entradas aguardando revisão, %{readyCount} pronta para publicação.",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} por %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"por %{author}",deleteChanges:"Excluir alterações",deleteNewEntry:"Excluir nova entrada",publishChanges:"Publicar alterações",publishNewEntry:"Publicar nova entrada"},workflowList:{onDeleteEntry:"Tem certeza de que deseja excluir esta entrada?",onPublishingNotReadyEntry:'Somente itens com o status "Pronto" podem ser publicados. Arraste o cartão para a coluna "Pronto" para poder publicar.',onPublishEntry:"Tem certeza de que quer publicar esta entrada?",draftHeader:"Rascunhos",inReviewHeader:"Em Revisão",readyHeader:"Prontos",currentEntries:"%{smart_count} entrada |||| %{smart_count} entradas"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Autentifică-te",loggingIn:"Te autentificăm...",loginWithNetlifyIdentity:"Autentifică-te cu Netlify Identity",loginWithAzure:"Autentifică-te cu Azure",loginWithBitbucket:"Autentifică-te cu Bitbucket",loginWithGitHub:"Autentifică-te cu GitHub",loginWithGitLab:"Autentifică-te cu GitLab",errors:{email:"Asigură-te că ai introdus email-ul.",password:"Te rugăm introdu parola.",identitySettings:"Nu s-a putut accesa serviciul de autentificare. Dacă folosești git-gateway, asigură-te că ai activat serviciul Identity și Git-Gateway."}},app:{header:{content:"Conținut",workflow:"Workflow",media:"Fișiere",quickAdd:"Adaugă"},app:{errorHeader:"A apărut o eroare cu configurarea CMS-ului.",configErrors:"Au apărut erori de configurare.",checkConfigYml:"Verifică fișierul de configurare (config.yml).",loadingConfig:"Se încarcă configurările...",waitingBackend:"Așteptăm după backend..."},notFoundPage:{header:"Pagină inexistentă."}},collection:{sidebar:{collections:"Colecții",allCollections:"Toate colecțiile",searchAll:"Căutare",searchIn:"Caută în"},collectionTop:{sortBy:"Sortează",viewAs:"Vizualizează ca",newButton:"Adaugă %{collectionLabel}",ascending:"Ascendent",descending:"Descendent",searchResults:'Rezultatele căutării pentru "%{searchTerm}"',searchResultsInCollection:'Rezultatele căutării pentru "%{searchTerm}" în %{collection}',filterBy:"Filtrează după",groupBy:"Grupează după"},entries:{loadingEntries:"Se încarcă intrările...",cachingEntries:"Se salvează temporar intrările...",longerLoading:"Ar putea dura câteva minute.",noEntries:"Nu există intrări."},groups:{other:"Altul",negateLabel:"Nu %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Actualizat la"}}},editor:{editorControl:{field:{optional:"opțional"}},editorControlPane:{widget:{required:"%{fieldLabel}” este obligatoriu.",regexPattern:"%{fieldLabel} nu se potrivește după modelul: %{pattern}.",processing:"%{fieldLabel} se procesează.",range:"%{fieldLabel} poate fi între %{minValue} și %{maxValue}.",min:"%{fieldLabel} poate fi mai mare sau egal cu %{minValue}.",max:"%{fieldLabel} poate fi mai mic sau egal cu %{maxValue}.",rangeCount:"%{fieldLabel} poate avea între %{minCount} și %{maxCount} intrări.",rangeCountExact:"%{fieldLabel} trebuie să conțină exact %{count} intrări.",minCount:"%{fieldLabel} trebuie să conțină cel puțin %{minCount} intrări.",maxCount:"%{fieldLabel} trebuie să conțină cel mult %{maxCount} intrări.",invalidPath:"'%{path}' nu este o cale validă.",pathExists:"Calea '%{path}' există deja."},i18n:{writingInLocale:"Scrii în limba %{locale}"}},editor:{onLeavePage:"Ești sigur/ă că dorești să părăsești pagina?",onUpdatingWithUnsavedChanges:"Există modificări nesalvate! Te rugăm salvează înainte de a actualiza statusul.",onPublishingNotReady:"Actualizează statusul la „Gata” înainte de publicare.",onPublishingWithUnsavedChanges:"Există modificări nesalvate, salvează-le înainte de publicare.",onPublishing:"Ești sigur/ă că dorești să publici acest articol?",onUnpublishing:"Ești sigur/ă că dorești să anulezi publicarea acestui articol?",onDeleteWithUnsavedChanges:"Ești sigur/ă că dorești să ștergi această publicare, dar și modificările nesalvate din sesiunea curentă?",onDeletePublishedEntry:"Ești sigur/ă că dorești să ștergi această publicare?",onDeleteUnpublishedChangesWithUnsavedChanges:"Se vor șterge toate modificările nepublicate din aceast articol și modificările nesalvate din sesiunea curentă. Continui cu ștergerea?",onDeleteUnpublishedChanges:"Toate modificările nepublicate din acest articol vor fi șterse. Continui cu ștergerea?",loadingEntry:"Se încarcă...",confirmLoadBackup:"Un backup local a fost recuperat pentru această intrare, dorești să îl folosești?"},editorInterface:{toggleI18n:"Comută limba",togglePreview:"Comută previzualizarea",toggleScrollSync:"Sincronizează scroll-ul"},editorToolbar:{publishing:"Se publică...",publish:"Publicare",published:"Publicat",unpublish:"Anulează publicarea",duplicate:"Duplifică",unpublishing:"Se anulează publicarea...",publishAndCreateNew:"Publicare apoi crează altul",publishAndDuplicate:"Publicare apoi duplifică",deleteUnpublishedChanges:"Șterge modificări nepublicate",deleteUnpublishedEntry:"Șterge intrarea nepublicată",deletePublishedEntry:"Șterge intrarea publicată",deleteEntry:"Șterge intrare",saving:"Se salvează...",save:"Salvează",deleting:"Se șterge...",updating:"Se actualizează...",status:"Status: %{status}",backCollection:" Scrii în colecția „%{collectionLabel}”",unsavedChanges:"Modificări nesalvate",changesSaved:"Modificări salvate",draft:"Ciornă",inReview:"În revizuire",ready:"Gata",publishNow:"Publicare",deployPreviewPendingButtonLabel:"Verifică publicare",deployPreviewButtonLabel:"Previzualizare",deployButtonLabel:"Vezi publicarea"},editorWidgets:{markdown:{bold:"Bold",italic:"Italic",code:"Cod sursă",link:"Link",linkPrompt:"Scrie URL-ul",headings:"Titluri",quote:"Citat",bulletedList:"Listă cu puncte",numberedList:"Listă cu numere",addComponent:"Adaugă componentă",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Alege o imagine",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul imaginii",chooseDifferent:"Alege altă imagine",remove:"Șterge imaginea"},file:{choose:"Alege un fișier",chooseUrl:"Inserează din URL",replaceUrl:"Schimbă cu URL",promptUrl:"Introdu URL-ul fișierului",chooseDifferent:"Alege alt fișier",remove:"Șterge fișier"},unknownControl:{noControl:"Widget-ul „%{widget}” nu are configurări valabile."},unknownPreview:{noPreview:"Nu există previzualizare pentru widget-ul „%{widget}”."},headingOptions:{headingOne:"Titlu 1",headingTwo:"Titlu 2",headingThree:"Titlu 3",headingFour:"Titlu 4",headingFive:"Titlu 5",headingSix:"Titlu 6"},datetime:{now:"Acum"}}},mediaLibrary:{mediaLibraryCard:{draft:"Ciornă",copy:"Copiază",copyUrl:"Copiază URL",copyPath:"Copiază cale",copyName:"Copiaza nume",copied:"Copiat"},mediaLibrary:{onDelete:"Ești sigur/ă că dorești să ștergi fișierul selectat?",fileTooLarge:"Fișier prea mare.\nConfigurarea nu permite fișiere mai mari de %{size} KB."},mediaLibraryModal:{loading:"Se încarcă...",noResults:"Nu sunt rezultate.",noAssetsFound:"Nu s-au găsit fișiere.",noImagesFound:"Nu s-au găsit imagini.",private:"Privat ",images:"Imagini",mediaAssets:"Fișiere media",search:"Caută...",uploading:"Se încarcă...",upload:"Încarcă",download:"Descarcă",deleting:"Se șterge...",deleteSelected:"Șterge fișierele selectate",chooseSelected:"Alege fișierele selectate"}},ui:{default:{goBackToSite:"Înapoi la site"},errorBoundary:{title:"Eroare",details:"A apărut o eroare - te rugăm ",reportIt:"Deschide o problemă pe GitHub.",detailsHeading:"Detalii",privacyWarning:"Problema deschisă va fi precompletată cu mesajul de eroare și datele de depanare.\nTe rugăm verifică datele să fie corecte și șterge orice fel de date personale.",recoveredEntry:{heading:"Document recuperat",warning:"Te rugăm să faci copy/paste la datele acestea undeva înainte de ieșire!",copyButtonLabel:"Copiază în clipboard"}},settingsDropdown:{logOut:"Ieșire din cont"},toast:{onFailToLoadEntries:"A eșuat încărcarea intrării: %{details}",onFailToLoadDeployPreview:"A eșuat încărcarea previzualizării: %{details}",onFailToPersist:"A eșuat persistarea intrării: %{details}",onFailToDelete:"A eșuat ștergerea intrării: %{details}",onFailToUpdateStatus:"A eșuat actualizarea status-ului: %{details}",missingRequiredField:"Oops, ai ratat un câmp obligatoriu. Completează-l pentru a salva.",entrySaved:"Intrare salvată",entryPublished:"Intrare publicată",entryUnpublished:"Publicare anulată",onFailToPublishEntry:"A eșuat publicarea: %{details}",onFailToUnpublishEntry:"A eșuat anularea publicării: %{details}",entryUpdated:"S-a actualizat status-ul intrării",onDeleteUnpublishedChanges:"Modificări nepublicate șterse",onFailToAuth:"%{details}",onLoggedOut:"Ai fost delogat, te rugăm salvează orice date și autentifică-te din nou.",onBackendDown:"Există probleme la server. Vezi %{details} pentru mai multe informații."}},workflow:{workflow:{loading:"Se încarcă intrările din Workflow-ul Editorial",workflowHeading:"Workflow Editorial",newPost:"Postare nouă",description:"%{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. |||| %{smart_count} pregătite de revizuire, %{readyCount} gata de publicare. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} de %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"de %{author}",deleteChanges:"Modificări șterse",deleteNewEntry:"Șterge intrarea nouă",publishChanges:"Publicare modificări",publishNewEntry:"Publicare intrare nouă"},workflowList:{onDeleteEntry:"Ești sigur/ă că dorești ștergerea intrării?",onPublishingNotReadyEntry:"Numai intrări cu status-ul „Gata” pot fi publicate. Trage un card în coloana „Gata” pentru a putea publica.",onPublishEntry:"Ești sigur/ă că dorești să faci publicarea?",draftHeader:"Ciorne",inReviewHeader:"În revizuire",readyHeader:"Gata",currentEntries:"%{smart_count} intrări |||| %{smart_count} intrări"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Войти",loggingIn:"Вхожу...",loginWithNetlifyIdentity:"Войти через Netlify Identity",loginWithAzure:"Войти через Azure",loginWithBitbucket:"Войти через Bitbucket",loginWithGitHub:"Войти через GitHub",loginWithGitLab:"Войти через GitLab",errors:{email:"Введите ваш email.",password:"Введите пароль.",identitySettings:"Нет доступа к настройкам. Если используете git-gateway, убедитесь, что включили Identity service и Git Gateway."}},app:{header:{content:"Записи",workflow:"Документооборот",media:"Медиафайлы",quickAdd:"Быстрое добавление"},app:{errorHeader:"Ошибка загрузки конфигурации CMS",configErrors:"Ошибки конфигурации",checkConfigYml:"Проверьте свой config.yml файл.",loadingConfig:"Загрузка конфигурации…",waitingBackend:"Ожидание ответа от бэкенда…"},notFoundPage:{header:"Не найден"}},collection:{sidebar:{collections:"Коллекции",allCollections:"Все коллекции",searchAll:"Искать повсюду",searchIn:"Искать в"},collectionTop:{sortBy:"Сортировать по",viewAs:"Вид",newButton:"Создать %{collectionLabel}",ascending:"По возрастанию",descending:"По убывания",searchResults:'Результаты по запросу "%{searchTerm}"',searchResultsInCollection:'Результаты по запросу "%{searchTerm}" в %{collection}',filterBy:"Фильтровать по",groupBy:"Группировать по"},entries:{loadingEntries:"Загрузка записей…",cachingEntries:"Кэширование записей…",longerLoading:"Это может занять несколько минут",noEntries:"Нет записей"},groups:{other:"Другая",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновлено"}}},editor:{editorControl:{field:{optional:"необязательный"}},editorControlPane:{widget:{required:"Необходимо указать значение поля %{fieldLabel}.",regexPattern:"Значение поля %{fieldLabel} не соответствует шаблону: %{pattern}.",processing:"Значение поля %{fieldLabel} обрабатывается…",range:"Значение поля %{fieldLabel} должно быть между %{minValue} и %{maxValue}.",min:"Значение поля %{fieldLabel} должно быть не менее %{minValue}.",max:"Значение поля %{fieldLabel} должно быть %{maxValue} или менее.",rangeCount:"%{fieldLabel} должно содержать от %{minCount} до %{maxCount} элементов.",rangeCountExact:"%{fieldLabel} должно содержать строго %{count} элементов.",rangeMin:"%{fieldLabel} должно содержать не менее %{minCount} элементов.",rangeMax:"%{fieldLabel} должно содержать %{maxCount} или менее элементов.",invalidPath:"Путь '%{path}' содежрит ошибки",pathExists:"Путь '%{path}' уже существует"},i18n:{writingInLocale:"Пишем на %{locale}"}},editor:{onLeavePage:"Вы уверены, что хотите покинуть эту страницу?",onUpdatingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед обновлением статуса.",onPublishingNotReady:"Пожалуйста, измените статус на «Готов» перед публикацией.",onPublishingWithUnsavedChanges:"У вас есть несохраненные изменения, сохраните их перед публикацией.",onPublishing:"Вы уверены, что хотите опубликовать эту запись?",onUnpublishing:"Вы уверены, что хотите отменить публикацию этой записи?",onDeleteWithUnsavedChanges:"Вы уверены, что хотите удалить эту опубликованную запись, а также несохраненные изменения из текущего сеанса?",onDeletePublishedEntry:"Вы уверены, что хотите удалить эту опубликованную запись?",onDeleteUnpublishedChangesWithUnsavedChanges:"Это удалит все неопубликованные изменения в этой записи, а также ваши несохраненные изменения из текущего сеанса. Вы все еще хотите удалить?",onDeleteUnpublishedChanges:"Все неопубликованные изменения в этой записи будут удалены. Вы все еще хотите удалить?",loadingEntry:"Загрузка записи…",confirmLoadBackup:"Для этой записи была восстановлена локальная резервная копия, хотите ли вы ее использовать?"},editorToolbar:{publishing:"Публикация…",publish:"Опубликовать",published:"Опубликовано",unpublish:"Отменить публикацию",duplicate:"Дублировать",unpublishing:"Отмена публикации…",publishAndCreateNew:"Опубликовать и создать новую",publishAndDuplicate:"Опубликовать и дублировать",deleteUnpublishedChanges:"Удалить неопубликованные изменения",deleteUnpublishedEntry:"Удалить неопубликованную запись",deletePublishedEntry:"Удалить опубликованную запись",deleteEntry:"Удалить запись",saving:"Сохранение…",save:"Сохранить",deleting:"Удаление…",updating:"Обновление…",status:"Cтатус: %{status}",backCollection:"Запись в коллекцию %{collectionLabel}",unsavedChanges:"Несохраненные изменения",changesSaved:"Изменения сохранены",draft:"Черновик",inReview:"На рассмотрении",ready:"Одобрен",publishNow:"Опубликовать сейчас",deployPreviewPendingButtonLabel:"Проверить предварительный просмотр",deployPreviewButtonLabel:"Предварительный просмотр",deployButtonLabel:"Просмотр"},editorWidgets:{markdown:{bold:"Полужиный",italic:"Курсив",code:"Код",link:"Ссылка",linkPrompt:"Укажите URL ссылки",headings:"Заголовки",quote:"Цитата",bulletedList:"Маркированный список",numberedList:"Нумерованный список",addComponent:"Добавить компонент",richText:"Форматированный текст",markdown:"Markdown"},image:{choose:"Выберите изображение",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL изображения",chooseDifferent:"Выберите другое изображение",remove:"Удалить изображение"},file:{choose:"Выберите файл",chooseUrl:"Вставить из URL",replaceUrl:"Заменить на URL",promptUrl:"Введите URL файла",chooseDifferent:"Выберите другой файл",remove:"Удалить файл"},unknownControl:{noControl:"Нет контрола для виджета '%{widget}'."},unknownPreview:{noPreview:"Нет превью для виджета '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сейчас"}}},mediaLibrary:{mediaLibraryCard:{draft:"Черновик",copy:"Копировать",copyUrl:"Копировать URL",copyPath:"Копировать путь",copyName:"Копировать имя",copied:"Скопировано"},mediaLibrary:{onDelete:"Вы уверены, что хотите удалить выбранный медиафайл?",fileTooLarge:"Файл слишком большой.\nНастройки не позволяют сохранять файлы более %{size} kB."},mediaLibraryModal:{loading:"Загрузка медифайлов…",noResults:"Нет результатов.",noAssetsFound:"Ресурсы не найдены.",noImagesFound:"Изображения не найдены.",private:"Приватные ",images:"Изображения",mediaAssets:"Медиаресурсы",search:"Идёт поиск…",uploading:"Загрузка…",upload:"Загрузить новый",download:"Скачать",deleting:"Удаление…",deleteSelected:"Удалить помеченные",chooseSelected:"Выбрать помеченные"}},ui:{default:{goBackToSite:"Вернуться на сайт"},errorBoundary:{title:"Ошибка",details:"Произошла ошибка. Пожалуйста, ",reportIt:"сообщите о ней.",detailsHeading:"Подробности",privacyWarning:"При открытии тикет автоматически предзаполняется сообщением об ошибке и отладочной информацией.\nПожалуйста, проверьте, что данные верны и не содержат конфиденциальной информации.",recoveredEntry:{heading:"Восстановленный документ",warning:"Пожалуйста, скопируйте это сообщение куда-нибудь, прежде чем уйти со страницы!",copyButtonLabel:"Скопировать в буфер обмена"}},settingsDropdown:{logOut:"Выйти"},toast:{onFailToLoadEntries:"Не удалось загрузить запись: %{details}",onFailToLoadDeployPreview:"Не удалось загрузить превью: %{details}",onFailToPersist:"Не удалось сохранить запись: %{details}",onFailToDelete:"Не удалось удалить запись: %{details}",onFailToUpdateStatus:"Не удалось обновить статус: %{details}",missingRequiredField:"К сожалению, вы пропустили обязательное поле. Пожалуйста, заполните перед сохранением.",entrySaved:"Запись сохранена",entryPublished:"Запись опубликована",entryUnpublished:"Публикация записи отменена",onFailToPublishEntry:"Не удалось опубликовать запись: %{details}",onFailToUnpublishEntry:"Не удалось отменить публикацию записи: %{details}",entryUpdated:"Статус записи обновлен",onDeleteUnpublishedChanges:"Неопубликованные изменения удалены",onFailToAuth:"%{details}",onLoggedOut:"Вы вышли. Пожалуйста, сохраните все данные и войдите снова",onBackendDown:"Происходят перебои в работе бекенда. См. %{details}"}},workflow:{workflow:{loading:"Загрузка записей редакционного документооборота",workflowHeading:"Редакционный документооборот",newPost:"Новая запись",description:"Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. |||| Число записей, ожидающих проверки — %{smart_count}, готовых к публикации — %{readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Удалить изменения",deleteNewEntry:"Удалить новую запись",publishChanges:"Опубликовать изменения",publishNewEntry:"Опубликовать новую запись"},workflowList:{onDeleteEntry:"Вы уверены, что хотите удалить эту запись?",onPublishingNotReadyEntry:"Только элементы со статусом «Готов» могут быть опубликованы. Перетащите карточку в столбец «Одобренные», чтобы разрешить публикацию.",onPublishEntry:"Вы уверены, что хотите опубликовать эту запись?",draftHeader:"Черновики",inReviewHeader:"На рассмотрении",readyHeader:"Одобренные",currentEntries:"%{smart_count} entry |||| %{smart_count} entries"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Logga in",loggingIn:"Loggar in...",loginWithNetlifyIdentity:"Logga in med Netlify Identity",loginWithAzure:"Logga in med Azure",loginWithBitbucket:"Logga in med Bitbucket",loginWithGitHub:"Logga in med GitHub",loginWithGitLab:"Logga in med GitLab",errors:{email:"Fyll i din epostadress.",password:"Vänligen skriv ditt lösenord.",identitySettings:"Kan inte hämta inställningar för Identity. Vid användade av git-gateway backend, kontrollera att Identity service och Git Gateway är aktiverade."}},app:{header:{content:"Innehåll",workflow:"Arbetsflöde",media:"Media",quickAdd:"Snabbt tillägg"},app:{errorHeader:"Ett fel uppstod vid hämtning av CMS-konfigurationen",configErrors:"Konfigurationsfel",checkConfigYml:"Kontrollera din config.yml-fil.",loadingConfig:"Hämtar konfiguration...",waitingBackend:"Väntar på backend..."},notFoundPage:{header:"Sidan finns inte"}},collection:{sidebar:{collections:"Samlingar",allCollections:"Alla Samlingar",searchAll:"Sök",searchIn:"Sök i"},collectionTop:{sortBy:"Sortera efter",viewAs:"Visa som",newButton:"Ny %{collectionLabel}",ascending:"Stigande",descending:"Fallande",searchResults:'Sökresultat för "%{searchTerm}"',searchResultsInCollection:'Sökresultat för "%{searchTerm}" i %{collection}',filterBy:"Filtrera efter",groupBy:"Gruppera efter"},entries:{loadingEntries:"Hämtar inlägg...",cachingEntries:"Sparar inlägg i cache...",longerLoading:"Det här kan ta några minuter",noEntries:"Inga inlägg"},groups:{other:"Annat",negateLabel:"Inte %{label}"},defaultFields:{author:{label:"Författare"},updatedOn:{label:"Uppdaterad vid"}}},editor:{editorControl:{field:{optional:"frivillig"}},editorControlPane:{widget:{required:"%{fieldLabel} är obligatoriskt.",regexPattern:"%{fieldLabel} matchar inte mönstret: %{pattern}.",processing:"%{fieldLabel} bearbetas.",range:"%{fieldLabel} måste vara mellan %{minValue} och %{maxValue}.",min:"%{fieldLabel} måste vara åtminstone %{minValue}.",max:"%{fieldLabel} måste vara %{maxValue} eller mindre.",rangeCount:"%{fieldLabel} måste ha mellan %{minCount} och %{maxCount} element.",rangeCountExact:"%{fieldLabel} måste ha exakt %{count} element.",rangeMin:"%{fieldLabel} måste ha åtminstone %{minCount} element.",rangeMax:"%{fieldLabel} måste ha %{maxCount} eller färre element.",invalidPath:"'%{path}' är inte en giltig sökväg",pathExists:"Sökvägen '%{path}' existerar redan"},i18n:{writingInLocale:"Skriver i %{locale}"}},editor:{onLeavePage:"Är du säker på att du vill lämna sidan?",onUpdatingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara dem innan du uppdaterar status.",onPublishingNotReady:'Vänligen uppdatera status till "Redo" innan du publicerar.',onPublishingWithUnsavedChanges:"Du har osparade ändringar, vänligen spara innan du publicerar.",onPublishing:"Är du säker på att du vill publicera det här inlägget?",onUnpublishing:"Är du säker på att du vill avpublicera det här inlägget?",onDeleteWithUnsavedChanges:"Är du säker på att du vill radera det här publicerade inlägget, inklusive dina osparade ändringar från nuvarande session?",onDeletePublishedEntry:"Är du säker på att du vill radera det här publicerade inlägget?",onDeleteUnpublishedChangesWithUnsavedChanges:"Du är på väg att radera alla opublicerade ändringar för det här inlägget, inklusive dina osparade ändringar från nuvarande session. Vill du fortfarande radera?",onDeleteUnpublishedChanges:"Alla opublicerade ändringar kommer raderas. Vill du fortfarande radera?",loadingEntry:"Hämtar inlägg...",confirmLoadBackup:"En lokal kopia hittades för det här inlägget, vill du använda den?"},editorInterface:{toggleI18n:"Slå på/av i18n",togglePreview:"Visa/Dölj förhandsvisning",toggleScrollSync:"Synka scrollning"},editorToolbar:{publishing:"Publicerar...",publish:"Publicera",published:"Publicerad",unpublish:"Avpublicera",duplicate:"Duplicera",unpublishing:"Avpublicerar...",publishAndCreateNew:"Publicera och skapa ny",publishAndDuplicate:"Publicera och duplicera",deleteUnpublishedChanges:"Radera opublicerade ändringar",deleteUnpublishedEntry:"Radera opublicerat inlägg",deletePublishedEntry:"Radera publicerat inlägg",deleteEntry:"Radera inlägg",saving:"Sparar...",save:"Spara",deleting:"Raderar...",updating:"Updaterar...",status:"Status: %{status}",backCollection:" Redigerar i samlingen %{collectionLabel}",unsavedChanges:"Osparade ändringar",changesSaved:"Ändringar sparade",draft:"Utkast",inReview:"Under granskning",ready:"Redo",publishNow:"Publicera nu",deployPreviewPendingButtonLabel:"Kontrollera förhandsvisning",deployPreviewButtonLabel:"Visa förhandsvisning",deployButtonLabel:"Visa Live"},editorWidgets:{markdown:{bold:"Fetstil",italic:"Kursiv",code:"Kod",link:"Länk",linkPrompt:"Ange en URL för länken",headings:"Rubriker",quote:"Citat",bulletedList:"Punktlista",numberedList:"Numrerad lista",addComponent:"Lägg till komponent",richText:"Rich Text",markdown:"Markdown"},image:{choose:"Välj en bild",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för bilden",chooseDifferent:"Välj en annan bild",remove:"Ta bort bild"},file:{choose:"Välj en fil",chooseUrl:"Infoga från URL",replaceUrl:"Ersätt med URL",promptUrl:"Ange en URL för filen",chooseDifferent:"Välj en annan fil",remove:"Ta bort fil"},unknownControl:{noControl:"Inget reglage för widget '%{widget}'."},unknownPreview:{noPreview:"Ingen förhandsvisning för widget '%{widget}'."},headingOptions:{headingOne:"Rubrik 1",headingTwo:"Rubrik 2",headingThree:"Rubrik 3",headingFour:"Rubrik 4",headingFive:"Rubrik 5",headingSix:"Rubrik 6"},datetime:{now:"Nu"}}},mediaLibrary:{mediaLibraryCard:{draft:"Utkast",copy:"Kopiera",copyUrl:"Kopiera URL",copyPath:"Kopiera Sökväg",copyName:"Kopiera Namn",copied:"Kopierad"},mediaLibrary:{onDelete:"Är du säker på att du vill radera valt mediaobjekt?",fileTooLarge:"Maximal filstorlek överskriden.\nKonfigurerad att inte tillåta filer större än %{size} kB."},mediaLibraryModal:{loading:"Hämtar...",noResults:"Inga resultat.",noAssetsFound:"Hittade inga mediaobjekt.",noImagesFound:"Hittade inga bilder.",private:"Privat ",images:"Bilder",mediaAssets:"Mediaobjekt",search:"Sök...",uploading:"Laddar upp...",upload:"Ladda upp",download:"Ladda ner",deleting:"Raderar...",deleteSelected:"Radera markerad",chooseSelected:"Välj markerad"}},ui:{default:{goBackToSite:"Tillbaka till sida"},errorBoundary:{title:"Fel",details:"Ett fel har uppstått - vänligen ",reportIt:"öppna ett ärende på GitHub.",detailsHeading:"Detaljer",privacyWarning:"När ett ärende öppnas bifogas felsökningsdata automatiskt.\nVänligen kontrollera att informationen är korrekt och ta bort känslig data om det skulle finnas sådan.",recoveredEntry:{heading:"Återskapade dokument",warning:"Vänligen kopiera materialet någon annanstans innan du navigerar från sidan!",copyButtonLabel:"Kopiera till urklipp"}},settingsDropdown:{logOut:"Logga ut"},toast:{onFailToLoadEntries:"Kunde inte hämta inlägg: %{details}",onFailToLoadDeployPreview:"Kunde inte ladda förhandsvisning: %{details}",onFailToPersist:"Kunde inte spara inlägg: %{details}",onFailToDelete:"Kunde inte radera inlägg: %{details}",onFailToUpdateStatus:"Kunde inte uppdatera status: %{details}",missingRequiredField:"Oops, du har missat ett obligatoriskt fält. Vänligen fyll i det innan du sparar.",entrySaved:"Inlägg sparat",entryPublished:"Inlägg publicerat",entryUnpublished:"Inlägg avpublicerat",onFailToPublishEntry:"Kunde inte publicera: %{details}",onFailToUnpublishEntry:"Kunde inte avpublicera inlägg: %{details}",entryUpdated:"Inläggsstatus uppdaterad",onDeleteUnpublishedChanges:"Opublicerade ändringar raderade",onFailToAuth:"%{details}",onLoggedOut:"Du har blivit utloggad, vänligen spara en kopia av eventuella ändringar och logga in på nytt",onBackendDown:"Tjänsten är drabbad av en störning. Se %{details} för mer information"}},workflow:{workflow:{loading:"Hämtar inlägg för redaktionellt arbetsflöde",workflowHeading:"Redaktionellt arbetsflöde",newPost:"Nytt inlägg",description:"%{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. |||| %{smart_count} inlägg väntar på granskning, %{readyCount} redo att publiceras. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} av %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"av %{author}",deleteChanges:"Radera ändringar",deleteNewEntry:"Radera nytt inlägg",publishChanges:"Publicera ändringar",publishNewEntry:"Publicera nytt inlägg"},workflowList:{onDeleteEntry:"Är du säker på att du vill radera det här inlägget?",onPublishingNotReadyEntry:'Bara inlägg med statusen "Redo" kan publiceras. Vänligen dra kortet till "Redo"-kolumnen för att möjliggöra publicering',onPublishEntry:"Är du säker på att du vill publicera det här inlägget?",draftHeader:"Utkast",inReviewHeader:"Under granskning",readyHeader:"Redo",currentEntries:"%{smart_count} inlägg |||| %{smart_count} inlägg"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"เข้าสู่ระบบ",loggingIn:"กำลังเข้าสู่ระบบ...",loginWithNetlifyIdentity:"เข้าสู่ระบบด้วย Netlify Identity",loginWithBitbucket:"เข้าสู่ระบบด้วย Bitbucket",loginWithGitHub:"เข้าสู่ระบบด้วย GitHub",loginWithGitLab:"เข้าสู่ระบบด้วย GitLab",errors:{email:"ตรวจสอบให้แน่ใจว่าได้ใส่อีเมลล์แล้ว",password:"โปรดใส่รหัสผ่านของคุณ",identitySettings:"ไม่สามารถเข้าถึงการตั้งค่าส่วนตัว เมื่อใช้ git-gateway backend ตรวจสอบให้แน่ใจว่าได้เปิดใช้งานระบบยืนยันตัวตนและ Git Gateway."}},app:{header:{content:"เนื้อหา",workflow:"ขั้นตอนการทำงาน",media:"มีเดีย",quickAdd:"เพิ่มเนื้อหา อย่างเร็ว"},app:{errorHeader:"เกิดข้อผิดพลาดในการโหลดการตั้งค่า CMS",configErrors:"คอนฟิกมีข้อผิดพลาด",checkConfigYml:"กรุณาตรวจสอบไฟล์ config.yml ของคุณ",loadingConfig:"กำลังโหลดการตั้งค่า...",waitingBackend:"กำลังรอการตอบกลับจาก backend..."},notFoundPage:{header:"ไม่พบหน้านี้"}},collection:{sidebar:{collections:"กลุ่ม",allCollections:"ทุกกลุ่ม",searchAll:"ค้นหาทั้งหมด",searchIn:"ค้าหาใน"},collectionTop:{sortBy:"จัดเรียงตาม",viewAs:"ดูในฐานะ",newButton:"สร้าง %{collectionLabel}",ascending:"น้อยไปมาก",descending:"มากไปน้อย",searchResults:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}"',searchResultsInCollection:'ค้นหาผลลัพธ์สำหรับ "%{searchTerm}" ใน %{collection}',filterBy:"กรองตาม"},entries:{loadingEntries:"กำลังโหลดเนิ้อหา...",cachingEntries:"กำลังแคชข้อมูลเนื้อหา...",longerLoading:"อาจจะโหลดนานหลายนาที",noEntries:"ไม่มีเนื้อหา"},defaultFields:{author:{label:"ผู้เขียน"},updatedOn:{label:"อัพเดตเมื่อ"}}},editor:{editorControl:{field:{optional:"ทางเลือก"}},editorControlPane:{widget:{required:"%{fieldLabel} ต้องระบุ",regexPattern:"%{fieldLabel} ไม่ตรงกับรูปแบบ: %{pattern}",processing:"%{fieldLabel} กำลังประมวลผล",range:"%{fieldLabel} ต้องอยู่ระหว่าง %{minValue} และ %{maxValue}",min:"%{fieldLabel} จะต้องมีค่าไม่ต่ำกว่า %{minValue}",max:"%{fieldLabel} จะต้องมีค่าไม่มากกว่า %{maxValue}",rangeCount:"%{fieldLabel} จะต้องอยู่ระหว่าง %{minCount} และ %{maxCount} รายการ",rangeCountExact:"%{fieldLabel} จะต้องมี %{count} รายการ",rangeMin:"%{fieldLabel} จะต้องมีไม่ต่ำกว่า %{minCount} รายการ",rangeMax:"%{fieldLabel} จะต้องมีไม่มากกว่า %{maxCount} รายการ",invalidPath:"'%{path}' พาทไม่ถูกต้อง",pathExists:"พาท '%{path}' มีอยู่แล้ว"},i18n:{writingInLocale:"เขียนด้วยภาษา %{locale}"}},editor:{onLeavePage:"คุณแน่ใจหรือว่าจะออกจากหน้านี้?",onUpdatingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนอัปเดตสถานะ",onPublishingNotReady:'โปรดอัปเดตสถานะเป็น "พร้อม" ก่อนจะเผยแพร่',onPublishingWithUnsavedChanges:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก โปรดบันทึกก่อนจะเผยแพร่",onPublishing:"คุณแน่ใจหรือว่าจะเผยแพร่เนื้อหานี้?",onUnpublishing:"คุณแน่ใจหรือว่าจะไม่ต้องการเผยแพร่เนื้อหานี้?",onDeleteWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeletePublishedEntry:"คุณแน่ใจหรือว่าจะต้องการลบการเผยแพร่เนื้อหานี้?",onDeleteUnpublishedChangesWithUnsavedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้ รวมถึงการเปลี่ยนแปลงที่ยังไม่ได้บันทึก?",onDeleteUnpublishedChanges:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหาที่ยังไม่ได้เผยแพร่ทั้งหมดนี้?",loadingEntry:"กำลังโหลดเนื้อหา...",confirmLoadBackup:"ข้อมูลสำรองได้ถูกกู้คืนสำหรับเนื้อหานี้ คุณต้องการใช้มันไหม?"},editorToolbar:{publishing:"กำลังเผยแพร่...",publish:"เผยแพร่",published:"เผยแพร่แล้ว",unpublish:"ไม่ได้เผยแพร่",duplicate:"ทำซ้ำ",unpublishing:"ไม่ทำการเผยแพร่...",publishAndCreateNew:"เผยแพร่ และ สร้างใหม่",publishAndDuplicate:"เผยแพร่ และ ทำซ้ำ",deleteUnpublishedChanges:"ลบการเปลี่ยแปลงเนื้อหาที่ยังไม่ได้เผยแพร่",deleteUnpublishedEntry:"ลบเนื้อหาที่ยังไม่ได้เผยแพร่",deletePublishedEntry:"ลบเนื้อหาที่เผยแพร่",deleteEntry:"ลบเนื้อหา",saving:"กำลังบันทึก...",save:"บันทึก",deleting:"กำลังลบ...",updating:"กำลังอัปเดต...",status:"สถานะ: %{status}",backCollection:" เขียนในกลุ่ม %{collectionLabel}",unsavedChanges:"การเปลี่ยนแปลงยังไม่ได้บันทึก",changesSaved:"การเปลี่ยนเปลงถูกบันทึกแล้ว",draft:"ร่าง",inReview:"อยู่ระหว่างการตรวจสอบ",ready:"พร้อม",publishNow:"เผยแพร่ตอนนี้",deployPreviewPendingButtonLabel:"ตรวจสอบตัวอย่าง",deployPreviewButtonLabel:"ดูตัวอย่าง",deployButtonLabel:"ดูตัวอย่างจากหน้าจริง"},editorWidgets:{markdown:{richText:"Rich Text",markdown:"Markdown"},image:{choose:"เลือกรูปภาพ",chooseDifferent:"เลือกรูปภาพอื่น",remove:"เอารูปภาพออก"},file:{choose:"เลือกไฟล์",chooseDifferent:"เลือกไฟล์อื่น",remove:"เอาไฟล์ออก"},unknownControl:{noControl:"ไม่มีการควบคุม widget '%{widget}'."},unknownPreview:{noPreview:"ไม่มีตัวอย่างสำหรับ widget '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"เวลาตอนนี้"}}},mediaLibrary:{mediaLibraryCard:{draft:"ร่าง"},mediaLibrary:{onDelete:"คุณแน่ใจหรือว่าจะลบมีเดียที่ถูกเลือก?",fileTooLarge:"ไฟล์ใหญ่เกินไป\n ค่าที่ตั้งไว้ไม่ยอมรับไฟล์ที่ใหญ่กว่า %{size} kB."},mediaLibraryModal:{loading:"กำลังโหลด...",noResults:"ไม่มีผลลัพธ์",noAssetsFound:"ไม่พบข้อมูล",noImagesFound:"ไม่พบรูปภาพ",private:"ส่วนตัว ",images:"รูปภาพ",mediaAssets:"ข้อมูลมีเดีย",search:"ค้นหา...",uploading:"กำลังอัปโหลด...",upload:"อัปโหลด",download:"ดาวน์โหลด",deleting:"กำลังลบ...",deleteSelected:"ลบข้อมูลที่เลือก",chooseSelected:"เลือกข้อมูลที่ถูกเลือก"}},ui:{default:{goBackToSite:"กลับไปยังเว็บไซต์"},errorBoundary:{title:"มีข้อผิดพลาด",details:"มีข้อผิดพลาดเกิดขึ้น",reportIt:"แจ้งข้อผิดพลาดบน GitHub",detailsHeading:"รายละเอียด",privacyWarning:"การแจ้งปัญหาจะเติมข้อมูลล่วงหน้าด้วยข้อความแสดงข้อผิดพลาดและข้อมูลการดีบัก\nโปรดตรวจสอบข้อมูลว่าถูกต้องและลบข้อมูลที่สำคัญหากมีอยู่",recoveredEntry:{heading:"เอกสารถูกกู้คืน",warning:"โปรด คัดลอก/วาง ที่ใดที่หนึ่งก่อนจะทำอย่างอื่น!",copyButtonLabel:"คัดลอกไปที่คลิปบอร์ด"}},settingsDropdown:{logOut:"ออกจากระบบ"},toast:{onFailToLoadEntries:"ล้มเหลวในการโหลดเนื้อหา: %{details}",onFailToLoadDeployPreview:"ล้มเหลวในการโหลดตัวอย่าง: %{details}",onFailToPersist:"ล้มเหลวในการยืนยันเนื้อหา: %{details}",onFailToDelete:"ล้มเหลวในการลบเนื้อหา: %{details}",onFailToUpdateStatus:"ล้มเหลวในการอัปเดตสถานะ: %{details}",missingRequiredField:"คุณไม่ได้ใส่ข้อมูลในช่องที่ต้องการ กรุณาใส่ข้อมูลก่อนบันทึก",entrySaved:"เนื้อหาถูกบันทึก",entryPublished:"เนื้อหาถูกเผยแพร่",entryUnpublished:"เนื้อหาไม่ได้ถูกเผยแพร่",onFailToPublishEntry:"ล้มเหลวในการเผยแพร่เนื้อหา: %{details}",onFailToUnpublishEntry:"ล้มเหลวในการไม่เผยแพร่เนื้อหา: %{details}",entryUpdated:"สถานะเนื้อหาถูกอัปเดต",onDeleteUnpublishedChanges:"การเปลี่ยนแปลงเนื้อหาไม่ถูกเผยแพร่ได้ถูกลบ",onFailToAuth:"%{details}",onLoggedOut:"คุณได้ออกจากระบบ โปรดสำรองข้อมูลแล้วเข้าสู่ระบบอีกครั้ง",onBackendDown:"บริการแบ็กเอนด์เกิดการขัดข้อง ดู %{details} สำหรับข้อมูลเพิ่มเติม"}},workflow:{workflow:{loading:"กำลังโหลดเนื้อหาขั้นตอนการทำงานของบรรณาธิการ",workflowHeading:"ขั้นตอนการทำงานของบรรณาธิการ",newPost:"สร้างโพสต์ใหม่",description:"%{smart_count} เนื้อหารอการตรวจสอบ, %{readyCount} พร้อมที่จะเผยแพร่ ่",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} โดย %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"โดย %{author}",deleteChanges:"ลบการเปลี่ยนแปลง",deleteNewEntry:"ลบเนื้อหาใหม่",publishChanges:"เผยแพร่การเปลี่ยนแปลง",publishNewEntry:"เผยแพร่เนื้อหาใหม่"},workflowList:{onDeleteEntry:"คุณแน่ใจหรือว่าจะต้องการลบเนื้อหานี้?",onPublishingNotReadyEntry:'เฉพาะรายการที่มีสถานะ "พร้อม" สามารถทำการเผยแพร่ โปรดลากเนื้อหาไปยังช่อง "พร้อม" เพื่อจะทำการเผยแพร่.',onPublishEntry:"คุณแน่ใจหรือว่าจะต้องการเผยแพร่เนื้อหานี้?",draftHeader:"ร่าง",inReviewHeader:"อยู่ในการตรวจสอบ",readyHeader:"พร้อม",currentEntries:"%{smart_count} เนื้อหา"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Giriş",loggingIn:"Giriş yapılıyor..",loginWithNetlifyIdentity:"Netlify Identity ile Giriş",loginWithAzure:"Azure ile Giriş",loginWithBitbucket:"Bitbucket ile Giriş",loginWithGitHub:"GitHub ile Giriş",loginWithGitLab:"GitLab ile Giriş",errors:{email:"E-postanızı girdiğinizden emin olun.",password:"Lütfen şifrenizi girin.",identitySettings:"Identity ayarlarına erişilemiyor. Git-gateway sunucusunu kullanmak için Identity servisi ve Git Gateway'in etkin olduğundan emin olun."}},app:{header:{content:"İçerikler",workflow:"İş Akışı",media:"Medya",quickAdd:"Hızlı ekle"},app:{errorHeader:"CMS yapılandırması yüklenirken hata oluştu",configErrors:"Yapılandırma Hataları",checkConfigYml:"config.yml dosyanızı kontrol edin.",loadingConfig:"Yapılandırma yükleniyor...",waitingBackend:"Arka uç bekleniyor..."},notFoundPage:{header:"Bulunamadı"}},collection:{sidebar:{collections:"Koleksiyonlar",allCollections:"Bütün Koleksiyonlar",searchAll:"Tümünü ara",searchIn:"İçinde ara"},collectionTop:{sortBy:"Sırala ...",viewAs:"Görüntüle",newButton:"Yeni %{collectionLabel}",ascending:"Artan",descending:"Azalan",searchResults:'"%{searchTerm}" için Arama Sonuçları',searchResultsInCollection:'%{collection} koleksiyonunda, "%{searchTerm}" için Arama Sonuçları',filterBy:"Filtrele",groupBy:"Grupla"},entries:{loadingEntries:"Girdiler yükleniyor...",cachingEntries:"Girdi önbelleği...",longerLoading:"Bu birkaç dakika sürebilir",noEntries:"Hiç Girdi Yok"},groups:{other:"Diğer",negateLabel:"%{label} hariç"},defaultFields:{author:{label:"Yazar"},updatedOn:{label:"Güncellenme Tarihi"}}},editor:{editorControl:{field:{optional:"isteğe bağlı"}},editorControlPane:{widget:{required:"%{fieldLabel} gerekli.",regexPattern:"%{fieldLabel} eşleşmeyen kalıp: %{pattern}.",processing:"%{fieldLabel} işleniyor.",range:"%{fieldLabel} %{minValue} ve %{maxValue} arasında olmalı.",min:"%{fieldLabel} en az %{minValue} olmalı.",max:"%{fieldLabel}, %{maxValue} veya daha az olmalı.",rangeCount:"%{fieldLabel}, %{minCount} ve %{maxCount} öğeleri arasında olmalı.",rangeCountExact:"%{fieldLabel}, %{count} öğe olmalıdır.",rangeMin:"%{fieldLabel}, en az %{minCount} öğe olmalıdır.",rangeMax:"%{fieldLabel}, %{maxCount} veya daha az öğe olmalıdır.",invalidPath:"'%{path}' geçerli bir yol değil",pathExists:"'%{path}' yolu zaten var"},i18n:{writingInLocale:"%{locale} için yazılıyor",copyFromLocale:"Başka bir dilden doldurun",copyFromLocaleConfirm:"Verileri %{locale} dilinden mi doldurmak istiyorsun?\nVarolan bütün verilerin üzerine yazılacak."}},editor:{onLeavePage:"Bu sayfadan ayrılmak istediğinize emin misiniz?",onUpdatingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen içeriği güncellemeden önce kaydedin.",onPublishingNotReady:'Lütfen yayınlamadan önce içeriği "Hazır" olarak güncelleyin.',onPublishingWithUnsavedChanges:"Kaydedilmemiş değişiklikleriniz var, lütfen yayınlamadan önce kaydedin.",onPublishing:"Bu girdiyi yayınlamak istediğinize emin misiniz?",onUnpublishing:"Bu girdiyi yayından kaldırmak istediğinizden emin misiniz?",onDeleteWithUnsavedChanges:"Bu oturumda kaydedilmiş değişikliklerin yanı sıra geçerli oturumdaki kaydedilmemiş değişikliklerinizi silmek istediğinize emin misiniz?",onDeletePublishedEntry:"Bu yayınlanmış girdiyi silmek istediğinize emin misiniz?",onDeleteUnpublishedChangesWithUnsavedChanges:"Bu girdide yayınlanmamış tüm değişiklikleri ve geçerli oturumdaki kaydedilmemiş değişikliklerinizi siler. Hala silmek istiyor musun?",onDeleteUnpublishedChanges:"Bu girdide yayınlanmamış tüm değişiklikler silinecek. Hala silmek istiyor musun?",loadingEntry:"Girdiler yükleniyor...",confirmLoadBackup:"Bu girdi için yerel bir yedekleme kurtarıldı, kullanmak ister misiniz?"},editorInterface:{toggleI18n:"i18n değiştir",togglePreview:"Önizlemeyi değiştir",toggleScrollSync:"Kaydırmayı senkronize et"},editorToolbar:{publishing:"Yayınlanıyor...",publish:"Yayınla",published:"Yayınlanan",unpublish:"Yayından Kaldır",duplicate:"Kopyala",unpublishing:"Yayından kaldırılıyor...",publishAndCreateNew:"Yayınla ve yeni oluştur",publishAndDuplicate:"Yayınla ve kopya oluştur",deleteUnpublishedChanges:"Yayımlanmamış değişiklikleri sil",deleteUnpublishedEntry:"Yayımlanmamış girdiyi sil",deletePublishedEntry:"Yayınlanan girdiyi sil",deleteEntry:"Girdiyi sil",saving:"Kaydediliyor...",save:"Kaydet",statusInfoTooltipDraft:"Giriş durumu taslak olarak ayarlandı. Girişi bitirmek ve incelemeye göndermek için giriş durumunu İncelemede olarak ayarlayın",statusInfoTooltipInReview:"Giriş gözden geçiriliyor, başka bir işlem yapılmasına gerek yok. Ancak, incelenirken yine de ek değişiklikler yapabilirsiniz.",deleting:"Siliniyor...",updating:"Güncelleniyor...",status:"Durumu: %{status}",backCollection:" %{collectionLabel} koleksiyonunda yazılı",unsavedChanges:"Kaydedilmemiş Değişiklikler",changesSaved:"Değişiklikler kaydedildi",draft:"Taslak",inReview:"İncelemede",ready:"Hazır",publishNow:"Şimdi yayımla",deployPreviewPendingButtonLabel:"Önizlemeyi Denetle",deployPreviewButtonLabel:"Önizlemeyi Görüntüle",deployButtonLabel:"Canlı Görüntüle"},editorWidgets:{markdown:{bold:"Kalın",italic:"İtalik",code:"Kod",link:"Bağlantı",linkPrompt:"Bağlantının URL'sini girin",headings:"Başlıklar",quote:"Alıntı",bulletedList:"Maddeli Liste",numberedList:"Numaralı Liste",addComponent:"Bileşen Ekle",richText:"Zengin Metin",markdown:"Markdown"},image:{choose:"Bir resim seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Resmin URL'sini girin",chooseDifferent:"Farklı bir resim seçin",remove:"Resmi kaldır"},file:{choose:"Bir dosya seçin",chooseUrl:"URL'den ekle",replaceUrl:"URL ile değiştir",promptUrl:"Dosyanın URL'sini girin",chooseDifferent:"Farklı bir dosya seçin",remove:"Dosyayı kaldır"},unknownControl:{noControl:"'%{widget}' bileşeni için kontrol yok."},unknownPreview:{noPreview:"'%{widget}' bileşeni için önizleme yok."},headingOptions:{headingOne:"Başlık 1",headingTwo:"Başlık 2",headingThree:"Başlık 3",headingFour:"Başlık 4",headingFive:"Başlık 5",headingSix:"Başlık 6"},datetime:{now:"Şimdi"},list:{add:"%{item} Ekle",addType:"%{item} Ekle"}}},mediaLibrary:{mediaLibraryCard:{draft:"Taslak",copy:"Kopyala",copyUrl:"URLyi Kopyala",copyPath:"Dosya Yolunu Kopyala",copyName:"Adını Kopyala",copied:"Kopyalandı"},mediaLibrary:{onDelete:"Seçilen medyayı silmek istediğinize emin misiniz?",fileTooLarge:"Dosya çok büyük.\n%{size} kilobaytdan daha büyük dosyaların yüklenmemesi için ayarlanmış."},mediaLibraryModal:{loading:"Yükleniyor...",noResults:"Sonuç yok.",noAssetsFound:"Hiçbir dosya bulunamadı.",noImagesFound:"Resim bulunamadı.",private:"Özel ",images:"Görseller",mediaAssets:"Medya dosyaları",search:"Ara...",uploading:"Yükleniyor...",upload:"Yükle",download:"İndir",deleting:"Siliniyor...",deleteSelected:"Seçileni sil",chooseSelected:"Seçileni kullan"}},ui:{default:{goBackToSite:"Siteye geri git"},errorBoundary:{title:"Hata",details:"Bir hata oluştu - lütfen ",reportIt:"GitHub üzerinde hata raporu aç.",detailsHeading:"Ayrıntılar",privacyWarning:"Bir hata raporu oluşturmak için gereken form otomatik olarak hata mesajı ve hata ayıklama verileriyle doldurulur.\nLütfen bilgilerin doğru olduğunu doğrulayın ve varsa hassas verileri kaldırın.",recoveredEntry:{heading:"Kurtarılan belge",warning:"Lütfen gitmeden önce bunu bir yere kopyalayın / yapıştırın!",copyButtonLabel:"Panoya kopyala"}},settingsDropdown:{logOut:"Çıkış Yap"},toast:{onFailToLoadEntries:"Girdi yüklenemedi: %{details}",onFailToLoadDeployPreview:"Önizleme yüklenemedi: %{details}",onFailToPersist:"Girdi devam ettirilemedi: %{details}",onFailToDelete:"Girdi silinemedi: %{details}",onFailToUpdateStatus:"Durum güncellenemedi: %{details}",missingRequiredField:"Gerekli bir alan eksik. Lütfen kaydetmeden önce tamamlayın.",entrySaved:"Girdi kaydedildi",entryPublished:"Girdi yayınlandı",entryUnpublished:"Girdi yayınlanmamış",onFailToPublishEntry:"Yayınlanamadı: %{details}",onFailToUnpublishEntry:"Girdi yayından kaldırılamadı: %{details}",entryUpdated:"Girdi durumu güncellendi",onDeleteUnpublishedChanges:"Yayımlanmamış değişiklikler silindi",onFailToAuth:"%{details}",onLoggedOut:"Çıkış yaptınız, lütfen tüm verileri yedekleyin ve tekrar giriş yapın",onBackendDown:"Arka uç hizmetinde bir kesinti yaşanıyor. Daha fazla bilgi için %{details} gör"}},workflow:{workflow:{loading:"İş Akışı Girdileri Yükleniyor",workflowHeading:"Editoryal İş Akışı",newPost:"Yeni Mesaj",description:"%{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayına hazır. |||| %{smart_count} girdi incelemeyi bekliyor, %{readyCount} yayınlanmaya hazır. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} tarafından %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author} tarafından",deleteChanges:"Değişiklikleri sil",deleteNewEntry:"Yeni girdiyi sil",publishChanges:"Değişiklikleri yayınla",publishNewEntry:"Yeni girdi yayınla"},workflowList:{onDeleteEntry:"Bu girdiyi silmek istediğinize emin misiniz?",onPublishingNotReadyEntry:'Yalnızca "Hazır" durumu olan öğeler yayınlanabilir. Lütfen yayınlamayı etkinleştirmek için kartı "Hazır" sütununa sürükleyin.',onPublishEntry:"Bu girdiyi yayınlamak istediğinize emin misiniz?",draftHeader:"Taslaklar",inReviewHeader:"İncelemede",readyHeader:"Hazır",currentEntries:"%{smart_count} girdi |||| %{smart_count} girdiler"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={app:{header:{content:"Зміст",workflow:"Робочий процес",media:"Медіа",quickAdd:"Додати"},app:{errorHeader:"Помилка завантаження конфігурації",configErrors:"Помилка конфігурації",checkConfigYml:"Перевірте config.yml файл.",loadingConfig:"Завантаження конфігурації...",waitingBackend:"Очікування серверу..."},notFoundPage:{header:"Сторінку не знайдено "}},collection:{sidebar:{collections:"Колекції",searchAll:"Пошук"},collectionTop:{viewAs:"Змінити вигляд",newButton:"Створити %{collectionLabel}"},entries:{loadingEntries:"Завантаження записів",cachingEntries:"Кешування записів",longerLoading:"Це може зайняти декілька хвилинок"}},editor:{editorControl:{field:{optional:"необов’язково"}},editorControlPane:{widget:{required:"%{fieldLabel} є обов'язковим.",regexPattern:"%{fieldLabel} не задовільняє умові: %{pattern}.",processing:"обробляється %{fieldLabel}.",range:"значення %{fieldLabel} повинне бути від %{minValue} до %{maxValue}.",min:"значення %{fieldLabel} має бути від %{minValue}.",max:"значення %{fieldLabel} має бути %{maxValue} та менше."}},editor:{onLeavePage:"Ви дійсно бажаєте залишити сторінку?",onUpdatingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть перед зміною статусу.",onPublishingNotReady:'Будь ласка, встановіть статус "Готово" перед публікацією.',onPublishingWithUnsavedChanges:"Присутні незбережені зміни, будь ласка збережіть їх перед публікацією.",onPublishing:"Ви дійсно бажаєте опублікувати запис?",onDeleteWithUnsavedChanges:"Ви дійсно бажаєте видалити опублікований запис, як і всі незбережені зміни під час поточної сесії?",onDeletePublishedEntry:"Ви дійсно бажаєте видалити опублікований запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Видаляться всі неопубліковані зміни до цього запису, а також всі незбережені зміни під час поточної сесії. Бажаєте продовжити?",onDeleteUnpublishedChanges:"Всі незбережені зміни до цього запису буде видалено. Бажаєте продовжити?",loadingEntry:"Завантаження...",confirmLoadBackup:"Відновлено резервну копію, бажаєте її використати?"},editorToolbar:{publishing:"Публікація...",publish:"Опублікувати",published:"Опубліковано",publishAndCreateNew:"Опублікувати і створити нову",deleteUnpublishedChanges:"Видалити неопубліковані зміни",deleteUnpublishedEntry:"Видалити неопубліковану сторінку",deletePublishedEntry:"Видалити опубліковану сторінку",deleteEntry:"Видалити",saving:"Збереження...",save:"Зберегти",deleting:"Видалення...",updating:"Оновлення...",status:"Cтан: %{status}",backCollection:" Робота над %{collectionLabel} колекцією",unsavedChanges:"Незбережені зміни",changesSaved:"Зміни збережено",draft:"В роботі",inReview:"На розгляді",ready:"Готово",publishNow:"Опублікувати",deployPreviewPendingButtonLabel:"Перевірити оновлення",deployPreviewButtonLabel:"Попередній перегляд",deployButtonLabel:"Переглянути наживо"},editorWidgets:{image:{choose:"Виберіть зображення",chooseDifferent:"Виберіть інше зображення",remove:"Видалити зображення"},file:{choose:"Виберіть файл",chooseDifferent:"Виберіть інший файл",remove:"Видалити файл"},unknownControl:{noControl:"Відсутній модуль для '%{widget}'."},unknownPreview:{noPreview:"Відсутній перегляд для '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"}}},mediaLibrary:{mediaLibraryCard:{draft:"В роботі"},mediaLibrary:{onDelete:"Ви дійсно бажаєте видалити обрані матеріали?"},mediaLibraryModal:{loading:"Завантаження...",noResults:"Результати відсутні.",noAssetsFound:"Матеріали відсутні.",noImagesFound:"Зображення відсутні.",private:"Private ",images:"Зображення",mediaAssets:"Медіа матеріали",search:"Пошук...",uploading:"Завантаження...",upload:"Завантажити",deleting:"Видалення...",deleteSelected:"Видалити обране",chooseSelected:"Додати обране"}},ui:{errorBoundary:{title:"Помилка",details:"Відбулась помилка - будь ласка ",reportIt:"надішліть нам деталі.",detailsHeading:"Деталі",recoveredEntry:{heading:"Відновлено документ",warning:"Будь ласка, збережіть це десь перед тим як піти!",copyButtonLabel:"Скопіювати в буфер"}},settingsDropdown:{logOut:"Вихід"},toast:{onFailToLoadEntries:"Помилка завантаження: %{details}",onFailToLoadDeployPreview:"Помилка завантаження перегляду: %{details}",onFailToPersist:"Помилка перезапису: %{details}",onFailToDelete:"Помилка видалення: %{details}",onFailToUpdateStatus:"Помилка оновлення статусу: %{details}",missingRequiredField:"Йой, здається пропущено обов'язкове поле. Будь ласка, заповніть перед збереженням.",entrySaved:"Збережено",entryPublished:"Опубліковано",onFailToPublishEntry:"Помилка публікації: %{details}",entryUpdated:"Статус оновлено",onDeleteUnpublishedChanges:"Видалено неопубліковані зміни",onFailToAuth:"%{details}"}},workflow:{workflow:{loading:"Завантаження редакційних матеріалів",workflowHeading:"Редакція",newPost:"Новий запис",description:"%{smart_count} записів очікують розгляду, %{readyCount} готові до публікації. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} від %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"від %{author}",deleteChanges:"Видалити зміни",deleteNewEntry:"Видалити новий запис",publishChanges:"Опублікувати всі зміни",publishNewEntry:"Опублікувати новий запис"},workflowList:{onDeleteEntry:"Ви дійсно бажаєте видалити запис?",onPublishingNotReadyEntry:'Тільки елементи з статусом "Готово" можуть бути опубліковані. Будь ласка перемістіть картку в колонку "Готово" для публікації.',onPublishEntry:"Дійсно бажаєте опублікувати запис?",draftHeader:"В роботі",inReviewHeader:"На розгляді",readyHeader:"Готово",currentEntries:"%{smart_count} запис |||| %{smart_count} записів"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Đăng nhập",loggingIn:"Đang đăng nhập...",loginWithNetlifyIdentity:"Đăng nhập bằng Netlify Identity",loginWithBitbucket:"Đăng nhập bằng Bitbucket",loginWithGitHub:"Đăng nhập bằng GitHub",loginWithGitLab:"Đăng nhập bằng GitLab",errors:{email:"Hãy nhập email của bạn.",password:"Hãy nhập mật khẩu của bạn.",identitySettings:"Không thể truy cập thiêt lập danh tính. Hãy chắc chắn rằng bạn đã bật dịch vụ Identity và Git Gateway khi sử dụng git-gateway."}},app:{header:{content:"Nội dung",workflow:"Biên tập",media:"Tập tin",quickAdd:"Tạo nhanh"},app:{errorHeader:"Xảy ra lỗi khi tải cấu hình CMS",configErrors:"Lỗi cấu hình",checkConfigYml:"Kiểm tra lại file config.yml của bạn.",loadingConfig:"Đang tải cấu hình...",waitingBackend:"Đang chờ backend..."},notFoundPage:{header:"Không tìm thấy"}},collection:{sidebar:{collections:"Bộ sưu tập",allCollections:"Tất cả bộ sưu tập",searchAll:"Tìm kiếm tất cả",searchIn:"Tìm kiếm trong"},collectionTop:{sortBy:"Sắp xếp theo",viewAs:"View as",newButton:"%{collectionLabel} mới",ascending:"Tăng dần",descending:"Giảm dần",searchResults:'Kết quả tìm kiếm cho "%{searchTerm}"',searchResultsInCollection:'Kết quả tìm kiếm cho "%{searchTerm}" trong %{collection}',filterBy:"Lọc theo"},entries:{loadingEntries:"Đang tải...",cachingEntries:"Đang lưu...",longerLoading:"Sẽ mất vài phút",noEntries:"Không có mục nào"},defaultFields:{author:{label:"Tác giả"},updatedOn:{label:"Ngày cập nhật"}}},editor:{editorControl:{field:{optional:"không bắt buộc"}},editorControlPane:{widget:{required:"%{fieldLabel} bắt buộc nhập.",regexPattern:"%{fieldLabel} không khớp với mẫu: %{pattern}.",processing:"%{fieldLabel} đang xử lý.",range:"%{fieldLabel} phải nằm trong khoảng từ %{minValue} đến %{maxValue}.",min:"%{fieldLabel} phải ít nhất %{minValue}.",max:"%{fieldLabel} tối đa %{maxValue} hoặc ít hơn.",rangeCount:"%{fieldLabel} phải nằm trong khoảng từ %{minCount} đến %{maxCount} mục.",rangeCountExact:"%{fieldLabel} phải có %{count} mục.",rangeMin:"%{fieldLabel} phải có ít nhất %{minCount} mục.",rangeMax:"%{fieldLabel} phải có tối đa %{maxCount} mục hoặc ít hơn.",invalidPath:"Đường dẫn '%{path}' không hợp lệ",pathExists:"Đường dẫn '%{path}' đã tồn tại"}},editor:{onLeavePage:"Bạn có chắc rằng bạn muốn rời khỏi trang này?",onUpdatingWithUnsavedChanges:"Bạn chưa lưu những thay đổi, hãy lưu trước khi thay đổi trạng thái.",onPublishingNotReady:'Hãy thay đổi trạng thái thành "Sẵn sàng" trước khi công bố.',onPublishingWithUnsavedChanges:"Bạn có thay đổi chưa lưu, hãy lưu trước khi công bố.",onPublishing:"Bạn có chắc rằng bạn muốn công bố mục này?",onUnpublishing:"Bạn có chắc rằng bạn muốn ngừng công bố mục này?",onDeleteWithUnsavedChanges:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này, cũng như là những thay đổi chưa lưu của bạn trong phiên làm việc này?",onDeletePublishedEntry:"Bạn có chắc rằng bạn muốn xoá mục đã được công bố này?",onDeleteUnpublishedChangesWithUnsavedChanges:"Điều này sẽ xoá tất cả những thay đổi chưa được lưu trong mục này, cũng như là những thay đổi chưa được lưu của bạn trong phiên làm việc này. Bạn vẫn muốn xoá chứ?",onDeleteUnpublishedChanges:"Tất cả những thay đổi chưa được lưu trong mục này sẽ bị xoá. Bạn vẫn muốn xoá chứ?",loadingEntry:"Đang tải...",confirmLoadBackup:"Một bản sao lưu trên máy đã được phục hồi cho mục này, bạn có muốn tải lên không?"},editorToolbar:{publishing:"Đang công bố...",publish:"Công bố",published:"Đã công bố",unpublish:"Ngừng công bố",duplicate:"Sao chép",unpublishing:"Đang ngừng công bố...",publishAndCreateNew:"Công bố và tạo mới",publishAndDuplicate:"Công bố và sao chép",deleteUnpublishedChanges:"Xoá thay đổi chưa công bố này",deleteUnpublishedEntry:"Xoá mục chưa được công bố này",deletePublishedEntry:"Xoá mục đã được công bố này",deleteEntry:"Xoá mục này",saving:"Đang lưu...",save:"Lưu",deleting:"Đang xoá...",updating:"Đang cập nhật...",status:"Trạng: %{status}",backCollection:" Đang viết trong bộ sưu tập %{collectionLabel}",unsavedChanges:"Thay đổi chưa được lưu",changesSaved:"Thay đổi đã được lưu",draft:"Bản nháp",inReview:"Đang xét duyệt",ready:"Sẵn sàng",publishNow:"Công bố ngay",deployPreviewPendingButtonLabel:"Kiểm tra Xem trước",deployPreviewButtonLabel:"Xem trước",deployButtonLabel:"Xem bản hoàn chỉnh"},editorWidgets:{markdown:{richText:"Văn bản định dạng",markdown:"Markdown"},image:{choose:"Chọn một hình",chooseDifferent:"Chọn hình khác",remove:"Gỡ bỏ hình"},file:{choose:"Chọn một tập tin",chooseDifferent:"Chọn tập tin khác",remove:"Gỡ bỏ tập tin"},unknownControl:{noControl:"Không tìm thấy control cho widget '%{widget}'."},unknownPreview:{noPreview:"Không tìm thấy preview cho widget '%{widget}'."},headingOptions:{headingOne:"Tiêu đề cấp 1",headingTwo:"Tiêu đề cấp 2",headingThree:"Tiêu đề cấp 3",headingFour:"Tiêu đề cấp 4",headingFive:"Tiêu đề cấp 5",headingSix:"Tiêu đề cấp 6"},datetime:{now:"Ngay lúc này"}}},mediaLibrary:{mediaLibraryCard:{draft:"Bản nháp"},mediaLibrary:{onDelete:"Bạn có chắc rằng bạn muốn xoá tập tin này?",fileTooLarge:"Tập tin quá lớn.\nCấu hình không cho phép những tập tin lớn hơn %{size} kB."},mediaLibraryModal:{loading:"Đang tải...",noResults:"Không có kết quả.",noAssetsFound:"Không tìm thấy tập tin nào.",noImagesFound:"Không tìm thấy hình nào.",private:"Riêng tư ",images:"Hình ảnh",mediaAssets:"Tập tin",search:"Tìm kiếm...",uploading:"Đang tải lên...",upload:"Tải lên",download:"Tải về",deleting:"Đang xoá...",deleteSelected:"Xoá những cái đã chọn",chooseSelected:"Lấy những cái đã chọn"}},ui:{default:{goBackToSite:"Quay về trang web"},errorBoundary:{title:"Lỗi",details:"Đã xảy ra lỗi - xin hãy ",reportIt:"tạo một issue trên GitHub.",detailsHeading:"Chi tiết",privacyWarning:"Tạo một issue với nội dung lỗi và dữ liệu debug được nhập sẵn.\nHãy xác nhận những thông tin này là đúng và gỡ bỏ dữ liệu nhạy cảm nếu cần thiết.",recoveredEntry:{heading:"Tài liệu đã được phục hồi",warning:"Hãy sao chép/dán nội dung này ở đâu đó trước khi chuyển sang trang khác!",copyButtonLabel:"Sao chép vào vùng nhớ"}},settingsDropdown:{logOut:"Đăng xuất"},toast:{onFailToLoadEntries:"Không thể tải mục: %{details}",onFailToLoadDeployPreview:"Không thể tải xem trước: %{details}",onFailToPersist:"Không thể giữ lại mục: %{details}",onFailToDelete:"Không thể xoá mục: %{details}",onFailToUpdateStatus:"Không thể cập nhật trạng thái: %{details}",missingRequiredField:"Bạn còn thiếu vài thông tin bắt buộc. Hãy hoàn thành trước khi lưu.",entrySaved:"Mục đã được lưu",entryPublished:"Mục đã được công bố",entryUnpublished:"Mục đã ngừng công bố",onFailToPublishEntry:"Không thể công bố: %{details}",onFailToUnpublishEntry:"Không thể ngừng công bố mục: %{details}",entryUpdated:"Trạng thái của mục đã được cập nhật",onDeleteUnpublishedChanges:"Những thay đổi chưa được công bố đã được xoá",onFailToAuth:"%{details}",onLoggedOut:"Bạn đã đăng xuất, hãy sao lưu dữ liệu và đăng nhập lại",onBackendDown:"Dịch vụ backend đang gặp trục trặc. Hãy xem {details} để biết thêm thông tin"}},workflow:{workflow:{loading:"Đang tải bài viết",workflowHeading:"Quy trình biên tập",newPost:"Bài mới",description:"%{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. |||| %{smart_count} bài đang chờ duyệt, %{readyCount} bài đã sẵn sàng để công bố. ",dateFormat:"D MMMM"},workflowCard:{lastChange:"%{date} bởi %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"bởi %{author}",deleteChanges:"Xoá thay đổi",deleteNewEntry:"Xoá bài mới",publishChanges:"Công bố thay đổi",publishNewEntry:"Công bố bài mới"},workflowList:{onDeleteEntry:"Bạn có chắc rằng bạn muốn xoá bài này?",onPublishingNotReadyEntry:'Chỉ những bài với trạng thái "Sẵn sàng" mới có thể được công bố. Hãy kéo thẻ vào cột "Sẵn sàng" để cho phép công bố.',onPublishEntry:"Bạn có chắc rằng bạn muốn công khai bài này?",draftHeader:"Bản nháp",inReviewHeader:"Đang xét duyệt",readyHeader:"Sẵn sàng",currentEntries:"%{smart_count} bài |||| %{smart_count} bài"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"登入",loggingIn:"正在登入...",loginWithNetlifyIdentity:"使用你的 Netlify 帳號來進行登入",loginWithBitbucket:"使用你的 Bitbucket 帳號來進行登入",loginWithGitHub:"使用你的 GitHub 帳號來進行登入",loginWithGitLab:"使用你的 GitLab 帳號來進行登入",errors:{email:"請確認你已經輸入你的電子郵件。",password:"請輸入你的密碼。",identitySettings:"無法連接認證系統!當使用 git-gateway 作為後端資料庫時,請確認您已開啟認證服務及 Git Gateway。"}},app:{header:{content:"內容",workflow:"作業流程",media:"媒體",quickAdd:"快速新增"},app:{errorHeader:"載入 CMS 設定時發生錯誤",configErrors:"設定錯誤",checkConfigYml:"請確認你的 config.yml 設定檔的內容是否正確",loadingConfig:"正在載入設定...",waitingBackend:"正在等待後端資料連接..."},notFoundPage:{header:"找不到頁面"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"尋找所有集合",searchIn:"搜尋範圍"},collectionTop:{sortBy:"排序方式",viewAs:"瀏覽方式",newButton:"新增 %{collectionLabel}",ascending:"由小到大",descending:"由大到小",searchResults:'搜尋 "%{searchTerm}" 的結果',searchResultsInCollection:'在 %{collection} 中搜尋 %{searchTerm}" 的結果',filterBy:"篩選方式"},entries:{loadingEntries:"載入內容",cachingEntries:"快取內容",longerLoading:"這可能需要幾分鐘的時間",noEntries:"沒有內容"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新於"}}},editor:{editorControl:{field:{optional:"選填"}},editorControlPane:{widget:{required:"%{fieldLabel} 是必須的。",regexPattern:"%{fieldLabel} 並不符合 %{pattern} 的型態",processing:"%{fieldLabel} 正在處理",range:"%{fieldLabel} 必須介於 %{minValue} 和 %{maxValue} 之間",min:"%{fieldLabel} 必須至少為 %{minValue}",max:"%{fieldLabel} 必須小於或等於 %{maxValue}",rangeCount:"%{fieldLabel} 必須有 %{minCount} 到 %{maxCount} 個項目。",rangeCountExact:"%{fieldLabel} 必須正好有 %{count} 個項目。",rangeMin:"%{fieldLabel} 必須至少有 %{minCount} 個項目。",rangeMax:"%{fieldLabel} 最多只能有 %{maxCount} 個項目。",invalidPath:"'%{path}' 不是有效的路徑",pathExists:"路徑 '%{path}' 已經存在"},i18n:{writingInLocale:"以 %{locale} 書寫"}},editor:{onLeavePage:"您確定要離開這頁嗎?",onUpdatingWithUnsavedChanges:"您有未儲存的變更,在更新狀態前請先進行儲存。",onPublishingNotReady:"在發布前,請先將狀態設定為:預備發布。",onPublishingWithUnsavedChanges:"您有未儲存的變更,在發布前請先進行儲存。",onPublishing:"你確定要發表此內容嗎?",onUnpublishing:"你確定要取消發表此內容嗎?",onDeleteWithUnsavedChanges:"你確定要刪除這篇已發布的內容以及你尚未儲存的變更?",onDeletePublishedEntry:"你確定要刪除這篇已發布的內容?",onDeleteUnpublishedChangesWithUnsavedChanges:"這將會刪除此內容所有未發布的變更,以及未儲存的變更。你確定還是要刪除?",onDeleteUnpublishedChanges:"此內容所有未發布的變更都將會被刪除。你確定還是要刪除?",loadingEntry:"載入內容中...",confirmLoadBackup:"此內容的本地備份已經還原,你想要使用嗎?"},editorToolbar:{publishing:"發布中...",publish:"發布",published:"已發布",unpublish:"取消發布",duplicate:"建立新內容",unpublishing:"取消發布中...",publishAndCreateNew:"發布並建立內容",publishAndDuplicate:"發布並複製內容",deleteUnpublishedChanges:"刪除未發布的變更",deleteUnpublishedEntry:"刪除未發布的內容",deletePublishedEntry:"刪除已發布的內容",deleteEntry:"刪除內容",saving:"儲存中...",save:"儲存",deleting:"刪除中...",updating:"更新中...",status:"狀態: %{status}",backCollection:"在集合 %{collectionLabel} 新增內容",unsavedChanges:"未儲存變更",changesSaved:"已儲存變更",draft:"草稿",inReview:"正在審核",ready:"預備發布",publishNow:"立即發布",deployPreviewPendingButtonLabel:"點擊來進行預覽",deployPreviewButtonLabel:"進行預覽",deployButtonLabel:"觀看已發布的內容"},editorWidgets:{markdown:{bold:"粗體",italic:"斜體",code:"程式碼",link:"連結",linkPrompt:"輸入連結網址",headings:"標題",quote:"引言",bulletedList:"項目符號清單",numberedList:"編號清單",addComponent:"加入元件",richText:"Rich Text",markdown:"Markdown"},image:{choose:"選擇一張圖片",chooseDifferent:"選擇其他圖片",remove:"刪除圖片"},file:{choose:"選擇一個檔案",chooseDifferent:"選擇其他檔案",remove:"刪除檔案"},unknownControl:{noControl:"無法控制元件: '%{widget}'."},unknownPreview:{noPreview:"無法預覽元件: '%{widget}'."},headingOptions:{headingOne:"標題 1",headingTwo:"標題 2",headingThree:"標題 3",headingFour:"標題 4",headingFive:"標題 5",headingSix:"標題 6"},datetime:{now:"現在"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿"},mediaLibrary:{onDelete:"你確定要刪除已選擇的媒體嗎?",fileTooLarge:"檔案太大。\n已設定不允許大於 %{size} kB 的檔案。"},mediaLibraryModal:{loading:"載入中...",noResults:"沒有結果",noAssetsFound:"沒有發現媒體資產。",noImagesFound:"沒有發現影像。",private:"私人",images:"影像",mediaAssets:"媒體資產",search:"搜尋中...",uploading:"上傳中...",upload:"上傳新內容",download:"下載",deleting:"刪除中...",deleteSelected:"刪除已選擇的項目",chooseSelected:"選擇已選擇的項目"}},ui:{default:{goBackToSite:"回到網站"},errorBoundary:{title:"錯誤",details:"發生錯誤!請 ",reportIt:"回報錯誤",detailsHeading:"細節",privacyWarning:"建立 issue並加上錯誤訊息及除錯資訊。\n請確認資訊正確敏感資料也已經去除。",recoveredEntry:{heading:"已恢復的內容",warning:"在你離開本頁前,請將此處的內容複製貼上到其他地方來進行備份!",copyButtonLabel:"複製到剪貼簿"}},settingsDropdown:{logOut:"登出"},toast:{onFailToLoadEntries:"無法載入內容: %{details}",onFailToLoadDeployPreview:"無法預覽內容: %{details}",onFailToPersist:"無法暫存內容: %{details}",onFailToDelete:"無法刪除內容: %{details}",onFailToUpdateStatus:"無法更新狀態: %{details}",missingRequiredField:"糟了!你漏填了一個必須填入的欄位,在儲存前請先填完所有內容",entrySaved:"已儲存內容",entryPublished:"已發布內容",entryUnpublished:"已取消發布內容",onFailToPublishEntry:"無法發布: %{details}",onFailToUnpublishEntry:"無法取消發布: %{details}",entryUpdated:"內容狀態已更新",onDeleteUnpublishedChanges:"已刪除未發布的變更",onFailToAuth:"%{details}",onLoggedOut:"你已經登出,請備份任何資料然後重新登入",onBackendDown:"後端服務發生中斷。看 %{details} 取得更多資訊"}},workflow:{workflow:{loading:"正在載入編輯流程的內容",workflowHeading:"編輯作業流程",newPost:"建立新的內容",description:"%{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。 |||| %{smart_count} 篇內容正在等待審核, %{readyCount} 篇已經準備進行發布。",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"刪除變更",deleteNewEntry:"刪除新內容",publishChanges:"發布變更",publishNewEntry:"發布新內容"},workflowList:{onDeleteEntry:"你確定要刪除這個項目嗎?",onPublishingNotReadyEntry:"只有狀態為 預備發布 的內容可以被發布,請將本內容的狀態設定為 預備發布 來進行發布前的準備",onPublishEntry:"你確定要發表這篇內容嗎?",draftHeader:"草稿",inReviewHeader:"正在預覽",readyHeader:"準備完成",currentEntries:"%{smart_count} 篇內容 |||| %{smart_count} 篇內容"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"로그인",loggingIn:"로그인 중...",loginWithNetlifyIdentity:"Netlify Identity 로 로그인",loginWithBitbucket:"Bitbucket 으로 로그인",loginWithGitHub:"GitHub 로 로그인",loginWithGitLab:"GitLab 으로 로그인",errors:{email:"반드시 이메일을 입력해 주세요.",password:"암호를 입력해 주세요.",identitySettings:"설정에 접근할 수 없습니다. git-gateway 백엔드 사용시 Identity service와 Git Gateway를 활성화 해야 합니다."}},app:{header:{content:"콘텐츠",workflow:"워크플로우",media:"미디어",quickAdd:"빠른 추가"},app:{errorHeader:"CMS 구성을 불러오는 중 오류가 발생했습니다.",configErrors:"구성 오류",checkConfigYml:"config.yml 파일을 확인하세요.",loadingConfig:"구성 불러오는 중...",waitingBackend:"백엔드 기다리는 중..."},notFoundPage:{header:"찾을 수 없음"}},collection:{sidebar:{collections:"컬렉션",allCollections:"모든 컬렉션",searchAll:"모든 컬렉션에서 검색",searchIn:"다음 컬렉션에서 검색"},collectionTop:{sortBy:"정렬 기준",viewAs:"다음으로 보기",newButton:"새 %{collectionLabel} 항목",ascending:"오름차순",descending:"내림차순",searchResults:'"%{searchTerm}"에 대한 검색결과',searchResultsInCollection:'%{collection} 컬랙션에서 "%{searchTerm}"에 대한 검색결과',filterBy:"필터 기준"},entries:{loadingEntries:"항목 불러오는 중...",cachingEntries:"항목 캐시 중...",longerLoading:"몇 분 정도 걸릴 수 있습니다.",noEntries:"항목 없음"},defaultFields:{author:{label:"저자"},updatedOn:{label:"업데이트 시각"}}},editor:{editorControl:{field:{optional:"선택사항"}},editorControlPane:{widget:{required:"%{fieldLabel} 은(는) 필수입니다.",regexPattern:"%{fieldLabel} 이(가) %{pattern} 패턴과 일치하지 않습니다.",processing:"%{fieldLabel} 은(는) 처리중 입니다.",range:"%{fieldLabel} 은(는) 반드시 %{minValue} 에서 %{maxValue} 사이여야 합니다.",min:"%{fieldLabel} 은(는) 적어도 %{minValue} 이상 이여야 합니다.",max:"%{fieldLabel} 은(는) 최대 %{maxValue} 여야 합니다.",rangeCount:"%{fieldLabel} 개수는 %{minCount} 개 에서 %{maxCount} 개 사이여야 합니다.",rangeCountExact:"%{fieldLabel} 개수는 정확히 %{count} 개 여야 합니다.",rangeMin:"%{fieldLabel} 개수는 적어도 %{minCount} 개 이상 이여야 합니다.",rangeMax:"%{fieldLabel} 개수는 최대 %{maxCount} 개 여야 합니다.",invalidPath:"'%{path}' 은(는) 올바른 경로가 아닙니다.",pathExists:"'%{path}' 경로가 이미 존재합니다."}},editor:{onLeavePage:"이 페이지를 떠나시겠습니까?",onUpdatingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다. 상태 업데이트 전 먼저 저장하세요.",onPublishingNotReady:'게시 하기 앞서 상태를 "준비됨" 으로 업데이트 하세요.',onPublishingWithUnsavedChanges:"저장하지 않은 변경사항이 있습니다, 게시하기 전 먼저 저장하세요.",onPublishing:"이 항목을 게시하시곘습니까?",onUnpublishing:"이 항목을 게시 철회 하시겠습니까?",onDeleteWithUnsavedChanges:"현재 세션에서의 저장되지 않은 변경사항과 이 게시된 항목을 삭제하시겠습니까?",onDeletePublishedEntry:"이 게시된 항목을 삭제하시겠습니까?",onDeleteUnpublishedChangesWithUnsavedChanges:"이 항목의 게시되지 않은 모든 변경사항과 현재 세션의 저장되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",onDeleteUnpublishedChanges:"이 항목에 대해 게시되지 않은 변경사항이 삭제됩니다. 정말로 삭제하시겠습니까?",loadingEntry:"항목 불러오는 중...",confirmLoadBackup:"이 항목에 대한 로컬 백업이 복구되었습니다, 복구된 것으로 사용하시겠습니까?"},editorToolbar:{publishing:"게시 중...",publish:"게시",published:"게시됨",unpublish:"게시 철회",duplicate:"복제",unpublishing:"게시 철회 중...",publishAndCreateNew:"게시하고 새로 만들기",publishAndDuplicate:"게시하고 복제",deleteUnpublishedChanges:"게시 안된 변경사항 삭제",deleteUnpublishedEntry:"게시 안된 항목 삭제",deletePublishedEntry:"게시된 항목 삭제",deleteEntry:"항목 삭제",saving:"저장 중...",save:"저장",deleting:"삭제 중...",updating:"업데이트 중...",status:"상태: %{status}",backCollection:"%{collectionLabel} 컬랙션에 작성하는 중",unsavedChanges:"변경사항 저장되지 않음",changesSaved:"변경사항 저장됨",draft:"초안",inReview:"검토중",ready:"준비됨",publishNow:"지금 게시",deployPreviewPendingButtonLabel:"미리보기 확인",deployPreviewButtonLabel:"미리보기 보기",deployButtonLabel:"라이브 보기"},editorWidgets:{markdown:{richText:"리치 텍스트",markdown:"마크다운"},image:{choose:"이미지 선택",chooseDifferent:"다른 이미지 선택",remove:"이미지 삭제"},file:{choose:"파일 선택",chooseDifferent:"다른 파일 선택",remove:"파일 삭제"},unknownControl:{noControl:"'%{widget}' 위젝에 대한 컨트롤이 없습니다."},unknownPreview:{noPreview:"'%{widget}' 위젯에 대한 미리보기가 없습니다."},headingOptions:{headingOne:"제목 1",headingTwo:"제목 2",headingThree:"제목 3",headingFour:"제목 4",headingFive:"제목 5",headingSix:"제목 6"},datetime:{now:"현재시각"}}},mediaLibrary:{mediaLibraryCard:{draft:"초안"},mediaLibrary:{onDelete:"선택하신 미디어를 삭제하시겠습니까?",fileTooLarge:"파일이 너무 큽니다.\n%{size} kB 보다 큰 파일을 허용하지 않도록 구성되어 있습니다."},mediaLibraryModal:{loading:"불러오는 중...",noResults:"일치 항목 없음.",noAssetsFound:"발견된 에셋 없음.",noImagesFound:"발견된 이미지 없음.",private:"개인 ",images:"이미지",mediaAssets:"미디어 에셋",search:"검색...",uploading:"업로드 중...",upload:"업로드",download:"다운로드",deleting:"삭제 중...",deleteSelected:"선택항목 삭제",chooseSelected:"선택한 것으로 결정"}},ui:{default:{goBackToSite:"사이트로 돌아가기"},errorBoundary:{title:"오류",details:"오류가 발생했습니다.",reportIt:"GitHub에서 이슈를 열어 보고해 주세요.",detailsHeading:"자세한 내용",privacyWarning:"이슈를 열면 사전에 오류 메시지와 디버깅 데이터로 채워집니다.\n정보가 올바른지 확인하시고 민감한 정보가 있다면 지워주세요.",recoveredEntry:{heading:"복구된 문서",warning:"다른 곳으로 가시기 전에 이 내용을 꼭 복사해두세요!",copyButtonLabel:"클립보드로 복사"}},settingsDropdown:{logOut:"로그아웃"},toast:{onFailToLoadEntries:"항목 불러오기 실패: %{details}",onFailToLoadDeployPreview:"미리보기 불러오기 실패: %{details}",onFailToPersist:"항목 저장 실패: %{details}",onFailToDelete:"항목 삭제 실패: %{details}",onFailToUpdateStatus:"상태 업데이트 실패: %{details}",missingRequiredField:"이런! 필수 필드를 놓치셨습니다. 저장하기 전에 먼저 채우세요.",entrySaved:"항목 저장됨",entryPublished:"항목 게시됨",entryUnpublished:"항목 게시 철회됨",onFailToPublishEntry:"게시 실패: %{details}",onFailToUnpublishEntry:"항목 게시 철회 실해: %{details}",entryUpdated:"항목 상태 업데이트됨",onDeleteUnpublishedChanges:"게시되지 않은 변경사항 삭제됨",onFailToAuth:"%{details}",onLoggedOut:"로그아웃 하셨습니다, 데티어를 백업하시고 다시 로그인 하세요.",onBackendDown:"백엔드 서비스가 장애를 겪고 있습니다. 자세한 사항은 %{details} 을(를) 참고하세요."}},workflow:{workflow:{loading:"편집 워크플로우의 항목을 불러오는 중",workflowHeading:"편집 워크플로우",newPost:"새 게시물",description:"%{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. |||| %{smart_count}개 항목 검토 대기중, %{readyCount}개 항목 게시 준비 완료됨. ",dateFormat:"M월 D일"},workflowCard:{lastChange:"%{date} by %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"by %{author}",deleteChanges:"변경사항 삭제",deleteNewEntry:"새 항목 삭제",publishChanges:"변경사항 게시",publishNewEntry:"새 항목 게시"},workflowList:{onDeleteEntry:"Are you sure you want to delete this entry?",onPublishingNotReadyEntry:'"준비됨" 상태의 항목만 게시할 수 있습니다. 게시를 활성화 하려면 카드를 "준비됨" 열에 끌어 놓으세요.',onPublishEntry:"이 항목을 게시하시곘습니까?",draftHeader:"초안",inReviewHeader:"검토 진행중",readyHeader:"준비됨",currentEntries:"%{smart_count}개 항목 |||| %{smart_count}개 항목"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Prijava",loggingIn:"Prijava u tijeku...",loginWithNetlifyIdentity:"Prijava sa Netlify računom",loginWithAzure:"Prijava za Azure računom",loginWithBitbucket:"Prijava sa Bitbucket računom",loginWithGitHub:"Prijava sa GitHub računom",loginWithGitLab:"Prijava sa GitLab računom",errors:{email:"Unesite email.",password:"Molimo unisite lozinku.",identitySettings:'Nemoguće pristupiti postavkama identita. Kod korištenja git-gateway backenda morate uključiti "Identity service" te "Git Gateway"'}},app:{header:{content:"Sadržaj",workflow:"Tijek rada",media:"Mediji",quickAdd:"Dodaj"},app:{errorHeader:"Greška pri učitavanju CMS konfiguracije",configErrors:"Greška u konfiguraciji",checkConfigYml:"Provjeri config.yml datoteku.",loadingConfig:"Učitavanje konfiguracije...",waitingBackend:"Čekanje na backend..."},notFoundPage:{header:"Stranica nije pronađena"}},collection:{sidebar:{collections:"Zbirke",allCollections:"Sve zbirke",searchAll:"Pretraži sve",searchIn:"Pretraži u"},collectionTop:{sortBy:"Sortiraj",viewAs:"Pogledaj kao",newButton:"Nova %{collectionLabel}",ascending:"Uzlazno",descending:"Silzano",searchResults:'Rezulatati pretraživanja za "%{searchTerm}"',searchResultsInCollection:'Rezulatati pretraživanja za "%{searchTerm}" u %{collection}',filterBy:"Filtriraj po",groupBy:"Grupiraj po"},entries:{loadingEntries:"Učitavanje unosa...",cachingEntries:"Predmemoriranje unosa...",longerLoading:"Ovo bi moglo potrajati par minuta",noEntries:"Nema unosa"},groups:{other:"Ostalo",negateLabel:"Nije %{label}"},defaultFields:{author:{label:"Autor"},updatedOn:{label:"Ažurirano na"}}},editor:{editorControl:{field:{optional:"opcionalno"}},editorControlPane:{widget:{required:"%{fieldLabel} je obvezan.",regexPattern:"%{fieldLabel} se ne podudara sa uzorkom: %{pattern}.",processing:"%{fieldLabel} se procesira.",range:"%{fieldLabel} mora biti između %{minValue} i %{maxValue}.",min:"%{fieldLabel} mora biti najmanje %{minValue}.",max:"%{fieldLabel} mora biti %{maxValue} ili manje.",rangeCount:"%{fieldLabel} mora imati između %{minCount} i %{maxCount} predmeta.",rangeCountExact:"%{fieldLabel} mora imati točno %{count} predmeta.",rangeMin:"%{fieldLabel} mora imati najmanje %{minCount} predmet(a).",rangeMax:"%{fieldLabel} mora imate %{maxCount} ili manje predmeta.",invalidPath:"'%{path}' nije valjana putanja",pathExists:"Putanja '%{path}' već postoji"},i18n:{writingInLocale:"Pisanje na %{locale}"}},editor:{onLeavePage:"Jeste li sigurni da želite napustiti stranicu?",onUpdatingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije ažuriranja statusa.",onPublishingNotReady:'Molimo ažurirajte status na "Spremno" prije objavljivanja.',onPublishingWithUnsavedChanges:"Imate nespremljene promjene, molimo spremite prije objavljivanja.",onPublishing:"Jeste li sigurni da želite objaviti ovaj unos?",onUnpublishing:"Jeste li sigurni da želite maknuti objavu za ovaj unos?",onDeleteWithUnsavedChanges:"Jeste li sigurni da želite obrisati objavljeni unos, te nespremljene promjene u trenutnoj sesiji?",onDeletePublishedEntry:"Jeste li sigurni da želite obrisati ovaj objavljeni unos?",onDeleteUnpublishedChangesWithUnsavedChanges:"Obrisat ćete sve neobjavljene promjene na ovom unosu, te sve nespremljene promjene u trenutnoj sesiji. Želite li i dalje obrisati?",onDeleteUnpublishedChanges:"Sve nespremljene promjene na ovom unosu će biti obrisane. Želite li i dalje obrisati?",loadingEntry:"Učitavanje unosa...",confirmLoadBackup:"Lokalna kopija je dohvaćena za ovaj unos, želite li ju koristiti?"},editorToolbar:{publishing:"Objavljivanje...",publish:"Objavi",published:"Objavljeno",unpublish:"Obriši iz objava",duplicate:"Dupliciraj",unpublishing:"Brisanje iz objava...",publishAndCreateNew:"Objavi i kreiraj novo",publishAndDuplicate:"Objavi i dupliciraj",deleteUnpublishedChanges:"Obriši neobjavljene promjene",deleteUnpublishedEntry:"Obriši neobjavljene unose",deletePublishedEntry:"Obriši objavljeni unos",deleteEntry:"Obriši unos",saving:"Spremanje...",save:"Spremi",deleting:"Brisanje...",updating:"Ažuriranje...",status:"Status: %{status}",backCollection:"Pisanje u %{collectionLabel} zbirci",unsavedChanges:"Nespremljene promjene",changesSaved:"Promjene spremljene",draft:"Skica",inReview:"Osvrt",ready:"Spremno",publishNow:"Objavi sad",deployPreviewPendingButtonLabel:"Provjeri za osvrt",deployPreviewButtonLabel:"Pogledaj osvrt",deployButtonLabel:"Pogledaj na produkciji"},editorWidgets:{markdown:{bold:"Podebljano",italic:"Kurziv",code:"Kod",link:"Link",linkPrompt:"Unesi URL linka",headings:"Naslovi",quote:"Citat",bulletedList:"Nabrajan popis",numberedList:"Numeriran popis",addComponent:"Dodaj komponentu",richText:"Bogati tekst",markdown:"Markdown"},image:{choose:"Odaberi sliku",chooseDifferent:"Odaberi drugu sliku",remove:"Izbriši sliku"},file:{choose:"Odaberi datoteku",chooseDifferent:"Odaberi drugu datoteku",remove:"Obriši datoteku"},unknownControl:{noControl:"Kontrola nije pronađena za widget '%{widget}'."},unknownPreview:{noPreview:"Prikaz nije pronađen za widget '%{widget}'."},headingOptions:{headingOne:"Naslov 1",headingTwo:"Naslov 2",headingThree:"Naslov 3",headingFour:"Naslov 4",headingFive:"Naslov 5",headingSix:"Naslov 6"},datetime:{now:"Sad"}}},mediaLibrary:{mediaLibraryCard:{draft:"Skica"},mediaLibrary:{onDelete:"Jeste li sigurni da želite obrisati odabrane medijske datoteke?",fileTooLarge:"Datoteka prevelika.\nKonfigurirano da ne podržava datoteke veće od %{size} kB."},mediaLibraryModal:{loading:"Učitavanje...",noResults:"Nema rezultata.",noAssetsFound:"Sredstva nisu pronađena.",noImagesFound:"Slike nisu pronađene.",private:"Privatno ",images:"Slike",mediaAssets:"Medijska sredstva",search:"Pretraži...",uploading:"Učitavanje...",upload:"Učitaj",download:"Preuzmi",deleting:"Brisanje...",deleteSelected:"Obriši označeno",chooseSelected:"Odaberi označeno"}},ui:{default:{goBackToSite:"Povratak na stranicu"},errorBoundary:{title:"Greška",details:"Dogodila se greška - molimo ",reportIt:"otvori issue (problem) na GitHubu.",detailsHeading:"Detalji",privacyWarning:"Otvaranje issue-a (problema) populira ga sa porukom od greške i debug podacima.\nProvjerite jesu li infomacije točne i obrišite osjetljive podatke ako postoje.",recoveredEntry:{heading:"Obnovljen dokument",warning:"Molimo kopiraj/zalijepi ovo negdje prije odlaska dalje!",copyButtonLabel:"Kopiraj u međuspremnik"}},settingsDropdown:{logOut:"Odjava"},toast:{onFailToLoadEntries:"Neuspjelo dohvaćanje unosa: %{details}",onFailToLoadDeployPreview:"Neuspjelo dohvaćanje pregleda: %{details}",onFailToPersist:"Neuspjelo spremanje unosa: %{details}",onFailToDelete:"Neuspjelo brisanje unosa: %{details}",onFailToUpdateStatus:"Neuspjelo ažuriranje statusa: %{details}",missingRequiredField:"Uups, preskočili ste obvezno polje. Molimo popunite prije spremanja.",entrySaved:"Unos spremljen",entryPublished:"Unos objavljen",entryUnpublished:"Unos obrisan",onFailToPublishEntry:"Neuspjelo objavljivanje unosa: %{details}",onFailToUnpublishEntry:"Neuspjelo brisanje unosa: %{details}",entryUpdated:"Status unosa ažuriran",onDeleteUnpublishedChanges:"Otkrivene neobjavljene objave",onFailToAuth:"%{details}",onLoggedOut:"Odjavljeni ste, molimo spremite sve podatke i prijavite se ponovno",onBackendDown:"Backend servis ima prekid rada. Pogledaj %{details} za više informacija"}},workflow:{workflow:{loading:"Učitavanje unosa uredničkog tijeka rada",workflowHeading:"Urednički tijek rada",newPost:"Nova objava",description:"%{smart_count} unos čeka pregled, %{readyCount} unos spreman za produkciju. |||| %{smart_count} unosa čeka pregled, %{readyCount} unosa spremno za produkciju. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} od strane %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"od strane %{author}",deleteChanges:"Obriši promjene",deleteNewEntry:"Obriši novi unos",publishChanges:"Objavi promjene",publishNewEntry:"Objavi novi unos"},workflowList:{onDeleteEntry:"Jeste li sigurni da želite obrisati unos?",onPublishingNotReadyEntry:'Samo promjene sa statusom "Spremno" mogu biti objavljene. Molimo povucite karticu u kolumnu "Spremno" prije objavljivanja.',onPublishEntry:"Jeste li sigurni da želite objaviti unos?",draftHeader:"Skice",inReviewHeader:"U osvrtu",readyHeader:"Spremno",currentEntries:"%{smart_count} unos |||| %{smart_count} unosa"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"Вход",loggingIn:"Влизане...",loginWithNetlifyIdentity:"Вход с Netlify Identity",loginWithAzure:"Вход с Azure",loginWithBitbucket:"Вход с Bitbucket",loginWithGitHub:"Вход с GitHub",loginWithGitLab:"Вход с GitLab",errors:{email:"Въведете вашия имейл.",password:"Въведете паролата.",identitySettings:"Няма достъп до настройките. Ако използвате git-gateway, не забравяйте да активирате услугата Identity и Git Gateway."}},app:{header:{content:"Съдържание",workflow:"Работен процес",media:"Мултимедийни файлове",quickAdd:"Бързо добавяне"},app:{errorHeader:"Грешка при зареждането на конфигурацията на CMS",configErrors:"Грешки в конфигурацията",checkConfigYml:"Проверете вашия файл config.yml.",loadingConfig:"Зареждане на конфигурация ...",waitingBackend:"В очакване на отговор от бекенда ..."},notFoundPage:{header:"Не е намерен"}},collection:{sidebar:{collections:"Колекции",allCollections:"Всички колекции",searchAll:"Търсете навсякъде",searchIn:"Търсене в"},collectionTop:{sortBy:"Сортирай по",viewAs:"Виж като",newButton:"Създай %{collectionLabel}",ascending:"Възходящ",descending:"Низходящ",searchResults:'Ресултати от търсенето за "%{searchTerm}"',searchResultsInCollection:'Ресултати от търсенето за "%{searchTerm}" в %{collection}',filterBy:"Филтрирай по",groupBy:"Групирай по"},entries:{loadingEntries:"Зареждане на записи...",cachingEntries:"Кеширане на записи...",longerLoading:"Това може да отнеме няколко минути",noEntries:"Няма записи"},groups:{other:"Други",negateLabel:"Не %{label}"},defaultFields:{author:{label:"Автор"},updatedOn:{label:"Обновено"}}},editor:{editorControl:{field:{optional:"незадължителен"}},editorControlPane:{widget:{required:"%{fieldLabel} е задължително.",regexPattern:"%{fieldLabel} не съответства на модела: %{pattern}.",processing:"%{fieldLabel} се обработва.",min:"%{fieldLabel} трябва да бъде поне %{minValue}.",range:"%{fieldLabel} трябва да бъде между %{minValue} и %{maxValue}.",max:"%{fieldLabel} трябва да бъде %{maxValue} или по-малко.",rangeCount:"%{fieldLabel} трябва да има между %{minCount} и %{maxCount} елемент(и).",rangeCountExact:"%{fieldLabel} трябва да има точно %{count} елемент(и).",minCount:"%{fieldLabel} трябва да бъде поне %{minCount} елемент(и).",maxCount:"%{fieldLabel} трябва да бъде %{maxCount} или по-малко елемент(и).",invalidPath:"'%{path}' не е валиден път",pathExists:"Пътят '%{path}' вече съществува"},i18n:{writingInLocale:"Писане на %{locale}"}},editor:{onLeavePage:"Наистина ли искате да напуснете тази страница?",onUpdatingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди актуализиране на състоянието.",onPublishingNotReady:"Моля, актуализирайте състоянието на „Готово“, преди да публикувате",onPublishingWithUnsavedChanges:"Имате незапазени промени, моля, запазете преди публикуване.",onPublishing:"Наистина ли искате да публикувате този запис?",onUnpublishing:"Наистина ли искате да прекратите публикуването на този запис?",onDeleteWithUnsavedChanges:"Наистина ли искате да изтриете този публикуван запис, както и незаписаните промени от текущата сесия?",onDeletePublishedEntry:"Наистина ли искате да изтриете този публикуван запис?",onDeleteUnpublishedChangesWithUnsavedChanges:"Това ще изтрие всички непубликувани промени в този запис, както и незаписаните ви промени от текущата сесия. Все още ли искате да изтриете?",onDeleteUnpublishedChanges:"Всички непубликувани промени в този запис ще бъдат изтрити. Все още ли искате да изтриете?",loadingEntry:"Зареждане на запис...",confirmLoadBackup:"За този запис беше възстановен локален архив, бихте ли искали да го използвате?"},editorInterface:{toggleI18n:"Превключване i18n",togglePreview:"Превключване на визуализация",toggleScrollSync:"Синхронизирай превъртане"},editorToolbar:{publishing:"Публикуване...",publish:"Публикувай",published:"Публикуван",unpublish:"Непубликувай",duplicate:"Дублирай",unpublishing:"Непубликуване...",publishAndCreateNew:"Публикувай и създай нов",publishAndDuplicate:"Публикувай и дублирай",deleteUnpublishedChanges:"Изтриване на непубликувани промени",deleteUnpublishedEntry:"Изтрий непубликувани записи",deletePublishedEntry:"Изтрий публикувани записи",deleteEntry:"Изтрий запис",saving:"Запазване...",save:"Запази",deleting:"Изтриване...",updating:"Актуализиране...",status:"Cъстояние: %{status}",backCollection:"Записване в %{collectionLabel} колекция",unsavedChanges:"Незапазени Промени",changesSaved:"Запазени промени",draft:"Чернова",inReview:"В ревю",ready:"Готово",publishNow:"Публикувай сега",deployPreviewPendingButtonLabel:"Проверете визуализацията",deployPreviewButtonLabel:"Визуализация",deployButtonLabel:"Изглед"},editorWidgets:{markdown:{bold:"Удебелен",italic:"Курсив",code:"Код",link:"Връзка",linkPrompt:"Моля, въведете URL на връзката",headings:"Заглавия",quote:"Цитат",bulletedList:"Маркиран Списък",numberedList:"Номериран Списък",addComponent:"Добави Компонент",richText:"Форматиране на текст",markdown:"Markdown"},image:{choose:"Избери изображение",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на изображението",chooseDifferent:"Избери различно изображение",remove:"Премахни изображение"},file:{choose:"Избери файл file",chooseUrl:"Вмъкване от URL",replaceUrl:"Замяна с URL",promptUrl:"Въведете URL адреса на файла",chooseDifferent:"Избери различен файл",remove:"Премахни файл"},unknownControl:{noControl:"Няма контрол за приспособлението '%{widget}'."},unknownPreview:{noPreview:"Няма визуализация за приспособлението '%{widget}'."},headingOptions:{headingOne:"Heading 1",headingTwo:"Heading 2",headingThree:"Heading 3",headingFour:"Heading 4",headingFive:"Heading 5",headingSix:"Heading 6"},datetime:{now:"Сега"}}},mediaLibrary:{mediaLibraryCard:{draft:"Чернова",copy:"Копирай",copyUrl:"Копирай URL",copyPath:"Копитай път",copyName:"Копитай име",copied:"Копирано"},mediaLibrary:{onDelete:"Наистина ли искате да изтриете избрания медиен файл?",fileTooLarge:"Файлът е твърде голям.\nНастройките не позволяват запазване на файлове по-големи от %{size} kB."},mediaLibraryModal:{loading:"Зареждане...",noResults:"Няма резултати.",noAssetsFound:"Няма намерени ресурси.",noImagesFound:"Няма намерени изображения.",private:"Частен ",images:"Изображения",mediaAssets:"Медийни ресурси",search:"Търсене...",uploading:"Качване...",upload:"Качи",download:"Изтегли",deleting:"Изтриване...",deleteSelected:"Изтрай избрани",chooseSelected:"Избери избрани"}},ui:{default:{goBackToSite:"Обратно към сайта"},errorBoundary:{title:"Грешка",details:"Възникна грешка - моля ",reportIt:"докладвайте в GitHub.",detailsHeading:"Детайли",privacyWarning:"При отваряне на билет той автоматично се попълва предварително със съобщение за грешка и информация за отстраняване на грешки.\nМоля, проверете дали данните са верни и не съдържат поверителна информация.",recoveredEntry:{heading:"Възстановен документ",warning:"Моля, копирайте това съобщение някъде, преди да напуснете страницата!",copyButtonLabel:"Копиране в клипборда"}},settingsDropdown:{logOut:"Изход"},toast:{onFailToLoadEntries:"Неуспешно зареждане на записа: %{details}",onFailToLoadDeployPreview:"Неуспешно зареждане на визуализация: %{details}",onFailToPersist:"Неуспешно запазване на записа: %{details}",onFailToDelete:"Неуспешно изтриване на записа: %{details}",onFailToUpdateStatus:"Неуспешно актуализиране на състоянието: %{details}",missingRequiredField:"Извинете, пропуснахте задължително поле. Моля, попълнете преди запазване.",entrySaved:"Записът е запазен",entryPublished:"Записът е публикуван",entryUnpublished:"Записът е непубликуван",onFailToPublishEntry:"Неуспешно публикуване на запис: %{details}",onFailToUnpublishEntry:"Неуспешно премахване на публикацията на записа: %{details}",entryUpdated:"Статусът на записа е актуализиран",onDeleteUnpublishedChanges:"Непубликуваните промени са изтрити",onFailToAuth:"%{details}",onLoggedOut:"Излезли сте. Моля, запазете всички данни и влезте отново",onBackendDown:"Има прекъсване в работата на бекенда. Виж детайлите %{details}"}},workflow:{workflow:{loading:"Зареждане на редакционни записи",workflowHeading:"Редакционен работен процес",newPost:"Нова публикация",description:"Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. |||| Броят на записите, които очакват проверка -% {smart_count}, готови за публикуване -% {readyCount}. ",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date}, %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"%{author}",deleteChanges:"Изтриване на промените",deleteNewEntry:"Изтриване на нов запис",pubChanges:"Публикуване на промени",objavNewEntry:"Публикуване на нов запис"},workflowList:{onDeleteEntry:"Наистина ли искате да изтриете този запис?",onPublishingNotReadyEntry:'Могат да се публикуват само елементи със статус "Готов". Плъзенете картата в колоната "Готов" за да активирате публикуването.',onPublishEntry:"Наистина ли искате да публикувате този запис?",draftHeader:"Чернови",inReviewHeader:"В Ревю",readyHeader:"Готов",currentEntries:"%{smart_count} запис |||| %{smart_count} записи"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"登录",loggingIn:"正在登录...",loginWithNetlifyIdentity:"使用 Netlify Identity 登录",loginWithAzure:"使用 Azure 登录",loginWithBitbucket:"使用 Bitbucket 登录",loginWithGitHub:"使用 GitHub 登录",loginWithGitLab:"使用 GitLab 登录",errors:{email:"请输入电子邮箱",password:"请输入密码",identitySettings:"无法连接账户认证系统(如果正在使用 git-gateway 作为 backend请确保已经开启 Netlify Identity 服务以及 Git Gateway"}},app:{header:{content:"内容",workflow:"工作流",media:"媒体",quickAdd:"快速新建"},app:{errorHeader:"加载 CMS 配置时发生错误",configErrors:"配置错误",checkConfigYml:"请检查 config.yml 文件是否配置正确",loadingConfig:"正在加载配置...",waitingBackend:"等待 backend 数据..."},notFoundPage:{header:"页面不存在"}},collection:{sidebar:{collections:"集合",allCollections:"所有集合",searchAll:"查找所有...",searchIn:"查找"},collectionTop:{sortBy:"排序",viewAs:"查看",newButton:"新建%{collectionLabel}",ascending:"升序",descending:"降序",searchResults:"有关“%{searchTerm}”的搜索结果",searchResultsInCollection:"在%{collection}中有关“%{searchTerm}”的搜索结果",filterBy:"筛选",groupBy:"分组"},entries:{loadingEntries:"正在加载内容...",cachingEntries:"正在缓存内容...",longerLoading:"这可能需要花费几分钟时间",noEntries:"暂无内容"},groups:{other:"其他",negateLabel:"非%{label}"},defaultFields:{author:{label:"作者"},updatedOn:{label:"更新于"}}},editor:{editorControl:{field:{optional:"可选"}},editorControlPane:{widget:{required:"“%{fieldLabel}”是必填项",regexPattern:"“%{fieldLabel}”不满足模式%{pattern}",processing:"“%{fieldLabel}”正在处理中",range:"“%{fieldLabel}”必须位于 %{minValue} 和 %{maxValue} 之间",min:"“%{fieldLabel}”必须至少为 %{minValue}",max:"“%{fieldLabel}”必须小于等于 %{maxValue}",rangeCount:"“%{fieldLabel}”必须包含 %{minCount} 到 %{maxCount} 个项目",rangeCountExact:"“%{fieldLabel}”必须且只能包含 %{count} 个项目",minCount:"“%{fieldLabel}”必须为至少 %{minCount} 个项目",maxCount:"“%{fieldLabel}”必须为小于等于 %{maxCount} 个项目",invalidPath:"“%{path}”为无效路径",pathExists:"路径“%{path}”已经存在"},i18n:{writingInLocale:"正在使用%{locale}撰写"}},editor:{onLeavePage:"你确定要离开此页面吗?",onUpdatingWithUnsavedChanges:"你有尚未保存的修改,请在更新状态前进行保存",onPublishingNotReady:"请在发布之前将状态更新为“就绪”",onPublishingWithUnsavedChanges:"你有尚未保存的修改,请在发布前进行保存",onPublishing:"你确定要发布此内容吗?",onUnpublishing:"你确定要撤销发布此内容吗?",onDeleteWithUnsavedChanges:"你确定要删除这个已经发布的内容,以及当前尚未保存的修改吗?",onDeletePublishedEntry:"你确定要删除这个已经发布的内容吗?",onDeleteUnpublishedChangesWithUnsavedChanges:"此内容所有未被发布的修改,以及当前尚未保存的修改都将被删除,你确定吗?",onDeleteUnpublishedChanges:"此内容所有未被发布的修改都将被删除,你确定吗?",loadingEntry:"正在加载内容...",confirmLoadBackup:"发现了一个对应此内容的本地备份,你要加载它吗?"},editorInterface:{toggleI18n:"打开/关闭国际化",togglePreview:"打开/关闭预览",toggleScrollSync:"同步滚动"},editorToolbar:{publishing:"正在发布...",publish:"发布",published:"已发布",unpublish:"撤销发布",duplicate:"复制",unpublishing:"正在撤销发布...",publishAndCreateNew:"发布,然后新建内容",publishAndDuplicate:"发布,然后复制内容",deleteUnpublishedChanges:"删除未发布的修改",deleteUnpublishedEntry:"删除未发布的内容",deletePublishedEntry:"删除已发布的内容",deleteEntry:"删除内容",saving:"正在保存...",save:"保存",deleting:"正在删除...",updating:"正在更新...",status:"状态: %{status}",backCollection:"正在集合“%{collectionLabel}”中编写",unsavedChanges:"含未保存的修改",changesSaved:"修改已保存",draft:"草稿",inReview:"审核中",ready:"就绪",publishNow:"立即发布",deployPreviewPendingButtonLabel:"点击以预览",deployPreviewButtonLabel:"查看预览",deployButtonLabel:"查看发布"},editorWidgets:{markdown:{bold:"粗体",italic:"斜体",code:"代码",link:"链接",linkPrompt:"输入链接的 URL",headings:"标题",quote:"引用",bulletedList:"无序列表",numberedList:"有序列表",addComponent:"添加组件",richText:"富文本",markdown:"Markdown"},image:{choose:"选择图片",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入图片的 URL",chooseDifferent:"选择其他图片",remove:"移除图片"},file:{choose:"选择文件",chooseUrl:"从 URL 插入",replaceUrl:"用 URL 替代",promptUrl:"输入文件的 URL",chooseDifferent:"选择其他文件",remove:"移除文件"},unknownControl:{noControl:"'%{widget}'的控件不存在"},unknownPreview:{noPreview:"'%{widget}'无法预览"},headingOptions:{headingOne:"标题 1",headingTwo:"标题 2",headingThree:"标题 3",headingFour:"标题 4",headingFive:"标题 5",headingSix:"标题 6"},datetime:{now:"现在"}}},mediaLibrary:{mediaLibraryCard:{draft:"草稿",copy:"复制",copyUrl:"复制 URL",copyPath:"复制路径",copyName:"复制名称",copied:"已复制"},mediaLibrary:{onDelete:"你确定要删除此媒体项目吗?",fileTooLarge:"文件体积过大\n目前的配置中不允许文件体积超过 %{size} kB"},mediaLibraryModal:{loading:"正在加载...",noResults:"暂无结果",noAssetsFound:"未找到资源",noImagesFound:"未找到图片",private:"私有",images:"图片",mediaAssets:"媒体资源",search:"搜索...",uploading:"正在上传...",upload:"上传",download:"下载",deleting:"正在下载...",deleteSelected:"删除已选中项目",chooseSelected:"选用已选中项目"}},ui:{default:{goBackToSite:"返回主页"},errorBoundary:{title:"错误",details:"程序发生了一个错误,请",reportIt:"在 Github 上发布一个 Issue",detailsHeading:"详情",privacyWarning:"发布一个 Issue 会将错误信息和调试数据预置其中\n请确保这些信息是正确的同时移除那些敏感数据",recoveredEntry:{heading:"已恢复的文档",warning:"请在切换至其他页面之前,将它复制并粘贴到某个地方",copyButtonLabel:"复制到剪贴板"}},settingsDropdown:{logOut:"注销"},toast:{onFailToLoadEntries:"加载内容失败: %{details}",onFailToLoadDeployPreview:"加载预览失败: %{details}",onFailToPersist:"保存内容失败: %{details}",onFailToDelete:"删除内容失败: %{details}",onFailToUpdateStatus:"更新状态失败: %{details}",missingRequiredField:"你漏掉了一个必填项,请在保存之前将它填写好",entrySaved:"内容已保存",entryPublished:"内容已发布",entryUnpublished:"内容已撤销发布",onFailToPublishEntry:"发布失败: %{details}",onFailToUnpublishEntry:"撤销发布失败: %{details}",entryUpdated:"内容状态已更新",onDeleteUnpublishedChanges:"未发布的修改已删除",onFailToAuth:"%{details}",onLoggedOut:"你已注销,请先保存好数据然后再次登录",onBackendDown:"Backend 服务已中断,欲知详情请查看:%{details}"}},workflow:{workflow:{loading:"正在加载编辑工作流项目",workflowHeading:"编辑工作流",newPost:"新建帖子",description:"%{smart_count} 个待审查的内容、%{readyCount} 个已就绪的内容 |||| %{smart_count} 个待检查的内容、%{readyCount} 个已就绪的内容",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} 由 %{author} 修改",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"由 %{author} 修改",deleteChanges:"删除修改",deleteNewEntry:"删除新内容",publishChanges:"发布修改",publishNewEntry:"发布新内容"},workflowList:{onDeleteEntry:"你确定要删除此内容吗?",onPublishingNotReadyEntry:"只有状态为“就绪”的项目才能被发布。需要先将卡片拖动到“就绪”一列才能发布",onPublishEntry:"你确定要发布此内容吗?",draftHeader:"草稿",inReviewHeader:"审查中",readyHeader:"就绪",currentEntries:"%{smart_count} 个内容 |||| %{smart_count} 个内容"}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:{login:"התחברות",loggingIn:"התחברות...",loginWithNetlifyIdentity:"התחברות עם Netlify Identity",loginWithAzure:"התחברות עם Azure",loginWithBitbucket:"התחברות עם Bitbucket",loginWithGitHub:"התחברות עם GitHub",loginWithGitLab:"התחברות עם GitLab",errors:{email:"נא לא לשכוח להקליד את כתובת המייל",password:"נא להקליד את הסיסמה.",identitySettings:"הגדרות אימות הזהות אינן נגישות. כאשר משתמשים ב-git-gateway כשירות ה-backend יש לוודא ששירות אימות הזהות ו-Git Gateway הופעלו."}},app:{header:{content:"תוכן",workflow:"ניהול אייטמים לפני הפרסום",media:"מדיה",quickAdd:"הוספה מהירה"},app:{errorHeader:"אירעה שגיאה בטעינת הגדרות מערכת ניהול התוכן",configErrors:"שגיאות בהגדרות",checkConfigYml:"יש לבדוק את הקובץ config.yml.",loadingConfig:"טעינת הגדרות...",waitingBackend:"ממתין לטעינת ה-backend..."},notFoundPage:{header:"לא נמצא"}},collection:{sidebar:{collections:"קטגוריות",allCollections:"כל הקטגוריות",searchAll:"חיפוש כללי",searchIn:"חיפוש בקטגוריית"},collectionTop:{sortBy:"מיון לפי",viewAs:"תצוגה לפי",newButton:"חדש %{collectionLabel}",ascending:"בסדר עולה",descending:"בסדר יורד",searchResults:'תוצאות חיפוש עבור "%{searchTerm}"',searchResultsInCollection:'תוצאות חיפוש עבור "%{searchTerm}" ב%{collection}',filterBy:"סינון לפי",groupBy:"ארגון לפי"},entries:{loadingEntries:"טעינת אייטמים...",cachingEntries:"שמירת אייטמים בזכרון המטמון",longerLoading:"התהליך עשוי להימשך כמה דקות",noEntries:"לא נמצאו אייטמים"},groups:{other:"אחר",negateLabel:"לא %{label}"},defaultFields:{author:{label:"מאת"},updatedOn:{label:"עודכן בתאריך"}}},editor:{editorControl:{field:{optional:"רשות"}},editorControlPane:{widget:{required:"%{fieldLabel} הוא שדה חובה.",regexPattern:"%{fieldLabel} לא תואם לדפוס %{pattern}.",processing:"%{fieldLabel} מעובד.",range:"%{fieldLabel} חייב להיות בין %{minValue} לבין %{maxValue}.",min:"%{fieldLabel} חייב להיות לפחות %{minValue}.",max:"%{fieldLabel} חייב להיות %{maxValue} או פחות.",rangeCount:"%{fieldLabel} חייב לכלול בין %{minCount} לבין %{maxCount} אייטמים.",rangeCountExact:"%{fieldLabel} חייב לכלול בדיוק %{count} אייטמים.",rangeMin:"%{fieldLabel} חייב לכלול לפחות %{minCount} אייטמים",rangeMax:"%{fieldLabel} חייב לכלול %{maxCount} אייטמים לכל היותר.",invalidPath:"'%{path}' אינו URL תקין",pathExists:"'%{path}' כבר קיים"},i18n:{writingInLocale:"כתיבה בשפה ה%{locale}"}},editor:{onLeavePage:"האם ברצונך לעבור לעמוד אחר ללא שמירה?",onUpdatingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני עדכון מצב האייטם.",onPublishingNotReady:"נא לשנות את מצב האייטם ל״מוכן לפרסום״ לפני הפרסום.",onPublishingWithUnsavedChanges:"בוצעו שינויים שלא נשמרו. יש לבצע שמירה לפני הפרסום.",onPublishing:"האם ברצונך לפרסם את האייטם?",onUnpublishing:"האם ברצונך לבטל את פרסום האייטם?",onDeleteWithUnsavedChanges:"האם ברצונך למחוק את האייטם הזה לפני פרסומו, וכן את השינויים שבוצעו כעת וטרם נשמרו?",onDeletePublishedEntry:"האם ברצונך למחוק את האייטם הזה לאחר פרסומו?",onDeleteUnpublishedChangesWithUnsavedChanges:"פעולה זו תמחק את כל השינויים שבוצעו באייטם זה ולא פורסמו, וכן את השינויים שבוצעו כעת וטרם נשמרו. האם ברצונך למחוק?",onDeleteUnpublishedChanges:"כל השינויים שבוצעו באייטם זה ולא פורסמו יימחקו. האם ברצונך למחוק אותו?",loadingEntry:"טעינת אייטם...",confirmLoadBackup:"קיים עותק מקומי שמור של האייטם. האם ברצונך לטעון אותו?"},editorInterface:{toggleI18n:"החלפת שפות",togglePreview:"הפעלת תצוגה מקדימה",toggleScrollSync:"סנכרון הגלילה"},editorToolbar:{publishing:"פרסום...",publish:"פרסום",published:"פורסם",unpublish:"ביטול הפרסום",duplicate:"שכפול",unpublishing:"ביטול הפרסום...",publishAndCreateNew:"פרסום ויצירת אייטם חדש",publishAndDuplicate:"פרסום ושכפול",deleteUnpublishedChanges:"מחיקת השינויים שלא פורסמו",deleteUnpublishedEntry:"מחיקת אייטם שטרם פורסם",deletePublishedEntry:"מחיקת אייטם שפורסם",deleteEntry:"מחיקת האייטם",saving:"שמירה...",save:"שמירה",statusInfoTooltipDraft:"האייטם מוגדר כטיוטה. כדי להשלים את הפעולה ולהעביר אותו למצב ״ממתין לאישור״ יש להעביר אותו למצב ״ממתין לאישור״",statusInfoTooltipInReview:"האייטם ממתין לאישור - לא נדרשת פעולה נוספת. ניתן עדיין לבצע שינויים בעת שהאייטם ממתין לאישור.",deleting:"מחיקה...",updating:"עדכון...",status:"מצב: %{status}",backCollection:"כתיבה בקטגוריית %{collectionLabel}",unsavedChanges:"שינויים לא שמורים",changesSaved:"השינויים נשמרו",draft:"טיוטה",inReview:"ממתין לאישור",ready:"מוכן לפרסום",publishNow:"פרסום מיידי",deployPreviewPendingButtonLabel:"בדיקת תצוגה מקדימה",deployPreviewButtonLabel:"צפייה בתצוגה מקדימה",deployButtonLabel:"צפייה באתר"},editorWidgets:{markdown:{bold:"מודגש",italic:"נטוי",code:"קוד",link:"קישור",linkPrompt:"נא להקליד את הכתובת לקישור",headings:"כותרת",quote:"ציטוט",bulletedList:"רשימה לא-ממוספרת",numberedList:"רשימה ממוספרת",addComponent:"הוספת רכיב",richText:"טקסט עשיר",markdown:"Markdown"},image:{choose:"בחירת תמונה",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת תמונה מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של התמונה",chooseDifferent:"בחירת תמונה אחרת",remove:"הסרת תמונה"},file:{choose:"בחירת קובץ",chooseUrl:"הוספה מכתובת אינטרנט",replaceUrl:"החלפת קובץ מכתובת אינטרנט",promptUrl:"נא להכניס את ה-URL של הקובץ",chooseDifferent:"בחירת קובץ אחר",remove:"הסרת קובץ"},unknownControl:{noControl:"לא הוגדרו פעולות ל'%{widget}'."},unknownPreview:{noPreview:"אין תצוגה מקדימה ל'%{widget}'."},headingOptions:{headingOne:"כותרת 1",headingTwo:"כותרת 2",headingThree:"כותרת 3",headingFour:"כותרת 4",headingFive:"כותרת 5",headingSix:"כותרת 6"},datetime:{now:"עכשיו"},list:{add:"הוספת %{item}",addType:"הוספת אייטם מסוג %{item}"}}},mediaLibrary:{mediaLibraryCard:{draft:"טיוטה",copy:"העתקה",copyUrl:"העתקת ה-URL",copyPath:"העתקת הנתיב",copyName:"העתקת השם",copied:"העתקה הושלמה"},mediaLibrary:{onDelete:"האם ברצונך למחוק את פריט המדיה הזה?",fileTooLarge:"הקובץ גדול מדי.\nמוגדר לא לאפשר העלאת קבצים גדולים מ-%{size} קילובייט."},mediaLibraryModal:{loading:"טעינה...",noResults:"לא נמצאו תוצאות.",noAssetsFound:"לא נמצאו קבצים.",noImagesFound:"לא נמצאו תמונות.",private:"פרטי ",images:"תמונות",mediaAssets:"קבצי מדיה",search:"חיפוש...",uploading:"העלאה...",upload:"העלאה",download:"הורדה",deleting:"מחיקה...",deleteSelected:"למחוק את הקובץ המסומן",chooseSelected:"לבחור את הקובץ המסומן"}},ui:{default:{goBackToSite:"בחזרה לאתר"},errorBoundary:{title:"שגיאה",details:"אירעה שגיאה. נא ",reportIt:"דווחו על הבעיה ב-GitHub.",detailsHeading:"פרטים",privacyWarning:"פתיחת Issue מעתיקה את הודעת השגיאה ונתונים רלוונטיים לאיתור הבעיה (debugging).\nיש לוודא שהמידע מדויק ולמחוק נתונים אישיים כלשהם.",recoveredEntry:{heading:"מסמך משוחזר",warning:"נא להעתיק ולהדביק את זה לפני ניווט לחלון אחר!",copyButtonLabel:"העתקה"}},settingsDropdown:{logOut:"התנתקות"},toast:{onFailToLoadEntries:"טעינת האייטם %{details} נכשלה",onFailToLoadDeployPreview:"טעינת התצוגה המקדימה של האייטם %{details} נכשלה",onFailToPersist:"אחסון האייטם %{details} נכשל",onFailToDelete:"מחיקת האייטם %{details} נכשלה",onFailToUpdateStatus:"עדכון מצב האייטם %{details} נכשל",missingRequiredField:"אופס, שכחת למלא שדה חובה. נא להשלים את המידע החסר לפני השמירה",entrySaved:"האייטם נשמר",entryPublished:"האייטם פורסם",entryUnpublished:"האייטם הועבר לטיוטות",onFailToPublishEntry:"פרסום האייטם %{details} נכשל",onFailToUnpublishEntry:"ביטול פרסום האייטם %{details} נכשל",entryUpdated:"מצב האייטם עודכן",onDeleteUnpublishedChanges:"השינויים שלא פורסמו נמחקו",onFailToAuth:"%{details}",onLoggedOut:"נותקת מהמערכת. יש לגבות מידע לא שמור ולהתחבר שוב",onBackendDown:"ה-backend המוגדר אינו זמין. ראו %{details} למידע נוסף"}},workflow:{workflow:{loading:"טעינת אייטמים",workflowHeading:"ניהול אייטמים לפני הפרסום",newPost:"אייטם חדש",description:"%אייטם {smart_count} ממתין לאישור, אייטם %{readyCount} מוכן לפרסום |||| %{smart_count} אייטמים ממתינים לאישור, %{readyCount} מוכנים לפרסום",dateFormat:"MMMM D"},workflowCard:{lastChange:"%{date} מאת %{author}",lastChangeNoAuthor:"%{date}",lastChangeNoDate:"מאת %{author}",deleteChanges:"למחוק את השינויים",deleteNewEntry:"למחוק אייטם חדש",publishChanges:"פרסום השינויים",publishNewEntry:"פרסום אייטם חדש"},workflowList:{onDeleteEntry:"האם ברצונך למחוק אייטם זה?",onPublishingNotReadyEntry:"ניתן לפרסם רק אייטמים שנמצאים במצב ״מוכן לפרסום״. נא לגרור את האייטם לטור ״מוכן לפרסום״ כדי לפרסם.",onPublishEntry:"האם ברצונך לפרסם אייטם זה?",draftHeader:"טיוטות",inReviewHeader:"ממתין לאישור",readyHeader:"מוכן לפרסום",currentEntries:"אייטם %{smart_count} |||| %{smart_count} אייטמים"}}};t.default=r},function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.6.0",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=
/*!
* Sizzle CSS Selector Engine v2.3.6
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2021-02-16
*/
function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,x=0,k=0,E=le(),S=le(),O=le(),C=le(),T=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,P=[],R=P.pop,j=P.push,I=P.push,M=P.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+N+"*("+F+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+N+"*\\]",z=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",U=new RegExp(N+"+","g"),q=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),W=new RegExp("^"+N+"*,"+N+"*"),H=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),$=new RegExp(N+"|>"),V=new RegExp(z),G=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(P=M.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){I={apply:P.length?function(e,t){j.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,d,h,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(t),t=t||p,m)){if(11!==w&&(d=J.exec(e)))if(o=d[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!C[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&($.test(e)||H.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=_)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+be(h[s]);v=h.join(",")}try{return I.apply(r,y.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!o(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",z)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&b(w,e)?-1:t==p||t.ownerDocument==w&&b(w,t)?1:c?L(c,e)-L(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==p?-1:t==p?1:i?-1:o?1:c?L(c,e)-L(c,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!C[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(u=(c=(d=(f=g)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&u[1])&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[x,p,b];break}}else if(y&&(b=p=(u=(c=(d=(f=t)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&u[1]),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(d=f[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[x,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=L(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[_]?ue((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,f=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===x&&u[1]===s)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ke(e,t,n,r,i,o){return r&&!r[_]&&(r=ke(r)),i&&!i[_]&&(i=ke(i,o)),ue((function(o,a,s,l){var u,c,d,f=[],p=[],h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:xe(m,f,e,s,l),v=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(u=xe(v,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[p[c]]=!(g[p[c]]=d));if(o){if(i||e){if(i){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);i(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=i?L(o,d):f[c])>-1&&(o[u]=!(a[u]=d))}}else v=xe(v===a?v.splice(h,v.length):v),i?i(null,a,v,l):I.apply(a,v)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=_e((function(e){return e===t}),s,!0),d=_e((function(e){return L(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])f=[_e(we(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return ke(l>1&&we(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<i&&Ee(e.slice(l,i)),i<o&&Ee(e=e.slice(i)),i<o&&be(e))}f.push(n)}return we(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,u,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=O[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[_]?i.push(s):o.push(s);(s=O(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var d,h,g,v=0,y="0",b=o&&[],_=[],w=u,k=o||i&&r.find.TAG("*",c),E=x+=null==w?1:Math.random()||.1,S=k.length;for(c&&(u=a==p||a||c);y!==S&&null!=(d=k[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument==p||(f(d),s=!m);g=e[h++];)if(g(d,a||p,s)){l.push(d);break}c&&(x=E)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,_,a,s);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=R.call(l));_=xe(_)}I.apply(l,_),c&&!o&&_.length>0&&v+t.length>1&&se.uniqueSort(l)}return c&&(x=E,u=w),b};return n?ue(o):o}(o,i))).selector=e}return s},l=se.select=function(e,t,n,i){var o,l,u,c,d,f="function"==typeof e&&e,p=!i&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=K.needsContext.test(e)?0:l.length;o--&&(u=l[o],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return I.apply(n,i),n;break}}return(f||s(e,p))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(T).join("")===_,n.detectDuplicates=!!d,f(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||de(D,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var O=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return v(t)?k.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return c.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&T.test(e)?k(e):e||[],!1).length}});var j,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),P.test(r[1])&&k.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,j=k(b);var M=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!T.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(k(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(L[e]||k.uniqueSort(i),M.test(e)&&i.reverse()),this.pushStack(i)}}));var N=/[^\x20\t\r\n\f]+/g;function F(e){return e}function B(e){throw e}function z(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(N)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,(function(n,r){v(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<o)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(u)?i?u.call(n,a(o,t,F,i),a(o,t,B,i)):(o++,u.call(n,a(o,t,F,i),a(o,t,B,i),a(o,t,F,t.notifyWith))):(r!==F&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(r!==B&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),n.setTimeout(c))}}return k.Deferred((function(n){t[0][3].add(a(0,n,v(i)?i:F,n.notifyWith)),t[1][3].add(a(0,n,v(e)?e:F)),t[2][3].add(a(0,n,v(r)?r:B))})).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&U.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var q=k.Deferred();function W(){b.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),k.ready()}k.fn.ready=function(e){return q.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||q.resolveWith(b,[k]))}}),k.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var H=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===x(n))for(s in i=!0,n)H(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},$=/^-ms-/,V=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function K(e){return e.replace($,"ms-").replace(V,G)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(N)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new Q,Z=new Q,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||X.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Z.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(o,r,i[r]));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Z.set(this,e)})):H(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){k.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=b.documentElement,ae=function(e){return k.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===k.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},l=s(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==u&&+l)&&re.exec(k.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)k.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,k.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ce={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ce[r];return i||(t=n.body.appendChild(n.createElement(r)),i=k.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ce[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?k(this).show():k(this).hide()}))}});var pe,he,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(he=b.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),pe.appendChild(he),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===x(o))k.merge(f,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(o)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;k.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(u=ae(o),a=be(d.appendChild(o),"script"),u&&_e(a),n)for(c=0;o=a[c++];)ve.test(o.type||"")&&n.push(o);return d}var ke=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Se(){return!1}function Oe(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ce(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,i,r,n)}))}function Te(e,t,n){n?(X.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),r=n(this,t),this[t](),o!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(X.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&k.event.add(e,t,Ee)}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=X.get(e);if(Y(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(oe,i),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(N)||[""]).length;u--;)p=m=(s=ke.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},c=k.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),k.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=X.hasData(e)&&X.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(N)||[""]).length;u--;)if(p=m=(s=ke.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[u],n,r,!0);k.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=k.event.fix(e),u=(X.get(this,"events")||Object.create(null))[l.type]||[],c=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(u)>-1:k.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Te(t,"click",Ee),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Te(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&A(t,"input")&&X.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return Te(this,e,Oe),!1},trigger:function(){return Te(this,e),!0},_default:function(){return!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||k.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){k.event.remove(this,e,n,t)}))}});var Ae=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)k.event.add(t,i,s[i][n]);Z.hasData(e)&&(o=Z.access(e),a=k.extend({},o),Z.set(t,a))}}function De(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ne(e,t,n,r){t=l(t);var i,o,a,s,u,c,d=0,f=e.length,p=f-1,h=t[0],m=v(h);if(m||f>1&&"string"==typeof h&&!g.checkClone&&Pe.test(h))return e.each((function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),Ne(o,t,n,r)}));if(f&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(be(i,"script"),Ie)).length;d<f;d++)u=i,d!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,be(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Me),d=0;d<s;d++)u=a[d],ve.test(u.type||"")&&!X.access(u,"globalEval")&&k.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Re,""),u,c))}return e}function Fe(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&_e(be(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=be(s),r=0,i=(o=be(e)).length;r<i;r++)De(o[r],a[r]);if(t)if(n)for(o=o||be(e),a=a||be(s),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,s);return(a=be(s,"script")).length>0&&_e(a,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return H(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ne(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Ne(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ne(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ne(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ne(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,r=[],i=k(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var Be=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},qe=new RegExp(ie.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||ze(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=k.style(e,t)),!g.pixelBoxStyles()&&Be.test(a)&&qe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);r="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),oe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var $e=["Webkit","Moz","ms"],Ve=b.createElement("div").style,Ge={};function Ke(e){var t=k.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in Ve)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+ie[a],!0,i)),r?("content"===n&&(l-=k.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(l-=k.css(e,"border"+ie[a]+"Width",!0,i))):(l+=k.css(e,"padding"+ie[a],!0,i),"padding"!==n?l+=k.css(e,"border"+ie[a]+"Width",!0,i):s+=k.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function tt(e,t,n){var r=ze(e),i=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),l=Qe.test(t),u=e.style;if(l||(t=Ke(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Qe.test(t)||(t=Ke(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Ye.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Ue(e,Xe,(function(){return tt(e,t,r)}))},set:function(e,n,r){var i,o=ze(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),l=r?et(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Je(0,n,l)}}})),k.cssHooks.marginLeft=He(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=Je)})),k.fn.extend({css:function(e,t){return H(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=ze(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=nt.prototype.init,k.fx.step={};var rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){it&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,k.fx.interval),k.fx.tick())}function lt(){return n.setTimeout((function(){rt=void 0})),rt=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function dt(e,t,n){var r,i,o=0,a=dt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=rt||lt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=dt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return k.map(c,ct,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(N);for(var n,r=0,i=e.length;r<i;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&le(e),g=X.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||k.style(e,r)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(u?c=u:(fe([e],!0),u=e.style.display||u,c=k.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(e,"float")&&(l||(f.done((function(){h.display=u})),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=X.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),X.remove(e,"fxshow"),p)k.style(e,r,p[r])}))),l=ct(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),a=function(){var t=dt(this,k.extend({},e),o);(i||X.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=k.timers,a=X.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&at.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,r,i)}})),k.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),rt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){it||(it=!0,st())},k.fx.stop=function(){it=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var ft,pt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return H(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(N);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||k.find.attr;pt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=pt[a],pt[a]=i,i=null!=n(e,t,r)?a:null,pt[a]=o),i}}));var ht=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(N)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}k.fn.extend({prop:function(e,t){return H(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){k(this).addClass(e.call(this,t,vt(this)))}));if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+gt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=gt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){k(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+gt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=gt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=yt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+gt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:gt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var _t=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,i){var o,a,s,l,u,c,d,f,h=[r||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!_t.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!y(r)){for(l=d.delegateType||m,_t.test(l+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||m,(c=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&Y(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!Y(r)||u&&v(r[m])&&!y(r)&&((s=r[u])&&(r[u]=null),k.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,wt),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,wt),k.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var xt=n.location,kt={guid:Date.now()},Et=/\?/;k.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||k.error("Invalid XML: "+(r?k.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var St=/\[\]$/,Ot=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function At(e,t,n,r){var i;if(Array.isArray(t))k.each(t,(function(t,i){n||St.test(e)?r(e,i):At(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)At(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){i(this.name,this.value)}));else for(n in e)At(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Tt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}});var Pt=/%20/g,Rt=/#.*$/,jt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Dt={},Nt={},Ft="*/".concat("*"),Bt=b.createElement("a");function zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(N)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var i={},o=e===Nt;function a(s){var l;return i[s]=!0,k.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function qt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Bt.href=xt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,k.ajaxSettings),t):qt(k.ajaxSettings,e)},ajaxPrefilter:zt(Dt),ajaxTransport:zt(Nt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,d,f,p=k.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?k(h):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=p.statusCode||{},_={},w={},x="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=It.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(g.promise(E),p.url=((e||p.url||xt.href)+"").replace(Lt,xt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Ut(Dt,p,t,E),u)return E;for(d in(c=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Mt.test(p.type),i=p.url.replace(Rt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Et.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(jt,"$1"),f=(Et.test(i)?"&":"?")+"_="+kt.guid+++f),p.url=i+f),p.ifModified&&(k.lastModified[i]&&E.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&E.setRequestHeader("If-None-Match",k.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&E.setRequestHeader("Content-Type",p.contentType),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ft+"; q=0.01":""):p.accepts["*"]),p.headers)E.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,E,p)||u))return E.abort();if(x="abort",v.add(p.complete),E.done(p.success),E.fail(p.error),r=Ut(Nt,p,t,E)){if(E.readyState=1,c&&m.trigger("ajaxSend",[E,p]),u)return E;p.async&&p.timeout>0&&(s=n.setTimeout((function(){E.abort("timeout")}),p.timeout));try{u=!1,r.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var d,f,b,_,w,x=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",E.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,E,a)),!d&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,E,d),d?(p.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(k.etag[i]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=_.state,f=_.data,d=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),E.status=e,E.statusText=(t||x)+"",d?g.resolveWith(h,[f,x,E]):g.rejectWith(h,[E,x,b]),E.statusCode(y),y=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[E,p,d?f:b]),v.fireWith(h,[E,x]),c&&(m.trigger("ajaxComplete",[E,p]),--k.active||k.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Ht=k.ajaxSettings.xhr();g.cors=!!Ht&&"withCredentials"in Ht,g.ajax=Ht=!!Ht,k.ajaxTransport((function(e){var t,r;if(g.cors||Ht&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var $t,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||k.expando+"_"+kt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?k(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),g.createHTMLDocument=(($t=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$t.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=P.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=gt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=k.css(e,"position"),c=k(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||oe}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return H(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=He(g.pixelPosition,(function(e,n){if(n)return n=We(e,t),Be.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return H(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?k.css(t,n,s):k.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=v,k.isWindow=y,k.camelCase=K,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Yt=n.jQuery,Qt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Qt),e&&n.jQuery===k&&(n.jQuery=Yt),k},void 0===i&&(n.jQuery=n.$=k),k}))},function(e,t,n){"use strict";n.r(t);var r=n(481),i=n.n(r);!function(e,t){if("undefined"==typeof document)return t;e=e||"";var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),n.appendChild(r)}('\n.uploadcare-tab-effects--crops{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--effect-button{-ms-flex-negative:1;flex-shrink:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;padding:0;width:45px;height:45px;border-color:transparent;background:transparent;color:#212121;fill:#212121}.uploadcare-tab-effects--effect-button:active,.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{fill:#0969ee;color:#0969ee}.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{border-color:transparent;background:transparent}.uploadcare-tab-effects--effect-button[aria-disabled=true]{border-color:transparent!important;background:transparent!important;color:#d4d2d2!important;fill:#d4d2d2!important}.uploadcare-tab-effects--effect-button:before{content:"";display:block;-ms-flex-order:1;order:1;margin:1px 0;width:6px;height:6px;background:transparent;border-radius:50%}.uploadcare-tab-effects--effect-button_applied:before{background:#157cfc}@media (min-width:760px){.uploadcare-tab-effects--effect-button:focus,.uploadcare-tab-effects--effect-button:hover{position:relative;overflow:visible}.uploadcare-tab-effects--effect-button:focus:after,.uploadcare-tab-effects--effect-button:hover:after{content:attr(aria-label);display:block;position:absolute;top:0;left:50%;width:auto;height:auto;background:#e3e1e1;color:#212121;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);padding:12px;border-radius:6px;line-height:1;min-width:100%}}\n.uploadcare-tab-effects--icon{height:32px}\n.uploadcare-tab-effects--effects{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;max-width:100%}\n.uploadcare-tab-effects--additions{-ms-flex-positive:1;flex-grow:1}\n\n\n.uploadcare-tab-effects--range{-ms-flex-positive:1;flex-grow:1}input[type=range].uploadcare-tab-effects--range__input{box-sizing:border-box;margin:0;padding:0;width:100%;height:40px;line-height:1}input[type=range].uploadcare-tab-effects--range__input:focus{outline:2px solid rgba(21,124,252,.5);outline-offset:1px}input[type=range].uploadcare-tab-effects--range__input::-moz-range-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-moz-range-progress{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb{border:none;background:#212121;box-shadow:none}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:focus,input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:hover{background:#000}input[type=range].uploadcare-tab-effects--range__input::-moz-range-thumb:active{background:#000}input[type=range].uploadcare-tab-effects--range__input::-ms-track{background:#d4d2d2}input[type=range].uploadcare-tab-effects--range__input::-ms-fill-lower{background:#157cfc}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb{background:#212121}input[type=range].uploadcare-tab-effects--range__input::-ms-thumb:active,input[type=range].uploadcare-tab-effects--range__input:focus::-ms-thumb{background:#000}');var o=Object.freeze({be:{effects:{captions:{blur:"Размыццё",crop:"Абрэзка",enhance:"Паляпшэнне",flip:"Адлюстраваць па вертыкалі",grayscale:"Адценні шэрага",invert:"Інвертаваць",mirror:"Адлюстраваць па гарызанталі",rotate:"Павярнуць",sharp:"Выразнасць"},apply:"Ужыць"}},en:{effects:{captions:{blur:"Blur",crop:"Crop",enhance:"Enhance",flip:"Flip",grayscale:"Grayscale",invert:"Invert",mirror:"Mirror",rotate:"Rotate",sharp:"Sharpen"},apply:"Apply"}},fr:{effects:{captions:{blur:"Flouter",crop:"Recadrer",enhance:"Effets",flip:"Retourner",grayscale:"Noir et blanc",invert:"Inverser",mirror:"Mirroir",rotate:"Tourner",sharp:"Netteté"},apply:"Appliquer"}},it:{effects:{captions:{blur:"Sfoca",crop:"Ritaglia",enhance:"Accentua",flip:"Capovolgi",grayscale:"Bianconero",invert:"Inverti",mirror:"Specchia",rotate:"Ruota",sharp:"Nitidezza"},apply:"Applica"}},ja:{effects:{captions:{blur:"ぼかし",crop:"トリミング",enhance:"補正",flip:"反転",grayscale:"グレースケール",invert:"階調反転",mirror:"ミラー",rotate:"回転",sharp:"シャープ"},apply:"適用"}},nl:{effects:{captions:{blur:"Vervagen",crop:"Bijknippen",enhance:"Verbeteren",flip:"Omkeren",grayscale:"Zwart-wit",invert:"Inverteren",mirror:"Spiegelen",rotate:"Roteren",sharp:"Verscherpen"},apply:"Toepassen"}},ru:{effects:{captions:{blur:"Размытие",crop:"Обрезка",enhance:"Улучшение",flip:"Отразить по вертикали",grayscale:"Оттенки серого",invert:"Инвертировать",mirror:"Отразить по горизонтали",rotate:"Повернуть",sharp:"Резкость"},apply:"Применить"}},vi:{effects:{captions:{blur:"Mờ",crop:"Cắt",enhance:"Tinh chỉnh",flip:"Lật",grayscale:"Xám",invert:"Âm bản",mirror:"Gương",rotate:"Xoay",sharp:"Làm nét"},apply:"Áp dụng"}}}),a=["crop","rotate","enhance","sharp","grayscale"],s="en",l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},f=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},p=function(e){return Object.keys(o).indexOf(e)>-1},h=function(e){return(new DOMParser).parseFromString(e,"text/html").body.firstChild};var m={blur:["number",10],enhance:["number",50],flip:["boolean"],grayscale:["boolean"],invert:["boolean"],mirror:["boolean"],rotate:["number"],sharp:["number",5]},g={blur:/-\/blur\/(([0-9]+)\/|)/i,crop:/-\/crop\/([0-9]+)x([0-9]+)(\/(center|([0-9]+),([0-9]+)))?\/(-\/resize\/([0-9]+)x([0-9]+)\/)?/i,enhance:/-\/enhance\/(([0-9]+)\/|)/i,flip:/-\/flip\//i,grayscale:/-\/grayscale\//i,invert:/-\/invert\//i,mirror:/-\/mirror\//i,rotate:/-\/rotate\/(([0-9]+)\/)/i,sharp:/-\/sharp\/(([0-9]+)\/|)/i};var v={view:"preview",image:{},appliedEffects:{blur:0,crop:null,enhance:0,flip:!1,grayscale:!1,invert:!1,mirror:!1,rotate:0,sharp:0},otherModifiers:""},y=function(e){var t=e.originalSize,n=e.coords,r=n.width,i=n.height,o=n.center,a=n.left,s=n.top,l="";t?r===t[0]&&i===t[1]||(l+="-/crop/"+r+"x"+i+"/"+a+","+s+"/"):(l+="-/crop/"+r+"x"+i+"/",o?l+="center/":void 0!==a&&void 0!==s&&(l+=a+","+s+"/"));return e.resizeTo?l+="-/resize/"+e.resizeTo.join("x")+"/":l+="-/preview/",l},b=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="";for(var i in e)if(e[i])switch(l(e[i])){case"boolean":if(!n&&~["flip","mirror"].indexOf(i))break;r+="-/"+i+"/";break;case"number":if(!n&&"rotate"===i)break;r+="-/"+i+"/"+e[i]+"/";break;case"object":"crop"===i&&t&&(r+=y(e[i]))}return r=r?e.crop&&t?r:"-/preview/"+r:""},_=[0,270,180,90],w=["crop","rotate","mirror","flip","blur","sharp","enhance","grayscale","invert"],x=function(e,t){var n=d(t,2),r=n[0],i=n[1],o=e.downscale&&(r>e.preferedSize[0]||i>e.preferedSize[1]),a=e.upscale&&(r<e.preferedSize[0]||i<e.preferedSize[1]);return o||a?e.preferedSize:null},k=function(e){var t=function(e){var t=[];if("string"==typeof e&&"all"===e)return w;var n=(t="string"==typeof e?e.replace(/\s/g,"").split(","):Array.isArray(e)?e:a).indexOf("crop");return~n&&0!==n&&(t=["crop"].concat(f(t.slice(0,n)),f(t.slice(n+1)))),t}(e.effects),n=function(e,t){return e||!~t.indexOf("crop")?e:[{downscale:!1,notLess:!1,preferedSize:void 0,upscale:!1}]}(e.crop,t);return c({},e,{crop:n},{effects:t},{locale:e.locale?e.locale:s})},E=function(e,t){var n=t.effects,r=t.crop,i=function(e){var t=v.appliedEffects,n={};return e.forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n}(n),o=function(e,t,n){if(!e)return{effects:{},otherModifiers:""};var r={},i=e.replace(/-\/preview\//g,"");return t.forEach((function(t){if(g[t]){var o=e.match(g[t]);if(o){var a=void 0;if("crop"===t){var s=o[7]&&[o[8],o[9]],l=parseInt(o[1]),u=parseInt(o[2]),c=n.findIndex((function(e){if(void 0===e.preferedSize)return!0;var t=d(e.preferedSize,2),n=t[0],r=t[1],i=l===n&&u===r,o=(n/r).toPrecision(2)===(l/u).toPrecision(2);return i||o}));a={resizeTo:s,index:c>=0?c:null,coords:{width:l,height:u,center:"center"===o[4],left:void 0===o[5]?void 0:parseInt(o[5]),top:void 0===o[6]?void 0:parseInt(o[6])}}}else"boolean"===m[t][0]&&(a=!0),"number"===m[t][0]&&(a=void 0===o[2]?m[t][1]:parseInt(o[2]));r[t]=a,i=i.replace(o[0],"")}}})),{effects:r,otherModifiers:i}}(e.cdnUrlModifiers,n,r);return function(e){var t=e,n={view:[],imageLoad:[],appliedEffects:[],image:[]},r=function(e,t){return n[t].push(e),function(){n[t]=n[t].filter((function(t){return t!==e}))}};return{getState:function(){return t},setView:function(e){t=c({},t,{view:e}),n.view.forEach((function(e){return e()}))},setImageLoad:function(e){t=c({},t,{imageLoad:e}),n.imageLoad.forEach((function(e){return e()}))},setAppliedEffect:function(e){var r=c({},t.appliedEffects,e);t=c({},t,{appliedEffects:r}),n.appliedEffects.forEach((function(e){return e()}))},rebuildImage:function(){var e=t,r=e.appliedEffects,i=e.image,o=b(r)+t.otherModifiers,a=function(e){if(e){var t=e.coords,n=e.resizeTo,r={width:t.width,height:t.height,left:t.left,top:t.top};return n&&(r.sw=n[0],r.sh=n[1]),r}return null}(r.crop);t.image=c({},i,{cdnUrl:i.originalUrl+(o||""),cdnUrlModifiers:o,crop:a}),n.image.forEach((function(e){return e()}))},subscribeToView:function(e){return r(e,"view")},subscribeToImageLoad:function(e){return r(e,"imageLoad")},subscribeToImage:function(e){return r(e,"image")},subscribeToAppliedEffects:function(e){return r(e,"appliedEffects")}}}(c({},v,{image:e},{appliedEffects:c({},i,o.effects)},{otherModifiers:o.otherModifiers}))},S=function(){var e=void 0,t=function(){e=h('<div class="uploadcare--tab__content uploadcare--preview__content uploadcare--preview__content_crop"></div>\n')};return{getElement:function(){return e||t(),e},appendChild:function(t){e&&e.appendChild(t)}}},O={"crop-button":"uploadcare-tab-effects--crop-button","crop-button__icon":"uploadcare-tab-effects--crop-button__icon",cropButton:"uploadcare-tab-effects--crop-button",cropButton__icon:"uploadcare-tab-effects--crop-button__icon"},C=function(e){var t=void 0,n=e.size,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){var e;t=h('<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon uploadcare--crop-sizes__item '+(e={title:r,cn:O}).cn["crop-button"]+'" data-caption="'+e.title+'">\n <div class="uploadcare--crop-sizes__icon '+e.cn["crop-button__icon"]+'"></div>\n</div>\n'),s(),o.applied&&t.classList.add("uploadcare--crop-sizes__item_current"),t.addEventListener("click",l)},s=function(){var e=t.querySelector("."+O["crop-button__icon"]),r=n.width,i=n.height;r&&i?(e.style.width=r,e.style.height=i):(e.innerHTML='\n<svg width="32" height="32" role="presentation" class="uploadcare--icon">\n <use xlink:href="#uploadcare--icon-crop-free"/>\n</svg>\n ',e.classList.add("uploadcare--crop-sizes__icon_free"))},l=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||a(),t},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"]("uploadcare--crop-sizes__item_current"))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?"-1":"0"))}}},T={crops:"uploadcare-tab-effects--crops"},A=function(e){var t=void 0,n=[],r=e.crops,i=e.onCropClick,o={currentCrop:e.currentCrop||0},a=function(){t=h('<div class="'+{cn:T}.cn.crops+'"></div>\n'),r.forEach((function(e){var t=e.index,r=e.size,a=e.title;n[t]=new C({size:r,title:a,applied:o.currentCrop===t,onClick:function(){o.currentCrop!==t&&(s(t),i(e))}})})),n.forEach((function(e){return t.appendChild(e.getElement())}))},s=function(e){n&&(o.currentCrop=e,n.forEach((function(t,n){return t.toggleApplied(n===e)})))};return{getElement:function(){return t||a(),t},toggleDisabled:function(e){n&&n.forEach((function(t){return t.toggleDisabled(e)}))},updateApplied:s}},P={"effect-button":"uploadcare-tab-effects--effect-button","effect-button_applied":"uploadcare-tab-effects--effect-button_applied",effectButton:"uploadcare-tab-effects--effect-button",effectButton_applied:"uploadcare-tab-effects--effect-button_applied"},R="uploadcare-tab-effects--icon",j=Object.freeze({blur:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <defs>\n <filter id="filter-blur" width="200%" height="200%" x="-50%" y="-50%" filterUnits="objectBoundingBox">\n <feGaussianBlur stdDeviation="3" in="SourceGraphic">\n </feGaussianBlur></filter>\n </defs>\n <circle cx="16" cy="16" r="8" filter="url(#filter-blur)"></circle>\n</svg>\n'},crop:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M21,23 L10.9999602,23 C9.8967381,23 9,22.0989187 9,21.0000398 L9,11 L5,11 L5,9 L9,9 L9,5 L11,5 C11,5 11.0034766,21 10.9999602,21 L27,21 L27,23 L23,23 L23,27 L21,27 L21,23 Z M13,11 L13,9 L21.0046024,9 C22.1100735,9 23,9.89939484 23,11.0081317 L23,19.1279297 L21,19.1279297 L21,11.0081317 C21,11.00117 13,11 13,11 Z"></path>\n</svg>\n'},enhance:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M4.29289322,24.0082521 L16.3137085,11.9874369 C16.7042328,11.5969126 17.3373978,11.5969126 17.7279221,11.9874369 L20.5563492,14.815864 C20.9468735,15.2063883 20.9468735,15.8395533 20.5563492,16.2300776 L8.53553391,28.2508928 C8.14500961,28.6414171 7.51184464,28.6414171 7.12132034,28.2508928 L4.29289322,25.4224657 C3.90236893,25.0319414 3.90236893,24.3987764 4.29289322,24.0082521 Z M14.7175144,16.4120581 L16.131728,17.8262716 L18.4350288,15.5229708 L17.0208153,14.1087572 L14.7175144,16.4120581 L14.7175144,16.4120581 Z M16.3411081,7.13592111 L13.8054564,6.33578644 L16.3411081,5.53565177 L17.1412428,3 L17.9413775,5.53565177 L20.4770292,6.33578644 L17.9413775,7.13592111 L17.1412428,9.67157288 L16.3411081,7.13592111 Z M24.5356518,13.8304648 L22,13.0303301 L24.5356518,12.2301954 L25.3357864,9.69454365 L26.1359211,12.2301954 L28.6715729,13.0303301 L26.1359211,13.8304648 L25.3357864,16.3661165 L24.5356518,13.8304648 Z M9.53565177,10.8304648 L7,10.0303301 L9.53565177,9.23019541 L10.3357864,6.69454365 L11.1359211,9.23019541 L13.6715729,10.0303301 L11.1359211,10.8304648 L10.3357864,13.3661165 L9.53565177,10.8304648 Z M22.5356518,21.8304648 L20,21.0303301 L22.5356518,20.2301954 L23.3357864,17.6945436 L24.1359211,20.2301954 L26.6715729,21.0303301 L24.1359211,21.8304648 L23.3357864,24.3661165 L22.5356518,21.8304648 Z"></path>\n</svg>\n'},flip:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M15.3492086,13.7592566 L8.34920863,7.7592566 C7.64431003,7.15505781 8.07159372,6 9,6 L23,6 C23.9284063,6 24.35569,7.15505781 23.6507914,7.7592566 L16.6507914,13.7592566 C16.2763016,14.0802478 15.7236984,14.0802478 15.3492086,13.7592566 Z M15.3492086,18.2407434 C15.7236984,17.9197522 16.2763016,17.9197522 16.6507914,18.2407434 L23.6507914,24.2407434 C24.35569,24.8449422 23.9284063,26 23,26 L9,26 C8.07159372,26 7.64431003,24.8449422 8.34920863,24.2407434 L15.3492086,18.2407434 Z M11.7032574,24 L20.2967426,24 L16,20.3170778 L11.7032574,24 Z M27,15 L27,17 L25,17 L25,15 L27,15 Z M23,15 L23,17 L21,17 L21,15 L23,15 Z M19,15 L19,17 L17,17 L17,15 L19,15 Z M15,15 L15,17 L13,17 L13,15 L15,15 Z M11,15 L11,17 L9,17 L9,15 L11,15 Z M7,15 L7,17 L5,17 L5,15 L7,15 Z"></path>\n</svg>\n'},grayscale:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M19.3596223,12.0563396 L21.926451,14.6231683 C21.8411716,15.2691808 21.6833431,15.8923164 21.4614188,16.484122 L17.1233611,12.1460643 C16.660957,12.2457748 16.2168493,12.3946804 15.7967877,12.5870314 L20.8981472,17.688391 C20.6220708,18.1749895 20.2993732,18.6316689 19.936127,19.0523568 L14.3668527,13.4830825 C14.0447797,13.7487243 13.7487243,14.0447797 13.4830825,14.3668527 L19.0523568,19.936127 C18.6316689,20.2993732 18.1749895,20.6220708 17.688391,20.8981472 L12.5870314,15.7967877 C12.3946804,16.2168493 12.2457748,16.660957 12.1460643,17.1233611 L16.484122,21.4614188 C15.8923164,21.6833431 15.2691808,21.8411716 14.6231683,21.926451 L12.0563396,19.3596223 C12.4769606,22.5431547 15.2015668,25 18.5,25 C22.0898509,25 25,22.0898509 25,18.5 C25,15.2015668 22.5431547,12.4769606 19.3596223,12.0563396 Z M10.5324038,21.4675962 C7.30134737,20.2636648 5,17.1505866 5,13.5 C5,8.80557963 8.80557963,5 13.5,5 C17.1505866,5 20.2636648,7.30134737 21.4675962,10.5324038 C24.6986526,11.7363352 27,14.8494134 27,18.5 C27,23.1944204 23.1944204,27 18.5,27 C14.8494134,27 11.7363352,24.6986526 10.5324038,21.4675962 L10.5324038,21.4675962 Z"></path>\n</svg>\n'},invert:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M5,6.99180311 C5,5.89386312 5.90087297,5 6.99180311,5 L25.0081969,5 C26.1061369,5 27,5.90087297 27,6.99180311 L27,25.0081969 C27,26.1061369 26.099127,27 25.0081969,27 L6.99180311,27 C5.89386312,27 5,26.099127 5,25.0081969 L5,6.99180311 Z M25,7 L7,7 L7,25 L12.071629,19.928371 C13.0769868,20.9337288 14.4658757,21.5555556 16,21.5555556 C19.0682486,21.5555556 21.5555556,19.0682486 21.5555556,16 C21.5555556,14.4658757 20.9337288,13.0769868 19.928371,12.071629 L25,7 L25,7 Z M12.071629,19.928371 C11.0662712,18.9230132 10.4444444,17.5341243 10.4444444,16 C10.4444444,12.9317514 12.9317514,10.4444444 16,10.4444444 C17.5341243,10.4444444 18.9230132,11.0662712 19.928371,12.071629 L12.071629,19.928371 L12.071629,19.928371 Z"></path>\n</svg>\n'},mirror:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M13.7592566,16.6507914 L7.7592566,23.6507914 C7.15505781,24.35569 6,23.9284063 6,23 L6,9 C6,8.07159372 7.15505781,7.64431003 7.7592566,8.34920863 L13.7592566,15.3492086 C14.0802478,15.7236984 14.0802478,16.2763016 13.7592566,16.6507914 Z M18.2407434,16.6507914 C17.9197522,16.2763016 17.9197522,15.7236984 18.2407434,15.3492086 L24.2407434,8.34920863 C24.8449422,7.64431003 26,8.07159372 26,9 L26,23 C26,23.9284063 24.8449422,24.35569 24.2407434,23.6507914 L18.2407434,16.6507914 Z M24,20.2967426 L24,11.7032574 L20.3170778,16 L24,20.2967426 Z M15,5 L17,5 L17,7 L15,7 L15,5 Z M15,9 L17,9 L17,11 L15,11 L15,9 Z M15,13 L17,13 L17,15 L15,15 L15,13 Z M15,17 L17,17 L17,19 L15,19 L15,17 Z M15,21 L17,21 L17,23 L15,23 L15,21 Z M15,25 L17,25 L17,27 L15,27 L15,25 Z"></path>\n</svg>\n'},rotate:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <path d="M22.8449302,10.1550698 L22.8449302,10.1550698 C21.1616077,8.18356972 18.6836184,7 16,7 C11.0294373,7 7,11.0294373 7,16 C7,20.9705627 11.0294373,25 16,25 C18.6610655,25 21.131472,23.8397191 22.8318195,21.8591349 L24.3493086,23.1619115 C22.2729281,25.5805032 19.2506133,27 16,27 C9.92486775,27 5,22.0751322 5,16 C5,9.92486775 9.92486775,5 16,5 C19.224943,5 22.2084802,6.39983031 24.2627348,8.73726518 L27,6 L27,11.9970707 C27,12.5509732 26.5621186,13 25.9970707,13 L20,13 L22.8449302,10.1550698 Z M15,14 L17,14 C17.5522847,14 18,14.4477153 18,15 L18,17 C18,17.5522847 17.5522847,18 17,18 L15,18 C14.4477153,18 14,17.5522847 14,17 L14,15 C14,14.4477153 14.4477153,14 15,14 Z"></path>\n</svg>\n'},sharp:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n <polygon points="16 6 25 26 7 26"></polygon>\n</svg>\n'}}),I=function(e){var t=e.name;if(!j[t])throw new Error('Icon with name "'+t+"\" doesn't exist.");var n=void 0,r=function(){(n=h(j[t]())).setAttribute("class",n.getAttribute("class")+" "+R)};return{getElement:function(){return n||r(),n}}},M=function(e){var t=void 0,n=e.effect,r=e.title,i=e.onClick,o={applied:e.applied||!1,disabled:e.disabled||!1},a=function(){var e,i=new I({name:n});(t=h('<div role="button" tabindex="0" class="uploadcare--button uploadcare--button_icon '+(e={title:r,cn:P}).cn["effect-button"]+'" aria-label="'+e.title+'"></div>\n')).appendChild(i.getElement()),o.applied&&t.classList.add(P["effect-button_applied"]),t.addEventListener("click",s),t.addEventListener("keypress",(function(e){"Enter"===e.code&&(t.dispatchEvent(new Event("click")),e.preventDefault(),e.stopPropagation())}))},s=function(){!o.disabled&&i&&i()};return{getElement:function(){return t||a(),t},getEffect:function(){return n},toggleApplied:function(e){t&&o.applied!==e&&(o.applied=e,t.classList[e?"add":"remove"](P["effect-button_applied"]))},toggleDisabled:function(e){t&&o.disabled!==e&&(o.disabled=e,t.setAttribute("aria-disabled",e),t.setAttribute("tabindex",e?-1:0))}}},L={effects:"uploadcare-tab-effects--effects"},D=function(e){var t=void 0,n=[],r=e.effects,i=e.titles,o=e.onEffectClick,a={appliedEffects:e.appliedEffects},s=function(){t=h('<div class="'+{cn:L}.cn.effects+'"></div>\n'),r.forEach((function(e){var t=i[e];n.push(new M({effect:e,title:t,applied:!!a.appliedEffects[e],onClick:function(){return o(e)}}))})),n.forEach((function(e){return t.appendChild(e.getElement())}))};return{getElement:function(){return t||s(),t},toggleDisabled:function(e){n&&n.forEach((function(t){return t.toggleDisabled(e)}))},updateApplied:function(e){n&&(a.appliedEffects=e,n.forEach((function(t){return t.toggleApplied(!!e[t.getEffect()])})))}}},N={additions:"uploadcare-tab-effects--additions",done:"uploadcare-tab-effects--done",cancel:"uploadcare-tab-effects--cancel"},F=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=e.locale,a=e.onDone,s=e.onCancel,l=function(){var e;t=h('<div class="uploadcare--footer uploadcare--tab__footer">\n <div class="uploadcare--footer__additions '+(e={cn:N,locale:o}).cn.additions+'"></div>\n\n <button type="button" class="uploadcare--button uploadcare--footer__button uploadcare--preview__back '+e.cn.cancel+'">\n '+e.locale.cancel+'\n </button>\n\n <button type="button" class="uploadcare--button uploadcare--button_primary uploadcare--footer__button uploadcare--preview__done '+e.cn.done+'">\n '+e.locale.done+"\n </button>\n</div>\n"),n=t.querySelector("."+N.additions),r=t.querySelector("."+N.done),i=t.querySelector("."+N.cancel),r.addEventListener("click",a),i.addEventListener("click",s)};return{getElement:function(){return t||l(),t},empty:function(){if(t)for(;n.firstChild;)n.removeChild(n.firstChild)},appendChild:function(e){t&&n.appendChild(e)},toggleDisabled:function(e){r&&(r.disabled=e)},updateDoneTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r.innerText=e||o.done}}},B={title:"uploadcare-tab-effects--title"},z=function(e){var t=void 0,n=void 0,r=e.title,i=function(){var e;t=h('<div class="uploadcare--tab__header">\n <div class="uploadcare--text uploadcare--text_size_large uploadcare--tab__title uploadcare--preview__title '+(e={title:r,cn:B}).cn.title+'">\n '+e.title+"\n </div>\n</div>\n"),n=t.querySelector("."+B.title)};return{getElement:function(){return t||i(),t},updateTitle:function(e){n&&(n.innerText=e)}}},U={image:"uploadcare-tab-effects--image","image-container":"uploadcare-tab-effects--image-container",imageContainer:"uploadcare-tab-effects--image-container"},q=function(e){var t=void 0,n=void 0,r=e.imageUrl,i=e.onUpdate,o=e.onLoad,a=e.onFail,s=function(){var e;t=h('<div class="uploadcare--media '+(e={cn:U,imageUrl:r}).cn["image-container"]+'">\n <img src="'+e.imageUrl+'" alt="" class="uploadcare--media__image uploadcare--preview__image '+e.cn.image+'">\n</div>\n'),(n=t.querySelector("."+U.image)).addEventListener("load",(function(){return o()})),n.addEventListener("error",(function(){n.complete&&a()})),n.addEventListener("abort",(function(){return a()}))};return{getElement:function(){return t||s(),t},getImg:function(){return n},updateImageUrl:function(e){n.src===e&&n.removeAttribute("src"),n.src=e,i()}}},W={range:"uploadcare-tab-effects--range",range__input:"uploadcare-tab-effects--range__input"},H=function(e){var t=void 0,n=e.min,r=void 0===n?0:n,i=e.max,o=void 0===i?100:i,a=e.step,s=void 0===a?1:a,l=e.value,u=void 0===l?50:l,c=e.onChange,d=function(){var e;(t=h('<div class="'+(e={cn:W,min:r,max:o,step:s,value:u}).cn.range+'">\n <input type="range" class="'+e.cn.range__input+'" min="'+e.min+'" max="'+e.max+'" step="'+e.step+'" value="'+e.value+'">\n</div>\n')).addEventListener("change",(function(e){return c(e.target.value)}))};return{getElement:function(){return t||d(),t}}},$={enhance:[0,100],sharp:[0,20],blur:[0,100,5]},V=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=e.uc,c=e.store,d=e.settings,f=e.onDone,p=e.onFail,m={cropWidget:null,currentCrop:0},g=l.locale.t,v=l.crop.CropWidget,y="-/preview/1162x693/-/setfill/ffffff/-/format/jpeg/-/progressive/yes/",w=function(){var e=c.getState(),s=e.view,l=e.appliedEffects,u=e.image;t=h("<div></div>\n"),n=new z({title:k(s)}),i=new F({locale:{done:g("dialog.tabs.preview.done"),cancel:g("dialog.tabs.preview.image.change")},onDone:C,onCancel:T}),r=new S;var f=u.cdnUrl+y;d.previewUrlCallback&&(f=d.previewUrlCallback(f,u)),o=new q({imageUrl:f,onUpdate:function(){return c.setImageLoad("start")},onLoad:function(){return c.setImageLoad("load")},onFail:function(){return c.setImageLoad("fail")}}),t.appendChild(n.getElement()),t.appendChild(r.getElement()),t.appendChild(i.getElement()),r.appendChild(o.getElement());var p=d.effects,m=p.reduce((function(e,t){return e[t]=E(t),e}),{});a=new D({effects:p,titles:m,appliedEffects:l,onEffectClick:P}),i.appendChild(a.getElement()),c.subscribeToAppliedEffects(j),c.subscribeToView(I),c.subscribeToImage(M),c.subscribeToImageLoad(L)},k=function(e){return"preview"===e?g("dialog.tabs.preview.image.title"):E(e)},E=function(e){return g("effects.captions."+e)},O=function(){m.cropWidget&&m.cropWidget.__api&&(m.cropWidget.__api.release(),m.cropWidget.__api.destroy(),o.getImg().removeAttribute("style"))},C=function(e){var t=c.getState().view;"preview"===t?f():(e.stopPropagation(),"crop"===t&&U(),c.setView("preview"))},T=function(e){var t=c.getState(),n=t.view,r=t.appliedEffects,i=d.crop;if("preview"!==n){e.stopPropagation();var o=0;if("crop"===n)o=i.some((function(e){return!e.preferedSize}))?null:r[n],O();c.setAppliedEffect(u({},n,o)),c.setView("preview")}},P=function(e){var t,n,r=c.getState().appliedEffects;"rotate"!==e?"boolean"!=typeof r[e]?"crop"!==e&&"number"!=typeof r[e]||c.setView(e):c.setAppliedEffect(u({},e,!r[e])):c.setAppliedEffect({rotate:(t=r.rotate,n=_.indexOf(t),~n&&n!==_.length-1?_[n+1]:_[0])})},R=function(e){var t=c.getState().view;c.setAppliedEffect(u({},t,parseInt(e)))},j=function(){c.rebuildImage();var e=c.getState().appliedEffects;a.updateApplied(e)},I=function(){var e=c.getState(),t=e.view,r=e.appliedEffects,s=e.image;if(n.updateTitle(k(t)),"preview"===t?i.updateDoneTitle():i.updateDoneTitle(g("effects.apply")),i.empty(),"preview"!==t){if("crop"===t){N();var l=s.originalUrl+(b([{crop:null}],!1,!1)||"")+y;return d.previewUrlCallback&&(l=d.previewUrlCallback(l,s)),void o.updateImageUrl(l)}if($[t]){var f=r[t];0===f&&(f=$[t][1]/2,c.setAppliedEffect(u({},t,f)));var p=new H({min:$[t][0],max:$[t][1],step:$[t][2],value:f,onChange:R});i.appendChild(p.getElement())}}else i.appendChild(a.getElement())},M=function(){var e=c.getState().image,t=e.cdnUrl+y;d.previewUrlCallback&&(t=d.previewUrlCallback(t,e)),o.updateImageUrl(t)},L=function(){var e=c.getState(),t=e.view;switch(e.imageLoad){case"start":i.toggleDisabled(!0),"preview"===t&&a.toggleDisabled(!0),"crop"===t&&s.toggleDisabled(!0);break;case"load":i.toggleDisabled(!1),"preview"===t?a.toggleDisabled(!1):"crop"===t&&(B(),s.toggleDisabled(!1));break;case"fail":p()}},N=function(){var e=d.crop,t=c.getState().appliedEffects.crop;m.currentCrop=t&&void 0!==t.index?t.index:0,s=new A({crops:e.map((function(e,t){var n=W(e);return{index:t,settings:e,title:n.description,size:{width:n.width,height:n.height}}})),currentCrop:m.currentCrop,onCropClick:function(e){m.currentCrop=e.index,m.cropWidget&&m.cropWidget.setCrop(e.settings)}}),i.appendChild(s.getElement())},B=function(){var e=d.crop,t=c.getState(),n=t.appliedEffects,r=t.image,i=n.crop,a=r.originalImageInfo,s=[a.width,a.height];m.cropWidget=new v(l.jQuery(o.getImg()),s,e[m.currentCrop]),i&&i.coords&&m.cropWidget.setSelection(i.coords)},U=function(){var e=m.cropWidget,t=e.crop,n=e.originalSize,r=m.cropWidget.getSelection();O(),c.setAppliedEffect({crop:{originalSize:n,coords:r,resizeTo:x(t,[r.width,r.height]),settings:t,index:m.currentCrop}})},W=function(e){var t=e.preferedSize,n=g("dialog.tabs.preview.crop.free"),r=void 0,i=void 0;if(t){var o=l.utils.gcd(t[0],t[1]),a=l.utils.fitSize(t,[30,30],!0);n=t[0]/o+":"+t[1]/o,r=Math.max(20,a[0])+"px",i=Math.max(12,a[1])+"px"}return{description:n,width:r,height:i}};return{getElement:function(){return t||w(),t}}};function G(e,t){function n(e,t,r,i,o){n.__super__.constructor.call(this,e,t,r,i,o)}return function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(n,e),n.prototype.__setState=function(e,r){var i=this;if("image"===e){if(r.info){var a=function(e){var t=window["UPLOADCARE_"+e.toUpperCase()];return void 0===t?null:t}("effects");void 0===this.settings.effects&&a&&(this.settings.effects=a);var l=k(this.settings),u=E(r.info,l);!function(e,t,n){var r=t.crop,i=e.getState().image;if(r&&!r.some((function(e){return!e.preferedSize}))&&i.isImage&&!i.cdnUrlModifiers&&!i.crop){var o=i.originalImageInfo,a=n.utils.fitSize(r[0].preferedSize,[o.width,o.height],!0),s={originalSize:[o.width,o.height],settings:r[0],resizeTo:x(r[0],a),coords:{left:Math.round((o.width-a[0])/2),top:Math.round((o.height-a[1])/2),width:a[0],height:a[1]}};e.setAppliedEffect({crop:s}),e.rebuildImage()}}(u,l,t);var d=l.locale;t.locale.translations=function(e,t){var n=c({},e),r=p(t),i=o[s],a=function(e){return n.hasOwnProperty(e)};for(var l in n)if(a(l)){if(!a(t)){var u=n[t];n[t]=c({},u,i);continue}r||p(l)?n[l]=c({},n[l],o[l]):n[l]=c({},n[l],i)}return n}(t.locale.translations,d),t.locale.rebuild();var f=new V({uc:t,store:u,settings:l,onDone:function(){var e=i.file.then((function(e){var t=u.getState().image,n=t.cdnUrl,r=t.cdnUrlModifiers,i=t.crop;return c({},e,{cdnUrl:n,cdnUrlModifiers:r,crop:i})}));i.dialogApi.fileColl.replace(i.file,e)},onFail:function(){i.file=null,i.__setState("error",{error:"loadImage"})}}),h=this.container[0];h.innerHTML="",Array.prototype.slice.call(f.getElement().children).forEach((function(e){return h.appendChild(e)})),u.setImageLoad("start")}}else n.__super__.__setState.call(this,e,r)},n.prototype.initImage=function(){},n}t.default=function(e,t,n,r,o){i.a.plugin((function(i){return r.multiple?new i.widget.tabs.PreviewTabMultiple(e,t,n,r,o):new(G(i.widget.tabs.PreviewTab,i))(e,t,n,r,o)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"AlphaPicker",(function(){return Vn})),n.d(t,"BlockPicker",(function(){return ui})),n.d(t,"CirclePicker",(function(){return Ri})),n.d(t,"default",(function(){return Ui})),n.d(t,"ChromePicker",(function(){return Ui})),n.d(t,"CompactPicker",(function(){return $i})),n.d(t,"GithubPicker",(function(){return Ki})),n.d(t,"HuePicker",(function(){return Zi})),n.d(t,"MaterialPicker",(function(){return Ji})),n.d(t,"PhotoshopPicker",(function(){return so})),n.d(t,"SketchPicker",(function(){return mo})),n.d(t,"SliderPicker",(function(){return _o})),n.d(t,"SwatchesPicker",(function(){return Oo})),n.d(t,"TwitterPicker",(function(){return To})),n.d(t,"GooglePicker",(function(){return Lo})),n.d(t,"CustomPicker",(function(){return Ln}));var r=n(0),i=n.n(r),o=n(12),a=n.n(o),s=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(r!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null},l={},u=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(l[i])return l[i];var o=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return l[i]=o,o},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e){var t=e.white,n=e.grey,o=e.size,s=e.renderers,l=e.borderRadius,d=e.boxShadow,f=e.children,p=a()({default:{grid:{borderRadius:l,boxShadow:d,absolute:"0px 0px 0px 0px",background:"url("+u(t,n,o,s.canvas)+") center left"}}});return Object(r.isValidElement)(f)?i.a.cloneElement(f,c({},f.props,{style:c({},f.props.style,p.grid)})):i.a.createElement("div",{style:p.grid})};d.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var f=d,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=function(e){function t(){var e,n,r;m(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=s(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=a()({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:p({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return i.a.createElement("div",{style:n.alpha},i.a.createElement("div",{style:n.checkboard},i.a.createElement(f,{renderers:this.props.renderers})),i.a.createElement("div",{style:n.gradient}),i.a.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.a.createElement("div",{style:n.pointer},this.props.pointer?i.a.createElement(this.props.pointer,this.props):i.a.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var b=[38,40],_=1,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,b.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),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(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+_++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),y(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.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(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=a()({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 i.a.createElement("div",{style:t.wrap},i.a.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},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?i.a.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component),x=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{c=360*(-100*u/o+100)/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(l<0)d=0;else if(l>i)d=359;else{d=360*(100*l/i)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=function(e){function t(){var e,n,r;E(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=S(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=x(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},S(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),k(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=a()({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return i.a.createElement("div",{style:r.hue},i.a.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.a.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),i.a.createElement("div",{style:r.pointer},this.props.pointer?i.a.createElement(this.props.pointer,this.props):i.a.createElement("div",{style:r.slider}))))}}]),t}(r.PureComponent||r.Component),C=n(2),T=n.n(C);var A=function(){this.__data__=[],this.size=0};var P=function(e,t){return e===t||e!=e&&t!=t};var R=function(e,t){for(var n=e.length;n--;)if(P(e[n][0],t))return n;return-1},j=Array.prototype.splice;var I=function(e){var t=this.__data__,n=R(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),--this.size,!0)};var M=function(e){var t=this.__data__,n=R(t,e);return n<0?void 0:t[n][1]};var L=function(e){return R(this.__data__,e)>-1};var D=function(e,t){var n=this.__data__,r=R(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function N(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N.prototype.clear=A,N.prototype.delete=I,N.prototype.get=M,N.prototype.has=L,N.prototype.set=D;var F=N;var B=function(){this.__data__=new F,this.size=0};var z=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var U=function(e){return this.__data__.get(e)};var q=function(e){return this.__data__.has(e)},W=n(57),H=W.a.Symbol,$=Object.prototype,V=$.hasOwnProperty,G=$.toString,K=H?H.toStringTag:void 0;var Y=function(e){var t=V.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(e){}var i=G.call(e);return r&&(t?e[K]=n:delete e[K]),i},Q=Object.prototype.toString;var X=function(e){return Q.call(e)},Z=H?H.toStringTag:void 0;var J=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?Y(e):X(e)};var ee=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var te,ne=function(e){if(!ee(e))return!1;var t=J(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},re=W.a["__core-js_shared__"],ie=(te=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"";var oe=function(e){return!!ie&&ie in e},ae=Function.prototype.toString;var se=function(e){if(null!=e){try{return ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""},le=/^\[object .+?Constructor\]$/,ue=Function.prototype,ce=Object.prototype,de=ue.toString,fe=ce.hasOwnProperty,pe=RegExp("^"+de.call(fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var he=function(e){return!(!ee(e)||oe(e))&&(ne(e)?pe:le).test(se(e))};var me=function(e,t){return null==e?void 0:e[t]};var ge=function(e,t){var n=me(e,t);return he(n)?n:void 0},ve=ge(W.a,"Map"),ye=ge(Object,"create");var be=function(){this.__data__=ye?ye(null):{},this.size=0};var _e=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},we=Object.prototype.hasOwnProperty;var xe=function(e){var t=this.__data__;if(ye){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},ke=Object.prototype.hasOwnProperty;var Ee=function(e){var t=this.__data__;return ye?void 0!==t[e]:ke.call(t,e)};var Se=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ye&&void 0===t?"__lodash_hash_undefined__":t,this};function Oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Oe.prototype.clear=be,Oe.prototype.delete=_e,Oe.prototype.get=xe,Oe.prototype.has=Ee,Oe.prototype.set=Se;var Ce=Oe;var Te=function(){this.size=0,this.__data__={hash:new Ce,map:new(ve||F),string:new Ce}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Pe=function(e,t){var n=e.__data__;return Ae(t)?n["string"==typeof t?"string":"hash"]:n.map};var Re=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t};var je=function(e){return Pe(this,e).get(e)};var Ie=function(e){return Pe(this,e).has(e)};var Me=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Le.prototype.clear=Te,Le.prototype.delete=Re,Le.prototype.get=je,Le.prototype.has=Ie,Le.prototype.set=Me;var De=Le;var Ne=function(e,t){var n=this.__data__;if(n instanceof F){var r=n.__data__;if(!ve||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new De(r)}return n.set(e,t),this.size=n.size,this};function Fe(e){var t=this.__data__=new F(e);this.size=t.size}Fe.prototype.clear=B,Fe.prototype.delete=z,Fe.prototype.get=U,Fe.prototype.has=q,Fe.prototype.set=Ne;var Be=Fe,ze=function(){try{var e=ge(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Ue=function(e,t,n){"__proto__"==t&&ze?ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var qe=function(e,t,n){(void 0!==n&&!P(e[t],n)||void 0===n&&!(t in e))&&Ue(e,t,n)};var We=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}(),He=n(770),$e=W.a.Uint8Array;var Ve=function(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t};var Ge=function(e,t){var n=t?Ve(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Ke=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ye=Object.create,Qe=function(){function e(){}return function(t){if(!ee(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Xe=function(e,t){return function(n){return e(t(n))}},Ze=Xe(Object.getPrototypeOf,Object),Je=Object.prototype;var et=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Je)};var tt=function(e){return"function"!=typeof e.constructor||et(e)?{}:Qe(Ze(e))};var nt=function(e){return null!=e&&"object"==typeof e};var rt=function(e){return nt(e)&&"[object Arguments]"==J(e)},it=Object.prototype,ot=it.hasOwnProperty,at=it.propertyIsEnumerable,st=rt(function(){return arguments}())?rt:function(e){return nt(e)&&ot.call(e,"callee")&&!at.call(e,"callee")},lt=Array.isArray;var ut=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ct=function(e){return null!=e&&ut(e.length)&&!ne(e)};var dt=function(e){return nt(e)&&ct(e)},ft=n(205),pt=Function.prototype,ht=Object.prototype,mt=pt.toString,gt=ht.hasOwnProperty,vt=mt.call(Object);var yt=function(e){if(!nt(e)||"[object Object]"!=J(e))return!1;var t=Ze(e);if(null===t)return!0;var n=gt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&mt.call(n)==vt},bt={};bt["[object Float32Array]"]=bt["[object Float64Array]"]=bt["[object Int8Array]"]=bt["[object Int16Array]"]=bt["[object Int32Array]"]=bt["[object Uint8Array]"]=bt["[object Uint8ClampedArray]"]=bt["[object Uint16Array]"]=bt["[object Uint32Array]"]=!0,bt["[object Arguments]"]=bt["[object Array]"]=bt["[object ArrayBuffer]"]=bt["[object Boolean]"]=bt["[object DataView]"]=bt["[object Date]"]=bt["[object Error]"]=bt["[object Function]"]=bt["[object Map]"]=bt["[object Number]"]=bt["[object Object]"]=bt["[object RegExp]"]=bt["[object Set]"]=bt["[object String]"]=bt["[object WeakMap]"]=!1;var _t=function(e){return nt(e)&&ut(e.length)&&!!bt[J(e)]};var wt=function(e){return function(t){return e(t)}},xt=n(490),kt=xt.a&&xt.a.isTypedArray,Et=kt?wt(kt):_t;var St=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ot=Object.prototype.hasOwnProperty;var Ct=function(e,t,n){var r=e[t];Ot.call(e,t)&&P(r,n)&&(void 0!==n||t in e)||Ue(e,t,n)};var Tt=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Ue(n,s,l):Ct(n,s,l)}return n};var At=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Pt=/^(?:0|[1-9]\d*)$/;var Rt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Pt.test(e))&&e>-1&&e%1==0&&e<t},jt=Object.prototype.hasOwnProperty;var It=function(e,t){var n=lt(e),r=!n&&st(e),i=!n&&!r&&Object(ft.a)(e),o=!n&&!r&&!i&&Et(e),a=n||r||i||o,s=a?At(e.length,String):[],l=s.length;for(var u in e)!t&&!jt.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Rt(u,l))||s.push(u);return s};var Mt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Lt=Object.prototype.hasOwnProperty;var Dt=function(e){if(!ee(e))return Mt(e);var t=et(e),n=[];for(var r in e)("constructor"!=r||!t&&Lt.call(e,r))&&n.push(r);return n};var Nt=function(e){return ct(e)?It(e,!0):Dt(e)};var Ft=function(e){return Tt(e,Nt(e))};var Bt=function(e,t,n,r,i,o,a){var s=St(e,n),l=St(t,n),u=a.get(l);if(u)qe(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=lt(l),p=!f&&Object(ft.a)(l),h=!f&&!p&&Et(l);c=l,f||p||h?lt(s)?c=s:dt(s)?c=Ke(s):p?(d=!1,c=Object(He.a)(l,!0)):h?(d=!1,c=Ge(l,!0)):c=[]:yt(l)||st(l)?(c=s,st(s)?c=Ft(s):ee(s)&&!ne(s)||(c=tt(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),qe(e,n,c)}};var zt=function e(t,n,r,i,o){t!==n&&We(n,(function(a,s){if(o||(o=new Be),ee(a))Bt(t,n,s,r,e,i,o);else{var l=i?i(St(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),qe(t,s,l)}}),Nt)};var Ut=function(e){return e};var qt=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Wt=Math.max;var Ht=function(e,t,n){return t=Wt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Wt(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),qt(e,this,s)}};var $t=function(e){return function(){return e}},Vt=ze?function(e,t){return ze(e,"toString",{configurable:!0,enumerable:!1,value:$t(t),writable:!0})}:Ut,Gt=Date.now;var Kt=function(e){var t=0,n=0;return function(){var r=Gt(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Vt);var Yt=function(e,t){return Kt(Ht(e,t,Ut),e+"")};var Qt=function(e,t,n){if(!ee(n))return!1;var r=typeof t;return!!("number"==r?ct(n)&&Rt(t,n.length):"string"==r&&t in n)&&P(n[t],e)};var Xt=function(e){return Yt((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Qt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}((function(e,t,n){zt(e,t,n)})),Zt=function(e){var t=e.zDepth,n=e.radius,r=e.background,o=e.children,s=e.styles,l=void 0===s?{}:s,u=a()(Xt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return i.a.createElement("div",{style:u.wrap},i.a.createElement("div",{style:u.bg}),i.a.createElement("div",{style:u.content},o))};Zt.propTypes={background:T.a.string,zDepth:T.a.oneOf([0,1,2,3,4,5]),radius:T.a.number,styles:T.a.object},Zt.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Jt=Zt,en=function(){return W.a.Date.now()},tn=/\s/;var nn=function(e){for(var t=e.length;t--&&tn.test(e.charAt(t)););return t},rn=/^\s+/;var on=function(e){return e?e.slice(0,nn(e)+1).replace(rn,""):e};var an=function(e){return"symbol"==typeof e||nt(e)&&"[object Symbol]"==J(e)},sn=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,un=/^0o[0-7]+$/i,cn=parseInt;var dn=function(e){if("number"==typeof e)return e;if(an(e))return NaN;if(ee(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ee(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=on(e);var n=ln.test(e);return n||un.test(e)?cn(e.slice(2),n?2:8):sn.test(e)?NaN:+e},fn=Math.max,pn=Math.min;var hn=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){return u=e,s=setTimeout(g,t),c?p(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function g(){var e=en();if(m(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?pn(n,o-(e-u)):n}(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=en(),n=m(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=dn(t)||0,ee(n)&&(c=!!n.leading,o=(d="maxWait"in n)?fn(dn(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(en())},y};var mn=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ee(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),hn(e,t,{leading:r,maxWait:t,trailing:i})},gn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var vn=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=mn((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),gn(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,s=t.pointer,l=t.circle,u=a()({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:s,circle:l}},{custom:!!this.props.style});return i.a.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.a.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),i.a.createElement("div",{style:u.white,className:"saturation-white"},i.a.createElement("div",{style:u.black,className:"saturation-black"}),i.a.createElement("div",{style:u.pointer},this.props.pointer?i.a.createElement(this.props.pointer,this.props):i.a.createElement("div",{style:u.circle}))))}}]),t}(r.PureComponent||r.Component);var yn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},bn=Xe(Object.keys,Object),_n=Object.prototype.hasOwnProperty;var wn=function(e){if(!et(e))return bn(e);var t=[];for(var n in Object(e))_n.call(e,n)&&"constructor"!=n&&t.push(n);return t};var xn=function(e){return ct(e)?It(e):wn(e)};var kn=function(e,t){return function(n,r){if(null==n)return n;if(!ct(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}((function(e,t){return e&&We(e,t,xn)}));var En=function(e){return"function"==typeof e?e:Ut};var Sn=function(e,t){return(lt(e)?yn:kn)(e,En(t))},On=n(280),Cn=n.n(On),Tn=function(e){var t=0,n=0;return Sn(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},An=function(e,t){var n=e.hex?Cn()(e.hex):Cn()(e),r=n.toHsl(),i=n.toHsv(),o=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===a&&0===o.a?"transparent":"#"+a,rgb:o,hsv:i,oldHue:e.h||t||r.h,source:e.source}},Pn=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Cn()(e).isValid()},Rn=function(e){if(!e)return"#fff";var t=An(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},jn=function(e,t){var n=e.replace("°","");return Cn()(t+" ("+n+")")._ok},In=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Ln=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(Tn(e)){var r=An(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(Tn(e)){var r=An(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=In({},An(e.color,0)),t.debounce=hn((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),Mn(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),i.a.createElement(e,In({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return In({},An(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=In({},e.propTypes),t.defaultProps=In({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},Dn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function zn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;Fn(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=Bn(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Bn(n,t)}return zn(r,n),Nn(r,[{key:"render",value:function(){return i.a.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},i.a.createElement(e,Dn({},this.props,this.state)))}}]),r}(i.a.Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,o=void 0===r?function(){}:r,s=e.onHover,l=e.title,u=void 0===l?t:l,c=e.children,d=e.focus,p=e.focusStyle,h=void 0===p?{}:p,m="transparent"===t,g=a()({default:{swatch:Un({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?h:{})}}),v={};return s&&(v.onMouseOver=function(e){return s(t,e)}),i.a.createElement("div",Un({style:g.swatch,onClick:function(e){return o(t,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(t,e)}},v),c,m&&i.a.createElement(f,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),Wn=function(e){var t=e.direction,n=a()({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:"vertical"===t});return i.a.createElement("div",{style:n.picker})},Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n=function(e){var t=e.rgb,n=e.hsl,r=e.width,o=e.height,s=e.onChange,l=e.direction,u=e.style,c=e.renderers,d=e.pointer,f=e.className,p=void 0===f?"":f,h=a()({default:{picker:{position:"relative",width:r,height:o},alpha:{radius:"2px",style:u}}});return i.a.createElement("div",{style:h.picker,className:"alpha-picker "+p},i.a.createElement(v,Hn({},h.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:s,direction:l})))};$n.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Wn};var Vn=Ln($n);var Gn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var Kn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Yn=function(e){return this.__data__.has(e)};function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new De;++t<n;)this.add(e[t])}Qn.prototype.add=Qn.prototype.push=Kn,Qn.prototype.has=Yn;var Xn=Qn;var Zn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Jn=function(e,t){return e.has(t)};var er=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Xn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=a?r(m,h,d,t,e,o):r(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Zn(t,(function(e,t){if(!Jn(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!i(h,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f};var tr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var nr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rr=H?H.prototype:void 0,ir=rr?rr.valueOf:void 0;var or=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new $e(e),new $e(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return P(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tr;case"[object Set]":var l=1&r;if(s||(s=nr),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=er(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(ir)return ir.call(e)==ir.call(t)}return!1};var ar=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var sr=function(e,t,n){var r=t(e);return lt(e)?r:ar(r,n(e))};var lr=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var ur=function(){return[]},cr=Object.prototype.propertyIsEnumerable,dr=Object.getOwnPropertySymbols,fr=dr?function(e){return null==e?[]:(e=Object(e),lr(dr(e),(function(t){return cr.call(e,t)})))}:ur;var pr=function(e){return sr(e,xn,fr)},hr=Object.prototype.hasOwnProperty;var mr=function(e,t,n,r,i,o){var a=1&n,s=pr(e),l=s.length;if(l!=pr(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:hr.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var v=a?r(g,m,c,t,e,o):r(m,g,c,e,t,o);if(!(void 0===v?m===g||i(m,g,n,r,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},gr=ge(W.a,"DataView"),vr=ge(W.a,"Promise"),yr=ge(W.a,"Set"),br=ge(W.a,"WeakMap"),_r=se(gr),wr=se(ve),xr=se(vr),kr=se(yr),Er=se(br),Sr=J;(gr&&"[object DataView]"!=Sr(new gr(new ArrayBuffer(1)))||ve&&"[object Map]"!=Sr(new ve)||vr&&"[object Promise]"!=Sr(vr.resolve())||yr&&"[object Set]"!=Sr(new yr)||br&&"[object WeakMap]"!=Sr(new br))&&(Sr=function(e){var t=J(e),n="[object Object]"==t?e.constructor:void 0,r=n?se(n):"";if(r)switch(r){case _r:return"[object DataView]";case wr:return"[object Map]";case xr:return"[object Promise]";case kr:return"[object Set]";case Er:return"[object WeakMap]"}return t});var Or=Sr,Cr=Object.prototype.hasOwnProperty;var Tr=function(e,t,n,r,i,o){var a=lt(e),s=lt(t),l=a?"[object Array]":Or(e),u=s?"[object Array]":Or(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f=l==u;if(f&&Object(ft.a)(e)){if(!Object(ft.a)(t))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new Be),a||Et(e)?er(e,t,n,r,i,o):or(e,t,l,n,r,i,o);if(!(1&n)){var p=c&&Cr.call(e,"__wrapped__"),h=d&&Cr.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new Be),i(m,g,n,r,o)}}return!!f&&(o||(o=new Be),mr(e,t,n,r,i,o))};var Ar=function e(t,n,r,i,o){return t===n||(null==t||null==n||!nt(t)&&!nt(n)?t!=t&&n!=n:Tr(t,n,r,i,e,o))};var Pr=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new Be;if(r)var f=r(u,c,l,e,t,d);if(!(void 0===f?Ar(c,u,3,r,d):f))return!1}}return!0};var Rr=function(e){return e==e&&!ee(e)};var jr=function(e){for(var t=xn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Rr(i)]}return t};var Ir=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var Mr=function(e){var t=jr(e);return 1==t.length&&t[0][2]?Ir(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}},Lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;var Nr=function(e,t){if(lt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!an(e))||(Dr.test(e)||!Lr.test(e)||null!=t&&e in Object(t))};function Fr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fr.Cache||De),n}Fr.Cache=De;var Br=Fr;var zr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/\\(\\)?/g,qr=function(e){var t=Br(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(zr,(function(e,n,r,i){t.push(r?i.replace(Ur,"$1"):n||e)})),t})),Wr=H?H.prototype:void 0,Hr=Wr?Wr.toString:void 0;var $r=function e(t){if("string"==typeof t)return t;if(lt(t))return Gn(t,e)+"";if(an(t))return Hr?Hr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Vr=function(e){return null==e?"":$r(e)};var Gr=function(e,t){return lt(e)?e:Nr(e,t)?[e]:qr(Vr(e))};var Kr=function(e){if("string"==typeof e||an(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Yr=function(e,t){for(var n=0,r=(t=Gr(t,e)).length;null!=e&&n<r;)e=e[Kr(t[n++])];return n&&n==r?e:void 0};var Qr=function(e,t,n){var r=null==e?void 0:Yr(e,t);return void 0===r?n:r};var Xr=function(e,t){return null!=e&&t in Object(e)};var Zr=function(e,t,n){for(var r=-1,i=(t=Gr(t,e)).length,o=!1;++r<i;){var a=Kr(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ut(i)&&Rt(a,i)&&(lt(e)||st(e))};var Jr=function(e,t){return null!=e&&Zr(e,t,Xr)};var ei=function(e,t){return Nr(e)&&Rr(t)?Ir(Kr(e),t):function(n){var r=Qr(n,e);return void 0===r&&r===t?Jr(n,e):Ar(t,r,3)}};var ti=function(e){return function(t){return null==t?void 0:t[e]}};var ni=function(e){return function(t){return Yr(t,e)}};var ri=function(e){return Nr(e)?ti(Kr(e)):ni(e)};var ii=function(e){return"function"==typeof e?e:null==e?Ut:"object"==typeof e?lt(e)?ei(e[0],e[1]):Mr(e):ri(e)};var oi=function(e,t){var n=-1,r=ct(e)?Array(e.length):[];return kn(e,(function(e,i,o){r[++n]=t(e,i,o)})),r};var ai=function(e,t){return(lt(e)?Gn:oi)(e,ii(t,3))},si=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,o=a()({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return i.a.createElement("div",{style:o.swatches},ai(t,(function(e){return i.a.createElement(qn,{key:e,color:e,style:o.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),i.a.createElement("div",{style:o.clear}))},li=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,s=e.width,l=e.triangle,u=e.styles,c=void 0===u?{}:u,d=e.className,p=void 0===d?"":d,h="transparent"===r,m=function(e,n){Pn(e)&&t({hex:e,source:"hex"},n)},g=a()(Xt({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Rn(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===l});return i.a.createElement("div",{style:g.card,className:"block-picker "+p},i.a.createElement("div",{style:g.triangle}),i.a.createElement("div",{style:g.head},h&&i.a.createElement(f,{borderRadius:"6px 6px 0 0"}),i.a.createElement("div",{style:g.label},r)),i.a.createElement("div",{style:g.body},i.a.createElement(si,{colors:o,onClick:m,onSwatchHover:n}),i.a.createElement(w,{style:{input:g.input},value:r,onChange:m})))};li.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),colors:T.a.arrayOf(T.a.string),triangle:T.a.oneOf(["top","hide"]),styles:T.a.object},li.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};var ui=Ln(li),ci={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},di={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},fi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},pi={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},hi={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},mi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},gi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},vi={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},yi={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},bi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},_i={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},wi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},xi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},ki={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Ei={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Si={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Oi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ci={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Ti=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,o=e.hover,s=e.active,l=e.circleSize,u=e.circleSpacing,c=a()({default:{swatch:{width:l,height:l,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:o,active:s});return i.a.createElement("div",{style:c.swatch},i.a.createElement(qn,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Ti.defaultProps={circleSize:28,circleSpacing:14};var Ai=Object(o.handleHover)(Ti),Pi=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,o=e.colors,s=e.hex,l=e.circleSize,u=e.styles,c=void 0===u?{}:u,d=e.circleSpacing,f=e.className,p=void 0===f?"":f,h=a()(Xt({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),m=function(e,t){return n({hex:e,source:"hex"},t)};return i.a.createElement("div",{style:h.card,className:"circle-picker "+p},ai(o,(function(e){return i.a.createElement(Ai,{key:e,color:e,onClick:m,onSwatchHover:r,active:s===e.toLowerCase(),circleSize:l,circleSpacing:d})})))};Pi.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),circleSize:T.a.number,circleSpacing:T.a.number,styles:T.a.object},Pi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ci[500],di[500],fi[500],pi[500],hi[500],mi[500],gi[500],vi[500],yi[500],bi[500],_i[500],wi[500],xi[500],ki[500],Ei[500],Si[500],Oi[500],Ci[500]],styles:{}};var Ri=Ln(Pi);var ji=function(e){return void 0===e},Ii=n(771),Mi=n.n(Ii),Li=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Di=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?Pn(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(ji(e.s)?n.props.hsl.s:e.s),l:Number(ji(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Li(t,[{key:"render",value:function(){var e=this,t=a()({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),n=void 0;return"hex"===this.state.view?n=i.a.createElement("div",{style:t.fields,className:"flexbox-fix"},i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.a.createElement("div",{style:t.fields,className:"flexbox-fix"},i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.a.createElement("div",{style:t.alpha},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.a.createElement("div",{style:t.fields,className:"flexbox-fix"},i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.a.createElement("div",{style:t.field},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.a.createElement("div",{style:t.alpha},i.a.createElement(w,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.a.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.a.createElement("div",{style:t.toggle},i.a.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.a.createElement(Mi.a,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i.a.Component);Di.defaultProps={view:"hex"};var Ni=Di,Fi=function(){var e=a()({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 i.a.createElement("div",{style:e.picker})},Bi=function(){var e=a()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return i.a.createElement("div",{style:e.picker})},zi=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,o=e.rgb,s=e.hsl,l=e.hsv,u=e.hex,c=e.renderers,d=e.styles,p=void 0===d?{}:d,h=e.className,m=void 0===h?"":h,g=e.defaultView,y=a()(Xt({default:{picker:{width:t,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("+o.r+", "+o.g+", "+o.b+", "+o.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"}}},p),{disableAlpha:r});return i.a.createElement("div",{style:y.picker,className:"chrome-picker "+m},i.a.createElement("div",{style:y.saturation},i.a.createElement(vn,{style:y.Saturation,hsl:s,hsv:l,pointer:Bi,onChange:n})),i.a.createElement("div",{style:y.body},i.a.createElement("div",{style:y.controls,className:"flexbox-fix"},i.a.createElement("div",{style:y.color},i.a.createElement("div",{style:y.swatch},i.a.createElement("div",{style:y.active}),i.a.createElement(f,{renderers:c}))),i.a.createElement("div",{style:y.toggles},i.a.createElement("div",{style:y.hue},i.a.createElement(O,{style:y.Hue,hsl:s,pointer:Fi,onChange:n})),i.a.createElement("div",{style:y.alpha},i.a.createElement(v,{style:y.Alpha,rgb:o,hsl:s,pointer:Fi,renderers:c,onChange:n})))),i.a.createElement(Ni,{rgb:o,hsl:s,hex:u,view:g,onChange:n,disableAlpha:r})))};zi.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),disableAlpha:T.a.bool,styles:T.a.object,defaultView:T.a.oneOf(["hex","rgb","hsl"])},zi.defaultProps={width:225,disableAlpha:!1,styles:{}};var Ui=Ln(zi),qi=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,s=e.active,l=a()({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Rn(t),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:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i.a.createElement(qn,{style:l.color,color:t,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},i.a.createElement("div",{style:l.dot}))},Wi=function(e){var t=e.hex,n=e.rgb,r=e.onChange,o=a()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},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"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return i.a.createElement("div",{style:o.fields,className:"flexbox-fix"},i.a.createElement("div",{style:o.active}),i.a.createElement(w,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:s}),i.a.createElement(w,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),i.a.createElement(w,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),i.a.createElement(w,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}))},Hi=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,s=e.rgb,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,f=a()(Xt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(e,n){e.hex?Pn(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return i.a.createElement(Jt,{style:f.Compact,styles:u},i.a.createElement("div",{style:f.compact,className:"compact-picker "+d},i.a.createElement("div",null,ai(r,(function(e){return i.a.createElement(qi,{key:e,color:e,active:e.toLowerCase()===o,onClick:p,onSwatchHover:n})})),i.a.createElement("div",{style:f.clear})),i.a.createElement(Wi,{hex:o,rgb:s,onChange:p})))};Hi.propTypes={colors:T.a.arrayOf(T.a.string),styles:T.a.object},Hi.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:{}};var $i=Ln(Hi),Vi=Object(o.handleHover)((function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=a()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return i.a.createElement("div",{style:l.swatch},i.a.createElement(qn,{color:n,onClick:r,onHover:o,focusStyle:s}))})),Gi=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,s=e.triangle,l=e.styles,u=void 0===l?{}:l,c=e.className,d=void 0===c?"":c,f=a()(Xt({default:{card:{width:t,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":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),p=function(e,t){return r({hex:e,source:"hex"},t)};return i.a.createElement("div",{style:f.card,className:"github-picker "+d},i.a.createElement("div",{style:f.triangleShadow}),i.a.createElement("div",{style:f.triangle}),ai(n,(function(e){return i.a.createElement(Vi,{color:e,key:e,onClick:p,onSwatchHover:o})})))};Gi.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),colors:T.a.arrayOf(T.a.string),triangle:T.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:T.a.object},Gi.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};var Ki=Ln(Gi),Yi=function(e){var t=e.direction,n=a()({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:"vertical"===t});return i.a.createElement("div",{style:n.picker})},Qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xi=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.hsl,s=e.direction,l=e.pointer,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=a()(Xt({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return i.a.createElement("div",{style:p.picker,className:"hue-picker "+f},i.a.createElement(O,Qi({},p.hue,{hsl:o,pointer:l,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:s})))};Xi.propTypes={styles:T.a.object},Xi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Yi,styles:{}};var Zi=Ln(Xi),Ji=Ln((function(e){var t=e.onChange,n=e.hex,r=e.rgb,o=e.styles,s=void 0===o?{}:o,l=e.className,u=void 0===l?"":l,c=a()(Xt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),d=function(e,n){e.hex?Pn(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return i.a.createElement(Jt,{styles:s},i.a.createElement("div",{style:c.material,className:"material-picker "+u},i.a.createElement(w,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),i.a.createElement("div",{style:c.split,className:"flexbox-fix"},i.a.createElement("div",{style:c.third},i.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:d})),i.a.createElement("div",{style:c.third},i.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:d})),i.a.createElement("div",{style:c.third},i.a.createElement(w,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:d})))))})),eo=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,o=e.hex,s=a()({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(e,i){e["#"]?Pn(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},i)};return i.a.createElement("div",{style:s.fields},i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(r.h),onChange:l}),i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:l}),i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:l}),i.a.createElement("div",{style:s.divider}),i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:l}),i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:l}),i.a.createElement(w,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:l}),i.a.createElement("div",{style:s.divider}),i.a.createElement(w,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:o.replace("#",""),onChange:l}),i.a.createElement("div",{style:s.fieldSymbols},i.a.createElement("div",{style:s.symbol},"°"),i.a.createElement("div",{style:s.symbol},"%"),i.a.createElement("div",{style:s.symbol},"%")))},to=function(e){var t=e.hsl,n=a()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return i.a.createElement("div",{style:n.picker})},no=function(){var e=a()({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 i.a.createElement("div",{style:e.pointer},i.a.createElement("div",{style:e.left},i.a.createElement("div",{style:e.leftInside})),i.a.createElement("div",{style:e.right},i.a.createElement("div",{style:e.rightInside})))},ro=function(e){var t=e.onClick,n=e.label,r=e.children,o=e.active,s=a()({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:o});return i.a.createElement("div",{style:s.button,onClick:t},n||r)},io=function(e){var t=e.rgb,n=e.currentColor,r=a()({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.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 i.a.createElement("div",null,i.a.createElement("div",{style:r.label},"new"),i.a.createElement("div",{style:r.swatches},i.a.createElement("div",{style:r.new}),i.a.createElement("div",{style:r.current})),i.a.createElement("div",{style:r.label},"current"))},oo=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var ao=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oo(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,s=a()(Xt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return i.a.createElement("div",{style:s.picker,className:"photoshop-picker "+o},i.a.createElement("div",{style:s.head},this.props.header),i.a.createElement("div",{style:s.body,className:"flexbox-fix"},i.a.createElement("div",{style:s.saturation},i.a.createElement(vn,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:to,onChange:this.props.onChange})),i.a.createElement("div",{style:s.hue},i.a.createElement(O,{direction:"vertical",hsl:this.props.hsl,pointer:no,onChange:this.props.onChange})),i.a.createElement("div",{style:s.controls},i.a.createElement("div",{style:s.top,className:"flexbox-fix"},i.a.createElement("div",{style:s.previews},i.a.createElement(io,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i.a.createElement("div",{style:s.actions},i.a.createElement(ro,{label:"OK",onClick:this.props.onAccept,active:!0}),i.a.createElement(ro,{label:"Cancel",onClick:this.props.onCancel}),i.a.createElement(eo,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(i.a.Component);ao.propTypes={header:T.a.string,styles:T.a.object},ao.defaultProps={header:"Color Picker",styles:{}};var so=Ln(ao),lo=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,s=e.disableAlpha,l=a()({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),u=function(e,i){e.hex?Pn(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return i.a.createElement("div",{style:l.fields,className:"flexbox-fix"},i.a.createElement("div",{style:l.double},i.a.createElement(w,{style:{input:l.input,label:l.label},label:"hex",value:o.replace("#",""),onChange:u})),i.a.createElement("div",{style:l.single},i.a.createElement(w,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),i.a.createElement("div",{style:l.single},i.a.createElement(w,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),i.a.createElement("div",{style:l.single},i.a.createElement(w,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),i.a.createElement("div",{style:l.alpha},i.a.createElement(w,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:u,dragLabel:"true",dragMax:"100"})))},uo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,s=a()({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),l=function(e,t){r({hex:e,source:"hex"},t)};return i.a.createElement("div",{style:s.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return i.a.createElement("div",{key:n,style:s.swatchWrap},i.a.createElement(qn,uo({},t,{style:s.swatch,onClick:l,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};co.propTypes={colors:T.a.arrayOf(T.a.oneOfType([T.a.string,T.a.shape({color:T.a.string,title:T.a.string})])).isRequired};var fo=co,po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ho=function(e){var t=e.width,n=e.rgb,r=e.hex,o=e.hsv,s=e.hsl,l=e.onChange,u=e.onSwatchHover,c=e.disableAlpha,d=e.presetColors,p=e.renderers,h=e.styles,m=void 0===h?{}:h,g=e.className,y=void 0===g?"":g,b=a()(Xt({default:po({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},m),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},m),{disableAlpha:c});return i.a.createElement("div",{style:b.picker,className:"sketch-picker "+y},i.a.createElement("div",{style:b.saturation},i.a.createElement(vn,{style:b.Saturation,hsl:s,hsv:o,onChange:l})),i.a.createElement("div",{style:b.controls,className:"flexbox-fix"},i.a.createElement("div",{style:b.sliders},i.a.createElement("div",{style:b.hue},i.a.createElement(O,{style:b.Hue,hsl:s,onChange:l})),i.a.createElement("div",{style:b.alpha},i.a.createElement(v,{style:b.Alpha,rgb:n,hsl:s,renderers:p,onChange:l}))),i.a.createElement("div",{style:b.color},i.a.createElement(f,null),i.a.createElement("div",{style:b.activeColor}))),i.a.createElement(lo,{rgb:n,hsl:s,hex:r,onChange:l,disableAlpha:c}),i.a.createElement(fo,{colors:d,onClick:l,onSwatchHover:u}))};ho.propTypes={disableAlpha:T.a.bool,width:T.a.oneOfType([T.a.string,T.a.number]),styles:T.a.object},ho.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var mo=Ln(ho),go=function(e){var t=e.hsl,n=e.offset,r=e.onClick,o=void 0===r?function(){}:r,s=e.active,l=e.first,u=e.last,c=a()({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:l,last:u});return i.a.createElement("div",{style:c.swatch,onClick:function(e){return o({h:t.h,s:.5,l:n,source:"hsl"},e)}})},vo=function(e){var t=e.onClick,n=e.hsl,r=a()({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return i.a.createElement("div",{style:r.swatches},i.a.createElement("div",{style:r.swatch},i.a.createElement(go,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),i.a.createElement("div",{style:r.swatch},i.a.createElement(go,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),i.a.createElement("div",{style:r.swatch},i.a.createElement(go,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),i.a.createElement("div",{style:r.swatch},i.a.createElement(go,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),i.a.createElement("div",{style:r.swatch},i.a.createElement(go,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),i.a.createElement("div",{style:r.clear}))},yo=function(){var e=a()({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return i.a.createElement("div",{style:e.picker})},bo=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,o=e.styles,s=void 0===o?{}:o,l=e.className,u=void 0===l?"":l,c=a()(Xt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return i.a.createElement("div",{style:c.wrap||{},className:"slider-picker "+u},i.a.createElement("div",{style:c.hue},i.a.createElement(O,{style:c.Hue,hsl:t,pointer:r,onChange:n})),i.a.createElement("div",{style:c.swatches},i.a.createElement(vo,{hsl:t,onClick:n})))};bo.propTypes={styles:T.a.object},bo.defaultProps={pointer:yo,styles:{}};var _o=Ln(bo),wo=n(772),xo=n.n(wo),ko=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,s=e.first,l=e.last,u=e.active,c=a()({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Rn(t),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:s,last:l,active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i.a.createElement(qn,{color:t,style:c.color,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},i.a.createElement("div",{style:c.check},i.a.createElement(xo.a,null)))},Eo=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,o=e.active,s=a()({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return i.a.createElement("div",{style:s.group},ai(r,(function(e,a){return i.a.createElement(ko,{key:e,color:e,active:e.toLowerCase()===o,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})})))},So=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.onSwatchHover,s=e.colors,l=e.hex,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=a()(Xt({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return r({hex:e,source:"hex"},t)};return i.a.createElement("div",{style:p.picker,className:"swatches-picker "+f},i.a.createElement(Jt,null,i.a.createElement("div",{style:p.overflow},i.a.createElement("div",{style:p.body},ai(s,(function(e){return i.a.createElement(Eo,{key:e.toString(),group:e,active:l,onClick:h,onSwatchHover:o})})),i.a.createElement("div",{style:p.clear})))))};So.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),height:T.a.oneOfType([T.a.string,T.a.number]),colors:T.a.arrayOf(T.a.arrayOf(T.a.string)),styles:T.a.object},So.defaultProps={width:320,height:240,colors:[[ci[900],ci[700],ci[500],ci[300],ci[100]],[di[900],di[700],di[500],di[300],di[100]],[fi[900],fi[700],fi[500],fi[300],fi[100]],[pi[900],pi[700],pi[500],pi[300],pi[100]],[hi[900],hi[700],hi[500],hi[300],hi[100]],[mi[900],mi[700],mi[500],mi[300],mi[100]],[gi[900],gi[700],gi[500],gi[300],gi[100]],[vi[900],vi[700],vi[500],vi[300],vi[100]],[yi[900],yi[700],yi[500],yi[300],yi[100]],["#194D33",bi[700],bi[500],bi[300],bi[100]],[_i[900],_i[700],_i[500],_i[300],_i[100]],[wi[900],wi[700],wi[500],wi[300],wi[100]],[xi[900],xi[700],xi[500],xi[300],xi[100]],[ki[900],ki[700],ki[500],ki[300],ki[100]],[Ei[900],Ei[700],Ei[500],Ei[300],Ei[100]],[Si[900],Si[700],Si[500],Si[300],Si[100]],[Oi[900],Oi[700],Oi[500],Oi[300],Oi[100]],[Ci[900],Ci[700],Ci[500],Ci[300],Ci[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};var Oo=Ln(So),Co=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,s=e.width,l=e.triangle,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=a()(Xt({default:{card:{width:s,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"}}},c),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),h=function(e,n){Pn(e)&&t({hex:e,source:"hex"},n)};return i.a.createElement("div",{style:p.card,className:"twitter-picker "+f},i.a.createElement("div",{style:p.triangleShadow}),i.a.createElement("div",{style:p.triangle}),i.a.createElement("div",{style:p.body},ai(o,(function(e,t){return i.a.createElement(qn,{key:t,color:e,hex:e,style:p.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),i.a.createElement("div",{style:p.hash},"#"),i.a.createElement(w,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:h}),i.a.createElement("div",{style:p.clear})))};Co.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),triangle:T.a.oneOf(["hide","top-left","top-right"]),colors:T.a.arrayOf(T.a.string),styles:T.a.object},Co.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};var To=Ln(Co),Ao=function(e){var t=a()({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(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return i.a.createElement("div",{style:t.picker})};Ao.propTypes={hsl:T.a.shape({h:T.a.number,s:T.a.number,l:T.a.number,a:T.a.number})},Ao.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Po=Ao,Ro=function(e){var t=a()({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 i.a.createElement("div",{style:t.picker})};Ro.propTypes={hsl:T.a.shape({h:T.a.number,s:T.a.number,l:T.a.number,a:T.a.number})},Ro.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var jo=Ro,Io=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,s=e.hsv,l=function(e,n){if(e.hex)Pn(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");jn(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var i=e.hsv.split(",");jn(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("°",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},n))}else if(e.hsl){var o=e.hsl.split(",");jn(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==f[1]?f[1]=.01:1==f[2]&&(f[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},n))}},u=a()({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"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",f=Math.round(s.h)+"°, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return i.a.createElement("div",{style:u.wrap,className:"flexbox-fix"},i.a.createElement("div",{style:u.fields},i.a.createElement("div",{style:u.double},i.a.createElement(w,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:l})),i.a.createElement("div",{style:u.column},i.a.createElement("div",{style:u.single},i.a.createElement(w,{style:{input:u.input2,label:u.label2},label:"rgb",value:c,onChange:l})),i.a.createElement("div",{style:u.single},i.a.createElement(w,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:l})),i.a.createElement("div",{style:u.single},i.a.createElement(w,{style:{input:u.input2,label:u.label2},label:"hsl",value:d,onChange:l})))))},Mo=function(e){var t=e.width,n=e.onChange,r=e.rgb,o=e.hsl,s=e.hsv,l=e.hex,u=e.header,c=e.styles,d=void 0===c?{}:c,f=e.className,p=void 0===f?"":f,h=a()(Xt({default:{picker:{width:t,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("+r.r+", "+r.g+", "+r.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"}}},d));return i.a.createElement("div",{style:h.picker,className:"google-picker "+p},i.a.createElement("div",{style:h.head},u),i.a.createElement("div",{style:h.swatch}),i.a.createElement("div",{style:h.saturation},i.a.createElement(vn,{hsl:o,hsv:s,pointer:Po,onChange:n})),i.a.createElement("div",{style:h.body},i.a.createElement("div",{style:h.controls,className:"flexbox-fix"},i.a.createElement("div",{style:h.hue},i.a.createElement(O,{style:h.Hue,hsl:o,radius:"4px",pointer:jo,onChange:n}))),i.a.createElement(Io,{rgb:r,hsl:o,hex:l,hsv:s,onChange:n})))};Mo.propTypes={width:T.a.oneOfType([T.a.string,T.a.number]),styles:T.a.object,header:T.a.string},Mo.defaultProps={width:652,styles:{},header:"Color picker"};var Lo=Ln(Mo)},function(e,t,n){"use strict";n.r(t),n.d(t,"DndContext",(function(){return r.a})),n.d(t,"DndProvider",(function(){return i.a})),n.d(t,"DragPreviewImage",(function(){return a})),n.d(t,"DragSource",(function(){return oe})),n.d(t,"DropTarget",(function(){return ye})),n.d(t,"DragLayer",(function(){return Pe})),n.d(t,"useDrag",(function(){return Je})),n.d(t,"useDrop",(function(){return st})),n.d(t,"useDragLayer",(function(){return ct})),n.d(t,"useDragDropManager",(function(){return De}));var r=n(343),i=n(616),o=n(0),a=Object(o.memo)((function(e){var t=e.connect,n=e.src;return Object(o.useEffect)((function(){if("undefined"!=typeof Image){var e=!1,r=new Image;return r.src=n,r.onload=function(){t(r),e=!0},function(){e&&t(null)}}})),null})),s=n(16);function l(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return[i,function(){return r.removeTarget(i)}]}function u(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}function c(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function d(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(o.isValidElement)(t)){var r=t;return e(r,n),r}var i=t;c(i);var a=n?function(t){return e(t,n)}:e;return p(i,a)}}(r);t[n]=function(){return i}}})),t}function f(e,t){"function"==typeof e?e(t):e.current=t}function p(e,t){var n=e.ref;return Object(s.a)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?Object(o.cloneElement)(e,{ref:function(e){f(n,e),f(t,e)}}):Object(o.cloneElement)(e,{ref:t})}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return null!==e&&"object"===h(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function g(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"hooks",d({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,m(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,m(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),y(this,"handlerId",null),y(this,"dragSourceRef",null),y(this,"dragSourceNode",void 0),y(this,"dragSourceOptionsInternal",null),y(this,"dragSourceUnsubscribe",void 0),y(this,"dragPreviewRef",null),y(this,"dragPreviewNode",void 0),y(this,"dragPreviewOptionsInternal",null),y(this,"dragPreviewUnsubscribe",void 0),y(this,"lastConnectedHandlerId",null),y(this,"lastConnectedDragSource",null),y(this,"lastConnectedDragSourceOptions",null),y(this,"lastConnectedDragPreview",null),y(this,"lastConnectedDragPreviewOptions",null),y(this,"backend",void 0),this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!g(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!g(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&v(t.prototype,n),r&&v(t,r),e}();function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=!1,k=!1,E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,"internalMonitor",void 0),w(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(s.a)(!x,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return x=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{x=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(s.a)(!k,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return k=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{k=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&_(t.prototype,n),r&&_(t,r),e}();function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function C(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function T(e){return"function"==typeof e}function A(){}function P(e){if(!function(e){return"object"===S(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function R(e,t){return"string"==typeof e||"symbol"===S(e)||!!t&&Array.isArray(e)&&e.every((function(e){return R(e,!1)}))}var j=n(179);function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(){function e(t){I(this,e),D(this,"isDisposed",!1),D(this,"action",void 0),this.action=T(t)?t:A}return L(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&T(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();D(N,"empty",{dispose:A});var F=function(){function e(){I(this,e),D(this,"isDisposed",!1),D(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return L(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),B=function(){function e(){I(this,e),D(this,"isDisposed",!1),D(this,"current",void 0)}return L(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),z=n(105),U=n.n(z);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var i=Q(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return K(this,n)}}function K(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){var t=e.DecoratedComponent,n=e.createHandler,i=e.createMonitor,a=e.createConnector,l=e.registerHandler,u=e.containerDisplayName,c=e.getType,d=e.collect,f=e.options.arePropsEqual,p=void 0===f?g:f,h=t,m=t.displayName||t.name||"Component",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(y,e);var t,u,f,v=G(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),X(Y(t=v.call(this,e)),"decoratedRef",Object(o.createRef)()),X(Y(t),"handlerId",void 0),X(Y(t),"manager",void 0),X(Y(t),"handlerMonitor",void 0),X(Y(t),"handlerConnector",void 0),X(Y(t),"handler",void 0),X(Y(t),"disposable",void 0),X(Y(t),"currentType",void 0),X(Y(t),"handleChange",(function(){var e=t.getCurrentState();g(e,t.state)||t.setState(e)})),t.disposable=new B,t.receiveProps(e),t.dispose(),t}return t=y,(u=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!p(e,this.props)||!g(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new B,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){p(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(c(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=W(l(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new F(new N(i),new N(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?d(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return Object(j.jsx)(r.a.Consumer,{children:function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),Object(j.jsx)(h,Object.assign({},e.props,e.getCurrentState(),{ref:C(h)?e.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(s.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m),void 0!==e&&(this.manager=e,this.handlerMonitor=i(e),this.handlerConnector=a(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&$(t.prototype,u),f&&$(t,f),y}(o.Component);return X(v,"DecoratedComponent",t),X(v,"displayName","".concat(u,"(").concat(m,")")),U()(v,t)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=["canDrag","beginDrag","isDragging","endDrag"],ne=["beginDrag"],re=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ee(this,"props",null),ee(this,"spec",void 0),ee(this,"monitor",void 0),ee(this,"ref",void 0),ee(this,"beginDrag",(function(){if(i.props)return i.spec.beginDrag(i.props,i.monitor,i.ref.current)})),this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,O(this.ref))}}])&&J(t.prototype,n),r&&J(t,r),e}();function ie(e){return Object.keys(e).forEach((function(t){Object(s.a)(te.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',te.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),ne.forEach((function(t){Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new re(e,t,n)}}function oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(Object(s.a)(R(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),Object(s.a)(P(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var o=ie(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(s.a)(P(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return Z({containerDisplayName:"DragSource",createHandler:o,registerHandler:u,createConnector:function(e){return new b(e)},createMonitor:function(e){return new E(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=!1,ue=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se(this,"internalMonitor",void 0),se(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(s.a)(!le,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return le=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{le=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&ae(t.prototype,n),r&&ae(t,r),e}();function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),de(this,"hooks",d({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,m(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),de(this,"handlerId",null),de(this,"dropTargetRef",null),de(this,"dropTargetNode",void 0),de(this,"dropTargetOptionsInternal",null),de(this,"unsubscribeDropTarget",void 0),de(this,"lastConnectedHandlerId",null),de(this,"lastConnectedDropTarget",null),de(this,"lastConnectedDropTargetOptions",null),de(this,"backend",void 0),this.backend=t}var t,n,r;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!g(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&ce(t.prototype,n),r&&ce(t,r),e}();function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=["canDrop","hover","drop"],ge=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),he(this,"props",null),he(this,"spec",void 0),he(this,"monitor",void 0),he(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,O(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&pe(t.prototype,n),r&&pe(t,r),e}();function ve(e){return Object.keys(e).forEach((function(t){Object(s.a)(me.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',me.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new ge(e,t,n)}}function ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(Object(s.a)(R(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),Object(s.a)(P(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var o=ve(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(s.a)(P(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return Z({containerDisplayName:"DropTarget",createHandler:o,registerHandler:l,createMonitor:function(e){return new ue(e)},createConnector:function(e){return new fe(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}}function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t,n){return t&&we(e.prototype,t),n&&we(e,n),e}function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ee(e,t)}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var i=Te(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"===be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ce(e)}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Object(s.a)(P(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var i=n,a=t.arePropsEqual,l=void 0===a?g:a,u=i.displayName||i.name||"Component",c=function(t){ke(a,t);var n=Se(a);function a(){var e;_e(this,a);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ae(Ce(e=n.call.apply(n,[this].concat(r))),"manager",void 0),Ae(Ce(e),"isCurrentlyMounted",!1),Ae(Ce(e),"unsubscribeFromOffsetChange",void 0),Ae(Ce(e),"unsubscribeFromStateChange",void 0),Ae(Ce(e),"ref",Object(o.createRef)()),Ae(Ce(e),"handleChange",(function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();g(t,e.state)||e.setState(t)}})),e}return xe(a,[{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!l(e,this.props)||!g(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return Object(j.jsx)(r.a.Consumer,{children:function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?Object(j.jsx)(i,Object.assign({},e.props,e.state,{ref:C(i)?e.ref:null}),void 0):null)}},void 0)}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,Object(s.a)("object"===be(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",u,u);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),a}(o.Component);return Ae(c,"displayName","DragLayer(".concat(u,")")),Ae(c,"DecoratedComponent",n),U()(c,n)}}var Re="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Me(this,"spec",void 0),Me(this,"monitor",void 0),Me(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=r}var t,n,r;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===je(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,r=this.monitor,i=n.isDragging;return i?i(r):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()}}])&&Ie(t.prototype,n),r&&Ie(t,r),e}();function De(){var e=Object(o.useContext)(r.a).dragDropManager;return Object(s.a)(null!=e,"Expected drag drop context"),e}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Be(e,t,n){var r=De(),i=function(e,t,n){var r=Object(o.useMemo)((function(){return new Le(e,t,n)}),[t,n]);return Object(o.useEffect)((function(){r.spec=e}),[e]),r}(e,t,n),a=function(e){return Object(o.useMemo)((function(){var t=e.type;return Object(s.a)(null!=t,"spec.type must be defined"),t}),[e])}(e);Re((function(){if(null!=a){var e=Ne(u(a,i,r),2),o=e[0],s=e[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),s}}),[r,t,n,i,a])}function ze(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qe(e,t){var n=ze(t||[]);return null==t&&"function"!=typeof e&&n.push(e),Object(o.useMemo)((function(){return"function"==typeof e?e():e}),n)}var We=n(274),He=n.n(We);function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e,t,n){var r=$e(Object(o.useState)((function(){return t(e)})),2),i=r[0],a=r[1],s=Object(o.useCallback)((function(){var r=t(e);He()(i,r)||(a(r),n&&n())}),[i,e,n]);return Re(s),[i,s]}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qe(e,t,n){return function(e,t,n){var r=Ke(Ge(e,t,n),2),i=r[0],o=r[1];return Re((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}(t,e||function(){return{}},(function(){return n.reconnect()}))}function Xe(e){return Object(o.useMemo)((function(){return e.hooks.dragSource()}),[e])}function Ze(e){return Object(o.useMemo)((function(){return e.hooks.dragPreview()}),[e])}function Je(e,t){var n=qe(e,t);Object(s.a)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,i=(r=De(),Object(o.useMemo)((function(){return new E(r)}),[r])),a=function(e,t){var n=De(),r=Object(o.useMemo)((function(){return new b(n.getBackend())}),[n]);return Re((function(){return r.dragSourceOptions=e||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,e]),Re((function(){return r.dragPreviewOptions=t||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,t]),r}(n.options,n.previewOptions);return Be(n,i,a),[Qe(n.collect,i,a),Xe(a),Ze(a)]}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tt(this,"spec",void 0),tt(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,r;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&et(t.prototype,n),r&&et(t,r),e}();function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return it(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ot(e,t,n){var r=De(),i=function(e,t){var n=Object(o.useMemo)((function(){return new nt(e,t)}),[t]);return Object(o.useEffect)((function(){n.spec=e}),[e]),n}(e,t),a=function(e){var t=e.accept;return Object(o.useMemo)((function(){return Object(s.a)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]}),[t])}(e);Re((function(){var e=rt(l(a,i,r),2),o=e[0],s=e[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),s}),[r,t,i,n,a.map((function(e){return e.toString()})).join("|")])}function at(e){return Object(o.useMemo)((function(){return e.hooks.dropTarget()}),[e])}function st(e,t){var n,r=qe(e,t),i=(n=De(),Object(o.useMemo)((function(){return new ue(n)}),[n])),a=function(e){var t=De(),n=Object(o.useMemo)((function(){return new fe(t.getBackend())}),[t]);return Re((function(){return n.dropTargetOptions=e||null,n.reconnect(),function(){return n.disconnectDropTarget()}}),[e]),n}(r.options);return ot(r,i,a),[Qe(r.collect,i,a),at(a)]}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ct(e){var t=De().getMonitor(),n=lt(Ge(t,e),2),r=n[0],i=n[1];return Object(o.useEffect)((function(){return t.subscribeToOffsetChange(i)})),Object(o.useEffect)((function(){return t.subscribeToStateChange(i)})),r}},function(e,t,n){"use strict";n.r(t);var r,i=n(228),o=n(38),a=n(10),s=n(29),l=n(3),u=n(233),c=n(101),d=n(60),f=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function p(e,t){u.a.expire()}var h=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n}return f(t,e),t.prototype.dispatchRenderEvent=function(e,t){Object(a.b)()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Object(s.b)(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Object(s.d)(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,s){var u,f=t.viewState;function p(e,t,n,r){return i.call(o,t,e?n:null,r)}var h=f.projection,m=Object(d.g)(e.slice(),h),g=[[0,0]];if(h.canWrapX()&&r){var v=h.getExtent(),y=Object(l.D)(v);g.push([-y,0],[y,0])}for(var b=t.layerStatesArray,_=b.length,w=[],x=[],k=0;k<g.length;k++)for(var E=_-1;E>=0;--E){var S=b[E],O=S.layer;if(O.hasRenderer()&&Object(c.b)(S,f)&&a.call(s,O)){var C=O.getRenderer(),T=O.getSource();if(C&&T){var A=T.getWrapX()?m:e,P=p.bind(null,S.managed);x[0]=A[0]+g[k][0],x[1]=A[1]+g[k][1],u=C.forEachFeatureAtCoordinate(x,t,n,P,w)}if(u)return u}}if(0!==w.length){var R=1/w.length;return w.forEach((function(e,t){return e.distanceSq+=t*R})),w.sort((function(e,t){return e.distanceSq-t.distanceSq})),w.some((function(e){return u=e.callback(e.feature,e.layer,e.geometry)})),u}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return Object(a.b)()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i,a){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,o.b,this,i,a)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){Object(a.b)()},t.prototype.scheduleExpireIconCache=function(e){u.a.canExpireCache()&&e.postRenderFunctions.push(p)},t}(i.a),m=n(129),g=n(359),v=n(115),y=n(106),b=n(55),_=n(18),w=n(19),x=n(42),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=Object(w.a)(_.a,m.a.PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=b.d+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return k(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new g.a(e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){Object(w.c)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(v.a.PRECOMPOSE,e);var t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];e.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!Object(c.b)(s,n)||u!=y.a.READY&&u!=y.a.UNDEFINED)l.unrender();else{var d=l.render(e,i);d&&(d!==i&&(this.children_.push(d),i=d),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(e);Object(x.d)(this.element_,this.children_),this.dispatchRenderEvent(v.a.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length-1;s>=0;--s){var l=a[s],u=l.layer;if(u.hasRenderer()&&Object(c.b)(l,o)&&i(u)){var d=u.getRenderer().getDataAtPixel(e,t,n);if(d){var f=r(u,d);if(f)return f}}}},t}(h),S=n(64),O=n(82),C=n(74),T=n(20),A=n(355),P=n(63),R=n(23),j=n(28),I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(e){function t(t,n){var r=e.call(this,t)||this;return r.layer=n,r}return I(t,e),t}(P.a),L="layers",D=function(e){function t(t){var n=this,r=t||{},i=Object(j.a)({},r);delete i.layers;var o=r.layers;return(n=e.call(this,i)||this).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(L,n.handleLayersChanged_),o?Array.isArray(o)?o=new O.a(o.slice(),{unique:!0}):Object(R.a)("function"==typeof o.getArray,43):o=new O.a(void 0,{unique:!0}),n.setLayers(o),n}return I(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(w.c),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Object(w.a)(e,C.a.ADD,this.handleLayersAdd_,this),Object(w.a)(e,C.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(w.c);Object(j.b)(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.registerLayerListeners_(o),this.dispatchEvent(new M("addlayer",o))}this.changed()},t.prototype.registerLayerListeners_=function(e){var n=[Object(w.a)(e,m.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(w.a)(e,T.a.CHANGE,this.handleLayerChange_,this)];e instanceof t&&n.push(Object(w.a)(e,"addlayer",this.handleLayerGroupAdd_,this),Object(w.a)(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(a.c)(e)]=n},t.prototype.handleLayerGroupAdd_=function(e){this.dispatchEvent(new M("addlayer",e.layer))},t.prototype.handleLayerGroupRemove_=function(e){this.dispatchEvent(new M("removelayer",e.layer))},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new M("addlayer",t)),this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=Object(a.c)(t);this.listenerKeys_[n].forEach(w.c),delete this.listenerKeys_[n],this.dispatchEvent(new M("removelayer",t)),this.changed()},t.prototype.getLayers=function(){return this.get(L)},t.prototype.setLayers=function(e){var t=this.getLayers();if(t)for(var n=t.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new M("removelayer",n[r]));this.set(L,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));var r=this.getLayerState(),i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(var o=n,a=t.length;o<a;o++){var s=t[o];s.opacity*=r.opacity,s.visible=s.visible&&r.visible,s.maxResolution=Math.min(s.maxResolution,r.maxResolution),s.minResolution=Math.max(s.minResolution,r.minResolution),s.minZoom=Math.max(s.minZoom,r.minZoom),s.maxZoom=Math.min(s.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==s.extent?s.extent=Object(l.A)(s.extent,r.extent):s.extent=r.extent),void 0===s.zIndex&&(s.zIndex=i)}return t},t.prototype.getSourceState=function(){return y.a.READY},t}(A.a),N=n(118),F=n(36),B="pointermove",z="pointerdown",U=n(112),q=n(58),W=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=0,r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Object(w.a)(i,z,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Object(w.a)(i,B,r.relayEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(T.a.TOUCHMOVE,r.boundHandleTouchMove_,!!q.e&&{passive:!1}),r}return W(t,e),t.prototype.emulateClick_=function(e){var t=new N.a(F.a.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new N.a(F.a.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new N.a(F.a.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e;t.type==F.a.POINTERUP||t.type==F.a.POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==F.a.POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new N.a(F.a.POINTERUP,this.map_,e);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(w.c),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(e);var t=new N.a(F.a.POINTERDOWN,this.map_,e);for(var n in this.dispatchEvent(t),this.down_={},e){var r=e[n];this.down_[n]="function"==typeof r?o.c:r}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(w.a)(i,F.a.POINTERMOVE,this.handlePointerMove_,this),Object(w.a)(i,F.a.POINTERUP,this.handlePointerUp_,this),Object(w.a)(this.element_,F.a.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(Object(w.a)(this.element_.getRootNode(),F.a.POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.dragging_=!0;var t=new N.a(F.a.POINTERDRAG,this.map_,e,this.dragging_);this.dispatchEvent(t)}},t.prototype.relayEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new N.a(e.type,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){var t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(w.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(T.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(w.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(w.c),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(U.a),$=n(181),V="postrender",G="movestart",K="moveend",Y="loadstart",Q="loadend",X="layergroup",Z="size",J="target",ee="view",te=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(j.b)(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){Object(R.a)(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=1/0&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e<r>>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=l<r&&n[l]<n[s]?l:s;t[e]=t[u],n[e]=n[u],e=u}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){for(var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];t>e;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)(n=r(e=i[t]))==1/0?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}(),ne=n(24),re=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ie=function(e){function t(t,n){var r=e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return re(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);n&&t[0].addEventListener(T.a.CHANGE,this.boundHandleTileChange_);return n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(n===ne.a.LOADED||n===ne.a.ERROR||n===ne.a.EMPTY){t.removeEventListener(T.a.CHANGE,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){for(var n,r,i=0;this.tilesLoading_<e&&i<t&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),n.getState()!==ne.a.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())},t}(te);var oe=n(160),ae=n(69),se=n(14),le=n(66),ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ce(e){e instanceof c.a?e.setMapInternal(null):e instanceof D&&e.getLayers().forEach(ce)}var de=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},a=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new D({layers:e.layers});o[X]=a,o[J]=e.target,o[ee]=e.view instanceof oe.default?e.view:new oe.default,void 0!==e.controls&&(Array.isArray(e.controls)?n=new O.a(e.controls.slice()):(Object(R.a)("function"==typeof e.controls.getArray,47),n=e.controls));void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new O.a(e.interactions.slice()):(Object(R.a)("function"==typeof e.interactions.getArray,48),r=e.interactions));void 0!==e.overlays?Array.isArray(e.overlays)?i=new O.a(e.overlays.slice()):(Object(R.a)("function"==typeof e.overlays.getArray,49),i=e.overlays):i=new O.a;return{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}(t);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:q.a,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(s.c)(),n.pixelToCoordinateTransform_=Object(s.c)(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new O.a,n.interactions=r.interactions||new O.a,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new ie(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(X,n.handleLayerGroupChanged_),n.addChangeListener(ee,n.handleViewChanged_),n.addChangeListener(Z,n.handleSizeChanged_),n.addChangeListener(J,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!t.view||t.view instanceof oe.default||t.view.then((function(e){i.setView(new oe.default(e))})),n.controls.addEventListener(C.a.ADD,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(C.a.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.interactions.addEventListener(C.a.ADD,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(C.a.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(C.a.ADD,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(C.a.REMOVE,function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}.bind(n)),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return ue(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.handleLayerAdd_=function(e){!function e(t,n){if(t instanceof c.a)t.setMapInternal(n);else if(t instanceof D)for(var r=t.getLayers().getArray(),i=0,o=r.length;i<o;++i)e(r[i],n)}(e.layer,this)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,a=void 0!==n.layerFilter?n.layerFilter:o.b,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,s,t,null,a,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n},t.prototype.getAllLayers=function(){var e=[];return function t(n){n.forEach((function(n){n instanceof D?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_&&this.renderer_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance:0,a=r.layerFilter||o.b;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,a)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:o.b,i=void 0!==t.hitTolerance?t.hitTolerance:0,a=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,a,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(J)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return Object(se.m)(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?Object(s.a)(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(X)},t.prototype.setLayers=function(e){var t=this.getLayerGroup();if(e instanceof O.a)t.setLayers(e);else{var n=t.getLayers();n.clear(),n.extend(e)}},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoadingOrNotReady=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=Object(se.e)(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?Object(s.a)(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(Z)},t.prototype.getView=function(){return this.get(ee)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){var e=this.getTargetElement();return e?e.ownerDocument:document},t.prototype.getTilePriority=function(e,t,n,r){return function(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return 1/0;if(!e.wantedTiles[n][t.getKey()])return 1/0;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new N.a(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===z||n===T.a.WHEEL||n===T.a.KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement())if(!l.handleEvent(e)||e.propagationStopped)break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[ae.a.ANIMATING]||i[ae.a.INTERACTING]){var o=Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(!0===this.renderComplete_?(this.hasListener(v.a.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v.a.RENDERCOMPLETE,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new $.a(Q,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new $.a(Y,this,e))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)Object(w.c)(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(T.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(T.a.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(x.c)(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new H(this,this.moveTolerance_),F.a)this.mapBrowserEventHandler_.addEventListener(F.a[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(T.a.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(T.a.WHEEL,this.boundHandleBrowserEvent_,!!q.e&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Object(w.a)(o,T.a.KEYDOWN,this.handleBrowserEvent,this),Object(w.a)(o,T.a.KEYPRESS,this.handleBrowserEvent,this),Object(w.a)(i,T.a.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(w.c)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(w.c)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(w.a)(e,m.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(w.a)(e,T.a.CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(w.c),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new M("addlayer",e)),this.layerGroupPropertyListenerKeys_=[Object(w.a)(e,m.a.PROPERTYCHANGE,this.render,this),Object(w.a)(e,T.a.CHANGE,this.render,this),Object(w.a)(e,"addlayer",this.handleLayerAdd_,this),Object(w.a)(e,"removelayer",this.handleLayerRemove_,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.handleLayerRemove_=function(e){ce(e.layer)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&Object(le.a)(n)&&r&&r.isDef()){var s=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),u=r.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(l.y)(u.center,u.resolution,u.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:u,viewHints:s,wantedTiles:{},mapId:Object(a.c)(this),renderTargets:{}},u.nextCenter&&u.nextResolution){var c=isNaN(u.nextRotation)?u.rotation:u.nextRotation;o.nextExtent=Object(l.y)(u.nextCenter,u.nextResolution,c,n)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i)(!this.previousExtent_||!Object(l.G)(this.previousExtent_)&&!Object(l.o)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new $.a(G,this,i)),this.previousExtent_=Object(l.l)(this.previousExtent_));this.previousExtent_&&!o.viewHints[ae.a.ANIMATING]&&!o.viewHints[ae.a.INTERACTING]&&!Object(l.o)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new $.a(K,this,o)),Object(l.d)(o.extent,this.previousExtent_))}this.dispatchEvent(new $.a(V,this,o)),this.renderComplete_=this.hasListener(Y)||this.hasListener(Q)||this.hasListener(v.a.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()}),0))},t.prototype.setLayerGroup=function(e){var t=this.getLayerGroup();t&&this.handleLayerRemove_(new M("removelayer",t)),this.set(X,e)},t.prototype.setSize=function(e){this.set(Z,e)},t.prototype.setTarget=function(e){this.set(J,e)},t.prototype.setView=function(e){if(!e||e instanceof oe.default)this.set(ee,e);else{this.set(ee,new oe.default);var t=this;e.then((function(e){t.setView(new oe.default(e))}))}},t.prototype.updateSize=function(){var e=this.getTargetElement(),t=void 0;if(e){var n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[r,i],!Object(le.a)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(t),this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}},t}(S.a),fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return fe(t,e),t.prototype.disposeInternal=function(){Object(x.c)(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&Object(x.c)(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Object(w.c)(this.listenerKeys[t]);(this.listenerKeys.length=0,this.map_=e,e)&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==o.c&&this.listenerKeys.push(Object(w.a)(e,V,this.render,this)),e.render())},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(S.a),he=n(32),me=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this).ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.expandClassName?r.expandClassName:i+"-expand",s=void 0!==r.collapseLabel?r.collapseLabel:"",l=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"==typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var u=void 0!==r.label?r.label:"i";"string"==typeof u?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=a):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(T.a.CLICK,n.handleClick_.bind(n),!1);var d=i+" "+b.d+" "+b.b+(n.collapsed_&&n.collapsible_?" "+b.a:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=d,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return me(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if(Object(c.b)(s,e.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var d=u(e);if(d)if(r=r&&!1!==l.getAttributionsCollapsible(),Array.isArray(d))for(var f=0,p=d.length;f<p;++f)d[f]in t||(n.push(d[f]),t[d[f]]=!0);else d in t||(n.push(d),t[d]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(he.b)(t,this.renderedAttributions_)){Object(x.b)(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(b.a),this.collapsed_?Object(x.e)(this.collapseLabel_,this.label_):Object(x.e)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(pe),ve=n(86),ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧",a=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"==typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=r.tipLabel?r.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(T.a.CLICK,n.handleClick_.bind(n),!1);var u=i+" "+b.d+" "+b.b,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(b.c),n}return ye(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap().getView();if(e){var t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:ve.b}):e.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(b.c);i||0!==n?i&&0!==n&&this.element.classList.remove(b.c):this.element.classList.add(b.c)}this.label_.style.transform=r}this.rotation_=n}},t}(pe),_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",s=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",l=void 0!==r.zoomInLabel?r.zoomInLabel:"+",u=void 0!==r.zoomOutLabel?r.zoomOutLabel:"",c=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",d=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=a,f.setAttribute("type","button"),f.title=c,f.appendChild("string"==typeof l?document.createTextNode(l):l),f.addEventListener(T.a.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=s,p.setAttribute("type","button"),p.title=d,p.appendChild("string"==typeof u?document.createTextNode(u):u),p.addEventListener(T.a.CLICK,n.handleClick_.bind(n,-o),!1);var h=i+" "+b.d+" "+b.b,m=n.element;return m.className=h,m.appendChild(f),m.appendChild(p),n.duration_=void 0!==r.duration?r.duration:250,n}return _e(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap().getView();if(t){var n=t.getZoom();if(void 0!==n){var r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:ve.b})):t.setZoom(r)}}},t}(pe);var xe=n(87),ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ee=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return ke(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==F.a.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_,a=r.getView();Object(xe.c)(a,o,i,this.duration_),n.preventDefault(),t=!0}return!t},t}(xe.a),Se=n(79),Oe=n(47),Ce=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(e){function t(t){var n=e.call(this,{stopDown:o.a})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:Object(Oe.a)(Oe.g,Oe.h);return n.condition_=r.onFocusOnly?Object(Oe.a)(Oe.d,i):i,n.noKinetic_=!1,n}return Ce(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,n=Object(Se.a)(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=e.map.getView();Object(d.e)(r,i.getResolution()),Object(d.d)(r,i.getRotation()),i.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCoordinateInternal(o),s=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:ve.b})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(Se.b),Ae=n(141),Pe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this,{stopDown:o.a})||this).condition_=r.condition?r.condition:Oe.b,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return Pe(t,e),t.prototype.handleDragEvent=function(e){if(Object(Oe.f)(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==Ae.c){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){return!Object(Oe.f)(e)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){return!!Object(Oe.f)(e)&&(!(!Object(Oe.e)(e)||!this.condition_(e))&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},t}(Se.b),je=n(93),Ie=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return Ie(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n=this.element_.style;n.left=Math.min(e[0],t[0])+"px",n.top=Math.min(e[1],t[1])+"px",n.width=Math.abs(t[0]-e[0])+"px",n.height=Math.abs(t[1]-e[1])+"px"},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new je.a([n])},t.prototype.getGeometry=function(){return this.geometry_},t}(i.a),Le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De="boxstart",Ne="boxdrag",Fe="boxend",Be="boxcancel",ze=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return Le(t,e),t}(P.a),Ue=function(e){function t(t){var n=e.call(this)||this;n.on,n.once,n.un;var r=t||{};return n.box_=new Me(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:Oe.e,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return Le(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new ze(Ne,e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new ze(t?Fe:Be,e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new ze(De,e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(Se.b),qe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:Oe.i;return(n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return qe(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap().getView(),n=this.getGeometry();if(this.out_){var r=t.rotatedExtentForGeometry(n),i=t.getResolutionForExtentInternal(r),o=t.getResolution()/i;(n=n.clone()).scale(o*o)}t.fitInternal(n,{duration:this.duration_,easing:ve.b})},t}(Ue),He=37,$e=38,Ve=39,Ge=40,Ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return Object(Oe.g)(e)&&Object(Oe.j)(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return Ke(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==T.a.KEYDOWN){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(r==Ge||r==He||r==Ve||r==$e)){var i=e.map.getView(),o=i.getResolution()*this.pixelDelta_,a=0,s=0;r==Ge?s=-o:r==He?a=-o:r==Ve?a=o:s=o;var l=[a,s];Object(d.d)(l,i.getRotation()),Object(xe.b)(i,l,this.duration_),n.preventDefault(),t=!0}}return!t},t}(xe.a),Qe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xe=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:Oe.j,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return Qe(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==T.a.KEYDOWN||e.type==T.a.KEYPRESS){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=e.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_,a=i.getView();Object(xe.c)(a,o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t},t}(xe.a),Ze=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}(),Je=n(13),et=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tt="trackpad",nt="wheel",rt=function(e){function t(t){var n=this,r=t||{};(n=e.call(this,r)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:Oe.c;return n.condition_=r.onFocusOnly?Object(Oe.a)(Oe.d,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return et(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if(e.type!==T.a.WHEEL)return!0;var t,n=e.map,r=e.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==T.a.WHEEL&&(t=r.deltaY,q.b&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(t/=q.a),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(t*=40)),0===t)return!1;this.lastDelta_=t;var i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(t)<4?tt:nt);var o=n.getView();if(this.mode_===tt&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=t;var a=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-Object(Je.b)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(xe.c)(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(xe.a),it=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=o.a),(n=e.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return it(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==Ae.c){var l=a.getViewport().getBoundingClientRect(),u=Object(Se.a)(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Se.b),at=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=o.a),(n=e.call(this,i)||this).anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return at(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var u=s.getViewport().getBoundingClientRect(),c=Object(Se.a)(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(c),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Se.b);var lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ut=function(e){function t(t){return(t=Object(j.a)({},t)).controls||(t.controls=function(e){var t=e||{},n=new O.a;return(void 0===t.zoom||t.zoom)&&n.push(new we(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&n.push(new be(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&n.push(new ge(t.attributionOptions)),n}()),t.interactions||(t.interactions=function(e){var t=e||{},n=new O.a,r=new Ze(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&n.push(new Re),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&n.push(new Ee({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&n.push(new Te({onFocusOnly:t.onFocusOnly,kinetic:r})),(void 0===t.pinchRotate||t.pinchRotate)&&n.push(new ot),(void 0===t.pinchZoom||t.pinchZoom)&&n.push(new st({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(n.push(new Ye),n.push(new Xe({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&n.push(new rt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&n.push(new We({duration:t.zoomDuration})),n}({onFocusOnly:!0})),e.call(this,t)||this}return lt(t,e),t.prototype.createRenderer=function(){return new E(this)},t}(de);t.default=ut},function(e,t,n){"use strict";n.r(t),n.d(t,"getEmptyImage",(function(){return N})),n.d(t,"NativeTypes",(function(){return r})),n.d(t,"HTML5Backend",(function(){return F}));var r={};function i(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(r),n.d(r,"FILE",(function(){return v})),n.d(r,"URL",(function(){return y})),n.d(r,"TEXT",(function(){return b})),n.d(r,"HTML",(function(){return _}));var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"entered",[]),a(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e){return i.push(e)})),i}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),r&&o(t,r),e}(),l=i((function(){return/firefox/i.test(navigator.userAgent)})),u=i((function(){return Boolean(window.safari)}));function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"xs",void 0),d(this,"ys",void 0),d(this,"c1s",void 0),d(this,"c2s",void 0),d(this,"c3s",void 0);for(var r=t.length,i=[],o=0;o<r;o++)i.push(o);i.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=[],f=0;f<r-1;f++)a=t[f+1]-t[f],s=n[f+1]-n[f],u.push(a),l.push(s),c.push(s/a);for(var p=[c[0]],h=0;h<u.length-1;h++){var m=c[h],g=c[h+1];if(m*g<=0)p.push(0);else{a=u[h];var v=u[h+1],y=a+v;p.push(3*y/((y+v)/m+(y+a)/g))}}p.push(c[c.length-1]);for(var b,_=[],w=[],x=0;x<p.length-1;x++){b=c[x];var k=p[x],E=1/u[x],S=k+p[x+1]-b-b;_.push((b-k-S)*E),w.push(S*E*E)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=_,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=o.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],f=d*d;return n[a]+r[a]*d+i[a]*f+o[a]*d*f}}])&&c(t.prototype,n),r&&c(t,r),e}();function p(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function h(e){return{x:e.clientX,y:e.clientY}}function m(e,t,n,r,i){var o,a,s,c="IMG"===(o=t).nodeName&&(l()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(o))),d=p(c?e:t),h={x:n.x-d.x,y:n.y-d.y},m=e.offsetWidth,g=e.offsetHeight,v=r.anchorX,y=r.anchorY,b=function(e,t,n,r){var i=e?t.width:n,o=e?t.height:r;return u()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(c,t,m,g),_=b.dragPreviewWidth,w=b.dragPreviewHeight,x=i.offsetX,k=i.offsetY,E=0===k||k;return{x:0===x||x?x:new f([0,.5,1],[h.x,h.x/m*_,h.x+_-m]).interpolate(v),y:E?k:(s=new f([0,.5,1],[h.y,h.y/g*w,h.y+w-g]).interpolate(y),u()&&c&&(s+=(window.devicePixelRatio-1)*w),s)}}var g,v="__NATIVE_FILE__",y="__NATIVE_URL__",b="__NATIVE_TEXT__",_="__NATIVE_HTML__";function w(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(x(g={},v,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),x(g,_,{exposeProperties:{html:function(e,t){return w(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),x(g,y,{exposeProperties:{urls:function(e,t){return w(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),x(g,b,{exposeProperties:{text:function(e,t){return w(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),g);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"item",void 0),S(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&E(t.prototype,n),r&&E(t,r),e}();function C(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(k).filter((function(e){return k[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),A(this,"ownerDocument",null),A(this,"globalContext",void 0),A(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&T(t.prototype,n),r&&T(t,r),e}();function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L,D=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M(this,"options",void 0),M(this,"actions",void 0),M(this,"monitor",void 0),M(this,"registry",void 0),M(this,"enterLeaveCounter",void 0),M(this,"sourcePreviewNodes",new Map),M(this,"sourcePreviewNodeOptions",new Map),M(this,"sourceNodes",new Map),M(this,"sourceNodeOptions",new Map),M(this,"dragStartSourceIds",null),M(this,"dropTargetIds",[]),M(this,"dragEnterTargetIds",[]),M(this,"currentNativeSource",null),M(this,"currentNativeHandle",null),M(this,"currentDragSourceNode",null),M(this,"altKeyPressed",!1),M(this,"mouseMoveTimeoutTimer",null),M(this,"asyncEndDragFrameId",null),M(this,"dragOverTargetIds",null),M(this,"lastClientOffset",null),M(this,"hoverRafId",null),M(this,"getSourceClientOffset",(function(e){var t=i.sourceNodes.get(e);return t&&p(t)||null})),M(this,"endDragNativeItem",(function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)})),M(this,"isNodeInDocument",(function(e){return Boolean(e&&i.document&&i.document.body&&i.document.body.contains(e))})),M(this,"endDragIfSourceWasRemovedFromDOM",(function(){var e=i.currentDragSourceNode;null==e||i.isNodeInDocument(e)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()})),M(this,"handleTopDragStartCapture",(function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]})),M(this,"handleTopDragStart",(function(e){if(!e.defaultPrevented){var t=i.dragStartSourceIds;i.dragStartSourceIds=null;var n=h(e);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,o=C(r);if(i.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=i.monitor.getSourceId(),s=i.sourceNodes.get(a),l=i.sourcePreviewNodes.get(a)||s;if(l){var u=i.getCurrentSourcePreviewNodeOptions(),c=m(s,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});r.setDragImage(l,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(e){}i.setCurrentDragSourceNode(e.target),i.getCurrentSourcePreviewNodeOptions().captureDraggingState?i.actions.publishDragSource():setTimeout((function(){return i.actions.publishDragSource()}),0)}else if(o)i.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}})),M(this,"handleTopDragEndCapture",(function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()})),M(this,"handleTopDragEnterCapture",(function(e){if(i.dragEnterTargetIds=[],i.enterLeaveCounter.enter(e.target)&&!i.monitor.isDragging()){var t=e.dataTransfer,n=C(t);n&&i.beginDragNativeItem(n,t)}})),M(this,"handleTopDragEnter",(function(e){var t=i.dragEnterTargetIds;(i.dragEnterTargetIds=[],i.monitor.isDragging())&&(i.altKeyPressed=e.altKey,t.length>0&&i.actions.hover(t,{clientOffset:h(e)}),t.some((function(e){return i.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())))})),M(this,"handleTopDragOverCapture",(function(){i.dragOverTargetIds=[]})),M(this,"handleTopDragOver",(function(e){var t=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));i.altKeyPressed=e.altKey,i.lastClientOffset=h(e),null===i.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(i.hoverRafId=requestAnimationFrame((function(){i.monitor.isDragging()&&i.actions.hover(t||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}))),(t||[]).some((function(e){return i.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))})),M(this,"handleTopDragLeaveCapture",(function(e){i.isDraggingNativeItem()&&e.preventDefault(),i.enterLeaveCounter.leave(e.target)&&i.isDraggingNativeItem()&&setTimeout((function(){return i.endDragNativeItem()}),0)})),M(this,"handleTopDropCapture",(function(e){var t;(i.dropTargetIds=[],i.isDraggingNativeItem())?(e.preventDefault(),null===(t=i.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):C(e.dataTransfer)&&e.preventDefault();i.enterLeaveCounter.reset()})),M(this,"handleTopDrop",(function(e){var t=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(t,{clientOffset:h(e)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()})),M(this,"handleSelectStart",(function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))})),this.options=new P(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new s(this.isNodeInDocument)}var t,n,i;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return j({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return j({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new O(k[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&I(t.prototype,n),i&&I(t,i),e}();function N(){return L||((L=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),L}var F=function(e,t,n){return new D(e,t,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ATTRIBUTION",(function(){return Q}));var r=n(20),i=n(365),o=n(368),a=n(23),s=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return Object(a.a)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return Object(a.a)(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){Object(a.a)(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}();function l(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function u(e,t,n){return e+"/"+t+"/"+n}function c(e){return u(e[0],e[1],e[2])}var d,f=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.expireCache=function(e){for(;this.canExpireCache();){if(this.peekLast().getKey()in e)break;this.pop().release()}},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=function(e){return e.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(c(t.tileCoord)),t.release())}.bind(this))}},t}(s),h=n(24),m="tileloadstart",g="tileloadend",v="tileloaderror",y=n(63),b=n(364),_=n(10),w=n(14),x=n(206),k=n(142),E=n(204),S=n(13),O=n(3),C=n(32),T=n(66),A=[0,0,0],P=function(){function e(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Object(a.a)(Object(C.d)(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,r=this.resolutions_.length-1;n<r;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,Object(a.a)(this.origins_.length==this.resolutions_.length,20));var i=e.extent;void 0===i||this.origin_||this.origins_||(this.origin_=Object(O.B)(i)),Object(a.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,Object(a.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:E.b,Object(a.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){var n=new k.b(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(i){var r=this.getTileRangeForExtentAndZ(i,t);n.minX=Math.max(r.minX,n.minX),n.maxX=Math.min(r.maxX,n.maxX),n.minY=Math.max(r.minY,n.minY),n.maxY=Math.min(r.maxY,n.maxY)}return n}),this):i&&this.calculateTileRanges_(i)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,r){var i,o,a,s=null,l=e[0]-1;for(2===this.zoomFactor_?(o=e[1],a=e[2]):s=this.getTileCoordExtent(e,r);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=Object(k.a)(o,o,a,a,n)):i=this.getTileRangeForExtentAndZ(s,l,n),t(l,i))return!0;--l}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*e[1],i=2*e[2];return Object(k.a)(r,r+1,i,i+1,t)}var o=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},e.prototype.getTileRangeForTileCoordAndZ=function(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;var r=e[0],i=e[1],o=e[2];if(t===r)return Object(k.a)(i,o,i,o,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,t-r),s=Math.floor(i*a),l=Math.floor(o*a);if(t<r)return Object(k.a)(s,s,l,l,n);var u=Math.floor(a*(i+1))-1,c=Math.floor(a*(o+1))-1;return Object(k.a)(s,u,l,c,n)}var d=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(d,t,n)},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=Object(T.c)(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,s=r[0]+(t.maxX+1)*o[0]*i,l=r[1]+t.minY*o[1]*i,u=r[1]+(t.maxY+1)*o[1]*i;return Object(O.k)(a,l,s,u,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var r=A;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,r);var i=r[1],o=r[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,r),Object(k.a)(i,r[1],o,r[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Object(T.c)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Object(T.c)(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r,s=o+i[0]*r,l=a+i[1]*r;return Object(O.k)(o,a,s,l,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),u=Object(T.c)(this.getTileSize(o),this.tmpSize_),c=a*(e-s[0])/n/u[0],d=a*(s[1]-t)/n/u[1];return r?(c=Object(S.a)(c,5)-1,d=Object(S.a)(d,5)-1):(c=Object(S.d)(c,5),d=Object(S.d)(d,5)),l(o,c,d,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=Object(T.c)(this.getTileSize(n),this.tmpSize_),u=(e-o[0])/a/s[0],c=(o[1]-t)/a/s[1];return r?(u=Object(S.a)(u,5)-1,c=Object(S.a)(c,5)-1):(u=Object(S.d)(u,5),c=Object(S.d)(c,5)),l(n,u,c,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},e.prototype.getZForResolution=function(e,t){var n=Object(C.e)(this.resolutions_,e,t||0);return Object(S.b)(n,this.minZoom,this.maxZoom)},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}(),R=n(53);function j(e){var t=e.getDefaultTileGrid();return t||(t=function(e,t,n,r){return function(e,t,n,r){var i=void 0!==r?r:x.a.TOP_LEFT,o=I(e,t,n);return new P({extent:e,origin:Object(O.x)(e,i),resolutions:o,tileSize:n})}(M(e),t,n,r)}(e),e.setDefaultTileGrid(t)),t}function I(e,t,n,r){for(var i=void 0!==t?t:E.a,o=Object(O.z)(e),a=Object(O.D)(e),s=Object(T.c)(void 0!==n?n:E.b),l=r>0?r:Math.max(a/s[0],o/s[1]),u=i+1,c=new Array(u),d=0;d<u;++d)c[d]=l/Math.pow(2,d);return c}function M(e){var t=(e=Object(w.h)(e)).getExtent();if(!t){var n=180*w.a[R.b.DEGREES]/e.getMetersPerUnit();t=Object(O.k)(-n,-n,n,n)}return t}var L=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate})||this;n.on,n.once,n.un,n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;return n.tileGrid&&Object(T.c)(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),[256,256]),n.tileCache=new p(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition,interpolate:t.interpolate},n.zDirection=t.zDirection?t.zDirection:0,n}return L(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,a,s,l=!0,c=n.minX;c<=n.maxX;++c)for(var d=n.minY;d<=n.maxY;++d)a=u(t,c,d),s=!1,i.containsKey(a)&&(s=(o=i.get(a)).getState()===h.a.LOADED)&&(s=!1!==r(o)),s||(l=!1);return l},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,t,n,r,i){return Object(_.b)()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:j(e)},t.prototype.getTileCacheForProjection=function(e){return Object(a.a)(Object(w.d)(this.getProjection(),e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Object(T.c)(r.getTileSize(e),this.tmpSize);return 1==i?o:Object(T.b)(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=function(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=M(n);if(Object(O.f)(o,i))return t;var a=Object(O.D)(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}(r,e,n)),function(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(b.a),N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return L(t,e),t}(y.a),F=D;function B(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(s,l,u){return s?e.replace(n,s[0].toString()).replace(r,s[1].toString()).replace(i,s[2].toString()).replace(o,(function(){var e=s[0],n=t.getFullTileRange(e);return Object(a.a)(n,55),(n.getHeight()-s[2]-1).toString()})):void 0}}function z(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=B(e[i],t);return function(e){if(1===e.length)return e[0];return function(t,n,r){if(t){var i=function(e){return(e[1]<<e[0])+e[2]}(t),o=Object(S.g)(i,e.length);return e[o](t,n,r)}}}(r)}var U=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return U(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=Object(_.c)(n),i=n.getState();i==h.a.LOADING?(this.tileLoadingKeys_[r]=!0,t=m):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=i==h.a.ERROR?v:i==h.a.LOADED?g:void 0),null!=t&&this.dispatchEvent(new N(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=function(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(z(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=u(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(F),W=n(119),H=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function $(e,t){e.getImage().src=t}var V=function(e){function t(t){var n=this,r=void 0===t.imageSmoothing||t.imageSmoothing;return void 0!==t.interpolate&&(r=t.interpolate),(n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:$,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:r,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this).crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:i.a,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return H(t,e),t.prototype.canExpireCache=function(){if(!W.a)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(W.a){var r=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getGutterForProjection=function(e){return W.a&&this.getProjection()&&e&&!Object(w.d)(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},t.prototype.getOpaque=function(t){return!(W.a&&this.getProjection()&&t&&!Object(w.d)(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!W.a)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!Object(w.d)(n,t)){var r=Object(_.c)(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=j(t)),this.tileGridForProjection[r]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!W.a)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||Object(w.d)(n,t))return this.tileCache;var r=Object(_.c)(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new p(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},t.prototype.createTile_=function(e,t,n,i,o,a){var s=[e,t,n],l=this.getTileCoordForTileUrlFunction(s,o),u=l?this.tileUrlFunction(l,i,o):void 0,c=new this.tileClass(s,void 0!==u?h.a.IDLE:h.a.EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=a,c.addEventListener(r.a.CHANGE,this.handleTileChange.bind(this)),c},t.prototype.getTile=function(e,t,n,r,i){var a=this.getProjection();if(W.a&&a&&i&&!Object(w.d)(a,i)){var s=this.getTileCacheForProjection(i),l=[e,t,n],u=void 0,d=c(l);s.containsKey(d)&&(u=s.get(d));var f=this.getKey();if(u&&u.key==f)return u;var p=this.getTileGridForProjection(a),h=this.getTileGridForProjection(i),m=this.getTileCoordForTileUrlFunction(l,i),g=new o.a(a,p,i,h,l,m,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return g.key=f,u?(g.interimTile=u,g.refreshInterimChain(),s.replace(d,g)):s.set(d,g),g}return this.getTileInternal(e,t,n,r,a||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var o=null,a=u(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(e,t,n,r,i,s),l.getState()==h.a.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(e){if(W.a&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(W.a){var n=Object(w.h)(e);if(n){var r=Object(_.c)(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}},t}(q),G=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(e){function t(t){var n=t||{},r=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(r=n.interpolate);var i=void 0!==n.projection?n.projection:"EPSG:3857",o=void 0!==n.tileGrid?n.tileGrid:function(e){var t=e||{},n=t.extent||Object(w.h)("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:I(n,t.maxZoom,t.tileSize,t.maxResolution)};return new P(r)}({extent:M(i),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:r,opaque:n.opaque,projection:i,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return G(t,e),t}(V),Y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',X=function(e){function t(t){var n,r=t||{},i=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(i=r.interpolate),n=void 0!==r.attributions?r.attributions:[Q];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return e.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})||this}return Y(t,e),t}(K);t.default=X},function(e,t,n){"use strict";n.r(t),n.d(t,"CSSTransition",(function(){return _})),n.d(t,"ReplaceTransition",(function(){return R})),n.d(t,"SwitchTransition",(function(){return F})),n.d(t,"TransitionGroup",(function(){return C})),n.d(t,"Transition",(function(){return v})),n.d(t,"config",(function(){return d}));var r=n(11),i=n(46),o=n(45);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),l=n.n(s),u=n(54),c=n.n(u),d={disabled:!1},f=l.a.createContext(null),p="entering",h="entered",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||d.disabled?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(i.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.a.createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):l.a.cloneElement(l.a.Children.only(n),r))},t}(l.a.Component);function g(){}m.contextType=f,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED="unmounted",m.EXITED="exited",m.ENTERING=p,m.ENTERED=h,m.EXITING="exiting";var v=m,y=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Object(o.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&y(e,r),i&&y(e,i),o&&y(e,o)},n.render=function(){var e=this.props,t=(e.classNames,Object(i.a)(e,["classNames"]));return l.a.createElement(v,Object(r.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.a.Component);b.defaultProps={classNames:""},b.propTypes={};var _=b,w=n(30);function x(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(s.isValidElement)(e)?t(e):e}(e)})),n}function k(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(Object(s.isValidElement)(a)){var l=o in t,u=o in r,c=t[o],d=Object(s.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&Object(s.isValidElement)(c)&&(i[o]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:k(a,"exit",e),enter:k(a,"enter",e)})):i[o]=Object(s.cloneElement)(a,{in:!1}):i[o]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:k(a,"exit",e),enter:k(a,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},O=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Object(w.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,x(n.children,(function(e){return Object(s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:k(e,"appear",n),enter:k(e,"enter",n),exit:k(e,"exit",n)})}))):E(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(i.a)(e,["component","childFactory"]),o=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l.a.createElement(f.Provider,{value:o},a):l.a.createElement(f.Provider,{value:o},l.a.createElement(t,r,a))},t}(l.a.Component);O.propTypes={},O.defaultProps={component:"div",childFactory:function(e){return e}};var C=O,T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Object(o.a)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l.a.Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:c.a.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Object(i.a)(e,["children","in"]),o=l.a.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l.a.createElement(C,r,n?l.a.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l.a.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l.a.Component);T.propTypes={};var A,P,R=T;var j="out-in",I="in-out",M=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},L=((A={})[j]=function(e){var t=e.current,n=e.changeState;return l.a.cloneElement(t,{in:!1,onExited:M(t,"onExited",(function(){n(p,null)}))})},A[I]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l.a.cloneElement(r,{in:!0,onEntered:M(r,"onEntered",(function(){n(p)}))})]},A),D=((P={})[j]=function(e){var t=e.children,n=e.changeState;return l.a.cloneElement(t,{in:!0,onEntered:M(t,"onEntered",(function(){n(h,l.a.cloneElement(t,{in:!0}))}))})},P[I]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l.a.cloneElement(t,{in:!1,onExited:M(t,"onExited",(function(){r(h,l.a.cloneElement(n,{in:!0}))}))}),l.a.cloneElement(n,{in:!0})]},P),N=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:h,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===p&&e.mode===I?{status:p}:!t.current||(n=t.current,r=e.children,n===r||l.a.isValidElement(n)&&l.a.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l.a.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,s={children:n,current:a,changeState:this.changeState,status:o};switch(o){case p:e=D[r](s);break;case"exiting":e=L[r](s);break;case h:e=a}return l.a.createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(l.a.Component);N.propTypes={},N.defaultProps={mode:j};var F=N},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(46),o=n(0),a=o.useLayoutEffect,s=function(e){var t=Object(o.useRef)(e);return a((function(){t.current=e})),t},l=function(e,t){"function"!=typeof e?e.current=t:e(t)},u=function(e,t){var n=Object(o.useRef)();return Object(o.useCallback)((function(r){e.current=r,n.current&&l(n.current,null),n.current=t,t&&l(t,r)}),[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},d=function(e){Object.keys(c).forEach((function(t){e.style.setProperty(t,c[t],"important")}))},f=null;var p=function(){},h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],m=!!document.documentElement.currentStyle,g=function(e,t){var n=e.cacheMeasurements,a=e.maxRows,l=e.minRows,c=e.onChange,g=void 0===c?p:c,v=e.onHeightChange,y=void 0===v?p:v,b=Object(i.a)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var _,w=void 0!==b.value,x=Object(o.useRef)(null),k=u(x,t),E=Object(o.useRef)(0),S=Object(o.useRef)(),O=function(){var e=x.current,t=n&&S.current?S.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,h.reduce((function(e,t){return e[t]=n[t],e}),{})),i=r.boxSizing;return""===i?null:(m&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){S.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),f||((f=document.createElement("textarea")).setAttribute("tabindex","-1"),f.setAttribute("aria-hidden","true"),d(f)),null===f.parentNode&&document.body.appendChild(f);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;f.style[t]=a[t]})),d(f),f.value=t;var l=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(f,e);f.value="x";var u=f.scrollHeight-i,c=u*n;"border-box"===s&&(c=c+i+o),l=Math.max(c,l);var p=u*r;return"border-box"===s&&(p=p+i+o),[l=Math.min(p,l),u]}(t,e.value||e.placeholder||"x",l,a),i=r[0],o=r[1];E.current!==i&&(E.current=i,e.style.setProperty("height",i+"px","important"),y(i,{rowHeight:o}))}};return Object(o.useLayoutEffect)(O),_=s(O),Object(o.useLayoutEffect)((function(){var e=function(e){_.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(o.createElement)("textarea",Object(r.a)({},b,{onChange:function(e){w||O(),g(e)},ref:k}))},v=Object(o.forwardRef)(g);t.default=v},function(e,t,n){"use strict";n.r(t);var r,i=n(182),o=n(20),a=n(357),s=n(8),l=n(3),u=n(19),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function d(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}var f=function(e){function t(t){var n=e.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return c(t,e),t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(u.c),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push(Object(u.a)(this.geometries_[e],o.a.CHANGE,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(l.e)(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){Object(l.l)(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)Object(l.p)(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return d(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(e);n.push(l),l!==s&&(i=!0)}if(i){var u=new t(null);return u.setGeometriesArray(n),u}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return s.a.GEOMETRY_COLLECTION},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=Object(l.w)(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(d(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(a.a),p=n(53),h=n(10),m=n(28),g=n(14),v=function(){function e(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return e.prototype.getReadOptions=function(e,t){var n;if(t){var r=t.dataProjection?Object(g.h)(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()===p.b.TILE_PIXELS&&(r=Object(g.h)(r)).setWorldExtent(t.extent),n={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(n)},e.prototype.adaptOptions=function(e){return Object(m.a)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},e.prototype.getType=function(){return Object(h.b)()},e.prototype.readFeature=function(e,t){return Object(h.b)()},e.prototype.readFeatures=function(e,t){return Object(h.b)()},e.prototype.readGeometry=function(e,t){return Object(h.b)()},e.prototype.readProjection=function(e){return Object(h.b)()},e.prototype.writeFeature=function(e,t){return Object(h.b)()},e.prototype.writeFeatures=function(e,t){return Object(h.b)()},e.prototype.writeGeometry=function(e,t){return Object(h.b)()},e}();function y(e,t,n){var r,i=n?Object(g.h)(n.featureProjection):null,o=n?Object(g.h)(n.dataProjection):null;if(r=i&&o&&!Object(g.d)(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals);r===e&&(r=e.clone()),r.applyTransform((function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*a)/a;return e}))}return r}var b=n(183),_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function w(e){if("string"==typeof e){var t=JSON.parse(e);return t||null}return null!==e?e:null}var x=function(e){function t(){return e.call(this)||this}return _(t,e),t.prototype.getType=function(){return b.a.JSON},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(w(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(w(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return Object(h.b)()},t.prototype.readFeaturesFromObject=function(e,t){return Object(h.b)()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(w(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return Object(h.b)()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(w(e))},t.prototype.readProjectionFromObject=function(e){return Object(h.b)()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return Object(h.b)()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return Object(h.b)()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return Object(h.b)()},t}(v),k=n(156),E=n(361),S=n(230),O=n(369),C=n(131),T=n(93),A=n(23),P=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(t){var n=this,r=t||{};return(n=e.call(this)||this).dataProjection=Object(g.h)(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=Object(g.h)(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return P(t,e),t.prototype.readFeatureFromObject=function(e,t){var n=null,r=j((n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),o=new i.a;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o},t.prototype.readFeaturesFromObject=function(e,t){var n=null;if("FeatureCollection"===e.type){n=[];for(var r=e.features,i=0,o=r.length;i<o;++i)n.push(this.readFeatureFromObject(r[i],t))}else n=[this.readFeatureFromObject(e,t)];return n},t.prototype.readGeometryFromObject=function(e,t){return j(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e.crs;return n?"name"==n.type?t=Object(g.h)(n.properties.name):"EPSG"===n.type?t=Object(g.h)("EPSG:"+n.properties.code):Object(A.a)(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;var i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=I(o,t),delete i[e.getGeometryName()]),Object(m.d)(i)||(n.properties=i),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return I(e,this.adaptOptions(t))},t}(x);function j(e,t){if(!e)return null;var n;switch(e.type){case s.a.POINT:n=function(e){return new C.a(e.coordinates)}(e);break;case s.a.LINE_STRING:n=function(e){return new k.a(e.coordinates)}(e);break;case s.a.POLYGON:n=function(e){return new T.a(e.coordinates)}(e);break;case s.a.MULTI_POINT:n=function(e){return new S.a(e.coordinates)}(e);break;case s.a.MULTI_LINE_STRING:n=function(e){return new E.a(e.coordinates)}(e);break;case s.a.MULTI_POLYGON:n=function(e){return new O.a(e.coordinates)}(e);break;case s.a.GEOMETRY_COLLECTION:n=function(e,t){var n=e.geometries.map((function(e){return j(e,t)}));return new f(n)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return y(n,!1,t)}function I(e,t){var n,r=(e=y(e,!0,t)).getType();switch(r){case s.a.POINT:n=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case s.a.LINE_STRING:n=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case s.a.POLYGON:n=function(e,t){var n;t&&(n=t.rightHanded);return{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case s.a.MULTI_POINT:n=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case s.a.MULTI_LINE_STRING:n=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case s.a.MULTI_POLYGON:n=function(e,t){var n;t&&(n=t.rightHanded);return{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case s.a.GEOMETRY_COLLECTION:n=function(e,t){return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){var n=Object(m.a)({},t);return delete n.featureProjection,I(e,n)}))}}(e,t);break;case s.a.CIRCLE:n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}t.default=R},function(e,t,n){"use strict";n.r(t);var r,i=n(101),o="preload",a="useInterimTilesOnError",s=n(28),l=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=this,r=t||{},i=Object(s.a)({},r);return delete i.preload,delete i.useInterimTilesOnError,(n=e.call(this,i)||this).on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return l(t,e),t.prototype.getPreload=function(){return this.get(o)},t.prototype.setPreload=function(e){this.set(o,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(a)},t.prototype.setUseInterimTilesOnError=function(e){this.set(a,e)},t.prototype.getData=function(t){return e.prototype.getData.call(this,t)},t}(i.a),c=n(370),d=n(365),f=n(368),p=n(142),h=n(24),m=n(235),g=n(29),v=n(3),y=n(55),b=n(14),_=n(10),w=n(32),x=n(66),k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(v.j)(),n.tmpTileRange_=new p.b(0,0,0,0),n}return k(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==h.a.LOADED||n==h.a.EMPTY||n==h.a.ERROR&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource().getTile(e,t,n,i,o);return s.getState()==h.a.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):s.setState(h.a.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},t.prototype.getData=function(e){var t=this.frameState;if(!t)return null;var n=this.getLayer(),r=Object(g.a)(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!Object(v.f)(i,r))return null;for(var o=t.pixelRatio,a=t.viewState.projection,s=t.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),c=l.getTilePixelRatio(t.pixelRatio),p=u.getZForResolution(s.resolution);p>=u.getMinZoom();--p){var m=u.getTileCoordForCoordAndZ(r,p),y=l.getTile(p,m[1],m[2],o,a);if(!(y instanceof d.a||y instanceof f.a))return null;if(y.getState()===h.a.LOADED){var b=u.getOrigin(p),_=Object(x.c)(u.getTileSize(p)),w=u.getResolution(p),k=Math.floor(c*((r[0]-b[0])/w-m[1]*_[0])),E=Math.floor(c*((b[1]-r[1])/w-m[2]*_[1]));return this.getImageData(y.getImage(),k,E)}}return null},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,l=r.rotation,u=e.pixelRatio,c=this.getLayer(),d=c.getSource(),f=d.getRevision(),p=d.getTileGridForProjection(i),x=p.getZForResolution(o,d.zDirection),k=p.getResolution(x),E=e.extent,S=n.extent&&Object(b.f)(n.extent,i);S&&(E=Object(v.A)(E,Object(b.f)(n.extent,i)));var O=d.getTilePixelRatio(u),C=Math.round(e.size[0]*O),T=Math.round(e.size[1]*O);if(l){var A=Math.round(Math.sqrt(C*C+T*T));C=A,T=A}var P=k*C/2/O,R=k*T/2/O,j=[a[0]-P,a[1]-R,a[0]+P,a[1]+R],I=p.getTileRangeForExtentAndZ(E,x),M={};M[x]={};var L=this.createLoadedTileFinder(d,i,M),D=this.tmpExtent,N=this.tmpTileRange_;this.newTiles_=!1;for(var F=I.minX;F<=I.maxX;++F)for(var B=I.minY;B<=I.maxY;++B){var z=this.getTile(x,F,B,e);if(this.isDrawableTile(z)){var U=Object(_.c)(this);if(z.getState()==h.a.LOADED){M[x][z.tileCoord.toString()]=z;var q=z.inTransition(U);this.newTiles_||!q&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(U,e.time))continue}var W=p.getTileCoordChildTileRange(z.tileCoord,N,D),H=!1;W&&(H=L(x+1,W)),H||p.forEachTileCoordParentTileRange(z.tileCoord,L,N,D)}var $=k/o;Object(g.b)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/O,1/O,l,-C/2,-T/2);var V=Object(g.g)(this.pixelTransform);this.useContainer(t,V,n.opacity,this.getBackground(e));var G=this.context,K=G.canvas;Object(g.d)(this.inversePixelTransform,this.pixelTransform),Object(g.b)(this.tempTransform,C/2,T/2,$,$,0,-C/2,-T/2),K.width!=C||K.height!=T?(K.width=C,K.height=T):this.containerReused||G.clearRect(0,0,C,T),S&&this.clipUnrotated(G,e,S),d.getInterpolate()||Object(s.a)(G,m.a),this.preRender(G,e),this.renderedTiles.length=0;var Y,Q,X,Z=Object.keys(M).map(Number);Z.sort(w.f),1!==n.opacity||this.containerReused&&!d.getOpaque(e.viewState.projection)?(Y=[],Q=[]):Z=Z.reverse();for(var J=Z.length-1;J>=0;--J){var ee=Z[J],te=d.getTilePixelSize(ee,u,i),ne=p.getResolution(ee)/k,re=te[0]*ne*$,ie=te[1]*ne*$,oe=p.getTileCoordForCoordAndZ(Object(v.B)(j),ee),ae=p.getTileCoordExtent(oe),se=Object(g.a)(this.tempTransform,[O*(ae[0]-j[0])/k,O*(j[3]-ae[3])/k]),le=O*d.getGutterForProjection(i),ue=M[ee];for(var ce in ue){var de=(z=ue[ce]).tileCoord,fe=oe[1]-de[1],pe=Math.round(se[0]-(fe-1)*re),he=oe[2]-de[2],me=Math.round(se[1]-(he-1)*ie),ge=pe-(F=Math.round(se[0]-fe*re)),ve=me-(B=Math.round(se[1]-he*ie)),ye=x===ee,be=!1;if(!(q=ye&&1!==z.getAlpha(Object(_.c)(this),e.time)))if(Y){X=[F,B,F+ge,B,F+ge,B+ve,F,B+ve];for(var _e=0,we=Y.length;_e<we;++_e)if(x!==ee&&ee<Q[_e]){var xe=Y[_e];Object(v.E)([F,B,F+ge,B+ve],[xe[0],xe[3],xe[4],xe[7]])&&(be||(G.save(),be=!0),G.beginPath(),G.moveTo(X[0],X[1]),G.lineTo(X[2],X[3]),G.lineTo(X[4],X[5]),G.lineTo(X[6],X[7]),G.moveTo(xe[6],xe[7]),G.lineTo(xe[4],xe[5]),G.lineTo(xe[2],xe[3]),G.lineTo(xe[0],xe[1]),G.clip())}Y.push(X),Q.push(ee)}else G.clearRect(F,B,ge,ve);this.drawTileImage(z,e,F,B,ge,ve,le,ye),Y&&!q?(be&&G.restore(),this.renderedTiles.unshift(z)):this.renderedTiles.push(z),this.updateUsedTiles(e.usedTiles,d,z)}}this.renderedRevision=f,this.renderedResolution=k,this.extentChanged=!this.renderedExtent_||!Object(v.o)(this.renderedExtent_,j),this.renderedExtent_=j,this.renderedPixelRatio=u,this.renderedProjection=i,this.manageTilePyramid(e,d,p,u,i,E,x,c.getPreload()),this.scheduleExpireCache(e,d),this.postRender(G,e),n.extent&&G.restore(),Object(s.a)(G,m.b),V!==K.style.transform&&(K.style.transform=V);var ke=Object(y.e)(n.opacity),Ee=this.container;return ke!==Ee.style.opacity&&(Ee.style.opacity=ke),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s){var l=this.getTileImage(e);if(l){var u=Object(_.c)(this),c=s?e.getAlpha(u,t.time):1,d=c!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=c),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,r,i,o),d&&this.context.restore(),1!==c?t.animate=!0:s&&e.endTransition(u)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=Object(_.c)(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=Object(_.c)(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,l){var u=Object(_.c)(t);u in e.wantedTiles||(e.wantedTiles[u]={});var c,d,f,p,m,g,v=e.wantedTiles[u],y=e.tileQueue,b=0;for(g=n.getMinZoom();g<=a;++g)for(d=n.getTileRangeForExtentAndZ(o,g,d),f=n.getResolution(g),p=d.minX;p<=d.maxX;++p)for(m=d.minY;m<=d.maxY;++m)a-g<=s?(++b,(c=t.getTile(g,p,m,r,i)).getState()==h.a.IDLE&&(v[c.getKey()]=!0,y.isKeyQueued(c.getKey())||y.enqueue([c,u,n.getTileCoordCenter(c.tileCoord),f])),void 0!==l&&l(c)):t.useTile(g,p,m,i);t.updateCacheSize(b,i)},t}(c.a),S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(e){function t(t){return e.call(this,t)||this}return S(t,e),t.prototype.createRenderer=function(){return new E(this)},t}(u);t.default=O},function(e,t,n){"use strict";n.r(t),n.d(t,"YAML",(function(){return fe}));var r=n(1),i=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.call(this,r.e.BLANK_LINE)}return Object(r.i)(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(e,t){return this.context=e,this.range=new r.d(t,t+1),t+1}}]),n}(r.b),o=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).node=null,o}return Object(r.i)(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,a=e.atLineStart,s=e.lineStart;a||this.type!==r.e.SEQ_ITEM||(this.error=new r.n(this,"Sequence items must not have preceding content on the same line"));for(var l=a?t-s:e.indent,u=r.b.endOfWhiteSpace(o,t+1),c=o[u],d="#"===c,f=[],p=null;"\n"===c||"#"===c;){if("#"===c){var h=r.b.endOfLine(o,u+1);f.push(new r.d(u,h)),u=h}else{a=!0,s=u+1,"\n"===o[r.b.endOfWhiteSpace(o,s)]&&0===f.length&&(s=(p=new i).parse({src:o},s)),u=r.b.endOfIndent(o,s)}c=o[u]}if(r.b.nextNodeIsIndented(c,u-(s+l),this.type!==r.e.SEQ_ITEM)?this.node=n({atLineStart:a,inCollection:!1,indent:l,lineStart:s,parent:this},u):c&&s>t+1&&(u=s-1),this.node){if(p){var m=e.parent.items||e.parent.contents;m&&m.push(p)}f.length&&Array.prototype.push.apply(this.props,f),u=this.node.range.end}else if(d){var g=f[0];this.props.push(g),u=g.end}else u=r.b.endOfLine(o,t+1);var v=this.node?this.node.valueRange.end:u;return this.valueRange=new r.d(t,v),u}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,i=this.value;if(null!=i)return i;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.b.addStringTerminator(e,n.end,o)}}]),n}(r.b),a=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.call(this,r.e.COMMENT)}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new r.d(t,n),n}}]),n}(r.b);function s(e){for(var t=e;t instanceof o;)t=t.node;if(!(t instanceof l))return null;for(var n=t.items.length,i=-1,a=n-1;a>=0;--a){var s=t.items[a];if(s.type===r.e.COMMENT){var u=s.context,c=u.indent,d=u.lineStart;if(c>0&&s.range.start>=d+c)break;i=a}else{if(s.type!==r.e.BLANK_LINE)break;i=a}}if(-1===i)return null;for(var f=t.items.splice(i,n-i),p=f[0].range.start;t.range.end=p,t.valueRange&&t.valueRange.end>p&&(t.valueRange.end=p),t!==e;)t=t.context.parent;return f}var l=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){var i;Object(r.j)(this,n),i=t.call(this,e.type===r.e.SEQ_ITEM?r.e.SEQ:r.e.MAP);for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){i.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}i.items=[e];var l=s(e);return l&&Array.prototype.push.apply(i.items,l),i}return Object(r.i)(n,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(e,t){this.context=e;var o=e.parseNode,l=e.src,u=r.b.startOfLine(l,t),c=this.items[0];c.context.parent=this,this.valueRange=r.d.copy(c.valueRange);for(var d=c.range.start-c.context.lineStart,f=t,p=l[f=r.b.normalizeOffset(l,f)],h=r.b.endOfWhiteSpace(l,u)===f,m=!1;p;){for(;"\n"===p||"#"===p;){if(h&&"\n"===p&&!m){var g=new i;if(f=g.parse({src:l},f),this.valueRange.end=f,f>=l.length){p=null;break}this.items.push(g),f-=1}else if("#"===p){if(f<u+d&&!n.nextContentHasIndent(l,f,d))return f;var v=new a;if(f=v.parse({indent:d,lineStart:u,src:l},f),this.items.push(v),this.valueRange.end=f,f>=l.length){p=null;break}}if(u=f+1,f=r.b.endOfIndent(l,u),r.b.atBlank(l,f)){var y=r.b.endOfWhiteSpace(l,f),b=l[y];b&&"\n"!==b&&"#"!==b||(f=y)}p=l[f],h=!0}if(!p)break;if(f!==u+d&&(h||":"!==p)){if(f<u+d){u>t&&(f=u);break}if(!this.error){this.error=new r.f(this,"All collection items must start at the same column")}}if(c.type===r.e.SEQ_ITEM){if("-"!==p){u>t&&(f=u);break}}else if("-"===p&&!this.error){var _=l[f+1];if(!_||"\n"===_||"\t"===_||" "===_){this.error=new r.f(this,"A collection cannot be both a mapping and a sequence")}}var w=o({atLineStart:h,inCollection:!0,indent:d,lineStart:u,parent:this},f);if(!w)return f;if(this.items.push(w),this.valueRange.end=w.valueRange.end,p=l[f=r.b.normalizeOffset(l,w.range.end)],h=!1,m=w.includesTrailingLines,p){for(var x=f-1,k=l[x];" "===k||"\t"===k;)k=l[--x];"\n"===k&&(u=x+1,h=!0)}var E=s(w);E&&Array.prototype.push.apply(this.items,E)}return f}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){t=n.setOrigRanges(e,t)})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,i=this.value;if(null!=i)return i;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),a=1;a<t.length;++a){var s=t[a],l=s.context,u=l.atLineStart,c=l.indent;if(u)for(var d=0;d<c;++d)o+=" ";o+=String(s)}return r.b.addStringTerminator(e,n.end,o)}}],[{key:"nextContentHasIndent",value:function(e,t,i){var o=r.b.endOfLine(e,t)+1,a=e[t=r.b.endOfWhiteSpace(e,o)];return!!a&&(t>=o+i||("#"===a||"\n"===a)&&n.nextContentHasIndent(e,t,i))}}]),n}(r.b),u=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){var e;return Object(r.j)(this,n),(e=t.call(this,r.e.DIRECTIVE)).name=null,e}return Object(r.i)(n,[{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,i=t[n];i&&"\n"!==i&&"#"!==i;)i=t[n+=1];return this.valueRange=new r.d(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new r.d(t,n),n}}]),n}(r.b),c=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){var e;return Object(r.j)(this,n),(e=t.call(this,r.e.DOCUMENT)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return Object(r.i)(n,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var o=!0,s=!1,l=e;!r.b.atDocumentBoundary(t,l,r.a.DIRECTIVES_END);)switch(t[l=n.startCommentOrEndBlankLine(t,l)]){case"\n":if(o){var c=new i;(l=c.parse({src:t},l))<t.length&&this.directives.push(c)}else l+=1,o=!0;break;case"#":var d=new a;l=d.parse({src:t},l),this.directives.push(d),o=!1;break;case"%":var f=new u;l=f.parse({parent:this,src:t},l),this.directives.push(f),s=!0,o=!1;break;default:return s?this.error=new r.n(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return t[l]?(this.directivesEndMarker=new r.d(l,l+3),l+3):(s?this.error=new r.n(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}},{key:"parseContents",value:function(e){var t=this.context,o=t.parseNode,l=t.src;this.contents||(this.contents=[]);for(var u=e;"-"===l[u-1];)u-=1;var c=r.b.endOfWhiteSpace(l,e),d=u===e;for(this.valueRange=new r.d(c);!r.b.atDocumentBoundary(l,c,r.a.DOCUMENT_END);){switch(l[c]){case"\n":if(d){var f=new i;(c=f.parse({src:l},c))<l.length&&this.contents.push(f)}else c+=1,d=!0;u=c;break;case"#":var p=new a;c=p.parse({src:l},c),this.contents.push(p),d=!1;break;default:var h=r.b.endOfIndent(l,c),m=o({atLineStart:d,indent:-1,inFlow:!1,inCollection:!1,lineStart:u,parent:this},h);if(!m)return this.valueRange.end=h;this.contents.push(m),c=m.range.end,d=!1;var g=s(m);g&&Array.prototype.push.apply(this.contents,g)}c=n.startCommentOrEndBlankLine(l,c)}if(this.valueRange.end=c,l[c]&&(this.documentEndMarker=new r.d(c,c+3),l[c+=3])){if("#"===l[c=r.b.endOfWhiteSpace(l,c)]){var v=new a;c=v.parse({src:l},c),this.contents.push(v)}switch(l[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new r.f(this,"Document end marker line cannot have a non-comment suffix")}}return c}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach((function(n){t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((function(n){t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var i=t.join("");return e.length>0&&((t.length>0||e[0].type===r.e.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}}],[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=r.b.endOfWhiteSpace(e,t),i=e[n];return"#"===i||"\n"===i?n:t}}]),n}(r.b),d=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,i=r.b.endOfIdentifier(n,t+1);return this.valueRange=new r.d(t+1,i),i=r.b.endOfWhiteSpace(n,i),i=this.parseComment(i)}}]),n}(r.b),f="CLIP",p="KEEP",h="STRIP",m=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).blockIndent=null,o.chomping=f,o.header=null,o}return Object(r.i)(n,[{key:"includesTrailingLines",get:function(){return this.chomping===p}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,i=this.context,o=i.indent,a=i.src;if(this.valueRange.isEmpty())return"";for(var s=null,l=a[n-1];"\n"===l||"\t"===l||" "===l;){if((n-=1)<=t){if(this.chomping===p)break;return""}"\n"===l&&(s=n),l=a[n-1]}var u=n+1;s&&(this.chomping===p?(u=s,n=this.valueRange.end):n=s);for(var c=o+this.blockIndent,d=this.type===r.e.BLOCK_FOLDED,f=!0,m="",g="",v=!1,y=t;y<n;++y){for(var b=0;b<c&&" "===a[y];++b)y+=1;var _=a[y];if("\n"===_)"\n"===g?m+="\n":g="\n";else{var w=r.b.endOfLine(a,y),x=a.slice(y,w);y=w,d&&(" "===_||"\t"===_)&&y<u?(" "===g?g="\n":v||f||"\n"!==g||(g="\n\n"),m+=g+x,g=w<n&&a[w]||"",v=!0):(m+=g+x,g=d&&y<u?" ":"\n",v=!1),f&&""!==x&&(f=!1)}}return this.chomping===h?m:m+"\n"}},{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,i="";;){var o=t[n];switch(o){case"-":this.chomping=h;break;case"+":this.chomping=p;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=o;break;default:return this.blockIndent=Number(i)||null,this.header=new r.d(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,i=t.src,o=!!this.blockIndent,a=e,s=e,l=1,u=i[a];"\n"===u&&(a+=1,!r.b.atDocumentBoundary(i,a));u=i[a]){var c=r.b.endOfBlockIndent(i,n,a);if(null===c)break;var d=i[c],f=c-(a+n);if(this.blockIndent){if(d&&"\n"!==d&&f<this.blockIndent){if("#"===i[c])break;if(!this.error){var h="Block scalars must not be less indented than their ".concat(o?"explicit indentation indicator":"first line");this.error=new r.n(this,h)}}}else if("\n"!==i[c]){if(f<l){this.error=new r.n(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")}this.blockIndent=f}else f>l&&(l=f);a="\n"===i[c]?c:s=r.b.endOfLine(i,c)}return this.chomping!==p&&(a=i[s]?s+1:s),this.valueRange=new r.d(e+1,a),a}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,i=this.parseBlockHeader(t);return i=r.b.endOfWhiteSpace(n,i),i=this.parseComment(i),i=this.parseBlockValue(i)}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),n}(r.b),g=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e,i){var o;return Object(r.j)(this,n),(o=t.call(this,e,i)).items=null,o}return Object(r.i)(n,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===r.e.COMMENT&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,o=e.src,s=e.indent,l=e.lineStart,u=o[t];this.items=[{char:u,offset:t}];var c=r.b.endOfWhiteSpace(o,t+1);for(u=o[c];u&&"]"!==u&&"}"!==u;){switch(u){case"\n":if(l=c+1,"\n"===o[r.b.endOfWhiteSpace(o,l)]){var d=new i;l=d.parse({src:o},l),this.items.push(d)}if((c=r.b.endOfIndent(o,l))<=l+s&&(u=o[c],c<l+s||"]"!==u&&"}"!==u)){this.error=new r.n(this,"Insufficient indentation in flow collection")}break;case",":this.items.push({char:u,offset:c}),c+=1;break;case"#":var f=new a;c=f.parse({src:o},c),this.items.push(f);break;case"?":case":":var p=o[c+1];if("\n"===p||"\t"===p||" "===p||","===p||":"===u&&this.prevNodeIsJsonLike()){this.items.push({char:u,offset:c}),c+=1;break}default:var h=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:l,parent:this},c);if(!h)return this.valueRange=new r.d(t,c),c;this.items.push(h),c=r.b.normalizeOffset(o,h.range.end)}u=o[c=r.b.endOfWhiteSpace(o,c)]}return this.valueRange=new r.d(t,c+1),u&&(this.items.push({char:u,offset:c}),c=r.b.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}},{key:"setOrigRanges",value:function(e,t){return t=Object(r.s)(Object(r.t)(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){if(n instanceof r.b)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{for(var i=t;i<e.length&&!(e[i]>n.offset);)++i;n.origOffset=n.offset+i,t=i}})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,i=this.value;if(null!=i)return i;var o=t.filter((function(e){return e instanceof r.b})),a="",s=n.start;return o.forEach((function(t){var n=e.slice(s,t.range.start);s=t.range.end,"\n"===(a+=n+String(t))[a.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),a+=e.slice(s,n.end),r.b.addStringTerminator(e,n.end,a)}}]),n}(r.b),v=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,i=t.end,o=this.context,a=o.indent,s=o.src;'"'!==s[i-1]&&e.push(new r.f(this,'Missing closing "quote'));for(var l="",u=n+1;u<i-1;++u){var c=s[u];if("\n"===c){r.b.atDocumentBoundary(s,u+1)&&e.push(new r.n(this,"Document boundary indicators are not allowed within string values"));var d=r.b.foldNewline(s,u,a);l+=d.fold,u=d.offset,d.error&&e.push(new r.n(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===c)switch(s[u+=1]){case"0":l+="\0";break;case"a":l+="";break;case"b":l+="\b";break;case"e":l+="";break;case"f":l+="\f";break;case"n":l+="\n";break;case"r":l+="\r";break;case"t":l+="\t";break;case"v":l+="\v";break;case"N":l+="…";break;case"_":l+=" ";break;case"L":l+="\u2028";break;case"P":l+="\u2029";break;case" ":l+=" ";break;case'"':l+='"';break;case"/":l+="/";break;case"\\":l+="\\";break;case"\t":l+="\t";break;case"x":l+=this.parseCharCode(u+1,2,e),u+=2;break;case"u":l+=this.parseCharCode(u+1,4,e),u+=4;break;case"U":l+=this.parseCharCode(u+1,8,e),u+=8;break;case"\n":for(;" "===s[u+1]||"\t"===s[u+1];)u+=1;break;default:e.push(new r.f(this,"Invalid escape sequence ".concat(s.substr(u-1,2)))),l+="\\"+s[u]}else if(" "===c||"\t"===c){for(var f=u,p=s[u+1];" "===p||"\t"===p;)p=s[(u+=1)+1];"\n"!==p&&(l+=u>f?s.slice(f,u+1):c)}else l+=c}return e.length>0?{errors:e,str:l}:l}},{key:"parseCharCode",value:function(e,t,n){var i=this.context.src,o=i.substr(e,t),a=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(a)?(n.push(new r.f(this,"Invalid escape sequence ".concat(i.substr(e-2,t+2)))),i.substr(e-2,t+2)):String.fromCodePoint(a)}},{key:"parse",value:function(e,t){this.context=e;var i=e.src,o=n.endOfQuote(i,t+1);return this.valueRange=new r.d(t,o),o=r.b.endOfWhiteSpace(i,o),o=this.parseComment(o)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),n}(r.b),y=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(){return Object(r.j)(this,n),t.apply(this,arguments)}return Object(r.i)(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,i=t.end,o=this.context,a=o.indent,s=o.src;"'"!==s[i-1]&&e.push(new r.f(this,"Missing closing 'quote"));for(var l="",u=n+1;u<i-1;++u){var c=s[u];if("\n"===c){r.b.atDocumentBoundary(s,u+1)&&e.push(new r.n(this,"Document boundary indicators are not allowed within string values"));var d=r.b.foldNewline(s,u,a);l+=d.fold,u=d.offset,d.error&&e.push(new r.n(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===c)l+=c,"'"!==s[u+=1]&&e.push(new r.f(this,"Unescaped single quote? This should not happen."));else if(" "===c||"\t"===c){for(var f=u,p=s[u+1];" "===p||"\t"===p;)p=s[(u+=1)+1];"\n"!==p&&(l+=u>f?s.slice(f,u+1):c)}else l+=c}return e.length>0?{errors:e,str:l}:l}},{key:"parse",value:function(e,t){this.context=e;var i=e.src,o=n.endOfQuote(i,t+1);return this.valueRange=new r.d(t,o),o=r.b.endOfWhiteSpace(i,o),o=this.parseComment(o)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),n}(r.b);function b(e,t){switch(e){case r.e.ALIAS:return new d(e,t);case r.e.BLOCK_FOLDED:case r.e.BLOCK_LITERAL:return new m(e,t);case r.e.FLOW_MAP:case r.e.FLOW_SEQ:return new g(e,t);case r.e.MAP_KEY:case r.e.MAP_VALUE:case r.e.SEQ_ITEM:return new o(e,t);case r.e.COMMENT:case r.e.PLAIN:return new r.c(e,t);case r.e.QUOTE_DOUBLE:return new v(e,t);case r.e.QUOTE_SINGLE:return new y(e,t);default:return null}}var _=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.atLineStart,a=i.inCollection,s=i.inFlow,u=i.indent,c=i.lineStart,d=i.parent;Object(r.j)(this,e),Object(r.l)(this,"parseNode",(function(n,i){if(r.b.atDocumentBoundary(t.src,i))return null;var o=new e(t,n),a=o.parseProps(i),s=a.props,u=a.type,c=a.valueStart,d=b(u,s),f=d.parse(o,c);if(d.range=new r.d(i,f),f<=i&&(d.error=new Error("Node#parse consumed no characters"),d.error.parseEnd=f,d.error.source=d,d.range.end=i+1),o.nodeStartsCollection(d)){d.error||o.atLineStart||o.parent.type!==r.e.DOCUMENT||(d.error=new r.f(d,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var p=new l(d);return f=p.parse(new e(o),f),p.range=new r.d(i,f),p}return d})),this.atLineStart=null!=o?o:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=s?s:n.inFlow||!1,this.indent=null!=u?u:n.indent,this.lineStart=null!=c?c:n.lineStart,this.parent=null!=d?d:n.parent||{},this.root=n.root,this.src=n.src}return Object(r.i)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,i=this.src;if(t||n)return!1;if(e instanceof o)return!0;var a=e.range.end;return"\n"!==i[a]&&"\n"!==i[a-1]&&":"===i[a=r.b.endOfWhiteSpace(i,a)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,i=this.parent,o=this.src,a=[],s=!1,l=o[t=this.atLineStart?r.b.endOfIndent(o,t):r.b.endOfWhiteSpace(o,t)];l===r.a.ANCHOR||l===r.a.COMMENT||l===r.a.TAG||"\n"===l;){if("\n"===l){var u=t,c=void 0;do{c=u+1,u=r.b.endOfIndent(o,c)}while("\n"===o[u]);var d=u-(c+this.indent),f=i.type===r.e.SEQ_ITEM&&i.context.atLineStart;if("#"!==o[u]&&!r.b.nextNodeIsIndented(o[u],d,!f))break;this.atLineStart=!0,this.lineStart=c,s=!1,t=u}else if(l===r.a.COMMENT){var p=r.b.endOfLine(o,t+1);a.push(new r.d(t,p)),t=p}else{var h=r.b.endOfIdentifier(o,t+1);l===r.a.TAG&&","===o[h]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,h+13))&&(h=r.b.endOfIdentifier(o,h+5)),a.push(new r.d(t,h)),s=!0,t=r.b.endOfWhiteSpace(o,h)}l=o[t]}return s&&":"===l&&r.b.atBlank(o,t+1,!0)&&(t-=1),{props:a,type:e.parseType(o,t,n),valueStart:t}}}],[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return r.e.ALIAS;case">":return r.e.BLOCK_FOLDED;case"|":return r.e.BLOCK_LITERAL;case"{":return r.e.FLOW_MAP;case"[":return r.e.FLOW_SEQ;case"?":return!n&&r.b.atBlank(e,t+1,!0)?r.e.MAP_KEY:r.e.PLAIN;case":":return!n&&r.b.atBlank(e,t+1,!0)?r.e.MAP_VALUE:r.e.PLAIN;case"-":return!n&&r.b.atBlank(e,t+1,!0)?r.e.SEQ_ITEM:r.e.PLAIN;case'"':return r.e.QUOTE_DOUBLE;case"'":return r.e.QUOTE_SINGLE;default:return r.e.PLAIN}}}]),e}();function w(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(function(e,n){return e.length>1&&t.push(n),"\n"})));var n=[],r=0;do{var i=new c,o=new _({src:e});r=i.parse(o,r),n.push(i)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,i=0;i<n.length;++i)r=n[i].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}var x=n(7),k=n(76);var E={createNode:function(e,t,n){var i=new x.k(e);if(t instanceof Map){var o,a=Object(r.g)(t);try{for(a.s();!(o=a.n()).done;){var s=Object(r.o)(o.value,2),l=s[0],u=s[1];i.items.push(e.createPair(l,u,n))}}catch(e){a.e(e)}finally{a.f()}}else if(t&&"object"===Object(r.h)(t))for(var c=0,d=Object.keys(t);c<d.length;c++){var f=d[c];i.items.push(e.createPair(f,t[f],n))}return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:x.k,tag:"tag:yaml.org,2002:map",resolve:x.n};var S={createNode:function(e,t,n){var i=new x.g(e);if(t&&t[Symbol.iterator]){var o,a=Object(r.g)(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=e.createNode(s,n.wrapScalars,null,n);i.items.push(l)}}catch(e){a.e(e)}finally{a.f()}}return i},default:!0,nodeClass:x.g,tag:"tag:yaml.org,2002:seq",resolve:x.o},O={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:x.q,stringify:function(e,t,n,r){return t=Object.assign({actualString:!0},t),Object(x.j)(e,t,n,r)},options:x.v},C=[E,S,O],T=function(e){return"bigint"==typeof e||Number.isInteger(e)},A=function(e,t,n){return x.p.asBigInt?BigInt(e):parseInt(t,n)};function P(e,t,n){var r=e.value;return T(r)&&r>=0?n+r.toString(t):Object(x.r)(e)}var R={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:x.t,stringify:function(){return x.t.nullStr}},j={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:x.h,stringify:function(e){return e.value?x.h.trueStr:x.h.falseStr}},I={identify:function(e){return T(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return A(e,t,8)},options:x.p,stringify:function(e){return P(e,8,"0o")}},M={identify:T,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return A(e,e,10)},options:x.p,stringify:x.r},L={identify:function(e){return T(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return A(e,t,16)},options:x.p,stringify:function(e){return P(e,16,"0x")}},D={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:x.r},N={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},F={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,i=new x.f(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:x.r},B=C.concat([R,j,I,M,L,D,N,F]),z=function(e){return"bigint"==typeof e||Number.isInteger(e)},U=function(e){var t=e.value;return JSON.stringify(t)},q=[E,S,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:x.q,stringify:U},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:U},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:U},{identify:z,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return x.p.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return z(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:U}];q.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var W=function(e){return e.value?x.h.trueStr:x.h.falseStr},H=function(e){return"bigint"==typeof e||Number.isInteger(e)};function $(e,t,n){var r=t.replace(/_/g,"");if(x.p.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}var i=BigInt(r);return"-"===e?BigInt(-1)*i:i}var o=parseInt(r,n);return"-"===e?-1*o:o}function V(e,t,n){var r=e.value;if(H(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Object(x.r)(e)}var G=C.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new x.f(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:x.t,stringify:function(){return x.t.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:x.h,stringify:W},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:x.h,stringify:W},{identify:H,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,n){return $(t,n,2)},stringify:function(e){return V(e,2,"0b")}},{identify:H,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,n){return $(t,n,8)},stringify:function(e){return V(e,8,"0")}},{identify:H,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,n){return $(t,n,10)},stringify:x.r},{identify:H,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,n){return $(t,n,16)},stringify:function(e){return V(e,16,"0x")}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:x.r},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new x.f(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:x.r}],k.b,k.e,k.f,k.g,k.d,k.c,k.h),K={core:B,failsafe:C,json:q,yaml11:G},Y={binary:k.b,bool:j,float:F,floatExp:N,floatNaN:D,floatTime:k.c,int:M,intHex:L,intOct:I,intTime:k.d,map:E,null:R,omap:k.e,pairs:k.f,seq:S,set:k.g,timestamp:k.h};function Q(e,t,n){if(e instanceof x.d)return e;var i=n.defaultPrefix,o=n.onTagObj,a=n.prevObjects,s=n.schema,l=n.wrapScalars;t&&t.startsWith("!!")&&(t=i+t.slice(2));var u=function(e,t,n){if(t){var r=n.filter((function(e){return e.tag===t})),i=r.find((function(e){return!e.format}))||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find((function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format}))}(e,t,s.tags);if(!u){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==Object(r.h)(e))return l?new x.f(e):e;u=e instanceof Map?E:e[Symbol.iterator]?S:E}o&&(o(u),delete n.onTagObj);var c={value:void 0,node:void 0};if(e&&"object"===Object(r.h)(e)&&a){var d=a.get(e);if(d){var f=new x.a(d);return n.aliasNodes.push(f),f}c.value=e,a.set(e,c)}return c.node=u.createNode?u.createNode(n.schema,e,n):l?new x.f(e):e,t&&c.node instanceof x.d&&(c.node.tag=t),c.node}var X=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},Z=function(){function e(t){var n=t.customTags,i=t.merge,o=t.schema,a=t.sortMapEntries,s=t.tags;Object(r.j)(this,e),this.merge=!!i,this.name=o,this.sortMapEntries=!0===a?X:a||null,!n&&s&&Object(k.a)("tags","customTags"),this.tags=function(e,t,n,i){var o=e[i.replace(/\W/g,"")];if(!o){var a=Object.keys(e).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown schema "'.concat(i,'"; use one of ').concat(a))}if(Array.isArray(n)){var s,l=Object(r.g)(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;o=o.concat(u)}}catch(e){l.e(e)}finally{l.f()}}else"function"==typeof n&&(o=n(o.slice()));for(var c=0;c<o.length;++c){var d=o[c];if("string"==typeof d){var f=t[d];if(!f){var p=Object.keys(t).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown custom tag "'.concat(d,'"; use one of ').concat(p))}o[c]=f}}return o}(K,Y,n||s,o)}return Object(r.i)(e,[{key:"createNode",value:function(t,n,r,i){var o={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return Q(t,r,i?Object.assign(i,o):o)}},{key:"createPair",value:function(e,t,n){n||(n={wrapScalars:!0});var r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new x.e(r,i)}}]),e}();Object(r.l)(Z,"defaultPrefix",r.k),Object(r.l)(Z,"defaultTags",r.u);var J={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ee={get binary(){return x.i},set binary(e){Object.assign(x.i,e)},get bool(){return x.h},set bool(e){Object.assign(x.h,e)},get int(){return x.p},set int(e){Object.assign(x.p,e)},get null(){return x.t},set null(e){Object.assign(x.t,e)},get str(){return x.v},set str(e){Object.assign(x.v,e)}},te={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:r.k},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.k}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:r.k}]}};function ne(e,t){if("1.0"===(e.version||e.options.version)){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find((function(e){return 0===t.indexOf(e.prefix)}));if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find((function(e){return 0===t.indexOf(e.prefix)}))}if(!i)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,(function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]}));return i.handle+a}function re(e,t,n,i){var o,a=t.doc,s=a.anchors,l=a.schema;if(!(e instanceof x.d)){var u={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=l.createNode(e,!0,null,u);var c,d=Object(r.g)(u.aliasNodes);try{for(d.s();!(c=d.n()).done;){var f=c.value;f.source=f.source.node;var p=s.getName(f.source);p||(p=s.newName(),s.map[p]=f.source)}}catch(e){d.e(e)}finally{d.f()}}if(e instanceof x.e)return e.toString(t,n,i);o||(o=function(e,t){if(t instanceof x.a)return x.a;if(t.tag){var n=e.filter((function(e){return e.tag===t.tag}));if(n.length>0)return n.find((function(e){return e.format===t.format}))||n[0]}var i,o;if(t instanceof x.f){o=t.value;var a=e.filter((function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class}));i=a.find((function(e){return e.format===t.format}))||a.find((function(e){return!e.format}))}else o=t,i=e.find((function(e){return e.nodeClass&&o instanceof e.nodeClass}));if(!i){var s=o&&o.constructor?o.constructor.name:Object(r.h)(o);throw new Error("Tag not resolved for ".concat(s," value"))}return i}(l.tags,e));var h=function(e,t,n){var r=n.anchors,i=n.doc,o=[],a=i.anchors.getName(e);return a&&(r[a]=e,o.push("&".concat(a))),e.tag?o.push(ne(i,e.tag)):t.default||o.push(ne(i,t.tag)),o.join(" ")}(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var m="function"==typeof o.stringify?o.stringify(e,t,n,i):e instanceof x.f?Object(x.j)(e,t,n,i):e.toString(t,n,i);return h?e instanceof x.f||"{"===m[0]||"["===m[0]?"".concat(h," ").concat(m):"".concat(h,"\n").concat(t.indent).concat(m):m}var ie=function(){function e(t){Object(r.j)(this,e),Object(r.l)(this,"map",Object.create(null)),this.prefix=t}return Object(r.i)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new x.a(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new x.c,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.value.items=r.map((function(t){if(t instanceof x.a){if(t.source instanceof x.k)return t}else if(t instanceof x.k)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find((function(n){return t[n]===e}))}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach((function(t){e[t]=e[t].resolved})),t.forEach((function(e){e.source=e.source.resolved})),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,i=t&&Object.keys(r).find((function(e){return r[e]===t}));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}],[{key:"validAnchorNode",value:function(e){return e instanceof x.f||e instanceof x.g||e instanceof x.k}}]),e}(),oe=function(e){return Object.keys(function e(t,n){if(t&&"object"===Object(r.h)(t)){var i=t.tag;t instanceof x.b?(i&&(n[i]=!0),t.items.forEach((function(t){return e(t,n)}))):t instanceof x.e?(e(t.key,n),e(t.value,n)):t instanceof x.f&&i&&(n[i]=!0)}return n}(e,{}))};function ae(e,t){var n=e.tagPrefixes,i=Object(r.o)(t.parameters,2),o=i[0],a=i[1];if(!o||!a){throw new r.n(t,"Insufficient parameters given for %TAG directive")}if(n.some((function(e){return e.handle===o}))){throw new r.n(t,"The %TAG directive must only be given at most once per handle in the same document.")}return{handle:o,prefix:a}}function se(e,t){var n=Object(r.o)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),!n){throw new r.n(t,"Insufficient parameters given for %YAML directive")}if(!te[n]){var i=e.version||e.options.version,o="Document will be parsed as YAML ".concat(i," rather than YAML ").concat(n);e.warnings.push(new r.m(t,o))}return n}function le(e){if(e instanceof x.b)return!0;throw new Error("Expected a YAML collection as document contents")}var ue=function(){function e(t){Object(r.j)(this,e),this.anchors=new ie(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Object(r.i)(e,[{key:"add",value:function(e){return le(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){le(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return le(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return Object(x.l)(e)?null!=this.contents&&(this.contents=null,!0):(le(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof x.b?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return Object(x.l)(e)?!t&&this.contents instanceof x.f?this.contents.value:this.contents:this.contents instanceof x.b?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof x.b&&this.contents.has(e)}},{key:"hasIn",value:function(e){return Object(x.l)(e)?void 0!==this.contents:this.contents instanceof x.b&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){le(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){Object(x.l)(e)?this.contents=t:(le(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new Z(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,i=void 0===n?[]:n,o=e.contents,a=void 0===o?[]:o,s=e.directivesEndMarker,l=e.error,u=e.valueRange;if(l&&(l.source||(l.source=this),this.errors.push(l)),function(e,t,n){var i,o=[],a=!1,s=Object(r.g)(t);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.comment,c=l.name;switch(c){case"TAG":try{e.tagPrefixes.push(ae(e,l))}catch(t){e.errors.push(t)}a=!0;break;case"YAML":case"YAML:1.0":if(e.version){e.errors.push(new r.n(l,"The %YAML directive must only be given at most once per document."))}try{e.version=se(e,l)}catch(t){e.errors.push(t)}a=!0;break;default:if(c){var d="YAML only supports %TAG and %YAML directives, and not %".concat(c);e.warnings.push(new r.m(l,d))}}u&&o.push(u)}}catch(e){s.e(e)}finally{s.f()}if(n&&!a&&"1.1"===(e.version||n.version||e.options.version)){e.tagPrefixes=n.tagPrefixes.map((function(e){return{handle:e.handle,prefix:e.prefix}})),e.version=n.version}e.commentBefore=o.join("\n")||null}(this,i,t),s&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var n,i={before:[],after:[]},o=void 0,a=!1,s=Object(r.g)(t);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(l.valueRange){if(void 0!==o){e.errors.push(new r.f(l,"Document contains trailing content not separated by a ... or --- line"));break}var u=Object(x.u)(e,l);a&&(u.spaceBefore=!0,a=!1),o=u}else if(null!==l.comment){(void 0===o?i.before:i.after).push(l.comment)}else l.type===r.e.BLANK_LINE&&(a=!0,void 0===o&&i.before.length>0&&!e.commentBefore&&(e.commentBefore=i.before.join("\n"),i.before=[]))}}catch(e){s.e(e)}finally{s.f()}if(e.contents=o||null,o){var c=i.before.join("\n");if(c){var d=o instanceof x.b&&o.items[0]?o.items[0]:o;d.commentBefore=d.commentBefore?"".concat(c,"\n").concat(d.commentBefore):c}e.comment=i.after.join("\n")||null}else e.comment=i.before.concat(i.after).join("\n")||null}(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var c,d=Object(r.g)(this.errors);try{for(d.s();!(c=d.n()).done;){var f=c.value;f instanceof r.p&&f.makePretty()}}catch(e){d.e(e)}finally{d.f()}var p,h=Object(r.g)(this.warnings);try{for(h.s();!(p=h.n()).done;){var m=p.value;m instanceof r.p&&m.makePretty()}}catch(e){h.e(e)}finally{h.f()}}return this}},{key:"listNonDefaultTags",value:function(){return oe(this.contents).filter((function(e){return 0!==e.indexOf(Z.defaultPrefix)}))}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find((function(t){return t.handle===e}));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((function(t){return t.handle!==e}))}},{key:"toJSON",value:function(e,t){var n=this,i=this.options,o=i.keepBlobsInJSON,a=i.mapAsMap,s=i.maxAliasCount,l=o&&("string"!=typeof e||!(this.contents instanceof x.f)),u={doc:this,indentStep:" ",keep:l,mapAsMap:l&&!!a,maxAliasCount:s,stringify:re},c=Object.keys(this.anchors.map);c.length>0&&(u.anchors=new Map(c.map((function(e){return[n.anchors.map[e],{alias:[],aliasCount:0,count:1}]}))));var d=Object(x.w)(this.contents,e,u);if("function"==typeof t&&u.anchors){var f,p=Object(r.g)(u.anchors.values());try{for(p.s();!(f=p.n()).done;){var h=f.value,m=h.count;t(h.res,m)}}catch(e){p.e(e)}finally{p.f()}}return d}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var n=[],r=!1;if(this.version){var i="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?i="%YAML:1.0":"1.1"===this.version&&(i="%YAML 1.1")),n.push(i),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach((function(e){var t=e.handle,i=e.prefix;o.some((function(e){return 0===e.indexOf(i)}))&&(n.push("%TAG ".concat(t," ").concat(i)),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:re},s=!1,l=null;if(this.contents){this.contents instanceof x.d&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,l=this.contents.comment);var u=l?null:function(){return s=!0},c=re(this.contents,a,(function(){return l=null}),u);n.push(Object(x.m)(c,"",l))}else void 0!==this.contents&&n.push(re(this.contents,a));return this.comment&&(s&&!l||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}]),e}();Object(r.l)(ue,"defaults",te);var ce=function(e){Object(r.q)(n,e);var t=Object(r.r)(n);function n(e){return Object(r.j)(this,n),t.call(this,Object.assign({},J,e))}return n}(ue);function de(e,t){var n=w(e),i=new ce(t).parse(n[0]);if(n.length>1){i.errors.unshift(new r.n(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return i}var fe={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},ue.defaults[J.version],J),i=new Z(r);return i.createNode(e,t,n)},defaultOptions:J,Document:ce,parse:function(e,t){var n=de(e,t);if(n.warnings.forEach((function(e){return Object(k.i)(e)})),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,i,o=[],a=Object(r.g)(w(e));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=new ce(t);l.parse(s,n),o.push(l),n=l}}catch(e){a.e(e)}finally{a.f()}return o},parseCST:w,parseDocument:de,scalarOptions:ee,stringify:function(e,t){var n=new ce(t);return n.contents=e,String(n)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"NetlifyCms",(function(){return h}));var r=n(757),i=n.n(r),o=n(0),a=n.n(o),s=n(157),l=n(773),u=n.n(l),c=n(774),d=n.n(c);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}s.NetlifyCmsApp.registerMediaLibrary(u.a),s.NetlifyCmsApp.registerMediaLibrary(d.a),window.CMS_MANUAL_INIT?console.log("`window.CMS_MANUAL_INIT` flag set, skipping automatic initialization."):s.NetlifyCmsApp.init(),"undefined"!=typeof window&&(window.CMS=s.NetlifyCmsApp,window.initCMS=s.NetlifyCmsApp.init,window.createClass=window.createClass||i.a,window.h=window.h||a.a.createElement,console.log("netlify-cms 2.10.192"));const h=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s.NetlifyCmsApp);t.default=s.NetlifyCmsApp},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n(486),i=n.n(r);const o=/\s+at.*[(\s](.*)\)?/,a=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,s=void 0===i.a.homedir?"":i.a.homedir().replace(/\\/g,"/");function l(e,{pretty:t=!1,basePath:n}={}){const r=n&&new RegExp("(at | \\()"+function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(n.replace(/\\/g,"/")),"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(o);if(null===t||!t[1])return!0;const n=t[1];return!n.includes(".app/Contents/Resources/electron.asar")&&!n.includes(".app/Contents/Resources/default_app.asar")&&!a.test(n)}).filter(e=>""!==e.trim()).map(e=>(r&&(e=e.replace(r,"$1")),t&&(e=e.replace(o,(e,t)=>e.replace(t,t.replace(s,"~")))),e)).join("\n")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Re}));var r=n(16),i="dnd-core/INIT_COORDS",o="dnd-core/BEGIN_DRAG",a="dnd-core/PUBLISH_DRAG_SOURCE",s="dnd-core/HOVER",l="dnd-core/DROP",u="dnd-core/END_DRAG";function c(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function p(e,t){return e.filter((function(e){return e!==t}))}function h(e){return"object"===d(e)}function m(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e,t){1===e&&i.push(t)})),i}var g={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function v(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,a=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),u=e.getRegistry();e.dispatch(c(a)),y(t,l,u);var d=w(t,l);if(null!==d){var f=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");b(s),f=s(d)}e.dispatch(c(a,f));var p=u.getSource(d),h=p.beginDrag(l,d);if(null!=h){_(h),u.pinSource(d);var m=u.getSourceType(d);return{type:o,payload:{itemType:m,item:h,sourceId:d,clientOffset:a||null,sourceClientOffset:f||null,isSourcePublic:!!i}}}}else e.dispatch(g)}}function y(e,t,n){Object(r.a)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Object(r.a)(n.getSource(e),"Expected sourceIds to be registered.")}))}function b(e){Object(r.a)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function _(e){Object(r.a)(h(e),"Item must be an object.")}function w(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function x(e){return function(){if(e.getMonitor().isDragging())return{type:a}}}function k(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function E(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;S(t);var i=t.slice(0),o=e.getMonitor(),a=e.getRegistry();O(i,o,a);var l=o.getItemType();return C(i,a,l),T(i,o,a),{type:s,payload:{targetIds:i,clientOffset:r||null}}}}function S(e){Object(r.a)(Array.isArray(e),"Expected targetIds to be an array.")}function O(e,t,n){Object(r.a)(t.isDragging(),"Cannot call hover while not dragging."),Object(r.a)(!t.didDrop(),"Cannot call hover after drop.");for(var i=0;i<e.length;i++){var o=e[i];Object(r.a)(e.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");var a=n.getTarget(o);Object(r.a)(a,"Expected targetIds to be registered.")}}function C(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r];k(t.getTargetType(i),n)||e.splice(r,1)}}function T(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();I(n);var i=L(n);i.forEach((function(i,o){var a=M(i,o,r,n),s={type:l,payload:{dropResult:P(P({},t),a)}};e.dispatch(s)}))}}function I(e){Object(r.a)(e.isDragging(),"Cannot call drop while not dragging."),Object(r.a)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function M(e,t,n,i){var o=n.getTarget(e),a=o?o.drop(i,e):void 0;return function(e){Object(r.a)(void 0===e||h(e),"Drop result must either be an object or undefined.")}(a),void 0===a&&(a=0===t?{}:i.getDropResult()),a}function L(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function D(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){Object(r.a)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var i=t.getSourceId();null!=i&&(n.getSource(i,!0).endDrag(t,i),n.unpinSource());return{type:u}}}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),F(this,"store",void 0),F(this,"monitor",void 0),F(this,"backend",void 0),F(this,"isSetUp",!1),F(this,"handleRefCountChange",(function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:v(e),publishDragSource:x(e),hover:E(e),drop:j(e),endDrag:D(e)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=o.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&N(t.prototype,n),r&&N(t,r),e}(),z=n(227),U=function(e,t){return e===t};function q(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case i:case o:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case s:return q(e.clientOffset,n.clientOffset)?e:$($({},e),{},{clientOffset:n.clientOffset});case u:case l:return G;default:return e}}var Y="dnd-core/ADD_SOURCE",Q="dnd-core/ADD_TARGET",X="dnd-core/REMOVE_SOURCE",Z="dnd-core/REMOVE_TARGET";function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ne={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case o:return ee(ee({},e),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case a:return ee(ee({},e),{},{isSourcePublic:!0});case s:return ee(ee({},e),{},{targetIds:n.targetIds});case Z:return-1===e.targetIds.indexOf(n.targetId)?e:ee(ee({},e),{},{targetIds:p(e.targetIds,n.targetId)});case l:return ee(ee({},e),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case u:return ee(ee({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Y:case Q:return e+1;case X:case Z:return e-1;default:return e}}var oe=[],ae=[];function se(e,t){return e!==oe&&(e===ae||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function le(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case s:break;case Y:case Q:case Z:case X:return oe;case o:case a:case u:case l:default:return ae}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,i=t.prevTargetIds,c=void 0===i?[]:i,d=m(r,c),f=d.length>0||!W(r,c);if(!f)return oe;var p=c[c.length-1],h=r[r.length-1];return p!==h&&(p&&d.push(p),h&&d.push(h)),d}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:le(e.dirtyHandlerIds,{type:t.type,payload:de(de({},t.payload),{},{prevTargetIds:f(e,"dragOperation.targetIds",[])})}),dragOffset:K(e.dragOffset,t),refCount:ie(e.refCount,t),dragOperation:re(e.dragOperation,t),stateId:ue(e.stateId)}}function he(e,t){return{x:e.x-t.x,y:e.y-t.y}}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oe.__IS_NONE__=!0,ae.__IS_ALL__=!0;var ve,ye=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,"store",void 0),ge(this,"registry",void 0),this.store=t,this.registry=n}var t,n,i;return t=e,(n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},i=n.handlerIds;Object(r.a)("function"==typeof e,"listener must be a function."),Object(r.a)(void 0===i||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,a=function(){var n=t.store.getState(),r=n.stateId;try{r===o||r===o+1&&!se(n.dirtyHandlerIds,i)||e()}finally{o=r}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Object(r.a)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Object(r.a)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Object(r.a)(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&k(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Object(r.a)(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!k(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(e);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,i=e.initialClientOffset,o=e.initialSourceClientOffset,r&&i&&o?he((n=o,{x:(t=r).x+n.x,y:t.y+n.y}),i):null;var e,t,n,r,i,o}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?he(t,n):null;var e,t,n}}])&&me(t.prototype,n),i&&me(t,i),e}(),be=0;function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t){t&&Array.isArray(e)?e.forEach((function(e){return we(e,!1)})):Object(r.a)("string"==typeof e||"symbol"===_e(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(ve||(ve={}));var xe=n(760);function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e){var t=(be++).toString();switch(e){case ve.SOURCE:return"S".concat(t);case ve.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Te(e){switch(e[0]){case"S":return ve.SOURCE;case"T":return ve.TARGET;default:Object(r.a)(!1,"Cannot parse handler ID: ".concat(e))}}function Ae(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(Se(i.value,2)[1]===t)return!0;r=!!o}while(!r);return!1}var Pe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ee(this,"types",new Map),Ee(this,"dragSources",new Map),Ee(this,"dropTargets",new Map),Ee(this,"pinnedSourceId",null),Ee(this,"pinnedSource",null),Ee(this,"store",void 0),this.store=t}var t,n,i;return t=e,(n=[{key:"addSource",value:function(e,t){we(e),function(e){Object(r.a)("function"==typeof e.canDrag,"Expected canDrag to be a function."),Object(r.a)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Object(r.a)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(ve.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Y,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){we(e,!0),function(e){Object(r.a)("function"==typeof e.canDrop,"Expected canDrop to be a function."),Object(r.a)("function"==typeof e.hover,"Expected hover to be a function."),Object(r.a)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(ve.TARGET,e,t);return this.store.dispatch(function(e){return{type:Q,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Ae(this.dragSources,e)||Ae(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(r.a)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,i=n?this.pinnedSource:this.dragSources.get(e);return i}},{key:"getTarget",value:function(e){return Object(r.a)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Object(r.a)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Object(r.a)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Te(e)===ve.SOURCE}},{key:"isTargetId",value:function(e){return Te(e)===ve.TARGET}},{key:"removeSource",value:function(e){var t=this;Object(r.a)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:X,payload:{sourceId:e}}}(e)),Object(xe.asap)((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){Object(r.a)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Z,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Object(r.a)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Object(r.a)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=Ce(e);return this.types.set(r,t),e===ve.SOURCE?this.dragSources.set(r,n):e===ve.TARGET&&this.dropTargets.set(r,n),r}}])&&ke(t.prototype,n),i&&ke(t,i),e}();function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=je(r),o=new ye(i,new Pe(i)),a=new B(i,o),s=e(a,t,n);return a.receiveBackend(s),a}function je(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Object(z.createStore)(pe,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}}]).NetlifyCms}));
//# sourceMappingURL=netlify-cms.js.map