HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/P020-FEbPziol.js
import{E as x,bE as y,h as f,ai as w,l as T}from"./index-ajJ0B2-K.js";import{t as k}from"./tableau-klWf8qqZ.js";const v="Text encoder",P="P020",D="de353";function E(g="générateur"){x.call(this),this.introduction="Generator inspired by the DefiTableTexte command from Christophe Poulain's ProfCollege package.",this.consigne="Choose a text to encode in the form as a parameter.",this.besoinFormulaireTexte=["Text to encode (list of words or sentences separated by /"],this.besoinFormulaire2CaseACocher=["Different grid for each piece",!1],this.sup="mathematics",this.sup2=!1,this.nbQuestions=1,this.besoinCorrection=!1;const d=Array.from("-xçwjè,k~:aq«rlgdmftbéocsà.êeipzhu'ynvî»â!");d[2]="ç";const n=["×","1","2","3","4","5","6","7","8","9","10"];for(let t=0;t<n.length;t++)n[t]=`\\colorbox{lightgrey}{${n[t]}}`;const l=["1","2","3","4","5","6","7","8","9","10"];for(let t=0;t<l.length;t++)l[t]=`\\colorbox{lightgrey}{${l[t]}}`;function C(t,c){const s=c.entries();for(const e of s)if(e[1]===t)return e[0];return NaN}this.nouvelleVersion=function(){const t=["mathematics","divider","multiple","mediator","medium","parallel","perpendicular","multiplication","addition","substraction","division","addition","circle","histogram","diagram","numeration","fraction","equality","property","counter-example"],c=["Mathematics's fantastic","multiply and divide/is done before/add or subtract","to be greater/than a number means/to be greater than this number","It is always necessary to/check the consistency/of its results","To draw / lines or segments / we use a ruler","To draw perpendicular lines/use your square"];if(this.sup3=y(1,3,this.sup3,1),this.listeQuestions=[],this.listeCorrections=[],g==="exo")switch(this.sup3){case 1:this.sup=f(t);break;case 2:this.sup=f(c).replaceAll("/"," "),this.sup2=!1;break;case 3:this.sup=f(c),this.sup2=!0;break}const s=this.sup.replaceAll(" ","~").split("/");this.nbQuestions=s.length;for(let e=0;e<this.nbQuestions;e++)s[e]=s[e].toLowerCase();for(let e=0,o,r,a,p,b,m=0;e<this.nbQuestions&&m<50;){if(e===0||this.sup2){r=new Map,a=[],p=0,b=w(d);for(let i=0;i<10;i++){a[i]=[];for(let u=0,h;u<10;u++)h=(i+1)*(u+1),r.has(h)||(r.set(h,b[p]),p++),a[i][u]=r.get(h)}o=`${k(n,l,a.flat(),1.3,!1)}`}else o="";o+="<br><br>Using the table above, decode the following message :<br>";for(let i=0;i<s[e].length;i++)o+=`${C(s[e][i],r)} `;o+="<br><br>",this.questionJamaisPosee(e,s[e],a)&&(this.listeQuestions.push(o),this.listeCorrections.push(s[e].replaceAll("~"," ").replaceAll("/"," ")),e++),m++}T(this)}}export{E as default,P as ref,v as titre,D as uuid};
//# sourceMappingURL=P020-FEbPziol.js.map