<acpsearchkey="app=core&module=discovery&controller=search&searchResult=searchlog_exclude_groups"><![CDATA[{"lang_key":"searchlog_exclude_groups","restriction":"search_manage","keywords":["exclude groups","exclude groups from search"]}]]></acpsearch>
<wordkey="ipb_embed_url_filter_option"js="0">Allow links to be converted to iframes?</word>
<wordkey="ipb_embed_url_filter_option_desc"js="0">When this is enabled, users with permission will see a button to convert the link to an iframe if the URL's Domain is allowed.</word>
<wordkey="ipb_embed_url_whitelist_desc"js="0"><![CDATA[Use <code>*</code> as a wildcard. Note that subdomains must be explicitly specified in a pattern to be allowed. For example, the pattern <code>google.com</code> would not allow https://www.google.com/, but <code>*.google.com</code> or <code>www.google.com</code> would. This setting only applies when saving new content and edits in the future.]]></word>
<wordkey="ipb_embed_url_whitelist_desc"js="0"><![CDATA[If a user has permission, they can create a custom iframe if the source URL matches one of these patterns. Use <code>*</code> as a wildcard. Note that subdomains must be explicitly specified in a pattern to be allowed. For example, the pattern <code>google.com</code> would not allow https://www.google.com/, but <code>*.google.com</code> or <code>www.google.com</code> would. This setting only applies when saving new content and edits in the future.]]></word>
<wordkey="embed_url_filter_any_action"js="0">Moderate iframes in Posts</word>
<wordkey="embed_url_filter_any_moderate_desc"js="0">If an iframe with a custom source is posted, the content will be held for moderator approval.</word>
<wordkey="fb_ig_oembed_deprecate_warning"js="0">Facebook embeds have been deprecated. While you can edit the current configuration to retain functionality, this feature will be removed at some point in the future.</word>
<wordkey="enhancements__core_Iframely_desc"js="0">Iframely allows you to embed rich content from hundreds of online providers in the Invision Community Editor.</word>
<wordkey="enhancements__core_Iframely_desc_full"js="0"><![CDATA[Iframely allows you to embed rich content from hundreds of online providers in the Invision Community Editor. Checkout <a href="{external.iframely}" target="_blank" rel="noopener">Iframely.com <i class="fa-solid fa-external-link"></i></a> to create your account and get an API key.]]></word>
<wordkey="enhancements__core_Iframely_embed_settings_link"js="0"><![CDATA[You can configure who has permission to embed external media in the <a href="{internal.admin.app=core&module=settings&controller=posting&tab=simplifiedMode&searchResult=form_editor_r__external_embed}" target="_blank">Editor Permission Settings <i class="fa-solid fa-external-link"></i></a>.]]></word>
<wordkey="iframely_enabled_desc"js="0"><![CDATA[When enabled, when a user pastes a URL or link for one of the following content providers or domain patterns, the system will search <a href="https://iframely.com/" target="_blank">Iframely <i class="fa-solid fa-external-link"></i></a> for available embeddable content from the URL.]]></word>
<wordkey="iframely_api_key_desc"js="0">The key hash can be copied from your Iframely account overview. Note the Client Key Hash is different from the Server API Key itself.</word>
<wordkey="iframely_builtin_services_desc"js="0">If a URL's domain belongs to one of these services, the system will check Iframely for embeddable content from that URL.</word>
<wordkey="iframely_url_whitelist_desc"js="0"><![CDATA[<div class='ipsRichText'>In addition to the default content providers, you can check Iframely for embeddable content for any URL whose domain matches one of these patterns. <ul><li>Use <code>*</code> as a wildcard.</li><li>Note that subdomains must be explicitly specified in a pattern to be allowed</li><li>For example, the pattern <code>google.com</code> would not allow https://www.google.com/, but <code>*.google.com</code> or <code>www.google.com</code> would.</li><li><strong>Only allow embeds for websites that you trust, embedding content from untrusted sources could introduce security risks.</strong></li></ul></div>]]></word>
<wordkey="iframely_err_no_api_key"js="0">No API key specified</word>
<wordkey="iframely_manage_link"js="0"><![CDATA[The <a target="_blank" href="{internal.admin.app=core&module=applications&controller=enhancements&do=edit&id=core_Iframely}">Iframely Integration <i class="fa-solid fa-external-link"></i></a> can be used to embed content from additional third party sources, including Facebook and Instagram.]]></word>
<wordkey="editor_simplified_mode_desc"js="0"><![CDATA[There are three permission levels of the Post Editor: Minimal, Standard, and Advanced. By default, users will use the Minimal Editor for secondary content such as Comments and Posts, and the Standard Editor for main items such as Topics and Blog Entries. Here you can configure which features are available at which levels. To change the levels each group has access to, see the Content tab in the <a href="{internal.app=core&module=members&controller=groups}">Member Group Settings</a> for a group.]]></word>
@@ -7257,6 +7275,7 @@
<wordkey="profile_step_completion_act"js="0">Action to complete the step</word>
<wordkey="profile_step_registration"js="0">Show on Registration</word>
<wordkey="profile_step_registration_desc"js="0">Include this step in the registration process</word>
<wordkey="profile_step_no_registration"js="0">Quick Registration is currently enabled. This setting is only supported with full registration.</word>
@@ -44616,6 +44625,13 @@ i-dropdown:not([data-i-dropdown-selectable="checkbox"]) .iDropdown__items > li >
inset-block-start: 1em;
}
/* Firefox doesn't fire the drag event if the ::before pseudoelement (fa icon) is dragged, so this element sits inside the drag handle over top the icon. */
*/var id=Symbol.for("react.element"),Y$=Symbol.for("react.portal"),H$=Symbol.for("react.fragment"),z$=Symbol.for("react.strict_mode"),V$=Symbol.for("react.profiler"),W$=Symbol.for("react.provider"),q$=Symbol.for("react.context"),K$=Symbol.for("react.forward_ref"),Q$=Symbol.for("react.suspense"),j$=Symbol.for("react.memo"),X$=Symbol.for("react.lazy"),FR=Symbol.iterator;function Z$(e){return e===null||typeof e!="object"?null:(e=FR&&e[FR]||e["@@iterator"],typeof e=="function"?e:null)}var ZI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JI=Object.assign,ew={};function $l(e,t,n){this.props=e,this.context=t,this.refs=ew,this.updater=n||ZI}$l.prototype.isReactComponent={};$l.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tw(){}tw.prototype=$l.prototype;function UT(e,t,n){this.props=e,this.context=t,this.refs=ew,this.updater=n||ZI}var GT=UT.prototype=new tw;GT.constructor=UT;JI(GT,$l.prototype);GT.isPureReactComponent=!0;var UR=Array.isArray,nw=Object.prototype.hasOwnProperty,$T={current:null},rw={key:!0,ref:!0,__self:!0,__source:!0};function iw(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)nw.call(t,r)&&!rw.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:id,type:e,key:o,ref:s,props:i,_owner:$T.current}}function J$(e,t){return{$$typeof:id,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function YT(e){return typeof e=="object"&&e!==null&&e.$$typeof===id}function eY(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){returnt[n]})}varGR=/\/+/g;functionfh(e,t){returntypeofe=="object"&&e!==null&&e.key!=null?eY(""+e.key):t.toString(36)}functionhf(e,t,n,r,i){varo=typeofe;(o==="undefined"||o==="boolean")&&(e=null);vars=!1;if(e===null)s=!0;elseswitch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){caseid:caseY$:s=!0}}if(s)returns=e,i=i(s),e=r===""?"."+fh(s,0):r,UR(i)?(n="",e!=null&&(n=e.replace(GR,"$&/")+"/"),hf(i,t,n,"",function(u){returnu})):i!=null&&(YT(i)&&(i=J$(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(GR,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",UR(e))for(vara=0;a<e.length;a++){o=e[a];varl=r+fh(o,a);s+=hf(o,t,n,l,i)}elseif(l=Z$(e),typeofl=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+fh(o,a++),s+=hf(o,t,n,l,i);elseif(o==="object")throwt=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");returns}functionTp(e,t,n){if(e==null)returne;varr=[],i=0;returnhf(e,r,"","",function(o){returnt.call(n,o,i++)}),r}functiontY(e){if(e._status===-1){vart=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)returne._result.default;throwe._result}var$n={current:null},Ef={transition:null},nY={ReactCurrentDispatcher:$n,ReactCurrentBatchConfig:Ef,ReactCurrentOwner:$T};functionow(){throwError("act(...) is not supported in production builds of React.")}ze.Children={map:Tp,forEach:function(e,t,n){Tp(e,function(){t.apply(this,arguments)},n)},count:function(e){vart=0;returnTp(e,function(){t++}),t},toArray:function(e){returnTp(e,function(t){returnt})||[]},only:function(e){if(!YT(e))throwError("React.Children.only expected to receive a single React element child.");returne}};ze.Component=$l;ze.Fragment=H$;ze.Profiler=V$;ze.PureComponent=UT;ze.StrictMode=z$;ze.Suspense=Q$;ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nY;ze.act=ow;ze.cloneElement=function(e,t,n){if(e==null)throwError("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");varr=JI({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void0&&(o=t.ref,s=$T.current),t.key!==void0&&(i=""+t.key),e.type&&e.type.defaultProps)vara=e.type.defaultProps;for(lint)nw.call(t,l)&&!rw.hasOwnProperty(l)&&(r[l]=t[l]===void0&&a!==void0?a[l]:t[l])}varl=arguments.length-2;if(l===1)r.children=n;elseif(1<l){a=Array(l);for(varu=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:id,type:e.type,key:i,ref:o,props:r,_owner:s}};ze.createContext=function(e){returne={$$typeof:q$,_currentValue:e,_currentValue2:e,_threadCountLine truncated
`,1;if(Vn>1e5&&Vn>Q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ee+=te,te.length}const yt=D($);if(!yt)throw ia(o.replace("{}",$)),new Error('Unknown language: "'+$+'"');const Zt=dQ(yt);let Vt="",Re=U||Zt;const fe={},Xe=new a.__emitter(a);zn();let Ee="",Ye=0,Jt=0,Vn=0,Wn=!1;try{if(yt.__emitTokens)yt.__emitTokens(F,Xe);else{for(Re.matcher.considerAll();;){Vn++,Wn?Wn=!1:Re.matcher.considerAll(),Re.matcher.lastIndex=Jt;const ae=Re.matcher.exec(F);if(!ae)break;const Q=F.substring(Jt,ae.index),te=bt(Q,ae);Jt=ae.index+te}bt(F.substring(Jt))}return Xe.finalize(),Vt=Xe.toHTML(),{language:$,value:Vt,relevance:Ye,illegal:!1,_emitter:Xe,_top:Re}}catch(ae){if(ae.message&&ae.message.includes("Illegal"))return{language:$,value:lE(F),illegal:!0,relevance:0,_illegalBy:{message:ae.message,index:Jt,context:F.slice(Jt-100,Jt+100),mode:ae.mode,resultSoFar:Vt},_emitter:Xe};if(i)return{language:$,value:lE(F),illegal:!1,relevance:0,errorRaised:ae,_emitter:Xe,_top:Re};throw ae}}function _($){const F={value:lE($),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return F._emitter.addText($),F}function m($,F){F=F||a.languages||Object.keys(t);const k=_($),U=F.filter(D).filter(P).map(ye=>f(ye,$,!1));U.unshift(k);const V=U.sort((ye,pe)=>{if(ye.relevance!==pe.relevance)return pe.relevance-ye.relevance;if(ye.language&&pe.language){if(D(ye.language).supersetOf===pe.language)return 1;if(D(pe.language).supersetOf===ye.language)return-1}return 0}),[W,ee]=V,he=W;return he.secondBest=ee,he}function h($,F,k){const U=F&&n[F]||k;$.classList.add("hljs"),$.classList.add(`language-${U}`)}function E($){let F=null;const k=u($);if(l(k))return;if(se("before:highlightElement",{el:$,language:k}),$.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",$);return}if($.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn($)),a.throwUnescapedHTML))throw new _Q("One of your code blocks includes unescaped HTML.",$.innerHTML);F=$;const U=F.textContent,V=k?d(U,{language:k,ignoreIllegals:!0}):m(U);$.innerHTML=V.value,$.dataset.highlighted="yes",h($,k,V.language),$.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&($.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),se("after:highlightElement",{el:$,result:V,text:U})}function T($){a=hA(a,$)}const S=()=>{O(),Ga("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){O(),Ga("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function O(){function $(){O()}if(document.readyState==="loading"){C||window.addEventListener("DOMContentLoaded",$,!1),C=!0;return}document.querySelectorAll(a.cssSelector).forEach(E)}function N($,F){let k=null;try{k=F(e)}catch(U){if(ia("Language definition for '{}' could not be registered.".replace("{}",$)),i)ia(U);else throw U;k=s}k.name||(k.name=$),t[$]=k,k.rawDefinition=F.bind(null,e),k.aliases&&z(k.aliases,{languageName:$})}function w($){delete t[$];for(const F of Object.keys(n))n[F]===$&&delete n[F]}function x(){return Object.keys(t)}function D($){return $=($||"").toLowerCase(),t[$]||t[n[$]]}function z($,{languageName:F}){typeof $=="string"&&($=[$]),$.forEach(k=>{n[k.toLowerCase()]=F})}function P($){const F=D($);return F&&!F.disableAutodetect}function oe($){$["before:highlightBlock"]&&!$["before:highlightElement"]&&($["before:highlightElement"]=F=>{$["before:highlightBlock"](Object.assign({block:F.el},F))}),$["after:highlightBlock"]&&!$["after:highlightElement"]&&($["after:highlightElement"]=F=>{$["after:highlightBlock"](Object.assign({block:F.el},F))})}function _e($){oe($),r.push($)}function le($){const F=r.indexOf($);F!==-1&&r.splice(F,1)}function se($,F){const k=$;r.forEach(function(U){U[k]&&U[k](F)})}function q($){return Ga("10.7.0","highlightBlock will be removed entirely in v12.0"),Ga("10.7.0","Please use highlightElement now."),E($)}Object.assign(e,{highlight:d,highlightAuto:m,highlightAll:O,highlightElement:E,highlightBlock:q,configure:T,initHighlighting:S,initHighlightingOnLoad:y,registerLanguage:N,unregisterLanguage:w,listLanguages:x,getLanguage:D,registerAliases:z,autoDetection:P,inherit:hA,addPlugin:_e,removePlugin:le}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=fQ,e.regex={concat:Ta,lookahead:PL,either:Ey,optional:I3,anyNumberOfTimes:A3};for(const $ in Wp)typeof Wp[$]=="object"&&ML(Wp[$]);return Object.assign(e,Wp),e},Ll=VL({});Ll.newInstance=()=>VL({});var gQ=Ll;Ll.HighlightJS=Ll;Ll.default=Ll;const hQ=Gl(gQ);function WL(e,t=[]){return e.flatMap(n=>{const r=[...t,...n.properties?n.properties.className:[]];return n.children?WL(n.children,r):{text:n.value,classes:r}})}function SA(e){r
Line truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function i5(e){const t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}function o5(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function s5(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],s=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSouLine truncated
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}function c5(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const u5=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),d5=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],p5=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],f5=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],_5=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],m5=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","backgrou
Line truncated
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function E5(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function S5(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function T5(e){const t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}function b5(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}function y5(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT
Line truncated
`},u]}}const a9=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),l9=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],c9=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ZL=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],JL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],u9=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","fon
Line truncated
]`,m={scope:"string",variants:[u,l,d,f]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},E=["false","null","true"],T=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],S=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:T,literal:(le=>{const se=[];return le.forEach(q=>{se.push(q),q.toLowerCase()===q?se.push(q.toUpperCase()):se.push(q.toLowerCase())}),se})(E),built_in:S},O=le=>le.map(se=>se.replace(/\|\d+$/,"")),N={variants:[{match:[/new/,t.concat(_,"+"),t.concat("(?!",O(S).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=t.concat(r,"\\b(?!\\()"),x={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},D={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[D,o,x,e.C_BLOCK_COMMENT_MODE,m,h,N]},P={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",O(T).join("\\b|"),"|",O(S).join("\\b|"),"\\b)"),r,t.concat(_,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(P);const oe=[D,x,e.C_BLOCK_COMMENT_MODE,m,h,N],_e={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...oe]},...oe,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:C,contains:[_e,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,P,x,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},N,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",o,x,e.C_BLOCK_COMMENT_MODE,m,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",ill
Line truncated
`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ml({find:q8,type:this.type})]}});let lf,Q8=0;function j8(){if(lf!==void 0)return lf;if(Q8++>20)return window.Debug.warn("Couldn't determine the max height of a truncated quote element"),lf=275,275;const e=document.createElement("div");e.classList.add("ipsRichText"),e.style.opacity="0",document.body.appendChild(e);const t="temp_quote_"+window.ips.uid().replaceAll("-","");e.innerHTML=`<blockquoteclass="ipsQuote"><divclass="ipsQuote_contents"data-ipstruncatedata-ipstruncated="true"id="${t}"></div></blockquote>`;constn=getComputedStyle(document.querySelector(`#${t}`)),r=parseFloat(n.maxHeight)||0;if(e.remove(),r&&!Number.isNaN(r))lf=r;elsereturn275;returnr}functionX8({editor:e,getPos:t,node:n}){constr=L.useRef(null),i=L.useRef(null);L.useEffect(()=>{consta=()=>{varf;constl=(f=r.current)==null?void0:f.querySelector(":scope>.ipsQuote_contents");if(!l)return;constu=t();if(u===void0)return;letd=!0;if(l.scrollHeight>j8()){for(const_of[e.state.selection.$from,e.state.selection.$to])if(_.pos>=u&&_.pos<=u+n.nodeSize){d=!1;break}}elsed=!1;d===!("truncateExpanded"inl.dataset)&&d===!i.current.hasAttribute("hidden")||(d?(deletel.dataset.truncateExpanded,i.current.removeAttribute("hidden")):(l.dataset.truncateExpanded="true",i.current.setAttribute("hidden","")))};returnsetTimeout(()=>{a()}),e.on("selectionUpdate",a),()=>e.off("selectionUpdate",a)});consto=n.attrs,s=qe(o,{class:"ipsQuote","data-gramm":"false","data-ipsquote":""});returns.className=s.class,s.cite=s.citeLink,deletes.citeLink,deletes.class,deletes.citation,v.jsxs(Wl,{as:"blockquote",...s,"data-gramm":"false",ref:r,children:[v.jsx(Z8,{HTMLAttributes:o}),v.jsx(nP,{}),v.jsx(Kl,{editor:e,getPos:t,nodeSize:()=>n.nodeSize}),v.jsx(gy,{as:"div","data-gramm":"false","data-ipstruncate":"","data-truncated":"true",className:"ipsQuote_contentsipsClearfix"}),v.jsxs("button",{contentEditable:!1,ref:i,type:"button",hidden:!0,onClick:()=>{consta=t();a!==void0&&e.chain().setTextSelection(a+1).focus().run()},className:"ipsTruncate_more","data-action":"expandTruncate",children:[v.jsx("span",{children:window.ips.haveString("edit_show_more")?window.ips.getString("edit_show_more"):"edit_show_more"}),v.jsx("i",{className:"fa-solidfa-pencil"})]})]})}functionZ8({HTMLAttributes:e}){returne.citation?v.jsx("header",{className:"ipsQuote_citation",contentEditable:!1,children:e.citation}):v.jsx(v.Fragment,{})}constJ8=["timestamp","userid","username","contentapp","contenttype","contentclass","contentid","contentcommentid"],$y=K8.extend({draggable:!0,content:"block+",addAttributes(){return{...Object.fromEntries(J8.map(t=>[`data-ipsquote-${t}`,{default:null}])),citation:{default:null,parseHTML:t=>{constn=t.querySelector(":scope>.ipsQuote_citation");if(n){constr=n.innerText;returnn.remove(),r}returnnull}},citeLink:{default:"",parseHTML:t=>t.getAttribute("cite")||""}}},renderHTML:({HTMLAttributes:e})=>{constt=qe(e,{class:"ipsQuote","data-gramm":"false",cite:e.citeLink||void0,"data-ipsquote":""});t.cite=t.citeLink,deletet.citation,deletet.citeLink;constn=["blockquote",t,["div",{class:"ipsQuote_contentsipsClearfix","data-gramm":"false","data-ipstruncate":""},0]];returne.citation&&n.splice(2,0,["header",{class:"ipsQuote_citation"},e.citation]),n},addNodeView(){returnhd(X8)}}).configure({HTMLAttributes:{class:"ipsQuote","data-gramm":"false"}});functioneZ(e){return!e.parentElement||!Yy(e.parentElement)?!1:oP(e.parentElement)===e}functionYy(e){returne.tagName.toLowerCase()==="details"||e.classList.contains("ipsSpoiler")||e.classList.contains("ipsRichTextBox")||e.classList.contains("ipsAccordion")}functionoP(e){returne.querySelector(":scope>:is(summary,.ipsSpoiler_header,.ipsRichTextBox__title)")||null}functionsP(e){returne.querySelector(":scope>:is(i-richtext-box-content)")||null}functionaP(e){if(!e)returnnull;for(consttof[...e.path].reverse())if(typeoft!="number"&&t.type.name===io.name)returnt;returnnull}functiontZ(e){vart,n,r;return((r=aP((n=(t=e==null?void0:e.state)==null?void0:t.selection)==null?void0:n.$from))==null?void0:r.attrs.boxColor)||"root"}functionHy(e){vart,n,r;return((r=aP((n=(t=e==null?void0:e.state)==null?void0:t.selection)==null?void0:n.$from))==null?void0:r.attrs)||null}functionnZ(){returnnewFe({key:new$e("AttachmentLinkClick"),props:{handleDOMEvents:{click:(e,t)=>{if(t.target.closest(".ipsEditor__tiptap-wrapsummary"))returnt.preventDefault(),!0}}}})}constQi=st.create({name:"ipsBoxTitle",content:"inline*",group:"boxContent",selectable:!1,defining:!0,isolating:!0,addAttributes(){return{boxmode:{default:"alwaysopen",parseHTML:e=>e.parentElement.classList.contains("ipsSpoiler")||e.parentElementLine truncated
`):""});const IP=je.create({name:"ipsAutosave",addCommands(){return{clearAutosave:()=>({editor:e,chain:t})=>(e.options.autoSaveKey&&(window.ips.utils.db.remove("editorSave",e.options.autoSaveKey),t().hideMessage("autosave").run()),!0)}},onUpdate(){this.storage.updateCallback()},onCreate(){var e,t;if(this.storage.initial=this.editor.getHTML(),(e=this.editor)!=null&&e.options.autoSaveKey){const n=window.ips.utils.db.get("editorSave",this.editor.options.autoSaveKey);if((t=n==null?void 0:n.content)!=null&&t.trim()&&(!n.time||Date.now()/1e3-86400*3<parseInt(n.time))){const r=new DOMParser().parseFromString(n.content,"text/html"),i=ml.fromSchema(this.editor.state.schema).parse(r.body).toJSON(),o=wP(i)?null:Vl(br.fromJSON(this.editor.state.schema,i).content,this.editor.state.schema);o&&o!==this.editor.getHTML()&&this.editor.chain().setContent(i).showMessage("autosave").focus().run()}this.storage.updateCallback=gn.debounce(()=>{var r;(r=this.editor)!=null&&r.options.autoSaveKey&&(this.editor.getHTML().trim()&&this.editor.getHTML()!=="<p></p>"?window.ips.utils.db.set("editorSave",this.editor.options.autoSaveKey,{content:this.editor.getHTML(),time:Math.round(Date.now()/1e3)}):this.editor.commands.clearAutosave(),this.editor.commands.hideMessage("autosave"))},500)}},addStorage(){return{initial:"",updateCallback:()=>{}}}});function wP(e){var t,n,r;return e.textContent==="<p></p>"?!0:!((t=e.textContent)!=null&&t.trim().length||![Ff.name,Ht.name,Ri.name,nd.name].includes(e.type.name)||(r=(n=e.content)==null?void 0:n.content)!=null&&r.length&&!e.content.content.some(i=>!wP(i)))}function $7(){const{editor:e}=L.useContext(xe);return v.jsxs(v.Fragment,{children:[window.ips.getString("editor_tool--autosave-message-before"),"",v.jsx("button",{className:"ipsEditor__autosave-clear",onClick:()=>e.chain().clearAutosave().setContent(e.storage[IP.name].initial||"").focus().run(),children:window.ips.getString("editor_tool--autosave-message-inner")}),window.ips.getString("editor_tool--autosave-message-after")]})}function Y7({positions:e="",href:t}){const{editor:n}=L.useContext(xe),r=()=>{if(!e.length){n.commands.hideMessage("autoembed");return}let i=n.chain();for(const o of e)i=i.command(({tr:s,chain:a})=>a().insertContentAt({from:Math.max(0,s.mapping.map(o[0])),to:Math.min(s.doc.nodeSize-2,s.mapping.map(o[1]))},`<ahref="${encodeURI(t)}">${o[2]}</a>`));i.hideMessage("autoembed").focus().run()};returnv.jsxs(v.Fragment,{children:[window.ips.getString("editor_tool--autoembed-message-before"),v.jsx("button",{className:"ipsEditor__autosave-clear",onClick:r,children:window.ips.getString("editor_tool--autoembed-message-inner")}),window.ips.getString("editor_tool--autoembed-message-after")]})}functionH7(){const{editor:e}=L.useContext(xe),t=()=>{if(!e.storage[Ke.name].autolinked){e.commands.hideMessage("autolink");return}constn=e.storage[Ke.name].autolinked,{from:r,to:i}=e.state.selection;e.chain().setTextSelection({from:n.from,to:n.to}).unsetMark(Ke.name).setTextSelection({from:r,to:i}).focus().hideMessage("autolink").run()};returnv.jsxs(v.Fragment,{children:[window.ips.getString("editor_tool--autolink-message-before"),v.jsx("button",{className:"ipsEditor__autosave-clear",onClick:t,children:window.ips.getString("editor_tool--autolink-message-inner")}),window.ips.getString("editor_tool--autolink-message-after")]})}functionNI({name:e}){const{editor:t}=L.useContext(xe);returnv.jsxs("div",{className:`ipsEditor__global-messageipsEditor__global-message--${e}`,children:[v.jsxs("div",{className:"ipsEditor__global-message-content",children:[v.jsx("i",{className:"fa-solidfa-circle-info"}),"",v.jsx(z7,{name:e})]}),v.jsx("button",{className:"ipsEditor__global-message-close",onClick:()=>t==null?void0:t.commands.hideMessage(e),children:v.jsx("i",{className:"fa-solidfa-times-circle"})})]})}functionz7({name:e}){const{messages:t}=L.useContext(PT),n=t.get(e);switch(e){case"autosave":returnv.jsx($7,{});case"autoembed":returnv.jsx(Y7,{...n});case"autolink":returnv.jsx(H7,{});default:returntypeofn=="string"&&n?v.jsx("span",{"data-ipseditorcustommessage":"true",dangerouslySetInnerHTML:{__html:n}}):v.jsx(v.Fragment,{children:"Thisisaglobalmessage!"})}}constPT=L.createContext({messages:newMap,addMessage(e,t=""){this.messages.set(e,t)},removeMessage(e){this.messages.has(e)&&this.messages.delete(e)}});functionV7({children:e}){varl;const[t,n]=L.useState(()=>newMap),[r,i]=L.useState(!1),{editor:o}=L.useContext(xe),s=L.useMemo(()=>({messages:t,addMessage:(u,d="")=>{if(!t.has(u)||t.get(u)!==d){t.set(u,d);constf=newMap;for(const[_,m]oft.entries())f.set(_,m);n(f)}},removeMessage:u=>{if(t.has(u)){t.delete(u);constd=newMap;for(const[f,_]oft.entries())d.set(f,_);n(d)}},onVisibilityChange(u=!1){u!==r&&i(u)},visible:r}),[t,n,r,i]);if(L.useEffect(()=>{!o.options.codeMode&&!o.options.simpleRichText&&o.can().registerMessageInterface(s)&&(o==null||o.commands.registerMessageInterface(s))},[s,o]),o.options.codeMode||o.options.simpleRichText)retuLine truncated
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}function eJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(r){eJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(i,o){return o(i)},r)}}function qc(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function im(e){return{}.toString.call(e).includes("Object")}function nJ(e){return!Object.keys(e).length}function rd(e){return typeof e=="function"}function rJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iJ(e,t){return im(t)||ds("changeType"),Object.keys(t).some(function(n){return!rJ(e,n)})&&ds("changeField"),t}function oJ(e){rd(e)||ds("selectorType")}function sJ(e){rd(e)||im(e)||ds("handlerType"),im(e)&&Object.values(e).some(function(t){return!rd(t)})&&ds("handlersType")}function aJ(e){e||ds("initialIsRequired"),im(e)||ds("initialType"),nJ(e)&&ds("initialContent")}function lJ(e,t){throw new Error(e[t]||e.default)}var cJ={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ds=qc(lJ)(cJ),ff={changes:iJ,selector:oJ,handler:sJ,initial:aJ};function uJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ff.initial(e),ff.handler(t);var n={current:e},r=qc(fJ)(n,t),i=qc(pJ)(n),o=qc(ff.changes)(e),s=qc(dJ)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return ff.selector(u),u(n.current)}function l(u){tJ(r,i,o,s)(u)}return[a,l]}function dJ(e,t){return rd(t)?t(e.current):t}function pJ(e,t){return e.current=xI(xI({},e.current),t),t}function fJ(e,t,n){return rd(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var _J={create:uJ},mJ={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function gJ(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function hJ(e){return{}.toString.call(e).includes("Object")}function EJ(e){return e||DI("configIsRequired"),hJ(e)||DI("configType"),e.urls?(SJ(),{paths:{vs:e.urls.monacoBase}}):e}function SJ(){console.warn(xP.deprecation)}function TJ(e,t){throw new Error(e[t]||e.default)}var xP={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecationwarning!
${u.message}`,window.Debug.warn(u),n.commands.showMessage("file-attach","Couldn't insert one or more files pasted or dropped in the editor.")),n.commands.removeAttachment(a))}}}))}return o.run(),!0}}},addProseMirrorPlugins(){return[ate({mimeTypes:this.options.allowedMimeTypes,handler:e=>this.options.onPaste(this.editor,e)})]}}).configure({onPaste(e,t){return e.commands.injectAttachments(t)},onDrop(e,t){return e.commands.injectAttachments(t)}});class cte extends Event{constructor(t){super("injectFile"),this.data=t}}const ute=["name","group","isInline","isBlock","isText","content","isLeaf","selectable","exitable","atom","addOptions","addKeyboardShortcuts","addAttributes","addGlobalAttributes","addStorage","addCommands","renderHTML","parseHTML","onCreate","onUpdate","onBeforeCreate","onFocus","onBlur","onBeforeCreate","onSelectionUpdate","onDestroy","onTransaction","priority","defaultOptions","addInputRules","addPasteRules","addProseMirrorPlugins","marks","addNodeView","whitespace","defining","isolating","renderText"];function dte(e,t){var a,l,u;if(!e.ipsPlugins){e.ipsPlugins={buttons:{},extensions:[],nodes:[],marks:[]};return}e.ipsPlugins.buttons={},Array.isArray((a=e.ipsPlugins)==null?void 0:a.extensions)?s(e.ipsPlugins.extensions,je):e.ipsPlugins.extensions=[],Array.isArray((l=e.ipsPlugins)==null?void 0:l.nodes)?s(e.ipsPlugins.nodes,st):e.ipsPlugins.nodes=[],Array.isArray((u=e.ipsPlugins)==null?void 0:u.marks)?s(e.ipsPlugins.marks,Hn):e.ipsPlugins.marks=[],e.ipsPlugins.nestedToolbars={},e.pluginButtonKeys=new Set;const n=new Set(e.tools.toolbar);for(const d in e.ipsPlugins.buttons)for(const{before:f,after:_}of e.ipsPlugins.buttons[d].locations){let m,h=!1;if(typeof _=="string"&&_ in iI){const E=iI[_];e.ipsPlugins.nestedToolbars[E]=e.ipsPlugins.nestedToolbars[E]||[...hs[E]],e.ipsPlugins.nestedToolbars[E].push(`custom:${d}`),h=!0}else if(typeof _=="string"&&n.has(_))m=e.tools.toolbar.indexOf(_)+1;else if(typeof f=="string"&&n.has(f))m=e.tools.toolbar.indexOf(f);else if(!f&&!_||f===null||_===null)m=e.tools.toolbar.length;else continue;e.pluginButtonKeys.add(`custom:${d}`),h||(n.add(`custom:${d}`),e.tools.toolbar.splice(m,0,`custom:${d}`))}function r(d){for(const f of d.attributes)["class","style","id","src","title","rel","alt"].includes(f.name.toLowerCase())||d.removeAttribute(f.name);for(const f of d.querySelectorAll(":scope > *"))r(f)}function i(d,f){var _;if(d.addButtons instanceof Function){const m=d.addButtons.bind(f)();if(typeof m!="object")throw new TypeError;const h=new DOMParser;for(const E in m){let{html:T,command:S,locations:y,element:C,isActive:O,isAvailable:N}=m[E];if(typeof T!="string"&&!(C instanceof HTMLElement)||!(S instanceof Function)||!Array.isArray(y))throw new TypeError;O!==void 0&&typeof O!="boolean"&&!(O instanceof Function)&&(window.Debug.warn(`ExpectedisActivetobeabooleanoraFunction,gota${typeofO}.Castingtoboolean.`),O=!!O),N!==void 0&&typeof N!="boolean"&&!(N instanceof Function)&&(window.Debug.warn(`ExpectedisAvailabletobeabooleanoraFunction,gota${typeofN}.Castingtoboolean.`),N=!!N);const w=[];for(const P of y)if(P===null)w.push({after:null,before:void 0});else if(typeof P=="object"){if(![void 0,null].includes(P.before)&&typeof P.before!="string"||![void 0,null].includes(P.after)&&typeof P.after!="string")throw new TypeError;w.push({after:P.after,before:P.before})}else typeof P=="string"?w.push({after:P,before:void 0}):w.push({after:void 0,before:void 0});y=w;const x=["script","link","style","pre","code","iframe","object","embed","noscript","video"];if(C instanceof Element)C.querySelectorAll(x.join(",")).forEach(P=>P.remove());else{const P=h.parseFromString(T,"text/html");if(!(P instanceof Document))throw new RangeError("The html passed in for the button is not readable");if(P.querySelectorAll(x.join(",")).forEach(oe=>oe.remove()),!(((_=P==null?void 0:P.body)==null?void 0:_.firstElementChild)instanceof HTMLElement)||!P.body.firstElementChild.innerHTML.length)throw new RangeError("The html passed in for the button is not readable");C=P.body.firstElementChild}if(r(C),x.includes(C.tagName.toLowerCase()))throw new RangeError(`Theelementoftype${C.tagName}cannotbeusedasatoolbarbutton`);const D=C.cloneNode(!0),z=`${d.name}_${E}`;e.ipsPlugins.buttons[z]={get element(){return D},set element(P){throw new Error("Cannot update the element of an ipsPlugin button!")},get command(){return S.bind(f)},set command(P){throw new Error("Cannot update the command of an ipsPlugin button!")},get isActive(){return O instanceof Function?O.bind(f):O},set isActive(P){throw new Error("Cannot update the isActive property of an ipsPlugin button!")},get isAvailable(){return N instanceof Function?N.bind(f):N},set isAvailable(P){throw new Error("Cannot update the isAvailable property of an ipsPlugin button!")},get locations(){return y},set locations(P){throw new Error("Cannot update properties of ipsPlugin buttons")}}}delete d.addButtons}}function o(d){for(const f of Object.
Line truncated
`);return n.chain().insertContentAt({from:a,to:h},{type:Mt.name,attrs:f,content:[{type:"text",text:E}]}).setNodeSelection(a)}}}}),hte=st.create({name:"IPSLazyLoadLegacy",parseHTML(){return[{tag:"*",getAttrs:e=>(window.ips.utils.lazyload.parseLazyLoadElements(e,!1),!1)}]},renderHTML(){return window.Debug.warn("The IPSLazyLoadLegacy node fixer is being rendered as HTML, but should never exist in the ProseMirror Node tree. This will create one empty <i-lazy-load-dummy-element> wrapper"),["i-lazy-load-dummy-element",0]},priority:1e4}),Vm=[[/(\{\{)(?=[^\n]*}})/,[{token:"delimiter",next:"@ipsTemplateTag"}]],[/(\{)([a-zA-Z0-9-]+)(=)(?=[^\n]*})/,["delimiter","attribute.name",{token:"delimiter",next:"@ipsPlugin"}]],[/(\{)(\$)(?=[a-zA-Z][^\n]*})/,["delimiter",{token:"symbol",goBack:2,next:"@ipsTemplateVar"}]]],Ete=Vm.map(([e])=>{const t=e.toString().replace(/^\//,"").replace(/\/[a-z0-9]*$/,"");return t.match(/^\((\?[:=!])?\\\{/)?t.replace(/^\((\?[:=!])?\\\{/,"($1").replace(/^\((\?[:=!])?\)/,""):!1}).filter(e=>typeof e=="string"),qP={ipsRoot:[...Vm],ipsPlugin:[[/(})/,{token:"delimiter",next:"@pop"}],[/(")/,{token:"attribute.value",next:"@ipsPlugin_nestedPHP_dq",nextEmbedded:"phpSimplified"}],[/(')/,{token:"attribute.value",next:"@ipsPlugin_nestedPHP_sq",nextEmbedded:"phpSimplified"}],[/([a-zA-Z0-9-_]+)(=)/,["attribute.name","delimiter"]],[/\s/],[/./,{token:"@rematch",next:"@pop"}]],ipsPlugin_nestedPHP_dq:[[/(})/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/(")/,{token:"attribute.value",next:"@pop",nextEmbedded:"@pop"}],{include:"@ipsTemplateKeywords"},[/[^}"]+/]],ipsPlugin_nestedPHP_sq:[[/(})/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/(')/,{token:"attribute.value",next:"@pop",nextEmbedded:"@pop"}],{include:"@ipsTemplateKeywords"},[/[^}']+/]],ipsTemplateTag:[[/(if|else|elseif|endif|foreach|endforeach)/,{token:"keyword",next:"@ipsTemplateTag_inner",nextEmbedded:"phpSimplified"}],[/(}})/,[{token:"delimiter",next:"@pop"}]],[/(.)/,{token:"",goBack:1,next:"@ipsTemplateTag_inner",nextEmbedded:"phpSimplified"}]],ipsTemplateTag_inner:[[/(}})/,{token:"delimiter",next:"@pop",nextEmbedded:"@pop",goBack:2}],{include:"@ipsTemplateKeywords"},[/[^}]*|}(?!})/]],ipsTemplateVar:[[/(})/,{token:"delimiter",next:"@pop"}],[/(\|)([a-zA-Z0-9_-]+)([^|}a-zA-Z0-9_-])/,["delimiter","keyword",{token:"",goBack:1,next:"@pop"}]],[/(\|)([a-zA-Z0-9_-]+)/,[{token:"delimiter"},{token:"keyword"}]],[/(\|)/,"delimiter"],[/(\{\$)/,{token:"",goBack:1,next:"@ipsTemplateVar_inner",nextEmbedded:"phpSimplified"}],[/(.)/,{token:"@rematch",next:"@pop",goBack:1}]],ipsTemplateVar_inner:[[/([|}])/,{token:"",next:"@pop",nextEmbedded:"@pop",goBack:1}],[/[^|}]+/]],ipsTemplateKeywords:[[/(member|request|setting|cookie)(\.)(?=[a-zA-Z_])*/,["constant.php","delimiter.php"]]]};function tr(e){if(["string","number","boolean","symbol"].includes(typeof e)||[null,void 0,Number.NaN].includes(e))return e;if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(t=>tr(t));if(typeof e=="object"){const t={};for(const n in e)t[n]=tr(e[n]);return t}return e}function Ste(e){e=tr(e);const t=e.loader;let n,r=!1,i=new Set;return e.loader=async()=>{if(n)return n;if(r)return await new Promise(s=>i.add(s));r=!0;let o=await(t==null?void 0:t())||{conf:{},language:{tokenizer:{}}};o=tr(o),o.language.languageId=e.id;for(const s of["tokenizer"]){if(!o.language[s])continue;const a={};for(const l in o.language[s]){const u=[];o.language[s][l].forEach(d=>{if(Array.isArray(d)&&d.length>=1&&d[0]instanceof RegExp){const f=d[0].toString().replace(/^\//,"").replace(/\/[a-z]*$/,""),_=/(^|[^\\])(\[\^)([^{]*?[^\\{])(])(\+\??|\*)?/g,m=f.replaceAll(_,(...h)=>{var T;let E=h[2]+h[3]+h[4]+h[5];return(T=h[3])!=null&&T.includes("{")||(E="(?:\\{[^"+h[3]+"{]*|[^"+h[3]+"{]"+h[5]+")"),h[1]+E});if(m!==f){const h=QP(d);h&&(u.push(h.newRule),Object.assign(a,h.scopes)),u.push([new RegExp(`${m}`,d[0].flags),...tr(d.slice(1))]);return}}u.push(d)}),o.language[s][l]=u,o.language[s][l].splice(0,0,...tr(Vm))}Object.assign(o.language[s],a),Object.assign(o.language[s],qP),o.language.tokenPostfix=".phtml"}return delete o.language.stateNames,o.conf.brackets=o.conf.brackets||o.language.brackets||[],o.conf.brackets.some(s=>Array.isArray(s)&&s[0]==="{"&&s[1]==="}"||!Array.isArray(s)&&s.open==="{"&&s.close==="}")||o.conf.brackets.push(["{","}"]),o.conf.brackets.some(s=>Array.isArray(s)&&s[0]==="{{"&&s[1]==="}}"||!Array.isArray(s)&&s.open==="{{"&&s.close==="}}")||o.conf.brackets.push(["{{","}}"]),n=o,r=!1,setTimeout(()=>{i.forEach(s=>s(n)),i.clear()}),n},e}const KP={"(":")","(?:":")","[":"]","{":"}"};function VI(e=""){var u;let t,n=[],r=0,i=0,o=0,s=!0,a=[],l=!1;for(;(t=e.slice(r).match(/[\[\]{})]|\((?:\?[!=:])?/))&&t;){let d=e.slice(r,r+t.index);if(r+=t.index+t.length,(((u=d.match(/\\+$/))==null?void 0:u[0].length)||0)%2){(!n.length||n[n.length-1].bracket!=="{")&&(s=!1);continue}if(!l&&!n.some(({bracket:f})=>f==="(")&&(l=!0),n.length&&n[n.length-1].bracket==="["&&t[0]!=="]"){s=!1;continue}if(!(n.leng
Line truncated
`}}),...(_=e.restrictions)!=null&&_.has("tables")?[!1]:[RP.configure({resizable:!0,cellMinWidth:((m=e.table)==null?void 0:m.cellMinWidth)||20}),yP,bP,TP],OP,mte,$ee.configure({class:"ipsEditor__drop-cursor",width:3})].filter(C=>!!C);return window.navigator.platform==="MacIntel"&&t.push(YE),e.autoSaveKey&&t.push(IP),e.postkey&&(t.push(lte),t.push(ot.configure({externalImages:!((h=e.restrictions)!=null&&h.has("external_image")),externalVideos:!((E=e.restrictions)!=null&&E.has("external_video")),float:!((T=e.restrictions)!=null&&T.has("float"))}))),(S=e.restrictions)!=null&&S.has("heading")||t.push(Yr.configure({levels:(y=e.restrictions)!=null&&y.has("heading_1")?[2,3,4,5,6]:[1,2,3,4,5,6]})),t.push(hte),t}async function WI(e,t){var n,r,i,o,s;if(await Qk(),e.pluginButtonKeys=new Set,e.simpleRichText?(delete e.codeMode,e.tools={toolbar:[...cP]},e.react&&XK(e.react)):await MA(),e.restrictions&&Symbol.iterator in e.restrictions?e.restrictions=new Set(e.restrictions):(delete e.restrictions,e.restrictions=new Set),e.jQuery=e.jQuery||window.jQuery,e.editorProps={attributes:{class:e.codeMode?"":"ipsRichText"}},e.itemStates={},e.restrictions.has("native_emoji")&&!e.restrictions.has("custom_emoji")&&!await window.ips.utils.iconpicker.hasCustomEmoji()&&e.restrictions.add("custom_emoji"),e.supportedTextColors&&Object.getPrototypeOf(e.supportedTextColors)===Object.prototype)for(const a in e.supportedTextColors)e.supportedBoxColors=e.supportedBoxColors&&Object.getPrototypeOf(e.supportedBoxColors)===Object.prototype?e.supportedBoxColors:{},!(a in e.supportedBoxColors)&&(e.supportedBoxColors[a]=e.supportedTextColors[a]);if(e.extensions=await Tte(e),!(e.messagesContainer instanceof Element)&&((n=t==null?void 0:t.closest(".ipsEditor"))!=null&&n.querySelector('[data-role="editor-messages-container"]'))&&(e.messagesContainer=(r=t==null?void 0:t.closest(".ipsEditor"))==null?void 0:r.querySelector('[data-role="editor-messages-container"]')),e.codeMode){for(e.tools={toolbar:["codelanguage"]},await MA(),((i=window.ips)==null?void 0:i.getSetting)instanceof Function&&om.config({paths:{vs:window.ips.getSetting("monaco-vs-root")||new URL(window.ips.getSetting("baseURL"),window.location.href).toString().replace(/\/+$/,"")+"/applications/core/interface/static/tiptap/monaco/vs"}});(o=e.allowedLanguages)!=null&&o.includes("txt");)e.allowedLanguages.splice(e.allowedLanguages.indexOf("txt"),1,"plaintext");const a=[],l=await om.init();if((!!e.hasTags||["ipsphtml","ipscss","ipsplaintext"].some(d=>{var f;return(f=e.allowedLanguages)==null?void 0:f.includes(d)}))&&((s=e.allowedLanguages)!=null&&s.length||(e.allowedLanguages=["plaintext"]),[["html","ipsphtml"],["css","ipscss"],["plaintext","ipsplaintext"]].forEach(([d,f])=>{var _;for(;(_=e.allowedLanguages)!=null&&_.includes(d);)e.allowedLanguages.splice(e.allowedLanguages.indexOf(d),1,...e.allowedLanguages.includes(f)?[]:[f])})),[["html","ipsphtml"],["css","ipscss"],["plaintext","ipsplaintext"]].forEach(([d,f])=>{var _;if((_=e.allowedLanguages)!=null&&_.includes(f)){const m=l.languages.getLanguages().find(E=>E.id===d),h=Ste({...m,id:f,aliases:void 0,mimetypes:[],extensions:[]});for(a.push(h);e.allowedLanguages.includes(d);)e.allowedLanguages.splice(e.allowedLanguages.indexOf(d),1)}}),a.length){const d=l.languages.getLanguages().find(E=>E.id==="php");let f,_,m=new Set;const h={...d,id:"phpSimplified",aliases:void 0,mimetypes:[],extensions:[],loader:async()=>{if(f)return f;if(_)return new Promise(T=>m.add(T));_=!0;const E=tr(await d.loader());return E.language.languageId="phpSimplified",E.language.tokenizer={phpRoot:E.language.tokenizer.phpRoot,...E.language.tokenizer},E.language.tokenizer.phpRoot.splice(0,0,...tr(qP.ipsTemplateKeywords)),E.language.tokenizer.root.splice(0,0,{include:"phpRoot"}),f=E,setTimeout(()=>{m.forEach(T=>{try{T(f)}catch(S){console.error(S)}}),m.clear()}),f}};a.splice(0,0,h),a.forEach(E=>{l.languages.register(E),l.languages.registerTokensProviderFactory(E.id,{create:async()=>(await E.loader()).language}),l.languages.onLanguageEncountered(E.id,async()=>{l.languages.setLanguageConfiguration(E.id,(await E.loader()).conf)})})}return e}if(e.simpleRichText||dte(e,e.extensions),e.stockrepliesenabled&&((await tm.getStore()).length?window.Debug.log("Loaded stock replies"):(e.stockrepliesenabled=!1,window.Debug.log("No stock replies, disabling the button"))),!e.codeMode){for(const a in e.tools)e.tools[a]=e.tools[a].filter(l=>l==="giphy"&&!e.giphyenabled||l==="stockreply"&&!e.stockrepliesenabled?!1:!(e.hidebuttons instanceof Array&&e.hidebuttons.includes(l)));e.parseOptions=e.parseOptions||{},e.parseOptions.preserveWhitespace=!1}return e.tools.toolbar&&e.tools.toolbar[0]!=="block"&&(e.tools.toolbar=["block",...e.tools.toolbar.filter(a=>a!=="block")]),e}let qI=!1;function bte(){if(!qI){for(const e of["click","focus","keydown","keyup"])document.addEventListener(e,t=>{var n,r,i;(r=(n=t.target)==null?void 0:n.closest)!=null&&r.call(n,".ipsEditor__toolbar-item--unavailable")&&(t.preventDefau
Line truncated
Db::i()->select('*','core_login_links',['token_login_method=? AND token_identifier=?',(int)\IPS\Request::i()->add_login_link_handler,$value])->first();
Db::i()->select('*','core_login_links',['token_login_method=? AND token_identifier=?',(int)Request::i()->add_login_link_handler,$value])->first();
/* Javascript takes a date and turns it into a timestamp but does not apply any timezone offsetting, so we don't want to do so here or else the date we create may not be the same one the user chose. */
@@ -136,6 +136,7 @@ class editor extends Controller
$externalEmbedAllowed,
$externalImageAllowed,
$internalEmbedAllowed,
Settings::i()->iframely_enabled?Settings::i()->iframely_api_key:false,// we need to consider this when creating the cache key because it can change the results
* Classic: If using our global key, move the key to 'custom' setting, so it's retained after we wipe the default.
*
* @return bool|array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.