react-refractor
Advanced tools
Comparing version 2.0.2 to 2.1.0
"use strict"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { 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 _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var filter = require('unist-util-filter'); | ||
@@ -92,3 +74,3 @@ | ||
if (!map.has(ancestor)) { | ||
map.set(ancestor, _objectSpread({}, ancestor, { | ||
map.set(ancestor, Object.assign({}, ancestor, { | ||
children: [] | ||
@@ -167,3 +149,3 @@ })); | ||
var merged = [].concat(_toConsumableArray(getChildren(headMap)), _toConsumableArray(getChildren(lineMap)), _toConsumableArray(getChildren(tailMap)), _toConsumableArray(filtered ? filtered.children : [])); | ||
var merged = [].concat(getChildren(headMap), getChildren(lineMap), getChildren(tailMap), filtered ? filtered.children : []); | ||
headMap.clear(); | ||
@@ -176,7 +158,10 @@ lineMap.clear(); | ||
function wrapBatch(children, marker, options) { | ||
var className = marker.className || 'refractor-marker'; | ||
return { | ||
type: 'element', | ||
tagName: marker.component || 'div', | ||
properties: marker.component ? options : { | ||
className: marker.className || 'refractor-marker' | ||
properties: marker.component ? Object.assign({}, options, { | ||
className: className | ||
}) : { | ||
className: className | ||
}, | ||
@@ -231,3 +216,3 @@ children: children, | ||
module.exports = function (ast, options) { | ||
function addMarkers(ast, options) { | ||
var markers = options.markers.map(function (marker) { | ||
@@ -241,4 +226,6 @@ return marker.line ? marker : { | ||
var numbered = lineNumberify(ast).nodes; | ||
var wrapped = wrapLines(numbered, markers, options); | ||
return wrapped; | ||
}; | ||
return wrapLines(numbered, markers, options); | ||
} | ||
module.exports = addMarkers; | ||
//# sourceMappingURL=addMarkers.js.map |
@@ -59,2 +59,3 @@ "use strict"; | ||
this.values = []; | ||
}; | ||
}; | ||
//# sourceMappingURL=map.js.map |
@@ -24,2 +24,3 @@ "use strict"; | ||
exports.depth = mapWithDepth; | ||
exports.depth = mapWithDepth; | ||
//# sourceMappingURL=mapChildren.js.map |
@@ -57,3 +57,2 @@ "use strict"; | ||
value: PropTypes.string.isRequired, | ||
astPlugins: PropTypes.arrayOf(PropTypes.func), | ||
markers: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({ | ||
@@ -66,3 +65,2 @@ line: PropTypes.number.isRequired, | ||
Refractor.defaultProps = { | ||
astPlugins: [], | ||
className: 'refractor', | ||
@@ -80,2 +78,3 @@ inline: false | ||
module.exports = Refractor; | ||
module.exports = Refractor; | ||
//# sourceMappingURL=Refractor.js.map |
{ | ||
"name": "react-refractor", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Super-thin React wrapper for refractor (Syntax highlighting using VDOM)", | ||
@@ -9,3 +9,3 @@ "main": "lib/Refractor.js", | ||
"build": "npm run build:es5 && npm run build:umd && npm run build:demo:prod", | ||
"build:es5": "NODE_ENV=production babel --copy-files -d lib/ src/", | ||
"build:es5": "NODE_ENV=production babel --source-maps --delete-dir-on-start --copy-files -d lib/ src/", | ||
"build:umd": "NODE_ENV=production webpack -p src/Refractor.js -o umd/Refractor.js", | ||
@@ -55,4 +55,4 @@ "build:demo": "webpack --config webpack.config.demo.js", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/preset-env": "^7.9.5", | ||
"@babel/core": "^7.9.6", | ||
"@babel/preset-env": "^7.9.6", | ||
"babel-loader": "^8.1.0", | ||
@@ -63,3 +63,3 @@ "eslint": "^6.8.0", | ||
"gh-pages-deploy": "^0.5.1", | ||
"jest": "^25.5.0", | ||
"jest": "^25.5.4", | ||
"prettier": "^2.0.5", | ||
@@ -66,0 +66,0 @@ "react": "^16.3.2", |
@@ -65,3 +65,3 @@ const filter = require('unist-util-filter') | ||
if (!map.has(ancestor)) { | ||
map.set(ancestor, {...ancestor, children: []}) | ||
map.set(ancestor, Object.assign({}, ancestor, {children: []})) | ||
@@ -133,8 +133,8 @@ if (ancestor !== tree) { | ||
const merged = [ | ||
...getChildren(headMap), | ||
...getChildren(lineMap), | ||
...getChildren(tailMap), | ||
...(filtered ? filtered.children : []), | ||
] | ||
const merged = [].concat( | ||
getChildren(headMap), | ||
getChildren(lineMap), | ||
getChildren(tailMap), | ||
filtered ? filtered.children : [] | ||
) | ||
@@ -149,6 +149,7 @@ headMap.clear() | ||
function wrapBatch(children, marker, options) { | ||
const className = marker.className || 'refractor-marker' | ||
return { | ||
type: 'element', | ||
tagName: marker.component || 'div', | ||
properties: marker.component ? options : {className: marker.className || 'refractor-marker'}, | ||
properties: marker.component ? Object.assign({}, options, {className}) : {className}, | ||
children, | ||
@@ -201,3 +202,3 @@ lineStart: marker.line, | ||
module.exports = function (ast, options) { | ||
function addMarkers(ast, options) { | ||
const markers = options.markers | ||
@@ -208,4 +209,5 @@ .map((marker) => (marker.line ? marker : {line: marker})) | ||
const numbered = lineNumberify(ast).nodes | ||
const wrapped = wrapLines(numbered, markers, options) | ||
return wrapped | ||
return wrapLines(numbered, markers, options) | ||
} | ||
module.exports = addMarkers |
@@ -45,3 +45,2 @@ const React = require('react') | ||
value: PropTypes.string.isRequired, | ||
astPlugins: PropTypes.arrayOf(PropTypes.func), | ||
markers: PropTypes.arrayOf( | ||
@@ -60,3 +59,2 @@ PropTypes.oneOfType([ | ||
Refractor.defaultProps = { | ||
astPlugins: [], | ||
className: 'refractor', | ||
@@ -63,0 +61,0 @@ inline: false, |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.reactRefractor=n(require("react")):e.reactRefractor=n(e.React)}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=11)}([function(e,n,t){"use strict";var r=t(1),a=t(5),l=t(6);e.exports=function(e){var n,t,i=e.space,o=e.mustUseProperty||[],u=e.attributes||{},s=e.properties,c=e.transform,p={},f={};for(n in s)t=new l(n,c(u,n),s[n],i),-1!==o.indexOf(n)&&(t.mustUseProperty=!0),p[n]=t,f[r(n)]=n,f[r(t.attribute)]=n;return new a(p,f,i)}},function(e,n,t){"use strict";e.exports=function(e){return e.toLowerCase()}},function(e,n,t){"use strict";var r=0;function a(){return Math.pow(2,++r)}n.boolean=a(),n.booleanish=a(),n.overloadedBoolean=a(),n.number=a(),n.spaceSeparated=a(),n.commaSeparated=a(),n.commaOrSpaceSeparated=a()},function(n,t){n.exports=e},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n,t){"use strict";e.exports=a;var r=a.prototype;function a(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}r.space=null,r.normal={},r.property={}},function(e,n,t){"use strict";var r=t(7),a=t(2);e.exports=o,o.prototype=new r,o.prototype.defined=!0;var l=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=l.length;function o(e,n,t,o){var s,c=-1;for(u(this,"space",o),r.call(this,e,n);++c<i;)u(this,s=l[c],(t&a[s])===a[s])}function u(e,n,t){t&&(e[n]=t)}},function(e,n,t){"use strict";e.exports=a;var r=a.prototype;function a(e,n){this.property=e,this.attribute=n}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,n,t){"use strict";var r=t(24);e.exports=function(e,n){return r(e,n.toLowerCase())}},function(e,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=48&&n<=57}},function(e,n,t){"use strict";function r(e){if("string"==typeof e)return function(e){return function(n){return Boolean(n&&n.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?l:a)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function a(e){return function(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function l(e){var n=function(e){for(var n=[],t=e.length,a=-1;++a<t;)n[a]=r(e[a]);return n}(e),t=n.length;return function(){var e=-1;for(;++e<t;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=r},function(e,n,t){var r=t(3),a=t(12),l=t(15),i=t(44),o=t(45),u=r.createElement;function s(e){var n="language-".concat(e.language),t={className:n},r={className:[e.className,n].filter(Boolean).join(" ")};e.inline&&(t.style={display:"inline"},t.className=e.className);var a=l.highlight(e.value,e.language);e.markers&&e.markers.length>0&&(a=o(a,{markers:e.markers}));var s=0===a.length?e.value:a.map(i.depth(0)),c=u("code",t,s);return e.inline?c:u("pre",r,c)}s.propTypes={className:a.string,inline:a.bool,language:a.string.isRequired,value:a.string.isRequired,astPlugins:a.arrayOf(a.func),markers:a.arrayOf(a.oneOfType([a.number,a.shape({line:a.number.isRequired,className:a.string,component:a.oneOfType([a.node,a.func])})]))},s.defaultProps={astPlugins:[],className:"refractor",inline:!1},s.registerLanguage=function(e){return l.register(e)},s.hasLanguage=function(e){return l.registered(e)},e.exports=s},function(e,n,t){e.exports=t(13)()},function(e,n,t){"use strict";var r=t(14);function a(){}function l(){}l.resetWarningCache=a,e.exports=function(){function e(e,n,t,a,l,i){if(i!==r){var o=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 o.name="Invariant Violation",o}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:a};return t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n,t){"use strict";(function(n){var r,a,l=(a=(r="Prism"in n)?n.Prism:void 0,function(){r?n.Prism=a:delete n.Prism,r=void 0,a=void 0});("undefined"==typeof window?"undefined"==typeof self?{}:self:window).Prism={manual:!0,disableWorkerMessageHandler:!0};var i=t(16),o=t(32),u=t(39),s=t(40),c=t(41),p=t(42),f=t(43);l();var d={}.hasOwnProperty;function g(){}g.prototype=u;var h=new g;function m(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}e.exports=h,h.highlight=function(e,n){var t,r=u.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(n))t=n,n=null;else{if("string"!=typeof n)throw new Error("Expected `string` for `name`, got `"+n+"`");if(!d.call(h.languages,n))throw new Error("Unknown language: `"+n+"` is not registered");t=h.languages[n]}return r.call(this,e,t,n)},h.register=m,h.alias=function(e,n){var t,r,a,l,i=h.languages,o=e;n&&((o={})[e]=n);for(t in o)for(r=o[t],a=(r="string"==typeof r?[r]:r).length,l=-1;++l<a;)i[r[l]]=i[t]},h.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return d.call(h.languages,e)},h.listLanguages=function(){var e,n=h.languages,t=[];for(e in n)d.call(n,e)&&"object"==typeof n[e]&&t.push(e);return t},m(s),m(c),m(p),m(f),h.util.encode=function(e){return e},h.Token.stringify=function(e,n,t){var r;if("string"==typeof e)return{type:"text",value:e};if("Array"===h.util.type(e))return function(e,n){var t,r=[],a=e.length,l=-1;for(;++l<a;)""!==(t=e[l])&&null!=t&&r.push(t);l=-1,a=r.length;for(;++l<a;)t=r[l],r[l]=h.Token.stringify(t,n,r);return r}(e,n);r={type:e.type,content:h.Token.stringify(e.content,n,t),tag:"span",classes:["token",e.type],attributes:{},language:n,parent:t},e.alias&&(r.classes=r.classes.concat(e.alias));return h.hooks.run("wrap",r),i(r.tag+"."+r.classes.join("."),function(e){var n;for(n in e)e[n]=o(e[n]);return e}(r.attributes),r.content)}}).call(this,t(4))},function(e,n,t){"use strict";e.exports=t(17)},function(e,n,t){"use strict";var r=t(18),a=t(27)(r,"div");a.displayName="html",e.exports=a},function(e,n,t){"use strict";var r=t(19),a=t(21),l=t(22),i=t(23),o=t(25),u=t(26);e.exports=r([l,a,i,o,u])},function(e,n,t){"use strict";var r=t(20),a=t(5);e.exports=function(e){var n,t,l=e.length,i=[],o=[],u=-1;for(;++u<l;)n=e[u],i.push(n.property),o.push(n.normal),t=n.space;return new a(r.apply(null,i),r.apply(null,o),t)}},function(e,n){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var a in r)t.call(r,a)&&(e[a]=r[a])}return e};var t=Object.prototype.hasOwnProperty},function(e,n,t){"use strict";var r=t(0);e.exports=r({space:"xlink",transform:function(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},function(e,n,t){"use strict";var r=t(0);e.exports=r({space:"xml",transform:function(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},function(e,n,t){"use strict";var r=t(0),a=t(8);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a,properties:{xmlns:null,xmlnsXLink:null}})},function(e,n,t){"use strict";e.exports=function(e,n){return n in e?e[n]:n}},function(e,n,t){"use strict";var r=t(2),a=t(0),l=r.booleanish,i=r.number,o=r.spaceSeparated;e.exports=a({transform:function(e,n){return"role"===n?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:l,ariaAutoComplete:null,ariaBusy:l,ariaChecked:l,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:o,ariaCurrent:null,ariaDescribedBy:o,ariaDetails:null,ariaDisabled:l,ariaDropEffect:o,ariaErrorMessage:null,ariaExpanded:l,ariaFlowTo:o,ariaGrabbed:l,ariaHasPopup:null,ariaHidden:l,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:o,ariaLevel:i,ariaLive:null,ariaModal:l,ariaMultiLine:l,ariaMultiSelectable:l,ariaOrientation:null,ariaOwns:o,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:l,ariaReadOnly:l,ariaRelevant:null,ariaRequired:l,ariaRoleDescription:o,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:l,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},function(e,n,t){"use strict";var r=t(2),a=t(0),l=t(8),i=r.boolean,o=r.overloadedBoolean,u=r.booleanish,s=r.number,c=r.spaceSeparated,p=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:l,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:c,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:c,cols:s,colSpan:null,content:null,contentEditable:u,controls:i,controlsList:c,coords:s|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:o,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:c,height:s,hidden:i,high:s,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:p,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:c,itemRef:c,itemScope:i,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loop:i,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,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:i,optimum:s,pattern:null,ping:c,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:c,required:i,reversed:i,rows:s,rowSpan:s,sandbox:c,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:p,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:u,width:s,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,prefix:null,property:null,results:s,security:null,unselectable:null}})},function(e,n,t){"use strict";var r=t(28),a=t(1),l=t(29),i=t(30).parse,o=t(31).parse;e.exports=function(e,n,t){var a=t?function(e){var n,t=e.length,r=-1,a={};for(;++r<t;)n=e[r],a[n.toLowerCase()]=n;return a}(t):null;return function(e,t){var r,i=l(e,n),o=Array.prototype.slice.call(arguments,2),p=i.tagName.toLowerCase();i.tagName=a&&u.call(a,p)?a[p]:p,t&&s(t,i)&&(o.unshift(t),t=null);if(t)for(r in t)f(i.properties,r,t[r]);c(i.children,o),"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]);return i};function f(n,t,a){var l,u,s;null!=a&&a==a&&(u=(l=r(e,t)).property,"string"==typeof(s=a)&&(l.spaceSeparated?s=i(s):l.commaSeparated?s=o(s):l.commaOrSpaceSeparated&&(s=i(o(s).join(" ")))),"style"===u&&"string"!=typeof a&&(s=function(e){var n,t=[];for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}(s)),"className"===u&&n.className&&(s=n.className.concat(s)),n[u]=function(e,n,t){var r,a,l;if("object"!=typeof t||!("length"in t))return p(e,n,t);a=t.length,r=-1,l=[];for(;++r<a;)l[r]=p(e,n,t[r]);return l}(l,u,s))}};var u={}.hasOwnProperty;function s(e,n){return"string"==typeof e||"length"in e||function(e,n){var t=n.type;if("input"===e||!t||"string"!=typeof t)return!1;if("object"==typeof n.children&&"length"in n.children)return!0;if(t=t.toLowerCase(),"button"===e)return"menu"!==t&&"submit"!==t&&"reset"!==t&&"button"!==t;return"value"in n}(n.tagName,e)}function c(e,n){var t,r;if("string"!=typeof n&&"number"!=typeof n)if("object"==typeof n&&"length"in n)for(t=-1,r=n.length;++t<r;)c(e,n[t]);else{if("object"!=typeof n||!("type"in n))throw new Error("Expected node, nodes, or string, got `"+n+"`");e.push(n)}else e.push({type:"text",value:String(n)})}function p(e,n,t){var r=t;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&a(t)!==a(n)||(r=!0)),r}},function(e,n,t){"use strict";var r=t(1),a=t(6),l=t(7);e.exports=function(e,n){var t=r(n),p=n,f=l;if(t in e.normal)return e.property[e.normal[t]];t.length>4&&"data"===t.slice(0,4)&&i.test(n)&&("-"===n.charAt(4)?p=function(e){var n=e.slice(5).replace(o,c);return"data"+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);if(o.test(n))return e;"-"!==(n=n.replace(u,s)).charAt(0)&&(n="-"+n);return"data"+n}(n),f=a);return new f(p,n)};var i=/^data[-a-z0-9.:_]+$/i,o=/-[a-z]/g,u=/[A-Z]/g;function s(e){return"-"+e.toLowerCase()}function c(e){return e.charAt(1).toUpperCase()}},function(e,n,t){"use strict";e.exports=function(e,n){var t,r,a,l,i,o=e||"",u=n||"div",s={},c=-1,p=o.length;for(;++c<=p;)(a=o.charCodeAt(c))&&46!==a&&35!==a||((l=o.slice(i,c))&&(46===r?t?t.push(l):(t=[l],s.className=t):35===r?s.id=l:u=l),i=c+1,r=a);return{type:"element",tagName:u,properties:s,children:[]}}},function(e,n,t){"use strict";n.parse=function(e){var n=String(e||"").trim();return""===n?[]:n.split(r)},n.stringify=function(e){return e.join(" ").trim()};var r=/[ \t\n\r\f]+/g},function(e,n,t){"use strict";n.parse=function(e){var n,t=[],r=String(e||""),a=r.indexOf(","),l=0,i=!1;for(;!i;)-1===a&&(a=r.length,i=!0),!(n=r.slice(l,a).trim())&&i||t.push(n),l=a+1,a=r.indexOf(",",l);return t},n.stringify=function(e,n){var t=n||{},r=!1===t.padLeft?"":" ",a=t.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(a+","+r).trim()}},function(e,n,t){"use strict";var r=t(33),a=t(34),l=t(9),i=t(35),o=t(36),u=t(38);e.exports=function(e,n){var t,l,i={};n||(n={});for(l in f)t=n[l],i[l]=null==t?f[l]:t;(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start);return function(e,n){var t,l,i,f,b,x,w,k,S,A,O,F,C,E,P,N,j,L,T,M=n.additional,_=n.nonTerminated,D=n.text,$=n.reference,I=n.warning,R=n.textContext,B=n.referenceContext,U=n.warningContext,z=n.position,q=n.indent||[],H=e.length,W=0,V=-1,Z=z.column||1,K=z.line||1,G="",J=[];"string"==typeof M&&(M=M.charCodeAt(0));N=X(),k=I?function(e,n){var t=X();t.column+=n,t.offset+=n,I.call(U,y[e],t,e)}:p,W--,H++;for(;++W<H;)if(10===b&&(Z=q[V]||1),38===(b=e.charCodeAt(W))){if(9===(w=e.charCodeAt(W+1))||10===w||12===w||32===w||38===w||60===w||w!=w||M&&w===M){G+=c(b),Z++;continue}for(F=C=W+1,T=C,35===w?(T=++F,88===(w=e.charCodeAt(T))||120===w?(E=g,T=++F):E="decimal"):E=d,t="",O="",f="",P=m[E],T--;++T<H&&(w=e.charCodeAt(T),P(w));)f+=c(w),E===d&&s.call(r,f)&&(t=f,O=r[f]);(i=59===e.charCodeAt(T))&&(T++,(l=E===d&&u(f))&&(t=f,O=l)),L=1+T-C,(i||_)&&(f?E===d?(i&&!O?k(5,1):(t!==f&&(T=F+t.length,L=1+T-F,i=!1),i||(S=t?1:3,n.attribute?61===(w=e.charCodeAt(T))?(k(S,L),O=null):o(w)?O=null:k(S,L):k(S,L))),x=O):(i||k(2,L),x=parseInt(f,h[E]),(Y=x)>=55296&&Y<=57343||Y>1114111?(k(7,L),x=c(65533)):x in a?(k(6,L),x=a[x]):(A="",v(x)&&k(6,L),x>65535&&(A+=c((x-=65536)>>>10|55296),x=56320|1023&x),x=A+c(x))):E!==d&&k(4,L)),x?(Q(),N=X(),W=T-1,Z+=T-C+1,J.push(x),(j=X()).offset++,$&&$.call(B,x,{start:N,end:j},e.slice(C-1,T)),N=j):(f=e.slice(C-1,T),G+=f,Z+=f.length,W=T-1)}else 10===b&&(K++,V++,Z=0),b==b?(G+=c(b),Z++):Q();var Y;return J.join("");function X(){return{line:K,column:Z,offset:W+(z.offset||0)}}function Q(){G&&(J.push(G),D&&D.call(R,G,{start:N,end:X()}),G="")}}(e,i)};var s={}.hasOwnProperty,c=String.fromCharCode,p=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d="named",g="hexadecimal",h={hexadecimal:16,decimal:10},m={};m[d]=o,m.decimal=l,m[g]=i;var y={};function v(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)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},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){e.exports=JSON.parse('{"0":"�","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,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}},function(e,n,t){"use strict";var r=t(37),a=t(9);e.exports=function(e){return r(e)||a(e)}},function(e,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=97&&n<=122||n>=65&&n<=90}},function(e,n,t){"use strict";var r;e.exports=function(e){var n,t="&"+e+";";if((r=r||document.createElement("i")).innerHTML=t,59===(n=r.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==t&&n}},function(e,n,t){(function(n){var t=function(e){var n=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof a?new a(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var a,l,i=r.util.type(n);switch(t=t||{},i){case"Object":if(l=r.util.objId(n),t[l])return t[l];for(var o in a={},t[l]=a,n)n.hasOwnProperty(o)&&(a[o]=e(n[o],t));return a;case"Array":return l=r.util.objId(n),t[l]?t[l]:(a=[],t[l]=a,n.forEach((function(n,r){a[r]=e(n,t)})),a);default:return n}},getLanguage:function(e){for(;e&&!n.test(e.className);)e=e.parentElement;return e?(e.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}}},languages:{extend:function(e,n){var t=r.util.clone(r.languages[e]);for(var a in n)t[a]=n[a];return t},insertBefore:function(e,n,t,a){var l=(a=a||r.languages)[e],i={};for(var o in l)if(l.hasOwnProperty(o)){if(o==n)for(var u in t)t.hasOwnProperty(u)&&(i[u]=t[u]);t.hasOwnProperty(o)||(i[o]=l[o])}var s=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(n,t){t===s&&n!=e&&(this[n]=i)})),i},DFS:function e(n,t,a,l){l=l||{};var i=r.util.objId;for(var o in n)if(n.hasOwnProperty(o)){t.call(n,o,n[o],a||o);var u=n[o],s=r.util.type(u);"Object"!==s||l[i(u)]?"Array"!==s||l[i(u)]||(l[i(u)]=!0,e(u,t,o,l)):(l[i(u)]=!0,e(u,t,null,l))}}},plugins:{},highlightAll:function(e,n){r.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var a={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var l,i=0;l=a.elements[i++];)r.highlightElement(l,!0===n,a.callback)},highlightElement:function(t,a,l){var i=r.util.getLanguage(t),o=r.languages[i];t.className=t.className.replace(n,"").replace(/\s+/g," ")+" language-"+i;var u=t.parentNode;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(n,"").replace(/\s+/g," ")+" language-"+i);var s={element:t,language:i,grammar:o,code:t.textContent};function c(e){s.highlightedCode=e,r.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,r.hooks.run("after-highlight",s),r.hooks.run("complete",s),l&&l.call(s.element)}if(r.hooks.run("before-sanity-check",s),!s.code)return r.hooks.run("complete",s),void(l&&l.call(s.element));if(r.hooks.run("before-highlight",s),s.grammar)if(a&&e.Worker){var p=new Worker(r.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(r.highlight(s.code,s.grammar,s.language));else c(r.util.encode(s.code))},highlight:function(e,n,t){var l={code:e,grammar:n,language:t};return r.hooks.run("before-tokenize",l),l.tokens=r.tokenize(l.code,l.grammar),r.hooks.run("after-tokenize",l),a.stringify(r.util.encode(l.tokens),l.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var u in t)n[u]=t[u];delete n.rest}var s=new l;return i(s,s.head,e),function e(n,t,l,u,s,c,p){for(var f in l)if(l.hasOwnProperty(f)&&l[f]){var d=l[f];d=Array.isArray(d)?d:[d];for(var g=0;g<d.length;++g){if(p&&p==f+","+g)return;var h=d[g],m=h.inside,y=!!h.lookbehind,v=!!h.greedy,b=0,x=h.alias;if(v&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}h=h.pattern||h;for(var k=u.next,S=s;k!==t.tail;S+=k.value.length,k=k.next){var A=k.value;if(t.length>n.length)return;if(!(A instanceof a)){var O=1;if(v&&k!=t.tail.prev){if(h.lastIndex=S,!(N=h.exec(n)))break;var F=N.index+(y&&N[1]?N[1].length:0),C=N.index+N[0].length,E=S;for(E+=k.value.length;F>=E;)k=k.next,E+=k.value.length;if(E-=k.value.length,S=E,k.value instanceof a)continue;for(var P=k;P!==t.tail&&(E<C||"string"==typeof P.value&&!P.prev.value.greedy);P=P.next)O++,E+=P.value.length;O--,A=n.slice(S,E),N.index-=S}else{h.lastIndex=0;var N=h.exec(A)}if(N){y&&(b=N[1]?N[1].length:0);F=N.index+b,N=N[0].slice(b),C=F+N.length;var j=A.slice(0,F),L=A.slice(C),T=k.prev;j&&(T=i(t,T,j),S+=j.length),o(t,T,O);var M=new a(f,m?r.tokenize(N,m):N,x,N,v);if(k=i(t,T,M),L&&i(t,k,L),O>1&&e(n,t,l,k.prev,S,!0,f+","+g),c)break}else if(c)break}}}}}(e,s,n,s.head,0),function(e){var n=[],t=e.head.next;for(;t!==e.tail;)n.push(t.value),t=t.next;return n}(s)},hooks:{all:{},add:function(e,n){var t=r.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=r.hooks.all[e];if(t&&t.length)for(var a,l=0;a=t[l++];)a(n)}},Token:a};function a(e,n,t,r,a){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length,this.greedy=!!a}function l(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function i(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function o(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=r,a.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var a="";return n.forEach((function(n){a+=e(n,t)})),a}var l={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},i=n.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(l.classes,i):l.classes.push(i)),r.hooks.run("wrap",l);var o="";for(var u in l.attributes)o+=" "+u+'="'+(l.attributes[u]||"").replace(/"/g,""")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+o+">"+l.content+"</"+l.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),a=t.language,l=t.code,i=t.immediateClose;e.postMessage(r.highlight(l,r.languages[a],a)),i&&e.close()}),!1),r):r;var u=r.util.currentScript();function s(){r.manual||r.highlightAll()}if(u&&(r.filename=u.src,u.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var c=document.readyState;"loading"===c||"interactive"===c&&u&&u.defer?document.addEventListener("DOMContentLoaded",s):window.requestAnimationFrame?window.requestAnimationFrame(s):window.setTimeout(s,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==n&&(n.Prism=t)}).call(this,t(4))},function(e,n,t){"use strict";function r(e){e.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};a["language-"+t]={pattern:/[\s\S]+/,inside:e.languages[t]};var l={};l[n]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",l)}}),e.languages.xml=e.languages.extend("markup",{}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup}e.exports=r,r.displayName="markup",r.aliases=["xml","html","mathml","svg"]},function(e,n,t){"use strict";function r(e){!function(e){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+n.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+n.source+")*?(?=\\s*\\{)"),string:{pattern:n,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:t.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},t.tag))}(e)}e.exports=r,r.displayName="css",r.aliases=[]},function(e,n,t){"use strict";function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="clike",r.aliases=[]},function(e,n,t){"use strict";function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&e.languages.markup.tag.addInlined("script","javascript"),e.languages.js=e.languages.javascript}e.exports=r,r.displayName="javascript",r.aliases=["js"]},function(e,n,t){var r=t(3);function a(e){return function(n,t){return function(e,n,t){if(e.tagName){var l=e.properties&&Array.isArray(e.properties.className)?e.properties.className.join(" "):e.properties.className;return r.createElement(e.tagName,Object.assign({key:"fract-".concat(t,"-").concat(n)},e.properties,{className:l}),e.children&&e.children.map(a(t+1)))}return e.value}(n,t,e)}}n.depth=a},function(e,n,t){function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(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 a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var o=t(46),u=t(48),s=t(49);function c(e,n){var t={type:"root",children:n},a=new s,c=new s,p=new s,f=[];function d(e,n,r){f.push(n),r.forEach((function(n){e.has(n)||(e.set(n,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},n,{children:[]})),n!==t&&f.push(n))}));for(var a=r.length;a--;){var o=e.get(r[a]),u=r[a+1],s=e.get(u)||n;-1===o.children.indexOf(s)&&o.children.push(s)}}u(t,(function(n,t){n.children||(n.lineStart<e?d(a,n,t):n.lineStart!==e?n.lineEnd>e&&f.some((function(e){return-1!==t.indexOf(e)}))&&d(p,n,t):d(c,n,t))}));var g=o(t,(function(e){return-1===f.indexOf(e)})),h=function(e){var n=e.get(t);return n?(u(n,(function(e,n){if(e.children)return e.lineStart=0,void(e.lineEnd=0);n.forEach((function(n){n.lineStart=Math.max(n.lineStart,e.lineStart),n.lineEnd=Math.max(n.lineEnd,e.lineEnd)}))})),n.children):[]},m=[].concat(r(h(a)),r(h(c)),r(h(p)),r(g?g.children:[]));return a.clear(),c.clear(),p.clear(),m}function p(e,n,t){return{type:"element",tagName:n.component||"div",properties:n.component?t:{className:n.className||"refractor-marker"},children:e,lineStart:n.line,lineEnd:e[e.length-1].lineEnd,isMarker:!0}}e.exports=function(e,n){var t=n.markers.map((function(e){return e.line?e:{line:e}})).sort((function(e,n){return e.line-n.line}));return function(e,n,t){if(0===n.length||0===e.length)return e;for(var r=n.reduce((function(e,n){return c(n.line,e)}),e),a=[],l=0,i=0;i<n.length;i++){for(var o=n[i],u=r[l];u&&u.lineEnd<o.line;u=r[++l])a.push(u);for(var s=[],f=r[l];f&&f.lineEnd===o.line;f=r[++l])s.push(f);s.length>0&&a.push(p(s,o,t))}for(;l<r.length;)a.push(r[l++]);return a}(function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{lineNumber:1};return n.reduce((function(n,r){var a=t.lineNumber;if("text"===r.type){if(-1===r.value.indexOf("\n"))return r.lineStart=a,r.lineEnd=a,n.nodes.push(r),n;for(var l=r.value.split("\n"),i=0;i<l.length;i++){var o=0===i?t.lineNumber:++t.lineNumber;n.nodes.push({type:"text",value:i===l.length-1?l[i]:"".concat(l[i],"\n"),lineStart:o,lineEnd:o})}return n.lineNumber=t.lineNumber,n}if(r.children){var u=e(r.children,t),s=u.nodes[0],c=u.nodes[u.nodes.length-1];return r.lineStart=s?s.lineStart:a,r.lineEnd=c?c.lineEnd:a,r.children=u.nodes,n.lineNumber=u.lineNumber,n.nodes.push(r),n}return n.nodes.push(r),n}),{nodes:[],lineNumber:t.lineNumber})}(e).nodes,t,n)}},function(e,n,t){"use strict";var r=t(47),a=t(10);e.exports=function(e,n,t){var l,i;t||(t=n,n={});return i=null==(i=n.cascade)||i,l=a(t),function e(n,t,a){var o;if(!l(n,t,a))return null;if(o=Object.keys(n).reduce((function(e,t){"children"!==t&&(e[t]=n[t]);return e}),{}),n.children&&(o.children=r(n.children,u),i&&0!==n.children.length&&0===o.children.length))return null;return o;function u(t,r){return e(t,r,n)}}(e,null,null)}},function(e,n,t){"use strict";e.exports=function(e,n,t){var r=[];return Array.isArray(e)?(e.forEach((function(e,a,l){var i=n.call(t,e,a,l);Array.isArray(i)?r.push.apply(r,i):null!=i&&r.push(i)})),r):r}},function(e,n,t){"use strict";e.exports=a;var r=t(10);function a(e,n,t,a){var i;function o(e,r,u){var s,c=[];return(n&&!i(e,r,u[u.length-1]||null)||!1!==(c=l(t(e,u)))[0])&&e.children&&"skip"!==c[0]&&!1===(s=l(function(e,n){var t,r=a?-1:1,l=(a?e.length:-1)+r;for(;l>-1&&l<e.length;){if(!1===(t=o(e[l],l,n))[0])return t;l="number"==typeof t[1]?t[1]:l+r}}(e.children,u.concat(e))))[0]?s:c}"function"==typeof n&&"function"!=typeof t&&(a=t,t=n,n=null),i=r(n),o(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}a.CONTINUE=!0,a.SKIP="skip",a.EXIT=!1},function(e,n){function t(){this.map=new WeakMap}function r(){this.keys=[],this.values=[]}e.exports="function"==typeof WeakMap?t:r,t.prototype.has=function(e){return this.map.has(e)},t.prototype.set=function(e,n){return this.map.set(e,n),this},t.prototype.get=function(e){return this.map.get(e)},t.prototype.clear=function(){},r.prototype.has=function(e){return-1!==this.keys.indexOf(e)},r.prototype.set=function(e,n){var t=this.keys.indexOf(e);return-1===t?(this.keys.push(e),this.values.push(n)):this.values[t]=n,this},r.prototype.get=function(e){var n=this.keys.indexOf(e);return-1===n?void 0:this.values[n]},r.prototype.clear=function(){this.keys=[],this.values=[]}}])})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.reactRefractor=n(require("react")):e.reactRefractor=n(e.React)}(window,(function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=11)}([function(e,n,t){"use strict";var r=t(1),a=t(5),l=t(6);e.exports=function(e){var n,t,i=e.space,o=e.mustUseProperty||[],u=e.attributes||{},s=e.properties,c=e.transform,p={},f={};for(n in s)t=new l(n,c(u,n),s[n],i),-1!==o.indexOf(n)&&(t.mustUseProperty=!0),p[n]=t,f[r(n)]=n,f[r(t.attribute)]=n;return new a(p,f,i)}},function(e,n,t){"use strict";e.exports=function(e){return e.toLowerCase()}},function(e,n,t){"use strict";var r=0;function a(){return Math.pow(2,++r)}n.boolean=a(),n.booleanish=a(),n.overloadedBoolean=a(),n.number=a(),n.spaceSeparated=a(),n.commaSeparated=a(),n.commaOrSpaceSeparated=a()},function(n,t){n.exports=e},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n,t){"use strict";e.exports=a;var r=a.prototype;function a(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}r.space=null,r.normal={},r.property={}},function(e,n,t){"use strict";var r=t(7),a=t(2);e.exports=o,o.prototype=new r,o.prototype.defined=!0;var l=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=l.length;function o(e,n,t,o){var s,c=-1;for(u(this,"space",o),r.call(this,e,n);++c<i;)u(this,s=l[c],(t&a[s])===a[s])}function u(e,n,t){t&&(e[n]=t)}},function(e,n,t){"use strict";e.exports=a;var r=a.prototype;function a(e,n){this.property=e,this.attribute=n}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,n,t){"use strict";var r=t(24);e.exports=function(e,n){return r(e,n.toLowerCase())}},function(e,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=48&&n<=57}},function(e,n,t){"use strict";function r(e){if("string"==typeof e)return function(e){return function(n){return Boolean(n&&n.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?l:a)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function a(e){return function(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function l(e){var n=function(e){for(var n=[],t=e.length,a=-1;++a<t;)n[a]=r(e[a]);return n}(e),t=n.length;return function(){var e=-1;for(;++e<t;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=r},function(e,n,t){var r=t(3),a=t(12),l=t(15),i=t(44),o=t(45),u=r.createElement;function s(e){var n="language-".concat(e.language),t={className:n},r={className:[e.className,n].filter(Boolean).join(" ")};e.inline&&(t.style={display:"inline"},t.className=e.className);var a=l.highlight(e.value,e.language);e.markers&&e.markers.length>0&&(a=o(a,{markers:e.markers}));var s=0===a.length?e.value:a.map(i.depth(0)),c=u("code",t,s);return e.inline?c:u("pre",r,c)}s.propTypes={className:a.string,inline:a.bool,language:a.string.isRequired,value:a.string.isRequired,markers:a.arrayOf(a.oneOfType([a.number,a.shape({line:a.number.isRequired,className:a.string,component:a.oneOfType([a.node,a.func])})]))},s.defaultProps={className:"refractor",inline:!1},s.registerLanguage=function(e){return l.register(e)},s.hasLanguage=function(e){return l.registered(e)},e.exports=s},function(e,n,t){e.exports=t(13)()},function(e,n,t){"use strict";var r=t(14);function a(){}function l(){}l.resetWarningCache=a,e.exports=function(){function e(e,n,t,a,l,i){if(i!==r){var o=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 o.name="Invariant Violation",o}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:a};return t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n,t){"use strict";(function(n){var r,a,l=(a=(r="Prism"in n)?n.Prism:void 0,function(){r?n.Prism=a:delete n.Prism,r=void 0,a=void 0});("undefined"==typeof window?"undefined"==typeof self?{}:self:window).Prism={manual:!0,disableWorkerMessageHandler:!0};var i=t(16),o=t(32),u=t(39),s=t(40),c=t(41),p=t(42),f=t(43);l();var d={}.hasOwnProperty;function g(){}g.prototype=u;var h=new g;function m(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}e.exports=h,h.highlight=function(e,n){var t,r=u.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(n))t=n,n=null;else{if("string"!=typeof n)throw new Error("Expected `string` for `name`, got `"+n+"`");if(!d.call(h.languages,n))throw new Error("Unknown language: `"+n+"` is not registered");t=h.languages[n]}return r.call(this,e,t,n)},h.register=m,h.alias=function(e,n){var t,r,a,l,i=h.languages,o=e;n&&((o={})[e]=n);for(t in o)for(r=o[t],a=(r="string"==typeof r?[r]:r).length,l=-1;++l<a;)i[r[l]]=i[t]},h.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return d.call(h.languages,e)},h.listLanguages=function(){var e,n=h.languages,t=[];for(e in n)d.call(n,e)&&"object"==typeof n[e]&&t.push(e);return t},m(s),m(c),m(p),m(f),h.util.encode=function(e){return e},h.Token.stringify=function(e,n,t){var r;if("string"==typeof e)return{type:"text",value:e};if("Array"===h.util.type(e))return function(e,n){var t,r=[],a=e.length,l=-1;for(;++l<a;)""!==(t=e[l])&&null!=t&&r.push(t);l=-1,a=r.length;for(;++l<a;)t=r[l],r[l]=h.Token.stringify(t,n,r);return r}(e,n);r={type:e.type,content:h.Token.stringify(e.content,n,t),tag:"span",classes:["token",e.type],attributes:{},language:n,parent:t},e.alias&&(r.classes=r.classes.concat(e.alias));return h.hooks.run("wrap",r),i(r.tag+"."+r.classes.join("."),function(e){var n;for(n in e)e[n]=o(e[n]);return e}(r.attributes),r.content)}}).call(this,t(4))},function(e,n,t){"use strict";e.exports=t(17)},function(e,n,t){"use strict";var r=t(18),a=t(27)(r,"div");a.displayName="html",e.exports=a},function(e,n,t){"use strict";var r=t(19),a=t(21),l=t(22),i=t(23),o=t(25),u=t(26);e.exports=r([l,a,i,o,u])},function(e,n,t){"use strict";var r=t(20),a=t(5);e.exports=function(e){var n,t,l=e.length,i=[],o=[],u=-1;for(;++u<l;)n=e[u],i.push(n.property),o.push(n.normal),t=n.space;return new a(r.apply(null,i),r.apply(null,o),t)}},function(e,n){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var a in r)t.call(r,a)&&(e[a]=r[a])}return e};var t=Object.prototype.hasOwnProperty},function(e,n,t){"use strict";var r=t(0);e.exports=r({space:"xlink",transform:function(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},function(e,n,t){"use strict";var r=t(0);e.exports=r({space:"xml",transform:function(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},function(e,n,t){"use strict";var r=t(0),a=t(8);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a,properties:{xmlns:null,xmlnsXLink:null}})},function(e,n,t){"use strict";e.exports=function(e,n){return n in e?e[n]:n}},function(e,n,t){"use strict";var r=t(2),a=t(0),l=r.booleanish,i=r.number,o=r.spaceSeparated;e.exports=a({transform:function(e,n){return"role"===n?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:l,ariaAutoComplete:null,ariaBusy:l,ariaChecked:l,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:o,ariaCurrent:null,ariaDescribedBy:o,ariaDetails:null,ariaDisabled:l,ariaDropEffect:o,ariaErrorMessage:null,ariaExpanded:l,ariaFlowTo:o,ariaGrabbed:l,ariaHasPopup:null,ariaHidden:l,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:o,ariaLevel:i,ariaLive:null,ariaModal:l,ariaMultiLine:l,ariaMultiSelectable:l,ariaOrientation:null,ariaOwns:o,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:l,ariaReadOnly:l,ariaRelevant:null,ariaRequired:l,ariaRoleDescription:o,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:l,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},function(e,n,t){"use strict";var r=t(2),a=t(0),l=t(8),i=r.boolean,o=r.overloadedBoolean,u=r.booleanish,s=r.number,c=r.spaceSeparated,p=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:l,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:c,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:c,cols:s,colSpan:null,content:null,contentEditable:u,controls:i,controlsList:c,coords:s|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:o,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:c,height:s,hidden:i,high:s,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:p,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:c,itemRef:c,itemScope:i,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loop:i,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,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:i,optimum:s,pattern:null,ping:c,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:c,required:i,reversed:i,rows:s,rowSpan:s,sandbox:c,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:p,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:u,width:s,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,prefix:null,property:null,results:s,security:null,unselectable:null}})},function(e,n,t){"use strict";var r=t(28),a=t(1),l=t(29),i=t(30).parse,o=t(31).parse;e.exports=function(e,n,t){var a=t?function(e){var n,t=e.length,r=-1,a={};for(;++r<t;)n=e[r],a[n.toLowerCase()]=n;return a}(t):null;return function(e,t){var r,i=l(e,n),o=Array.prototype.slice.call(arguments,2),p=i.tagName.toLowerCase();i.tagName=a&&u.call(a,p)?a[p]:p,t&&s(t,i)&&(o.unshift(t),t=null);if(t)for(r in t)f(i.properties,r,t[r]);c(i.children,o),"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]);return i};function f(n,t,a){var l,u,s;null!=a&&a==a&&(u=(l=r(e,t)).property,"string"==typeof(s=a)&&(l.spaceSeparated?s=i(s):l.commaSeparated?s=o(s):l.commaOrSpaceSeparated&&(s=i(o(s).join(" ")))),"style"===u&&"string"!=typeof a&&(s=function(e){var n,t=[];for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}(s)),"className"===u&&n.className&&(s=n.className.concat(s)),n[u]=function(e,n,t){var r,a,l;if("object"!=typeof t||!("length"in t))return p(e,n,t);a=t.length,r=-1,l=[];for(;++r<a;)l[r]=p(e,n,t[r]);return l}(l,u,s))}};var u={}.hasOwnProperty;function s(e,n){return"string"==typeof e||"length"in e||function(e,n){var t=n.type;if("input"===e||!t||"string"!=typeof t)return!1;if("object"==typeof n.children&&"length"in n.children)return!0;if(t=t.toLowerCase(),"button"===e)return"menu"!==t&&"submit"!==t&&"reset"!==t&&"button"!==t;return"value"in n}(n.tagName,e)}function c(e,n){var t,r;if("string"!=typeof n&&"number"!=typeof n)if("object"==typeof n&&"length"in n)for(t=-1,r=n.length;++t<r;)c(e,n[t]);else{if("object"!=typeof n||!("type"in n))throw new Error("Expected node, nodes, or string, got `"+n+"`");e.push(n)}else e.push({type:"text",value:String(n)})}function p(e,n,t){var r=t;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&a(t)!==a(n)||(r=!0)),r}},function(e,n,t){"use strict";var r=t(1),a=t(6),l=t(7);e.exports=function(e,n){var t=r(n),p=n,f=l;if(t in e.normal)return e.property[e.normal[t]];t.length>4&&"data"===t.slice(0,4)&&i.test(n)&&("-"===n.charAt(4)?p=function(e){var n=e.slice(5).replace(o,c);return"data"+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);if(o.test(n))return e;"-"!==(n=n.replace(u,s)).charAt(0)&&(n="-"+n);return"data"+n}(n),f=a);return new f(p,n)};var i=/^data[-a-z0-9.:_]+$/i,o=/-[a-z]/g,u=/[A-Z]/g;function s(e){return"-"+e.toLowerCase()}function c(e){return e.charAt(1).toUpperCase()}},function(e,n,t){"use strict";e.exports=function(e,n){var t,r,a,l,i,o=e||"",u=n||"div",s={},c=-1,p=o.length;for(;++c<=p;)(a=o.charCodeAt(c))&&46!==a&&35!==a||((l=o.slice(i,c))&&(46===r?t?t.push(l):(t=[l],s.className=t):35===r?s.id=l:u=l),i=c+1,r=a);return{type:"element",tagName:u,properties:s,children:[]}}},function(e,n,t){"use strict";n.parse=function(e){var n=String(e||"").trim();return""===n?[]:n.split(r)},n.stringify=function(e){return e.join(" ").trim()};var r=/[ \t\n\r\f]+/g},function(e,n,t){"use strict";n.parse=function(e){var n,t=[],r=String(e||""),a=r.indexOf(","),l=0,i=!1;for(;!i;)-1===a&&(a=r.length,i=!0),!(n=r.slice(l,a).trim())&&i||t.push(n),l=a+1,a=r.indexOf(",",l);return t},n.stringify=function(e,n){var t=n||{},r=!1===t.padLeft?"":" ",a=t.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(a+","+r).trim()}},function(e,n,t){"use strict";var r=t(33),a=t(34),l=t(9),i=t(35),o=t(36),u=t(38);e.exports=function(e,n){var t,l,i={};n||(n={});for(l in f)t=n[l],i[l]=null==t?f[l]:t;(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start);return function(e,n){var t,l,i,f,b,x,w,k,S,A,F,C,O,N,E,P,j,L,T,M=n.additional,_=n.nonTerminated,$=n.text,R=n.reference,D=n.warning,I=n.textContext,B=n.referenceContext,U=n.warningContext,z=n.position,q=n.indent||[],H=e.length,W=0,V=-1,Z=z.column||1,K=z.line||1,G="",J=[];"string"==typeof M&&(M=M.charCodeAt(0));P=X(),k=D?function(e,n){var t=X();t.column+=n,t.offset+=n,D.call(U,v[e],t,e)}:p,W--,H++;for(;++W<H;)if(10===b&&(Z=q[V]||1),38===(b=e.charCodeAt(W))){if(9===(w=e.charCodeAt(W+1))||10===w||12===w||32===w||38===w||60===w||w!=w||M&&w===M){G+=c(b),Z++;continue}for(C=O=W+1,T=O,35===w?(T=++C,88===(w=e.charCodeAt(T))||120===w?(N=g,T=++C):N="decimal"):N=d,t="",F="",f="",E=m[N],T--;++T<H&&(w=e.charCodeAt(T),E(w));)f+=c(w),N===d&&s.call(r,f)&&(t=f,F=r[f]);(i=59===e.charCodeAt(T))&&(T++,(l=N===d&&u(f))&&(t=f,F=l)),L=1+T-O,(i||_)&&(f?N===d?(i&&!F?k(5,1):(t!==f&&(T=C+t.length,L=1+T-C,i=!1),i||(S=t?1:3,n.attribute?61===(w=e.charCodeAt(T))?(k(S,L),F=null):o(w)?F=null:k(S,L):k(S,L))),x=F):(i||k(2,L),x=parseInt(f,h[N]),(Y=x)>=55296&&Y<=57343||Y>1114111?(k(7,L),x=c(65533)):x in a?(k(6,L),x=a[x]):(A="",y(x)&&k(6,L),x>65535&&(A+=c((x-=65536)>>>10|55296),x=56320|1023&x),x=A+c(x))):N!==d&&k(4,L)),x?(Q(),P=X(),W=T-1,Z+=T-O+1,J.push(x),(j=X()).offset++,R&&R.call(B,x,{start:P,end:j},e.slice(O-1,T)),P=j):(f=e.slice(O-1,T),G+=f,Z+=f.length,W=T-1)}else 10===b&&(K++,V++,Z=0),b==b?(G+=c(b),Z++):Q();var Y;return J.join("");function X(){return{line:K,column:Z,offset:W+(z.offset||0)}}function Q(){G&&(J.push(G),$&&$.call(I,G,{start:P,end:X()}),G="")}}(e,i)};var s={}.hasOwnProperty,c=String.fromCharCode,p=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d="named",g="hexadecimal",h={hexadecimal:16,decimal:10},m={};m[d]=o,m.decimal=l,m[g]=i;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){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){e.exports=JSON.parse('{"0":"�","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,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}},function(e,n,t){"use strict";var r=t(37),a=t(9);e.exports=function(e){return r(e)||a(e)}},function(e,n,t){"use strict";e.exports=function(e){var n="string"==typeof e?e.charCodeAt(0):e;return n>=97&&n<=122||n>=65&&n<=90}},function(e,n,t){"use strict";var r;e.exports=function(e){var n,t="&"+e+";";if((r=r||document.createElement("i")).innerHTML=t,59===(n=r.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==t&&n}},function(e,n,t){(function(n){var t=function(e){var n=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof a?new a(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var a,l,i=r.util.type(n);switch(t=t||{},i){case"Object":if(l=r.util.objId(n),t[l])return t[l];for(var o in a={},t[l]=a,n)n.hasOwnProperty(o)&&(a[o]=e(n[o],t));return a;case"Array":return l=r.util.objId(n),t[l]?t[l]:(a=[],t[l]=a,n.forEach((function(n,r){a[r]=e(n,t)})),a);default:return n}},getLanguage:function(e){for(;e&&!n.test(e.className);)e=e.parentElement;return e?(e.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}}},languages:{extend:function(e,n){var t=r.util.clone(r.languages[e]);for(var a in n)t[a]=n[a];return t},insertBefore:function(e,n,t,a){var l=(a=a||r.languages)[e],i={};for(var o in l)if(l.hasOwnProperty(o)){if(o==n)for(var u in t)t.hasOwnProperty(u)&&(i[u]=t[u]);t.hasOwnProperty(o)||(i[o]=l[o])}var s=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(n,t){t===s&&n!=e&&(this[n]=i)})),i},DFS:function e(n,t,a,l){l=l||{};var i=r.util.objId;for(var o in n)if(n.hasOwnProperty(o)){t.call(n,o,n[o],a||o);var u=n[o],s=r.util.type(u);"Object"!==s||l[i(u)]?"Array"!==s||l[i(u)]||(l[i(u)]=!0,e(u,t,o,l)):(l[i(u)]=!0,e(u,t,null,l))}}},plugins:{},highlightAll:function(e,n){r.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var a={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var l,i=0;l=a.elements[i++];)r.highlightElement(l,!0===n,a.callback)},highlightElement:function(t,a,l){var i=r.util.getLanguage(t),o=r.languages[i];t.className=t.className.replace(n,"").replace(/\s+/g," ")+" language-"+i;var u=t.parentNode;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(n,"").replace(/\s+/g," ")+" language-"+i);var s={element:t,language:i,grammar:o,code:t.textContent};function c(e){s.highlightedCode=e,r.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,r.hooks.run("after-highlight",s),r.hooks.run("complete",s),l&&l.call(s.element)}if(r.hooks.run("before-sanity-check",s),!s.code)return r.hooks.run("complete",s),void(l&&l.call(s.element));if(r.hooks.run("before-highlight",s),s.grammar)if(a&&e.Worker){var p=new Worker(r.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(r.highlight(s.code,s.grammar,s.language));else c(r.util.encode(s.code))},highlight:function(e,n,t){var l={code:e,grammar:n,language:t};return r.hooks.run("before-tokenize",l),l.tokens=r.tokenize(l.code,l.grammar),r.hooks.run("after-tokenize",l),a.stringify(r.util.encode(l.tokens),l.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var u in t)n[u]=t[u];delete n.rest}var s=new l;return i(s,s.head,e),function e(n,t,l,u,s,c,p){for(var f in l)if(l.hasOwnProperty(f)&&l[f]){var d=l[f];d=Array.isArray(d)?d:[d];for(var g=0;g<d.length;++g){if(p&&p==f+","+g)return;var h=d[g],m=h.inside,v=!!h.lookbehind,y=!!h.greedy,b=0,x=h.alias;if(y&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}h=h.pattern||h;for(var k=u.next,S=s;k!==t.tail;S+=k.value.length,k=k.next){var A=k.value;if(t.length>n.length)return;if(!(A instanceof a)){var F=1;if(y&&k!=t.tail.prev){if(h.lastIndex=S,!(P=h.exec(n)))break;var C=P.index+(v&&P[1]?P[1].length:0),O=P.index+P[0].length,N=S;for(N+=k.value.length;C>=N;)k=k.next,N+=k.value.length;if(N-=k.value.length,S=N,k.value instanceof a)continue;for(var E=k;E!==t.tail&&(N<O||"string"==typeof E.value&&!E.prev.value.greedy);E=E.next)F++,N+=E.value.length;F--,A=n.slice(S,N),P.index-=S}else{h.lastIndex=0;var P=h.exec(A)}if(P){v&&(b=P[1]?P[1].length:0);C=P.index+b,P=P[0].slice(b),O=C+P.length;var j=A.slice(0,C),L=A.slice(O),T=k.prev;j&&(T=i(t,T,j),S+=j.length),o(t,T,F);var M=new a(f,m?r.tokenize(P,m):P,x,P,y);if(k=i(t,T,M),L&&i(t,k,L),F>1&&e(n,t,l,k.prev,S,!0,f+","+g),c)break}else if(c)break}}}}}(e,s,n,s.head,0),function(e){var n=[],t=e.head.next;for(;t!==e.tail;)n.push(t.value),t=t.next;return n}(s)},hooks:{all:{},add:function(e,n){var t=r.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=r.hooks.all[e];if(t&&t.length)for(var a,l=0;a=t[l++];)a(n)}},Token:a};function a(e,n,t,r,a){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length,this.greedy=!!a}function l(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function i(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function o(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=r,a.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var a="";return n.forEach((function(n){a+=e(n,t)})),a}var l={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},i=n.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(l.classes,i):l.classes.push(i)),r.hooks.run("wrap",l);var o="";for(var u in l.attributes)o+=" "+u+'="'+(l.attributes[u]||"").replace(/"/g,""")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+o+">"+l.content+"</"+l.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),a=t.language,l=t.code,i=t.immediateClose;e.postMessage(r.highlight(l,r.languages[a],a)),i&&e.close()}),!1),r):r;var u=r.util.currentScript();function s(){r.manual||r.highlightAll()}if(u&&(r.filename=u.src,u.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var c=document.readyState;"loading"===c||"interactive"===c&&u&&u.defer?document.addEventListener("DOMContentLoaded",s):window.requestAnimationFrame?window.requestAnimationFrame(s):window.setTimeout(s,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==n&&(n.Prism=t)}).call(this,t(4))},function(e,n,t){"use strict";function r(e){e.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};a["language-"+t]={pattern:/[\s\S]+/,inside:e.languages[t]};var l={};l[n]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",l)}}),e.languages.xml=e.languages.extend("markup",{}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup}e.exports=r,r.displayName="markup",r.aliases=["xml","html","mathml","svg"]},function(e,n,t){"use strict";function r(e){!function(e){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+n.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+n.source+")*?(?=\\s*\\{)"),string:{pattern:n,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:t.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},t.tag))}(e)}e.exports=r,r.displayName="css",r.aliases=[]},function(e,n,t){"use strict";function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=r,r.displayName="clike",r.aliases=[]},function(e,n,t){"use strict";function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&e.languages.markup.tag.addInlined("script","javascript"),e.languages.js=e.languages.javascript}e.exports=r,r.displayName="javascript",r.aliases=["js"]},function(e,n,t){var r=t(3);function a(e){return function(n,t){return function(e,n,t){if(e.tagName){var l=e.properties&&Array.isArray(e.properties.className)?e.properties.className.join(" "):e.properties.className;return r.createElement(e.tagName,Object.assign({key:"fract-".concat(t,"-").concat(n)},e.properties,{className:l}),e.children&&e.children.map(a(t+1)))}return e.value}(n,t,e)}}n.depth=a},function(e,n,t){var r=t(46),a=t(48),l=t(49);function i(e,n,t){var r=n.className||"refractor-marker";return{type:"element",tagName:n.component||"div",properties:n.component?Object.assign({},t,{className:r}):{className:r},children:e,lineStart:n.line,lineEnd:e[e.length-1].lineEnd,isMarker:!0}}function o(e,n,t){if(0===n.length||0===e.length)return e;for(var o=n.reduce((function(e,n){return function(e,n){var t={type:"root",children:n},i=new l,o=new l,u=new l,s=[];function c(e,n,r){s.push(n),r.forEach((function(n){e.has(n)||(e.set(n,Object.assign({},n,{children:[]})),n!==t&&s.push(n))}));for(var a=r.length;a--;){var l=e.get(r[a]),i=r[a+1],o=e.get(i)||n;-1===l.children.indexOf(o)&&l.children.push(o)}}a(t,(function(n,t){n.children||(n.lineStart<e?c(i,n,t):n.lineStart!==e?n.lineEnd>e&&s.some((function(e){return-1!==t.indexOf(e)}))&&c(u,n,t):c(o,n,t))}));var p=r(t,(function(e){return-1===s.indexOf(e)})),f=function(e){var n=e.get(t);return n?(a(n,(function(e,n){if(e.children)return e.lineStart=0,void(e.lineEnd=0);n.forEach((function(n){n.lineStart=Math.max(n.lineStart,e.lineStart),n.lineEnd=Math.max(n.lineEnd,e.lineEnd)}))})),n.children):[]},d=[].concat(f(i),f(o),f(u),p?p.children:[]);return i.clear(),o.clear(),u.clear(),d}(n.line,e)}),e),u=[],s=0,c=0;c<n.length;c++){for(var p=n[c],f=o[s];f&&f.lineEnd<p.line;f=o[++s])u.push(f);for(var d=[],g=o[s];g&&g.lineEnd===p.line;g=o[++s])d.push(g);d.length>0&&u.push(i(d,p,t))}for(;s<o.length;)u.push(o[s++]);return u}e.exports=function(e,n){var t=n.markers.map((function(e){return e.line?e:{line:e}})).sort((function(e,n){return e.line-n.line}));return o(function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{lineNumber:1};return n.reduce((function(n,r){var a=t.lineNumber;if("text"===r.type){if(-1===r.value.indexOf("\n"))return r.lineStart=a,r.lineEnd=a,n.nodes.push(r),n;for(var l=r.value.split("\n"),i=0;i<l.length;i++){var o=0===i?t.lineNumber:++t.lineNumber;n.nodes.push({type:"text",value:i===l.length-1?l[i]:"".concat(l[i],"\n"),lineStart:o,lineEnd:o})}return n.lineNumber=t.lineNumber,n}if(r.children){var u=e(r.children,t),s=u.nodes[0],c=u.nodes[u.nodes.length-1];return r.lineStart=s?s.lineStart:a,r.lineEnd=c?c.lineEnd:a,r.children=u.nodes,n.lineNumber=u.lineNumber,n.nodes.push(r),n}return n.nodes.push(r),n}),{nodes:[],lineNumber:t.lineNumber})}(e).nodes,t,n)}},function(e,n,t){"use strict";var r=t(47),a=t(10);e.exports=function(e,n,t){var l,i;t||(t=n,n={});return i=null==(i=n.cascade)||i,l=a(t),function e(n,t,a){var o;if(!l(n,t,a))return null;if(o=Object.keys(n).reduce((function(e,t){"children"!==t&&(e[t]=n[t]);return e}),{}),n.children&&(o.children=r(n.children,u),i&&0!==n.children.length&&0===o.children.length))return null;return o;function u(t,r){return e(t,r,n)}}(e,null,null)}},function(e,n,t){"use strict";e.exports=function(e,n,t){var r=[];return Array.isArray(e)?(e.forEach((function(e,a,l){var i=n.call(t,e,a,l);Array.isArray(i)?r.push.apply(r,i):null!=i&&r.push(i)})),r):r}},function(e,n,t){"use strict";e.exports=a;var r=t(10);function a(e,n,t,a){var i;function o(e,r,u){var s,c=[];return(n&&!i(e,r,u[u.length-1]||null)||!1!==(c=l(t(e,u)))[0])&&e.children&&"skip"!==c[0]&&!1===(s=l(function(e,n){var t,r=a?-1:1,l=(a?e.length:-1)+r;for(;l>-1&&l<e.length;){if(!1===(t=o(e[l],l,n))[0])return t;l="number"==typeof t[1]?t[1]:l+r}}(e.children,u.concat(e))))[0]?s:c}"function"==typeof n&&"function"!=typeof t&&(a=t,t=n,n=null),i=r(n),o(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}a.CONTINUE=!0,a.SKIP="skip",a.EXIT=!1},function(e,n){function t(){this.map=new WeakMap}function r(){this.keys=[],this.values=[]}e.exports="function"==typeof WeakMap?t:r,t.prototype.has=function(e){return this.map.has(e)},t.prototype.set=function(e,n){return this.map.set(e,n),this},t.prototype.get=function(e){return this.map.get(e)},t.prototype.clear=function(){},r.prototype.has=function(e){return-1!==this.keys.indexOf(e)},r.prototype.set=function(e,n){var t=this.keys.indexOf(e);return-1===t?(this.keys.push(e),this.values.push(n)):this.values[t]=n,this},r.prototype.get=function(e){var n=this.keys.indexOf(e);return-1===n?void 0:this.values[n]},r.prototype.clear=function(){this.keys=[],this.values=[]}}])})); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93414
18
625