@lookit/surveys 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.min.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,9 +31,20 @@ const exitSurvey = { type: chsSurvey.ExitSurveyPlugin };
|
|
|
31
31
|
|
|
32
32
|
### Parameters
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
#### Optional
|
|
35
|
+
|
|
36
|
+
**`show_databrary_options` [Boolean | true]**
|
|
37
|
+
|
|
38
|
+
Show question about sharing collected data on Databrary.
|
|
39
|
+
|
|
40
|
+
**`include_withdrawal_example` [Boolean | true]**
|
|
41
|
+
|
|
42
|
+
Include an example in withdrawal question text.
|
|
43
|
+
|
|
44
|
+
**`private_level_only` [Boolean | false]**
|
|
45
|
+
|
|
46
|
+
Only show "private" on use of media question.
|
|
47
|
+
|
|
48
|
+
**`additional_video_privacy_text` [String | ""]**
|
|
49
|
+
|
|
50
|
+
Add custom video privacy text to privacy question.
|
package/dist/index.browser.js
CHANGED
|
@@ -80684,4 +80684,4 @@ var chsSurvey = (function (jspsych, Data) {
|
|
|
80684
80684
|
return index;
|
|
80685
80685
|
|
|
80686
80686
|
})(jsPsychModule, chsData);
|
|
80687
|
-
//# sourceMappingURL=index.browser.js.map
|
|
80687
|
+
//# sourceMappingURL=https://unpkg.com/@lookit/surveys@0.0.4/dist/index.browser.js.map
|
|
@@ -768,4 +768,4 @@ var Na,Ba=function(){return l((function e(t,n,o,i){if(r(this,e),isNaN(t)||isNaN(
|
|
|
768
768
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,n){e.exports=t}})},O.exports=I(S(),_());var D=O.exports,A={name:"survey",version:"2.0.0",parameters:{survey_json:{type:e.ParameterType.OBJECT,default:{}},survey_function:{type:e.ParameterType.FUNCTION,default:null},validation_function:{type:e.ParameterType.FUNCTION,default:null}},data:{response:{type:e.ParameterType.COMPLEX,nested:{identifier:{type:e.ParameterType.STRING},response:{type:e.ParameterType.STRING|e.ParameterType.INT|e.ParameterType.FLOAT|e.ParameterType.BOOL|e.ParameterType.OBJECT}}},rt:{type:e.ParameterType.INT}}},q={body:"jspsych-body",bodyContainer:"jspsych-body-container",question:{content:"jspsych-question-content",mainRoot:"jspsych-question-root"},page:{root:"jspsych-page"},footer:"jspsych-footer",navigation:{complete:"jspsych-nav-complete"},rowMultiple:"jspsych-row-multiple"},L=function(){return l((function e(t){r(this,e),this.jsPsych=t,this.jsPsych=t}),[{key:"applyStyles",value:function(e){e.applyTheme({cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"#474747","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.1)","--sjs-primary-backcolor-dark":"#000000","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":" rgba(0, 0, 0, 0.16)"},themeName:"plain",colorPalette:"light",isPanelless:!1})}},{key:"trial",value:function(e,t){var n=this;"{}"===JSON.stringify(t.survey_json)&&null===t.survey_function&&console.error("Survey plugin warning: you must define the survey using a non-empty JSON object and/or a survey function."),this.survey=new D.Survey(t.survey_json),null!==t.survey_function&&t.survey_function(this.survey),this.applyStyles(this.survey),this.survey.css=q,t.validation_function&&this.survey.onValidateQuestion.add(t.validation_function),this.survey.onComplete.add((function(e,t){var o,i=e.getAllQuestions(),r=Object.keys(e.data),s=u(i);try{for(s.s();!(o=s.n()).done;){var a,l=o.value;if(!r.includes(l.name))e.mergeData(c({},l.name,null!==(a=l.defaultValue)&&void 0!==a?a:null))}}catch(e){s.e(e)}finally{s.f()}document.querySelector(".jspsych-content-wrapper").style.display="flex",n.jsPsych.finishTrial({rt:Math.round(performance.now()-n.start_time),response:e.data})})),document.querySelector(".jspsych-content-wrapper").style.display="block",this.survey.render(e),this.start_time=performance.now()}}])}();function j(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}L.info=A,"function"==typeof SuppressedError&&SuppressedError;
|
|
769
769
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
770
770
|
var F=Object.entries,M=Object.setPrototypeOf,N=Object.isFrozen,B=Object.getPrototypeOf,H=Object.getOwnPropertyDescriptor,Q=Object.freeze,z=Object.seal,W=Object.create,U="undefined"!=typeof Reflect&&Reflect,$=U.apply,G=U.construct;Q||(Q=function(e){return e}),z||(z=function(e){return e}),$||($=function(e,t,n){return e.apply(t,n)}),G||(G=function(e,t){return function(e,t,n){if(f())return Reflect.construct.apply(null,arguments);var o=[null];return o.push.apply(o,t),new(e.bind.apply(e,o))}(e,x(t))});var J,K=le(Array.prototype.forEach),Z=le(Array.prototype.pop),Y=le(Array.prototype.push),X=le(String.prototype.toLowerCase),ee=le(String.prototype.toString),te=le(String.prototype.match),ne=le(String.prototype.replace),oe=le(String.prototype.indexOf),ie=le(String.prototype.trim),re=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),ae=(J=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(J,t)});function le(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return $(e,t,o)}}function ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X;M&&M(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var r=n(i);r!==i&&(N(t)||(t[o]=r),i=r)}e[i]=!0}return e}function ce(e){for(var t=0;t<e.length;t++){re(e,t)||(e[t]=null)}return e}function pe(e){var t,n=W(null),o=u(F(e));try{for(o.s();!(t=o.n()).done;){var i=b(t.value,2),r=i[0],s=i[1];re(e,r)&&(Array.isArray(s)?n[r]=ce(s):s&&"object"===P(s)&&s.constructor===Object?n[r]=pe(s):n[r]=s)}}catch(e){o.e(e)}finally{o.f()}return n}function de(e,t){for(;null!==e;){var n=H(e,t);if(n){if(n.get)return le(n.get);if("function"==typeof n.value)return le(n.value)}e=B(e)}return function(){return null}}var he=Q(["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"]),fe=Q(["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"]),ge=Q(["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"]),me=Q(["animate","color-profile","cursor","discard","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"]),ye=Q(["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","mprescripts"]),ve=Q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),be=Q(["#text"]),Ce=Q(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),xe=Q(["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"]),we=Q(["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"]),Pe=Q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ve=z(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ke=z(/<%[\w\W]*|[\w\W]*%>/gm),Oe=z(/\${[\w\W]*}/gm),Te=z(/^data-[\-\w.\u00B7-\uFFFF]/),Se=z(/^aria-[\-\w]+$/),Ee=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ie=z(/^(?:\w+script|data):/i),Re=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_e=z(/^html$/i),De=z(/^[a-z][.\w]*(-[.\w]+)+$/i),Ae=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ve,ERB_EXPR:ke,TMPLIT_EXPR:Oe,DATA_ATTR:Te,ARIA_ATTR:Se,IS_ALLOWED_URI:Ee,IS_SCRIPT_OR_DATA:Ie,ATTR_WHITESPACE:Re,DOCTYPE_NAME:_e,CUSTOM_ELEMENT:De}),qe=1,Le=3,je=7,Fe=8,Me=9,Ne=function(){return"undefined"==typeof window?null:window};var Be=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ne(),n=function(t){return e(t)};if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Me)return n.isSupported=!1,n;var o,i=t.document,r=i,s=r.currentScript,a=t.DocumentFragment,l=t.HTMLTemplateElement,u=t.Node,c=t.Element,p=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,g=t.DOMParser,m=t.trustedTypes,y=c.prototype,v=de(y,"cloneNode"),b=de(y,"remove"),C=de(y,"nextSibling"),w=de(y,"childNodes"),V=de(y,"parentNode");if("function"==typeof l){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}var O="",T=i,S=T.implementation,E=T.createNodeIterator,I=T.createDocumentFragment,R=T.getElementsByTagName,_=r.importNode,D={};n.isSupported="function"==typeof F&&"function"==typeof V&&S&&void 0!==S.createHTMLDocument;var A=Ae.MUSTACHE_EXPR,q=Ae.ERB_EXPR,L=Ae.TMPLIT_EXPR,j=Ae.DATA_ATTR,M=Ae.ARIA_ATTR,N=Ae.IS_SCRIPT_OR_DATA,B=Ae.ATTR_WHITESPACE,H=Ae.CUSTOM_ELEMENT,z=Ae.IS_ALLOWED_URI,U=null,$=ue({},[].concat(x(he),x(fe),x(ge),x(ye),x(be))),G=null,J=ue({},[].concat(x(Ce),x(xe),x(we),x(Pe))),le=Object.seal(W(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}})),ce=null,Ve=null,ke=!0,Oe=!0,Te=!1,Se=!0,Ie=!1,Re=!0,De=!1,Be=!1,He=!1,Qe=!1,ze=!1,We=!1,Ue=!0,$e=!1,Ge=!0,Je=!1,Ke={},Ze=null,Ye=ue({},["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"]),Xe=null,et=ue({},["audio","video","img","source","image","track"]),tt=null,nt=ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",st=rt,at=!1,lt=null,ut=ue({},[ot,it,rt],ee),ct=null,pt=["application/xhtml+xml","text/html"],dt=null,ht=null,ft=i.createElement("form"),gt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ht||ht!==e){if(e&&"object"===P(e)||(e={}),e=pe(e),ct=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,dt="application/xhtml+xml"===ct?ee:X,U=re(e,"ALLOWED_TAGS")?ue({},e.ALLOWED_TAGS,dt):$,G=re(e,"ALLOWED_ATTR")?ue({},e.ALLOWED_ATTR,dt):J,lt=re(e,"ALLOWED_NAMESPACES")?ue({},e.ALLOWED_NAMESPACES,ee):ut,tt=re(e,"ADD_URI_SAFE_ATTR")?ue(pe(nt),e.ADD_URI_SAFE_ATTR,dt):nt,Xe=re(e,"ADD_DATA_URI_TAGS")?ue(pe(et),e.ADD_DATA_URI_TAGS,dt):et,Ze=re(e,"FORBID_CONTENTS")?ue({},e.FORBID_CONTENTS,dt):Ye,ce=re(e,"FORBID_TAGS")?ue({},e.FORBID_TAGS,dt):{},Ve=re(e,"FORBID_ATTR")?ue({},e.FORBID_ATTR,dt):{},Ke=!!re(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Re=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Qe=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Je=e.IN_PLACE||!1,z=e.ALLOWED_URI_REGEXP||Ee,st=e.NAMESPACE||rt,le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Oe=!1),ze&&(Qe=!0),Ke&&(U=ue({},be),G=[],!0===Ke.html&&(ue(U,he),ue(G,Ce)),!0===Ke.svg&&(ue(U,fe),ue(G,xe),ue(G,Pe)),!0===Ke.svgFilters&&(ue(U,ge),ue(G,xe),ue(G,Pe)),!0===Ke.mathMl&&(ue(U,ye),ue(G,we),ue(G,Pe))),e.ADD_TAGS&&(U===$&&(U=pe(U)),ue(U,e.ADD_TAGS,dt)),e.ADD_ATTR&&(G===J&&(G=pe(G)),ue(G,e.ADD_ATTR,dt)),e.ADD_URI_SAFE_ATTR&&ue(tt,e.ADD_URI_SAFE_ATTR,dt),e.FORBID_CONTENTS&&(Ze===Ye&&(Ze=pe(Ze)),ue(Ze,e.FORBID_CONTENTS,dt)),Ge&&(U["#text"]=!0),De&&ue(U,["html","head","body"]),U.table&&(ue(U,["tbody"]),delete ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');o=e.TRUSTED_TYPES_POLICY,O=o.createHTML("")}else void 0===o&&(o=function(e,t){if("object"!==P(e)||"function"!=typeof e.createPolicy)return null;var n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,s)),null!==o&&"string"==typeof O&&(O=o.createHTML(""));Q&&Q(e),ht=e}},yt=ue({},["mi","mo","mn","ms","mtext"]),vt=ue({},["foreignobject","annotation-xml"]),bt=ue({},["title","style","font","a","script"]),Ct=ue({},[].concat(x(fe),x(ge),x(me))),xt=ue({},[].concat(x(ye),x(ve))),wt=function(e){Y(n.removed,{element:e});try{V(e).removeChild(e)}catch(t){b(e)}},Pt=function(e,t){try{Y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!G[e])if(Qe||ze)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Vt=function(e){var t=null,n=null;if(He)e="<remove></remove>"+e;else{var r=te(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ct&&st===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var s=o?o.createHTML(e):e;if(st===rt)try{t=(new g).parseFromString(s,ct)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(st,"template",null);try{t.documentElement.innerHTML=at?O:s}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),st===rt?R.call(t,De?"html":"body")[0]:De?t.documentElement:a},kt=function(e){return E.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Tt=function(e){return"function"==typeof u&&e instanceof u},St=function(e,t,o){D[e]&&K(D[e],(function(e){e.call(n,t,o,ht)}))},Et=function(e){var t=null;if(St("beforeSanitizeElements",e,null),Ot(e))return wt(e),!0;var o=dt(e.nodeName);if(St("uponSanitizeElement",e,{tagName:o,allowedTags:U}),e.hasChildNodes()&&!Tt(e.firstElementChild)&&se(/<[/\w]/g,e.innerHTML)&&se(/<[/\w]/g,e.textContent))return wt(e),!0;if(e.nodeType===je)return wt(e),!0;if(Re&&e.nodeType===Fe&&se(/<[/\w]/g,e.data))return wt(e),!0;if(!U[o]||ce[o]){if(!ce[o]&&Rt(o)){if(le.tagNameCheck instanceof RegExp&&se(le.tagNameCheck,o))return!1;if(le.tagNameCheck instanceof Function&&le.tagNameCheck(o))return!1}if(Ge&&!Ze[o]){var i=V(e)||e.parentNode,r=w(e)||e.childNodes;if(r&&i)for(var s=r.length-1;s>=0;--s){var a=v(r[s],!0);a.__removalCount=(e.__removalCount||0)+1,i.insertBefore(a,C(e))}}return wt(e),!0}return e instanceof c&&!function(e){var t=V(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});var n=X(e.tagName),o=X(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===it?t.namespaceURI===rt?"svg"===n:t.namespaceURI===ot?"svg"===n&&("annotation-xml"===o||yt[o]):Boolean(Ct[n]):e.namespaceURI===ot?t.namespaceURI===rt?"math"===n:t.namespaceURI===it?"math"===n&&vt[o]:Boolean(xt[n]):e.namespaceURI===rt?!(t.namespaceURI===it&&!vt[o])&&!(t.namespaceURI===ot&&!yt[o])&&!xt[n]&&(bt[n]||!Ct[n]):!("application/xhtml+xml"!==ct||!lt[e.namespaceURI]))}(e)?(wt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!se(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&e.nodeType===Le&&(t=e.textContent,K([A,q,L],(function(e){t=ne(t,e," ")})),e.textContent!==t&&(Y(n.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(wt(e),!0)},It=function(e,t,n){if(Ue&&("id"===t||"name"===t)&&(n in i||n in ft))return!1;if(Oe&&!Ve[t]&&se(j,t));else if(ke&&se(M,t));else if(!G[t]||Ve[t]){if(!(Rt(e)&&(le.tagNameCheck instanceof RegExp&&se(le.tagNameCheck,e)||le.tagNameCheck instanceof Function&&le.tagNameCheck(e))&&(le.attributeNameCheck instanceof RegExp&&se(le.attributeNameCheck,t)||le.attributeNameCheck instanceof Function&&le.attributeNameCheck(t))||"is"===t&&le.allowCustomizedBuiltInElements&&(le.tagNameCheck instanceof RegExp&&se(le.tagNameCheck,n)||le.tagNameCheck instanceof Function&&le.tagNameCheck(n))))return!1}else if(tt[t]);else if(se(z,ne(n,B,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==oe(n,"data:")||!Xe[e]){if(Te&&!se(N,ne(n,B,"")));else if(n)return!1}else;return!0},Rt=function(e){return"annotation-xml"!==e&&te(e,H)},_t=function(e){St("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G},r=t.length,s=function(){var s=t[r],a=s.name,l=s.namespaceURI,u=s.value,c=dt(a),p="value"===a?u:ie(u);if(i.attrName=c,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,St("uponSanitizeAttribute",e,i),p=i.attrValue,Re&&se(/((--!?|])>)|<\/(style|title)/i,p))return Pt(a,e),0;if(i.forceKeepAttr)return 0;if(Pt(a,e),!i.keepAttr)return 0;if(!Se&&se(/\/>/i,p))return Pt(a,e),0;Ie&&K([A,q,L],(function(e){p=ne(p,e," ")}));var d=dt(e.nodeName);if(!It(d,c,p))return 0;if(!$e||"id"!==c&&"name"!==c||(Pt(a,e),p="user-content-"+p),o&&"object"===P(m)&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(d,c)){case"TrustedHTML":p=o.createHTML(p);break;case"TrustedScriptURL":p=o.createScriptURL(p)}try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Ot(e)?wt(e):Z(n.removed)}catch(e){}};r--;)s();St("afterSanitizeAttributes",e,null)}},Dt=function e(t){var n=null,o=kt(t);for(St("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)St("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof a&&e(n.content),_t(n));St("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,s=null,l=null,c=null;if((at=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Tt(e)){if("function"!=typeof e.toString)throw ae("toString is not a function");if("string"!=typeof(e=e.toString()))throw ae("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Be||mt(t),n.removed=[],"string"==typeof e&&(Je=!1),Je){if(e.nodeName){var p=dt(e.nodeName);if(!U[p]||ce[p])throw ae("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)(s=(i=Vt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===qe&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Qe&&!Ie&&!De&&-1===e.indexOf("<"))return o&&We?o.createHTML(e):e;if(!(i=Vt(e)))return Qe?null:We?O:""}i&&He&&wt(i.firstChild);for(var d=kt(Je?e:i);l=d.nextNode();)Et(l)||(l.content instanceof a&&Dt(l.content),_t(l));if(Je)return e;if(Qe){if(ze)for(c=I.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(G.shadowroot||G.shadowrootmode)&&(c=_.call(r,c,!0)),c}var h=De?i.outerHTML:i.innerHTML;return De&&U["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&se(_e,i.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+h),Ie&&K([A,q,L],(function(e){h=ne(h,e," ")})),o&&We?o.createHTML(h):h},n.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Be=!0},n.clearConfig=function(){ht=null,Be=!1},n.isValidAttribute=function(e,t,n){ht||mt({});var o=dt(e),i=dt(t);return It(o,i,n)},n.addHook=function(e,t){"function"==typeof t&&(D[e]=D[e]||[],Y(D[e],t))},n.removeHook=function(e){if(D[e])return Z(D[e])},n.removeHooks=function(e){D[e]&&(D[e]=[])},n.removeAllHooks=function(){D={}},n}();function He(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function ze(e){Qe=e}var We=/[&<>"']/,Ue=new RegExp(We.source,"g"),$e=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ge=new RegExp($e.source,"g"),Je={"&":"&","<":"<",">":">",'"':""","'":"'"},Ke=function(e){return Je[e]};function Ze(e,t){if(t){if(We.test(e))return e.replace(Ue,Ke)}else if($e.test(e))return e.replace(Ge,Ke);return e}var Ye=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Xe(e){return e.replace(Ye,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var et=/(^|[^\[])\^/g;function tt(e,t){var n="string"==typeof e?e:e.source;t=t||"";var o={replace:function(e,t){var i="string"==typeof t?t:t.source;return i=i.replace(et,"$1"),n=n.replace(e,i),o},getRegex:function(){return new RegExp(n,t)}};return o}function nt(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}var ot={exec:function(){return null}};function it(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var o=!1,i=t;--i>=0&&"\\"===n[i];)o=!o;return o?"|":" |"})).split(/ \|/),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function rt(e,t,n){var o=e.length;if(0===o)return"";for(var i=0;i<o;){var r=e.charAt(o-i-1);if(r!==t||n){if(r===t||!n)break;i++}else i++}return e.slice(0,o-i)}function st(e,t,n,o){var i=t.href,r=t.title?Ze(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;var a={type:"link",raw:n,href:i,title:r,text:s,tokens:o.inlineTokens(s)};return o.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:Ze(s)}}var at=function(){return l((function e(t){r(this,e),c(this,"options",void 0),c(this,"rules",void 0),c(this,"lexer",void 0),this.options=t||Qe}),[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:rt(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],o=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var o=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:b(t,1)[0].length>=o.length?e.slice(o.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:o}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var o=rt(n,"#");this.options.pedantic?n=o.trim():o&&!/ $/.test(o)||(n=o.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");n=rt(n.replace(/^ *>[ \t]?/gm,""),"\n");var o=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:t[0],tokens:i,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n=t[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=o?n:"[*+-]");for(var r=new RegExp("^( {0,3}".concat(n,")((?:[\t ][^\\n]*)?(?:\\n|$))")),s="",a="",l=!1;e;){var u=!1;if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);var c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),p=e.split("\n",1)[0],d=0;this.options.pedantic?(d=2,a=c.trimStart()):(d=(d=t[2].search(/[^ ]/))>4?1:d,a=c.slice(d),d+=t[1].length);var h=!1;if(!c&&/^ *$/.test(p)&&(s+=p+"\n",e=e.substring(p.length+1),u=!0),!u)for(var f=new RegExp("^ {0,".concat(Math.min(3,d-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),g=new RegExp("^ {0,".concat(Math.min(3,d-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),m=new RegExp("^ {0,".concat(Math.min(3,d-1),"}(?:```|~~~)")),y=new RegExp("^ {0,".concat(Math.min(3,d-1),"}#"));e;){var v=e.split("\n",1)[0];if(p=v,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),m.test(p))break;if(y.test(p))break;if(f.test(p))break;if(g.test(e))break;if(p.search(/[^ ]/)>=d||!p.trim())a+="\n"+p.slice(d);else{if(h)break;if(c.search(/[^ ]/)>=4)break;if(m.test(c))break;if(y.test(c))break;if(g.test(c))break;a+="\n"+p}h||p.trim()||(h=!0),s+=v+"\n",e=e.substring(v.length+1),c=p.slice(d)}i.loose||(l?i.loose=!0:/\n *\n *$/.test(s)&&(l=!0));var b=null,C=void 0;this.options.gfm&&(b=/^\[[ xX]\] /.exec(a))&&(C="[ ] "!==b[0],a=a.replace(/^\[[ xX]\] +/,"")),i.items.push({type:"list_item",raw:s,task:!!b,checked:C,loose:!1,text:a,tokens:[]}),i.raw+=s}i.items[i.items.length-1].raw=s.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(var x=0;x<i.items.length;x++)if(this.lexer.state.top=!1,i.items[x].tokens=this.lexer.blockTokens(i.items[x].text,[]),!i.loose){var w=i.items[x].tokens.filter((function(e){return"space"===e.type})),P=w.length>0&&w.some((function(e){return/\n.*\n/.test(e.raw)}));i.loose=P}if(i.loose)for(var V=0;V<i.items.length;V++)i.items[V].loose=!0;return i}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(/\s+/g," "),o=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:o,title:i}}}},{key:"table",value:function(e){var t=this,n=this.rules.block.table.exec(e);if(n&&/[:|]/.test(n[2])){var o=it(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split("\n"):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(o.length===i.length){var a,l=u(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;/^ *-+: *$/.test(c)?s.align.push("right"):/^ *:-+: *$/.test(c)?s.align.push("center"):/^ *:-+ *$/.test(c)?s.align.push("left"):s.align.push(null)}}catch(e){l.e(e)}finally{l.f()}var p,d=u(o);try{for(d.s();!(p=d.n()).done;){var h=p.value;s.header.push({text:h,tokens:this.lexer.inline(h)})}}catch(e){d.e(e)}finally{d.f()}var f,g=u(r);try{for(g.s();!(f=g.n()).done;){var m=f.value;s.rows.push(it(m,s.header.length).map((function(e){return{text:e,tokens:t.lexer.inline(e)}})))}}catch(e){g.e(e)}finally{g.f()}return s}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ze(t[1])}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var o=rt(n.slice(0,-1),"\\");if((n.length-o.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,o=0;o<e.length;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&--n<0)return o;return-1}(t[2],"()");if(i>-1){var r=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,r).trim(),t[3]=""}}var s=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),st(t,{href:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s,title:a?a.replace(this.rules.inline.anyPunctuation,"$1"):a},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var o=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!o){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return st(n,o,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=this.rules.inline.emStrongLDelim.exec(e);if(o&&((!o[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))&&(!(o[1]||o[2]||"")||!n||this.rules.inline.punctuation.exec(n)))){var i,r,s=x(o[0]).length-1,a=s,l=0,u="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);null!=(o=u.exec(t));)if(i=o[1]||o[2]||o[3]||o[4]||o[5]||o[6])if(r=x(i).length,o[3]||o[4])a+=r;else if(!((o[5]||o[6])&&s%3)||(s+r)%3){if(!((a-=r)>0)){r=Math.min(r,r+a+l);var c=x(o[0])[0].length,p=e.slice(0,s+o.index+c+r);if(Math.min(s,r)%2){var d=p.slice(1,-1);return{type:"em",raw:p,text:d,tokens:this.lexer.inlineTokens(d)}}var h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}else l+=r}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),o=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return o&&i&&(n=n.substring(1,n.length-1)),n=Ze(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e){var t,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(t=Ze(o[1])):t=Ze(o[1]),{type:"link",raw:o[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}},{key:"url",value:function(e){var t;if(t=this.rules.inline.url.exec(e)){var n,o;if("@"===t[2])o="mailto:"+(n=Ze(t[0]));else{var i;do{var r,s;i=t[0],t[0]=null!==(r=null===(s=this.rules.inline._backpedal.exec(t[0]))||void 0===s?void 0:s[0])&&void 0!==r?r:""}while(i!==t[0]);n=Ze(t[0]),o="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}},{key:"inlineText",value:function(e){var t,n=this.rules.inline.text.exec(e);if(n)return t=this.lexer.state.inRawBlock?n[0]:Ze(n[0]),{type:"text",raw:n[0],text:t}}}])}(),lt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ut=/(?:[*+-]|\d{1,9}[.)])/,ct=tt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ut).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),pt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dt=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ht=tt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",dt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ft=tt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ut).getRegex(),gt="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yt=tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",mt).replace("tag",gt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vt=tt(pt).replace("hr",lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt).getRegex(),bt={blockquote:tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vt).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:ht,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:lt,html:yt,lheading:ct,list:ft,newline:/^(?: *(?:\n|$))+/,paragraph:vt,table:ot,text:/^[^\n]+/},Ct=tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt).getRegex(),xt=m(m({},bt),{},{table:Ct,paragraph:tt(pt).replace("hr",lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ct).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt).getRegex()}),wt=m(m({},bt),{},{html:tt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",mt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tt(pt).replace("hr",lt).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ct).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Pt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Vt=/^( {2,}|\\)\n(?!\s*$)/,kt="\\p{P}\\p{S}",Ot=tt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,kt).getRegex(),Tt=tt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,kt).getRegex(),St=tt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,kt).getRegex(),Et=tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,kt).getRegex(),It=tt(/\\([punct])/,"gu").replace(/punct/g,kt).getRegex(),Rt=tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_t=tt(mt).replace("(?:--\x3e|$)","--\x3e").getRegex(),Dt=tt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_t).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),At=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qt=tt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",At).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Lt=tt(/^!?\[(label)\]\[(ref)\]/).replace("label",At).replace("ref",dt).getRegex(),jt=tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",dt).getRegex(),Ft={_backpedal:ot,anyPunctuation:It,autolink:Rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Vt,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:ot,emStrongLDelim:Tt,emStrongRDelimAst:St,emStrongRDelimUnd:Et,escape:Pt,link:qt,nolink:jt,punctuation:Ot,reflink:Lt,reflinkSearch:tt("reflink|nolink(?!\\()","g").replace("reflink",Lt).replace("nolink",jt).getRegex(),tag:Dt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:ot},Mt=m(m({},Ft),{},{link:tt(/^!?\[(label)\]\((.*?)\)/).replace("label",At).getRegex(),reflink:tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",At).getRegex()}),Nt=m(m({},Ft),{},{escape:tt(Pt).replace("])","~|])").getRegex(),url:tt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Bt=m(m({},Nt),{},{br:tt(Vt).replace("{2,}","*").getRegex(),text:tt(Nt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Ht={normal:bt,gfm:xt,pedantic:wt},Qt={normal:Ft,gfm:Nt,breaks:Bt,pedantic:Mt},zt=function(){function e(t){r(this,e),c(this,"tokens",void 0),c(this,"options",void 0),c(this,"state",void 0),c(this,"tokenizer",void 0),c(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qe,this.options.tokenizer=this.options.tokenizer||new at,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:Ht.normal,inline:Qt.normal};this.options.pedantic?(n.block=Ht.pedantic,n.inline=Qt.pedantic):this.options.gfm&&(n.block=Ht.gfm,this.options.breaks?n.inline=Qt.breaks:n.inline=Qt.gfm),this.tokenizer.rules=n}return l(e,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var t=0;t<this.inlineQueue.length;t++){var n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(e){var t,n,o,i,r=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));for(var a,l=function(){if(r.options.extensions&&r.options.extensions.block&&r.options.extensions.block.some((function(n){return!!(t=n.call({lexer:r},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)})))return 0;if(t=r.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&s.length>0?s[s.length-1].raw+="\n":s.push(t),0;if(t=r.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=s[s.length-1])||"paragraph"!==n.type&&"text"!==n.type?s.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,r.inlineQueue[r.inlineQueue.length-1].src=n.text),0;if(t=r.tokenizer.fences(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.heading(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.hr(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.blockquote(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.list(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.html(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=s[s.length-1])||"paragraph"!==n.type&&"text"!==n.type?r.tokens.links[t.tag]||(r.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,r.inlineQueue[r.inlineQueue.length-1].src=n.text),0;if(t=r.tokenizer.table(e))return e=e.substring(t.raw.length),s.push(t),0;if(t=r.tokenizer.lheading(e))return e=e.substring(t.raw.length),s.push(t),0;if(o=e,r.options.extensions&&r.options.extensions.startBlock){var a,l=1/0,u=e.slice(1);r.options.extensions.startBlock.forEach((function(e){"number"==typeof(a=e.call({lexer:r},u))&&a>=0&&(l=Math.min(l,a))})),l<1/0&&l>=0&&(o=e.substring(0,l+1))}if(r.state.top&&(t=r.tokenizer.paragraph(o)))return n=s[s.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,r.inlineQueue.pop(),r.inlineQueue[r.inlineQueue.length-1].src=n.text):s.push(t),i=o.length!==e.length,e=e.substring(t.raw.length),0;if(t=r.tokenizer.text(e))return e=e.substring(t.raw.length),(n=s[s.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,r.inlineQueue.pop(),r.inlineQueue[r.inlineQueue.length-1].src=n.text):s.push(t),0;if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(r.options.silent)return console.error(c),1;throw new Error(c)}};e&&(0===(a=l())||1!==a););return this.state.top=!0,s}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,o,i,r,s,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(u));)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,i.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(var p,d=function(){if(r||(s=""),r=!1,a.options.extensions&&a.options.extensions.inline&&a.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:a},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)})))return 0;if(t=a.tokenizer.escape(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=l[l.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(t=a.tokenizer.link(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.reflink(e,a.tokens.links))return e=e.substring(t.raw.length),(n=l[l.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(t=a.tokenizer.emStrong(e,u,s))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.codespan(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.br(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.del(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=a.tokenizer.autolink(e))return e=e.substring(t.raw.length),l.push(t),0;if(!a.state.inLink&&(t=a.tokenizer.url(e)))return e=e.substring(t.raw.length),l.push(t),0;if(o=e,a.options.extensions&&a.options.extensions.startInline){var i,c=1/0,p=e.slice(1);a.options.extensions.startInline.forEach((function(e){"number"==typeof(i=e.call({lexer:a},p))&&i>=0&&(c=Math.min(c,i))})),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(t=a.tokenizer.inlineText(o))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(s=t.raw.slice(-1)),r=!0,(n=l[l.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(a.options.silent)return console.error(d),1;throw new Error(d)}};e&&(0===(p=d())||1!==p););return l}}],[{key:"rules",get:function(){return{block:Ht,inline:Qt}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])}(),Wt=function(){return l((function e(t){r(this,e),c(this,"options",void 0),this.options=t||Qe}),[{key:"code",value:function(e,t,n){var o,i=null===(o=(t||"").match(/^\S*/))||void 0===o?void 0:o[0];return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="language-'+Ze(i)+'">'+(n?e:Ze(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Ze(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e,t){return e}},{key:"heading",value:function(e,t,n){return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}},{key:"hr",value:function(){return"<hr>\n"}},{key:"list",value:function(e,t,n){var o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"}},{key:"listitem",value:function(e,t,n){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,t,n){var o=nt(e);if(null===o)return n;var i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"}},{key:"image",value:function(e,t,n){var o=nt(e);if(null===o)return n;var i='<img src="'.concat(e=o,'" alt="').concat(n,'"');return t&&(i+=' title="'.concat(t,'"')),i+=">"}},{key:"text",value:function(e){return e}}])}(),Ut=function(){return l((function e(){r(this,e)}),[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}])}(),$t=function(){function e(t){r(this,e),c(this,"options",void 0),c(this,"renderer",void 0),c(this,"textRenderer",void 0),this.options=t||Qe,this.options.renderer=this.options.renderer||new Wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ut}return l(e,[{key:"parse",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",o=0;o<e.length;o++){var i=e[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){var r=i,s=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==s||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){n+=s||"";continue}}switch(i.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":var a=i;n+=this.renderer.heading(this.parseInline(a.tokens),a.depth,Xe(this.parseInline(a.tokens,this.textRenderer)));continue;case"code":var l=i;n+=this.renderer.code(l.text,l.lang,!!l.escaped);continue;case"table":for(var u=i,c="",p="",d=0;d<u.header.length;d++)p+=this.renderer.tablecell(this.parseInline(u.header[d].tokens),{header:!0,align:u.align[d]});c+=this.renderer.tablerow(p);for(var h="",f=0;f<u.rows.length;f++){var g=u.rows[f];p="";for(var m=0;m<g.length;m++)p+=this.renderer.tablecell(this.parseInline(g[m].tokens),{header:!1,align:u.align[m]});h+=this.renderer.tablerow(p)}n+=this.renderer.table(c,h);continue;case"blockquote":var y=i,v=this.parse(y.tokens);n+=this.renderer.blockquote(v);continue;case"list":for(var b=i,C=b.ordered,x=b.start,w=b.loose,P="",V=0;V<b.items.length;V++){var k=b.items[V],O=k.checked,T=k.task,S="";if(k.task){var E=this.renderer.checkbox(!!O);w?k.tokens.length>0&&"paragraph"===k.tokens[0].type?(k.tokens[0].text=E+" "+k.tokens[0].text,k.tokens[0].tokens&&k.tokens[0].tokens.length>0&&"text"===k.tokens[0].tokens[0].type&&(k.tokens[0].tokens[0].text=E+" "+k.tokens[0].tokens[0].text)):k.tokens.unshift({type:"text",text:E+" "}):S+=E+" "}S+=this.parse(k.tokens,w),P+=this.renderer.listitem(S,T,!!O)}n+=this.renderer.list(P,C,x);continue;case"html":var I=i;n+=this.renderer.html(I.text,I.block);continue;case"paragraph":var R=i;n+=this.renderer.paragraph(this.parseInline(R.tokens));continue;case"text":for(var _=i,D=_.tokens?this.parseInline(_.tokens):_.text;o+1<e.length&&"text"===e[o+1].type;)D+="\n"+((_=e[++o]).tokens?this.parseInline(_.tokens):_.text);n+=t?this.renderer.paragraph(D):D;continue;default:var A='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(A),"";throw new Error(A)}}return n}},{key:"parseInline",value:function(e,t){t=t||this.renderer;for(var n="",o=0;o<e.length;o++){var i=e[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){var r=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=r||"";continue}}switch(i.type){case"escape":var s=i;n+=t.text(s.text);break;case"html":var a=i;n+=t.html(a.text);break;case"link":var l=i;n+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break;case"image":var u=i;n+=t.image(u.href,u.title,u.text);break;case"strong":var c=i;n+=t.strong(this.parseInline(c.tokens,t));break;case"em":var p=i;n+=t.em(this.parseInline(p.tokens,t));break;case"codespan":var d=i;n+=t.codespan(d.text);break;case"br":n+=t.br();break;case"del":var h=i;n+=t.del(this.parseInline(h.tokens,t));break;case"text":var f=i;n+=t.text(f.text);break;default:var g='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}return n}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}])}(),Gt=function(){return l((function e(t){r(this,e),c(this,"options",void 0),this.options=t||Qe}),[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}},{key:"processAllTokens",value:function(e){return e}}])}();c(Gt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Jt=new WeakSet,Kt=function(){return l((function e(){r(this,e),s(this,Jt),c(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),c(this,"options",this.setOptions),c(this,"parse",o(Jt,this,Zt).call(this,zt.lex,$t.parse)),c(this,"parseInline",o(Jt,this,Zt).call(this,zt.lexInline,$t.parseInline)),c(this,"Parser",$t),c(this,"Renderer",Wt),c(this,"TextRenderer",Ut),c(this,"Lexer",zt),c(this,"Tokenizer",at),c(this,"Hooks",Gt),this.use.apply(this,arguments)}),[{key:"walkTokens",value:function(e,t){var n,o=this,i=[],r=u(e);try{var s=function(){var e=n.value;switch(i=i.concat(t.call(o,e)),e.type){case"table":var r,s=e,a=u(s.header);try{for(a.s();!(r=a.n()).done;){var l=r.value;i=i.concat(o.walkTokens(l.tokens,t))}}catch(e){a.e(e)}finally{a.f()}var c,p=u(s.rows);try{for(p.s();!(c=p.n()).done;){var d,h=u(c.value);try{for(h.s();!(d=h.n()).done;){var f=d.value;i=i.concat(o.walkTokens(f.tokens,t))}}catch(e){h.e(e)}finally{h.f()}}}catch(e){p.e(e)}finally{p.f()}break;case"list":var g=e;i=i.concat(o.walkTokens(g.items,t));break;default:var m,y=e;null!==(m=o.defaults.extensions)&&void 0!==m&&null!==(m=m.childTokens)&&void 0!==m&&m[y.type]?o.defaults.extensions.childTokens[y.type].forEach((function(e){var n=y[e].flat(1/0);i=i.concat(o.walkTokens(n,t))})):y.tokens&&(i=i.concat(o.walkTokens(y.tokens,t)))}};for(r.s();!(n=r.n()).done;)s()}catch(e){r.e(e)}finally{r.f()}return i}},{key:"use",value:function(){for(var e=this,t=this.defaults.extensions||{renderers:{},childTokens:{}},n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.forEach((function(n){var o=m({},n);if(o.async=e.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if("renderer"in e){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var r=e.renderer.apply(this,o);return!1===r&&(r=n.apply(this,o)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");var o=t[e.level];o?o.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),o.extensions=t),n.renderer){var i=e.defaults.renderer||new Wt(e.defaults),r=function(){if(!(s in i))throw new Error("renderer '".concat(s,"' does not exist"));if("options"===s)return 1;var e=s,t=n.renderer[e],o=i[e];i[e]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var s=t.apply(i,n);return!1===s&&(s=o.apply(i,n)),s||""}};for(var s in n.renderer)r();o.renderer=i}if(n.tokenizer){var a=e.defaults.tokenizer||new at(e.defaults),l=function(){if(!(u in a))throw new Error("tokenizer '".concat(u,"' does not exist"));if(["options","rules","lexer"].includes(u))return 1;var e=u,t=n.tokenizer[e],o=a[e];a[e]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=t.apply(a,n);return!1===r&&(r=o.apply(a,n)),r}};for(var u in n.tokenizer)l();o.tokenizer=a}if(n.hooks){var c=e.defaults.hooks||new Gt,p=function(){if(!(d in c))throw new Error("hook '".concat(d,"' does not exist"));if("options"===d)return 1;var t=d,o=n.hooks[t],i=c[t];Gt.passThroughHooks.has(d)?c[t]=function(t){if(e.defaults.async)return Promise.resolve(o.call(c,t)).then((function(e){return i.call(c,e)}));var n=o.call(c,t);return i.call(c,n)}:c[t]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=o.apply(c,t);return!1===r&&(r=i.apply(c,t)),r}};for(var d in n.hooks)p();o.hooks=c}if(n.walkTokens){var h=e.defaults.walkTokens,f=n.walkTokens;o.walkTokens=function(e){var t=[];return t.push(f.call(this,e)),h&&(t=t.concat(h.call(this,e))),t}}e.defaults=m(m({},e.defaults),o)})),this}},{key:"setOptions",value:function(e){return this.defaults=m(m({},this.defaults),e),this}},{key:"lexer",value:function(e,t){return zt.lex(e,null!=t?t:this.defaults)}},{key:"parser",value:function(e,t){return $t.parse(e,null!=t?t:this.defaults)}}])}();function Zt(e,t){var n=this;return function(i,r){var s=m({},r),a=m(m({},n.defaults),s);!0===n.defaults.async&&!1===s.async&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);var l=o(Jt,n,Yt).call(n,!!a.silent,!!a.async);if(null==i)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(i):i).then((function(t){return e(t,a)})).then((function(e){return a.hooks?a.hooks.processAllTokens(e):e})).then((function(e){return a.walkTokens?Promise.all(n.walkTokens(e,a.walkTokens)).then((function(){return e})):e})).then((function(e){return t(e,a)})).then((function(e){return a.hooks?a.hooks.postprocess(e):e})).catch(l);try{a.hooks&&(i=a.hooks.preprocess(i));var u=e(i,a);a.hooks&&(u=a.hooks.processAllTokens(u)),a.walkTokens&&n.walkTokens(u,a.walkTokens);var c=t(u,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(e){return l(e)}}}function Yt(e,t){return function(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){var o="<p>An error occurred:</p><pre>"+Ze(n.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(n);throw n}}var Xt=new Kt;function en(e,t){return Xt.parse(e,t)}en.options=en.setOptions=function(e){return Xt.setOptions(e),en.defaults=Xt.defaults,ze(en.defaults),en},en.getDefaults=He,en.defaults=Qe,en.use=function(){return Xt.use.apply(Xt,arguments),en.defaults=Xt.defaults,ze(en.defaults),en},en.walkTokens=function(e,t){return Xt.walkTokens(e,t)},en.parseInline=Xt.parseInline,en.Parser=$t,en.parser=$t.parse,en.Renderer=Wt,en.TextRenderer=Ut,en.Lexer=zt,en.lexer=zt.lex,en.Tokenizer=at,en.Hooks=Gt,en.parse=en,en.options,en.setOptions,en.use,en.walkTokens,en.parseInline,$t.parse,zt.lex;var tn={async:!1},nn={USE_PROFILES:{html:!0}},on=function(e){return e.onTextMarkdown.add((function(e,t){t.html=Be.sanitize(en.parseInline(t.text,tn),nn)})),e},rn=function(e){return on(e),e.onComplete.add((function(e){var t=e.getQuestionByName("withdrawal").value.length>0;e.setValue("withdrawal",t)})),e},sn=function(e){function n(){return r(this,n),i(this,n,arguments)}return h(n,e),l(n,[{key:"trial",value:function(e,o){var i;C(n,"trial",this)([e,Object.assign(Object.assign({},o),{survey_function:(i=o.survey_function,function(e){var n=this;return on(e),e.onComplete.add((function(){return j(n,void 0,void 0,y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.updateResponse(window.chs.response.id,{survey_consent:!0,completed_consent_frame:!0});case 2:case"end":return e.stop()}}),e)})))})),"function"==typeof i&&i(e),e})})])}}],[{key:"chsData",value:function(){return{chs_type:"consent"}}}])}(L);sn.info=L.info;var an="databraryShare",ln="useOfMedia",un="withdrawal",cn={pages:[{elements:[{description:"We ask again just to check for typos during registration or accidental selection of a different child at the start of the study.",inputType:"date",isRequired:!0,maxValueExpression:"today()",name:"birthDate",title:"Please confirm your child's birthdate.",type:"text"},{description:"Only authorized researchers will have access to information in the library. Researchers who are granted access must agree to maintain confidentiality and not use information for commercial purposes. Data sharing will lead to faster progress in research on human development and behavior. If you have any questions about the data-sharing library, please visit [Databrary](https://nyu.databrary.org/) or email ethics@databrary.org.",enableIf:"({withdrawal} empty) or ({withdrawal.length} = 0)",isRequired:!0,name:an,title:"Would you like to share your video and other data from this session with authorized users of the secure data library Databrary?",type:"boolean",valueFalse:"no",valueTrue:"yes"},{choices:[{text:"**Private**: Video may only be viewed by authorized scientists",value:"private"},{text:"**Scientific and educational**: Video may be shared for scientific or educational purposes. For example, we might show a video clip in a talk at a scientific conference or an undergraduate class about cognitive development, or include an image or video in a scientific paper. In some circumstances, video or images may be available online, for instance as supplemental material in a scientific paper.",value:"scientific"},{text:"**Publicity**: Please select this option if you'd be excited about seeing your child featured on the Lookit website or in a news article about this study! Your video may be shared for publicity as well as scientific and educational purposes; it will never be used for commercial purposes. Video clips shared may be available online to the general public.",value:"public"}],description:"",enableIf:"({withdrawal} empty) or ({withdrawal.length} = 0)",isRequired:!0,name:ln,title:"Use of video clips and images:",type:"radiogroup"},{choices:[],defaultValue:[],isRequired:!1,name:un,title:"Withdrawal of video data",type:"checkbox"},{autoGrow:!0,name:"feedback",rows:3,title:"How did it go? Do you have any suggestions for improving the study?",type:"comment"}],name:"page1"}],showQuestionNumbers:"off"},pn=Object.assign(Object.assign({},L.info),{parameters:Object.assign(Object.assign({},L.info.parameters),{show_databrary_options:{type:e.ParameterType.BOOL,default:!0,pretty_name:"Show databrary options"},include_withdrawal_example:{type:e.ParameterType.BOOL,default:!0,pretty_name:"Include withdrawal example"},private_level_only:{type:e.ParameterType.BOOL,default:!1,pretty_name:"Private level only"},additional_video_privacy_text:{type:e.ParameterType.STRING,default:"",pretty_name:"Additional video privacy text"}})}),dn=function(e){function t(){return r(this,t),i(this,t,arguments)}return h(t,e),l(t,[{key:"trial",value:function(e,n){C(t,"trial",this)([e,Object.assign(Object.assign({},n),{survey_json:this.surveyParameters(n),survey_function:rn})])}},{key:"surveyParameters",value:function(e){return[this.showDatabraryOptions,this.includeWithdrawalExample,this.additionalVideoPrivacyText,this.privateLevelOnly].map((function(t){return t(e)})),cn}},{key:"privateLevelOnly",value:function(e){if(e.private_level_only){var t=cn.pages[0].elements.find((function(e){return e.name===ln}));t&&Object.assign(t,{defaultValue:"private",description:"Your video data is private and may only be viewed by authorized scientists.",choicesVisibleIf:"false",isRequired:!1})}}},{key:"showDatabraryOptions",value:function(e){if(!e.show_databrary_options){var t=cn.pages[0].elements,n=t.findIndex((function(e){return e.name===an}));t.splice(n,1)}}},{key:"additionalVideoPrivacyText",value:function(e){var t=cn.pages[0].elements.find((function(e){return e.name===ln}));t&&Object.assign(t,{description:e.additional_video_privacy_text})}},{key:"includeWithdrawalExample",value:function(e){var t=window.chs.study,n=cn.pages[0].elements.find((function(e){return e.name===un})),o=e.include_withdrawal_example?" (your spouse was discussing state secrets in the background, etc.)":"";n&&Object.assign(n,{choices:[{text:"Every video helps us, even if something went wrong! However, if you need your video deleted".concat(o,", check here to completely withdraw your video data from this session from the study. Only your consent video will be retained and it may only be viewed by Lookit project staff and researchers working with ").concat(t.attributes.contact_info,' on the study "').concat(t.attributes.name,'"; other video will be deleted without viewing.'),value:!0}]})}}],[{key:"chsData",value:function(){return{chs_type:"exit"}}}])}(L);return dn.info=pn,{ExitSurveyPlugin:dn,ConsentSurveyPlugin:sn}}(jsPsychModule,chsData);
|
|
771
|
-
//# sourceMappingURL=index.browser.min.js.map
|
|
771
|
+
//# sourceMappingURL=https://unpkg.com/@lookit/surveys@0.0.4/dist/index.browser.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookit/surveys",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "A survey plugin for lookit studies.",
|
|
5
5
|
"homepage": "https://github.com/lookit/lookit-jspsych#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@jspsych/plugin-survey": "^2.0.0",
|
|
29
|
-
"@lookit/data": "^0.0.
|
|
29
|
+
"@lookit/data": "^0.0.4",
|
|
30
30
|
"dompurify": "^3.0.11",
|
|
31
31
|
"marked": "^12.0.1",
|
|
32
32
|
"survey-jquery": "^1.9.136"
|