diff --git a/Frontend Angular 4/package.json b/Frontend Angular 4/package.json index 04b0d92a6f71c5468795731f812a639c413b34d6..6e4eb1048cde875ebd679310a1c430b377a1b381 100644 --- a/Frontend Angular 4/package.json +++ b/Frontend Angular 4/package.json @@ -28,6 +28,7 @@ "jquery": "^3.2.1", "ng2-bootstrap-modal": "^1.0.1", "ng2-codemirror": "^1.1.1", + "ng2-slider-component": "^1.0.9", "rxjs": "^5.1.0", "tippy.js": "^1.2.0", "zone.js": "^0.8.4" diff --git a/Frontend Angular 4/src/app/layout/canvas/canvas.component.html b/Frontend Angular 4/src/app/layout/canvas/canvas.component.html index 7495fcb82f1093ee84279f510a36f9fb776b4ec6..3dd9554db347a23a9fada4516d2da31fb29f66b1 100644 --- a/Frontend Angular 4/src/app/layout/canvas/canvas.component.html +++ b/Frontend Angular 4/src/app/layout/canvas/canvas.component.html @@ -41,7 +41,11 @@ <button class="btn btn-sm btn-secondary" data-placement="bottom" *ngIf="!animando && elementosAnimacion.length>0" style=" float:left; margin-top: -5px; margin-right: 5px" (click)="play()" ><i class="fa fa-play"></i></button> <button class="btn btn-sm btn-secondary" data-placement="bottom" *ngIf="animando && elementosAnimacion.length>0" style=" float:left; margin-top: -5px; margin-right: 5px" (click)="pause()" ><i class="fa fa-pause"></i></button> - <ngb-progressbar style="float: none" *ngIf="elementosAnimacion.length>0" type="info" [value]="((frameAnimacion+1)/elementosAnimacion.length)*100"></ngb-progressbar> + + <ngb-progressbar style="float: left; width: 45%" *ngIf="elementosAnimacion.length>0" type="info" [value]="((frameAnimacion+1)/elementosAnimacion.length)*100"></ngb-progressbar> + <span style="float: right; margin-left: 10px" *ngIf="elementosAnimacion.length>0"> {{timer}}ms</span> + <input style="float: right; width: 20%" *ngIf="elementosAnimacion.length>0" type="range" min="40" max="1500" [value]="timer" (input)="timer = $event.target.value" /> + <canvas #canvasElement width="2000" height="2000" style="max-width: 100%;" (mousemove)="moveGraph($event)" (touchmove)="moveGraph($event)" (touchstart)="moveGraph($event)" (touchend)="moveGraph($event)" (mouseleave)="leaveCanvas($event)" (mousewheel)="zoomGraph($event)" (DOMMouseScroll)="zoomGraph($event)" id="myCanvas"> </canvas> diff --git a/Frontend Angular 4/src/app/layout/canvas/canvas.component.ts b/Frontend Angular 4/src/app/layout/canvas/canvas.component.ts index 89cc7ff199bfb20d5071ea4ba59a61cf3817ec00..fa3d9b23c7d7f537b23d020f53de761937d72b82 100644 --- a/Frontend Angular 4/src/app/layout/canvas/canvas.component.ts +++ b/Frontend Angular 4/src/app/layout/canvas/canvas.component.ts @@ -52,7 +52,12 @@ export class CanvasComponent { tipoZoom = "Todo"; tipoZoomDesc = "Zoom en ambos ejes"; timeOutRef:number; - + timer: number = 1000; + public setTimer(t){ + if(t>40 && t < 1500){ + this.timer = t; + } + } @ViewChild('canvasElement') canvasRef: ElementRef; @@ -279,7 +284,7 @@ export class CanvasComponent { this.animar(); } } - }.bind(this),1000); + }.bind(this),this.timer); } } diff --git a/Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js b/Servidor JEE/WebContent/1.9e713c866ac2d85446ee.chunk.js similarity index 54% rename from Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js rename to Servidor JEE/WebContent/1.9e713c866ac2d85446ee.chunk.js index 91083da18dff7281c77262fa378b5b3f7b76c2c5..9e55706affc5d0b0000fb17f7929d68733301f92 100644 --- a/Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js +++ b/Servidor JEE/WebContent/1.9e713c866ac2d85446ee.chunk.js @@ -1 +1 @@ -webpackJsonp([1],{"1F35":function(n,t,e){"use strict";var l=e("sRze");e.d(t,"a",function(){return i});var i=(l.a,function(){function n(){}return n}())},"26LX":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=["#svgHaskell[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%!important;height:100%!important}"]},DVtk:function(n,t,e){"use strict";function l(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,26,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](2,0,null,null,23,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](4,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](6,0,null,null,1,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["×"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](11,0,null,null,4,"div",[["class","modal-body"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](13,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),o["ɵted"](14,null,["",""])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](17,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](19,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Editar"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Cancelar"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "]))],null,function(n,t){n(t,14,0,t.component.message||"")})}function i(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,l,u)),o["ɵdid"](1,180224,null,0,r.a,[a.DialogService],null,null)],null,null)}var o=e("/oeL"),r=e("UfLB"),a=e("V672");e.n(a);e.d(t,"a",function(){return c});var s=[],u=o["ɵcrt"]({encapsulation:2,styles:s,data:{}}),c=o["ɵccf"]("confirm",r.a,i,{},{},[])},EZ6d:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";n.defineMode("matefun",function(n,t){function e(n,t,e){return t(e),e(n,t)}function l(n,t){if(n.eatWhile(p))return null;var l=n.next();if(m.test(l)){if("{"==l&&n.eat("-")){var r="comment";return n.eat("#")&&(r="meta"),e(n,t,i(r,1))}return null}if("'"==l)return n.eat("\\"),n.next(),n.eat("'")?"string":"string error";if('"'==l)return e(n,t,o);if(s.test(l))return n.eatWhile(d),n.eat(".")?"qualifier":"variable-2";if(a.test(l))return n.eatWhile(d),"variable";if(u.test(l)){if("0"==l){if(n.eat(/[xX]/))return n.eatWhile(c),"integer";if(n.eat(/[oO]/))return n.eatWhile(h),"number"}n.eatWhile(u);var r="number";return n.match(/^\.\d+/)&&(r="number"),n.eat(/[eE]/)&&(r="number",n.eat(/[-+]/),n.eatWhile(u)),r}if("."==l&&n.eat("."))return"keyword";if(f.test(l)){if("-"==l&&n.eat(/-/)&&(n.eatWhile(/-/),!n.eat(f)))return n.skipToEnd(),"comment";var r="variable";return":"==l&&(r="variable-2"),n.eatWhile(f),r}return"error"}function i(n,t){return 0==t?l:function(e,o){for(var r=t;!e.eol();){var a=e.next();if("{"==a&&e.eat("-"))++r;else if("-"==a&&e.eat("}")&&0==--r)return o(l),n}return o(i(n,r)),n}}function o(n,t){for(;!n.eol();){var e=n.next();if('"'==e)return t(l),"string";if("\\"==e){if(n.eol()||n.eat(p))return t(r),"string";n.eat("&")||n.next()}}return t(l),"string error"}function r(n,t){return n.eat("\\")?e(n,t,o):(n.next(),t(l),"error")}var a=/[a-z_]/,s=/[A-Z]/,u=/\d/,c=/[0-9A-Fa-f]/,h=/[0-7]/,d=/[a-z_A-Z0-9'\xa1-\uffff]/,f=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,p=/[ \t\v\f]/,v=function(){function n(n){return function(){for(var t=0;t<arguments.length;t++)e[arguments[t]]=n}}var e={};n("keyword")("incluir","conj","en","si","o","esVacia"),n("keyword")("<-","->"),n("builtin")("-","+","*","/","^","!",":","==","/=","<",">","<=",">=","::","->","X","|"),n("builtin")("Rojo","Verde","Azul","Negro","Blanco","Gris","Amarillo","FigVacia","[]","R","Fig","Color"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var l=t.overrideKeywords;if(l)for(var i in l)l.hasOwnProperty(i)&&(e[i]=l[i]);return e}();return{startState:function(){return{f:l}},copyState:function(n){return{f:n.f}},token:function(n,t){var e=t.f(n,function(n){t.f=n}),l=n.current();return v.hasOwnProperty(l)?v[l]:e},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),n.defineMIME("text/x-matefun","matefun")})},EfLl:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},HXxp:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}();!function(){function n(){}}()},L8b4:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("ppY8"))}(function(n){"use strict";function t(n,t){return"string"==typeof n?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function l(n){return n.state.search||(n.state.search=new e)}function i(n){return"string"==typeof n&&n==n.toLowerCase()}function o(n,t,e){return n.getSearchCursor(t,e,{caseFold:i(t),multiline:!0})}function r(n,t,e,l,i){n.openDialog(t,l,{value:e,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(n)},onKeyDown:i})}function a(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function s(n,t,e,l){n.openConfirm?n.openConfirm(t,l):confirm(e)&&l[0]()}function u(n){return n.replace(/\\(.)/g,function(n,t){return"n"==t?"\n":"r"==t?"\r":t})}function c(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else n=u(n);return("string"==typeof n?""==n:n.test(""))&&(n=/x^/),n}function h(n,e,l){e.queryText=l,e.query=c(l),n.removeOverlay(e.overlay,i(e.query)),e.overlay=t(e.query,i(e.query)),n.addOverlay(e.overlay),n.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=n.showMatchesOnScrollbar(e.query,i(e.query)))}function d(t,e,i,o){var s=l(t);if(s.query)return f(t,e);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=function(e,l){n.e_stop(l),e&&(e!=s.queryText&&(h(t,s,e),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,l.shiftKey,function(n,e){var l;e.line<3&&document.querySelector&&(l=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&l.getBoundingClientRect().bottom-4>t.cursorCoords(e,"window").top&&((c=l).style.opacity=.4)}))};r(t,g,u,d,function(e,i){var o=n.keyName(e),r=t.getOption("extraKeys"),a=r&&r[o]||n.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(n.e_stop(e),h(t,l(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(n.e_stop(e),d(i,e))}),o&&u&&(h(t,s,u),f(t,e))}else a(t,g,"Search for:",u,function(n){n&&!s.query&&t.operation(function(){h(t,s,n),s.posFrom=s.posTo=t.getCursor(),f(t,e)})})}function f(t,e,i){t.operation(function(){var r=l(t),a=o(t,r.query,e?r.posFrom:r.posTo);(a.find(e)||(a=o(t,r.query,e?n.Pos(t.lastLine()):n.Pos(t.firstLine(),0)),a.find(e)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),r.posFrom=a.from(),r.posTo=a.to(),i&&i(a.from(),a.to()))})}function m(n){n.operation(function(){var t=l(n);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function p(n,t,e){n.operation(function(){for(var l=o(n,t);l.findNext();)if("string"!=typeof t){var i=n.getRange(l.from(),l.to()).match(t);l.replace(e.replace(/\$(\d)/g,function(n,t){return i[t]}))}else l.replace(e)})}function v(n,t){if(!n.getOption("readOnly")){var e=n.getSelection()||l(n).lastQuery,i='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";a(n,i+b,i,e,function(e){e&&(e=c(e),a(n,y,"Replace with:","",function(l){if(l=u(l),t)p(n,e,l);else{m(n);var i=o(n,e,n.getCursor("from")),r=function(){var t,u=i.from();!(t=i.findNext())&&(i=o(n,e),!(t=i.findNext())||u&&i.from().line==u.line&&i.from().ch==u.ch)||(n.setSelection(i.from(),i.to()),n.scrollIntoView({from:i.from(),to:i.to()}),s(n,C,"Replace?",[function(){a(t)},r,function(){p(n,e,l)}]))},a=function(n){i.replace("string"==typeof e?l:l.replace(/\$(\d)/g,function(t,e){return n[e]})),r()};r()}}))})}}var g='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',b=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',C='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';n.commands.find=function(n){m(n),d(n)},n.commands.findPersistent=function(n){m(n),d(n,!1,!0)},n.commands.findPersistentNext=function(n){d(n,!1,!0,!0)},n.commands.findPersistentPrev=function(n){d(n,!0,!0,!0)},n.commands.findNext=d,n.commands.findPrev=function(n){d(n,!0)},n.commands.clearSearch=m,n.commands.replace=v,n.commands.replaceAll=function(n){v(n,!0)}})},La8y:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n,t){function e(n){clearTimeout(l.doRedraw),l.doRedraw=setTimeout(function(){l.redraw()},n)}this.cm=n,this.options=t,this.buttonHeight=t.scrollButtonHeight||n.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=n.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var l=this;n.on("refresh",this.resizeHandler=function(){clearTimeout(l.doUpdate),l.doUpdate=setTimeout(function(){l.computeScale()&&e(20)},100)}),n.on("markerAdded",this.resizeHandler),n.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&n.on("change",this.changeHandler=function(){e(250)})}n.defineExtension("annotateScrollbar",function(n){return"string"==typeof n&&(n={className:n}),new t(this,n)}),n.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var n=this.cm,t=(n.getWrapperElement().clientHeight-n.display.barHeight-2*this.buttonHeight)/n.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(n){this.annotations=n,this.redraw()},t.prototype.redraw=function(n){function t(n,t){return s!=n.line&&(s=n.line,u=e.getLineHandle(s)),u.widgets&&u.widgets.length||r&&u.height>a?e.charCoords(n,"local")[t?"top":"bottom"]:e.heightAtLine(u,"local")+(t?0:u.height)}!1!==n&&this.computeScale();var e=this.cm,l=this.hScale,i=document.createDocumentFragment(),o=this.annotations,r=e.getOption("lineWrapping"),a=r&&1.5*e.defaultTextHeight(),s=null,u=null,c=e.lastLine();if(e.display.barWidth)for(var h,d=0;d<o.length;d++){var f=o[d];if(!(f.to.line>c)){for(var m=h||t(f.from,!0)*l,p=t(f.to,!1)*l;d<o.length-1&&!(o[d+1].to.line>c)&&!((h=t(o[d+1].from,!0)*l)>p+.9);)f=o[++d],p=t(f.to,!1)*l;if(p!=m){var v=Math.max(p-m,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+v+"px",g.className=this.options.className,f.id&&g.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}})},OR9o:function(n,t,e){"use strict";function l(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-folder"],["style","margin-right:10px; font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function i(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-file-text"],["style","margin-right:10px;font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function o(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,7,"button",[["class","list-group-item list-group-item-action"],["style","cursor:pointer"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navToDir(n.context.$implicit)&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,l)),s["ɵdid"](3,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](6,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](7,null,["\n ","\n "]))],function(n,t){n(t,3,0,t.context.$implicit.directorio),n(t,6,0,!t.context.$implicit.directorio)},function(n,t){n(t,7,0,t.context.$implicit.nombre)})}function r(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,47,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](2,0,null,null,44,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](4,0,null,null,7,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](6,0,null,null,1,"h6",[["class","modal-title pull-lefth"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["¿Dónde quieres crear el archivo?"])),(n()(),s["ɵted"](-1,null,[" \n "])),(n()(),s["ɵeld"](9,0,null,null,1,"button",[["class","close"],["style","margin-rigth:8px;"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["×"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](13,0,null,null,23,"div",[["class","modal-body"],["style","height:350px;overflow-y: scroll;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](15,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](17,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](19,0,null,null,1,"label",[["class","form-control-label"],["for","file-name"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["Nombre:"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](22,0,null,null,5,"input",[["class","form-control"],["id","file-name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==s["ɵnov"](n,23)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==s["ɵnov"](n,23).onTouched()&&l}if("compositionstart"===t){l=!1!==s["ɵnov"](n,23)._compositionStart()&&l}if("compositionend"===t){l=!1!==s["ɵnov"](n,23)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.nombre=e)&&l}return l},null,null)),s["ɵdid"](23,16384,null,0,h.DefaultValueAccessor,[s.Renderer2,s.ElementRef,[2,h.COMPOSITION_BUFFER_MODE]],null,null),s["ɵprd"](1024,null,h.NG_VALUE_ACCESSOR,function(n){return[n]},[h.DefaultValueAccessor]),s["ɵdid"](25,671744,null,0,h.NgModel,[[8,null],[8,null],[8,null],[2,h.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),s["ɵprd"](2048,null,h.NgControl,null,[h.NgModel]),s["ɵdid"](27,16384,null,0,h.NgControlStatus,[h.NgControl],null,null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](30,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,o)),s["ɵdid"](33,802816,null,0,u.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](38,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](40,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navBack()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Atras"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](43,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Crear"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "]))],function(n,t){var e=t.component;n(t,25,0,e.nombre),n(t,33,0,e.directorioActual.archivos)},function(n,t){n(t,22,0,s["ɵnov"](t,27).ngClassUntouched,s["ɵnov"](t,27).ngClassTouched,s["ɵnov"](t,27).ngClassPristine,s["ɵnov"](t,27).ngClassDirty,s["ɵnov"](t,27).ngClassValid,s["ɵnov"](t,27).ngClassInvalid,s["ɵnov"](t,27).ngClassPending)})}function a(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,r,m)),s["ɵdid"](1,180224,null,0,c.a,[d.DialogService],null,null)],null,null)}var s=e("/oeL"),u=e("qbdv"),c=e("ij+S"),h=e("bm2B"),d=e("V672");e.n(d);e.d(t,"a",function(){return p});var f=[],m=s["ɵcrt"]({encapsulation:2,styles:f,data:{}}),p=s["ɵccf"]("confirm",c.a,a,{},{},[])},OZVu:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n){var t=n.flags;return null!=t?t:(n.ignoreCase?"i":"")+(n.global?"g":"")+(n.multiline?"m":"")}function e(n){return n.global?n:new RegExp(n.source,t(n)+"g")}function l(n){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(n.source)}function i(n,t,l){t=e(t);for(var i=l.line,o=l.ch,r=n.lastLine();i<=r;i++,o=0){t.lastIndex=o;var a=n.getLine(i),s=t.exec(a);if(s)return{from:p(i,s.index),to:p(i,s.index+s[0].length),match:s}}}function o(n,t,o){if(!l(t))return i(n,t,o);t=e(t);for(var r,a=1,s=o.line,u=n.lastLine();s<=u;){for(var c=0;c<a;c++){var h=n.getLine(s++);r=null==r?h:r+"\n"+h}a*=2,t.lastIndex=o.ch;var d=t.exec(r);if(d){var f=r.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=o.line+f.length-1,g=f[f.length-1].length;return{from:p(v,g),to:p(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function r(n,t){for(var e,l=0;;){t.lastIndex=l;var i=t.exec(n);if(!i)return e;if(e=i,(l=e.index+(e[0].length||1))==n.length)return e}}function a(n,t,l){t=e(t);for(var i=l.line,o=l.ch,a=n.firstLine();i>=a;i--,o=-1){var s=n.getLine(i);o>-1&&(s=s.slice(0,o));var u=r(s,t);if(u)return{from:p(i,u.index),to:p(i,u.index+u[0].length),match:u}}}function s(n,t,l){t=e(t);for(var i,o=1,a=l.line,s=n.firstLine();a>=s;){for(var u=0;u<o;u++){var c=n.getLine(a--);i=null==i?c.slice(0,l.ch):c+"\n"+i}o*=2;var h=r(i,t);if(h){var d=i.slice(0,h.index).split("\n"),f=h[0].split("\n"),m=a+d.length,v=d[d.length-1].length;return{from:p(m,v),to:p(m+f.length-1,1==f.length?v+f[0].length:f[f.length-1].length),match:h}}}}function u(n,t,e,l){if(n.length==t.length)return e;for(var i=0,o=e+Math.max(0,n.length-t.length);;){if(i==o)return i;var r=i+o>>1,a=l(n.slice(0,r)).length;if(a==e)return r;a>e?o=r:i=r+1}}function c(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.lastLine()+1-o.length;r<=s;r++,a=0){var c=n.getLine(r).slice(a),h=i(c);if(1==o.length){var d=h.indexOf(o[0]);if(-1==d)continue n;var e=u(c,h,d,i)+a;return{from:p(r,u(c,h,d,i)+a),to:p(r,u(c,h,d+o[0].length,i)+a)}}var v=h.length-o[0].length;if(h.slice(v)==o[0]){for(var g=1;g<o.length-1;g++)if(i(n.getLine(r+g))!=o[g])continue n;var b=n.getLine(r+o.length-1),y=i(b),C=o[o.length-1];if(b.slice(0,C.length)==C)return{from:p(r,u(c,h,v,i)+a),to:p(r+o.length-1,u(b,y,C.length,i))}}}}function h(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.firstLine()-1+o.length;r>=s;r--,a=-1){var c=n.getLine(r);a>-1&&(c=c.slice(0,a));var h=i(c);if(1==o.length){var d=h.lastIndexOf(o[0]);if(-1==d)continue n;return{from:p(r,u(c,h,d,i)),to:p(r,u(c,h,d+o[0].length,i))}}var v=o[o.length-1];if(h.slice(0,v.length)==v){for(var g=1,e=r-o.length+1;g<o.length-1;g++)if(i(n.getLine(e+g))!=o[g])continue n;var b=n.getLine(r+1-o.length),y=i(b);if(y.slice(y.length-o[0].length)==o[0])return{from:p(r+1-o.length,u(b,y,b.length-o[0].length,i)),to:p(r,u(c,h,v.length,i))}}}}function d(n,t,l,r){this.atOccurrence=!1,this.doc=n,l=l?n.clipPos(l):p(0,0),this.pos={from:l,to:l};var u;"object"==typeof r?u=r.caseFold:(u=r,r=null),"string"==typeof t?(null==u&&(u=!1),this.matches=function(e,l){return(e?h:c)(n,t,l,u)}):(t=e(t),r&&!1===r.multiline?this.matches=function(e,l){return(e?a:i)(n,t,l)}:this.matches=function(e,l){return(e?s:o)(n,t,l)})}var f,m,p=n.Pos;String.prototype.normalize?(f=function(n){return n.normalize("NFD").toLowerCase()},m=function(n){return n.normalize("NFD")}):(f=function(n){return n.toLowerCase()},m=function(n){return n}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=p(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(p(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=p(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,p(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var l=p(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:l,to:l},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,e){if(this.atOccurrence){var l=n.splitLines(t);this.doc.replaceRange(l,this.pos.from,this.pos.to,e),this.pos.to=p(this.pos.from.line+l.length-1,l[l.length-1].length+(1==l.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(n,t,e){return new d(this.doc,n,t,e)}),n.defineDocExtension("getSearchCursor",function(n,t,e){return new d(this,n,t,e)}),n.defineExtension("selectMatches",function(t,e){for(var l=[],i=this.getSearchCursor(t,this.getCursor("from"),e);i.findNext()&&!(n.cmpPos(i.to(),this.getCursor("to"))>0);)l.push({anchor:i.from(),head:i.to()});l.length&&this.setSelections(l,0)})})},Qdk6:function(n,t,e){!function(n){n(e("oiK7"),e("ppY8"))}(function(n){"use strict";function t(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function e(n,t){var e=Number(t);return/^[-+]/.test(t)?n.getCursor().line+e:e-1}n.commands.jumpToLine=function(n){var l=n.getCursor();t(n,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",l.line+1+":"+l.ch,function(t){if(t){var i;if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))n.setCursor(e(n,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(n.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=l.line+o+1),n.setCursor(o-1,l.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&n.setCursor(e(n,i[1]),l.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})},SVb2:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),i=e("EfLl"),o=e("CVNG"),r=e("IkMs"),a=e("DlWC"),s=e("m0eP"),u=e("MsHi"),c=e("ClIn"),h=e("CU81"),d=e("fXzC"),f=e("ufkV"),m=e("xDpJ"),p=e("DVtk"),v=e("OR9o"),g=e("qbdv"),b=e("bm2B"),y=e("dN2u"),C=e("KRwK"),x=e("V672"),E=(e.n(x),e("BkNc")),k=e("Zz+K"),R=e("wnyu"),S=e("EoP3"),w=e("2waW"),P=e("PY9B"),T=e("IBeK"),M=e("g5gQ"),X=e("xBEz"),Y=e("PuIS"),N=e("U0Tu"),_=e("3rU7"),A=e("Cb36"),O=e("5h8W"),I=e("6ade"),F=e("4HaF"),j=e("DaIH"),L=e("0WLp"),D=e("s6Yw"),V=e("DYHI"),z=e("1F35"),q=e("0vel"),B=(e.n(q),e("sdK6")),Z=(e.n(B),e("sRze"));e.d(t,"MateFunModuleNgFactory",function(){return G});var G=l["ɵcmf"](i.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[o.a,r.a,a.a,s.a,u.a,c.a,h.a,d.a,f.a,m.a,p.a,v.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,b["ɵi"],b["ɵi"],[]),l["ɵmpd"](4608,y.a,y.a,[l.ComponentFactoryResolver,l.Injector,C.a]),l["ɵmpd"](4608,x.DialogService,x.DialogService,[l.ComponentFactoryResolver,l.ApplicationRef,l.Injector,[2,x.DialogServiceConfig]]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,b["ɵba"],b["ɵba"],[]),l["ɵmpd"](512,b.FormsModule,b.FormsModule,[]),l["ɵmpd"](512,E.x,E.x,[[2,E.k],[2,E.c]]),l["ɵmpd"](512,k.a,k.a,[]),l["ɵmpd"](512,R.a,R.a,[]),l["ɵmpd"](512,S.a,S.a,[]),l["ɵmpd"](512,w.a,w.a,[]),l["ɵmpd"](512,P.a,P.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,M.a,M.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,N.a,N.a,[]),l["ɵmpd"](512,_.a,_.a,[]),l["ɵmpd"](512,A.a,A.a,[]),l["ɵmpd"](512,O.a,O.a,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,F.a,F.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,L.b,L.b,[]),l["ɵmpd"](512,D.a,D.a,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,z.a,z.a,[]),l["ɵmpd"](512,q.CodemirrorModule,q.CodemirrorModule,[]),l["ɵmpd"](512,B.BootstrapModalModule,B.BootstrapModalModule,[]),l["ɵmpd"](512,i.a,i.a,[]),l["ɵmpd"](1024,E.t,function(){return[[{path:"",component:Z.a}]]},[])])})},UfLB:function(n,t,e){"use strict";var l=e("p2gU");e.n(l);e.d(t,"a",function(){return o});var i=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),o=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.confirm=function(){this.result=!0,this.close()},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},fXzC:function(n,t,e){"use strict";function l(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,5,"input",[["class","nomArchivoInp form-control form-control-sm"],["name","archivo"],["placeholder","nombre del archivo"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==h["ɵnov"](n,1)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,1).onTouched()&&l}if("compositionstart"===t){l=!1!==h["ɵnov"](n,1)._compositionStart()&&l}if("compositionend"===t){l=!1!==h["ɵnov"](n,1)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.archivo.nombre=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},null,null)),h["ɵdid"](1,16384,null,0,d.DefaultValueAccessor,[h.Renderer2,h.ElementRef,[2,d.COMPOSITION_BUFFER_MODE]],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.DefaultValueAccessor]),h["ɵdid"](3,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](5,16384,null,0,d.NgControlStatus,[d.NgControl],null,null)],function(n,t){var e=t.component;n(t,3,0,"archivo",!e.archivo.editable||"Corregido"==e.archivo.estado||"Entregado"==e.archivo.estado,e.archivo.nombre)},function(n,t){n(t,0,0,h["ɵnov"](t,5).ngClassUntouched,h["ɵnov"](t,5).ngClassTouched,h["ɵnov"](t,5).ngClassPristine,h["ɵnov"](t,5).ngClassDirty,h["ɵnov"](t,5).ngClassValid,h["ɵnov"](t,5).ngClassInvalid,h["ɵnov"](t,5).ngClassPending)})}function i(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),h["ɵdid"](1,147456,null,0,d.NgSelectOption,[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),h["ɵdid"](2,147456,null,0,d["ɵq"],[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),h["ɵted"](3,null,["",""]))],function(n,t){n(t,1,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,"")),n(t,2,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,""))},function(n,t){var e=t.component;n(t,0,0,t.context.$implicit==e.configCodeMirror.theme),n(t,3,0,t.context.$implicit)})}function o(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](1,0,null,null,59,"div",[["style","width: 12em"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](3,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](5,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tema:"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](8,0,[["selectTheme",1]],null,4,"select",[["class","form-control form-control-sm"],["name","theme"]],null,[[null,"change"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==i.updateConfig(h["ɵnov"](n,8).value)&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](16777216,null,null,1,null,i)),h["ɵdid"](11,802816,null,0,f.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](15,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](17,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tamaño de fuente:"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](20,0,null,null,7,"div",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.aumentarFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Aâº"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](25,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.disminuirFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Aâ»"])),(n()(),h["ɵted"](27,null,["\n ","px \n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](30,0,null,null,23,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](32,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](34,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoF"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,35).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,35).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoF=e)&&l}return l},null,null)),h["ɵdid"](35,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](37,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](39,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n Mostrar advertencias de uso de funciones\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](42,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](44,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](46,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoI"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,47).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,47).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoI=e)&&l}return l},null,null)),h["ɵdid"](47,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](49,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](51,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n Mostrar advertencias de uso de operadores infijos\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](55,0,null,null,4,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](57,0,null,null,1,"button",[["class","btn btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.saveConfig()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Guardar"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "]))],function(n,t){var e=t.component;n(t,11,0,e.themes);n(t,37,0,"argumentoF",e.argumentoF);n(t,49,0,"argumentoI",e.argumentoI)},function(n,t){n(t,27,0,t.component.configCodeMirror.fontSize),n(t,34,0,h["ɵnov"](t,39).ngClassUntouched,h["ɵnov"](t,39).ngClassTouched,h["ɵnov"](t,39).ngClassPristine,h["ɵnov"](t,39).ngClassDirty,h["ɵnov"](t,39).ngClassValid,h["ɵnov"](t,39).ngClassInvalid,h["ɵnov"](t,39).ngClassPending),n(t,46,0,h["ɵnov"](t,51).ngClassUntouched,h["ɵnov"](t,51).ngClassTouched,h["ɵnov"](t,51).ngClassPristine,h["ɵnov"](t,51).ngClassDirty,h["ɵnov"](t,51).ngClassValid,h["ɵnov"](t,51).ngClassInvalid,h["ɵnov"](t,51).ngClassPending)})}function r(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](1,0,null,null,65,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](3,0,null,null,52,"div",[["class","card-header"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](5,0,null,null,49,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;if("submit"===t){l=!1!==h["ɵnov"](n,7).onSubmit(e)&&l}if("reset"===t){l=!1!==h["ɵnov"](n,7).onReset()&&l}return l},null,null)),h["ɵdid"](6,16384,null,0,d["ɵbf"],[],null,null),h["ɵdid"](7,16384,null,0,d.NgForm,[[8,null],[8,null]],null,null),h["ɵprd"](2048,null,d.ControlContainer,null,[d.NgForm]),h["ɵdid"](9,16384,null,0,d.NgControlStatusGroup,[d.ControlContainer],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](16777216,null,null,1,null,l)),h["ɵdid"](12,16384,null,0,f.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](14,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","downloadFileButton"],["ngbPopover","Exportar (Ctrl+E)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["tiggers","click"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.downloadFile()&&l}return l},null,null)),h["ɵdid"](15,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](17,0,null,null,0,"i",[["class","fa fa-download "]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](20,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","margin-left: 10px; float: right;"],["tiggers","click"]],null,null,null,null,null)),h["ɵdid"](21,212992,[[2,4],["popover",4]],0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](26,16777216,null,null,7,"div",[["ngbPopover","Guardar archivo (Ctrl+G)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,null,null,null,null)),h["ɵdid"](27,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](29,0,null,null,3,"button",[["class","btn btn-sm btn-secondary"]],[[8,"disabled",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.guardarArchivo()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-save"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](35,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Reiniciar intérprete (Ctrl+R)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.reiniciarInterprete()&&l}return l},null,null)),h["ɵdid"](36,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](38,0,null,null,0,"i",[["class","fa fa-refresh"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](41,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Cargar programa (Ctrl+P)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.runCode()&&l}return l},null,null)),h["ɵdid"](42,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](44,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](47,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Nuevo archivo (Ctrl+A)"],["placement","bottom"],["style","float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.seleccionarDirectorio()&&l}return l},null,null)),h["ɵdid"](48,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](50,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,[["popoverContent",2]],null,0,null,o)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](57,0,null,null,8,"codemirror",[["class","codemirrorPrograma"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"]],function(n,t,e){var l=!0,i=n.component;if("ngModelChange"===t){l=!1!==(i.archivo.contenido=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},v.a,v.b)),h["ɵdid"](58,278528,null,0,f.NgStyle,[h.KeyValueDiffers,h.ElementRef,h.Renderer],{ngStyle:[0,"ngStyle"]},null),h["ɵpod"](59,{"font-size":0}),h["ɵdid"](60,4374528,[[1,4]],0,g.CodemirrorComponent,[],{config:[0,"config"]},null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[g.CodemirrorComponent]),h["ɵdid"](62,671744,null,0,d.NgModel,[[8,null],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](64,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "]))],function(n,t){var e=t.component;n(t,12,0,e.archivo);n(t,15,0,"Exportar (Ctrl+E)","bottom","mouseenter:mouseleave");n(t,21,0,h["ɵnov"](t,53),"Configuración","bottom");n(t,27,0,"Guardar archivo (Ctrl+G)","bottom","mouseenter:mouseleave");n(t,36,0,"Reiniciar intérprete (Ctrl+R)","bottom","mouseenter:mouseleave");n(t,42,0,"Cargar programa (Ctrl+P)","bottom","mouseenter:mouseleave");n(t,48,0,"Nuevo archivo (Ctrl+A)","bottom","mouseenter:mouseleave"),n(t,58,0,n(t,59,0,e.configCodeMirror.fontSize+"px")),n(t,60,0,e.configCodeMirror),n(t,62,0,e.archivo.contenido)},function(n,t){var e=t.component;n(t,5,0,h["ɵnov"](t,9).ngClassUntouched,h["ɵnov"](t,9).ngClassTouched,h["ɵnov"](t,9).ngClassPristine,h["ɵnov"](t,9).ngClassDirty,h["ɵnov"](t,9).ngClassValid,h["ɵnov"](t,9).ngClassInvalid,h["ɵnov"](t,9).ngClassPending),n(t,29,0,!e.modificado),n(t,57,0,h["ɵnov"](t,64).ngClassUntouched,h["ɵnov"](t,64).ngClassTouched,h["ɵnov"](t,64).ngClassPristine,h["ɵnov"](t,64).ngClassDirty,h["ɵnov"](t,64).ngClassValid,h["ɵnov"](t,64).ngClassInvalid,h["ɵnov"](t,64).ngClassPending)})}function a(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](1,0,null,null,1,"canvas-component",[],null,[[null,"canvasComp"],["window","resize"],["document","click"]],function(n,t,e){var l=!0,i=n.component;if("window:resize"===t){l=!1!==h["ɵnov"](n,2).onResize(e)&&l}if("document:click"===t){l=!1!==h["ɵnov"](n,2).documentClicked(e)&&l}if("canvasComp"===t){l=!1!==i.canvasC&&l}return l},b.a,b.b)),h["ɵdid"](2,4243456,[[3,4]],0,y.a,[C.a],null,null),(n()(),h["ɵted"](-1,null,["\n "]))],null,null)}function s(n){return h["ɵvid"](0,[h["ɵqud"](671088640,1,{codemirror:0}),h["ɵqud"](671088640,2,{popover:0}),h["ɵqud"](671088640,3,{canvasC:0}),(n()(),h["ɵeld"](3,0,null,null,1,"notificacion",[],null,null,null,x.a,x.b)),h["ɵdid"](4,114688,null,0,E.a,[k.a],null,null),(n()(),h["ɵted"](-1,null,[" \n"])),(n()(),h["ɵeld"](6,0,null,null,41,"div",[["class","container-fluid"],["style"," padding-left: 0px; padding-right: 0px; margin-top: -13px; margin-left: -6px; margin-right: -6px;"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](8,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](10,0,null,null,24,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](12,0,null,null,21,"ngb-tabset",[],null,null,null,R.a,R.b)),h["ɵdid"](13,2146304,null,1,S.a,[w.a],{destroyOnHide:[0,"destroyOnHide"]},null),h["ɵqud"](603979776,4,{tabs:1}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](16,0,null,null,7,"ngb-tab",[["id","ProgramBtn"],["title","Programa"]],null,null,null,null,null)),h["ɵdid"](17,16384,[[4,4]],2,S.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,5,{contentTpl:0}),h["ɵqud"](335544320,6,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,null,null,1,null,r)),h["ɵdid"](22,16384,[[5,4]],0,S.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](25,0,null,null,7,"ngb-tab",[["id","FigurasBtn"],["title","Figuras"]],null,null,null,null,null)),h["ɵdid"](26,16384,[[4,4]],2,S.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,7,{contentTpl:0}),h["ɵqud"](335544320,8,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,null,null,1,null,a)),h["ɵdid"](31,16384,[[7,4]],0,S.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,[" \n\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](36,0,null,null,9,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n \n\n\n "])),(n()(),h["ɵeld"](39,0,null,null,4,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](41,0,null,null,1,"div",[["id","console"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,[" "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n"])),(n()(),h["ɵted"](-1,null,["\n\n"]))],function(n,t){n(t,4,0);n(t,13,0,!1);n(t,17,0,"ProgramBtn","Programa");n(t,26,0,"FigurasBtn","Figuras")},null)}function u(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,4,"matefun",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==h["ɵnov"](n,4).documentClicked(e)&&l}return l},s,F)),h["ɵprd"](4608,null,P.a,P.a,[]),h["ɵprd"](4608,null,p.a,p.a,[]),h["ɵprd"](512,null,T.a,T.a,[M.i,X.c,Y.a]),h["ɵdid"](4,4308992,null,0,N.a,[_.a,Y.a,C.a,h.ElementRef,k.a,A.a,O.DialogService,T.a],null,null)],function(n,t){n(t,4,0)},null)}var c=e("26LX"),h=e("/oeL"),d=e("bm2B"),f=e("qbdv"),m=e("mQQt"),p=e("7zUS"),v=e("KPCT"),g=e("nfVm"),b=(e.n(g),e("kqFu")),y=e("pB18"),C=e("2qVr"),x=e("hAtc"),E=e("+iRM"),k=e("uiTn"),R=e("Vnhz"),S=e("Hjei"),w=e("+E40"),P=e("qtCd"),T=e("fdEY"),M=e("CPp0"),X=e("BkNc"),Y=e("6akk"),N=e("sRze"),_=e("dh/p"),A=e("h7Ol"),O=e("V672");e.n(O);e.d(t,"a",function(){return j});var I=[c.a],F=h["ɵcrt"]({encapsulation:0,styles:I,data:{}}),j=h["ɵccf"]("matefun",N.a,u,{},{},[])},fdEY:function(n,t,e){"use strict";var l=e("BkNc"),i=e("CPp0"),o=e("bKpL"),r=(e.n(o),e("6akk")),a=e("5v8a"),s=(e.n(a),e("xpf9")),u=(e.n(s),e("5FRs"));e.d(t,"a",function(){return c});var c=function(){function n(n,t,e){this.http=n,this.router=t,this.authService=e}return n.prototype.actualizarConfiguracion=function(n,t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),l=new i.g({headers:e});return this.http.put(u.a+"/servicios/usuario/"+n+"/configuracion",t,l).map(this.extractData).catch(this.handleError)},n.prototype.extractData=function(n){return n.json()||[]},n.prototype.handleError=function(n){401==n.status&&this.router.navigate(["/login"]);var t=n.message?n.message:n.status?n.status+" - "+n.statusText:"Server error";return console.error(t),o.Observable.throw(t)},n.ctorParameters=function(){return[{type:i.i},{type:l.c},{type:r.a}]},n}()},gZxW:function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),r["ɵted"](1,null,["","%"]))],null,function(n,t){n(t,1,0,t.component.getPercentValue())})}function i(n){return r["ɵvid"](2,[(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵeld"](1,0,null,null,8,"div",[["class","progress"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵeld"](3,0,null,null,5,"div",[["aria-valuemin","0"],["role","progressbar"]],[[8,"className",0],[4,"width","%"],[1,"aria-valuenow",0],[1,"aria-valuemax",0]],null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](6,16384,null,0,a.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),r["ɵncd"](null,0),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵted"](-1,null,["\n "]))],function(n,t){n(t,6,0,t.component.showValue)},function(n,t){var e=t.component;n(t,3,0,r["ɵinlineInterpolate"](3,"progress-bar",e.type?" bg-"+e.type:"","",e.animated?" progress-bar-animated":"","",e.striped?" progress-bar-striped":"",""),e.getPercentValue(),e.getValue(),e.max)})}function o(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"ngb-progressbar",[],null,null,null,i,h)),r["ɵdid"](1,49152,null,0,s.a,[u.a],null,null)],null,null)}var r=e("/oeL"),a=e("qbdv"),s=e("n/Gy"),u=e("Wv1e");e.d(t,"b",function(){return h}),t.a=i;var c=[],h=r["ɵcrt"]({encapsulation:2,styles:c,data:{}});r["ɵccf"]("ngb-progressbar",s.a,o,{max:"max",animated:"animated",striped:"striped",showValue:"showValue",type:"type",value:"value"},{},["*"])},"ij+S":function(n,t,e){"use strict";var l=e("p2gU"),i=(e.n(l),e("78g9"));e.d(t,"a",function(){return r});var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),r=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.confirm=function(){var n=this,t=/^[A-Z]/;if(void 0==this.nombre||""==this.nombre)this.parent.notifService.error("Nombre de archivo invalido.");else if(t.test(this.nombre)){var e=new i.b;e.cedulaCreador=this.parent.authService.getUser().cedula,e.contenido="",e.nombre=this.nombre,e.directorio=!1,e.padreId=this.directorioActual.id,e.editable=!0,this.parent.haskellService.crearArchivo(e).subscribe(function(t){n.parent.archivo=t,n.parent.ghciService.loadFile(t.id),n.parent.sessionService.setArchivo(t)},function(t){n.parent.notifService.error(t)}),this.result=!0,this.close()}else this.parent.notifService.error("Nombre de archivo debe iniciar con mayusula.")},t.prototype.navToDir=function(n){n.directorio&&(this.directorioActual=n)},t.prototype.navBack=function(){var n=this.directorioActual.padreId,t=this.parent.sessionService.getArchivosList(),e=t.filter(function(t){return t.id===n})[0];this.directorioActual=e},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},kqFu:function(n,t,e){"use strict";function l(n){return c["ɵvid"](0,[(n()(),c["ɵted"](0,null,["\n\t\t\t","\n\t\t"]))],null,function(n,t){n(t,0,0,t.component.tipoZoomDesc)})}function i(n){return c["ɵvid"](0,[(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](1,0,null,null,23,"div",[["style","width: 8em"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵeld"](3,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](5,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](7,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","evaluacionVertical"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarEvaluacionVertical()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEvaluacion\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](12,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](14,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarGrilla"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarGrilla()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tGrilla\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](19,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](21,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarEjes"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarEjes()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEjes\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"]))],null,function(n,t){var e=t.component;n(t,7,0,e.evaluacionVertical),n(t,14,0,e.mostrarGrilla),n(t,21,0,e.mostrarEjes)})}function o(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.play()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null))],null,null)}function r(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.pause()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-pause"]],null,null,null,null,null))],null,null)}function a(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"ngb-progressbar",[["style","float: none"],["type","info"]],null,null,null,h.a,h.b)),c["ɵdid"](1,49152,null,0,d.a,[f.a],{type:[0,"type"],value:[1,"value"]},null)],function(n,t){var e=t.component;n(t,1,0,"info",(e.frameAnimacion+1)/e.elementosAnimacion.length*100)},null)}function s(n){return c["ɵvid"](0,[c["ɵqud"](402653184,1,{canvasRef:0}),c["ɵqud"](402653184,2,{popover:0}),(n()(),c["ɵeld"](2,0,null,null,54,"div",[["class","card"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n"])),(n()(),c["ɵted"](-1,null,["\n\t"])),(n()(),c["ɵeld"](5,0,null,null,50,"div",[["class","card-block contenedor-canvas"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](7,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["placement","bottom"],["style","float:right; margin-right: 198px; margin-top: -55px"],["triggers","mouseenter:mouseleave:click"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.cambiarTipoZoom()&&l}return l},null,null)),c["ɵdid"](8,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵted"](9,null,["",""])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverTipoZoom",2]],null,0,null,l)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](13,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom +"],["style","float:right; margin-right: 165px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMas()&&l}return l},null,null)),c["ɵdid"](14,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](15,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](17,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom -"],["style","float:right; margin-right: 132px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMenos()&&l}return l},null,null)),c["ɵdid"](18,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](19,0,null,null,0,"i",[["class","fa fa-minus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](21,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Centrar"],["style"," float:right; margin-right: 99px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.centrarCanvas()&&l}return l},null,null)),c["ɵdid"](22,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](25,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Borrar"],["style"," float:right; margin-right: 66px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.limpiarCanvas()&&l}return l},null,null)),c["ɵdid"](26,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-trash"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](29,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Descargar PNG"],["style","float:right; margin-right: 33px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.exportImg()&&l}return l},null,null)),c["ɵdid"](30,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-download"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](33,0,null,null,1,"a",[["download","Canvas.png"],["id","dl"],["style","display: none"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["Download Canvas"])),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](36,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","float:right; margin-top: -55px"],["tiggers","click"]],null,null,null,null,null)),c["ɵdid"](37,212992,[[2,4],["popover",4]],0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](39,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverCanvas",2]],null,0,null,i)),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,o)),c["ɵdid"](45,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,r)),c["ɵdid"](48,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,a)),c["ɵdid"](51,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](53,0,[[1,0],["canvasElement",1]],null,1,"canvas",[["height","2000"],["id","myCanvas"],["style","max-width: 100%;"],["width","2000"]],null,[[null,"mousemove"],[null,"touchmove"],[null,"touchstart"],[null,"touchend"],[null,"mouseleave"],[null,"mousewheel"],[null,"DOMMouseScroll"]],function(n,t,e){var l=!0,i=n.component;if("mousemove"===t){l=!1!==i.moveGraph(e)&&l}if("touchmove"===t){l=!1!==i.moveGraph(e)&&l}if("touchstart"===t){l=!1!==i.moveGraph(e)&&l}if("touchend"===t){l=!1!==i.moveGraph(e)&&l}if("mouseleave"===t){l=!1!==i.leaveCanvas(e)&&l}if("mousewheel"===t){l=!1!==i.zoomGraph(e)&&l}if("DOMMouseScroll"===t){l=!1!==i.zoomGraph(e)&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t"])),(n()(),c["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,8,0,c["ɵnov"](t,11),"bottom","mouseenter:mouseleave:click");n(t,14,0,"Zoom +","bottom","mouseenter:mouseleave");n(t,18,0,"Zoom -","bottom","mouseenter:mouseleave");n(t,22,0,"Centrar","bottom","mouseenter:mouseleave");n(t,26,0,"Borrar","bottom","mouseenter:mouseleave");n(t,30,0,"Descargar PNG","bottom","mouseenter:mouseleave");n(t,37,0,c["ɵnov"](t,42),"Configuración","bottom"),n(t,45,0,!e.animando&&e.elementosAnimacion.length>0),n(t,48,0,e.animando&&e.elementosAnimacion.length>0),n(t,51,0,e.elementosAnimacion.length>0)},function(n,t){n(t,9,0,t.component.tipoZoom)})}function u(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"canvas-component",[],null,[["window","resize"],["document","click"]],function(n,t,e){var l=!0;if("window:resize"===t){l=!1!==c["ɵnov"](n,1).onResize(e)&&l}if("document:click"===t){l=!1!==c["ɵnov"](n,1).documentClicked(e)&&l}return l},s,C)),c["ɵdid"](1,4243456,null,0,m.a,[b.a],null,null)],null,null)}var c=e("/oeL"),h=e("gZxW"),d=e("n/Gy"),f=e("Wv1e"),m=e("pB18"),p=e("mQQt"),v=e("7zUS"),g=e("qbdv"),b=e("2qVr");e.d(t,"b",function(){return C}),t.a=s;var y=[],C=c["ɵcrt"]({encapsulation:2,styles:y,data:{}});c["ɵccf"]("canvas-component",m.a,u,{},{},[])},pB18:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__=__webpack_require__("2qVr");__webpack_require__.d(__webpack_exports__,"a",function(){return CanvasComponent});var CanvasComponent=function(){function CanvasComponent(ghciService){var _this=this;this.ghciService=ghciService,this.animar_=!0,this.objetos=[],this.evaluacionVertical=!0,this.elementosAnimacion=[],this.frameAnimacion=0,this.animando=!0,this.mostrarEjes=!0,this.mostrarGrilla=!0,this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes",this.mostrarOcultarEjes=function(){this.mostrarEjes=!this.mostrarEjes,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarOcultarGrilla=function(){this.mostrarGrilla=!this.mostrarGrilla,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarEvaluacionVertical=function(){this.evaluacionVertical=!this.evaluacionVertical,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.limpiarCanvas=function(){this.animar_=!1,clearTimeout(this.timeOutRef),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context))},this.centrarCanvas=function(){this.maxX=10,this.maxY=10/this.aspectRatio,this.minX=-10,this.minY=-10/this.aspectRatio,this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitsPerTickX=1,this.unitsPerTickY=1,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=-this.minY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.cambiarTipoZoom=function(){"Todo"==this.tipoZoom?(this.tipoZoom="Abscisa",this.tipoZoomDesc="Zoom en abscisa"):"Abscisa"==this.tipoZoom?(this.tipoZoom="Ordenada",this.tipoZoomDesc="Zoom en ordenada"):(this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes")},this.generarFuncion=function(n){for(var t,e="",l=0,i=n.funs;l<i.length;l++){var o=i[l];e="var "+o.fun+" = function("+o.args.join()+"){\n return "+this.generarExpresion(o.bdy)+"}\n"+e,o.fun==n.graph&&(e+="return "+o.fun+"("+o.args.join()+");\n",t=o)}return e="("+t.args.join()+",delta,hayPunto)=>{\n"+e+"}"},this.generarExpresion=function(n){var t=this,e="";return"cnd"==n.kind?e=" ("+this.generarExpresion(n.cond)+"?"+this.generarExpresion(n.exp1)+":"+this.generarExpresion(n.exp2)+") ":"bop"==n.kind?e="=="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && hayPunto() ":"/="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) > delta || Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && !hayPunto() ":"^"==n.op?" Math.pow("+this.generarExpresion(n.exp1)+","+this.generarExpresion(n.exp2)+") ":" ("+this.generarExpresion(n.exp1)+")"+n.op+"("+this.generarExpresion(n.exp2)+") ":"uop"==n.kind?e=" "+n.op+" "+this.generarExpresion(n.exp)+" ":"app"==n.kind?("cos"==n.fun?n.fun="Math.cos":"sen"==n.fun?n.fun="Math.sin":"red"==n.fun&&(n.fun="Math.round"),e=" "+n.fun+"("+n.args.map(function(n){return t.generarExpresion(n)}).join()+") "):e="tup"==n.kind?" ("+n.exps.map(function(n){return t.generarExpresion(n)}).join()+") ":"lit"==n.kind?" "+n.val+" ":"var"==n.kind?" "+n.var+" ":" undefined ",e},this.animar=function(){this.animar_=!0,(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=this.elementosAnimacion[this.frameAnimacion],this.dibujarObjetos(),this.animando&&(this.timeOutRef=setTimeout(function(){this.animando&&(this.frameAnimacion++,this.frameAnimacion>=this.elementosAnimacion.length&&(this.frameAnimacion=0),this.animar_&&this.animar())}.bind(this),1e3))},this.dibujarObjetos=function(){(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context));for(var n=0,t=this.objetos;n<t.length;n++){var e=t[n];"circulo"==e.tipo?this.drawCircle(e.x,e.y,e.r,e.color,e.rotacion):"grafica"==e.tipo?this.drawEquation(e.ecuacion,e.color,e.thickness):"rectangulo"==e.tipo?this.drawRect(e.x,e.y,e.w,e.h,e.color,e.rotacion):"texto"==e.tipo?this.drawText(e.x,e.y,e.text,e.size,e.color,e.rotacion):"poligono"==e.tipo?this.drawPolyline(!0,e.puntos,e.color,e.rotacion):"lineas"==e.tipo&&this.drawPolyline(!1,e.puntos,e.color,e.rotacion)}},this.Graph=function(n){this.config={canvasId:"myCanvas",minX:-10,minY:-10/n,maxX:10,maxY:10/n,unitsPerTickX:1,unitsPerTickY:1},this.aspectRatio=n,this.canvas=this.canvasRef,this.minX=this.config.minX,this.minY=this.config.minY,this.maxX=this.config.maxX,this.maxY=this.config.maxY,this.unitsPerTickX=this.config.unitsPerTickX,this.unitsPerTickY=this.config.unitsPerTickY,this.axisColor="#aaa",this.font="8pt Calibri",this.tickSize=10,this.context=this.canvasRef.nativeElement.getContext("2d"),this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=Math.round(Math.abs(this.minY/this.rangeY)*this.canvasRef.nativeElement.height),this.centerX=Math.round(Math.abs(this.minX/this.rangeX)*this.canvasRef.nativeElement.width),this.precision=1e3,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY},this.drawXAxis=function(n){n.save();var t=this.unitsPerTickX*this.unitX;n.font=this.font,n.textAlign="center",n.textBaseline="top";var e=this.centerX-t,l=-1*this.unitsPerTickX;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l-this.unitsPerTickX).toFixed(2)),e=Math.round(e-t);for(e=this.centerX+t,l=this.unitsPerTickX;e<this.canvas.nativeElement.width;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l+this.unitsPerTickX).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY-5),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY+5),n.stroke()),n.restore()},this.drawYAxis=function(n){n.save();var t=this.unitsPerTickY*this.unitY;n.font=this.font,n.textAlign="right",n.textBaseline="middle";var e=this.centerY-t,l=this.unitsPerTickY;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l+this.unitsPerTickY).toFixed(2)),e=Math.round(e-t);for(e=this.centerY+t,l=-1*this.unitsPerTickY;e<this.canvasRef.nativeElement.height;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l-this.unitsPerTickY).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX+5,12),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX-5,12),n.stroke()),n.restore()},this.transformContext=function(n){n.translate(this.centerX,this.centerY),n.scale(this.scaleX,-this.scaleY)},this.hayGraficas=function(){for(var n=0,t=this.objetos;n<t.length;n++){if("grafica"==t[n].tipo)return!0}return!1},this.verticalLine=function(n,t){if(this.hayGraficas()){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();this.context;this.context.moveTo(n,0),this.context.lineTo(n,this.canvasRef.nativeElement.height);for(var e=-this.centerX/this.scaleX,l=-this.centerY/this.scaleY,i=n/this.canvasRef.nativeElement.width*this.rangeX+e,o=0,r=this.objetos;o<r.length;o++){var a=r[o];if("grafica"==a.tipo){var i=Math.trunc(100*i)/100,s=a.ecuacion(i,this.rangeX/500,function(){return!0}),u=-(s+l)/this.rangeY*this.canvasRef.nativeElement.height;a.color&&(this.context.fillStyle=a.color),this.context.fillText("("+i.toFixed(2)+","+s.toFixed(2)+")",n+10,u),this.context.fillStyle="black",this.context.fillRect(n-2.5,u-2.5,5,5)}}this.context.stroke()}},this.leaveCanvas=function(n){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.moveGraph=function(n){if(1===n.buttons&&"mousemove"==n.type)this.centerX+=n.offsetX-this.lastPositionX,this.centerY+=n.offsetY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if("touchend"==n.type)1==n.touches.length&&(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY);else if("touchmove"==n.type){if(1==n.touches.length)this.centerX+=n.touches[0].clientX-this.lastPositionX,this.centerY+=n.touches[0].clientY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if(this.lastZoom&&n.touches.length>1){this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY;var t=n.touches[1].clientX,e=n.touches[1].clientY,l=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2));Math.abs(l-this.lastZoom)>2&&this.zoom((l-this.lastZoom)/15),this.lastZoom=l}}else if("touchstart"==n.type)if(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,n.touches.length>1){var t=n.touches[1].clientX,e=n.touches[1].clientY;this.lastZoom=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2))}else this.lastZoom=void 0;else this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY;if(this.evaluacionVertical){var t,e,i=this.canvasRef.nativeElement.getBoundingClientRect();n instanceof MouseEvent?(t=n.clientX-i.left,e=n.clientY-i.top):n instanceof TouchEvent&&(t=n.touches[0].clientX-i.left,e=n.touches[0].clientY-i.top),this.verticalLine(t,e)}n instanceof TouchEvent&&n.preventDefault()},this.zoomGraph=function(n){var n=window.event||n,t=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail));return this.zoom(t,n.clientX,n.clientY),!1},this.zoomMas=function(){this.zoom(1)},this.zoomMenos=function(){this.zoom(-1)},this.zoom=function(n,t,e){var l=n*this.rangeX/20,i=n*this.rangeY/20;if(!("Todo"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0||this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0)||"Abscisa"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0)||"Ordenada"==this.tipoZoom&&(this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0))){if(t&&e){var o=this.canvasRef.nativeElement.getBoundingClientRect(),r=t-o.left,a=e-o.top,s=-this.centerX/this.scaleX,u=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),c=r/this.canvasRef.nativeElement.width*this.rangeX+s,h=(1-a/this.canvasRef.nativeElement.height)*this.rangeY+u,d=Math.abs(c-this.minX)/Math.abs(this.maxX-this.minX),f=Math.abs(h-this.minY)/Math.abs(this.maxY-this.minY);"Todo"==this.tipoZoom?(this.maxX-=l*(1-d),this.maxY-=i*(1-f),this.minX+=l*d,this.minY+=i*f):"Abscisa"==this.tipoZoom?(this.maxX-=l*(1-d),this.minX+=l*d):(this.maxY-=i*(1-f),this.minY+=i*f)}else"Todo"==this.tipoZoom?(this.maxX-=l,this.maxY-=i,this.minX+=l,this.minY+=i):"Abscisa"==this.tipoZoom?(this.maxX-=l,this.minX+=l):(this.maxY-=i,this.minY+=i);this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.rangeX>15?this.unitsPerTickX=Math.round(this.rangeX/15):this.rangeX>4?this.unitsPerTickX=1:this.rangeX>1.5?this.unitsPerTickX=Math.round(this.rangeX/15*10)/10:this.rangeX>.4?this.unitsPerTickX=.1:this.rangeX>.15?this.unitsPerTickX=Math.round(this.rangeX/15*100)/100:this.unitsPerTickX=.01,this.rangeY>15?this.unitsPerTickY=Math.round(this.rangeY/15):this.rangeY>4?this.unitsPerTickY=1:this.rangeY>1.5?this.unitsPerTickY=Math.round(this.rangeY/15*10)/10:this.rangeY>.4?this.unitsPerTickY=.1:this.rangeY>.15?this.unitsPerTickY=Math.round(this.rangeY/15*100)/100:this.unitsPerTickY=.01,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=this.maxY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()}},this.drawCircle=function(n,t,e,l,i){var o=this.context;o.save(),o.save(),this.transformContext(o),o.beginPath();try{o.translate(0,0);var r=i*Math.PI/180,a=Math.cos(r)*n-Math.sin(r)*t,s=Math.sin(r)*n+Math.cos(r)*t;o.rotate(-r),this.context.arc(a,s,e,0,2*Math.PI,!1),l&&(o.fillStyle=l,o.fill())}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawText=function(n,t,e,l,i,o){this.context.save();var r=-this.centerX/this.scaleX,a=-this.centerY/this.scaleY,s=-(t+a)/this.rangeY*this.canvasRef.nativeElement.height,u=(n-r)/this.rangeX*this.canvasRef.nativeElement.width;i&&(this.context.fillStyle=i),this.context.translate(u,s);var c=o*Math.PI/180;this.context.rotate(c),this.context.font=100*l/this.rangeX+"pt Arial",this.context.textBaseline="middle",this.context.textAlign="center",this.context.fillText(e,0,0),this.context.restore()},this.drawRect=function(n,t,e,l,i,o){var r=this.context;r.save(),r.save(),this.transformContext(r),r.beginPath();try{r.translate(0,0);var a=o*Math.PI/180,s=Math.cos(a)*n-Math.sin(a)*t,u=Math.sin(a)*n+Math.cos(a)*t;r.rotate(-a),r.rect(s-e/2,u-l/2,e,l),i&&(r.fillStyle=i,r.fill()),r.translate(this.centerX,this.centerY)}catch(n){this.limpiarCanvas()}r.restore(),r.lineJoin="round",r.lineWidth=this.thickness,r.strokeStyle=this.color,r.stroke(),r.restore()},this.drawElipse=function(n,t,e,l,i){var o=this.context;this.color="green",this.thickness=3,o.save(),o.save(),this.transformContext(o),o.beginPath();try{this.context.ellipse(n,t,e,l,i*Math.PI/180,0,2*Math.PI)}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawEquation=function(n,t,e){var l=this.context;l.save(),l.save(),this.transformContext(l),l.beginPath(),l.lineWidth=e;try{var i=n(this.minX);i>1e7?i=1e7:i<-1e7&&(i=-1e7),l.moveTo(this.minX,i);for(var o=!0,r=void 0,a=void 0,s=void 0,u=(this.precision,this.rangeX/this.precision),c=this.rangeX/200,h=this.minX+this.iteration;h<=this.maxX;h+=this.iteration)try{var d=!1,f=function(){return d=!0,!0},m=n(h,u,f);if(d)this.context.fillRect(h-c/2,m-c/2,c,c),o=!0,d=!1;else{if(void 0!=s){var p=Math.tan(Math.atan(s)+Math.PI/8),v=Math.tan(Math.atan(s)-Math.PI/8);s>0&&p<0&&(p=1e20),s<0&&v>0&&(v=-1e20);var g=(h-r)*p-(m-a),b=(h-r)*v-(m-a);(g<0||b>0)&&(o=!0)}r&&(s=(m-a)/(h-r));var y=m;m>1e7?y=1e7:m<-1e7&&(y=-1e7),o?(l.moveTo(h,y),o=!1):l.lineTo(h,y)}r=h,a=m}catch(n){o=!0}}catch(n){this.limpiarCanvas()}l.restore(),l.lineJoin="bevel",l.lineWidth=e,l.strokeStyle=t,l.stroke(),l.restore()},this.drawPolyline=function(n,t,e,l){var i=this.context;i.save(),i.save(),this.transformContext(i),i.beginPath();try{if(t.length>1){var o=t[0];i.moveTo(o[0],o[1]);for(var r=0,a=t;r<a.length;r++){var s=a[r];i.lineTo(s[0],s[1])}n&&i.lineTo(o[0],o[1])}}catch(n){this.limpiarCanvas()}i.restore(),i.lineJoin="round",i.strokeStyle=e,e&&(i.fillStyle=e,i.fill()),i.strokeStyle="black",i.stroke(),i.restore()},ghciService.messages.subscribe(function(canvas){if(_this.limpiarCanvas(),"canvas"==canvas.tipo)_this.objetos=JSON.parse(canvas.resultado),_this.elementosAnimacion=[],_this.frameAnimacion=0,_this.dibujarObjetos();else if("animacion"==canvas.tipo)_this.elementosAnimacion=canvas.resultado.map(function(n){return JSON.parse(n)}),_this.frameAnimacion=0,_this.animando=!0,_this.animar();else if("graph"==canvas.tipo){var jsonCanvas=JSON.parse(canvas.resultado),fun=_this.generarFuncion(jsonCanvas);_this.objetos=[{tipo:"grafica",ecuacion:eval(fun),color:"black",thickness:2}],_this.dibujarObjetos()}},function(n){_this.objetos=[]})}return CanvasComponent.prototype.onResize=function(n){if(this.canvasRef.nativeElement.offsetParent){var t=window.devicePixelRatio||1;t>2?t=2:t<1&&(t=1),this.canvasRef.nativeElement.width=this.canvasRef.nativeElement.offsetParent.offsetWidth*t*.94,this.canvasRef.nativeElement.height=this.canvasRef.nativeElement.offsetParent.offsetHeight*t*.94;var e=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(e),this.dibujarObjetos()}},CanvasComponent.prototype.exportImg=function(){function n(){var n;n=document.getElementById("myCanvas");var t=n.toDataURL("image/png");t=t.replace(/^data:image\/[^;]*/,"data:application/octet-stream"),t=t.replace(/^data:application\/octet-stream/,"data:application/octet-stream;headers=Content-Disposition%3A%20attachment%3B%20filename=Canvas.png"),this.href=t}document.getElementById("dl").addEventListener("click",n,!1),document.getElementById("dl").click()},CanvasComponent.prototype.ngAfterViewInit=function(){this.canvasRef.nativeElement.width=.94*this.canvasRef.nativeElement.offsetParent.offsetWidth,this.canvasRef.nativeElement.height=.94*this.canvasRef.nativeElement.offsetParent.offsetHeight;var n=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(n),this.dibujarObjetos()},CanvasComponent.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},CanvasComponent.prototype.play=function(){this.animando=!0,this.animar()},CanvasComponent.prototype.pause=function(){this.animando=!1},CanvasComponent.ctorParameters=function(){return[{type:__WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__.a}]},CanvasComponent}()},ppY8:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){function t(n,t,e){var l,i=n.getWrapperElement();return l=i.appendChild(document.createElement("div")),l.className=e?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?l.innerHTML=t:l.appendChild(t),l}function e(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(l,i,o){function r(n){if("string"==typeof n)h.value=n;else{if(u)return;u=!0,s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),e(this,null);var a,s=t(this,l,o.bottom),u=!1,c=this,h=s.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&n.on(h,"input",function(n){o.onInput(n,h.value,r)}),o.onKeyUp&&n.on(h,"keyup",function(n){o.onKeyUp(n,h.value,r)}),n.on(h,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,h.value,r)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(h.blur(),n.e_stop(t),r()),13==t.keyCode&&i(h.value,t))}),!1!==o.closeOnBlur&&n.on(h,"blur",r)):(a=s.getElementsByTagName("button")[0])&&(n.on(a,"click",function(){r(),c.focus()}),!1!==o.closeOnBlur&&n.on(a,"blur",r),a.focus()),r}),n.defineExtension("openConfirm",function(l,i,o){function r(){u||(u=!0,a.parentNode.removeChild(a),c.focus())}e(this,null);var a=t(this,l,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,h=1;s[0].focus();for(var d=0;d<s.length;++d){var f=s[d];!function(t){n.on(f,"click",function(e){n.e_preventDefault(e),r(),t&&t(c)})}(i[d]),n.on(f,"blur",function(){--h,setTimeout(function(){h<=0&&r()},200)}),n.on(f,"focus",function(){++h})}}),n.defineExtension("openNotification",function(l,i){function o(){s||(s=!0,clearTimeout(r),a.parentNode.removeChild(a))}e(this,o);var r,a=t(this,l,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;return n.on(a,"click",function(t){n.e_preventDefault(t),o()}),u&&(r=setTimeout(o,u)),o})})},qtCd:function(n,t,e){"use strict";var l=e("Dqrr");e.n(l);e.d(t,"a",function(){return i});var i=function(){function n(){}return n.prototype.connect=function(n){return this.subject||(this.subject=this.create(n),console.log("Successfully connected: "+n)),this.subject},n.prototype.create=function(n){var t=new WebSocket(n),e=l.Observable.create(function(n){return t.onmessage=n.next.bind(n),t.onerror=n.error.bind(n),t.onclose=n.complete.bind(n),t.close.bind(t)}),i={next:function(n){t.readyState===WebSocket.OPEN?t.send(JSON.stringify(n)):console.log("Se perdio la conexion")}};return l.Subject.create(i,e)},n.ctorParameters=function(){return[]},n}()},s6Yw:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},sRze:function(n,t,e){"use strict";var l=e("/oeL"),i=e("dh/p"),o=e("fdEY"),r=e("h7Ol"),a=e("2qVr"),s=e("6akk"),u=e("78g9"),c=e("HXxp"),h=e("UfLB"),d=e("ij+S"),f=e("p2gU"),m=(e.n(f),e("uiTn")),p=e("xpf9"),v=(e.n(p),e("5v8a")),g=(e.n(v),e("WC4F")),b=(e.n(g),e("lDY9")),y=(e.n(b),e("99fb")),C=(e.n(y),e("H6+I")),x=(e.n(C),e("oiK7")),E=(e.n(x),e("L8b4")),k=(e.n(E),e("ppY8")),R=(e.n(k),e("tyH6")),S=(e.n(R),e("Qdk6")),w=(e.n(S),e("EZ6d"));e.n(w);e.d(t,"a",function(){return X});var P,T,M,X=function(){function n(n,t,e,l,i,o,r,a){if(this.haskellService=n,this.authService=t,this.ghciService=e,this.elRef=l,this.notifService=i,this.sessionService=o,this.dialogService=r,this.usuarioService=a,this.consoleDisable=!1,this.consolaVisible=!0,this.cursorLabelInit=!1,this.entrada="",this.modificado=!1,this.argumentoI=!1,this.argumentoF=!1,this.editableLoaded=!1,this.editDialogFired=!1,this.code="",this.configCodeMirror={readOnly:!1,lineNumbers:!0,lineWrapping:!0,extraKeys:{"Ctrl-Space":"autocomplete"},mode:{name:"matefun",globalVars:!0},gutters:["CodeMirror-linenumbers","breakpoints"],theme:"dracula",fontSize:12},this.themes=["3024-day","3024-night","abcdef","ambiance-mobile","ambiance","base16-dark","base16-light","bespin","blackboard","cobalt","colorforth","dracula","duotone-dark","duotone-light","eclipse","elegant","erlang-dark","hopscotch","icecoder","isotope","lesser-dark","liquibyte","material","mbo","mdn-like","midnight","monokai","neat","neo","night","panda-syntax","paraiso-dark","paraiso-light","pastel-on-dark","railscasts","rubyblue","seti","solarized","the-matrix","tomorrow-night-bright","tomorrow-night-eighties","ttcn","twilight","vibrant-ink","xq-dark","xq-light","yeti","zenburn"],this.funcionSTR="Math.sin(x)*x*x-20",this.consola="",this.command="",this.tipo=1,this.onKey=function(n){this.funcionSTR=n,this.archivo.contenido=n},this.writeCommand=function(n){this.command=n.split("\n")[n.split("\n").length-1]},this.selectFunction=function(){this.tipo=1,this.funcionSTR="Math.sin(x)*x*x-20"},this.selectElipse=function(){this.tipo=2,this.funcionSTR="elipse(x,y,radioX, radioY, rotacion_en_grados)"},this.selectCircle=function(){this.tipo=3,this.funcionSTR="circulo(x,y,radio)"},this.elipse=function(n,t,e,l,i){return[n,t,e,l,i]},this.circulo=function(n,t,e){return[n,t,e]},this.archivo=o.getArchivo(),this.archivo&&this.archivo.id||this.newFile(),this.copiaContenidoArchivo=this.archivo.contenido,this.copiaNombreArchivo=this.archivo.nombre,t.getUser().configuracion){var s=t.getUser().configuracion;s.fontSizeEditor<=30&&s.fontSizeEditor>=8&&(this.configCodeMirror.fontSize=s.fontSizeEditor),this.themes.some(function(n){return n==s.themeEditor})&&(this.configCodeMirror.theme=s.themeEditor),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror)),this.argumentoI=s.argumentoI,this.argumentoF=s.argumentoF}this.code="my code"}return n.prototype.updateConfig=function(n){this.configCodeMirror.theme=n,this.codemirror.instance.setOption("theme",n),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror))},n.prototype.lockSaveButton=function(){this.copiaNombreArchivo=this.archivo.nombre,this.copiaContenidoArchivo=this.archivo.contenido,this.modificado=!1},n.prototype.showConfirm=function(){this.dialogService.addDialog(h.a,{title:"Está intentando editar un archivo de solo lectura",message:"Está editando un archivo de solo lectura, desea continuar?"}).subscribe(function(n){n&&(P.options.readOnly=!1,T.editDialogFired=!0)})},n.prototype.makePanel=function(){var n=document.createElement("div");n.id="cursorpos-panel",n.className="panel bottom",this.cursorPanelLabel=n.appendChild(document.createElement("span"));var t=this.codemirror.instance,e=t.getCursor().line,l=t.getCursor().ch;e=(Number(e)+1).toString(),l=(Number(l)+1).toString(),this.cursorPanelLabel.textContent="Posición del cursor: ("+e+","+l+")",this.cursorPanel=this.codemirror.instance.addPanel(n,{position:"bottom",stable:!0});var i=this;this.codemirror.instance.on("cursorActivity",function(n){var t=n.getCursor().line,e=n.getCursor().ch;t=(Number(t)+1).toString(),e=(Number(e)+1).toString(),i.cursorPanel.node.innerText="Posición del cursor: ("+t+","+e+")"}),this.codemirror.instance.on("keyHandled",function(n,t,e){"Digit1"===t.code&&t.ctrlKey&&t.shiftKey?i.seleccionarDirectorio():"Digit2"===t.code&&t.ctrlKey&&t.shiftKey&&i.saveConfig()}),this.codemirror.instance.on("keypress",function(n,t,e){!i.editDialogFired&&"docente"===JSON.parse(sessionStorage.currentUser).tipo&&n.options.readOnly&&(P=i.codemirror.instance,T=i,i.showConfirm())})},n.prototype.saveConfig=function(){var n=this,t=new c.a;t.themeEditor=this.configCodeMirror.theme,t.fontSizeEditor=this.configCodeMirror.fontSize;var e=this.authService.getUserConfig(),l=e.argumentoF!=this.argumentoF||e.argumentoI!=this.argumentoI;t.argumentoF=this.argumentoF,t.argumentoI=this.argumentoI,this.usuarioService.actualizarConfiguracion(this.authService.getUser().cedula,t).subscribe(function(t){n.popover.close(),n.authService.setUserConfig(t),l&&n.reiniciarInterprete()},function(t){n.notifService.error(t),n.popover.close()})},n.prototype.aumentarFuente=function(){this.configCodeMirror.fontSize<30&&this.configCodeMirror.fontSize++},n.prototype.disminuirFuente=function(){this.configCodeMirror.fontSize>8&&this.configCodeMirror.fontSize--},n.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},n.prototype.ngOnInit=function(){function n(n){var t=window.event?event:n;if(90==t.keyCode&&t.ctrlKey,"a"===t.key.toLowerCase()&&t.ctrlKey)return T.seleccionarDirectorio(),!1;if("e"===t.key.toLowerCase()&&t.ctrlKey)return T.downloadFile(),!1;if("r"===t.key.toLowerCase()&&t.ctrlKey)return T.reiniciarInterprete(),!1;if("g"===t.key.toLowerCase()&&t.ctrlKey)return T.guardarArchivo(),!1;if("o"===t.key.toLowerCase()&&t.ctrlKey)return document.getElementById("popover").click(),!1;if(t.ctrlKey&&t.altKey&&"p"===t.key.toLowerCase()){document.getElementById("ProgramBtn").click();var e=T;return setTimeout(function(){e.codemirror.instance.focus()},250),T.codemirror.instance.focus(),M="program",!1}return t.ctrlKey&&t.altKey&&"c"===t.key.toLowerCase()?(T.ghciService.focusConsole(),M="consola",!1):t.ctrlKey&&t.altKey&&"f"===t.key.toLowerCase()?(document.getElementById("FigurasBtn").click(),T.ghciService.focusConsole(),M="graficas",!1):"p"===t.key.toLowerCase()&&t.ctrlKey&&!t.altKey?(T.runCode(),!1):void 0}var t=this;this.ghciService.rendered(),this.haskellService.getArchivos(this.authService.getUser().cedula).subscribe(function(n){t.buildTreeFromList(n)},function(n){return console.log("Error al obtener los archivos del alumno")}),document.onkeydown=n},n.prototype.ngAfterViewInit=function(){if(T=this,null==this.codemirror.instance||this.cursorLabelInit||(this.cursorLabelInit=!0,this.codemirror.instance.setOption("theme",this.configCodeMirror.theme),this.makePanel()),!this.editableLoaded&&null!=this.codemirror.instance&&void 0!==this.sessionService.archivo.editable)try{var n=this.sessionService.archivo.editable&&("Edicion"==this.sessionService.archivo.estado||"Devuelto"==this.sessionService.archivo.estado);this.codemirror.instance.options.readOnly=!n,this.editableLoaded=!0}catch(n){return}},n.prototype.htmlEncode=function(n){return n.replace("Prelude> ","").replace(/&/g,"&").replace(/\s/g," ").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},n.prototype.inputConsola=function(n){this.entrada=n},n.prototype.newFile=function(){this.archivo=new u.b,this.archivo.cedulaCreador=this.authService.getUser().cedula,this.archivo.contenido="",this.archivo.nombre="",this.copiaNombreArchivo="",this.copiaContenidoArchivo=""},n.prototype.archivoModificado=function(){this.copiaNombreArchivo!=this.archivo.nombre||this.copiaContenidoArchivo!=this.archivo.contenido?this.modificado=!0:this.modificado=!1},n.prototype.guardarArchivo=function(){var n=this,t=/^[A-Z]/;""==this.archivo.nombre.trim()?this.notifService.error("Nombre de archivo sin especificar"):t.test(this.archivo.nombre)?this.archivo.id?this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.notifService.error("Nombre de archivo debe iniciar con mayusula.")},n.prototype.runCode=function(){var n=this;this.ghciService.setCodemirrorRef(this.codemirror.instance),this.ghciService.resetGutters();var t=/^[A-Z]/;if(""==this.archivo.nombre.trim())this.notifService.error("Nombre de archivo sin especificar");else if(t.test(this.archivo.nombre)){var e=this.sessionService.cargarDependencias(this.archivo);if("miss"===e.status)return void this.ghciService.outputConsole("Error: No se encuentra el archivo "+e.nombre+"\n");if(this.archivo.id)if(this.archivo.editable||"docente"==this.authService.getUser().tipo)this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t;var e=n.sessionService.getDependencias(),l=[];for(var i in e)l.push(e[i].id);l.some(function(n){return n==t.id})||l.push(t.id),n.lockSaveButton(),n.ghciService.loadFile(t.id,l)},function(t){n.notifService.error(t)});else{var l=this.sessionService.getDependencias(),i=[];for(var o in l)i.push(l[o].id);i.some(function(t){return t==n.archivo.id})||i.push(this.archivo.id),this.ghciService.loadFile(this.archivo.id,i)}else this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton(),n.ghciService.loadFile(t.id,[])},function(t){n.notifService.error(t)})}else this.notifService.error("Nombre de archivo debe iniciar con mayusula.");this.ghciService.focusConsole()},n.prototype.download=function(n,t){var e=document.createElement("a");e.setAttribute("href","data:application/octet-stream,"+encodeURIComponent(t)),e.setAttribute("download",n+".mf"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},n.prototype.downloadFile=function(){var n=this.archivo.nombre,t=this.archivo.contenido;void 0!=n&&""!=n&&void 0!=t&&""!=t&&this.download(n,t)},n.prototype.reiniciarInterprete=function(){this.ghciService.reiniciarInterprete()},n.prototype.toggleConsole=function(){this.consolaVisible=!this.consolaVisible},n.prototype.seleccionarDirectorio=function(){this.archivosTree=this.sessionService.getArchivos(void 0);this.dialogService.addDialog(d.a,{title:"",message:"",archivos:this.archivosTree,directorioActual:this.archivosTree,nombre:"",parent:this}).subscribe(function(n){})},n.prototype.buildTreeFromList=function(n){this.sessionService.setArchivosList(n);var t;for(var e in n){var l=n[e];-1===l.padreId&&(t=l)}this.idRecorridos=[t.id];var i=n.filter(function(n){return n.id!==t.id}),o=this.buildTree(i,t);this.archivosTree=o,this.sessionService.setArchivosTree(o)},n.prototype.buildTree=function(n,t){t.archivos=this.getArchivos(t.id,n);for(var e in t.archivos)if(t.archivos[e].directorio&&void 0===this.idRecorridos[t.archivos[e].id]){var l=t.archivos[e].id,i=n.filter(function(n){return n.id!==l});t.archivos[e]=this.buildTree(i,t.archivos[e])}return t},n.prototype.getArchivos=function(n,t){return t.filter(function(t){return t.padreId===n})},n.ctorParameters=function(){return[{type:i.a},{type:s.a},{type:a.a},{type:l.ElementRef},{type:m.a},{type:r.a},{type:f.DialogService},{type:o.a}]},n}()},tyH6:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("La8y"))}(function(n){"use strict";function t(n,t,e,l){this.cm=n,this.options=l;var i={listenForChanges:!1};for(var o in l)i[o]=l[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=n.annotateScrollbar(i),this.query=t,this.caseFold=e,this.gap={from:n.firstLine(),to:n.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var r=this;n.on("change",this.changeHandler=function(n,t){r.onChange(t)})}function e(n,t,e){return n<=t?n:Math.max(t,n+e)}n.defineExtension("showMatchesOnScrollbar",function(n,e,l){return"string"==typeof l&&(l={className:l}),l||(l={}),new t(this,n,e,l)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var e=this.matches[t];if(e.from.line>=this.gap.to)break;e.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var l=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;l.findNext();){var e={from:l.from(),to:l.to()};if(e.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,e),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var l=t.from.line,i=n.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(e(this.gap.from,l,o),t.from.line),this.gap.to=Math.max(e(this.gap.to,l,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var r=0;r<this.matches.length;r++){var a=this.matches[r],s=e(a.from.line,l,o);s!=a.from.line&&(a.from=n.Pos(s,a.from.ch));var u=e(a.to.line,l,o);u!=a.to.line&&(a.to=n.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})}}); \ No newline at end of file +webpackJsonp([1],{"1F35":function(n,t,e){"use strict";var l=e("sRze");e.d(t,"a",function(){return i});var i=(l.a,function(){function n(){}return n}())},"26LX":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=["#svgHaskell[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%!important;height:100%!important}"]},DVtk:function(n,t,e){"use strict";function l(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,26,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](2,0,null,null,23,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](4,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](6,0,null,null,1,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["×"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](11,0,null,null,4,"div",[["class","modal-body"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](13,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),o["ɵted"](14,null,["",""])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](17,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](19,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Editar"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Cancelar"])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "])),(n()(),o["ɵted"](-1,null,["\n "]))],null,function(n,t){n(t,14,0,t.component.message||"")})}function i(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,l,u)),o["ɵdid"](1,180224,null,0,r.a,[a.DialogService],null,null)],null,null)}var o=e("/oeL"),r=e("UfLB"),a=e("V672");e.n(a);e.d(t,"a",function(){return c});var s=[],u=o["ɵcrt"]({encapsulation:2,styles:s,data:{}}),c=o["ɵccf"]("confirm",r.a,i,{},{},[])},EZ6d:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";n.defineMode("matefun",function(n,t){function e(n,t,e){return t(e),e(n,t)}function l(n,t){if(n.eatWhile(p))return null;var l=n.next();if(m.test(l)){if("{"==l&&n.eat("-")){var r="comment";return n.eat("#")&&(r="meta"),e(n,t,i(r,1))}return null}if("'"==l)return n.eat("\\"),n.next(),n.eat("'")?"string":"string error";if('"'==l)return e(n,t,o);if(s.test(l))return n.eatWhile(d),n.eat(".")?"qualifier":"variable-2";if(a.test(l))return n.eatWhile(d),"variable";if(u.test(l)){if("0"==l){if(n.eat(/[xX]/))return n.eatWhile(c),"integer";if(n.eat(/[oO]/))return n.eatWhile(h),"number"}n.eatWhile(u);var r="number";return n.match(/^\.\d+/)&&(r="number"),n.eat(/[eE]/)&&(r="number",n.eat(/[-+]/),n.eatWhile(u)),r}if("."==l&&n.eat("."))return"keyword";if(f.test(l)){if("-"==l&&n.eat(/-/)&&(n.eatWhile(/-/),!n.eat(f)))return n.skipToEnd(),"comment";var r="variable";return":"==l&&(r="variable-2"),n.eatWhile(f),r}return"error"}function i(n,t){return 0==t?l:function(e,o){for(var r=t;!e.eol();){var a=e.next();if("{"==a&&e.eat("-"))++r;else if("-"==a&&e.eat("}")&&0==--r)return o(l),n}return o(i(n,r)),n}}function o(n,t){for(;!n.eol();){var e=n.next();if('"'==e)return t(l),"string";if("\\"==e){if(n.eol()||n.eat(p))return t(r),"string";n.eat("&")||n.next()}}return t(l),"string error"}function r(n,t){return n.eat("\\")?e(n,t,o):(n.next(),t(l),"error")}var a=/[a-z_]/,s=/[A-Z]/,u=/\d/,c=/[0-9A-Fa-f]/,h=/[0-7]/,d=/[a-z_A-Z0-9'\xa1-\uffff]/,f=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,p=/[ \t\v\f]/,v=function(){function n(n){return function(){for(var t=0;t<arguments.length;t++)e[arguments[t]]=n}}var e={};n("keyword")("incluir","conj","en","si","o","esVacia"),n("keyword")("<-","->"),n("builtin")("-","+","*","/","^","!",":","==","/=","<",">","<=",">=","::","->","X","|"),n("builtin")("Rojo","Verde","Azul","Negro","Blanco","Gris","Amarillo","FigVacia","[]","R","Fig","Color"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var l=t.overrideKeywords;if(l)for(var i in l)l.hasOwnProperty(i)&&(e[i]=l[i]);return e}();return{startState:function(){return{f:l}},copyState:function(n){return{f:n.f}},token:function(n,t){var e=t.f(n,function(n){t.f=n}),l=n.current();return v.hasOwnProperty(l)?v[l]:e},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),n.defineMIME("text/x-matefun","matefun")})},EfLl:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},HXxp:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}();!function(){function n(){}}()},L8b4:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("ppY8"))}(function(n){"use strict";function t(n,t){return"string"==typeof n?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function l(n){return n.state.search||(n.state.search=new e)}function i(n){return"string"==typeof n&&n==n.toLowerCase()}function o(n,t,e){return n.getSearchCursor(t,e,{caseFold:i(t),multiline:!0})}function r(n,t,e,l,i){n.openDialog(t,l,{value:e,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(n)},onKeyDown:i})}function a(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function s(n,t,e,l){n.openConfirm?n.openConfirm(t,l):confirm(e)&&l[0]()}function u(n){return n.replace(/\\(.)/g,function(n,t){return"n"==t?"\n":"r"==t?"\r":t})}function c(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else n=u(n);return("string"==typeof n?""==n:n.test(""))&&(n=/x^/),n}function h(n,e,l){e.queryText=l,e.query=c(l),n.removeOverlay(e.overlay,i(e.query)),e.overlay=t(e.query,i(e.query)),n.addOverlay(e.overlay),n.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=n.showMatchesOnScrollbar(e.query,i(e.query)))}function d(t,e,i,o){var s=l(t);if(s.query)return f(t,e);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=function(e,l){n.e_stop(l),e&&(e!=s.queryText&&(h(t,s,e),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,l.shiftKey,function(n,e){var l;e.line<3&&document.querySelector&&(l=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&l.getBoundingClientRect().bottom-4>t.cursorCoords(e,"window").top&&((c=l).style.opacity=.4)}))};r(t,g,u,d,function(e,i){var o=n.keyName(e),r=t.getOption("extraKeys"),a=r&&r[o]||n.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(n.e_stop(e),h(t,l(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(n.e_stop(e),d(i,e))}),o&&u&&(h(t,s,u),f(t,e))}else a(t,g,"Search for:",u,function(n){n&&!s.query&&t.operation(function(){h(t,s,n),s.posFrom=s.posTo=t.getCursor(),f(t,e)})})}function f(t,e,i){t.operation(function(){var r=l(t),a=o(t,r.query,e?r.posFrom:r.posTo);(a.find(e)||(a=o(t,r.query,e?n.Pos(t.lastLine()):n.Pos(t.firstLine(),0)),a.find(e)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),r.posFrom=a.from(),r.posTo=a.to(),i&&i(a.from(),a.to()))})}function m(n){n.operation(function(){var t=l(n);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function p(n,t,e){n.operation(function(){for(var l=o(n,t);l.findNext();)if("string"!=typeof t){var i=n.getRange(l.from(),l.to()).match(t);l.replace(e.replace(/\$(\d)/g,function(n,t){return i[t]}))}else l.replace(e)})}function v(n,t){if(!n.getOption("readOnly")){var e=n.getSelection()||l(n).lastQuery,i='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";a(n,i+b,i,e,function(e){e&&(e=c(e),a(n,y,"Replace with:","",function(l){if(l=u(l),t)p(n,e,l);else{m(n);var i=o(n,e,n.getCursor("from")),r=function(){var t,u=i.from();!(t=i.findNext())&&(i=o(n,e),!(t=i.findNext())||u&&i.from().line==u.line&&i.from().ch==u.ch)||(n.setSelection(i.from(),i.to()),n.scrollIntoView({from:i.from(),to:i.to()}),s(n,C,"Replace?",[function(){a(t)},r,function(){p(n,e,l)}]))},a=function(n){i.replace("string"==typeof e?l:l.replace(/\$(\d)/g,function(t,e){return n[e]})),r()};r()}}))})}}var g='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',b=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',C='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';n.commands.find=function(n){m(n),d(n)},n.commands.findPersistent=function(n){m(n),d(n,!1,!0)},n.commands.findPersistentNext=function(n){d(n,!1,!0,!0)},n.commands.findPersistentPrev=function(n){d(n,!0,!0,!0)},n.commands.findNext=d,n.commands.findPrev=function(n){d(n,!0)},n.commands.clearSearch=m,n.commands.replace=v,n.commands.replaceAll=function(n){v(n,!0)}})},La8y:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n,t){function e(n){clearTimeout(l.doRedraw),l.doRedraw=setTimeout(function(){l.redraw()},n)}this.cm=n,this.options=t,this.buttonHeight=t.scrollButtonHeight||n.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=n.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var l=this;n.on("refresh",this.resizeHandler=function(){clearTimeout(l.doUpdate),l.doUpdate=setTimeout(function(){l.computeScale()&&e(20)},100)}),n.on("markerAdded",this.resizeHandler),n.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&n.on("change",this.changeHandler=function(){e(250)})}n.defineExtension("annotateScrollbar",function(n){return"string"==typeof n&&(n={className:n}),new t(this,n)}),n.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var n=this.cm,t=(n.getWrapperElement().clientHeight-n.display.barHeight-2*this.buttonHeight)/n.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(n){this.annotations=n,this.redraw()},t.prototype.redraw=function(n){function t(n,t){return s!=n.line&&(s=n.line,u=e.getLineHandle(s)),u.widgets&&u.widgets.length||r&&u.height>a?e.charCoords(n,"local")[t?"top":"bottom"]:e.heightAtLine(u,"local")+(t?0:u.height)}!1!==n&&this.computeScale();var e=this.cm,l=this.hScale,i=document.createDocumentFragment(),o=this.annotations,r=e.getOption("lineWrapping"),a=r&&1.5*e.defaultTextHeight(),s=null,u=null,c=e.lastLine();if(e.display.barWidth)for(var h,d=0;d<o.length;d++){var f=o[d];if(!(f.to.line>c)){for(var m=h||t(f.from,!0)*l,p=t(f.to,!1)*l;d<o.length-1&&!(o[d+1].to.line>c)&&!((h=t(o[d+1].from,!0)*l)>p+.9);)f=o[++d],p=t(f.to,!1)*l;if(p!=m){var v=Math.max(p-m,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+v+"px",g.className=this.options.className,f.id&&g.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}})},OR9o:function(n,t,e){"use strict";function l(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-folder"],["style","margin-right:10px; font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function i(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-file-text"],["style","margin-right:10px;font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function o(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,7,"button",[["class","list-group-item list-group-item-action"],["style","cursor:pointer"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navToDir(n.context.$implicit)&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,l)),s["ɵdid"](3,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](6,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](7,null,["\n ","\n "]))],function(n,t){n(t,3,0,t.context.$implicit.directorio),n(t,6,0,!t.context.$implicit.directorio)},function(n,t){n(t,7,0,t.context.$implicit.nombre)})}function r(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,47,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](2,0,null,null,44,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](4,0,null,null,7,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](6,0,null,null,1,"h6",[["class","modal-title pull-lefth"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["¿Dónde quieres crear el archivo?"])),(n()(),s["ɵted"](-1,null,[" \n "])),(n()(),s["ɵeld"](9,0,null,null,1,"button",[["class","close"],["style","margin-rigth:8px;"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["×"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](13,0,null,null,23,"div",[["class","modal-body"],["style","height:350px;overflow-y: scroll;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](15,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](17,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](19,0,null,null,1,"label",[["class","form-control-label"],["for","file-name"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["Nombre:"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](22,0,null,null,5,"input",[["class","form-control"],["id","file-name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==s["ɵnov"](n,23)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==s["ɵnov"](n,23).onTouched()&&l}if("compositionstart"===t){l=!1!==s["ɵnov"](n,23)._compositionStart()&&l}if("compositionend"===t){l=!1!==s["ɵnov"](n,23)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.nombre=e)&&l}return l},null,null)),s["ɵdid"](23,16384,null,0,h.DefaultValueAccessor,[s.Renderer2,s.ElementRef,[2,h.COMPOSITION_BUFFER_MODE]],null,null),s["ɵprd"](1024,null,h.NG_VALUE_ACCESSOR,function(n){return[n]},[h.DefaultValueAccessor]),s["ɵdid"](25,671744,null,0,h.NgModel,[[8,null],[8,null],[8,null],[2,h.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),s["ɵprd"](2048,null,h.NgControl,null,[h.NgModel]),s["ɵdid"](27,16384,null,0,h.NgControlStatus,[h.NgControl],null,null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](30,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵand"](16777216,null,null,1,null,o)),s["ɵdid"](33,802816,null,0,u.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](38,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](40,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navBack()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Atras"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵeld"](43,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Crear"])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "])),(n()(),s["ɵted"](-1,null,["\n "]))],function(n,t){var e=t.component;n(t,25,0,e.nombre),n(t,33,0,e.directorioActual.archivos)},function(n,t){n(t,22,0,s["ɵnov"](t,27).ngClassUntouched,s["ɵnov"](t,27).ngClassTouched,s["ɵnov"](t,27).ngClassPristine,s["ɵnov"](t,27).ngClassDirty,s["ɵnov"](t,27).ngClassValid,s["ɵnov"](t,27).ngClassInvalid,s["ɵnov"](t,27).ngClassPending)})}function a(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,r,m)),s["ɵdid"](1,180224,null,0,c.a,[d.DialogService],null,null)],null,null)}var s=e("/oeL"),u=e("qbdv"),c=e("ij+S"),h=e("bm2B"),d=e("V672");e.n(d);e.d(t,"a",function(){return p});var f=[],m=s["ɵcrt"]({encapsulation:2,styles:f,data:{}}),p=s["ɵccf"]("confirm",c.a,a,{},{},[])},OZVu:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n){var t=n.flags;return null!=t?t:(n.ignoreCase?"i":"")+(n.global?"g":"")+(n.multiline?"m":"")}function e(n){return n.global?n:new RegExp(n.source,t(n)+"g")}function l(n){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(n.source)}function i(n,t,l){t=e(t);for(var i=l.line,o=l.ch,r=n.lastLine();i<=r;i++,o=0){t.lastIndex=o;var a=n.getLine(i),s=t.exec(a);if(s)return{from:p(i,s.index),to:p(i,s.index+s[0].length),match:s}}}function o(n,t,o){if(!l(t))return i(n,t,o);t=e(t);for(var r,a=1,s=o.line,u=n.lastLine();s<=u;){for(var c=0;c<a;c++){var h=n.getLine(s++);r=null==r?h:r+"\n"+h}a*=2,t.lastIndex=o.ch;var d=t.exec(r);if(d){var f=r.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=o.line+f.length-1,g=f[f.length-1].length;return{from:p(v,g),to:p(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function r(n,t){for(var e,l=0;;){t.lastIndex=l;var i=t.exec(n);if(!i)return e;if(e=i,(l=e.index+(e[0].length||1))==n.length)return e}}function a(n,t,l){t=e(t);for(var i=l.line,o=l.ch,a=n.firstLine();i>=a;i--,o=-1){var s=n.getLine(i);o>-1&&(s=s.slice(0,o));var u=r(s,t);if(u)return{from:p(i,u.index),to:p(i,u.index+u[0].length),match:u}}}function s(n,t,l){t=e(t);for(var i,o=1,a=l.line,s=n.firstLine();a>=s;){for(var u=0;u<o;u++){var c=n.getLine(a--);i=null==i?c.slice(0,l.ch):c+"\n"+i}o*=2;var h=r(i,t);if(h){var d=i.slice(0,h.index).split("\n"),f=h[0].split("\n"),m=a+d.length,v=d[d.length-1].length;return{from:p(m,v),to:p(m+f.length-1,1==f.length?v+f[0].length:f[f.length-1].length),match:h}}}}function u(n,t,e,l){if(n.length==t.length)return e;for(var i=0,o=e+Math.max(0,n.length-t.length);;){if(i==o)return i;var r=i+o>>1,a=l(n.slice(0,r)).length;if(a==e)return r;a>e?o=r:i=r+1}}function c(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.lastLine()+1-o.length;r<=s;r++,a=0){var c=n.getLine(r).slice(a),h=i(c);if(1==o.length){var d=h.indexOf(o[0]);if(-1==d)continue n;var e=u(c,h,d,i)+a;return{from:p(r,u(c,h,d,i)+a),to:p(r,u(c,h,d+o[0].length,i)+a)}}var v=h.length-o[0].length;if(h.slice(v)==o[0]){for(var g=1;g<o.length-1;g++)if(i(n.getLine(r+g))!=o[g])continue n;var b=n.getLine(r+o.length-1),y=i(b),C=o[o.length-1];if(b.slice(0,C.length)==C)return{from:p(r,u(c,h,v,i)+a),to:p(r+o.length-1,u(b,y,C.length,i))}}}}function h(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.firstLine()-1+o.length;r>=s;r--,a=-1){var c=n.getLine(r);a>-1&&(c=c.slice(0,a));var h=i(c);if(1==o.length){var d=h.lastIndexOf(o[0]);if(-1==d)continue n;return{from:p(r,u(c,h,d,i)),to:p(r,u(c,h,d+o[0].length,i))}}var v=o[o.length-1];if(h.slice(0,v.length)==v){for(var g=1,e=r-o.length+1;g<o.length-1;g++)if(i(n.getLine(e+g))!=o[g])continue n;var b=n.getLine(r+1-o.length),y=i(b);if(y.slice(y.length-o[0].length)==o[0])return{from:p(r+1-o.length,u(b,y,b.length-o[0].length,i)),to:p(r,u(c,h,v.length,i))}}}}function d(n,t,l,r){this.atOccurrence=!1,this.doc=n,l=l?n.clipPos(l):p(0,0),this.pos={from:l,to:l};var u;"object"==typeof r?u=r.caseFold:(u=r,r=null),"string"==typeof t?(null==u&&(u=!1),this.matches=function(e,l){return(e?h:c)(n,t,l,u)}):(t=e(t),r&&!1===r.multiline?this.matches=function(e,l){return(e?a:i)(n,t,l)}:this.matches=function(e,l){return(e?s:o)(n,t,l)})}var f,m,p=n.Pos;String.prototype.normalize?(f=function(n){return n.normalize("NFD").toLowerCase()},m=function(n){return n.normalize("NFD")}):(f=function(n){return n.toLowerCase()},m=function(n){return n}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=p(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(p(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=p(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,p(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var l=p(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:l,to:l},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,e){if(this.atOccurrence){var l=n.splitLines(t);this.doc.replaceRange(l,this.pos.from,this.pos.to,e),this.pos.to=p(this.pos.from.line+l.length-1,l[l.length-1].length+(1==l.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(n,t,e){return new d(this.doc,n,t,e)}),n.defineDocExtension("getSearchCursor",function(n,t,e){return new d(this,n,t,e)}),n.defineExtension("selectMatches",function(t,e){for(var l=[],i=this.getSearchCursor(t,this.getCursor("from"),e);i.findNext()&&!(n.cmpPos(i.to(),this.getCursor("to"))>0);)l.push({anchor:i.from(),head:i.to()});l.length&&this.setSelections(l,0)})})},Qdk6:function(n,t,e){!function(n){n(e("oiK7"),e("ppY8"))}(function(n){"use strict";function t(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function e(n,t){var e=Number(t);return/^[-+]/.test(t)?n.getCursor().line+e:e-1}n.commands.jumpToLine=function(n){var l=n.getCursor();t(n,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",l.line+1+":"+l.ch,function(t){if(t){var i;if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))n.setCursor(e(n,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(n.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=l.line+o+1),n.setCursor(o-1,l.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&n.setCursor(e(n,i[1]),l.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})},SVb2:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),i=e("EfLl"),o=e("CVNG"),r=e("IkMs"),a=e("DlWC"),s=e("m0eP"),u=e("MsHi"),c=e("ClIn"),h=e("CU81"),d=e("fXzC"),f=e("ufkV"),m=e("xDpJ"),p=e("DVtk"),v=e("OR9o"),g=e("qbdv"),b=e("bm2B"),y=e("dN2u"),C=e("KRwK"),x=e("V672"),E=(e.n(x),e("BkNc")),k=e("Zz+K"),R=e("wnyu"),w=e("EoP3"),S=e("2waW"),P=e("PY9B"),T=e("IBeK"),M=e("g5gQ"),X=e("xBEz"),Y=e("PuIS"),N=e("U0Tu"),_=e("3rU7"),A=e("Cb36"),O=e("5h8W"),I=e("6ade"),F=e("4HaF"),j=e("DaIH"),L=e("0WLp"),V=e("s6Yw"),D=e("DYHI"),z=e("1F35"),q=e("0vel"),B=(e.n(q),e("sdK6")),Z=(e.n(B),e("sRze"));e.d(t,"MateFunModuleNgFactory",function(){return G});var G=l["ɵcmf"](i.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[o.a,r.a,a.a,s.a,u.a,c.a,h.a,d.a,f.a,m.a,p.a,v.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,b["ɵi"],b["ɵi"],[]),l["ɵmpd"](4608,y.a,y.a,[l.ComponentFactoryResolver,l.Injector,C.a]),l["ɵmpd"](4608,x.DialogService,x.DialogService,[l.ComponentFactoryResolver,l.ApplicationRef,l.Injector,[2,x.DialogServiceConfig]]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,b["ɵba"],b["ɵba"],[]),l["ɵmpd"](512,b.FormsModule,b.FormsModule,[]),l["ɵmpd"](512,E.x,E.x,[[2,E.k],[2,E.c]]),l["ɵmpd"](512,k.a,k.a,[]),l["ɵmpd"](512,R.a,R.a,[]),l["ɵmpd"](512,w.a,w.a,[]),l["ɵmpd"](512,S.a,S.a,[]),l["ɵmpd"](512,P.a,P.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,M.a,M.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,N.a,N.a,[]),l["ɵmpd"](512,_.a,_.a,[]),l["ɵmpd"](512,A.a,A.a,[]),l["ɵmpd"](512,O.a,O.a,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,F.a,F.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,L.b,L.b,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,D.a,D.a,[]),l["ɵmpd"](512,z.a,z.a,[]),l["ɵmpd"](512,q.CodemirrorModule,q.CodemirrorModule,[]),l["ɵmpd"](512,B.BootstrapModalModule,B.BootstrapModalModule,[]),l["ɵmpd"](512,i.a,i.a,[]),l["ɵmpd"](1024,E.t,function(){return[[{path:"",component:Z.a}]]},[])])})},UfLB:function(n,t,e){"use strict";var l=e("p2gU");e.n(l);e.d(t,"a",function(){return o});var i=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),o=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.confirm=function(){this.result=!0,this.close()},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},fXzC:function(n,t,e){"use strict";function l(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,5,"input",[["class","nomArchivoInp form-control form-control-sm"],["name","archivo"],["placeholder","nombre del archivo"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==h["ɵnov"](n,1)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,1).onTouched()&&l}if("compositionstart"===t){l=!1!==h["ɵnov"](n,1)._compositionStart()&&l}if("compositionend"===t){l=!1!==h["ɵnov"](n,1)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.archivo.nombre=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},null,null)),h["ɵdid"](1,16384,null,0,d.DefaultValueAccessor,[h.Renderer2,h.ElementRef,[2,d.COMPOSITION_BUFFER_MODE]],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.DefaultValueAccessor]),h["ɵdid"](3,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](5,16384,null,0,d.NgControlStatus,[d.NgControl],null,null)],function(n,t){var e=t.component;n(t,3,0,"archivo",!e.archivo.editable||"Corregido"==e.archivo.estado||"Entregado"==e.archivo.estado,e.archivo.nombre)},function(n,t){n(t,0,0,h["ɵnov"](t,5).ngClassUntouched,h["ɵnov"](t,5).ngClassTouched,h["ɵnov"](t,5).ngClassPristine,h["ɵnov"](t,5).ngClassDirty,h["ɵnov"](t,5).ngClassValid,h["ɵnov"](t,5).ngClassInvalid,h["ɵnov"](t,5).ngClassPending)})}function i(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),h["ɵdid"](1,147456,null,0,d.NgSelectOption,[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),h["ɵdid"](2,147456,null,0,d["ɵq"],[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),h["ɵted"](3,null,["",""]))],function(n,t){n(t,1,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,"")),n(t,2,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,""))},function(n,t){var e=t.component;n(t,0,0,t.context.$implicit==e.configCodeMirror.theme),n(t,3,0,t.context.$implicit)})}function o(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](1,0,null,null,59,"div",[["style","width: 12em"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](3,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](5,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tema:"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](8,0,[["selectTheme",1]],null,4,"select",[["class","form-control form-control-sm"],["name","theme"]],null,[[null,"change"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==i.updateConfig(h["ɵnov"](n,8).value)&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](16777216,null,null,1,null,i)),h["ɵdid"](11,802816,null,0,f.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](15,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](17,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tamaño de fuente:"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](20,0,null,null,7,"div",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.aumentarFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Aâº"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](25,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.disminuirFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Aâ»"])),(n()(),h["ɵted"](27,null,["\n ","px \n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](30,0,null,null,23,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](32,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](34,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoF"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,35).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,35).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoF=e)&&l}return l},null,null)),h["ɵdid"](35,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](37,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](39,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n Mostrar advertencias de uso de funciones\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](42,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](44,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](46,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoI"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,47).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,47).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoI=e)&&l}return l},null,null)),h["ɵdid"](47,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](49,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](51,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n Mostrar advertencias de uso de operadores infijos\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](55,0,null,null,4,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](57,0,null,null,1,"button",[["class","btn btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.saveConfig()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Guardar"])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "]))],function(n,t){var e=t.component;n(t,11,0,e.themes);n(t,37,0,"argumentoF",e.argumentoF);n(t,49,0,"argumentoI",e.argumentoI)},function(n,t){n(t,27,0,t.component.configCodeMirror.fontSize),n(t,34,0,h["ɵnov"](t,39).ngClassUntouched,h["ɵnov"](t,39).ngClassTouched,h["ɵnov"](t,39).ngClassPristine,h["ɵnov"](t,39).ngClassDirty,h["ɵnov"](t,39).ngClassValid,h["ɵnov"](t,39).ngClassInvalid,h["ɵnov"](t,39).ngClassPending),n(t,46,0,h["ɵnov"](t,51).ngClassUntouched,h["ɵnov"](t,51).ngClassTouched,h["ɵnov"](t,51).ngClassPristine,h["ɵnov"](t,51).ngClassDirty,h["ɵnov"](t,51).ngClassValid,h["ɵnov"](t,51).ngClassInvalid,h["ɵnov"](t,51).ngClassPending)})}function r(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](1,0,null,null,65,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](3,0,null,null,52,"div",[["class","card-header"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](5,0,null,null,49,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;if("submit"===t){l=!1!==h["ɵnov"](n,7).onSubmit(e)&&l}if("reset"===t){l=!1!==h["ɵnov"](n,7).onReset()&&l}return l},null,null)),h["ɵdid"](6,16384,null,0,d["ɵbf"],[],null,null),h["ɵdid"](7,16384,null,0,d.NgForm,[[8,null],[8,null]],null,null),h["ɵprd"](2048,null,d.ControlContainer,null,[d.NgForm]),h["ɵdid"](9,16384,null,0,d.NgControlStatusGroup,[d.ControlContainer],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](16777216,null,null,1,null,l)),h["ɵdid"](12,16384,null,0,f.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](14,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","downloadFileButton"],["ngbPopover","Exportar (Ctrl+E)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["tiggers","click"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.downloadFile()&&l}return l},null,null)),h["ɵdid"](15,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](17,0,null,null,0,"i",[["class","fa fa-download "]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](20,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","margin-left: 10px; float: right;"],["tiggers","click"]],null,null,null,null,null)),h["ɵdid"](21,212992,[[2,4],["popover",4]],0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](26,16777216,null,null,7,"div",[["ngbPopover","Guardar archivo (Ctrl+G)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,null,null,null,null)),h["ɵdid"](27,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](29,0,null,null,3,"button",[["class","btn btn-sm btn-secondary"]],[[8,"disabled",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.guardarArchivo()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-save"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](35,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Reiniciar intérprete (Ctrl+R)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.reiniciarInterprete()&&l}return l},null,null)),h["ɵdid"](36,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](38,0,null,null,0,"i",[["class","fa fa-refresh"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](41,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Cargar programa (Ctrl+P)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.runCode()&&l}return l},null,null)),h["ɵdid"](42,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](44,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](47,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Nuevo archivo (Ctrl+A)"],["placement","bottom"],["style","float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.seleccionarDirectorio()&&l}return l},null,null)),h["ɵdid"](48,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](50,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,[["popoverContent",2]],null,0,null,o)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](57,0,null,null,8,"codemirror",[["class","codemirrorPrograma"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"]],function(n,t,e){var l=!0,i=n.component;if("ngModelChange"===t){l=!1!==(i.archivo.contenido=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},v.a,v.b)),h["ɵdid"](58,278528,null,0,f.NgStyle,[h.KeyValueDiffers,h.ElementRef,h.Renderer],{ngStyle:[0,"ngStyle"]},null),h["ɵpod"](59,{"font-size":0}),h["ɵdid"](60,4374528,[[1,4]],0,g.CodemirrorComponent,[],{config:[0,"config"]},null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[g.CodemirrorComponent]),h["ɵdid"](62,671744,null,0,d.NgModel,[[8,null],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](64,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "]))],function(n,t){var e=t.component;n(t,12,0,e.archivo);n(t,15,0,"Exportar (Ctrl+E)","bottom","mouseenter:mouseleave");n(t,21,0,h["ɵnov"](t,53),"Configuración","bottom");n(t,27,0,"Guardar archivo (Ctrl+G)","bottom","mouseenter:mouseleave");n(t,36,0,"Reiniciar intérprete (Ctrl+R)","bottom","mouseenter:mouseleave");n(t,42,0,"Cargar programa (Ctrl+P)","bottom","mouseenter:mouseleave");n(t,48,0,"Nuevo archivo (Ctrl+A)","bottom","mouseenter:mouseleave"),n(t,58,0,n(t,59,0,e.configCodeMirror.fontSize+"px")),n(t,60,0,e.configCodeMirror),n(t,62,0,e.archivo.contenido)},function(n,t){var e=t.component;n(t,5,0,h["ɵnov"](t,9).ngClassUntouched,h["ɵnov"](t,9).ngClassTouched,h["ɵnov"](t,9).ngClassPristine,h["ɵnov"](t,9).ngClassDirty,h["ɵnov"](t,9).ngClassValid,h["ɵnov"](t,9).ngClassInvalid,h["ɵnov"](t,9).ngClassPending),n(t,29,0,!e.modificado),n(t,57,0,h["ɵnov"](t,64).ngClassUntouched,h["ɵnov"](t,64).ngClassTouched,h["ɵnov"](t,64).ngClassPristine,h["ɵnov"](t,64).ngClassDirty,h["ɵnov"](t,64).ngClassValid,h["ɵnov"](t,64).ngClassInvalid,h["ɵnov"](t,64).ngClassPending)})}function a(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](1,0,null,null,1,"canvas-component",[],null,[[null,"canvasComp"],["window","resize"],["document","click"]],function(n,t,e){var l=!0,i=n.component;if("window:resize"===t){l=!1!==h["ɵnov"](n,2).onResize(e)&&l}if("document:click"===t){l=!1!==h["ɵnov"](n,2).documentClicked(e)&&l}if("canvasComp"===t){l=!1!==i.canvasC&&l}return l},b.a,b.b)),h["ɵdid"](2,4243456,[[3,4]],0,y.a,[C.a],null,null),(n()(),h["ɵted"](-1,null,["\n "]))],null,null)}function s(n){return h["ɵvid"](0,[h["ɵqud"](671088640,1,{codemirror:0}),h["ɵqud"](671088640,2,{popover:0}),h["ɵqud"](671088640,3,{canvasC:0}),(n()(),h["ɵeld"](3,0,null,null,1,"notificacion",[],null,null,null,x.a,x.b)),h["ɵdid"](4,114688,null,0,E.a,[k.a],null,null),(n()(),h["ɵted"](-1,null,[" \n"])),(n()(),h["ɵeld"](6,0,null,null,41,"div",[["class","container-fluid"],["style"," padding-left: 0px; padding-right: 0px; margin-top: -13px; margin-left: -6px; margin-right: -6px;"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](8,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](10,0,null,null,24,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](12,0,null,null,21,"ngb-tabset",[],null,null,null,R.a,R.b)),h["ɵdid"](13,2146304,null,1,w.a,[S.a],{destroyOnHide:[0,"destroyOnHide"]},null),h["ɵqud"](603979776,4,{tabs:1}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](16,0,null,null,7,"ngb-tab",[["id","ProgramBtn"],["title","Programa"]],null,null,null,null,null)),h["ɵdid"](17,16384,[[4,4]],2,w.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,5,{contentTpl:0}),h["ɵqud"](335544320,6,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,null,null,1,null,r)),h["ɵdid"](22,16384,[[5,4]],0,w.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](25,0,null,null,7,"ngb-tab",[["id","FigurasBtn"],["title","Figuras"]],null,null,null,null,null)),h["ɵdid"](26,16384,[[4,4]],2,w.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,7,{contentTpl:0}),h["ɵqud"](335544320,8,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵand"](0,null,null,1,null,a)),h["ɵdid"](31,16384,[[7,4]],0,w.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,[" \n\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵeld"](36,0,null,null,9,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n \n\n\n "])),(n()(),h["ɵeld"](39,0,null,null,4,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵeld"](41,0,null,null,1,"div",[["id","console"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,[" "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n\n "])),(n()(),h["ɵted"](-1,null,["\n "])),(n()(),h["ɵted"](-1,null,["\n"])),(n()(),h["ɵted"](-1,null,["\n\n"]))],function(n,t){n(t,4,0);n(t,13,0,!1);n(t,17,0,"ProgramBtn","Programa");n(t,26,0,"FigurasBtn","Figuras")},null)}function u(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,4,"matefun",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==h["ɵnov"](n,4).documentClicked(e)&&l}return l},s,F)),h["ɵprd"](4608,null,P.a,P.a,[]),h["ɵprd"](4608,null,p.a,p.a,[]),h["ɵprd"](512,null,T.a,T.a,[M.i,X.c,Y.a]),h["ɵdid"](4,4308992,null,0,N.a,[_.a,Y.a,C.a,h.ElementRef,k.a,A.a,O.DialogService,T.a],null,null)],function(n,t){n(t,4,0)},null)}var c=e("26LX"),h=e("/oeL"),d=e("bm2B"),f=e("qbdv"),m=e("mQQt"),p=e("7zUS"),v=e("KPCT"),g=e("nfVm"),b=(e.n(g),e("kqFu")),y=e("pB18"),C=e("2qVr"),x=e("hAtc"),E=e("+iRM"),k=e("uiTn"),R=e("Vnhz"),w=e("Hjei"),S=e("+E40"),P=e("qtCd"),T=e("fdEY"),M=e("CPp0"),X=e("BkNc"),Y=e("6akk"),N=e("sRze"),_=e("dh/p"),A=e("h7Ol"),O=e("V672");e.n(O);e.d(t,"a",function(){return j});var I=[c.a],F=h["ɵcrt"]({encapsulation:0,styles:I,data:{}}),j=h["ɵccf"]("matefun",N.a,u,{},{},[])},fdEY:function(n,t,e){"use strict";var l=e("BkNc"),i=e("CPp0"),o=e("bKpL"),r=(e.n(o),e("6akk")),a=e("5v8a"),s=(e.n(a),e("xpf9")),u=(e.n(s),e("5FRs"));e.d(t,"a",function(){return c});var c=function(){function n(n,t,e){this.http=n,this.router=t,this.authService=e}return n.prototype.actualizarConfiguracion=function(n,t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),l=new i.g({headers:e});return this.http.put(u.a+"/servicios/usuario/"+n+"/configuracion",t,l).map(this.extractData).catch(this.handleError)},n.prototype.extractData=function(n){return n.json()||[]},n.prototype.handleError=function(n){401==n.status&&this.router.navigate(["/login"]);var t=n.message?n.message:n.status?n.status+" - "+n.statusText:"Server error";return console.error(t),o.Observable.throw(t)},n.ctorParameters=function(){return[{type:i.i},{type:l.c},{type:r.a}]},n}()},gZxW:function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),r["ɵted"](1,null,["","%"]))],null,function(n,t){n(t,1,0,t.component.getPercentValue())})}function i(n){return r["ɵvid"](2,[(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵeld"](1,0,null,null,8,"div",[["class","progress"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵeld"](3,0,null,null,5,"div",[["aria-valuemin","0"],["role","progressbar"]],[[8,"className",0],[4,"width","%"],[1,"aria-valuenow",0],[1,"aria-valuemax",0]],null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](6,16384,null,0,a.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),r["ɵncd"](null,0),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵted"](-1,null,["\n "])),(n()(),r["ɵted"](-1,null,["\n "]))],function(n,t){n(t,6,0,t.component.showValue)},function(n,t){var e=t.component;n(t,3,0,r["ɵinlineInterpolate"](3,"progress-bar",e.type?" bg-"+e.type:"","",e.animated?" progress-bar-animated":"","",e.striped?" progress-bar-striped":"",""),e.getPercentValue(),e.getValue(),e.max)})}function o(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"ngb-progressbar",[],null,null,null,i,h)),r["ɵdid"](1,49152,null,0,s.a,[u.a],null,null)],null,null)}var r=e("/oeL"),a=e("qbdv"),s=e("n/Gy"),u=e("Wv1e");e.d(t,"b",function(){return h}),t.a=i;var c=[],h=r["ɵcrt"]({encapsulation:2,styles:c,data:{}});r["ɵccf"]("ngb-progressbar",s.a,o,{max:"max",animated:"animated",striped:"striped",showValue:"showValue",type:"type",value:"value"},{},["*"])},"ij+S":function(n,t,e){"use strict";var l=e("p2gU"),i=(e.n(l),e("78g9"));e.d(t,"a",function(){return r});var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),r=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.confirm=function(){var n=this,t=/^[A-Z]/;if(void 0==this.nombre||""==this.nombre)this.parent.notifService.error("Nombre de archivo invalido.");else if(t.test(this.nombre)){var e=new i.b;e.cedulaCreador=this.parent.authService.getUser().cedula,e.contenido="",e.nombre=this.nombre,e.directorio=!1,e.padreId=this.directorioActual.id,e.editable=!0,this.parent.haskellService.crearArchivo(e).subscribe(function(t){n.parent.archivo=t,n.parent.ghciService.loadFile(t.id),n.parent.sessionService.setArchivo(t)},function(t){n.parent.notifService.error(t)}),this.result=!0,this.close()}else this.parent.notifService.error("Nombre de archivo debe iniciar con mayusula.")},t.prototype.navToDir=function(n){n.directorio&&(this.directorioActual=n)},t.prototype.navBack=function(){var n=this.directorioActual.padreId,t=this.parent.sessionService.getArchivosList(),e=t.filter(function(t){return t.id===n})[0];this.directorioActual=e},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},kqFu:function(n,t,e){"use strict";function l(n){return d["ɵvid"](0,[(n()(),d["ɵted"](0,null,["\n\t\t\t","\n\t\t"]))],null,function(n,t){n(t,0,0,t.component.tipoZoomDesc)})}function i(n){return d["ɵvid"](0,[(n()(),d["ɵted"](-1,null,["\n\t\t\t"])),(n()(),d["ɵeld"](1,0,null,null,23,"div",[["style","width: 8em"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),d["ɵeld"](3,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),d["ɵeld"](5,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),d["ɵeld"](7,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","evaluacionVertical"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarEvaluacionVertical()&&l}return l},null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\tEvaluacion\n\t\t\t\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),d["ɵeld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),d["ɵeld"](12,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),d["ɵeld"](14,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarGrilla"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarGrilla()&&l}return l},null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\tGrilla\n\t\t\t\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),d["ɵeld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),d["ɵeld"](19,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),d["ɵeld"](21,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarEjes"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarEjes()&&l}return l},null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t\t\tEjes\n\t\t\t\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t"]))],null,function(n,t){var e=t.component;n(t,7,0,e.evaluacionVertical),n(t,14,0,e.mostrarGrilla),n(t,21,0,e.mostrarEjes)})}function o(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.play()&&l}return l},null,null)),(n()(),d["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null))],null,null)}function r(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.pause()&&l}return l},null,null)),(n()(),d["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-pause"]],null,null,null,null,null))],null,null)}function a(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,1,"ngb-progressbar",[["style","float: left; width: 45%"],["type","info"]],null,null,null,f.a,f.b)),d["ɵdid"](1,49152,null,0,m.a,[p.a],{type:[0,"type"],value:[1,"value"]},null)],function(n,t){var e=t.component;n(t,1,0,"info",(e.frameAnimacion+1)/e.elementosAnimacion.length*100)},null)}function s(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,1,"span",[["style","float: right; margin-left: 10px"]],null,null,null,null,null)),(n()(),d["ɵted"](1,null,[" ","ms"]))],null,function(n,t){n(t,1,0,t.component.timer)})}function u(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,0,"input",[["max","1500"],["min","40"],["style","float: right; width: 20%"],["type","range"]],[[8,"value",0]],[[null,"input"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==(i.timer=e.target.value)&&l}return l},null,null))],null,function(n,t){n(t,0,0,t.component.timer)})}function c(n){return d["ɵvid"](0,[d["ɵqud"](402653184,1,{canvasRef:0}),d["ɵqud"](402653184,2,{popover:0}),(n()(),d["ɵeld"](2,0,null,null,60,"div",[["class","card"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n"])),(n()(),d["ɵted"](-1,null,["\n\t"])),(n()(),d["ɵeld"](5,0,null,null,56,"div",[["class","card-block contenedor-canvas"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](7,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["placement","bottom"],["style","float:right; margin-right: 198px; margin-top: -55px"],["triggers","mouseenter:mouseleave:click"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.cambiarTipoZoom()&&l}return l},null,null)),d["ɵdid"](8,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵted"](9,null,["",""])),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵand"](0,[["popoverTipoZoom",2]],null,0,null,l)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](13,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom +"],["style","float:right; margin-right: 165px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMas()&&l}return l},null,null)),d["ɵdid"](14,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵeld"](15,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](17,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom -"],["style","float:right; margin-right: 132px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMenos()&&l}return l},null,null)),d["ɵdid"](18,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵeld"](19,0,null,null,0,"i",[["class","fa fa-minus"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](21,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Centrar"],["style"," float:right; margin-right: 99px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.centrarCanvas()&&l}return l},null,null)),d["ɵdid"](22,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](25,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Borrar"],["style"," float:right; margin-right: 66px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.limpiarCanvas()&&l}return l},null,null)),d["ɵdid"](26,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-trash"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\n\t\t"])),(n()(),d["ɵeld"](29,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Descargar PNG"],["style","float:right; margin-right: 33px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.exportImg()&&l}return l},null,null)),d["ɵdid"](30,212992,null,0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),d["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-download"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵeld"](33,0,null,null,1,"a",[["download","Canvas.png"],["id","dl"],["style","display: none"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["Download Canvas"])),(n()(),d["ɵted"](-1,null,["\n\n\t\t"])),(n()(),d["ɵeld"](36,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","float:right; margin-top: -55px"],["tiggers","click"]],null,null,null,null,null)),d["ɵdid"](37,212992,[[2,4],["popover",4]],0,g.a,[d.ElementRef,d.Renderer2,d.Injector,d.ComponentFactoryResolver,d.ViewContainerRef,b.a,d.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),d["ɵted"](-1,null,["\n\t\t\t"])),(n()(),d["ɵeld"](39,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵand"](0,[["popoverCanvas",2]],null,0,null,i)),(n()(),d["ɵted"](-1,null,["\n\t\t\n\t\t"])),(n()(),d["ɵand"](16777216,null,null,1,null,o)),d["ɵdid"](45,16384,null,0,y.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵand"](16777216,null,null,1,null,r)),d["ɵdid"](48,16384,null,0,y.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),d["ɵted"](-1,null,["\n\n\t\t"])),(n()(),d["ɵand"](16777216,null,null,1,null,a)),d["ɵdid"](51,16384,null,0,y.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵand"](16777216,null,null,1,null,s)),d["ɵdid"](54,16384,null,0,y.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),d["ɵted"](-1,null,["\n \t\t"])),(n()(),d["ɵand"](16777216,null,null,1,null,u)),d["ɵdid"](57,16384,null,0,y.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),d["ɵted"](-1,null,[" \n\n\t\t"])),(n()(),d["ɵeld"](59,0,[[1,0],["canvasElement",1]],null,1,"canvas",[["height","2000"],["id","myCanvas"],["style","max-width: 100%;"],["width","2000"]],null,[[null,"mousemove"],[null,"touchmove"],[null,"touchstart"],[null,"touchend"],[null,"mouseleave"],[null,"mousewheel"],[null,"DOMMouseScroll"]],function(n,t,e){var l=!0,i=n.component;if("mousemove"===t){l=!1!==i.moveGraph(e)&&l}if("touchmove"===t){l=!1!==i.moveGraph(e)&&l}if("touchstart"===t){l=!1!==i.moveGraph(e)&&l}if("touchend"===t){l=!1!==i.moveGraph(e)&&l}if("mouseleave"===t){l=!1!==i.leaveCanvas(e)&&l}if("mousewheel"===t){l=!1!==i.zoomGraph(e)&&l}if("DOMMouseScroll"===t){l=!1!==i.zoomGraph(e)&&l}return l},null,null)),(n()(),d["ɵted"](-1,null,["\n\t\t"])),(n()(),d["ɵted"](-1,null,["\n\t\t\n\t"])),(n()(),d["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,8,0,d["ɵnov"](t,11),"bottom","mouseenter:mouseleave:click");n(t,14,0,"Zoom +","bottom","mouseenter:mouseleave");n(t,18,0,"Zoom -","bottom","mouseenter:mouseleave");n(t,22,0,"Centrar","bottom","mouseenter:mouseleave");n(t,26,0,"Borrar","bottom","mouseenter:mouseleave");n(t,30,0,"Descargar PNG","bottom","mouseenter:mouseleave");n(t,37,0,d["ɵnov"](t,42),"Configuración","bottom"),n(t,45,0,!e.animando&&e.elementosAnimacion.length>0),n(t,48,0,e.animando&&e.elementosAnimacion.length>0),n(t,51,0,e.elementosAnimacion.length>0),n(t,54,0,e.elementosAnimacion.length>0),n(t,57,0,e.elementosAnimacion.length>0)},function(n,t){n(t,9,0,t.component.tipoZoom)})}function h(n){return d["ɵvid"](0,[(n()(),d["ɵeld"](0,0,null,null,1,"canvas-component",[],null,[["window","resize"],["document","click"]],function(n,t,e){var l=!0;if("window:resize"===t){l=!1!==d["ɵnov"](n,1).onResize(e)&&l}if("document:click"===t){l=!1!==d["ɵnov"](n,1).documentClicked(e)&&l}return l},c,E)),d["ɵdid"](1,4243456,null,0,v.a,[C.a],null,null)],null,null)}var d=e("/oeL"),f=e("gZxW"),m=e("n/Gy"),p=e("Wv1e"),v=e("pB18"),g=e("mQQt"),b=e("7zUS"),y=e("qbdv"),C=e("2qVr");e.d(t,"b",function(){return E}),t.a=c;var x=[],E=d["ɵcrt"]({encapsulation:2,styles:x,data:{}});d["ɵccf"]("canvas-component",v.a,h,{},{},[])},pB18:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__=__webpack_require__("2qVr");__webpack_require__.d(__webpack_exports__,"a",function(){return CanvasComponent});var CanvasComponent=function(){function CanvasComponent(ghciService){var _this=this;this.ghciService=ghciService,this.animar_=!0,this.objetos=[],this.evaluacionVertical=!0,this.elementosAnimacion=[],this.frameAnimacion=0,this.animando=!0,this.mostrarEjes=!0,this.mostrarGrilla=!0,this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes",this.timer=1e3,this.mostrarOcultarEjes=function(){this.mostrarEjes=!this.mostrarEjes,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarOcultarGrilla=function(){this.mostrarGrilla=!this.mostrarGrilla,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarEvaluacionVertical=function(){this.evaluacionVertical=!this.evaluacionVertical,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.limpiarCanvas=function(){this.animar_=!1,clearTimeout(this.timeOutRef),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context))},this.centrarCanvas=function(){this.maxX=10,this.maxY=10/this.aspectRatio,this.minX=-10,this.minY=-10/this.aspectRatio,this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitsPerTickX=1,this.unitsPerTickY=1,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=-this.minY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.cambiarTipoZoom=function(){"Todo"==this.tipoZoom?(this.tipoZoom="Abscisa",this.tipoZoomDesc="Zoom en abscisa"):"Abscisa"==this.tipoZoom?(this.tipoZoom="Ordenada",this.tipoZoomDesc="Zoom en ordenada"):(this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes")},this.generarFuncion=function(n){for(var t,e="",l=0,i=n.funs;l<i.length;l++){var o=i[l];e="var "+o.fun+" = function("+o.args.join()+"){\n return "+this.generarExpresion(o.bdy)+"}\n"+e,o.fun==n.graph&&(e+="return "+o.fun+"("+o.args.join()+");\n",t=o)}return e="("+t.args.join()+",delta,hayPunto)=>{\n"+e+"}"},this.generarExpresion=function(n){var t=this,e="";return"cnd"==n.kind?e=" ("+this.generarExpresion(n.cond)+"?"+this.generarExpresion(n.exp1)+":"+this.generarExpresion(n.exp2)+") ":"bop"==n.kind?e="=="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && hayPunto() ":"/="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) > delta || Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && !hayPunto() ":"^"==n.op?" Math.pow("+this.generarExpresion(n.exp1)+","+this.generarExpresion(n.exp2)+") ":" ("+this.generarExpresion(n.exp1)+")"+n.op+"("+this.generarExpresion(n.exp2)+") ":"uop"==n.kind?e=" "+n.op+" "+this.generarExpresion(n.exp)+" ":"app"==n.kind?("cos"==n.fun?n.fun="Math.cos":"sen"==n.fun?n.fun="Math.sin":"red"==n.fun&&(n.fun="Math.round"),e=" "+n.fun+"("+n.args.map(function(n){return t.generarExpresion(n)}).join()+") "):e="tup"==n.kind?" ("+n.exps.map(function(n){return t.generarExpresion(n)}).join()+") ":"lit"==n.kind?" "+n.val+" ":"var"==n.kind?" "+n.var+" ":" undefined ",e},this.animar=function(){this.animar_=!0,(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=this.elementosAnimacion[this.frameAnimacion],this.dibujarObjetos(),this.animando&&(this.timeOutRef=setTimeout(function(){this.animando&&(this.frameAnimacion++,this.frameAnimacion>=this.elementosAnimacion.length&&(this.frameAnimacion=0),this.animar_&&this.animar())}.bind(this),this.timer))},this.dibujarObjetos=function(){(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context));for(var n=0,t=this.objetos;n<t.length;n++){var e=t[n];"circulo"==e.tipo?this.drawCircle(e.x,e.y,e.r,e.color,e.rotacion):"grafica"==e.tipo?this.drawEquation(e.ecuacion,e.color,e.thickness):"rectangulo"==e.tipo?this.drawRect(e.x,e.y,e.w,e.h,e.color,e.rotacion):"texto"==e.tipo?this.drawText(e.x,e.y,e.text,e.size,e.color,e.rotacion):"poligono"==e.tipo?this.drawPolyline(!0,e.puntos,e.color,e.rotacion):"lineas"==e.tipo&&this.drawPolyline(!1,e.puntos,e.color,e.rotacion)}},this.Graph=function(n){this.config={canvasId:"myCanvas",minX:-10,minY:-10/n,maxX:10,maxY:10/n,unitsPerTickX:1,unitsPerTickY:1},this.aspectRatio=n,this.canvas=this.canvasRef,this.minX=this.config.minX,this.minY=this.config.minY,this.maxX=this.config.maxX,this.maxY=this.config.maxY,this.unitsPerTickX=this.config.unitsPerTickX,this.unitsPerTickY=this.config.unitsPerTickY,this.axisColor="#aaa",this.font="8pt Calibri",this.tickSize=10,this.context=this.canvasRef.nativeElement.getContext("2d"),this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=Math.round(Math.abs(this.minY/this.rangeY)*this.canvasRef.nativeElement.height),this.centerX=Math.round(Math.abs(this.minX/this.rangeX)*this.canvasRef.nativeElement.width),this.precision=1e3,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY},this.drawXAxis=function(n){n.save();var t=this.unitsPerTickX*this.unitX;n.font=this.font,n.textAlign="center",n.textBaseline="top";var e=this.centerX-t,l=-1*this.unitsPerTickX;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l-this.unitsPerTickX).toFixed(2)),e=Math.round(e-t);for(e=this.centerX+t,l=this.unitsPerTickX;e<this.canvas.nativeElement.width;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l+this.unitsPerTickX).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY-5),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY+5),n.stroke()),n.restore()},this.drawYAxis=function(n){n.save();var t=this.unitsPerTickY*this.unitY;n.font=this.font,n.textAlign="right",n.textBaseline="middle";var e=this.centerY-t,l=this.unitsPerTickY;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l+this.unitsPerTickY).toFixed(2)),e=Math.round(e-t);for(e=this.centerY+t,l=-1*this.unitsPerTickY;e<this.canvasRef.nativeElement.height;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l-this.unitsPerTickY).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX+5,12),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX-5,12),n.stroke()),n.restore()},this.transformContext=function(n){n.translate(this.centerX,this.centerY),n.scale(this.scaleX,-this.scaleY)},this.hayGraficas=function(){for(var n=0,t=this.objetos;n<t.length;n++){if("grafica"==t[n].tipo)return!0}return!1},this.verticalLine=function(n,t){if(this.hayGraficas()){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();this.context;this.context.moveTo(n,0),this.context.lineTo(n,this.canvasRef.nativeElement.height);for(var e=-this.centerX/this.scaleX,l=-this.centerY/this.scaleY,i=n/this.canvasRef.nativeElement.width*this.rangeX+e,o=0,r=this.objetos;o<r.length;o++){var a=r[o];if("grafica"==a.tipo){var i=Math.trunc(100*i)/100,s=a.ecuacion(i,this.rangeX/500,function(){return!0}),u=-(s+l)/this.rangeY*this.canvasRef.nativeElement.height;a.color&&(this.context.fillStyle=a.color),this.context.fillText("("+i.toFixed(2)+","+s.toFixed(2)+")",n+10,u),this.context.fillStyle="black",this.context.fillRect(n-2.5,u-2.5,5,5)}}this.context.stroke()}},this.leaveCanvas=function(n){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.moveGraph=function(n){if(1===n.buttons&&"mousemove"==n.type)this.centerX+=n.offsetX-this.lastPositionX,this.centerY+=n.offsetY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if("touchend"==n.type)1==n.touches.length&&(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY);else if("touchmove"==n.type){if(1==n.touches.length)this.centerX+=n.touches[0].clientX-this.lastPositionX,this.centerY+=n.touches[0].clientY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if(this.lastZoom&&n.touches.length>1){this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY;var t=n.touches[1].clientX,e=n.touches[1].clientY,l=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2));Math.abs(l-this.lastZoom)>2&&this.zoom((l-this.lastZoom)/15),this.lastZoom=l}}else if("touchstart"==n.type)if(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,n.touches.length>1){var t=n.touches[1].clientX,e=n.touches[1].clientY;this.lastZoom=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2))}else this.lastZoom=void 0;else this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY;if(this.evaluacionVertical){var t,e,i=this.canvasRef.nativeElement.getBoundingClientRect();n instanceof MouseEvent?(t=n.clientX-i.left,e=n.clientY-i.top):n instanceof TouchEvent&&(t=n.touches[0].clientX-i.left,e=n.touches[0].clientY-i.top),this.verticalLine(t,e)}n instanceof TouchEvent&&n.preventDefault()},this.zoomGraph=function(n){var n=window.event||n,t=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail));return this.zoom(t,n.clientX,n.clientY),!1},this.zoomMas=function(){this.zoom(1)},this.zoomMenos=function(){this.zoom(-1)},this.zoom=function(n,t,e){var l=n*this.rangeX/20,i=n*this.rangeY/20;if(!("Todo"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0||this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0)||"Abscisa"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0)||"Ordenada"==this.tipoZoom&&(this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0))){if(t&&e){var o=this.canvasRef.nativeElement.getBoundingClientRect(),r=t-o.left,a=e-o.top,s=-this.centerX/this.scaleX,u=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),c=r/this.canvasRef.nativeElement.width*this.rangeX+s,h=(1-a/this.canvasRef.nativeElement.height)*this.rangeY+u,d=Math.abs(c-this.minX)/Math.abs(this.maxX-this.minX),f=Math.abs(h-this.minY)/Math.abs(this.maxY-this.minY);"Todo"==this.tipoZoom?(this.maxX-=l*(1-d),this.maxY-=i*(1-f),this.minX+=l*d,this.minY+=i*f):"Abscisa"==this.tipoZoom?(this.maxX-=l*(1-d),this.minX+=l*d):(this.maxY-=i*(1-f),this.minY+=i*f)}else"Todo"==this.tipoZoom?(this.maxX-=l,this.maxY-=i,this.minX+=l,this.minY+=i):"Abscisa"==this.tipoZoom?(this.maxX-=l,this.minX+=l):(this.maxY-=i,this.minY+=i);this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.rangeX>15?this.unitsPerTickX=Math.round(this.rangeX/15):this.rangeX>4?this.unitsPerTickX=1:this.rangeX>1.5?this.unitsPerTickX=Math.round(this.rangeX/15*10)/10:this.rangeX>.4?this.unitsPerTickX=.1:this.rangeX>.15?this.unitsPerTickX=Math.round(this.rangeX/15*100)/100:this.unitsPerTickX=.01,this.rangeY>15?this.unitsPerTickY=Math.round(this.rangeY/15):this.rangeY>4?this.unitsPerTickY=1:this.rangeY>1.5?this.unitsPerTickY=Math.round(this.rangeY/15*10)/10:this.rangeY>.4?this.unitsPerTickY=.1:this.rangeY>.15?this.unitsPerTickY=Math.round(this.rangeY/15*100)/100:this.unitsPerTickY=.01,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=this.maxY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()}},this.drawCircle=function(n,t,e,l,i){var o=this.context;o.save(),o.save(),this.transformContext(o),o.beginPath();try{o.translate(0,0);var r=i*Math.PI/180,a=Math.cos(r)*n-Math.sin(r)*t,s=Math.sin(r)*n+Math.cos(r)*t;o.rotate(-r),this.context.arc(a,s,e,0,2*Math.PI,!1),l&&(o.fillStyle=l,o.fill())}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawText=function(n,t,e,l,i,o){this.context.save();var r=-this.centerX/this.scaleX,a=-this.centerY/this.scaleY,s=-(t+a)/this.rangeY*this.canvasRef.nativeElement.height,u=(n-r)/this.rangeX*this.canvasRef.nativeElement.width;i&&(this.context.fillStyle=i),this.context.translate(u,s);var c=o*Math.PI/180;this.context.rotate(c),this.context.font=100*l/this.rangeX+"pt Arial",this.context.textBaseline="middle",this.context.textAlign="center",this.context.fillText(e,0,0),this.context.restore()},this.drawRect=function(n,t,e,l,i,o){var r=this.context;r.save(),r.save(),this.transformContext(r),r.beginPath();try{r.translate(0,0);var a=o*Math.PI/180,s=Math.cos(a)*n-Math.sin(a)*t,u=Math.sin(a)*n+Math.cos(a)*t;r.rotate(-a),r.rect(s-e/2,u-l/2,e,l),i&&(r.fillStyle=i,r.fill()),r.translate(this.centerX,this.centerY)}catch(n){this.limpiarCanvas()}r.restore(),r.lineJoin="round",r.lineWidth=this.thickness,r.strokeStyle=this.color,r.stroke(),r.restore()},this.drawElipse=function(n,t,e,l,i){var o=this.context;this.color="green",this.thickness=3,o.save(),o.save(),this.transformContext(o),o.beginPath();try{this.context.ellipse(n,t,e,l,i*Math.PI/180,0,2*Math.PI)}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawEquation=function(n,t,e){var l=this.context;l.save(),l.save(),this.transformContext(l),l.beginPath(),l.lineWidth=e;try{var i=n(this.minX);i>1e7?i=1e7:i<-1e7&&(i=-1e7),l.moveTo(this.minX,i);for(var o=!0,r=void 0,a=void 0,s=void 0,u=(this.precision,this.rangeX/this.precision),c=this.rangeX/200,h=this.minX+this.iteration;h<=this.maxX;h+=this.iteration)try{var d=!1,f=function(){return d=!0,!0},m=n(h,u,f);if(d)this.context.fillRect(h-c/2,m-c/2,c,c),o=!0,d=!1;else{if(void 0!=s){var p=Math.tan(Math.atan(s)+Math.PI/8),v=Math.tan(Math.atan(s)-Math.PI/8);s>0&&p<0&&(p=1e20),s<0&&v>0&&(v=-1e20);var g=(h-r)*p-(m-a),b=(h-r)*v-(m-a);(g<0||b>0)&&(o=!0)}r&&(s=(m-a)/(h-r));var y=m;m>1e7?y=1e7:m<-1e7&&(y=-1e7),o?(l.moveTo(h,y),o=!1):l.lineTo(h,y)}r=h,a=m}catch(n){o=!0}}catch(n){this.limpiarCanvas()}l.restore(),l.lineJoin="bevel",l.lineWidth=e,l.strokeStyle=t,l.stroke(),l.restore()},this.drawPolyline=function(n,t,e,l){var i=this.context;i.save(),i.save(),this.transformContext(i),i.beginPath();try{if(t.length>1){var o=t[0];i.moveTo(o[0],o[1]);for(var r=0,a=t;r<a.length;r++){var s=a[r];i.lineTo(s[0],s[1])}n&&i.lineTo(o[0],o[1])}}catch(n){this.limpiarCanvas()}i.restore(),i.lineJoin="round",i.strokeStyle=e,e&&(i.fillStyle=e,i.fill()),i.strokeStyle="black",i.stroke(),i.restore()},ghciService.messages.subscribe(function(canvas){if(_this.limpiarCanvas(),"canvas"==canvas.tipo)_this.objetos=JSON.parse(canvas.resultado),_this.elementosAnimacion=[],_this.frameAnimacion=0,_this.dibujarObjetos();else if("animacion"==canvas.tipo)_this.elementosAnimacion=canvas.resultado.map(function(n){return JSON.parse(n)}),_this.frameAnimacion=0,_this.animando=!0,_this.animar();else if("graph"==canvas.tipo){var jsonCanvas=JSON.parse(canvas.resultado),fun=_this.generarFuncion(jsonCanvas);_this.objetos=[{tipo:"grafica",ecuacion:eval(fun),color:"black",thickness:2}],_this.dibujarObjetos()}},function(n){_this.objetos=[]})}return CanvasComponent.prototype.setTimer=function(n){n>40&&n<1500&&(this.timer=n)},CanvasComponent.prototype.onResize=function(n){if(this.canvasRef.nativeElement.offsetParent){var t=window.devicePixelRatio||1;t>2?t=2:t<1&&(t=1),this.canvasRef.nativeElement.width=this.canvasRef.nativeElement.offsetParent.offsetWidth*t*.94,this.canvasRef.nativeElement.height=this.canvasRef.nativeElement.offsetParent.offsetHeight*t*.94;var e=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(e),this.dibujarObjetos()}},CanvasComponent.prototype.exportImg=function(){function n(){var n;n=document.getElementById("myCanvas");var t=n.toDataURL("image/png");t=t.replace(/^data:image\/[^;]*/,"data:application/octet-stream"),t=t.replace(/^data:application\/octet-stream/,"data:application/octet-stream;headers=Content-Disposition%3A%20attachment%3B%20filename=Canvas.png"),this.href=t}document.getElementById("dl").addEventListener("click",n,!1),document.getElementById("dl").click()},CanvasComponent.prototype.ngAfterViewInit=function(){this.canvasRef.nativeElement.width=.94*this.canvasRef.nativeElement.offsetParent.offsetWidth,this.canvasRef.nativeElement.height=.94*this.canvasRef.nativeElement.offsetParent.offsetHeight;var n=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(n),this.dibujarObjetos()},CanvasComponent.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},CanvasComponent.prototype.play=function(){this.animando=!0,this.animar()},CanvasComponent.prototype.pause=function(){this.animando=!1},CanvasComponent.ctorParameters=function(){return[{type:__WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__.a}]},CanvasComponent}()},ppY8:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){function t(n,t,e){var l,i=n.getWrapperElement();return l=i.appendChild(document.createElement("div")),l.className=e?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?l.innerHTML=t:l.appendChild(t),l}function e(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(l,i,o){function r(n){if("string"==typeof n)h.value=n;else{if(u)return;u=!0,s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),e(this,null);var a,s=t(this,l,o.bottom),u=!1,c=this,h=s.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&n.on(h,"input",function(n){o.onInput(n,h.value,r)}),o.onKeyUp&&n.on(h,"keyup",function(n){o.onKeyUp(n,h.value,r)}),n.on(h,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,h.value,r)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(h.blur(),n.e_stop(t),r()),13==t.keyCode&&i(h.value,t))}),!1!==o.closeOnBlur&&n.on(h,"blur",r)):(a=s.getElementsByTagName("button")[0])&&(n.on(a,"click",function(){r(),c.focus()}),!1!==o.closeOnBlur&&n.on(a,"blur",r),a.focus()),r}),n.defineExtension("openConfirm",function(l,i,o){function r(){u||(u=!0,a.parentNode.removeChild(a),c.focus())}e(this,null);var a=t(this,l,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,h=1;s[0].focus();for(var d=0;d<s.length;++d){var f=s[d];!function(t){n.on(f,"click",function(e){n.e_preventDefault(e),r(),t&&t(c)})}(i[d]),n.on(f,"blur",function(){--h,setTimeout(function(){h<=0&&r()},200)}),n.on(f,"focus",function(){++h})}}),n.defineExtension("openNotification",function(l,i){function o(){s||(s=!0,clearTimeout(r),a.parentNode.removeChild(a))}e(this,o);var r,a=t(this,l,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;return n.on(a,"click",function(t){n.e_preventDefault(t),o()}),u&&(r=setTimeout(o,u)),o})})},qtCd:function(n,t,e){"use strict";var l=e("Dqrr");e.n(l);e.d(t,"a",function(){return i});var i=function(){function n(){}return n.prototype.connect=function(n){return this.subject||(this.subject=this.create(n),console.log("Successfully connected: "+n)),this.subject},n.prototype.create=function(n){var t=new WebSocket(n),e=l.Observable.create(function(n){return t.onmessage=n.next.bind(n),t.onerror=n.error.bind(n),t.onclose=n.complete.bind(n),t.close.bind(t)}),i={next:function(n){t.readyState===WebSocket.OPEN?t.send(JSON.stringify(n)):console.log("Se perdio la conexion")}};return l.Subject.create(i,e)},n.ctorParameters=function(){return[]},n}()},s6Yw:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},sRze:function(n,t,e){"use strict";var l=e("/oeL"),i=e("dh/p"),o=e("fdEY"),r=e("h7Ol"),a=e("2qVr"),s=e("6akk"),u=e("78g9"),c=e("HXxp"),h=e("UfLB"),d=e("ij+S"),f=e("p2gU"),m=(e.n(f),e("uiTn")),p=e("xpf9"),v=(e.n(p),e("5v8a")),g=(e.n(v),e("WC4F")),b=(e.n(g),e("lDY9")),y=(e.n(b),e("99fb")),C=(e.n(y),e("H6+I")),x=(e.n(C),e("oiK7")),E=(e.n(x),e("L8b4")),k=(e.n(E),e("ppY8")),R=(e.n(k),e("tyH6")),w=(e.n(R),e("Qdk6")),S=(e.n(w),e("EZ6d"));e.n(S);e.d(t,"a",function(){return X});var P,T,M,X=function(){function n(n,t,e,l,i,o,r,a){if(this.haskellService=n,this.authService=t,this.ghciService=e,this.elRef=l,this.notifService=i,this.sessionService=o,this.dialogService=r,this.usuarioService=a,this.consoleDisable=!1,this.consolaVisible=!0,this.cursorLabelInit=!1,this.entrada="",this.modificado=!1,this.argumentoI=!1,this.argumentoF=!1,this.editableLoaded=!1,this.editDialogFired=!1,this.code="",this.configCodeMirror={readOnly:!1,lineNumbers:!0,lineWrapping:!0,extraKeys:{"Ctrl-Space":"autocomplete"},mode:{name:"matefun",globalVars:!0},gutters:["CodeMirror-linenumbers","breakpoints"],theme:"dracula",fontSize:12},this.themes=["3024-day","3024-night","abcdef","ambiance-mobile","ambiance","base16-dark","base16-light","bespin","blackboard","cobalt","colorforth","dracula","duotone-dark","duotone-light","eclipse","elegant","erlang-dark","hopscotch","icecoder","isotope","lesser-dark","liquibyte","material","mbo","mdn-like","midnight","monokai","neat","neo","night","panda-syntax","paraiso-dark","paraiso-light","pastel-on-dark","railscasts","rubyblue","seti","solarized","the-matrix","tomorrow-night-bright","tomorrow-night-eighties","ttcn","twilight","vibrant-ink","xq-dark","xq-light","yeti","zenburn"],this.funcionSTR="Math.sin(x)*x*x-20",this.consola="",this.command="",this.tipo=1,this.onKey=function(n){this.funcionSTR=n,this.archivo.contenido=n},this.writeCommand=function(n){this.command=n.split("\n")[n.split("\n").length-1]},this.selectFunction=function(){this.tipo=1,this.funcionSTR="Math.sin(x)*x*x-20"},this.selectElipse=function(){this.tipo=2,this.funcionSTR="elipse(x,y,radioX, radioY, rotacion_en_grados)"},this.selectCircle=function(){this.tipo=3,this.funcionSTR="circulo(x,y,radio)"},this.elipse=function(n,t,e,l,i){return[n,t,e,l,i]},this.circulo=function(n,t,e){return[n,t,e]},this.archivo=o.getArchivo(),this.archivo&&this.archivo.id||this.newFile(),this.copiaContenidoArchivo=this.archivo.contenido,this.copiaNombreArchivo=this.archivo.nombre,t.getUser().configuracion){var s=t.getUser().configuracion;s.fontSizeEditor<=30&&s.fontSizeEditor>=8&&(this.configCodeMirror.fontSize=s.fontSizeEditor),this.themes.some(function(n){return n==s.themeEditor})&&(this.configCodeMirror.theme=s.themeEditor),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror)),this.argumentoI=s.argumentoI,this.argumentoF=s.argumentoF}this.code="my code"}return n.prototype.updateConfig=function(n){this.configCodeMirror.theme=n,this.codemirror.instance.setOption("theme",n),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror))},n.prototype.lockSaveButton=function(){this.copiaNombreArchivo=this.archivo.nombre,this.copiaContenidoArchivo=this.archivo.contenido,this.modificado=!1},n.prototype.showConfirm=function(){this.dialogService.addDialog(h.a,{title:"Está intentando editar un archivo de solo lectura",message:"Está editando un archivo de solo lectura, desea continuar?"}).subscribe(function(n){n&&(P.options.readOnly=!1,T.editDialogFired=!0)})},n.prototype.makePanel=function(){var n=document.createElement("div");n.id="cursorpos-panel",n.className="panel bottom",this.cursorPanelLabel=n.appendChild(document.createElement("span"));var t=this.codemirror.instance,e=t.getCursor().line,l=t.getCursor().ch;e=(Number(e)+1).toString(),l=(Number(l)+1).toString(),this.cursorPanelLabel.textContent="Posición del cursor: ("+e+","+l+")",this.cursorPanel=this.codemirror.instance.addPanel(n,{position:"bottom",stable:!0});var i=this;this.codemirror.instance.on("cursorActivity",function(n){var t=n.getCursor().line,e=n.getCursor().ch;t=(Number(t)+1).toString(),e=(Number(e)+1).toString(),i.cursorPanel.node.innerText="Posición del cursor: ("+t+","+e+")"}),this.codemirror.instance.on("keyHandled",function(n,t,e){"Digit1"===t.code&&t.ctrlKey&&t.shiftKey?i.seleccionarDirectorio():"Digit2"===t.code&&t.ctrlKey&&t.shiftKey&&i.saveConfig()}),this.codemirror.instance.on("keypress",function(n,t,e){!i.editDialogFired&&"docente"===JSON.parse(sessionStorage.currentUser).tipo&&n.options.readOnly&&(P=i.codemirror.instance,T=i,i.showConfirm())})},n.prototype.saveConfig=function(){var n=this,t=new c.a;t.themeEditor=this.configCodeMirror.theme,t.fontSizeEditor=this.configCodeMirror.fontSize;var e=this.authService.getUserConfig(),l=e.argumentoF!=this.argumentoF||e.argumentoI!=this.argumentoI;t.argumentoF=this.argumentoF,t.argumentoI=this.argumentoI,this.usuarioService.actualizarConfiguracion(this.authService.getUser().cedula,t).subscribe(function(t){n.popover.close(),n.authService.setUserConfig(t),l&&n.reiniciarInterprete()},function(t){n.notifService.error(t),n.popover.close()})},n.prototype.aumentarFuente=function(){this.configCodeMirror.fontSize<30&&this.configCodeMirror.fontSize++},n.prototype.disminuirFuente=function(){this.configCodeMirror.fontSize>8&&this.configCodeMirror.fontSize--},n.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},n.prototype.ngOnInit=function(){function n(n){var t=window.event?event:n;if(90==t.keyCode&&t.ctrlKey,"a"===t.key.toLowerCase()&&t.ctrlKey)return T.seleccionarDirectorio(),!1;if("e"===t.key.toLowerCase()&&t.ctrlKey)return T.downloadFile(),!1;if("r"===t.key.toLowerCase()&&t.ctrlKey)return T.reiniciarInterprete(),!1;if("g"===t.key.toLowerCase()&&t.ctrlKey)return T.guardarArchivo(),!1;if("o"===t.key.toLowerCase()&&t.ctrlKey)return document.getElementById("popover").click(),!1;if(t.ctrlKey&&t.altKey&&"p"===t.key.toLowerCase()){document.getElementById("ProgramBtn").click();var e=T;return setTimeout(function(){e.codemirror.instance.focus()},250),T.codemirror.instance.focus(),M="program",!1}return t.ctrlKey&&t.altKey&&"c"===t.key.toLowerCase()?(T.ghciService.focusConsole(),M="consola",!1):t.ctrlKey&&t.altKey&&"f"===t.key.toLowerCase()?(document.getElementById("FigurasBtn").click(),T.ghciService.focusConsole(),M="graficas",!1):"p"===t.key.toLowerCase()&&t.ctrlKey&&!t.altKey?(T.runCode(),!1):void 0}var t=this;this.ghciService.rendered(),this.haskellService.getArchivos(this.authService.getUser().cedula).subscribe(function(n){t.buildTreeFromList(n)},function(n){return console.log("Error al obtener los archivos del alumno")}),document.onkeydown=n},n.prototype.ngAfterViewInit=function(){if(T=this,null==this.codemirror.instance||this.cursorLabelInit||(this.cursorLabelInit=!0,this.codemirror.instance.setOption("theme",this.configCodeMirror.theme),this.makePanel()),!this.editableLoaded&&null!=this.codemirror.instance&&void 0!==this.sessionService.archivo.editable)try{var n=this.sessionService.archivo.editable&&("Edicion"==this.sessionService.archivo.estado||"Devuelto"==this.sessionService.archivo.estado);this.codemirror.instance.options.readOnly=!n,this.editableLoaded=!0}catch(n){return}},n.prototype.htmlEncode=function(n){return n.replace("Prelude> ","").replace(/&/g,"&").replace(/\s/g," ").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},n.prototype.inputConsola=function(n){this.entrada=n},n.prototype.newFile=function(){this.archivo=new u.b,this.archivo.cedulaCreador=this.authService.getUser().cedula,this.archivo.contenido="",this.archivo.nombre="",this.copiaNombreArchivo="",this.copiaContenidoArchivo=""},n.prototype.archivoModificado=function(){this.copiaNombreArchivo!=this.archivo.nombre||this.copiaContenidoArchivo!=this.archivo.contenido?this.modificado=!0:this.modificado=!1},n.prototype.guardarArchivo=function(){var n=this,t=/^[A-Z]/;""==this.archivo.nombre.trim()?this.notifService.error("Nombre de archivo sin especificar"):t.test(this.archivo.nombre)?this.archivo.id?this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.notifService.error("Nombre de archivo debe iniciar con mayusula.")},n.prototype.runCode=function(){var n=this;this.ghciService.setCodemirrorRef(this.codemirror.instance),this.ghciService.resetGutters();var t=/^[A-Z]/;if(""==this.archivo.nombre.trim())this.notifService.error("Nombre de archivo sin especificar");else if(t.test(this.archivo.nombre)){var e=this.sessionService.cargarDependencias(this.archivo);if("miss"===e.status)return void this.ghciService.outputConsole("Error: No se encuentra el archivo "+e.nombre+"\n");if(this.archivo.id)if(this.archivo.editable||"docente"==this.authService.getUser().tipo)this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t;var e=n.sessionService.getDependencias(),l=[];for(var i in e)l.push(e[i].id);l.some(function(n){return n==t.id})||l.push(t.id),n.lockSaveButton(),n.ghciService.loadFile(t.id,l)},function(t){n.notifService.error(t)});else{var l=this.sessionService.getDependencias(),i=[];for(var o in l)i.push(l[o].id);i.some(function(t){return t==n.archivo.id})||i.push(this.archivo.id),this.ghciService.loadFile(this.archivo.id,i)}else this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton(),n.ghciService.loadFile(t.id,[])},function(t){n.notifService.error(t)})}else this.notifService.error("Nombre de archivo debe iniciar con mayusula.");this.ghciService.focusConsole()},n.prototype.download=function(n,t){var e=document.createElement("a");e.setAttribute("href","data:application/octet-stream,"+encodeURIComponent(t)),e.setAttribute("download",n+".mf"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},n.prototype.downloadFile=function(){var n=this.archivo.nombre,t=this.archivo.contenido;void 0!=n&&""!=n&&void 0!=t&&""!=t&&this.download(n,t)},n.prototype.reiniciarInterprete=function(){this.ghciService.reiniciarInterprete()},n.prototype.toggleConsole=function(){this.consolaVisible=!this.consolaVisible},n.prototype.seleccionarDirectorio=function(){this.archivosTree=this.sessionService.getArchivos(void 0);this.dialogService.addDialog(d.a,{title:"",message:"",archivos:this.archivosTree,directorioActual:this.archivosTree,nombre:"",parent:this}).subscribe(function(n){})},n.prototype.buildTreeFromList=function(n){this.sessionService.setArchivosList(n);var t;for(var e in n){var l=n[e];-1===l.padreId&&(t=l)}this.idRecorridos=[t.id];var i=n.filter(function(n){return n.id!==t.id}),o=this.buildTree(i,t);this.archivosTree=o,this.sessionService.setArchivosTree(o)},n.prototype.buildTree=function(n,t){t.archivos=this.getArchivos(t.id,n);for(var e in t.archivos)if(t.archivos[e].directorio&&void 0===this.idRecorridos[t.archivos[e].id]){var l=t.archivos[e].id,i=n.filter(function(n){return n.id!==l});t.archivos[e]=this.buildTree(i,t.archivos[e])}return t},n.prototype.getArchivos=function(n,t){return t.filter(function(t){return t.padreId===n})},n.ctorParameters=function(){return[{type:i.a},{type:s.a},{type:a.a},{type:l.ElementRef},{type:m.a},{type:r.a},{type:f.DialogService},{type:o.a}]},n}()},tyH6:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("La8y"))}(function(n){"use strict";function t(n,t,e,l){this.cm=n,this.options=l;var i={listenForChanges:!1};for(var o in l)i[o]=l[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=n.annotateScrollbar(i),this.query=t,this.caseFold=e,this.gap={from:n.firstLine(),to:n.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var r=this;n.on("change",this.changeHandler=function(n,t){r.onChange(t)})}function e(n,t,e){return n<=t?n:Math.max(t,n+e)}n.defineExtension("showMatchesOnScrollbar",function(n,e,l){return"string"==typeof l&&(l={className:l}),l||(l={}),new t(this,n,e,l)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var e=this.matches[t];if(e.from.line>=this.gap.to)break;e.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var l=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;l.findNext();){var e={from:l.from(),to:l.to()};if(e.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,e),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var l=t.from.line,i=n.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(e(this.gap.from,l,o),t.from.line),this.gap.to=Math.max(e(this.gap.to,l,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var r=0;r<this.matches.length;r++){var a=this.matches[r],s=e(a.from.line,l,o);s!=a.from.line&&(a.from=n.Pos(s,a.from.ch));var u=e(a.to.line,l,o);u!=a.to.line&&(a.to=n.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})}}); \ No newline at end of file diff --git a/Servidor JEE/WebContent/favicon.ico b/Servidor JEE/WebContent/favicon.ico deleted file mode 100644 index 444fdd4ab74564eb687272240ec077d93ead5269..0000000000000000000000000000000000000000 Binary files a/Servidor JEE/WebContent/favicon.ico and /dev/null differ diff --git a/Servidor JEE/WebContent/fontawesome-webfont.b06871f281fee6b241d6.ttf b/Servidor JEE/WebContent/fontawesome-webfont.b06871f281fee6b241d6.ttf deleted file mode 100644 index 35acda2fa1196aad98c2adf4378a7611dd713aa3..0000000000000000000000000000000000000000 Binary files a/Servidor JEE/WebContent/fontawesome-webfont.b06871f281fee6b241d6.ttf and /dev/null differ diff --git a/Servidor JEE/WebContent/index.html b/Servidor JEE/WebContent/index.html index 489fce1282040f55d57a11963abb4f69fc712d08..2dd84a8720640c5a566b884d44eb4aa5613cb702 100644 --- a/Servidor JEE/WebContent/index.html +++ b/Servidor JEE/WebContent/index.html @@ -1 +1 @@ -<!doctype html><html><head><meta charset="utf-8"><title>Proyecto MateFun</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><!-- despues lo saco de aca --><!-- <link rel="stylesheet" type="text/css" href="node_modules/codemirror/addon/hint/show-hint.css"> --><script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script><link href="styles.aedd881417e13b7e91de.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div></div></app-root><script type="text/javascript" src="inline.02de299abe63337e65f5.bundle.js"></script><script type="text/javascript" src="polyfills.0ae3b4f3e37e6249952f.bundle.js"></script><script type="text/javascript" src="scripts.efaaeb35620859890388.bundle.js"></script><script type="text/javascript" src="vendor.28df4c379f8c8b804b36.bundle.js"></script><script type="text/javascript" src="main.b97df27904c57669405d.bundle.js"></script></body></html> \ No newline at end of file +<!doctype html><html><head><meta charset="utf-8"><title>Proyecto MateFun</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><!-- despues lo saco de aca --><!-- <link rel="stylesheet" type="text/css" href="node_modules/codemirror/addon/hint/show-hint.css"> --><script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script><link href="styles.aedd881417e13b7e91de.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div></div></app-root><script type="text/javascript" src="inline.0ed6551a1e89b4f266ce.bundle.js"></script><script type="text/javascript" src="polyfills.0ae3b4f3e37e6249952f.bundle.js"></script><script type="text/javascript" src="scripts.efaaeb35620859890388.bundle.js"></script><script type="text/javascript" src="vendor.28df4c379f8c8b804b36.bundle.js"></script><script type="text/javascript" src="main.b97df27904c57669405d.bundle.js"></script></body></html> \ No newline at end of file diff --git a/Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js b/Servidor JEE/WebContent/inline.0ed6551a1e89b4f266ce.bundle.js similarity index 92% rename from Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js rename to Servidor JEE/WebContent/inline.0ed6551a1e89b4f266ce.bundle.js index 861a211d3f03de68943a98e7076866108a36218b..d409438f6687fe4935d1a7c14d175fc4ea466ff0 100644 --- a/Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js +++ b/Servidor JEE/WebContent/inline.0ed6551a1e89b4f266ce.bundle.js @@ -1 +1 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,f,i,d=0,l=[];d<t.length;d++)f=t[d],o[f]&&l.push(o[f][0]),o[f]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);l.length;)l.shift()();if(c)for(d=0;d<c.length;d++)i=r(r.s=c[d]);return i};var t={},o={12:0};r.e=function(e){function n(){c.onerror=c.onload=null,clearTimeout(u);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=new Promise(function(r,n){o[e]=[r,n]});o[e][2]=t;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,r.nc&&c.setAttribute("nonce",r.nc),c.src=r.p+""+e+"."+{0:"a2834ddcf91edfd3595a",1:"408372ca9caba82cfa85",2:"b856a7489ad17cab0edc",3:"75985c86a9a9f51d170e",4:"944819365f9d2d51724d",5:"59cc434c85d03332d50a",6:"bb496a10043de2a02b50",7:"0ae3b4f3e37e6249952f",8:"b97df27904c57669405d",9:"60839f966270b27d9f76",10:"efaaeb35620859890388"}[e]+".chunk.js";var u=setTimeout(n,12e4);return c.onerror=c.onload=n,a.appendChild(c),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r.oe=function(e){throw console.error(e),e}}([]); \ No newline at end of file +!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,f,i,d=0,l=[];d<t.length;d++)f=t[d],o[f]&&l.push(o[f][0]),o[f]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);l.length;)l.shift()();if(c)for(d=0;d<c.length;d++)i=r(r.s=c[d]);return i};var t={},o={12:0};r.e=function(e){function n(){c.onerror=c.onload=null,clearTimeout(u);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=new Promise(function(r,n){o[e]=[r,n]});o[e][2]=t;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,r.nc&&c.setAttribute("nonce",r.nc),c.src=r.p+""+e+"."+{0:"a2834ddcf91edfd3595a",1:"9e713c866ac2d85446ee",2:"b856a7489ad17cab0edc",3:"75985c86a9a9f51d170e",4:"944819365f9d2d51724d",5:"59cc434c85d03332d50a",6:"bb496a10043de2a02b50",7:"0ae3b4f3e37e6249952f",8:"b97df27904c57669405d",9:"60839f966270b27d9f76",10:"efaaeb35620859890388"}[e]+".chunk.js";var u=setTimeout(n,12e4);return c.onerror=c.onload=n,a.appendChild(c),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r.oe=function(e){throw console.error(e),e}}([]); \ No newline at end of file diff --git a/Servidor JEE/src/main/resources/META-INF/persistence.xml b/Servidor JEE/src/main/resources/META-INF/persistence.xml index 98fed92e6c137dc4bc2159e39818faa1c0d30e98..79c49c23ed6b00775d68c701236b61f4087696b4 100644 --- a/Servidor JEE/src/main/resources/META-INF/persistence.xml +++ b/Servidor JEE/src/main/resources/META-INF/persistence.xml @@ -4,44 +4,44 @@ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" version="2.1"> - <persistence-unit name="matefunDS" transaction-type="JTA"> - <jta-data-source>java:/matefun</jta-data-source> - <class>edu.proygrado.modelo.Alumno</class> - <class>edu.proygrado.modelo.Archivo</class> - <class>edu.proygrado.modelo.Configuracion</class> - <class>edu.proygrado.modelo.Docente</class> - <class>edu.proygrado.modelo.Evaluacion</class> - <class>edu.proygrado.modelo.Grupo</class> - <class>edu.proygrado.modelo.GrupoPK</class> - <class>edu.proygrado.modelo.Liceo</class> - <class>edu.proygrado.modelo.LiceoPK</class> - <class>edu.proygrado.modelo.Usuario</class> - <class>edu.proygrado.modelo.Sesion</class> - <properties> - <property name="javax.persistence.schema-generation.database.action" value="none" /> - <property name="hibernate.hbm2ddl.auto" value="update"/> - </properties> - </persistence-unit> - <!-- <persistence-unit name="matefunDS" transaction-type="JTA"> --> -<!-- <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> --> -<!-- <jta-data-source>jdbc/azureDSjta</jta-data-source> --> -<!-- <class>edu.proygrado.modelo.Alumno</class> --> -<!-- <class>edu.proygrado.modelo.Archivo</class> --> -<!-- <class>edu.proygrado.modelo.Configuracion</class> --> -<!-- <class>edu.proygrado.modelo.Docente</class> --> -<!-- <class>edu.proygrado.modelo.Evaluacion</class> --> -<!-- <class>edu.proygrado.modelo.Grupo</class> --> -<!-- <class>edu.proygrado.modelo.GrupoPK</class> --> -<!-- <class>edu.proygrado.modelo.Liceo</class> --> -<!-- <class>edu.proygrado.modelo.LiceoPK</class> --> -<!-- <class>edu.proygrado.modelo.Usuario</class> --> -<!-- <class>edu.proygrado.modelo.Sesion</class> --> -<!-- <properties> --> -<!-- <property name="javax.persistence.schema-generation.database.action" value="none" /> --> -<!-- <property name="hibernate.transaction.jta.platform" value="org.hibernate.engine.transaction.jta.platform.internal.WebSphereExtendedJtaPlatform"/> --> -<!-- </properties> --> +<!-- <jta-data-source>java:/matefun</jta-data-source> --> +<!-- <class>edu.proygrado.modelo.Alumno</class> --> +<!-- <class>edu.proygrado.modelo.Archivo</class> --> +<!-- <class>edu.proygrado.modelo.Configuracion</class> --> +<!-- <class>edu.proygrado.modelo.Docente</class> --> +<!-- <class>edu.proygrado.modelo.Evaluacion</class> --> +<!-- <class>edu.proygrado.modelo.Grupo</class> --> +<!-- <class>edu.proygrado.modelo.GrupoPK</class> --> +<!-- <class>edu.proygrado.modelo.Liceo</class> --> +<!-- <class>edu.proygrado.modelo.LiceoPK</class> --> +<!-- <class>edu.proygrado.modelo.Usuario</class> --> +<!-- <class>edu.proygrado.modelo.Sesion</class> --> +<!-- <properties> --> +<!-- <property name="javax.persistence.schema-generation.database.action" value="none" /> --> +<!-- <property name="hibernate.hbm2ddl.auto" value="update"/> --> +<!-- </properties> --> <!-- </persistence-unit> --> + <persistence-unit name="matefunDS" transaction-type="JTA"> + <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> + <jta-data-source>jdbc/azureDSjta</jta-data-source> + <class>edu.proygrado.modelo.Alumno</class> + <class>edu.proygrado.modelo.Archivo</class> + <class>edu.proygrado.modelo.Configuracion</class> + <class>edu.proygrado.modelo.Docente</class> + <class>edu.proygrado.modelo.Evaluacion</class> + <class>edu.proygrado.modelo.Grupo</class> + <class>edu.proygrado.modelo.GrupoPK</class> + <class>edu.proygrado.modelo.Liceo</class> + <class>edu.proygrado.modelo.LiceoPK</class> + <class>edu.proygrado.modelo.Usuario</class> + <class>edu.proygrado.modelo.Sesion</class> + <properties> + <property name="javax.persistence.schema-generation.database.action" value="none" /> + <property name="hibernate.transaction.jta.platform" value="org.hibernate.engine.transaction.jta.platform.internal.WebSphereExtendedJtaPlatform"/> + </properties> + </persistence-unit> + </persistence>