webpackJsonp([0],{"+3/4":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("TToO"),i=function(e){function t(t){e.call(this),this.scheduler=t}return Object(r.b)(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(n("YaPU").a)},"+CnV":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("AMGY").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},"+HRN":function(e,t,n){"use strict";var r=n("X3l8").Buffer,i=n(2);e.exports=function(){function e(){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)n.data.copy(t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},"/3PI":function(e,t,n){var r=n("zsGe").AbstractQueryTree,i=n("zsGe").NonSupportedSparqlFeatureError,o=n("Cbv+"),a=n("I3xM"),s=n("6poC").QueryPlan,l=n("UuVp").QueryFilters,u=n("LRdl"),c=n("0Kyr").RDFLoader,f=n("4Z9w").CallbacksBackend,h=n("Cbv+"),d=n("Cbv+");function p(e,t,n){this.name="BindExpressionError",this.bind=t,this.error=n,this.message=e}p.prototype=new Error,p.constructor=p,QueryEngine=function(e){0!=arguments.length&&(this.backend=e.backend,this.lexicon=e.lexicon,this.eventsOnBatchLoad=e.eventsOnBatchLoad||!1,this.defaultPrefixes={},this.abstractQueryTree=new r,this.rdfLoader=new c(e.communication),this.callbacksBackend=new f(this),this.customFns=e.customFns||{})},QueryEngine.prototype.setCustomFunctions=function(e){this.customFns=e},QueryEngine.prototype.registerNsInEnvironment=function(e,t){var n=[];null!=e&&null!=e.prefixes&&(n=e.prefixes);var r={};for(var i in this.defaultPrefixes)r[i]=this.defaultPrefixes[i];for(var o=0;o0?h.eachSeries(t,function(t,i){o.applySingleOrderBy(e,t,n,r,function(e){a.push(e),i()})},function(){a.sort(function(t,n){return o.compareFilteredBindings(t,n,e,r)});for(var t=[],n=0;n0):t(e)})):"construct"===s.kind&&(s.projection=[{token:"variable",kind:"*"}],o=this,this.executeSelect(s,a,n,r,function(e,n){null==e?o.denormalizeBindingsList(n,a,function(e){if(null!=e){var n=new u.Graph;null==s.template&&(s.template={triplesContext:s.pattern});for(var r=1,i=[],l=0;l1&&d.length>1){var t=[],n={};for(var r in f[0])n[r]=!0;for(r in d[0])1!=n[r]&&t.push(r);u=[],c={};for(var o=0;o { ?s ?p ?o } } WHERE { GRAPH <"+e+"> { ?s ?p ?o } }",function(i,o){i?(t=i,n()):r.lexicon.resolveUri(e,function(i){-1!=i?r.lexicon.knownGraphs.delete(i,function(){n()}):(t="Cannot find graph "+e+" to clear it",n())})})},function(){n(!t)})}else n(!1,"Error deleting named graphs")});else if("all"===e)r=this,this.execute("CLEAR DEFAULT",function(e,t){e?n(!1,t):r.execute("CLEAR NAMED",n)});else if("uri"==e.token){var i=o.lexicalFormBaseUri(e,t);null!=i?(this.callbacksBackend.ongoingModification=!0,this.execute("DELETE { GRAPH <"+i+"> { ?s ?p ?o } } WHERE { GRAPH <"+i+"> { ?s ?p ?o } }",function(e){r.callbacksBackend.ongoingModification=!1,n(e)})):n(!1,"wrong graph URI")}else n(!1,"wrong graph URI")},QueryEngine.prototype.checkGroupSemantics=function(e,t){if("singleGroup"===e)return!0;for(var n={},r=0;r0?o.copyDenormalizedBindings(t,r.outCache,function(s){for(var u=0;u1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof l&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.a?e[0]:Object(a.a)(n)(new i.a(e,s))};var r=n("YaPU"),i=n("Veqx"),o=n("1Q68"),a=n("8D5t")},0:function(e,t,n){e.exports=n("x35b")},"0Kyr":function(e,t,n){var r=n("wQLW").NetworkTransport,i=n("ocFG").RVN3Parser,o=n("FWiS").JSONLDParser,a=n("Cbv+"),s=function(e){if(this.precedences=["text/turtle","text/n3","application/ld+json","application/json"],this.parsers={"text/turtle":i.parser,"text/n3":i.parser,"application/ld+json":o.parser,"application/json":o.parser},"undefined"!=typeof RDFXMLParser&&(this.precedences.push("application/rdf+xml"),this.parsers["application/rdf+xml"]=RDFXMLParser.parser),null!=e)for(var t in e.parsers)this.parsers[t]=e.parsers[t];if(e&&null!=e.precedences)for(var t in this.precedences=e.precedences,e.parsers)a.include(this.precedences,t)||this.precedences.push(t);this.acceptHeaderValue="";for(var n=0;nt?1:0},n.merger=null,null!=t&&t(n)})})}};a.prototype._allocateNode=function(){return new s},a.prototype._diskWrite=function(e,t){o(function(){t(e)})},a.prototype._diskRead=function(e,t){o(function(){t(e)})},a.prototype._diskDelete=function(e,t){o(function(){t()})},a.prototype._updateRootNode=function(e,t){t(e)},a.prototype.search=function(e,t,n){this.__search(this,e,this.root,t,n)},a.prototype.__search=function(e,t,n,r,i){for(var o=0;ot+1;a--)e.children[a]=e.children[a-1];for(e.children[t+1]=i,a=e.numberActives;a>t;a--)e.keys[a]=e.keys[a-1];e.keys[t]=o,e.numberActives++;var s=this;this._diskWrite(i,function(i){s._diskWrite(e,function(e){e.children[t+1]=i,s._diskWrite(n,function(t){return r(e)})})})},a.prototype.insert=function(e,t,n){if(this.root.numberActives===2*this.order-1){var r=this._allocateNode();r.isLeaf=!1,r.level=this.root.level+1,r.numberActives=0,r.children[0]=this.root;var i=this;this._splitChild(r,0,this.root,function(o){i.root=r=o,i._updateRootNode(r,function(r){i._insertNonFull(r,e,t,n)})})}else this._insertNonFull(this.root,e,t,n)},a.prototype._insertNonFull=function(e,t,n,r){this.__insertNonFull(this,e,e.numberActives-1,t,n,r)},a.prototype.__insertNonFull=function(e,t,n,r,i,o){if(t.isLeaf){for(;n>=0&&-1===e.comparator(r,t.keys[n].key);)t.keys[n+1]=t.keys[n],n--;n>=0&&0===e.comparator(r,t.keys[n].key)?t.keys[n]={key:r,data:i}:(t.keys[n+1]={key:r,data:i},t.numberActives++),e._diskWrite(t,function(e){return o(e)})}else{for(;n>=0&&-1===e.comparator(r,t.keys[n].key);)n--;var a=e;e._diskRead(t.children[++n],function(s){s.numberActives===2*a.order-1?a._splitChild(t,n,s,function(){1===a.comparator(r,t.keys[n].key)&&n++,a._diskRead(t.children[n],function(t){a.__insertNonFull(e,t,n=t.numberActives-1,r,i,o)})}):a._diskRead(t.children[n],function(t){a.__insertNonFull(e,t,n=t.numberActives-1,r,i,o)})})}},a.prototype.delete=function(e,t){a.prototype.__deleteSearchNode(this,e,this.root,t)},a.prototype.__deleteSearchNode=function(e,t,n,r){var i=0;if(0===n.numberActives)return r(!1);for(;ie.order-1?e._moveKey(a,i,-1,function(i){e.__deleteSearchNode(e,t,n,r)}):null!=o&&o.numberActives>e.order-1?e._moveKey(a,i,1,function(i){e.__deleteSearchNode(e,t,n,r)}):null!=o&&o.numberActives===e.order-1?e._mergeSiblings(a,i,-1,function(n){e.__deleteSearchNode(e,t,n,r)}):null!=u&&u.numberActives===e.order-1&&e._mergeSiblings(a,i,1,function(n){e.__deleteSearchNode(e,t,n,r)}):e.__deleteSearchNode(e,t,n,r)})})})},a.prototype.__deleteNodeFound=function(e,t,n,r,i){return r.isLeaf&&r.numberActives>e.order-1?(e._deleteKeyFromNode(r,t,function(){i(!0)}),!0):r.isLeaf&&r===e.root?(e._deleteKeyFromNode(r,t,function(){i(!0)}),!0):(!1===r.isLeaf&&e._diskRead(r.children[t],function(o){o.numberActives>e.order-1?e._getMaxKeyPos(e,o,function(a){r.keys[t]=n=a.node.keys[a.index],e._diskWrite(r,function(t){e.__deleteSearchNode(e,n=n.key,o,i)})}):e._diskRead(r.children[t+1],function(a){a.numberActives>e.order-1?e._getMinKeyPos(e,a,function(o){r.keys[t]=n=o.node.keys[o.index],e._diskWrite(r,function(t){e.__deleteSearchNode(e,n=n.key,a,i)})}):o.numberActives===e.order-1&&a.numberActives===e.order-1&&e._mergeNodes(o,r.keys[t],a,function(o){r.children[t]=o;for(var a=++t;ae.order-1&&e._deleteKeyFromNode(r,t,function(t){e.__deleteSearchNode(e,n,t,i)})))},a.prototype._moveKey=function(e,t,n,r){1===n&&t--;var i=this;i._diskRead(e.children[t],function(o){i._diskRead(e.children[t+1],function(a){if(-1==n){o.keys[o.numberActives]=e.keys[t],o.children[o.numberActives+1]=a.children[0],a.children[0]=null,o.numberActives++,e.keys[t]=a.keys[0];for(var s=1;s0;s--)a.children[s]=a.children[s-1],a.keys[s]=a.keys[s-1];a.keys[0]=null,a.children[0]=null,a.children[0]=o.children[o.numberActives],a.keys[0]=e.keys[t],a.numberActives++,o.children[o.numberActives]=null,e.keys[t]=o.keys[o.numberActives-1],o.keys[o.numberActives-1]=null,o.numberActives--}i._diskWrite(o,function(t){i._diskWrite(a,function(t){i._diskWrite(e,function(e){return r(e)})})})})})},a.prototype._mergeSiblings=function(e,t,n,r){var i,o,a,s;t===e.numberActives?(t--,a=e.children[e.numberActives-1],s=e.children[e.numberActives]):(a=e.children[t],s=e.children[t+1]);var l=this;l._diskRead(a,function(n){l._diskRead(s,function(a){var s=l._allocateNode();for(s.isLeaf=n.isLeaf,s.level=n.level,o=0;o key "+a.keys[s].key;!0===e&&console.log(c),t.push(c)}1===r.comparator(a.keys[s].key,u)&&(c=" !!! value min right "+u+" < key "+a.keys[s].key,!0===e&&console.log(c),t.push(c)),i(a.keys[s].key),n.push(a.keys[s].key)}else for(null===o?o=a.level:o!=a.level&&(c=" !!! Leaf node with wrong level value",!0===e&&console.log(c),t.push(c)),s=0;s2*r.order-1&&(!0===e&&(c=" !!!! MAX num keys restriction violated "),console.log(c),t.push(c)),a.numberActives"===e[e.length-1]?{token:"literal",value:e.substring(1,t-1),type:e.substring(t+3,e.length-1)}:{token:"literal",value:e.substring(1,e.length-1)}},Lexicon.prototype.parseUri=function(e){return{token:"uri",value:e}},Lexicon.prototype.retrieve=function(e,t){var n=this;e===this.defaultGraphOid?t({token:"uri",value:this.defaultGraphUri,prefix:null,suffix:null,defaultGraph:!0}):r.seq(function(t,r){n.oidUris.search("u"+e,function(e){r(null,null!=e?n.parseUri(e):null)})},function(t,r){null==t?n.oidLiterals.search("l"+e,function(e){r(null,null!=e?n.parseLiteral(e):null)}):r(null,t)},function(t,r){null==t?n.oidBlanks.search(""+e,function(t){r(null,null!=t?{token:"blank",value:"_:"+e}:null)}):r(null,t)})(null,function(e,n){t(n)})},Lexicon.prototype.clear=function(e){var t=this;this.defaultGraphOid=0,this.defaultGraphUri="https://github.com/antoniogarrote/rdfstore-js#default_graph",this.defaultGraphUriTerm={token:"uri",prefix:null,suffix:null,value:this.defaultGraphUri},this.oidCounter=1,r.seq(function(e){new i(2,function(n){t.uris=n,e()})},function(e){new i(2,function(n){t.literals=n,e()})},function(e){new i(2,function(n){t.knownGraphs=n,e()})},function(e){new i(2,function(n){t.oidUris=n,e()})},function(e){new i(2,function(n){t.oidLiterals=n,e()})},function(e){new i(2,function(n){t.oidBlanks=n,e()})})(function(){null!=e&&e()})},Lexicon.prototype.unregister=function(e,t,n){var i=this;r.seq(function(n){i._unregisterTerm(e.subject.token,t.subject,n)},function(n){i._unregisterTerm(e.predicate.token,t.predicate,n)},function(n){i._unregisterTerm(e.object.token,t.object,n)},function(n){null!=e.graph?i._unregisterTerm(e.graph.token,t.graph,n):n()})(function(){n(!0)})},Lexicon.prototype._unregisterTerm=function(e,t,n){var i=this;if("uri"===e)t!=this.defaultGraphOid?i.oidUris.search(o="u"+t,function(e){i.uris.search(e,function(a){var s=a[1];""+a[0]==""+t?0===s?r.seq(function(e){i.oidUris.delete(o,function(){e()})},function(t){i.uris.delete(e,function(){t()})},function(e){i.knownGraphs.delete(t,function(){e()})})(function(){n()}):i.uris.insert(e,[t,s-1],function(){n()}):n()})}):n();else if("literal"===e){var o;this.oidCounter++,i.oidLiterals.search(o="l"+t,function(e){i.literals.search(e,function(a){var s=a[1];""+a[0]==""+t?0===s?r.seq(function(e){i.oidLiterals.delete(o,function(){e()})},function(t){i.literals.delete(e,function(){t()})})(function(){n()}):i.literals.insert(e,[t,s-1],function(){n()}):n()})})}else"blank"===e?i.oidBlanks.delete(""+t,function(){n()}):n()},e.exports={Lexicon:Lexicon}},"0zc4":function(e,t){var n=/^"([^]*)"(?:\^\^(.+)|@([\-a-z]+))?$/i,r=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,i=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,o={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};function a(e,t){if(!(this instanceof a))return new a(e,t);if(e&&"function"!=typeof e.write&&(t=e,e=null),t=t||{},e)this._outputStream=e,this._endStream=void 0===t.end||!!t.end;else{var n="";this._outputStream={write:function(e,t,r){n+=e,r&&r()},end:function(e){e&&e(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?this._writeTriple=this._writeTripleLine:(this._graph="",this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes))}function s(e){var t=o[e];return void 0===t&&(1===e.length?(t=e.charCodeAt(0).toString(16),t="\\u0000".substr(0,6-t.length)+t):(t=(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)+9216).toString(16),t="\\U00000000".substr(0,10-t.length)+t)),t}a.prototype={_write:function(e,t){this._outputStream.write(e,"utf8",t)},_writeTriple:function(e,t,n,r,i){try{this._graph!==r&&(this._write((null===this._subject?"":this._graph?"\n}\n":".\n")+(r?this._encodeIriOrBlankNode(r)+" {\n":"")),this._subject=null,this._graph="["!==r[0]?r:"]"),this._write(this._subject===e?this._predicate===t?", "+this._encodeObject(n):";\n "+this._encodePredicate(this._predicate=t)+" "+this._encodeObject(n):(null===this._subject?"":".\n")+this._encodeSubject(this._subject=e)+" "+this._encodePredicate(this._predicate=t)+" "+this._encodeObject(n),i)}catch(e){i&&i(e)}},_writeTripleLine:function(e,t,n,r,i){delete this._prefixMatch;try{this._write(this.tripleToString(e,t,n,r),i)}catch(e){i&&i(e)}},tripleToString:function(e,t,n,r){return this._encodeIriOrBlankNode(e)+" "+this._encodeIriOrBlankNode(t)+" "+this._encodeObject(n)+(r?" "+this._encodeIriOrBlankNode(r)+".\n":".\n")},triplesToString:function(e){return e.map(function(e){return this.tripleToString(e.subject,e.predicate,e.object,e.graph)},this).join("")},_encodeIriOrBlankNode:function(e){var t=e[0];if("["===t||"("===t||"_"===t&&":"===e[1])return e;r.test(e)&&(e=e.replace(i,s));var n=this._prefixRegex.exec(e);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:e:"<"+e+">"},_encodeLiteral:function(e,t,n){return r.test(e)&&(e=e.replace(i,s)),n?'"'+e+'"@'+n:t?'"'+e+'"^^'+this._encodeIriOrBlankNode(t):'"'+e+'"'},_encodeSubject:function(e){if('"'===e[0])throw new Error("A literal as subject is not allowed: "+e);return"["===e[0]&&(this._subject="]"),this._encodeIriOrBlankNode(e)},_encodePredicate:function(e){if('"'===e[0])throw new Error("A literal as predicate is not allowed: "+e);return"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"===e?"a":this._encodeIriOrBlankNode(e)},_encodeObject:function(e){if('"'!==e[0])return this._encodeIriOrBlankNode(e);var t=n.exec(e);if(!t)throw new Error("Invalid literal: "+e);return this._encodeLiteral(t[1],t[2],t[3])},_blockedWrite:function(){throw new Error("Cannot write because the writer has been closed.")},addTriple:function(e,t,n,r,i){void 0===n?this._writeTriple(e.subject,e.predicate,e.object,e.graph||"",t):"string"!=typeof r?this._writeTriple(e,t,n,"",r):this._writeTriple(e,t,n,r,i)},addTriples:function(e){for(var t=0;t.\n"))}if(r){var a="",s="";for(var l in n)a+=a?"|"+l:l,s+=(s?"|":"")+n[l];a=a.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&"),this._prefixRegex=new RegExp("^(?:"+s+")[^/]*$|^("+a+")([a-zA-Z][\\-_a-zA-Z0-9]*)$")}this._write(r?"\n":"",t)},blank:function(e,t){var n,r,i=e;switch(void 0===e?i=[]:"string"==typeof e?i=[{predicate:e,object:t}]:"length"in e||(i=[e]),r=i.length){case 0:return"[]";case 1:if("["!==(n=i[0]).object[0])return"[ "+this._encodePredicate(n.predicate)+" "+this._encodeObject(n.object)+" ]";default:for(var o="[",a=0;a1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a),f=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed?(this._connection=null,e=s.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return l()(this)},t}(o.a).prototype,h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}},d=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.b);function p(){return new i.a}t.a=function(){return function(e){return l()((t=p,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,h);return r.source=e,r.subjectFactory=n,r})(e));var t}}},"4/4u":function(e,t,n){e.exports=n("cSWu").Transform},"4Z9w":function(e,t,n){var r=n("Cbv+"),i=n("Cbv+"),o=(n("I3xM"),n("I3xM").Pattern),a=n("LRdl"),s=n("zsGe").AbstractQueryTree;Callbacks={},Callbacks.ANYTHING={token:"var",value:"_"},Callbacks.added="added",Callbacks.deleted="deleted",Callbacks.eventsFlushed="eventsFlushed",Callbacks.CallbacksBackend=function(){this.aqt=new s,this.engine=arguments[0],this.indexMap={},this.observersMap={},this.queriesIndexMap={},this.emptyNotificationsMap={},this.queriesList=[],this.pendingQueries=[],this.matchedQueries=[],this.updateInProgress=null,this.indices=["SPOG","GP","OGS","POG","GSP","OS"],this.componentOrders={SPOG:["subject","predicate","object","graph"],GP:["graph","predicate","subject","object"],OGS:["object","graph","subject","predicate"],POG:["predicate","object","graph","subject"],GSP:["graph","subject","predicate","object"],OS:["object","subject","predicate","graph"]},this.callbackCounter=0,this.callbacksMap={},this.callbacksInverseMap={},this.queryCounter=0,this.queriesMap={},this.queriesCallbacksMap={},this.queriesInverseMap={};for(var e=0;e ?p ?o } WHERE { GRAPH <"+t+"> { <"+e+"> ?p ?o } }",o=this,s={blanks:{},outCache:{}};this.engine.registerNsInEnvironment(null,s);var l=[];this.engine.execute(i,function(t,i){if(t)r&&r(!1);else{var u=i,c=!1,f=function(e,t){if("eventsFlushed"===e&&c){c=!1;try{n(u)}catch(e){}}else if("eventsFlushed"!==e){c=!0;for(var r=0;rd.cost)&&(s=d)}for(var p=2;p<=e.length;p++)for(var g=1;gw.cost&&(a===p&&(s=w),n[w.i]=w)}}}}l.push(s),t()})},function(){var e=null;i.eachSeries(l,function(i,a){o.executeBushyTree(i,t,n,r,function(t){t?null==e?(e=t,a()):(e=o.crossProductBindings(e,t),a()):a("Error executing bushy tree")})},function(t){t?a(null,t):a(e)})})},executeEmptyJoinBGP:function(e,t,n,r,i){return o.executeBGPDatasets(e,t,n,r,i)},executeBGPDatasets:function(e,t,n,r,a){var s={};if(null==e.graph){var l=[];i.eachSeries(t.implicit,function(t,i){null==s[t.oid]?(s[t.oid]=!0,e.graph=t,n.rangeQuery(e,r,function(t){t=o.buildBindingsFromRange(t,e),l.push(t),i()})):i()},function(){var e=o.unionManyBindings(l);a(e)})}else if("var"===e.graph.token){var u=e.graph.value;l=[],i.eachSeries(t.named,function(t,i){null==s[t.oid]?(s[t.oid]=!0,e.graph=t,null!=l?n.rangeQuery(e,r,function(n){if(null!=n){n=o.buildBindingsFromRange(n,e);for(var r=0;re?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return f(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return p.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(f(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(f(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return y(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(v);return s.a.call(Object(o.a)(n),y)}},e}();function m(e){return null!=e}function v(e){var t=Object(i["\u0275isPromise"])(e)?Object(a.a)(e):e;if(!Object(i["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function y(e){var t=e.reduce(function(e,t){return null!=t?Object(r.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new i.InjectionToken("NgValueAccessor"),_={provide:b,useExisting:Object(i.forwardRef)(function(){return w}),multi:!0},w=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),x={provide:b,useExisting:Object(i.forwardRef)(function(){return C}),multi:!0},k=new i.InjectionToken("CompositionEventMode"),C=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(l.s)()?Object(l.s)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function E(e){return e.validate?function(t){return e.validate(t)}:e}function S(e){return e.validate?function(t){return e.validate(t)}:e}var T={provide:b,useExisting:Object(i.forwardRef)(function(){return O}),multi:!0},O=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function A(){throw new Error("unimplemented")}var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),t}(u),R={provide:b,useExisting:Object(i.forwardRef)(function(){return j}),multi:!0},P=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),j=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(I),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),D={provide:b,useExisting:Object(i.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),F={provide:b,useExisting:Object(i.forwardRef)(function(){return L}),multi:!0};function M(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var L=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=M(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Z(e){return null!=e?g.compose(e.map(E)):null}function Y(e){return null!=e?g.composeAsync(e.map(S)):null}function $(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(t,n.currentValue)}var J=[w,N,O,L,z,j];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===C?n=t:(o=t,J.some(function(e){return o.constructor===e})?(r&&X(e,"More than one built-in value accessor matches form control with"),r=t):(i&&X(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(X(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.b)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return Q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Y(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),ie=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),oe={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},ae=function(e){function t(t){return e.call(this,t)||this}return Object(r.b)(t,e),t}(ie),se=function(e){function t(t){return e.call(this,t)||this}return Object(r.b)(t,e),t}(ie);function le(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Z(t):t||null}function ue(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?Y(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var fe=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=le(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ue(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(r.a)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(r.a)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=v(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof de?e.controls[t]||null:e instanceof pe&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),he=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,le(n),ue(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.b)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(fe),de=function(e){function t(t,n,r){var i=e.call(this,le(n),ue(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof he?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(fe),pe=function(e){function t(t,n,r){var i=e.call(this,le(n),ue(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof he?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(fe),ge={provide:c,useExisting:Object(i.forwardRef)(function(){return ve})},me=Promise.resolve(null),ve=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new de({},Z(t),Y(n)),r}return Object(r.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),H(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),r=new de({});W(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ye='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_e='\n
\n
\n \n
\n
',we=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ye+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+_e)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+_e)},e}(),xe={provide:c,useExisting:Object(i.forwardRef)(function(){return ke})},ke=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ve||we.modelGroupParentException()},t}(re),Ce={provide:I,useExisting:Object(i.forwardRef)(function(){return Se})},Ee=Promise.resolve(null),Se=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.control=new he,a._registered=!1,a.update=new i.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=te(a,o),a}return Object(r.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),$(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?Q(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){H(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof ke)&&this._parent instanceof re?we.formGroupNameException():this._parent instanceof ke||this._parent instanceof ve||we.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||we.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ee.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Ee.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(I),Te=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ye)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+_e)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ye)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Oe={provide:I,useExisting:Object(i.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,r){var o=e.call(this)||this;return o.update=new i.EventEmitter,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=te(o,r),o}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Te.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),$(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(I),Ie={provide:c,useExisting:Object(i.forwardRef)(function(){return Re})},Re=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r}return Object(r.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return H(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);W(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);W(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return K(t)}),t.valueAccessor.registerOnTouched(function(){return K(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&H(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Z(this._validators);this.form.validator=g.compose([this.form.validator,e]);var t=Y(this._asyncValidators);this.form.asyncValidator=g.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Te.missingFormException()},t}(c),Pe={provide:c,useExisting:Object(i.forwardRef)(function(){return je})},je=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(t,e),t.prototype._checkParentType=function(){Fe(this._parent)&&Te.groupParentException()},t}(re),De={provide:c,useExisting:Object(i.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return Q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Y(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){Fe(this._parent)&&Te.arrayParentException()},t}(c);function Fe(e){return!(e instanceof je||e instanceof Re||e instanceof Ne)}var Me={provide:I,useExisting:Object(i.forwardRef)(function(){return Le})},Le=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a._added=!1,a.update=new i.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=te(a,o),a}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Te.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),$(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return Q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof je)&&this._parent instanceof re?Te.ngModelGroupException():this._parent instanceof je||this._parent instanceof Re||this._parent instanceof Ne||Te.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(I),Be={provide:h,useExisting:Object(i.forwardRef)(function(){return Ue}),multi:!0},Ve={provide:h,useExisting:Object(i.forwardRef)(function(){return ze}),multi:!0},Ue=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?g.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.b)(t,e),t.prototype.validate=function(e){return this.required?g.requiredTrue(e):null},t}(Ue),qe={provide:h,useExisting:Object(i.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?g.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),He={provide:h,useExisting:Object(i.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.minLength(parseInt(this.minlength,10))},e}(),We={provide:h,useExisting:Object(i.forwardRef)(function(){return Ke}),multi:!0},Ke=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.maxLength(parseInt(this.maxlength,10))},e}(),Xe={provide:h,useExisting:Object(i.forwardRef)(function(){return Ze}),multi:!0},Ze=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=g.pattern(this.pattern)},e}(),Ye=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new de(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new he(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new pe(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof he||e instanceof de||e instanceof pe?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),$e=new i.Version("5.2.8"),Je=function(){},et=[Je,B,q,C,O,N,w,L,z,j,ae,se,Ue,Ge,Ke,Ze,ze,Qe],tt=[Se,ke,ve],nt=[Ae,Re,Le,je,Ne],rt=function(){},it=function(){},ot=function(){}},"7dSG":function(e,t,n){"use strict";(function(t,r){var i=n("ypnx");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;v.WritableState=m;var l=n("jOgh");l.inherits=n("LC74");var u,c={deprecate:n("iP15")},f=n("UcPO"),h=n("X3l8").Buffer,d=r.Uint8Array||function(){},p=n("x0Ha");function g(){}function m(e,t){a=a||n("DsFX");var r=t instanceof a;this.objectMode=!!(e=e||{}).objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,u=e.writableHighWaterMark;this.highWaterMark=l||0===l?l:r&&(u||0===u)?u:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,o);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),r?s(b,e,n,a,o):b(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(a=a||n("DsFX"),!(u.call(v,this)||this instanceof a))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function y(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function _(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=new Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0,s=!0;n;)r[a]=n,n.isBuf||(s=!1),n=n.next,a+=1;r.allBuffers=s,y(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk;if(y(e,t,!1,t.objectMode?1:l.length,l,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=w(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(v,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===v&&e&&e._writableState instanceof m}})):u=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(h.isBuffer(r=e)||r instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=g),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n("W2nU"),n("DuR2"))},"87vf":function(e,t,n){e.exports=n("7dSG")},"8D5t":function(e,t,n){"use strict";var r=n("Qnch");function i(e){return e}t.a=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(i,null,e)}},"8U58":function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),_=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=y&&(u||f&&(null==w||w<12.11)),k=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,S=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return T(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(N=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null};function V(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function K(e){for(;W.length<=e;)W.push(X(W)+" ");return W[e]}function X(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ge(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ge(e.line,t):n<0?ge(e.line,0):e}(t,se(e,t.line).text.length)}function ke(e,t){for(var n=[],r=0;r=t:o.to>t)?null:o.to))}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft))&&(r||(r=[])).push(new Se(a,null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?me(u.to,n)>=0:me(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?me(u.from,r)<=0:me(u.from,r)<0)))return!0}}}function Ve(e){for(var t;t=Me(e);)e=t.find(-1,!0).line;return e}function Ue(e,t){var n=se(e,t),r=Ve(n);return n==r?t:fe(r)}function ze(e,t){if(t>e.lastLine())return t;var n,r=se(e,t);if(!qe(e,r))return t;for(;n=Le(r);)r=n.find(1,!0).line;return fe(r)+1}function qe(e,t){var n=Ee&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ke=null;function Xe(e,t,n){var r;Ke=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ke=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ke=i)}return null!=r?r:Ke}var Ze=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,c=a.length,f=[],h=0;h-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function nt(e,t){var n=et(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function at(e){e.prototype.on=function(e,t){Je(this,e,t)},e.prototype.off=function(e,t){tt(this,e,t)}}function st(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function lt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ut(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ct(e){st(e),lt(e)}function ft(e){return e.target||e.srcElement}function ht(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var dt,pt,gt=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function mt(e){if(null==dt){var t=A("span","\u200b");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(dt=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=dt?A("span","\u200b"):A("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function vt(e){if(null!=pt)return pt;var t=O(e,document.createTextNode("A\u062eA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(pt=r.right-n.right<3)}var yt,bt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},_t=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},wt="oncopy"in(yt=A("div"))||(yt.setAttribute("oncopy","return;"),"function"==typeof yt.oncopy),xt=null,kt={},Ct={};function Et(e){if("string"==typeof e&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&"string"==typeof e.name&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];"string"==typeof t&&(t={name:t}),(e=$(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Et("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Et("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function St(e,t){t=Et(t);var n=kt[t.name];if(!n)return St(e,"text/plain");var r=n(e,t);if(Tt.hasOwnProperty(t.name)){var i=Tt[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Tt={};function Ot(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function At(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function It(e,t,n){return!e.startState||e.startState(t,n)}var Rt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.post},Rt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Rt.prototype.backUp=function(e){this.pos-=e},Rt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Rt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Rt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Pt=function(e,t){this.state=e,this.lookAhead=t},jt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Dt(e,t,n,r){var i=[e.state.modeGen],o={};qt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,qt(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ot(e.doc.mode,r.state),o=Dt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ft(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new jt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=se(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof Pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=L(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&se(r,o-1).stateAfter,s=a?jt.fromSaved(r,a,o):new jt(r,It(r.mode),o);return r.iter(o,t,function(n){Mt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}jt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},jt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},jt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},jt.fromSaved=function(e,t,n){return t instanceof Pt?new jt(e,Ot(e.mode,t.state),n,t.lookAhead):new jt(e,Ot(e.mode,t),n)},jt.prototype.save=function(e){var t=!1!==e?Ot(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pt(t,this.maxLookAhead):t};var Vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ut(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=se(a,(t=xe(a,t)).line),u=Ft(e,t.line,n),c=new Rt(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&Mt(e,t,r,f.pos),f.pos=t.length,l=null):l=zt(Bt(n,f,r.state,h),o),h){var d=h[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){for(;u1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&f.from<=u);h++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function Jt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function en(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,h,d=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=u=c=f=s="",h=null,v=1/0;for(var y=[],b=void 0,_=0;_p||x.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(c+=" "+x.startStyle),x.endStyle&&w.to==v&&(b||(b=[])).push(x.endStyle,w.to),x.title&&!f&&(f=x.title),x.collapsed&&(!h||Ne(h.marker,x)<0)&&(h=w)):w.from>p&&v>w.from&&(v=w.from)}if(b)for(var k=0;k=d)break;for(var E=Math.min(d,v);;){if(m){var S=p+m.length;if(!h){var T=S>E?m.slice(0,E-p):m;t.addToken(t,T,a?a+l:l,c,p+T.length==v?u:"",f,s)}if(S>=E){m=m.slice(E-p),p=E;break}p=S,c=""}m=i.slice(o,o=n[g++]),a=Kt(n[g++],t.cm.options)}}else for(var O=1;On)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function On(e,t,n,r){return Rn(e,In(e,t),n,r)}function An(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Dn(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e.display.measure))return n;var r=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*r,right:n.right*r,top:n.top*i,bottom:n.bottom*i}}(0,i))}else{var d;u>0&&(f=r="right"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+er(e.display),top:p.top,bottom:p.bottom}:jn}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Fn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=Xe(s,l,u),h=Ke,d=c(l,f,"before"==u);return null!=h&&(d.other=c(l,h,"before"!=u)),d}function Gn(e,t){var n=0;t=xe(e.doc,t),e.options.lineWrapping||(n=er(e.display)*t.ch);var r=se(e.doc,t.line),i=He(r)+wn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Wn(e,t,n,r,i){var o=ge(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Kn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Wn(r.first,0,null,!0,-1);var i=he(r,n),o=r.first+r.size-1;if(i>o)return Wn(r.first+r.size-1,se(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=se(r,i);;){var s=$n(e,a,i,t,n),l=Le(a),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=fe(a=u.to.line)}}function Xn(e,t,n,r){r-=Un(t);var i=t.text.length,o=ae(function(t){return Rn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ae(function(t){return Rn(e,n,t).top>r},o,i)}}function Zn(e,t,n,r){return n||(n=In(e,t)),Xn(e,t,n,zn(e,t,Rn(e,n,r),"line").top)}function Yn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function $n(e,t,n,r,i){i-=He(t);var o=In(e,t),a=Un(t),s=0,l=t.text.length,u=!0,c=Ye(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var s=Xn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||d.to<=l)){var p=Rn(e,r,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,g=pg)&&(c=d,f=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}:function(e,t,n,r,i,o,a){var s=ae(function(s){var l=i[s],u=1!=l.level;return Yn(Hn(e,ge(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Hn(e,ge(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Yn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l})(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var h,d,p=null,g=null,m=ae(function(t){var n=Rn(e,o,t);return n.top+=a,n.bottom+=a,!!Yn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)},s,l),v=!1;if(g){var y=r-g.left=_.bottom}return Wn(n,m=oe(t.text,m,1),d,v,r-h)}function Jn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Pn){Pn=A("pre");for(var t=0;t<49;++t)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(A("br"));Pn.appendChild(document.createTextNode("x"))}O(e.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function er(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t]);O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function tr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:nr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function nr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function rr(e){var t=Jn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/er(e.display)-3);return function(i){if(qe(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?h:r,function(e,t,i,f){var m="ltr"==i,v=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),b=null==n&&0==e,_=null==r&&t==h,w=0==f,x=!g||f==g.length-1;if(y.top-v.top<=3){var k=(u?b:_)&&w?s:(m?v:y).left;c(k,v.top,((u?_:b)&&x?l:(m?y:v).right)-k,v.bottom)}else{var C,E,S,T;m?(C=u&&b&&w?s:v.left,E=u?l:p(e,i,"before"),S=u?s:p(t,i,"after"),T=u&&_&&x?l:y.right):(C=u?p(e,i,"before"):s,E=!u&&b&&w?l:v.right,S=!u&&_&&x?s:y.left,T=u?p(t,i,"after"):l),c(C,v.top,E-C,v.bottom),v.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function dr(e){e.state.focused||(e.display.input.focus(),gr(e))}function pr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,mr(e))},100)}function gr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(nt(e,"focus",e,t),e.state.focused=!0,j(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),hr(e))}function mr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(nt(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function vr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||c<-.005)&&(ce(i.line,o),yr(i.line),i.rest))for(var f=0;f=a&&(o=he(t,He(se(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function _r(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=nr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;ao&&(t.bottom=t.top+o);var s=e.doc.height+xn(n),l=t.bottom>s-r;if(t.topi+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var c=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=En(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+c-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function kr(e,t){null!=t&&(Sr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Cr(e){Sr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Er(e,t,n){null==t&&null==n||Sr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Sr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Tr(e,Gn(e,t.from),Gn(e,t.to),t.margin))}function Tr(e,t,n,r){var i=xr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Er(e,i.scrollLeft,i.scrollTop)}function Or(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||oi(e,{top:t}),Ar(e,t,!0),n&&oi(e),ei(e,100))}function Ar(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ir(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,_r(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Rr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+xn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Cn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Pr=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(i),Je(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Je(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0",this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+(e.viewHeight-(t?r:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),t?(this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+(e.viewWidth-e.barLeft-(n?r:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Pr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!d?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Pr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Pr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var jr=function(){};function Dr(e,t){t||(t=Rr(e));var n=e.display.barWidth,r=e.display.barHeight;Nr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&vr(e),Nr(e,Rr(e)),n=e.display.barWidth,r=e.display.barHeight}function Nr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}jr.prototype.update=function(){return{bottom:0,right:0}},jr.prototype.setScrollLeft=function(){},jr.prototype.setScrollTop=function(){},jr.prototype.clear=function(){};var Fr={native:Pr,null:jr};function Mr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Fr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Je(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Ir(e,t):Or(e,t)},e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var Lr=0;function Br(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lr},t=e.curOp,rn?rn.ops.push(t):t.ownsGroup=rn={ops:[t],delayedCallbacks:[]}}function Vr(e){!function(t,n){var r=e.curOp.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ni(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function zr(e){var t=e.cm,n=t.display;e.updatedDisplay&&vr(t),e.barMeasure=Rr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=On(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Cn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-En(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function qr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=A("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-wn(e.display))+"px;\n height: "+(t.bottom-t.top+Cn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ge(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ge(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Hn(e,t),l=n&&n!=t?Hn(e,n):s,u=xr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Or(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Ir(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,xe(r,e.scrollToPos.from),xe(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;at)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ee&&Ue(e.doc,t)i.viewFrom?Yr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Yr(e);else if(t<=i.viewFrom){var o=$r(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Yr(e)}else if(n>=i.viewTo){var a=$r(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Yr(e)}else{var s=$r(e,t,t,-1),l=$r(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(nn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Yr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[ar(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function Yr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $r(e,t,n,r){var i,o=ar(e,t),a=e.display.view;if(!Ee||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Ue(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Jr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Ft(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ot(t.mode,r.state):null,l=Dt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hn)return ei(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Hr(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Jr(e))return!1;wr(e)&&(Yr(e),t.dims=tr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ee&&(o=Ue(e.doc,o),a=ze(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=nn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=nn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ar(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=He(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=Jr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=P();if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(d=!1),ln(e,h,c,n)),d&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(pe(e.options,c)))),a=h.node.nextSibling}else{var p=gn(e,h,c,n);o.insertBefore(p,a)}c+=h.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=P()&&(e.activeElt.focus(),e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ei(e,400)),n.updateLineNumbers=null,!0}function ii(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=En(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+xn(e.display)-Sn(e),n.top)}),t.visible=br(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ri(e,t);r=!1){vr(e);var i=Rr(e);sr(e),Dr(e,i),si(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function oi(e,t){var n=new ni(e,t);if(ri(e,n)){vr(e),ii(e,n);var r=Rr(e);sr(e),Dr(e,r),si(e,r),n.finish()}}function ai(e){e.display.sizer.style.marginLeft=e.display.gutters.offsetWidth+"px"}function si(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Cn(e)+"px"}function li(e){var t=e.display.gutters,n=e.options.gutters;T(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}ni.prototype.signal=function(e,t){ot(e,t)&&this.events.push(arguments)},ni.prototype.finish=function(){for(var e=0;es.clientHeight;if(i&&s.scrollWidth>s.clientWidth||o&&u){if(o&&y&&l)e:for(var c=t.target,h=a.view;c!=s;c=c.parentNode)for(var d=0;d=0&&me(e,r.to())<=0)return n}return-1};var gi=function(e,t){this.anchor=e,this.head=t};function mi(e,t){var n=e[t];e.sort(function(e,t){return me(e.from(),t.from())}),t=V(e,n);for(var r=1;r=0){var a=_e(o.from(),i.from()),s=be(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new gi(l?s:a,l?a:s))}}return new pi(e,t)}function vi(e,t){return new pi([new gi(e,t||e)],0)}function yi(e){return e.text?ge(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function bi(e,t){if(me(e,t.from)<0)return e;if(me(e,t.to)<=0)return yi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=yi(t).ch-t.to.ch),ge(n,r)}function _i(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}an(e,"change",e,t)}function Si(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ri(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(i,i.lastOp==r)))a=X(o.changes),0==me(t.from,t.to)&&0==me(t.from,a.to)?a.to=yi(t):o.changes.push(Ii(e,t));else{var l=X(i.done);for(l&&l.ranges||ji(e.sel,i.done),o={changes:[Ii(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||nt(e,"historyAdded")}function ji(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Di(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Ni(e){if(!e)return null;for(var t,n=0;n-1&&(X(s)[f]=u[f],delete u[f])}}}return r}function Li(e,t,n,r){if(r){var i=e.anchor;if(n){var o=me(t,i)<0;o!=me(n,i)<0?(i=t,t=n):o!=me(t,n)<0&&(t=n)}return new gi(i,t)}return new gi(n||t,t)}function Bi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new pi([Li(e.sel.primary(),t,n,i)],0),r)}function Vi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(nt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var u=l.find(r<0?1:-1),c=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(u=Yi(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=me(u,n))&&(r<0?c<0:c>0))return Xi(e,u,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(f=Yi(e,f,r,f.line==t.line?o:null)),f?Xi(e,f,t,r,i):null}}return t}function Zi(e,t,n,r,i){var o=r||1;return Xi(e,t,n,o,i)||!i&&Xi(e,t,n,o,!0)||Xi(e,t,n,-o,i)||!i&&Xi(e,t,n,-o,!0)||(e.cantEdit=!0,ge(e.first,0))}function Yi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?xe(e,ge(t.line-1)):null:n>0&&t.ch==(r||se(e,t.line)).text.length?t.line0)){var c=[l,1],f=me(u.from,s.from),h=me(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)to(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else to(e,t)}}function to(e,t){if(1!=t.text.length||""!=t.text[0]||0!=me(t.from,t.to)){var n=_i(e,t);Pi(e,t,n,e.cm?e.cm.curOp.id:NaN),io(e,t,n,Ae(e,t));var r=[];Si(e,function(e,n){n||-1!=V(r,e.history)||(lo(e.history,t),r.push(e.history)),io(e,t,null,Ae(e,t))})}}function no(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=h(d);if(p)return p.v}}}}function ro(e,t){if(0!=t&&(e.first+=t,e.sel=new pi(Z(e.sel.ranges,function(e){return new gi(ge(e.anchor.line+t,e.anchor.ch),ge(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Xr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ge(o,se(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=le(e,t.from,t.to),n||(n=_i(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=fe(Ve(se(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&it(e),Ei(r,t,n,rr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=Ge(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=se(e,r).stateAfter;if(i&&(!(i instanceof Pt)||r+i.lookAhead1||!(this.children[0]instanceof co))){var s=[];this.collapse(s),this.children=[new co(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Be(e,t.line,t,n,o)||t.line!=n.line&&Be(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ee=!0}o.addToHistory&&Pi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&Ve(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&ce(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Se(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){qe(e,t)&&ce(t,0)}),o.clearOnEnter&&Je(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Ce=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++go,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Xr(u,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)Zr(u,c,"text");o.atomic&&Wi(u.doc),an(u,"markerAdded",u,o)}return o}mo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Br(e),ot(this,"clear")){var n=this.find();n&&an(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Xr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wi(e.doc)),e&&an(e,"markerCleared",e,this,r,i),t&&Vr(e),this.parent&&this.parent.clear()}},mo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)eo(this,r[l]);s?qi(this,s):this.cm&&Cr(this.cm)}),undo:Kr(function(){no(this,"undo")}),redo:Kr(function(){no(this,"redo")}),undoSelection:Kr(function(){no(this,"undo",!0)}),redoSelection:Kr(function(){no(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=xe(this,e),t=xe(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),xe(this,ge(n,t))},indexFromPos:function(e){var t=(e=xe(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Hi(t.doc,vi(n,n)),f)for(var h=0;h=0;t--)oo(e.doc,"",r[t].from,r[t].to,"+delete");Cr(e)})}function Uo(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function zo(e,t,n){var r=Uo(e,t.ch,n);return null==r?null:new ge(t.line,r,n<0?"after":"before")}function qo(e,t,n,r,i){if(e){var o=Ye(n,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=In(t,n),c=Rn(t,u,a=i<0?n.text.length-1:0).top;a=ae(function(e){return Rn(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Uo(n,a,1))}else a=i<0?s.to:s.from;return new ge(r,a,l)}}return new ge(r,i<0?n.text.length:0,i<0?"before":"after")}jo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},jo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},jo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},jo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},jo.default=y?jo.macDefault:jo.pcDefault;var Qo={selectAll:$i,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Vo(e,function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ge(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ge(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=se(e.doc,i.line-1).text;a&&(i=new ge(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ge(i.line-1,a.length-1),i,"+transpose"))}n.push(new gi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Hr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(me((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(me(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=Gr(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,tt(document,"mouseup",u),tt(document,"mousemove",c),tt(i.scroller,"dragstart",f),tt(i.scroller,"drop",u),o||(st(t),r.addNew||Bi(e.doc,n,null,null,r.extend),l||a&&9==s?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),Je(document,"mouseup",u),Je(document,"mousemove",c),Je(i.scroller,"dragstart",f),Je(i.scroller,"drop",u),pr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;st(t);var a,s,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new gi(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new gi(n,n)),n=or(e,t,!0,!0),s=-1;else{var c=aa(e,n,r.unit);a=r.extend?Li(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Qi(o,mi(u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Qi(o,mi(u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ui(o,s,a,Q):(s=0,Qi(o,new pi([a],0),Q),l=o.sel);var f=n,h=i.wrapper.getBoundingClientRect(),d=0;function p(t){e.state.selectingText=!1,d=1/0,st(t),i.input.focus(),tt(document,"mousemove",g),tt(document,"mouseup",m),o.history.lastSelOrigin=null}var g=Gr(e,function(t){ht(t)?function t(u){var c=++d,p=or(e,u,!0,"rectangle"==r.unit);if(p)if(0!=me(p,f)){e.curOp.focus=P(),function(t){if(0!=me(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=L(se(o,n.line).text,n.ch,u),h=L(se(o,t.line).text,t.ch,u),d=Math.min(c,h),p=Math.max(c,h),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=se(o,g).text,y=G(v,d,u);d==p?i.push(new gi(ge(g,y),ge(g,y))):v.length>y&&i.push(new gi(ge(g,y),ge(g,G(v,p,u))))}i.length||i.push(new gi(n,n)),Qi(o,mi(l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=a,w=aa(e,t,r.unit),x=_.anchor;me(w.anchor,x)>0?(b=w.head,x=_e(_.from(),w.anchor)):(b=w.anchor,x=be(_.to(),w.head));var k=l.ranges.slice(0);k[s]=function(e,t){var n=t.anchor,r=t.head,i=se(e.doc,n.line);if(0==me(n,r)&&n.sticky==r.sticky)return t;var o=Ye(i);if(!o)return t;var a=Xe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Xe(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],d=l==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?t:new gi(new ge(n.line,p,g),r)}(e,new gi(xe(o,x),b)),Qi(o,mi(k,s),Q)}}(p);var g=br(i,o);(p.line>=g.to||p.lineh.bottom?20:0;m&&setTimeout(Gr(e,function(){d==c&&(i.scroller.scrollTop+=m,t(u))}),50)}}(t):p(t)}),m=Gr(e,p);e.state.selectingText=m,Je(document,"mousemove",g),Je(document,"mouseup",m)}(e,r,t,o)}(t,r,o,e):ft(e)==n.scroller&&st(e):2==i?(r&&Bi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(k?ua(t,e):pr(t)))}}function aa(e,t,n){if("char"==n)return new gi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new gi(ge(t.line,0),xe(e.doc,ge(t.line+1,0)));var r=n(e,t);return new gi(r.from,r.to)}function sa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&st(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ot(e,n))return ut(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return nt(e,n,e,he(e.doc,o),e.options.gutters[l],t),ut(t)}}function la(e,t){return sa(e,t,"gutterClick",!0)}function ua(e,t){_n(e.display,t)||function(e,t){return!!ot(e,"gutterContextMenu")&&sa(e,t,"gutterContextMenu",!1)}(e,t)||rt(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ln(e)}ia.prototype.compare=function(e,t,n){return this.time+400>e&&0==me(t,this.pos)&&n==this.button};var fa={toString:function(){return"CodeMirror.Init"}},ha={},da={};function pa(e){li(e),Xr(e),_r(e)}function ga(e,t,n){if(!t!=!(n&&n!=fa)){var r=e.display.dragFunctions,i=t?Je:tt;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function ma(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),We(e)),ir(e),Xr(e),Ln(e),setTimeout(function(){return Dr(e)},100)}function va(e,t){var r=this;if(!(this instanceof va))return new va(e,t);this.options=t=t?M(t):{},M(ha,t,!1),ui(t);var i=t.value;"string"==typeof i&&(i=new xo(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var o=new va.inputStyles[t.inputStyle](this),u=this.display=new function(e,t,r){var i=this;this.input=r,i.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=I("div",null,"CodeMirror-code"),i.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=A("div",null,"CodeMirror-cursors"),i.measure=A("div",null,"CodeMirror-measure"),i.lineMeasure=A("div",null,"CodeMirror-measure"),i.lineSpace=I("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=I("div",[i.lineSpace],"CodeMirror-lines");i.mover=A("div",[o],null,"position: relative"),i.sizer=A("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=A("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),i.gutters=A("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=A("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=A("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}(e,i,o);for(var c in u.wrapper.CodeMirror=this,li(this),ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Mr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!v&&u.input.focus(),a&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;Je(t.scroller,"mousedown",Gr(e,oa)),Je(t.scroller,"dblclick",a&&s<11?Gr(e,function(t){if(!rt(e,t)){var n=or(e,t);if(n&&!la(e,t)&&!_n(e.display,t)){st(t);var r=e.findWordAt(n);Bi(e.doc,r.anchor,r.head)}}}):function(t){return rt(e,t)||st(t)}),k||Je(t.scroller,"contextmenu",function(t){return ua(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}Je(t.scroller,"touchstart",function(i){if(!rt(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!la(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),Je(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Je(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!_n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new gi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new gi(ge(s.line,0),xe(e.doc,ge(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),st(n)}i()}),Je(t.scroller,"touchcancel",i),Je(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Or(e,t.scroller.scrollTop),Ir(e,t.scroller.scrollLeft,!0),nt(e,"scroll",e))}),Je(t.scroller,"mousewheel",function(t){return di(e,t)}),Je(t.scroller,"DOMMouseScroll",function(t){return di(e,t)}),Je(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){rt(e,t)||ct(t)},over:function(t){rt(e,t)||(function(e,t){var n=or(e,t);if(n){var r=document.createDocumentFragment();ur(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}(e,t),ct(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-ko<100))ct(t);else if(!rt(e,t)&&!_n(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:Gr(e,Co),leave:function(t){rt(e,t)||Eo(e)}};var l=t.input.getField();Je(l,"keyup",function(t){return ea.call(e,t)}),Je(l,"keydown",Gr(e,Jo)),Je(l,"keypress",Gr(e,ta)),Je(l,"focus",function(t){return gr(e,t)}),Je(l,"blur",function(t){return mr(e,t)})}(this),function(){var e;To||(Je(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,So(Oo)},100))}),Je(window,"blur",function(){return So(mr)}),To=!0)}(),Br(this),this.curOp.forceUpdate=!0,Ti(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout(F(gr,this),20):mr(this),da)da.hasOwnProperty(c)&&da[c](r,t[c],fa);wr(this),t.finishInit&&t.finishInit(this);for(var d=0;d150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?L(se(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)h+=a,f+="\t";if(h1)if(_a&&_a.text.join("\n")==t){if(r.ranges.length%_a.text.length==0){u=[];for(var c=0;c<_a.text.length;c++)u.push(o.splitLines(_a.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Z(l,function(e){return[e]}));for(var f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=ge(d.line,d.ch-n):e.state.overwrite&&!s?p=ge(p.line,Math.min(se(o,p.line).text.length,p.ch+X(l).length)):_a&&_a.lineWise&&_a.text.join("\n")==t&&(d=p=ge(d.line,0))),a=e.curOp.updateInput;var g={from:d,to:p,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming?"cut":"+input")};eo(e.doc,g),an(e,"inputRead",e,g)}t&&!s&&Ca(e,t),Cr(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function ka(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Hr(t,function(){return xa(t,n,0,null,"paste")}),!0}function Ca(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=ba(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(se(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ba(e,i.head.line,"smart"));a&&an(e,"electricInput",e,i.head.line)}}}function Ea(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Xe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=c.begin))return new ge(n.line,h,f?"before":"after")}var d=function(e,t,r){for(var o=function(e,t){return t?new ge(n.line,l(e,1),"before"):new ge(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(p=d(r>0?0:i.length-1,r,u(g)))?null:p}(e.cm,s,t,n):zo(s,t,n))){if(r||(a=t.line+n)=e.first+e.size||(t=new ge(a,t.ch,t.sticky),!(s=se(e,a))))return!1;t=qo(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var d=s.text.charAt(t.ch)||"\n",p=te(d,f)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||h||p||(p="s"),u&&u!=p){n<0&&(n=1,l(),t.sticky="after");break}if(p&&(u=p),n>0&&!l(!h))break}var g=Zi(e,t,o,a,!0);return ve(o,g)&&(g.hitSide=!0),g}function Aa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Jn(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Kn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ia=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ra(e,t){var n=An(e,t.line);if(!n||n.hidden)return null;var r=se(e.doc,t.line),i=Tn(n,r,t.line),o=Ye(r,e.doc.direction),a="left";o&&(a=Xe(o,t.ch)%2?"right":"left");var s=Dn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Pa(e,t){return t&&(e.bad=!0),e}function ja(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Pa(e.clipPos(ge(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ra(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ge(a.line-1,se(r.doc,a.line-1).length)),s.ch==se(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ar(r,a.line))?(t=fe(i.view[0].line),n=i.view[0].node):(t=fe(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=ar(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=fe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator();function l(){a&&(o+=s,a=!1)}function u(e){e&&(l(),o+=e)}function c(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void u(n||t.textContent.replace(/\u200b/g,""));var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(ge(r,0),ge(i+1,0),(g=+f,function(e){return e.id==g}));return void(h.length&&(o=h[0].find(0))&&u(le(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(t.nodeName);d&&l();for(var p=0;p1&&h.length>1;)if(X(f)==X(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}for(var d=0,p=0,g=f[0],m=h[0],v=Math.min(g.length,m.length);da.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=ge(t,d),x=ge(l,h.length?X(h).length-p:0);return f.length>1||f[0]||me(w,x)?(oo(r.doc,f,w,x,"+input"),!0):void 0},Ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ia.prototype.reset=function(){this.forceCompositionEnd()},Ia.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ia.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ia.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Hr(this.cm,function(){return Xr(e.cm)})},Ia.prototype.setUneditable=function(e){e.contentEditable="false"},Ia.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||Gr(this.cm,xa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ia.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ia.prototype.onContextMenu=function(){},Ia.prototype.resetPosition=function(){},Ia.prototype.needsContentAttribute=!0;var Na=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Na.prototype.init=function(e){var t=this,n=this,r=this.cm,i=this.wrapper=Ta(),o=this.textarea=i.firstChild;function l(e){if(!rt(r,e)){if(r.somethingSelected())wa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ea(r);wa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",o.value=t.text.join("\n"),N(o))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(i,e.wrapper.firstChild),g&&(o.style.width="0px"),Je(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Je(o,"paste",function(e){rt(r,e)||ka(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Je(o,"cut",l),Je(o,"copy",l),Je(e.scroller,"paste",function(t){_n(e,t)||rt(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Je(e.lineSpace,"selectstart",function(t){_n(e,t)||st(t)}),Je(o,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Na.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=lr(e);if(e.options.moveInputWithCursor){var i=Hn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Na.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Na.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Na.prototype.getField=function(){return this.textarea},Na.prototype.supportsTouch=function(){return!1},Na.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||P()!=this.textarea))try{this.textarea.focus()}catch(e){}},Na.prototype.blur=function(){this.textarea.blur()},Na.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Na.prototype.receivedFocus=function(){this.slowPoll()},Na.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Na.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Na.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_t(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Na.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Na.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Na.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=or(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Gr(n,Qi)(n.doc,vi(o),q);var c=i.style.cssText,h=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var d,p=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=window.scrollY),r.input.focus(),l&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),k){ct(e);var g=function(){tt(window,"mouseup",g),setTimeout(v,20)};Je(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=c,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart){(!a||a&&s<9)&&m();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Gr(n,$i)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Na.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Na.prototype.setUneditable=function(){},Na.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=fa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=fa,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,xi(e)},!0),n("indentUnit",2,xi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){ki(e),Ln(e),Xr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ge(r,o))}r++});for(var i=n.length-1;i>=0;i--)oo(e.doc,t,n[i],ge(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=fa&&e.refresh()}),n("specialCharPlaceholder",Zt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ca(e),pa(e)},!0),n("keyMap","default",function(e,t,n){var r=Bo(t),i=n!=fa&&Bo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ma,!0),n("gutters",[],function(e){ui(e.options),pa(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?nr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Dr(e)},!0),n("scrollbarStyle","native",function(e){Mr(e),Dr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){ui(e.options),pa(e)},!0),n("firstLineNumber",1,pa,!0),n("lineNumberFormatter",function(e){return e},pa,!0),n("showCursorWhenSelecting",!1,sr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(mr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,ga),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,sr,!0),n("singleCursorHeightPerLine",!0,sr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ki,!0),n("addModeClass",!1,ki,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,ki,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(va),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Gr(this,t[e])(this,n,i),nt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Bo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(ba(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Cr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ui(this.doc,r,new gi(o,u[r].to()),q)}}}),getTokenAt:function(e,t){return Ut(this,e,t)},getLineTokens:function(e,t){return Ut(this,ge(e),t,!0)},getTokenTypeAt:function(e){e=xe(this.doc,e);var t,n=Nt(this,se(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=se(this.doc,e)}else r=e;return zn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-He(r):0)},defaultTextHeight:function(){return Jn(this.display)},defaultCharWidth:function(){return er(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s=this.display,l=(e=Hn(this,xe(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var c=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(null!=(a=xr(o=this,{left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight})).scrollTop&&Or(o,a.scrollTop),null!=a.scrollLeft&&Ir(o,a.scrollLeft))},triggerOnKeyDown:Wr(Jo),triggerOnKeyPress:Wr(ta),triggerOnKeyUp:ea,triggerOnMouseDown:Wr(oa),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:Wr(function(e){Ca(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=xe(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5)&&ir(this),nt(this,"refresh",this)}),swapDoc:Wr(function(e){var t=this.doc;return t.cm=null,Ti(this,e),Ln(this),this.display.input.reset(),Er(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,an(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},at(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(va);var Fa,Ma="iter insert remove copy getEditor constructor".split(" ");for(var La in xo.prototype)xo.prototype.hasOwnProperty(La)&&V(Ma,La)<0&&(va.prototype[La]=function(e){return function(){return e.apply(this.doc,arguments)}}(xo.prototype[La]));return at(xo),va.inputStyles={textarea:Na,contenteditable:Ia},va.defineMode=function(e){va.defaults.mode||"null"==e||(va.defaults.mode=e),(function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),kt[e]=t}).apply(this,arguments)},va.defineMIME=function(e,t){Ct[e]=t},va.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),va.defineMIME("text/plain","null"),va.defineExtension=function(e,t){va.prototype[e]=t},va.defineDocExtension=function(e,t){xo.prototype[e]=t},va.fromTextArea=function(e,t){if((t=t?M(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=P();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(Je(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(tt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=va(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(Fa=va).off=tt,Fa.on=Je,Fa.wheelEventPixels=function(e){var t=hi(e);return t.x*=fi,t.y*=fi,t},Fa.Doc=xo,Fa.splitLines=bt,Fa.countColumn=L,Fa.findColumn=G,Fa.isWordChar=ee,Fa.Pass=z,Fa.signal=nt,Fa.Line=Qt,Fa.changeEnd=yi,Fa.scrollbarModel=Fr,Fa.Pos=ge,Fa.cmpPos=me,Fa.modes=kt,Fa.mimeModes=Ct,Fa.resolveMode=Et,Fa.getMode=St,Fa.modeExtensions=Tt,Fa.extendMode=function(e,t){M(t,Tt.hasOwnProperty(e)?Tt[e]:Tt[e]={})},Fa.copyState=Ot,Fa.startState=It,Fa.innerMode=At,Fa.commands=Qo,Fa.keyMap=jo,Fa.keyName=Lo,Fa.isModifierKey=Fo,Fa.lookupKey=No,Fa.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Z(n.split(" "),Do),o=0;o=0)throw new Error("Invalid base IRI "+e)}else e=null;(this._base=e)&&(this._basePath=e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(l),this._baseRoot=e[0],this._baseScheme=e[1])},_readInTopContext:function(e){switch(e.type){case"eof":return null!==this._graph?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"@prefix":return this._sparqlStyle=!1,this._readPrefix;case"PREFIX":return this._sparqlStyle=!0,this._readPrefix;case"@base":return this._sparqlStyle=!1,this._readBaseIRI;case"BASE":return this._sparqlStyle=!0,this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}},_readSubject:function(e){switch(this._predicate=null,e.type){case"IRI":this._subject=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e);break;case"prefixed":var t=this._prefixes[e.prefix];if(void 0===t)return this._error('Undefined prefix "'+e.prefix+':"',e);this._subject=t+e.value;break;case"[":return this._subject="_:b"+f++,this._tripleStack.push({subject:this._subject,predicate:null,object:null,type:"blank"}),this._readBlankNodeHead;case"(":return this._tripleStack.push({subject:o,predicate:null,object:null,type:"list"}),this._subject=null,this._readListItem;case"}":return this._readPunctuation(e);default:return this._error("Expected subject but got "+e.type,e)}return this._readPredicateOrNamedGraph},_readPredicate:function(e){var t=e.type;switch(t){case"IRI":case"abbreviation":this._predicate=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e);break;case"prefixed":if("_"===e.prefix)return this._error("Disallowed blank node as predicate",e);var n=this._prefixes[e.prefix];if(void 0===n)return this._error('Undefined prefix "'+e.prefix+':"',e);this._predicate=n+e.value;break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected "+t,e):(this._subject=null,"]"===t?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._readPredicate;default:return this._error('Expected predicate to follow "'+this._subject+'"',e)}return this._readObject},_readObject:function(e){switch(e.type){case"IRI":this._object=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e);break;case"prefixed":var t=this._prefixes[e.prefix];if(void 0===t)return this._error('Undefined prefix "'+e.prefix+':"',e);this._object=t+e.value;break;case"literal":return this._object=e.value,this._readDataTypeOrLang;case"[":var n="_:b"+f++;return this._tripleStack.push({subject:this._subject,predicate:this._predicate,object:n,type:"blank"}),this._subject=n,this._readBlankNodeHead;case"(":return this._tripleStack.push({subject:this._subject,predicate:this._predicate,object:o,type:"list"}),this._subject=null,this._readListItem;default:return this._error('Expected object to follow "'+this._predicate+'"',e)}return this._getTripleEndReader()},_readPredicateOrNamedGraph:function(e){return"{"===e.type?this._readGraph(e):this._readPredicate(e)},_readGraph:function(e){return"{"!==e.type?this._error("Expected graph but got "+e.type,e):(this._graph=this._subject,this._subject=null,this._readSubject)},_readBlankNodeHead:function(e){return"]"===e.type?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))},_readBlankNodeTail:function(e){if("]"!==e.type)return this._readBlankNodePunctuation(e);null!==this._subject&&this._callback(null,{subject:this._subject,predicate:this._predicate,object:this._object,graph:this._graph||""});var t=this._tripleStack.pop();return this._subject=t.subject,null!==t.object?(this._predicate=t.predicate,this._object=t.object,this._getTripleEndReader()):null!==this._predicate?this._readPredicate:this._readPredicateOrNamedGraph},_readDataTypeOrLang:function(e){switch(e.type){case"type":var t;if(""===e.prefix)t=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e);else{var n=this._prefixes[e.prefix];if(void 0===n)return this._error('Undefined prefix "'+e.prefix+':"',e);t=n+e.value}return this._object+="^^"+t,this._getTripleEndReader();case"langcode":return this._object+="@"+e.value.toLowerCase(),this._getTripleEndReader();default:return this._getTripleEndReader().call(this,e)}},_readListItem:function(e){var t=null,n=null,r=this._subject,i=this._tripleStack,l=i[i.length-1],u=this._readListItem;switch(e.type){case"IRI":t=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e);break;case"prefixed":var c=this._prefixes[e.prefix];if(void 0===c)return this._error('Undefined prefix "'+e.prefix+':"',e);t=c+e.value;break;case"literal":t=e.value,u=this._readDataTypeOrLang;break;case"[":n="_:b"+f++,t="_:b"+f++,i.push({subject:n,predicate:a,object:t,type:"blank"}),this._subject=t,u=this._readBlankNodeHead;break;case"(":n="_:b"+f++,i.push({subject:n,predicate:a,object:o,type:"list"}),this._subject=null,u=this._readListItem;break;case")":if(i.pop(),0!==i.length&&"list"===i[i.length-1].type&&this._callback(null,{subject:l.subject,predicate:l.predicate,object:l.object,graph:this._graph||""}),this._subject=l.subject,null===l.predicate){if(u=this._readPredicate,l.subject===o)return u}else if(this._predicate=l.predicate,this._object=l.object,u=this._getTripleEndReader(),l.object===o)return u;n=o;break;default:return this._error('Expected list item instead of "'+e.type+'"',e)}return null===n&&(this._subject=n="_:b"+f++),null===r?l.object===o?l.object=n:l.subject=n:this._callback(null,{subject:r,predicate:"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",object:n,graph:this._graph||""}),null!==t&&this._callback(null,{subject:n,predicate:a,object:t,graph:this._graph||""}),u},_readPunctuation:function(e){var t,n=this._subject,r=this._graph;switch(e.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",e);this._graph=null;case".":this._subject=null,t=this._readInTopContext;break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"IRI":if(this._supportsQuads&&null===this._graph){r=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e),n=this._subject,t=this._readQuadPunctuation;break}case"prefixed":if(this._supportsQuads&&null===this._graph){var i=this._prefixes[e.prefix];if(void 0===i)return this._error('Undefined prefix "'+e.prefix+':"',e);r=i+e.value,t=this._readQuadPunctuation;break}default:return this._error('Expected punctuation to follow "'+this._object+'"',e)}return null!==n&&this._callback(null,{subject:n,predicate:this._predicate,object:this._object,graph:r||""}),t},_readBlankNodePunctuation:function(e){var t;switch(e.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object+'"',e)}return this._callback(null,{subject:this._subject,predicate:this._predicate,object:this._object,graph:this._graph||""}),t},_readQuadPunctuation:function(e){return"."!==e.type?this._error("Expected dot to follow quad",e):this._readInTopContext},_readPrefix:function(e){return"prefix"!==e.type?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)},_readPrefixIRI:function(e){return"IRI"!==e.type?this._error('Expected IRI to follow prefix "'+this._prefix+':"',e):(t=null===this._base||s.test(e.value)?e.value:this._resolveIRI(e),this._prefixes[this._prefix]=t,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation);var t},_readBaseIRI:function(e){if("IRI"!==e.type)return this._error("Expected IRI to follow base declaration",e);try{this._setBase(null===this._base||s.test(e.value)?e.value:this._resolveIRI(e))}catch(t){this._error(t.message,e)}return this._readDeclarationPunctuation},_readNamedGraphLabel:function(e){switch(e.type){case"IRI":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}},_readNamedGraphBlankLabel:function(e){return"]"!==e.type?this._error("Invalid graph label",e):(this._subject="_:b"+f++,this._readGraph)},_readDeclarationPunctuation:function(e){return this._sparqlStyle?this._readInTopContext(e):"."!==e.type?this._error("Expected declaration to end with a dot",e):this._readInTopContext},_getTripleEndReader:function(){var e=this._tripleStack;if(0===e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem}},_error:function(e,t){this._callback(new Error(e+" at line "+t.line+"."))},_resolveIRI:function(e){var t=e.value;switch(t[0]){case void 0:return this._base;case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return("/"===t[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return this._removeDotSegments(this._basePath+t)}},_removeDotSegments:function(e){if(!u.test(e))return e;for(var t="",n=e.length,r=-1,i=-1,o=0,a="/";r=i&&(t=t.substr(0,o)),"/"!==a)return t+"/"+e.substr(r+1);o=r+1}}}a=e[++r]}return t+e.substring(o)},parse:function(e,t,n){this._readCallback=this._readInTopContext,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix||"_:b"+c+++"_","function"==typeof e&&(n=t,t=e,e=null),this._callback=t||d,this._prefixCallback=n||d;var r=this;this._lexer.tokenize(e,function(e,t){null!==e?(r._callback(e),r._callback=d):void 0!==r._readCallback&&(r._readCallback=r._readCallback(t))}),e||(this.addChunk=this._lexer.addChunk,this.end=this._lexer.end)}},e.exports=h},"9lrC":function(e,t){var n=/^"([^]*)"(?:\^\^(.+)|@([\-a-z]+))?$/i,r=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,i=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,o={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};function a(e,t){if(!(this instanceof a))return new a(e,t);if(e&&"function"!=typeof e.write&&(t=e,e=null),t=t||{},e)this._outputStream=e,this._endStream=void 0===t.end||!!t.end;else{var n="";this._outputStream={write:function(e,t,r){n+=e,r&&r()},end:function(e){e&&e(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?this._writeTriple=this._writeTripleLine:(this._graph="",this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes))}function s(e){var t=o[e];return void 0===t&&(1===e.length?(t=e.charCodeAt(0).toString(16),t="\\u0000".substr(0,6-t.length)+t):(t=(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)+9216).toString(16),t="\\U00000000".substr(0,10-t.length)+t)),t}a.prototype={_write:function(e,t){this._outputStream.write(e,"utf8",t)},_writeTriple:function(e,t,n,r,i){try{this._graph!==r&&(this._write((null===this._subject?"":this._graph?"\n}\n":".\n")+(r?this._encodeIriOrBlankNode(r)+" {\n":"")),this._subject=null,this._graph="["!==r[0]?r:"]"),this._write(this._subject===e?this._predicate===t?", "+this._encodeObject(n):";\n "+this._encodePredicate(this._predicate=t)+" "+this._encodeObject(n):(null===this._subject?"":".\n")+this._encodeSubject(this._subject=e)+" "+this._encodePredicate(this._predicate=t)+" "+this._encodeObject(n),i)}catch(e){i&&i(e)}},_writeTripleLine:function(e,t,n,r,i){delete this._prefixMatch;try{this._write(this._encodeIriOrBlankNode(e)+" "+this._encodeIriOrBlankNode(t)+" "+this._encodeObject(n)+(r?" "+this._encodeIriOrBlankNode(r)+".\n":".\n"),i)}catch(e){i&&i(e)}},_encodeIriOrBlankNode:function(e){var t=e[0];if("["===t||"("===t||"_"===t&&":"===e[1])return e;r.test(e)&&(e=e.replace(i,s));var n=this._prefixRegex.exec(e);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:e:"<"+e+">"},_encodeLiteral:function(e,t,n){return r.test(e)&&(e=e.replace(i,s)),n?'"'+e+'"@'+n:t?'"'+e+'"^^'+this._encodeIriOrBlankNode(t):'"'+e+'"'},_encodeSubject:function(e){if('"'===e[0])throw new Error("A literal as subject is not allowed: "+e);return"["===e[0]&&(this._subject="]"),this._encodeIriOrBlankNode(e)},_encodePredicate:function(e){if('"'===e[0])throw new Error("A literal as predicate is not allowed: "+e);return"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"===e?"a":this._encodeIriOrBlankNode(e)},_encodeObject:function(e){if('"'!==e[0])return this._encodeIriOrBlankNode(e);var t=n.exec(e);if(!t)throw new Error("Invalid literal: "+e);return this._encodeLiteral(t[1],t[2],t[3])},_blockedWrite:function(){throw new Error("Cannot write because the writer has been closed.")},addTriple:function(e,t,n,r,i){void 0===n?this._writeTriple(e.subject,e.predicate,e.object,e.graph||"",t):"string"!=typeof r?this._writeTriple(e,t,n,"",r):this._writeTriple(e,t,n,r,i)},addTriples:function(e){for(var t=0;t.\n"))}if(r){var a="",s="";for(var l in n)a+=a?"|"+l:l,s+=(s?"|":"")+n[l];a=a.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&"),this._prefixRegex=new RegExp("^(?:"+s+")[^/]*$|^("+a+")([a-zA-Z][\\-_a-zA-Z0-9]*)$")}this._write(r?"\n":"",t)},blank:function(e,t){var n,r,i=e;switch(void 0===e?i=[]:"string"==typeof e?i=[{predicate:e,object:t}]:"length"in e||(i=[e]),r=i.length){case 0:return"[]";case 1:if("["!==(n=i[0]).object[0])return"[ "+this._encodePredicate(n.predicate)+" "+this._encodeObject(n.object)+" ]";default:for(var o="[",a=0;a!|\/]/;function s(e,t){var r,u=e.next();if('"'==u||"'"==u||"`"==u)return t.tokenize=(r=u,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"`"!=r&&"\\"==n}return(o||!i&&"`"!=r)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(u))return"."==u?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==u?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(u))return n=u,null;if("/"==u){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var c=e.current();return i.propertyIsEnumerable(c)?("case"!=c&&"default"!=c||(n="case"),"keyword"):o.propertyIsEnumerable(c)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function c(e,t,n){return e.context=new u(e.indented,t,n,null,e.context)}function f(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new u((e||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;n=null;var i=(t.tokenize||s)(e,t);return"comment"==i?i:(null==r.align&&(r.align=!0),"{"==n?c(t,e.column(),"}"):"["==n?c(t,e.column(),"]"):"("==n?c(t,e.column(),")"):"case"==n?r.type="case":"}"==n&&"}"==r.type?f(t):n==r.type&&f(t),t.startOfLine=!1,i)},indent:function(t,n){if(t.tokenize!=s&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(n))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:r)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")}(n("8U58"))},"Cbv+":function(module,exports,__webpack_require__){(function(process){var slowNextTick="undefined"!=typeof process&&process.nextTick?process.nextTick:"undefined"!=typeof window&&window.setImmediate?window.setImmediate:function(e){setTimeout(e,0)},spin=0,yieldFrequency=100,nextTick=function(e){++spin":'"'+e.value+'"^^<'+a+">"}else o=null==r&&null==i?'"'+n+'"':null==i?'"'+n+'"@'+r:-1!=i.indexOf("hexBinary")?'"'+e.value.toLowerCase()+'"^^<'+i+">":'"'+e.value+'"^^<'+i+">";return o},normalizeUnicodeLiterals=function(string){for(var escapedUnicode=string.match(/\\u[0-9abcdefABCDEF]{4,4}/g)||[],dups={},i=0;i=e.length?n():nextTick(i)})};i()},eachParallel=function(e,t,n){if(n=n||function(){},!e.length)return n();for(var r=!1,i=0,o=function(t){if(t)throw r=!0,new Error(t);r||++i===e.length&&n()},a=0;a ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links={},this.options=e||v.defaults,this.rules=n.normal,this.options.gfm&&(this.rules=this.options.tables?n.tables:n.gfm)}n._label=/(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,n.def=f(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d+\.)/,n.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,n.item=f(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=f(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",n.html=f(n.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,n._tag).getRegex(),n.paragraph=f(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag","<"+n._tag).getRegex(),n.blockquote=f(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=f(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=m({},n.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,o,a,s,l,u,c,f,h;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),this.tokens.push({type:"list_start",ordered:(a=o[2]).length>1}),r=!1,h=(o=o[0].match(this.rules.item)).length,c=0;c1&&s.length>1||(e=o.slice(c+1).join("\n")+e,c=h-1)),i=r||/\n\n(?!\s*$)/.test(l),c!==h-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),f=o[1].toLowerCase(),this.tokens.links[f]||(this.tokens.links[f]={href:o[2],title:o[3]});else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function f(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t){return d[" "+e]||(d[" "+e]=/^[^:]+:\/*[^/]*$/.test(e)?e+"/":e.replace(/[^/]*$/,"")),e=d[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=f(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,i._href=/\s*?(?:\s+['"]([\s\S]*?)['"])?\s*/,i.link=f(i.link).replace("inside",i._inside).replace("href",i._href).getRegex(),i.reflink=f(i.reflink).replace("inside",i._inside).getRegex(),i.normal=m({},i),i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),i.gfm=m({},i.normal,{escape:f(i.escape).replace("])","~|])").getRegex(),url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",i._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:f(i.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),i.breaks=m({},i.gfm,{br:f(i.br).replace("{2,}","*").getRegex(),text:f(i.gfm.text).replace("{2,}","*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),r="@"===i[2]?"mailto:"+(n=u(this.mangle(i[1]))):n=u(i[1]),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(u(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(u(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else i[0]=this.rules._backpedal.exec(i[0])[0],e=e.substring(i[0].length),"@"===i[2]?r="mailto:"+(n=u(i[0])):(n=u(i[0]),r="www."===i[1]?"http://"+n:n),o+=this.renderer.link(r,null,n);return o},o.prototype.outputLink=function(e,t){var n=u(t.href),r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
'+(n?e:u(e,!0))+"\n
\n":"
"+(n?e:u(e,!0))+"\n
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"'+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(c(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!p.test(e)&&(e=h(this.options.baseUrl,e));var i='
    "+n+""},a.prototype.image=function(e,t,n){this.options.baseUrl&&!p.test(e)&&(e=h(this.options.baseUrl,e));var r=''+n+'":">")},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;eAn error occurred:

    "+u(e.message+"",!0)+"
    ";throw e}}g.exec=g,v.options=v.setOptions=function(e){return m(v.defaults,e),v},v.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},v.Parser=l,v.parser=l.parse,v.Renderer=a,v.TextRenderer=s,v.Lexer=r,v.lexer=r.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.parse=v,e.exports=v}(this||"undefined"!=typeof window&&window)}).call(t,n("DuR2"))},EKta:function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,n,r,a,s,l=e.length;a=u(e),s=new o(3*l/4-a),n=a>0?l-4:l;var c=0;for(t=0;t>16&255,s[c++]=r>>8&255,s[c++]=255&r;return 2===a?(r=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[c++]=255&r):1===a&&(r=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[c++]=r>>8&255,s[c++]=255&r),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o="",a=[],s=0,l=n-i;sl?l:s+16383));return 1===i?(o+=r[(t=e[n-1])>>2],o+=r[t<<4&63],o+="=="):2===i&&(o+=r[(t=(e[n-2]<<8)+e[n-1])>>10],o+=r[t>>4&63],o+=r[t<<2&63],o+="="),a.push(o),a.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var i,o=[],a=t;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EN1B:function(e,t){},EuP9:function(e,t,n){"use strict";(function(e){var r=n("EKta"),i=n("ujcs"),o=n("sOR5");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var n="",r=0;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}).apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("DuR2"))},FWiS:function(e,t,n){var r=n("WmaG");t.JSONLDParser={};var i=t.JSONLDParser;i.parser={async:!0,parse:function(e,t,n,i){try{"string"==typeof e&&(e=JSON.parse(e)),function(t,n,i){var o=null;r.normalize(e,{},function(e,t){if(e)i(e);else{var r=function(e){return"blank node"===e.type?{blank:e.value}:"IRI"===e.type?{token:"uri",value:e.value}:"literal"===e.type?null!=e.language?{literal:'"'+e.value+'"@'+e.language}:null!==e.datatype?{literal:'"'+e.value+'"^^<'+e.datatype+">"}:{literal:'"'+e.value+'"'}:void 0};o=[];var a=function(e,t,i){o.push({subject:r(e),predicate:r(t),object:r(i),graph:n})};for(var s in t)for(var l=t[s],u=0;u0){for(var e="",t=0,n=this._options.headers;t-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype.isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e}();var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable},HdCx:function(e,t,n){"use strict";t.a=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}};var r=n("TToO"),i=n("OVmG"),o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return Object(r.b)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)},I3xM:function(e,t,n){var r=n("0S9w").Tree,i=n("Cbv+"),o=n("Cbv+");NodeKey=function(e,t){this.subject=e.subject,this.predicate=e.predicate,this.object=e.object,this.graph=e.graph,this.order=t},NodeKey.prototype.comparator=function(e){for(var t=0;te[n])return 1}return 0},Pattern=function(e){this.subject=e.subject,this.predicate=e.predicate,this.object=e.object,this.graph=e.graph,this.indexKey=[],this.keyComponents={};var t=[],n=[],r=this;i.forEach(["subject","predicate","object","graph"],function(e){"string"==typeof r[e]?(n.push(e),r.keyComponents[e]=null):(t.push(e),r.keyComponents[e]=r[e],r.indexKey.push(e))}),this.order=t.concat(n),this.key=new NodeKey(this.keyComponents,this.order)},QuadIndex=function(e,t){0!=arguments&&(this.componentOrder=e.componentOrder,r.call(this,e.order,function(e){e.comparator=function(t,n){for(var r=0;ra)return 1}return 0},e.rangeComparator=function(t,n){for(var r=0;rn[i])return 1}return 0},t(e)}))},QuadIndex.prototype=i.create(r.prototype,{constructor:r}),QuadIndex.prototype.insert=function(e,t){r.prototype.insert.call(this,e,null,function(e){t(e)})},QuadIndex.prototype.search=function(e,t){r.prototype.search.call(this,e,function(e){t(e)},!0)},QuadIndex.prototype.range=function(e,t){this._rangeTraverse(this,this.root,e,t)},QuadIndex.prototype._rangeTraverse=function(e,t,n,r){var i=n.key,a=[],s=[t];o.whilst(function(){return s.length>0},function(t){for(var n=s.shift(),r=0;r0?"INF":"-INF"));break;default:return'"'+e+'"'}return'"'+e+(/^[a-z]+(-[a-z0-9]+)*$/i.test(t)?'"@'+t.toLowerCase():'"^^'+t)},prefix:function(e){return r.prefixes({"":e})("")},prefixes:function(e){var t=Object.create(null);for(var n in e)r(n,e[n]);function r(e,n){if(n||!(e in t)){var r=Object.create(null);n=n||"",t[e]=function(e){return r[e]||(r[e]=n+e)}}return t[e]}return r}};e.exports=r},Jnfr:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="Jnfr"},JwLh:function(e,t,n){var r=n("9DG0").Transform,i=n("OMJi"),o=n("0zc4");function a(e){if(!(this instanceof a))return new a(e);r.call(this,{encoding:"utf8"}),this._writableState.objectMode=!0;var t=this,n=new o({write:function(e,n,r){t.push(e),r&&r()},end:function(e){t.push(null),e&&e()}},e);this._transform=function(e,t,r){n.addTriple(e,r)},this._flush=function(e){n.end(e)}}i.inherits(a,r),e.exports=a},K3Fi:function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},LC74:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},LRHW:function(e,t,n){t=e.exports={Lexer:void 0,Parser:void 0,Writer:void 0,Store:void 0,StreamParser:void 0,StreamWriter:void 0,Util:void 0},Object.keys(t).forEach(function(e){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return delete t[e],t[e]=n("beWv")("./N3"+e)}})})},LRdl:function(e,t,n){var r=n("Cbv+"),i=n("UuVp").QueryFilters;RDFModel={},RDFModel.defaultContext={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#",xsd:"http://www.w3.org/2001/XMLSchema#",dcterms:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",cal:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns# ",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",cc:"http://creativecommons.org/ns#",sioc:"http://rdfs.org/sioc/ns#",doap:"http://usefulinc.com/ns/doap#",com:"http://purl.org/commerce#",ps:"http://purl.org/payswarm#",gr:"http://purl.org/goodrelations/v1#",sig:"http://purl.org/signature#",ccard:"http://purl.org/commerce/creditcard#",ldp:"http://www.w3.org/ns/ldp#"},RDFModel.UrisMap=function(){this.defaultNs="",this.interfaceProperties=["get","remove","set","setDefault","addAll","resolve","shrink"]},RDFModel.UrisMap.prototype.values=function(){var e={};for(var t in this)r.include(this.interfaceProperties,t)||"function"==typeof this[t]||"defaultNs"===t||"interfaceProperties"===t||(e[t]=this[t]);return e},RDFModel.UrisMap.prototype.get=function(e){if(-1!=e.indexOf(" "))throw"Prefix must not contain any whitespaces";return this[e]},RDFModel.UrisMap.prototype.remove=function(e){if(-1!=e.indexOf(" "))throw"Prefix must not contain any whitespaces";return delete this[e],null},RDFModel.UrisMap.prototype.set=function(e,t){if(-1!=e.indexOf(" "))throw"Prefix must not contain any whitespaces";this[e]=t},RDFModel.UrisMap.prototype.setDefault=function(e){this.defaultNs=e},RDFModel.UrisMap.prototype.addAll=function(e,t){for(var n in e)r.include(this.interfaceProperties,n)||(null!=this[n]?!0===t&&(this[n]=e[n]):this[n]=e[n]);return this},RDFModel.UrisMap.prototype.resolve=function(e){var t=e.split(":"),n=t[0],r=t[1];return""===n?null==this.defaultNs?null:this.defaultNs+r:null!=this[n]?this[n]+r:null},RDFModel.UrisMap.prototype.shrink=function(e){for(var t in this){var n=this[t];if(0===e.indexOf(n)&&""!==n&&"defaultNs"!=t)return t+":"+e.split(n)[1]}return e},RDFModel.Profile=function(){this.prefixes=new RDFModel.UrisMap,this.terms=new RDFModel.UrisMap},RDFModel.Profile.prototype.importProfile=function(e,t){this.prefixes.addAll(e.prefixes,t),this.terms.addAll(e.terms,t)},RDFModel.Profile.prototype.resolve=function(e){return-1!=e.indexOf(":")?this.prefixes.resolve(e):null!=this.terms[e]?this.terms.resolve(e):null},RDFModel.Profile.prototype.setDefaultPrefix=function(e){this.prefixes.setDefault(e)},RDFModel.Profile.prototype.setDefaultVocabulary=function(e){this.terms.setDefault(e)},RDFModel.Profile.prototype.setPrefix=function(e,t){this.prefixes.set(e,t)},RDFModel.Profile.prototype.setTerm=function(e,t){this.terms.set(e,t)},RDFModel.RDFEnvironment=function(){RDFModel.Profile.call(this),this.blankNodeCounter=0;var e=this;for(var t in this.filters={s:function(e){return function(t){return t.subject.equals(e)}},p:function(e){return function(t){return t.predicate.equals(e)}},o:function(e){return function(t){return t.object.equals(e)}},sp:function(e,t){return function(n){return n.subject.equals(e)&&n.predicate.equals(t)}},so:function(e,t){return function(n){return n.subject.equals(e)&&n.object.equals(t)}},po:function(e,t){return function(n){return n.predicate.equals(e)&&n.object.equals(t)}},spo:function(e,t,n){return function(r){return r.subject.equals(e)&&r.predicate.equals(t)&&r.object.equals(n)}},describes:function(e){return function(t){return t.subject.equals(e)||t.object.equals(e)}},type:function(t){var n=e.resolve("rdf:type");return function(e){return e.predicate.equals(n)&&e.object.equals(t)}}},RDFModel.defaultContext)this.prefixes.set(t,RDFModel.defaultContext[t])},RDFModel.RDFEnvironment.prototype=r.create(RDFModel.Profile.prototype,{constructor:RDFModel.RDFEnvironment}),RDFModel.RDFEnvironment.prototype.createBlankNode=function(){var e=new RDFModel.BlankNode(this.blankNodeCounter);return this.blankNodeCounter++,e},RDFModel.RDFEnvironment.prototype.createNamedNode=function(e){var t=this.resolve(e);return null!=t?new RDFModel.NamedNode(t):new RDFModel.NamedNode(e)},RDFModel.RDFEnvironment.prototype.createLiteral=function(e,t,n){return null!=n?new RDFModel.Literal(e,t,n.toString()):new RDFModel.Literal(e,t,n)},RDFModel.RDFEnvironment.prototype.createTriple=function(e,t,n){return new RDFModel.Triple(e,t,n)},RDFModel.RDFEnvironment.prototype.createGraph=function(e){var t=new RDFModel.Graph;if(null!=e)for(var n=0;n"),e},RDFModel.Literal.prototype.toNT=function(){return this.toString()},RDFModel.Literal.prototype.valueOf=function(){return i.effectiveTypeValue({token:"literal",type:this.type||this.datatype,value:this.nominalValue,language:this.language})},RDFModel.NamedNode=function(e){RDFModel.RDFNode.call(this,"NamedNode"),this.nominalValue=null!=e.value?e.value:e},RDFModel.NamedNode.prototype=r.create(RDFModel.RDFNode.prototype,{constructor:RDFModel.NamedNode}),RDFModel.NamedNode.prototype.toString=function(){return this.nominalValue},RDFModel.NamedNode.prototype.toNT=function(){return"<"+this.toString()+">"},RDFModel.NamedNode.prototype.valueOf=function(){return this.nominalValue},RDFModel.Triple=function(e,t,n){this.subject=e,this.predicate=t,this.object=n},RDFModel.Triple.prototype.equals=function(e){return this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)},RDFModel.Triple.prototype.toString=function(){return this.subject.toNT()+" "+this.predicate.toNT()+" "+this.object.toNT()+" . \r\n"},RDFModel.Graph=function(){this.triples=[],this.duplicates={},this.actions=[],this.length=0},RDFModel.Graph.prototype.add=function(e){for(var t=0;t>>1,j=[["ary",w],["bind",p],["bindKey",g],["curry",v],["curryRight",y],["flip",k],["partial",b],["partialRight",_],["rearg",x]],D="[object Arguments]",N="[object Array]",F="[object AsyncFunction]",M="[object Boolean]",L="[object Date]",B="[object DOMException]",V="[object Error]",U="[object Function]",z="[object GeneratorFunction]",q="[object Map]",Q="[object Number]",H="[object Null]",G="[object Object]",W="[object Proxy]",K="[object RegExp]",X="[object Set]",Z="[object String]",Y="[object Symbol]",$="[object Undefined]",J="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",ne="[object Float32Array]",re="[object Float64Array]",ie="[object Int8Array]",oe="[object Int16Array]",ae="[object Int32Array]",se="[object Uint8Array]",le="[object Uint8ClampedArray]",ue="[object Uint16Array]",ce="[object Uint32Array]",fe=/\b__p \+= '';/g,he=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pe=/&(?:amp|lt|gt|quot|#39);/g,ge=/[&<>"']/g,me=RegExp(pe.source),ve=RegExp(ge.source),ye=/<%-([\s\S]+?)%>/g,be=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Ce.source),Se=/^\s+|\s+$/g,Te=/^\s+/,Oe=/\s+$/,Ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ie=/\{\n\/\* \[wrapped with (.+)\] \*/,Re=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/\\(\\)?/g,De=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,Fe=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,Ve=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ze=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ge="["+He+"]",We="["+Qe+"]",Ke="\\d+",Xe="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ze="[^\\ud800-\\udfff"+He+Ke+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ye="\\ud83c[\\udffb-\\udfff]",$e="[^\\ud800-\\udfff]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Xe+"|"+Ze+")",rt="(?:"+tt+"|"+Ze+")",it="(?:"+We+"|"+Ye+")?",ot="[\\ufe0e\\ufe0f]?"+it+"(?:\\u200d(?:"+[$e,Je,et].join("|")+")[\\ufe0e\\ufe0f]?"+it+")*",at="(?:"+["[\\u2700-\\u27bf]",Je,et].join("|")+")"+ot,st="(?:"+[$e+We+"?",We,Je,et,"[\\ud800-\\udfff]"].join("|")+")",lt=RegExp("['\u2019]","g"),ut=RegExp(We,"g"),ct=RegExp(Ye+"(?="+Ye+")|"+st+ot,"g"),ft=RegExp([tt+"?"+Xe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Ge,tt,"$"].join("|")+")",rt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Ge,tt+nt,"$"].join("|")+")",tt+"?"+nt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ke,at].join("|"),"g"),ht=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),dt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gt=-1,mt={};mt[ne]=mt[re]=mt[ie]=mt[oe]=mt[ae]=mt[se]=mt[le]=mt[ue]=mt[ce]=!0,mt[D]=mt[N]=mt[ee]=mt[M]=mt[te]=mt[L]=mt[V]=mt[U]=mt[q]=mt[Q]=mt[G]=mt[K]=mt[X]=mt[Z]=mt[J]=!1;var vt={};vt[D]=vt[N]=vt[ee]=vt[te]=vt[M]=vt[L]=vt[ne]=vt[re]=vt[ie]=vt[oe]=vt[ae]=vt[q]=vt[Q]=vt[G]=vt[K]=vt[X]=vt[Z]=vt[Y]=vt[se]=vt[le]=vt[ue]=vt[ce]=!0,vt[V]=vt[U]=vt[J]=!1;var yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bt=parseFloat,_t=parseInt,wt="object"==typeof e&&e&&e.Object===Object&&e,xt="object"==typeof self&&self&&self.Object===Object&&self,kt=wt||xt||Function("return this")(),Ct="object"==typeof t&&t&&!t.nodeType&&t,Et=Ct&&"object"==typeof r&&r&&!r.nodeType&&r,St=Et&&Et.exports===Ct,Tt=St&&wt.process,Ot=function(){try{return Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),At=Ot&&Ot.isArrayBuffer,It=Ot&&Ot.isDate,Rt=Ot&&Ot.isMap,Pt=Ot&&Ot.isRegExp,jt=Ot&&Ot.isSet,Dt=Ot&&Ot.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ft(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Ut(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function cn(e,t){for(var n=e.length;n--&&Zt(t,e[n],0)>-1;);return n}var fn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),hn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function dn(e){return"\\"+yt[e]}function pn(e){return ht.test(e)}function gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function mn(e,t){return function(n){return e(t(n))}}function vn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),Cn=function e(t){var n,r=(t=null==t?kt:Cn.defaults(kt.Object(),t,Cn.pick(kt,pt))).Array,i=t.Date,Qe=t.Error,He=t.Function,Ge=t.Math,We=t.Object,Ke=t.RegExp,Xe=t.String,Ze=t.TypeError,Ye=r.prototype,$e=We.prototype,Je=t["__core-js_shared__"],et=He.prototype.toString,tt=$e.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=$e.toString,ot=et.call(We),at=kt._,st=Ke("^"+et.call(tt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=St?t.Buffer:o,ht=t.Symbol,yt=t.Uint8Array,wt=ct?ct.allocUnsafe:o,xt=mn(We.getPrototypeOf,We),Ct=We.create,Et=$e.propertyIsEnumerable,Tt=Ye.splice,Ot=ht?ht.isConcatSpreadable:o,Wt=ht?ht.iterator:o,tn=ht?ht.toStringTag:o,En=function(){try{var e=Co(We,"defineProperty");return e({},"",{}),e}catch(e){}}(),Sn=t.clearTimeout!==kt.clearTimeout&&t.clearTimeout,Tn=i&&i.now!==kt.Date.now&&i.now,On=t.setTimeout!==kt.setTimeout&&t.setTimeout,An=Ge.ceil,In=Ge.floor,Rn=We.getOwnPropertySymbols,Pn=ct?ct.isBuffer:o,jn=t.isFinite,Dn=Ye.join,Nn=mn(We.keys,We),Fn=Ge.max,Mn=Ge.min,Ln=i.now,Bn=t.parseInt,Vn=Ge.random,Un=Ye.reverse,zn=Co(t,"DataView"),qn=Co(t,"Map"),Qn=Co(t,"Promise"),Hn=Co(t,"Set"),Gn=Co(t,"WeakMap"),Wn=Co(We,"create"),Kn=Gn&&new Gn,Xn={},Zn=Xo(zn),Yn=Xo(qn),$n=Xo(Qn),Jn=Xo(Hn),er=Xo(Gn),tr=ht?ht.prototype:o,nr=tr?tr.valueOf:o,rr=tr?tr.toString:o;function ir(e){if(hs(e)&&!ts(e)&&!(e instanceof lr)){if(e instanceof sr)return e;if(tt.call(e,"__wrapped__"))return Zo(e)}return new sr(e)}var or=function(){function e(){}return function(t){if(!fs(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function ar(){}function sr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function lr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function ur(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Cr(e,t,n,r,i,a){var s,l=t&u,h=t&c,d=t&f;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!fs(e))return e;var p=ts(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ui(e,s)}else{var g=To(e),m=g==U||g==z;if(os(e))return Ni(e,l);if(g==G||g==D||m&&!i){if(s=h||m?{}:Ao(e),!l)return h?function(e,t){return zi(e,So(e),t)}(e,function(t,n){return t&&zi(e,qs(e),t)}(s)):function(e,t){return zi(e,Eo(e),t)}(e,_r(s,e))}else{if(!vt[g])return i?e:{};s=function(e,t,n){var r,i,o=e.constructor;switch(t){case ee:return Fi(e);case M:case L:return new o(+e);case te:return function(e,t){var n=t?Fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ne:case re:case ie:case oe:case ae:case se:case le:case ue:case ce:return Mi(e,n);case q:return new o;case Q:case Z:return new o(e);case K:return(i=new(r=e).constructor(r.source,Ne.exec(r))).lastIndex=r.lastIndex,i;case X:return new o;case Y:return nr?We(nr.call(e)):{}}}(e,g,l)}}a||(a=new dr);var v=a.get(e);if(v)return v;if(a.set(e,s),vs(e))return e.forEach(function(r){s.add(Cr(r,t,n,r,e,a))}),s;if(ds(e))return e.forEach(function(r,i){s.set(i,Cr(r,t,n,i,e,a))}),s;var y=p?o:(d?h?vo:mo:h?qs:zs)(e);return Mt(y||e,function(r,i){y&&(r=e[i=r]),vr(s,i,Cr(r,t,n,i,e,a))}),s}function Er(e,t,n){var r=n.length;if(null==e)return!r;for(e=We(e);r--;){var i=n[r],a=e[i];if(a===o&&!(i in e)||!(0,t[i])(a))return!1}return!0}function Sr(e,t,n){if("function"!=typeof e)throw new Ze(s);return zo(function(){e.apply(o,n)},t)}function Tr(e,t,n,r){var i=-1,o=Vt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=zt(t,an(n))),r?(o=Ut,s=!1):t.length>=a&&(o=ln,s=!1,t=new hr(t));e:for(;++i-1},cr.prototype.set=function(e,t){var n=this.__data__,r=yr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},fr.prototype.clear=function(){this.size=0,this.__data__={hash:new ur,map:new(qn||cr),string:new ur}},fr.prototype.delete=function(e){var t=xo(this,e).delete(e);return this.size-=t?1:0,t},fr.prototype.get=function(e){return xo(this,e).get(e)},fr.prototype.has=function(e){return xo(this,e).has(e)},fr.prototype.set=function(e,t){var n=xo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},hr.prototype.add=hr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},hr.prototype.has=function(e){return this.__data__.has(e)},dr.prototype.clear=function(){this.__data__=new cr,this.size=0},dr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},dr.prototype.get=function(e){return this.__data__.get(e)},dr.prototype.has=function(e){return this.__data__.has(e)},dr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof cr){var r=n.__data__;if(!qn||r.length0&&n(s)?t>1?jr(s,t-1,n,r,i):qt(i,s):r||(i[i.length]=s)}return i}var Dr=Gi(),Nr=Gi(!0);function Fr(e,t){return e&&Dr(e,t,zs)}function Mr(e,t){return e&&Nr(e,t,zs)}function Lr(e,t){return Bt(t,function(t){return ls(e[t])})}function Br(e,t){for(var n=0,r=(t=Ri(t,e)).length;null!=e&&nt}function qr(e,t){return null!=e&&tt.call(e,t)}function Qr(e,t){return null!=e&&t in We(e)}function Hr(e,t,n){for(var i=n?Ut:Vt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var h=e[l];l&&t&&(h=zt(h,an(t))),c=Mn(h.length,c),u[l]=!n&&(t||a>=120&&h.length>=120)?new hr(l&&h):o}h=e[0];var d=-1,p=u[0];e:for(;++d=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(ei(e,function(e,n,i){return{criteria:zt(t,function(t){return t(e)}),index:++r,value:e}}))}function ai(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Tt.call(s,l,1),Tt.call(e,l,1);return e}function li(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ro(i)?Tt.call(e,i,1):ki(e,i)}}return e}function ui(e,t){return e+In(Vn()*(t-e+1))}function ci(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=In(t/2))&&(e+=e)}while(t);return n}function fi(e,t){return qo(Bo(e,t,pl),e+"")}function hi(e,t,n,r){if(!fs(e))return e;for(var i=-1,a=(t=Ri(t,e)).length,s=a-1,l=e;null!=l&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!bs(a)&&(n?a<=t:a=a){var c=t?null:so(e);if(c)return bn(c);s=!1,i=ln,u=new hr}else u=t?[]:l;e:for(;++r=r?e:gi(e,t,n)}var Di=Sn||function(e){return kt.clearTimeout(e)};function Ni(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Fi(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function Mi(e,t){var n=t?Fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Li(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=bs(e),s=t!==o,l=null===t,u=t==t,c=bs(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Po(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=We(t);++r-1?i[a?t[s]:s]:o}}function Yi(e){return go(function(t){var n=t.length,r=n,i=sr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ze(s);if(i&&!l&&"wrapper"==bo(a))var l=new sr([],!0)}for(r=l?r:n;++r1&&v.reverse(),h&&cl))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,p=!0,g=n&d?new hr:o;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(j,function(n){var r="_."+n[0];t&n[1]&&!Vt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ie);return t?t[1].split(Re):[]}(r),n)))}function Ho(e){var t=0,n=0;return function(){var r=Ln(),i=E-(r-n);if(n=r,i>0){if(++t>=C)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Go(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return ma(e,n="function"==typeof n?(e.pop(),n):o)});function ka(e){var t=ir(e);return t.__chain__=!0,t}function Ca(e,t){return t(e)}var Ea=go(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return xr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof lr&&Ro(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ca,args:[i],thisArg:o}),new sr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),Sa=qi(function(e,t,n){tt.call(e,n)?++e[n]:wr(e,n,1)}),Ta=Zi(ea),Oa=Zi(ta);function Aa(e,t){return(ts(e)?Mt:Or)(e,wo(t,3))}function Ia(e,t){return(ts(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Ar)(e,wo(t,3))}var Ra=qi(function(e,t,n){tt.call(e,n)?e[n].push(t):wr(e,n,[t])}),Pa=fi(function(e,t,n){var i=-1,o="function"==typeof t,a=rs(e)?r(e.length):[];return Or(e,function(e){a[++i]=o?Nt(t,e,n):Gr(e,t,n)}),a}),ja=qi(function(e,t,n){wr(e,n,t)});function Da(e,t){return(ts(e)?zt:ei)(e,wo(t,3))}var Na=qi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Fa=fi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),oi(e,jr(t,1),[])}),Ma=Tn||function(){return kt.Date.now()};function La(e,t,n){return t=n?o:t,uo(e,w,o,o,o,o,t=e&&null==t?e.length:t)}function Ba(e,t){var n;if("function"!=typeof t)throw new Ze(s);return e=Es(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Va=fi(function(e,t,n){var r=p;if(n.length){var i=vn(n,_o(Va));r|=b}return uo(e,r,t,n,i)}),Ua=fi(function(e,t,n){var r=p|g;if(n.length){var i=vn(n,_o(Ua));r|=b}return uo(t,r,e,n,i)});function za(e,t,n){var r,i,a,l,u,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ze(s);function g(t){var n=r,a=i;return r=i=o,f=t,l=e.apply(a,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||d&&e-f>=a}function v(){var e=Ma();if(m(e))return y(e);u=zo(v,function(e){var n=t-(e-c);return d?Mn(n,a-(e-f)):n}(e))}function y(e){return u=o,p&&r?g(e):(r=i=o,l)}function b(){var e=Ma(),n=m(e);if(r=arguments,i=this,c=e,n){if(u===o)return function(e){return f=e,u=zo(v,t),h?g(e):l}(c);if(d)return u=zo(v,t),g(c)}return u===o&&(u=zo(v,t)),l}return t=Ts(t)||0,fs(n)&&(h=!!n.leading,a=(d="maxWait"in n)?Fn(Ts(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==o&&Di(u),f=0,r=c=i=u=o},b.flush=function(){return u===o?l:y(Ma())},b}var qa=fi(function(e,t){return Sr(e,1,t)}),Qa=fi(function(e,t,n){return Sr(e,Ts(t)||0,n)});function Ha(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ze(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ha.Cache||fr),n}function Ga(e){if("function"!=typeof e)throw new Ze(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ha.Cache=fr;var Wa=Pi(function(e,t){var n=(t=1==t.length&&ts(t[0])?zt(t[0],an(wo())):zt(jr(t,1),an(wo()))).length;return fi(function(r){for(var i=-1,o=Mn(r.length,n);++i=t}),es=Wr(function(){return arguments}())?Wr:function(e){return hs(e)&&tt.call(e,"callee")&&!Et.call(e,"callee")},ts=r.isArray,ns=At?an(At):function(e){return hs(e)&&Ur(e)==ee};function rs(e){return null!=e&&cs(e.length)&&!ls(e)}function is(e){return hs(e)&&rs(e)}var os=Pn||Tl,as=It?an(It):function(e){return hs(e)&&Ur(e)==L};function ss(e){if(!hs(e))return!1;var t=Ur(e);return t==V||t==B||"string"==typeof e.message&&"string"==typeof e.name&&!gs(e)}function ls(e){if(!fs(e))return!1;var t=Ur(e);return t==U||t==z||t==F||t==W}function us(e){return"number"==typeof e&&e==Es(e)}function cs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function fs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function hs(e){return null!=e&&"object"==typeof e}var ds=Rt?an(Rt):function(e){return hs(e)&&To(e)==q};function ps(e){return"number"==typeof e||hs(e)&&Ur(e)==Q}function gs(e){if(!hs(e)||Ur(e)!=G)return!1;var t=xt(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==ot}var ms=Pt?an(Pt):function(e){return hs(e)&&Ur(e)==K},vs=jt?an(jt):function(e){return hs(e)&&To(e)==X};function ys(e){return"string"==typeof e||!ts(e)&&hs(e)&&Ur(e)==Z}function bs(e){return"symbol"==typeof e||hs(e)&&Ur(e)==Y}var _s=Dt?an(Dt):function(e){return hs(e)&&cs(e.length)&&!!mt[Ur(e)]},ws=io(Jr),xs=io(function(e,t){return e<=t});function ks(e){if(!e)return[];if(rs(e))return ys(e)?xn(e):Ui(e);if(Wt&&e[Wt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Wt]());var t=To(e);return(t==q?gn:t==X?bn:Ys)(e)}function Cs(e){return e?(e=Ts(e))===S||e===-S?(e<0?-1:1)*O:e==e?e:0:0===e?e:0}function Es(e){var t=Cs(e),n=t%1;return t==t?n?t-n:t:0}function Ss(e){return e?kr(Es(e),0,I):0}function Ts(e){if("number"==typeof e)return e;if(bs(e))return A;if(fs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Se,"");var n=Me.test(e);return n||Be.test(e)?_t(e.slice(2),n?2:8):Fe.test(e)?A:+e}function Os(e){return zi(e,qs(e))}function As(e){return null==e?"":wi(e)}var Is=Qi(function(e,t){if(Fo(t)||rs(t))zi(t,zs(t),e);else for(var n in t)tt.call(t,n)&&vr(e,n,t[n])}),Rs=Qi(function(e,t){zi(t,qs(t),e)}),Ps=Qi(function(e,t,n,r){zi(t,qs(t),e,r)}),js=Qi(function(e,t,n,r){zi(t,zs(t),e,r)}),Ds=go(xr),Ns=fi(function(e,t){e=We(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Po(t[0],t[1],i)&&(r=1);++n1),t}),zi(e,vo(e),n),r&&(n=Cr(n,u|c|f,ho));for(var i=t.length;i--;)ki(n,t[i]);return n}),Ws=go(function(e,t){return null==e?{}:function(e,t){return ai(e,t,function(t,n){return Ls(e,n)})}(e,t)});function Ks(e,t){if(null==e)return{};var n=zt(vo(e),function(e){return[e]});return t=wo(t),ai(e,n,function(e,n){return t(e,n[0])})}var Xs=lo(zs),Zs=lo(qs);function Ys(e){return null==e?[]:sn(e,zs(e))}var $s=Ki(function(e,t,n){return t=t.toLowerCase(),e+(n?Js(t):t)});function Js(e){return sl(As(e).toLowerCase())}function el(e){return(e=As(e))&&e.replace(Ue,fn).replace(ut,"")}var tl=Ki(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),nl=Ki(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),rl=Wi("toLowerCase"),il=Ki(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ol=Ki(function(e,t,n){return e+(n?" ":"")+sl(t)}),al=Ki(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),sl=Wi("toUpperCase");function ll(e,t,n){return e=As(e),(t=n?o:t)===o?function(e){return dt.test(e)}(e)?function(e){return e.match(ft)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var ul=fi(function(e,t){try{return Nt(e,o,t)}catch(e){return ss(e)?e:new Qe(e)}}),cl=go(function(e,t){return Mt(t,function(t){t=Ko(t),wr(e,t,Va(e[t],e))}),e});function fl(e){return function(){return e}}var hl=Yi(),dl=Yi(!0);function pl(e){return e}function gl(e){return Yr("function"==typeof e?e:Cr(e,u))}var ml=fi(function(e,t){return function(n){return Gr(n,e,t)}}),vl=fi(function(e,t){return function(n){return Gr(e,n,t)}});function yl(e,t,n){var r=zs(t),i=Lr(t,r);null!=n||fs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Lr(t,zs(t)));var o=!(fs(n)&&"chain"in n&&!n.chain),a=ls(e);return Mt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ui(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,qt([this.value()],arguments))})}),e}function bl(){}var _l=to(zt),wl=to(Lt),xl=to(Gt);function kl(e){return jo(e)?en(Ko(e)):function(e){return function(t){return Br(t,e)}}(e)}var Cl=ro(),El=ro(!0);function Sl(){return[]}function Tl(){return!1}var Ol,Al=eo(function(e,t){return e+t},0),Il=ao("ceil"),Rl=eo(function(e,t){return e/t},1),Pl=ao("floor"),jl=eo(function(e,t){return e*t},1),Dl=ao("round"),Nl=eo(function(e,t){return e-t},0);return ir.after=function(e,t){if("function"!=typeof t)throw new Ze(s);return e=Es(e),function(){if(--e<1)return t.apply(this,arguments)}},ir.ary=La,ir.assign=Is,ir.assignIn=Rs,ir.assignInWith=Ps,ir.assignWith=js,ir.at=Ds,ir.before=Ba,ir.bind=Va,ir.bindAll=cl,ir.bindKey=Ua,ir.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ts(e)?e:[e]},ir.chain=ka,ir.chunk=function(e,t,n){t=(n?Po(e,t,n):t===o)?1:Fn(Es(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(An(i/t));ai?0:i+n),(r=r===o||r>i?i:Es(r))<0&&(r+=i),r=n>r?0:Ss(r);n>>0)?(e=As(e))&&("string"==typeof t||null!=t&&!ms(t))&&!(t=wi(t))&&pn(e)?ji(xn(e),0,n):e.split(t,n):[]},ir.spread=function(e,t){if("function"!=typeof e)throw new Ze(s);return t=null==t?0:Fn(Es(t),0),fi(function(n){var r=n[t],i=ji(n,0,t);return r&&qt(i,r),Nt(e,this,i)})},ir.tail=function(e){var t=null==e?0:e.length;return t?gi(e,1,t):[]},ir.take=function(e,t,n){return e&&e.length?gi(e,0,(t=n||t===o?1:Es(t))<0?0:t):[]},ir.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?gi(e,(t=r-(t=n||t===o?1:Es(t)))<0?0:t,r):[]},ir.takeRightWhile=function(e,t){return e&&e.length?Ei(e,wo(t,3),!1,!0):[]},ir.takeWhile=function(e,t){return e&&e.length?Ei(e,wo(t,3)):[]},ir.tap=function(e,t){return t(e),e},ir.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ze(s);return fs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),za(e,t,{leading:r,maxWait:t,trailing:i})},ir.thru=Ca,ir.toArray=ks,ir.toPairs=Xs,ir.toPairsIn=Zs,ir.toPath=function(e){return ts(e)?zt(e,Ko):bs(e)?[e]:Ui(Wo(As(e)))},ir.toPlainObject=Os,ir.transform=function(e,t,n){var r=ts(e),i=r||os(e)||_s(e);if(t=wo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:fs(e)&&ls(o)?or(xt(e)):{}}return(i?Mt:Fr)(e,function(e,r,i){return t(n,e,r,i)}),n},ir.unary=function(e){return La(e,1)},ir.union=ha,ir.unionBy=da,ir.unionWith=pa,ir.uniq=function(e){return e&&e.length?xi(e):[]},ir.uniqBy=function(e,t){return e&&e.length?xi(e,wo(t,2)):[]},ir.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?xi(e,o,t):[]},ir.unset=function(e,t){return null==e||ki(e,t)},ir.unzip=ga,ir.unzipWith=ma,ir.update=function(e,t,n){return null==e?e:Ci(e,t,Ii(n))},ir.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Ci(e,t,Ii(n),r)},ir.values=Ys,ir.valuesIn=function(e){return null==e?[]:sn(e,qs(e))},ir.without=va,ir.words=ll,ir.wrap=function(e,t){return Ka(Ii(t),e)},ir.xor=ya,ir.xorBy=ba,ir.xorWith=_a,ir.zip=wa,ir.zipObject=function(e,t){return Oi(e||[],t||[],vr)},ir.zipObjectDeep=function(e,t){return Oi(e||[],t||[],hi)},ir.zipWith=xa,ir.entries=Xs,ir.entriesIn=Zs,ir.extend=Rs,ir.extendWith=Ps,yl(ir,ir),ir.add=Al,ir.attempt=ul,ir.camelCase=$s,ir.capitalize=Js,ir.ceil=Il,ir.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Ts(n))==n?n:0),t!==o&&(t=(t=Ts(t))==t?t:0),kr(Ts(e),t,n)},ir.clone=function(e){return Cr(e,f)},ir.cloneDeep=function(e){return Cr(e,u|f)},ir.cloneDeepWith=function(e,t){return Cr(e,u|f,t="function"==typeof t?t:o)},ir.cloneWith=function(e,t){return Cr(e,f,t="function"==typeof t?t:o)},ir.conformsTo=function(e,t){return null==t||Er(e,t,zs(t))},ir.deburr=el,ir.defaultTo=function(e,t){return null==e||e!=e?t:e},ir.divide=Rl,ir.endsWith=function(e,t,n){e=As(e),t=wi(t);var r=e.length,i=n=n===o?r:kr(Es(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},ir.eq=Ya,ir.escape=function(e){return(e=As(e))&&ve.test(e)?e.replace(ge,hn):e},ir.escapeRegExp=function(e){return(e=As(e))&&Ee.test(e)?e.replace(Ce,"\\$&"):e},ir.every=function(e,t,n){var r=ts(e)?Lt:Ir;return n&&Po(e,t,n)&&(t=o),r(e,wo(t,3))},ir.find=Ta,ir.findIndex=ea,ir.findKey=function(e,t){return Kt(e,wo(t,3),Fr)},ir.findLast=Oa,ir.findLastIndex=ta,ir.findLastKey=function(e,t){return Kt(e,wo(t,3),Mr)},ir.floor=Pl,ir.forEach=Aa,ir.forEachRight=Ia,ir.forIn=function(e,t){return null==e?e:Dr(e,wo(t,3),qs)},ir.forInRight=function(e,t){return null==e?e:Nr(e,wo(t,3),qs)},ir.forOwn=function(e,t){return e&&Fr(e,wo(t,3))},ir.forOwnRight=function(e,t){return e&&Mr(e,wo(t,3))},ir.get=Ms,ir.gt=$a,ir.gte=Ja,ir.has=function(e,t){return null!=e&&Oo(e,t,qr)},ir.hasIn=Ls,ir.head=ra,ir.identity=pl,ir.includes=function(e,t,n,r){e=rs(e)?e:Ys(e),n=n&&!r?Es(n):0;var i=e.length;return n<0&&(n=Fn(i+n,0)),ys(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Zt(e,t,n)>-1},ir.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Es(n);return i<0&&(i=Fn(r+i,0)),Zt(e,t,i)},ir.inRange=function(e,t,n){return t=Cs(t),n===o?(n=t,t=0):n=Cs(n),function(e,t,n){return e>=Mn(t,n)&&e=-T&&e<=T},ir.isSet=vs,ir.isString=ys,ir.isSymbol=bs,ir.isTypedArray=_s,ir.isUndefined=function(e){return e===o},ir.isWeakMap=function(e){return hs(e)&&To(e)==J},ir.isWeakSet=function(e){return hs(e)&&"[object WeakSet]"==Ur(e)},ir.join=function(e,t){return null==e?"":Dn.call(e,t)},ir.kebabCase=tl,ir.last=sa,ir.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=Es(n))<0?Fn(r+i,0):Mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Xt(e,$t,i,!0)},ir.lowerCase=nl,ir.lowerFirst=rl,ir.lt=ws,ir.lte=xs,ir.max=function(e){return e&&e.length?Rr(e,pl,zr):o},ir.maxBy=function(e,t){return e&&e.length?Rr(e,wo(t,2),zr):o},ir.mean=function(e){return Jt(e,pl)},ir.meanBy=function(e,t){return Jt(e,wo(t,2))},ir.min=function(e){return e&&e.length?Rr(e,pl,Jr):o},ir.minBy=function(e,t){return e&&e.length?Rr(e,wo(t,2),Jr):o},ir.stubArray=Sl,ir.stubFalse=Tl,ir.stubObject=function(){return{}},ir.stubString=function(){return""},ir.stubTrue=function(){return!0},ir.multiply=jl,ir.nth=function(e,t){return e&&e.length?ii(e,Es(t)):o},ir.noConflict=function(){return kt._===this&&(kt._=at),this},ir.noop=bl,ir.now=Ma,ir.pad=function(e,t,n){e=As(e);var r=(t=Es(t))?wn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return no(In(i),n)+e+no(An(i),n)},ir.padEnd=function(e,t,n){e=As(e);var r=(t=Es(t))?wn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Vn();return Mn(e+i*(t-e+bt("1e-"+((i+"").length-1))),t)}return ui(e,t)},ir.reduce=function(e,t,n){var r=ts(e)?Qt:nn,i=arguments.length<3;return r(e,wo(t,4),n,i,Or)},ir.reduceRight=function(e,t,n){var r=ts(e)?Ht:nn,i=arguments.length<3;return r(e,wo(t,4),n,i,Ar)},ir.repeat=function(e,t,n){return t=(n?Po(e,t,n):t===o)?1:Es(t),ci(As(e),t)},ir.replace=function(){var e=arguments,t=As(e[0]);return e.length<3?t:t.replace(e[1],e[2])},ir.result=function(e,t,n){var r=-1,i=(t=Ri(t,e)).length;for(i||(i=1,e=o);++rT)return[];var n=I,r=Mn(e,I);t=wo(t),e-=I;for(var i=on(r,t);++n=a)return e;var l=n-wn(r);if(l<1)return r;var u=s?ji(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),ms(i)){if(e.slice(l).search(i)){var c,f=u;for(i.global||(i=Ke(i.source,As(Ne.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var h=c.index;u=u.slice(0,h===o?l:h)}}else if(e.indexOf(wi(i),l)!=l){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},ir.unescape=function(e){return(e=As(e))&&me.test(e)?e.replace(pe,kn):e},ir.uniqueId=function(e){var t=++nt;return As(e)+t},ir.upperCase=al,ir.upperFirst=sl,ir.each=Aa,ir.eachRight=Ia,ir.first=ra,yl(ir,(Ol={},Fr(ir,function(e,t){tt.call(ir.prototype,t)||(Ol[t]=e)}),Ol),{chain:!1}),ir.VERSION="4.17.5",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ir[e].placeholder=ir}),Mt(["drop","take"],function(e,t){lr.prototype[e]=function(n){n=n===o?1:Fn(Es(n),0);var r=this.__filtered__&&!t?new lr(this):this.clone();return r.__filtered__?r.__takeCount__=Mn(n,r.__takeCount__):r.__views__.push({size:Mn(n,I),type:e+(r.__dir__<0?"Right":"")}),r},lr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;lr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:wo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");lr.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");lr.prototype[e]=function(){return this.__filtered__?new lr(this):this[n](1)}}),lr.prototype.compact=function(){return this.filter(pl)},lr.prototype.find=function(e){return this.filter(e).head()},lr.prototype.findLast=function(e){return this.reverse().find(e)},lr.prototype.invokeMap=fi(function(e,t){return"function"==typeof e?new lr(this):this.map(function(n){return Gr(n,e,t)})}),lr.prototype.reject=function(e){return this.filter(Ga(wo(e)))},lr.prototype.slice=function(e,t){e=Es(e);var n=this;return n.__filtered__&&(e>0||t<0)?new lr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=Es(t))<0?n.dropRight(-t):n.take(t-e)),n)},lr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},lr.prototype.toArray=function(){return this.take(I)},Fr(lr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=ir[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(ir.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof lr,u=s[0],c=l||ts(t),f=function(e){var t=i.apply(ir,qt([e],s));return r&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,d=a&&!h,p=l&&!this.__actions__.length;if(!a&&c){t=p?t:new lr(this);var g=e.apply(t,s);return g.__actions__.push({func:Ca,args:[f],thisArg:o}),new sr(g,h)}return d&&p?e.apply(this,s):(g=this.thru(f),d?r?g.value()[0]:g.value():g)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ir.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ts(i)?i:[],e)}return this[n](function(n){return t.apply(ts(n)?n:[],e)})}}),Fr(lr.prototype,function(e,t){var n=ir[t];if(n){var r=n.name+"";(Xn[r]||(Xn[r]=[])).push({name:t,func:n})}}),Xn[$i(o,g).name]=[{name:"wrapper",func:o}],lr.prototype.clone=function(){var e=new lr(this.__wrapped__);return e.__actions__=Ui(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ui(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ui(this.__views__),e},lr.prototype.reverse=function(){if(this.__filtered__){var e=new lr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},lr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ts(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},ir.prototype.plant=function(e){for(var t,n=this;n instanceof ar;){var r=Zo(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},ir.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof lr){var t=e;return this.__actions__.length&&(t=new lr(this)),(t=t.reverse()).__actions__.push({func:Ca,args:[fa],thisArg:o}),new sr(t,this.__chain__)}return this.thru(fa)},ir.prototype.toJSON=ir.prototype.valueOf=ir.prototype.value=function(){return Si(this.__wrapped__,this.__actions__)},ir.prototype.first=ir.prototype.head,Wt&&(ir.prototype[Wt]=function(){return this}),ir}();kt._=Cn,(i=(function(){return Cn}).call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(t,n("DuR2"),n("3IRH")(e))},MlMj:function(e,t){e.exports=[{name:"Abkhaz",local:"\u0410\u04a7\u0441\u0443\u0430",1:"ab",2:"abk","2T":"abk","2B":"abk",3:"abk"},{name:"Afar",local:"Afaraf",1:"aa",2:"aar","2T":"aar","2B":"aar",3:"aar"},{name:"Afrikaans",local:"Afrikaans",1:"af",2:"afr","2T":"afr","2B":"afr",3:"afr"},{name:"Akan",local:"Akan",1:"ak",2:"aka","2T":"aka","2B":"aka",3:"aka"},{name:"Albanian",local:"Shqip",1:"sq",2:"sqi","2T":"sqi","2B":"alb",3:"sqi"},{name:"Amharic",local:"\u12a0\u121b\u122d\u129b",1:"am",2:"amh","2T":"amh","2B":"amh",3:"amh"},{name:"Arabic",local:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",1:"ar",2:"ara","2T":"ara","2B":"ara",3:"ara"},{name:"Aragonese",local:"Aragon\xe9s",1:"an",2:"arg","2T":"arg","2B":"arg",3:"arg"},{name:"Armenian",local:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",1:"hy",2:"hye","2T":"hye","2B":"arm",3:"hye"},{name:"Assamese",local:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be",1:"as",2:"asm","2T":"asm","2B":"asm",3:"asm"},{name:"Avaric",local:"\u0410\u0432\u0430\u0440",1:"av",2:"ava","2T":"ava","2B":"ava",3:"ava"},{name:"Avestan",local:"avesta",1:"ae",2:"ave","2T":"ave","2B":"ave",3:"ave"},{name:"Aymara",local:"Aymar",1:"ay",2:"aym","2T":"aym","2B":"aym",3:"aym"},{name:"Azerbaijani",local:"Az\u0259rbaycanca",1:"az",2:"aze","2T":"aze","2B":"aze",3:"aze"},{name:"Bambara",local:"Bamanankan",1:"bm",2:"bam","2T":"bam","2B":"bam",3:"bam"},{name:"Bashkir",local:"\u0411\u0430\u0448\u04a1\u043e\u0440\u0442\u0441\u0430",1:"ba",2:"bak","2T":"bak","2B":"bak",3:"bak"},{name:"Basque",local:"Euskara",1:"eu",2:"eus","2T":"eus","2B":"baq",3:"eus"},{name:"Belarusian",local:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",1:"be",2:"bel","2T":"bel","2B":"bel",3:"bel"},{name:"Bengali",local:"\u09ac\u09be\u0982\u09b2\u09be",1:"bn",2:"ben","2T":"ben","2B":"ben",3:"ben"},{name:"Bihari",local:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940",1:"bh",2:"bih","2T":"bih","2B":"bih",3:"bih"},{name:"Bislama",local:"Bislama",1:"bi",2:"bis","2T":"bis","2B":"bis",3:"bis"},{name:"Bosnian",local:"Bosanski",1:"bs",2:"bos","2T":"bos","2B":"bos",3:"bos"},{name:"Breton",local:"Brezhoneg",1:"br",2:"bre","2T":"bre","2B":"bre",3:"bre"},{name:"Bulgarian",local:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",1:"bg",2:"bul","2T":"bul","2B":"bul",3:"bul"},{name:"Burmese",local:"\u1019\u103c\u1014\u103a\u1019\u102c\u1018\u102c\u101e\u102c",1:"my",2:"mya","2T":"mya","2B":"bur",3:"mya"},{name:"Catalan",local:"Catal\xe0",1:"ca",2:"cat","2T":"cat","2B":"cat",3:"cat"},{name:"Chamorro",local:"Chamoru",1:"ch",2:"cha","2T":"cha","2B":"cha",3:"cha"},{name:"Chechen",local:"\u041d\u043e\u0445\u0447\u0438\u0439\u043d",1:"ce",2:"che","2T":"che","2B":"che",3:"che"},{name:"Chichewa",local:"Chichewa",1:"ny",2:"nya","2T":"nya","2B":"nya",3:"nya"},{name:"Chinese",local:"\u4e2d\u6587",1:"zh",2:"zho","2T":"zho","2B":"chi",3:"zho"},{name:"Chuvash",local:"\u0427\u04d1\u0432\u0430\u0448\u043b\u0430",1:"cv",2:"chv","2T":"chv","2B":"chv",3:"chv"},{name:"Cornish",local:"Kernewek",1:"kw",2:"cor","2T":"cor","2B":"cor",3:"cor"},{name:"Corsican",local:"Corsu",1:"co",2:"cos","2T":"cos","2B":"cos",3:"cos"},{name:"Cree",local:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423",1:"cr",2:"cre","2T":"cre","2B":"cre",3:"cre"},{name:"Croatian",local:"Hrvatski",1:"hr",2:"hrv","2T":"hrv","2B":"hrv",3:"hrv"},{name:"Czech",local:"\u010ce\u0161tina",1:"cs",2:"ces","2T":"ces","2B":"cze",3:"ces"},{name:"Danish",local:"Dansk",1:"da",2:"dan","2T":"dan","2B":"dan",3:"dan"},{name:"Divehi",local:"Divehi",1:"dv",2:"div","2T":"div","2B":"div",3:"div"},{name:"Dutch",local:"Nederlands",1:"nl",2:"nld","2T":"nld","2B":"dut",3:"nld"},{name:"Dzongkha",local:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41",1:"dz",2:"dzo","2T":"dzo","2B":"dzo",3:"dzo"},{name:"English",local:"English",1:"en",2:"eng","2T":"eng","2B":"eng",3:"eng"},{name:"Esperanto",local:"Esperanto",1:"eo",2:"epo","2T":"epo","2B":"epo",3:"epo"},{name:"Estonian",local:"Eesti",1:"et",2:"est","2T":"est","2B":"est",3:"est"},{name:"Ewe",local:"E\u028begbe",1:"ee",2:"ewe","2T":"ewe","2B":"ewe",3:"ewe"},{name:"Faroese",local:"F\xf8royskt",1:"fo",2:"fao","2T":"fao","2B":"fao",3:"fao"},{name:"Fijian",local:"Na Vosa Vaka-Viti",1:"fj",2:"fij","2T":"fij","2B":"fij",3:"fij"},{name:"Finnish",local:"Suomi",1:"fi",2:"fin","2T":"fin","2B":"fin",3:"fin"},{name:"French",local:"Fran\xe7ais",1:"fr",2:"fra","2T":"fra","2B":"fre",3:"fra"},{name:"Fula",local:"Fulfulde",1:"ff",2:"ful","2T":"ful","2B":"ful",3:"ful"},{name:"Galician",local:"Galego",1:"gl",2:"glg","2T":"glg","2B":"glg",3:"glg"},{name:"Georgian",local:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",1:"ka",2:"kat","2T":"kat","2B":"geo",3:"kat"},{name:"German",local:"Deutsch",1:"de",2:"deu","2T":"deu","2B":"ger",3:"deu"},{name:"Greek",local:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",1:"el",2:"ell","2T":"ell","2B":"gre",3:"ell"},{name:"Guaran\xed",local:"Ava\xf1e'\u1ebd",1:"gn",2:"grn","2T":"grn","2B":"grn",3:"grn"},{name:"Gujarati",local:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",1:"gu",2:"guj","2T":"guj","2B":"guj",3:"guj"},{name:"Haitian",local:"Krey\xf2l Ayisyen",1:"ht",2:"hat","2T":"hat","2B":"hat",3:"hat"},{name:"Hausa",local:"\u0647\u064e\u0648\u064f\u0633\u064e",1:"ha",2:"hau","2T":"hau","2B":"hau",3:"hau"},{name:"Hebrew",local:"\u05e2\u05d1\u05e8\u05d9\u05ea",1:"he",2:"heb","2T":"heb","2B":"heb",3:"heb"},{name:"Herero",local:"Otjiherero",1:"hz",2:"her","2T":"her","2B":"her",3:"her"},{name:"Hindi",local:"\u0939\u093f\u0928\u094d\u0926\u0940",1:"hi",2:"hin","2T":"hin","2B":"hin",3:"hin"},{name:"Hiri Motu",local:"Hiri Motu",1:"ho",2:"hmo","2T":"hmo","2B":"hmo",3:"hmo"},{name:"Hungarian",local:"Magyar",1:"hu",2:"hun","2T":"hun","2B":"hun",3:"hun"},{name:"Interlingua",local:"Interlingua",1:"ia",2:"ina","2T":"ina","2B":"ina",3:"ina"},{name:"Indonesian",local:"Bahasa Indonesia",1:"id",2:"ind","2T":"ind","2B":"ind",3:"ind"},{name:"Interlingue",local:"Interlingue",1:"ie",2:"ile","2T":"ile","2B":"ile",3:"ile"},{name:"Irish",local:"Gaeilge",1:"ga",2:"gle","2T":"gle","2B":"gle",3:"gle"},{name:"Igbo",local:"Igbo",1:"ig",2:"ibo","2T":"ibo","2B":"ibo",3:"ibo"},{name:"Inupiaq",local:"I\xf1upiak",1:"ik",2:"ipk","2T":"ipk","2B":"ipk",3:"ipk"},{name:"Ido",local:"Ido",1:"io",2:"ido","2T":"ido","2B":"ido",3:"ido"},{name:"Icelandic",local:"\xcdslenska",1:"is",2:"isl","2T":"isl","2B":"ice",3:"isl"},{name:"Italian",local:"Italiano",1:"it",2:"ita","2T":"ita","2B":"ita",3:"ita"},{name:"Inuktitut",local:"\u1403\u14c4\u1483\u144e\u1450\u1466",1:"iu",2:"iku","2T":"iku","2B":"iku",3:"iku"},{name:"Japanese",local:"\u65e5\u672c\u8a9e",1:"ja",2:"jpn","2T":"jpn","2B":"jpn",3:"jpn"},{name:"Javanese",local:"Basa Jawa",1:"jv",2:"jav","2T":"jav","2B":"jav",3:"jav"},{name:"Kalaallisut",local:"Kalaallisut",1:"kl",2:"kal","2T":"kal","2B":"kal",3:"kal"},{name:"Kannada",local:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",1:"kn",2:"kan","2T":"kan","2B":"kan",3:"kan"},{name:"Kanuri",local:"Kanuri",1:"kr",2:"kau","2T":"kau","2B":"kau",3:"kau"},{name:"Kashmiri",local:"\u0643\u0634\u0645\u064a\u0631\u064a",1:"ks",2:"kas","2T":"kas","2B":"kas",3:"kas"},{name:"Kazakh",local:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",1:"kk",2:"kaz","2T":"kaz","2B":"kaz",3:"kaz"},{name:"Khmer",local:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",1:"km",2:"khm","2T":"khm","2B":"khm",3:"khm"},{name:"Kikuyu",local:"G\u0129k\u0169y\u0169",1:"ki",2:"kik","2T":"kik","2B":"kik",3:"kik"},{name:"Kinyarwanda",local:"Kinyarwanda",1:"rw",2:"kin","2T":"kin","2B":"kin",3:"kin"},{name:"Kyrgyz",local:"\u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430",1:"ky",2:"kir","2T":"kir","2B":"kir",3:"kir"},{name:"Komi",local:"\u041a\u043e\u043c\u0438",1:"kv",2:"kom","2T":"kom","2B":"kom",3:"kom"},{name:"Kongo",local:"Kongo",1:"kg",2:"kon","2T":"kon","2B":"kon",3:"kon"},{name:"Korean",local:"\ud55c\uad6d\uc5b4",1:"ko",2:"kor","2T":"kor","2B":"kor",3:"kor"},{name:"Kurdish",local:"Kurd\xee",1:"ku",2:"kur","2T":"kur","2B":"kur",3:"kur"},{name:"Kwanyama",local:"Kuanyama",1:"kj",2:"kua","2T":"kua","2B":"kua",3:"kua"},{name:"Latin",local:"Latina",1:"la",2:"lat","2T":"lat","2B":"lat",3:"lat"},{name:"Luxembourgish",local:"L\xebtzebuergesch",1:"lb",2:"ltz","2T":"ltz","2B":"ltz",3:"ltz"},{name:"Ganda",local:"Luganda",1:"lg",2:"lug","2T":"lug","2B":"lug",3:"lug"},{name:"Limburgish",local:"Limburgs",1:"li",2:"lim","2T":"lim","2B":"lim",3:"lim"},{name:"Lingala",local:"Ling\xe1la",1:"ln",2:"lin","2T":"lin","2B":"lin",3:"lin"},{name:"Lao",local:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7",1:"lo",2:"lao","2T":"lao","2B":"lao",3:"lao"},{name:"Lithuanian",local:"Lietuvi\u0173",1:"lt",2:"lit","2T":"lit","2B":"lit",3:"lit"},{name:"Luba-Katanga",local:"Tshiluba",1:"lu",2:"lub","2T":"lub","2B":"lub",3:"lub"},{name:"Latvian",local:"Latvie\u0161u",1:"lv",2:"lav","2T":"lav","2B":"lav",3:"lav"},{name:"Manx",local:"Gaelg",1:"gv",2:"glv","2T":"glv","2B":"glv",3:"glv"},{name:"Macedonian",local:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",1:"mk",2:"mkd","2T":"mkd","2B":"mac",3:"mkd"},{name:"Malagasy",local:"Malagasy",1:"mg",2:"mlg","2T":"mlg","2B":"mlg",3:"mlg"},{name:"Malay",local:"Bahasa Melayu",1:"ms",2:"msa","2T":"msa","2B":"may",3:"msa"},{name:"Malayalam",local:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",1:"ml",2:"mal","2T":"mal","2B":"mal",3:"mal"},{name:"Maltese",local:"Malti",1:"mt",2:"mlt","2T":"mlt","2B":"mlt",3:"mlt"},{name:"M\u0101ori",local:"M\u0101ori",1:"mi",2:"mri","2T":"mri","2B":"mao",3:"mri"},{name:"Marathi",local:"\u092e\u0930\u093e\u0920\u0940",1:"mr",2:"mar","2T":"mar","2B":"mar",3:"mar"},{name:"Marshallese",local:"Kajin M\u0327aje\u013c",1:"mh",2:"mah","2T":"mah","2B":"mah",3:"mah"},{name:"Mongolian",local:"\u041c\u043e\u043d\u0433\u043e\u043b",1:"mn",2:"mon","2T":"mon","2B":"mon",3:"mon"},{name:"Nauru",local:"Dorerin Naoero",1:"na",2:"nau","2T":"nau","2B":"nau",3:"nau"},{name:"Navajo",local:"Din\xe9 Bizaad",1:"nv",2:"nav","2T":"nav","2B":"nav",3:"nav"},{name:"Northern Ndebele",local:"isiNdebele",1:"nd",2:"nde","2T":"nde","2B":"nde",3:"nde"},{name:"Nepali",local:"\u0928\u0947\u092a\u093e\u0932\u0940",1:"ne",2:"nep","2T":"nep","2B":"nep",3:"nep"},{name:"Ndonga",local:"Owambo",1:"ng",2:"ndo","2T":"ndo","2B":"ndo",3:"ndo"},{name:"Norwegian Bokm\xe5l",local:"Norsk (Bokm\xe5l)",1:"nb",2:"nob","2T":"nob","2B":"nob",3:"nob"},{name:"Norwegian Nynorsk",local:"Norsk (Nynorsk)",1:"nn",2:"nno","2T":"nno","2B":"nno",3:"nno"},{name:"Norwegian",local:"Norsk",1:"no",2:"nor","2T":"nor","2B":"nor",3:"nor"},{name:"Nuosu",local:"\ua188\ua320\ua4bf Nuosuhxop",1:"ii",2:"iii","2T":"iii","2B":"iii",3:"iii"},{name:"Southern Ndebele",local:"isiNdebele",1:"nr",2:"nbl","2T":"nbl","2B":"nbl",3:"nbl"},{name:"Occitan",local:"Occitan",1:"oc",2:"oci","2T":"oci","2B":"oci",3:"oci"},{name:"Ojibwe",local:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0",1:"oj",2:"oji","2T":"oji","2B":"oji",3:"oji"},{name:"Old Church Slavonic",local:"\u0421\u043b\u043e\u0432\u0463\u0301\u043d\u044c\u0441\u043a\u044a",1:"cu",2:"chu","2T":"chu","2B":"chu",3:"chu"},{name:"Oromo",local:"Afaan Oromoo",1:"om",2:"orm","2T":"orm","2B":"orm",3:"orm"},{name:"Oriya",local:"\u0b13\u0b21\u0b3f\u0b3c\u0b06",1:"or",2:"ori","2T":"ori","2B":"ori",3:"ori"},{name:"Ossetian",local:"\u0418\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433",1:"os",2:"oss","2T":"oss","2B":"oss",3:"oss"},{name:"Panjabi",local:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",1:"pa",2:"pan","2T":"pan","2B":"pan",3:"pan"},{name:"P\u0101li",local:"\u092a\u093e\u0934\u093f",1:"pi",2:"pli","2T":"pli","2B":"pli",3:"pli"},{name:"Persian",local:"\u0641\u0627\u0631\u0633\u06cc",1:"fa",2:"fas","2T":"fas","2B":"per",3:"fas"},{name:"Polish",local:"Polski",1:"pl",2:"pol","2T":"pol","2B":"pol",3:"pol"},{name:"Pashto",local:"\u067e\u069a\u062a\u0648",1:"ps",2:"pus","2T":"pus","2B":"pus",3:"pus"},{name:"Portuguese",local:"Portugu\xeas",1:"pt",2:"por","2T":"por","2B":"por",3:"por"},{name:"Quechua",local:"Runa Simi",1:"qu",2:"que","2T":"que","2B":"que",3:"que"},{name:"Romansh",local:"Rumantsch",1:"rm",2:"roh","2T":"roh","2B":"roh",3:"roh"},{name:"Kirundi",local:"Kirundi",1:"rn",2:"run","2T":"run","2B":"run",3:"run"},{name:"Romanian",local:"Rom\xe2n\u0103",1:"ro",2:"ron","2T":"ron","2B":"rum",3:"ron"},{name:"Russian",local:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",1:"ru",2:"rus","2T":"rus","2B":"rus",3:"rus"},{name:"Sanskrit",local:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",1:"sa",2:"san","2T":"san","2B":"san",3:"san"},{name:"Sardinian",local:"Sardu",1:"sc",2:"srd","2T":"srd","2B":"srd",3:"srd"},{name:"Sindhi",local:"\u0633\u0646\u068c\u064a\u200e",1:"sd",2:"snd","2T":"snd","2B":"snd",3:"snd"},{name:"Northern Sami",local:"S\xe1megiella",1:"se",2:"sme","2T":"sme","2B":"sme",3:"sme"},{name:"Samoan",local:"Gagana S\u0101moa",1:"sm",2:"smo","2T":"smo","2B":"smo",3:"smo"},{name:"Sango",local:"S\xe4ng\xf6",1:"sg",2:"sag","2T":"sag","2B":"sag",3:"sag"},{name:"Serbian",local:"\u0421\u0440\u043f\u0441\u043a\u0438",1:"sr",2:"srp","2T":"srp","2B":"srp",3:"srp"},{name:"Gaelic",local:"G\xe0idhlig",1:"gd",2:"gla","2T":"gla","2B":"gla",3:"gla"},{name:"Shona",local:"ChiShona",1:"sn",2:"sna","2T":"sna","2B":"sna",3:"sna"},{name:"Sinhala",local:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd",1:"si",2:"sin","2T":"sin","2B":"sin",3:"sin"},{name:"Slovak",local:"Sloven\u010dina",1:"sk",2:"slk","2T":"slk","2B":"slo",3:"slk"},{name:"Slovene",local:"Sloven\u0161\u010dina",1:"sl",2:"slv","2T":"slv","2B":"slv",3:"slv"},{name:"Somali",local:"Soomaaliga",1:"so",2:"som","2T":"som","2B":"som",3:"som"},{name:"Southern Sotho",local:"Sesotho",1:"st",2:"sot","2T":"sot","2B":"sot",3:"sot"},{name:"Spanish",local:"Espa\xf1ol",1:"es",2:"spa","2T":"spa","2B":"spa",3:"spa"},{name:"Sundanese",local:"Basa Sunda",1:"su",2:"sun","2T":"sun","2B":"sun",3:"sun"},{name:"Swahili",local:"Kiswahili",1:"sw",2:"swa","2T":"swa","2B":"swa",3:"swa"},{name:"Swati",local:"SiSwati",1:"ss",2:"ssw","2T":"ssw","2B":"ssw",3:"ssw"},{name:"Swedish",local:"Svenska",1:"sv",2:"swe","2T":"swe","2B":"swe",3:"swe"},{name:"Tamil",local:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",1:"ta",2:"tam","2T":"tam","2B":"tam",3:"tam"},{name:"Telugu",local:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",1:"te",2:"tel","2T":"tel","2B":"tel",3:"tel"},{name:"Tajik",local:"\u0422\u043e\u04b7\u0438\u043a\u04e3",1:"tg",2:"tgk","2T":"tgk","2B":"tgk",3:"tgk"},{name:"Thai",local:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",1:"th",2:"tha","2T":"tha","2B":"tha",3:"tha"},{name:"Tigrinya",local:"\u1275\u130d\u122d\u129b",1:"ti",2:"tir","2T":"tir","2B":"tir",3:"tir"},{name:"Tibetan Standard",local:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42",1:"bo",2:"bod","2T":"bod","2B":"tib",3:"bod"},{name:"Turkmen",local:"T\xfcrkmen\xe7e",1:"tk",2:"tuk","2T":"tuk","2B":"tuk",3:"tuk"},{name:"Tagalog",local:"Tagalog",1:"tl",2:"tgl","2T":"tgl","2B":"tgl",3:"tgl"},{name:"Tswana",local:"Setswana",1:"tn",2:"tsn","2T":"tsn","2B":"tsn",3:"tsn"},{name:"Tonga",local:"faka Tonga",1:"to",2:"ton","2T":"ton","2B":"ton",3:"ton"},{name:"Turkish",local:"T\xfcrk\xe7e",1:"tr",2:"tur","2T":"tur","2B":"tur",3:"tur"},{name:"Tsonga",local:"Xitsonga",1:"ts",2:"tso","2T":"tso","2B":"tso",3:"tso"},{name:"Tatar",local:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",1:"tt",2:"tat","2T":"tat","2B":"tat",3:"tat"},{name:"Twi",local:"Twi",1:"tw",2:"twi","2T":"twi","2B":"twi",3:"twi"},{name:"Tahitian",local:"Reo M\u0101\u2019ohi",1:"ty",2:"tah","2T":"tah","2B":"tah",3:"tah"},{name:"Uyghur",local:"\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u0647",1:"ug",2:"uig","2T":"uig","2B":"uig",3:"uig"},{name:"Ukrainian",local:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",1:"uk",2:"ukr","2T":"ukr","2B":"ukr",3:"ukr"},{name:"Urdu",local:"\u0627\u0631\u062f\u0648",1:"ur",2:"urd","2T":"urd","2B":"urd",3:"urd"},{name:"Uzbek",local:"O\u2018zbek",1:"uz",2:"uzb","2T":"uzb","2B":"uzb",3:"uzb"},{name:"Venda",local:"Tshiven\u1e13a",1:"ve",2:"ven","2T":"ven","2B":"ven",3:"ven"},{name:"Vietnamese",local:"Ti\u1ebfng Vi\u1ec7t",1:"vi",2:"vie","2T":"vie","2B":"vie",3:"vie"},{name:"Volap\xfck",local:"Volap\xfck",1:"vo",2:"vol","2T":"vol","2B":"vol",3:"vol"},{name:"Walloon",local:"Walon",1:"wa",2:"wln","2T":"wln","2B":"wln",3:"wln"},{name:"Welsh",local:"Cymraeg",1:"cy",2:"cym","2T":"cym","2B":"wel",3:"cym"},{name:"Wolof",local:"Wolof",1:"wo",2:"wol","2T":"wol","2B":"wol",3:"wol"},{name:"Western Frisian",local:"Frysk",1:"fy",2:"fry","2T":"fry","2B":"fry",3:"fry"},{name:"Xhosa",local:"isiXhosa",1:"xh",2:"xho","2T":"xho","2B":"xho",3:"xho"},{name:"Yiddish",local:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",1:"yi",2:"yid","2T":"yid","2B":"yid",3:"yid"},{name:"Yoruba",local:"Yor\xf9b\xe1",1:"yo",2:"yor","2T":"yor","2B":"yor",3:"yor"},{name:"Zhuang",local:"Cuengh",1:"za",2:"zha","2T":"zha","2B":"zha",3:"zha"},{name:"Zulu",local:"isiZulu",1:"zu",2:"zul","2T":"zul","2B":"zul",3:"zul"}]},MsCo:function(e,t,n){(function(e,r){var i;!function(r){var o,a=2147483647,s=36,l=1,u=26,c=38,f=700,h=72,d=128,p="-",g=/^xn--/,m=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=s-l,_=Math.floor,w=String.fromCharCode;function x(e){throw new RangeError(y[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(v,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+w(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,n){var r=0;for(e=n?_(e/f):e>>1,e+=_(e/t);e>b*u>>1;r+=s)e=_(e/b);return _(r+(b+1)*e/(e+c))}function A(e){var t,n,r,i,o,c,f,g,m,v,y,b=[],w=e.length,k=0,C=d,E=h;for((n=e.lastIndexOf(p))<0&&(n=0),r=0;r=128&&x("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=w&&x("invalid-input"),((g=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:s)>=s||g>_((a-k)/c))&&x("overflow"),k+=g*c,!(g<(m=f<=E?l:f>=E+u?u:f-E));f+=s)c>_(a/(v=s-m))&&x("overflow"),c*=v;E=O(k-o,t=b.length+1,0==o),_(k/t)>a-C&&x("overflow"),C+=_(k/t),k%=t,b.splice(k++,0,C)}return S(b)}function I(e){var t,n,r,i,o,c,f,g,m,v,y,b,k,C,S,A=[];for(b=(e=E(e)).length,t=d,n=0,o=h,c=0;c=t&&y_((a-n)/(k=r+1))&&x("overflow"),n+=(f-t)*k,t=f,c=0;ca&&x("overflow"),y==t){for(g=n,m=s;!(g<(v=m<=o?l:m>=o+u?u:m-o));m+=s)A.push(w(T(v+(S=g-v)%(C=s-v),0))),g=_(S/C);A.push(w(T(g,0))),o=O(n,k,r==i),n=0,++r}++n,++t}return A.join("")}o={version:"1.4.1",ucs2:{decode:E,encode:S},decode:A,encode:I,toASCII:function(e){return C(e,function(e){return m.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return C(e,function(e){return g.test(e)?A(e.slice(4).toLowerCase()):e})}},void 0===(i=(function(){return o}).call(t,n,t,e))||(e.exports=i)}()}).call(t,n("3IRH")(e),n("DuR2"))},N4j0:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length}},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Ve}),n.d(t,"j",function(){return Le}),n.d(t,"h",function(){return y}),n.d(t,"i",function(){return x}),n.d(t,"b",function(){return g}),n.d(t,"d",function(){return A}),n.d(t,"e",function(){return I}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return re}),n.d(t,"c",function(){return Ae}),n.d(t,"s",function(){return s}),n.d(t,"l",function(){return V}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return ie}),n.d(t,"o",function(){return se}),n.d(t,"m",function(){return j}),n.d(t,"p",function(){return P}),n.d(t,"q",function(){return Be}),n.d(t,"t",function(){return O}),n.d(t,"r",function(){return Ie});var r=n("Xjw4"),i=n("WT6e"),o=n("TToO"),a=null;function s(){return a}var l,u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i["\u0275global"].Node&&(l=i["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var h,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,a||(a=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return l.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[a]=[]);var u=$(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var c=!1,f=0;f-1},t}(R),oe=["alt","control","meta","shift"],ae={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},se=function(e){function t(t){return e.call(this,t)||this}return Object(o.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(oe.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),oe.forEach(function(r){r!=n&&(0,ae[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(R),le=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

    '),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.DOM.removeAttribute(e,r)});for(var n=0,r=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(t)&&!ge.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Se(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Ce=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ee=/([^\#-~ |!])/g;function Se(e){return e.replace(/&/g,"&").replace(Ce,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ee,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Te=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Oe=/^url\(([^)]+)\)$/,Ae=function(){},Ie=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(o.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return t instanceof Pe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=s(),r=null;try{pe=pe||new le(e,n);var o=t?String(t):"";r=pe.getInertBodyElement(o);var a=5,l=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=l,l=n.getInnerHTML(r),r=pe.getInertBodyElement(o)}while(o!==l);var u=new ke,c=u.sanitizeChildren(n.getTemplateContent(r)||r);return Object(i.isDevMode)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(r)for(var f=n.getTemplateContent(r)||r,h=0,d=n.childNodesAsList(f);h=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=c(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return m(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a,s=Object.keys(n),l=(a={},s.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(k(n))return e.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var u,_="",C=!1,E=["{","}"];return d(n)&&(C=!0,E=["[","]"]),k(n)&&(_=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),x(n)&&(_=" "+f(n)),0!==s.length||C&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=C?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,_,E)):E[0]+_+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=e.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===C(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===C(e)}function x(e){return _(e)&&("[object Error]"===C(e)||e instanceof Error)}function k(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=_,t.isDate=w,t.isError=x,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e},t.isBuffer=n("fC4T");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[E((e=new Date).getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n("ONRY"),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n("DuR2"),n("W2nU"))},ONRY:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},OVmG:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("TToO"),i=n("/iUD"),o=n("VwZZ"),a=n("t7NR"),s=n("tLDX"),l=function(e){function t(n,r,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.a;break;case 1:if(!n){this.destination=a.a;break}if("object"==typeof n){n instanceof t?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,i)}}return Object(r.b)(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(o.a),u=function(e){function t(t,n,r,o){var s;e.call(this),this._parentSubscriber=t;var l=this;Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.a&&(l=Object.create(n),Object(i.a)(l.unsubscribe)&&this.add(l.unsubscribe.bind(l)),l.unsubscribe=this.unsubscribe.bind(this))),this._context=l,this._next=s,this._error=r,this._complete=o}return Object(r.b)(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},Oh2B:function(e,t,n){n("0S9w");var r=n("Cbv+"),i=r,o=n("0s51").Lexicon;PersistentLexicon=function(e,t){var n=this;r.registerIndexedDB(n),this.defaultGraphOid=0,this.defaultGraphUri="https://github.com/antoniogarrote/rdfstore-js#default_graph",this.defaultGraphUriTerm={token:"uri",prefix:null,suffix:null,value:this.defaultGraphUri},this.oidCounter=1,n.dbName=t||"rdfstorejs";var i=n.indexedDB.open(this.dbName+"_lexicon",1);i.onerror=function(t){e(null,new Error("Error opening IndexedDB: "+t.target.errorCode))},i.onsuccess=function(t){n.db=t.target.result,e(n)},i.onupgradeneeded=function(e){n.db=e.target.result,n.db.createObjectStore("knownGraphs",{keyPath:"oid"}).createIndex("uriToken","uriToken",{unique:!0}),n.db.createObjectStore("components",{keyPath:"id",autoIncrement:!0}).createIndex("value","value",{unique:!0})}},PersistentLexicon.prototype.registerGraph=function(e,t,n){if(e!=this.defaultGraphOid){var r=this.db.transaction(["knownGraphs"],"readwrite");r.onerror=function(e){n(null,new Error(e.target.statusCode))};var i=r.objectStore("knownGraphs");i.get(t).onsuccess=function(r){r.target.result?n(!0):i.add({oid:e,uriToken:t}).onsuccess=function(e){n(!0)}}}else n()},PersistentLexicon.prototype.registeredGraphs=function(e,t){var n=[],r=this.db.transaction(["knownGraphs"],"readwrite").objectStore("knownGraphs").openCursor();r.onsuccess=function(r){var i=r.target.result;i?(n.push(!0===e?i.value.uriToken:i.value.oid),i.continue()):t(n)},r.onerror=function(e){t(null,new Error("Error retrieving data from the cursor: "+e.target.errorCode))}},PersistentLexicon.prototype.registerUri=function(e,t){if(e===this.defaultGraphUri)t(this.defaultGraphOid);else{var n=this.db.transaction(["components"],"readwrite").objectStore("components"),r=n.index("value").get("_u:"+e);r.onsuccess=function(r){var i=r.target.result;if(i){i.counter++;var o=i.id,a=n.put(i);a.onsuccess=function(e){t(o)},a.onerror=function(e){t(null,new Error("Error updating the URI data"+e.target.errorCode))}}else{var s=n.add({value:"_u:"+e,counter:0,uri:!0});s.onsuccess=function(e){t(e.target.result)},s.onerror=function(e){t(null,new Error("Error inserting the URI data"+e.target.errorCode))}}},r.onerror=function(e){t(null,new Error("Error retrieving the URI data"+e.target.errorCode))}}},PersistentLexicon.prototype.resolveUri=function(e,t){if(e===this.defaultGraphUri)t(this.defaultGraphOid);else{var n=this.db.transaction(["components"]).objectStore("components").index("value").get("_u:"+e);n.onsuccess=function(e){t(null!=e.target.result?e.target.result.id:-1)},n.onerror=function(e){t(null,new Error("Error retrieving uri data "+e.target.errorCode))}}},PersistentLexicon.prototype.resolveUriCost=function(e,t){if(e===this.defaultGraphUri)t(0);else{var n=that.db.transaction(["components"]).objectStore("components").index("value").get("_u:"+e);n.onsuccess=function(e){t(null!=e.target.result?e.target.result.cost:-1)},n.onerror=function(e){t(null,new Error("Error retrieving uri data "+e.target.errorCode))}}},PersistentLexicon.prototype.registerBlank=function(e){var t=guid(),n=this.db.transaction(["components"],"readwrite").objectStore("components").add({value:"_b:"+t,counter:0,label:!0});n.onsuccess=function(t){e(t.target.result)},n.onerror=function(t){e(null,new Error("Error inserting the URI data"+t.target.errorCode))}},PersistentLexicon.prototype.resolveBlankCost=function(e,t){t(0)},PersistentLexicon.prototype.registerLiteral=function(e,t){var n=this.db.transaction(["components"],"readwrite").objectStore("components"),r=n.index("value").get("_l:"+e);r.onsuccess=function(r){var i=r.target.result;if(i){i.counter++;var o=i.id,a=n.put(i);a.onsuccess=function(e){t(o)},a.onerror=function(e){t(null,new Error("Error updating the literal data"+e.target.errorCode))}}else{var s=n.add({value:"_l:"+e,counter:0,literal:!0});s.onsuccess=function(e){t(e.target.result)},s.onerror=function(e){t(null,new Error("Error inserting the literal data"+e.target.errorCode))}}},r.onerror=function(e){t(null,new Error("Error retrieving the literal data"+e.target.errorCode))}},PersistentLexicon.prototype.resolveLiteral=function(e,t){var n=that.db.transaction(["components"]).objectStore("components").index("value").get("_l:"+e);n.onsuccess=function(e){t(null!=e.target.result?e.target.result.id:-1)},n.onerror=function(e){t(null,new Error("Error retrieving literal data "+e.target.errorCode))}},PersistentLexicon.prototype.resolveLiteralCost=function(e,t){var n=that.db.transaction(["components"]).objectStore("components").index("components").get(e);n.onsuccess=function(e){t(null!=e.target.result?e.target.result.cost:-1)},n.onerror=function(e){t(null,new Error("Error retrieving literal data "+e.target.errorCode))}},PersistentLexicon.prototype.parseLiteral=function(e){return o.prototype.parseLiteral(e)},PersistentLexicon.prototype.parseUri=function(e){return o.prototype.parseUri(e)},PersistentLexicon.prototype.retrieve=function(e,t){var n,r=this;e===this.defaultGraphOid?t({token:"uri",value:this.defaultGraphUri,prefix:null,suffix:null,defaultGraph:!0}):((n=r.db.transaction(["components"]).objectStore("components").get(e)).onsuccess=function(e){null!=e.target.result?null!=e.target.result.label?t({token:"blank",value:"_:"+e.target.result.id}):null!=e.target.result.uri?t(r.parseUri(e.target.result.value.slice(3,e.target.result.value.length))):null!=e.target.result.literal?t(r.parseLiteral(e.target.result.value.slice(3,e.target.result.value.length))):(console.log(e.target.result),t(null,new Error("Unknown type of component "+e.target.result))):t(null,null)},n.onerror=function(e){t(null,new Error("Error searching in blanks data "+e.target.errorCode))})},PersistentLexicon.prototype.clear=function(e){this.defaultGraphOid=0,this.defaultGraphUri="https://github.com/antoniogarrote/rdfstore-js#default_graph",this.defaultGraphUriTerm={token:"uri",prefix:null,suffix:null,value:this.defaultGraphUri};var t,n=function(){null!=e&&e()};(t=this.db.transaction(["components"],"readwrite").objectStore("components").clear()).onsuccess=n,t.onerror=n},PersistentLexicon.prototype.unregister=function(e,t,n){var r=this;i.seq(function(n){r._unregisterTerm(e.subject.token,t.subject,n)},function(n){r._unregisterTerm(e.predicate.token,t.predicate,n)},function(n){r._unregisterTerm(e.object.token,t.object,n)},function(n){null!=e.graph?r._unregisterTerm(e.graph.token,t.graph,n):n()})(function(){n(!0)})},PersistentLexicon.prototype._unregisterTerm=function(e,t,n){var r=this.db.transaction(["components","knownGraphs"],"readwrite");"uri"===e?t!=this.defaultGraphOid?r.objectStore("components").delete(t).onsuccess=void(r.objectStore("knownGraphs").delete(t).onsuccess=function(){n()}):n():r.objectStore("components").delete(t).onsuccess=function(){n()}},e.exports={PersistentLexicon:PersistentLexicon}},PIsA:function(e,t,n){"use strict";var r=n("AMGY"),i=n("N4j0"),o=n("cQXm"),a=n("dgOU"),s=n("YaPU"),l=n("etqZ"),u=n("TToO"),c=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(u.b)(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("OVmG").a),f=n("+CnV");t.a=function(e,t,n,u){var h=new c(e,n,u);if(h.closed)return null;if(t instanceof s.a)return t._isScalar?(h.next(t.value),h.complete(),null):(h.syncErrorThrowable=!0,t.subscribe(h));if(Object(i.a)(t)){for(var d=0,p=t.length;d0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},Rf9G:function(e,t,n){"use strict";t.a=function(){return Object(r.a)()(this)};var r=n("3a3m")},Rt1F:function(e,t,n){"use strict";(function(t,r){var i=n("ypnx");e.exports=b;var o,a=n("sOR5");b.ReadableState=y,n("vzCy");var s=function(e,t){return e.listeners(t).length},l=n("UcPO"),u=n("X3l8").Buffer,c=t.Uint8Array||function(){},f=n("jOgh");f.inherits=n("LC74");var h=n(1),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,g=n("+HRN"),m=n("x0Ha");f.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(e,t){var r=t instanceof(o=o||n("DsFX"));this.objectMode=!!(e=e||{}).objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n("X4X3").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n("DsFX"),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}}(e,a)):(i||(o=function(e,t){var n,r;return u.isBuffer(r=t)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){d("emit readable"),e.emit("readable"),I(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(i+=a===o.length?o:o.slice(0,e),0==(e-=a)){a===o.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):C(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){d("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",function t(r,i){d("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",c),e.removeListener("error",g),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,I(e))}}(n);e.on("drain",c);var f=!1,h=!1;function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!f&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){d("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),y()}function v(){d("onfinish"),e.removeListener("close",m),y()}function y(){d("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener("error",n);e._events&&e._events.error?a(e._events.error)?e._events.error.unshift(n):e._events.error=[n,e._events.error]:e.on("error",n)}(e,0,g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<"]=0,this._entities=Object.create(null),this._blankNodeIndex=0,t||!e||e[0]||(t=e,e=null),t=t||{},this._prefixes=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),e&&this.addTriples(e)}function o(e){return"string"==typeof e||e instanceof String}i.prototype={get size(){var e=this._size;if(null!==e)return e;e=0;var t,n,r=this._graphs;for(var i in r)for(var o in t=r[i].subjects)for(var a in n=t[o])e+=Object.keys(n[a]).length;return this._size=e},_addToIndex:function(e,t,n,r){var i=e[t]||(e[t]={}),o=i[n]||(i[n]={}),a=r in o;return a||(o[r]=null),!a},_removeFromIndex:function(e,t,n,r){var i,o=e[t],a=o[n];for(i in delete a[r],a)return;for(i in delete o[n],o)return;delete e[t]},_findInIndex:function(e,t,n,r,i,o,a,s,l,u){var c,f,h,d=!t+!n+!r>1?Object.keys(this._ids):this._entities;for(var p in t&&((c=e,e={})[t]=c[t]),e){var g=d[p];if(f=e[p])for(var m in n&&((c=f,f={})[n]=c[n]),f){var v=d[m];if(h=f[m])for(var y=(r?r in h?[r]:[]:Object.keys(h)),b=y.length-1;b>=0;b--){var _={subject:"",predicate:"",object:"",graph:s};if(_[i]=g,_[o]=v,_[a]=d[y[b]],u)u.push(_);else if(l(_))return!0}}}return u},_loop:function(e,t){for(var n in e)t(n)},_loopByKey0:function(e,t,n){var r,i;if(r=e[t])for(i in r)n(i)},_loopByKey1:function(e,t,n){var r;for(r in e)e[r][t]&&n(r)},_loopBy2Keys:function(e,t,n,r){var i,o,a;if((i=e[t])&&(o=i[n]))for(a in o)r(a)},_countInIndex:function(e,t,n,r){var i,o,a,s=0;for(var l in t&&((i=e,e={})[t]=i[t]),e)if(o=e[l])for(var u in n&&((i=o,o={})[n]=i[n]),o)(a=o[u])&&(r?r in a&&s++:s+=Object.keys(a).length);return s},_getGraphs:function(e){if(!o(e))return this._graphs;var t={};return t[e]=this._graphs[e],t},_uniqueEntities:function(e){var t=Object.create(null),n=this._entities;return function(r){r in t||(t[r]=!0,e(n[r]))}},addTriple:function(e,t,n,r){t||(r=e.graph,n=e.object,t=e.predicate,e=e.subject);var i=this._graphs[r=r||""];i||(i=this._graphs[r]={subjects:{},predicates:{},objects:{}},Object.freeze(i));var o=this._ids,a=this._entities;e=o[e]||(o[a[++this._id]=e]=this._id),t=o[t]||(o[a[++this._id]=t]=this._id),n=o[n]||(o[a[++this._id]=n]=this._id);var s=this._addToIndex(i.subjects,e,t,n);return this._addToIndex(i.predicates,t,n,e),this._addToIndex(i.objects,n,e,t),this._size=null,s},addTriples:function(e){for(var t=e.length-1;t>=0;t--)this.addTriple(e[t])},addPrefix:function(e,t){this._prefixes[e]=t},addPrefixes:function(e){for(var t in e)this.addPrefix(t,e[t])},removeTriple:function(e,t,n,r){t||(r=e.graph,n=e.object,t=e.predicate,e=e.subject),r=r||"";var i,o,a,s=this._ids,l=this._graphs;if(!((e=s[e])&&(t=s[t])&&(n=s[n])&&(i=l[r])&&(o=i.subjects[e])&&(a=o[t])&&n in a))return!1;for(e in this._removeFromIndex(i.subjects,e,t,n),this._removeFromIndex(i.predicates,t,n,e),this._removeFromIndex(i.objects,n,e,t),null!==this._size&&this._size--,i.subjects)return!0;return delete l[r],!0},removeTriples:function(e){for(var t=e.length-1;t>=0;t--)this.removeTriple(e[t])},getTriples:function(e,t,n,i){var o=this._prefixes;return this.getTriplesByIRI(r(e,o),r(t,o),r(n,o),r(i,o))},getTriplesByIRI:function(e,t,n,r){var i,a,s,l,u=[],c=this._getGraphs(r),f=this._ids;if(o(e)&&!(a=f[e])||o(t)&&!(s=f[t])||o(n)&&!(l=f[n]))return u;for(var h in c)(i=c[h])&&(a?l?this._findInIndex(i.objects,l,a,s,"object","subject","predicate",h,null,u):this._findInIndex(i.subjects,a,s,null,"subject","predicate","object",h,null,u):s?this._findInIndex(i.predicates,s,l,null,"predicate","object","subject",h,null,u):l?this._findInIndex(i.objects,l,null,null,"object","subject","predicate",h,null,u):this._findInIndex(i.subjects,null,null,null,"subject","predicate","object",h,null,u));return u},countTriples:function(e,t,n,i){var o=this._prefixes;return this.countTriplesByIRI(r(e,o),r(t,o),r(n,o),r(i,o))},countTriplesByIRI:function(e,t,n,r){var i,a,s,l,u=0,c=this._getGraphs(r),f=this._ids;if(o(e)&&!(a=f[e])||o(t)&&!(s=f[t])||o(n)&&!(l=f[n]))return 0;for(var h in c)(i=c[h])&&(u+=e?n?this._countInIndex(i.objects,l,a,s):this._countInIndex(i.subjects,a,s,l):t?this._countInIndex(i.predicates,s,l,a):this._countInIndex(i.objects,l,a,s));return u},forEach:function(e,t,n,i,o){var a=this._prefixes;this.forEachByIRI(e,r(t,a),r(n,a),r(i,a),r(o,a))},forEachByIRI:function(e,t,n,r,i){this.someByIRI(function(t){return e(t),!1},t,n,r,i)},every:function(e,t,n,i,o){var a=this._prefixes;return this.everyByIRI(e,r(t,a),r(n,a),r(i,a),r(o,a))},everyByIRI:function(e,t,n,r,i){var o=!1,a=!this.someByIRI(function(t){return o=!0,!e(t)},t,n,r,i);return o&&a},some:function(e,t,n,i,o){var a=this._prefixes;return this.someByIRI(e,r(t,a),r(n,a),r(i,a),r(o,a))},someByIRI:function(e,t,n,r,i){var a,s,l,u,c=this._getGraphs(i),f=this._ids;if(o(t)&&!(s=f[t])||o(n)&&!(l=f[n])||o(r)&&!(u=f[r]))return!1;for(var h in c)if(a=c[h])if(s){if(u){if(this._findInIndex(a.objects,u,s,l,"object","subject","predicate",h,e,null))return!0}else if(this._findInIndex(a.subjects,s,l,null,"subject","predicate","object",h,e,null))return!0}else if(l){if(this._findInIndex(a.predicates,l,u,null,"predicate","object","subject",h,e,null))return!0}else if(u){if(this._findInIndex(a.objects,u,null,null,"object","subject","predicate",h,e,null))return!0}else if(this._findInIndex(a.subjects,null,null,null,"subject","predicate","object",h,e,null))return!0;return!1},getSubjects:function(e,t,n){var i=this._prefixes;return this.getSubjectsByIRI(r(e,i),r(t,i),r(n,i))},getSubjectsByIRI:function(e,t,n){var r=[];return this.forSubjectsByIRI(function(e){r.push(e)},e,t,n),r},forSubjects:function(e,t,n,i){var o=this._prefixes;this.forSubjectsByIRI(e,r(t,o),r(n,o),r(i,o))},forSubjectsByIRI:function(e,t,n,r){var i,a,s,l=this._ids,u=this._getGraphs(r);if(e=this._uniqueEntities(e),!(o(t)&&!(a=l[t])||o(n)&&!(s=l[n])))for(r in u)(i=u[r])&&(a?s?this._loopBy2Keys(i.predicates,a,s,e):this._loopByKey1(i.subjects,a,e):s?this._loopByKey0(i.objects,s,e):this._loop(i.subjects,e))},getPredicates:function(e,t,n){var i=this._prefixes;return this.getPredicatesByIRI(r(e,i),r(t,i),r(n,i))},getPredicatesByIRI:function(e,t,n){var r=[];return this.forPredicatesByIRI(function(e){r.push(e)},e,t,n),r},forPredicates:function(e,t,n,i){var o=this._prefixes;this.forPredicatesByIRI(e,r(t,o),r(n,o),r(i,o))},forPredicatesByIRI:function(e,t,n,r){var i,a,s,l=this._ids,u=this._getGraphs(r);if(e=this._uniqueEntities(e),!(o(t)&&!(a=l[t])||o(n)&&!(s=l[n])))for(r in u)(i=u[r])&&(a?s?this._loopBy2Keys(i.objects,s,a,e):this._loopByKey0(i.subjects,a,e):s?this._loopByKey1(i.predicates,s,e):this._loop(i.predicates,e))},getObjects:function(e,t,n){var i=this._prefixes;return this.getObjectsByIRI(r(e,i),r(t,i),r(n,i))},getObjectsByIRI:function(e,t,n){var r=[];return this.forObjectsByIRI(function(e){r.push(e)},e,t,n),r},forObjects:function(e,t,n,i){var o=this._prefixes;this.forObjectsByIRI(e,r(t,o),r(n,o),r(i,o))},forObjectsByIRI:function(e,t,n,r){var i,a,s,l=this._ids,u=this._getGraphs(r);if(e=this._uniqueEntities(e),!(o(t)&&!(a=l[t])||o(n)&&!(s=l[n])))for(r in u)(i=u[r])&&(a?s?this._loopBy2Keys(i.subjects,a,s,e):this._loopByKey1(i.objects,a,e):s?this._loopByKey0(i.predicates,s,e):this._loop(i.objects,e))},getGraphs:function(e,t,n){var i=this._prefixes;return this.getGraphsByIRI(r(e,i),r(t,i),r(n,i))},getGraphsByIRI:function(e,t,n){var r=[];return this.forGraphsByIRI(function(e){r.push(e)},e,t,n),r},forGraphs:function(e,t,n,i){var o=this._prefixes;this.forGraphsByIRI(e,r(t,o),r(n,o),r(i,o))},forGraphsByIRI:function(e,t,n,r){for(var i in this._graphs)this.someByIRI(function(t){return e(t.graph),!0},t,n,r,i)},createBlankNode:function(e){var t,n;if(e)for(t=e="_:"+e,n=1;this._ids[t];)t=e+n++;else do{t="_:b"+this._blankNodeIndex++}while(this._ids[t]);return this._ids[t]=++this._id,this._entities[this._id]=t,t}},e.exports=i},SALZ:function(e,t,n){"use strict";var r=n("TToO"),i=n("YaPU"),o=n("+3/4"),a=n("BX3T"),s=n("PIsA"),l=n("tZ2B"),u=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return Object(r.b)(t,e),t.create=function(){for(var e=[],n=0;n",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),f=["%","/","?",";","#"].concat(c),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("1nuA");function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?j+="x":j+=P[D];if(!j.match(d)){var F=I.slice(0,T),M=I.slice(T+1),L=P.match(p);L&&(F.push(L[1]),M.unshift(L[2])),M.length&&(b="/"+M.join(".")+b),this.hostname=F.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"";this.host=(this.hostname||"")+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[x])for(T=0,R=c.length;T0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var k=w.slice(-1)[0],C=(n.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,E=0,S=w.length;S>=0;S--)"."===(k=w[S])?w.splice(S,1):".."===k?(w.splice(S,1),E++):E&&(w.splice(S,1),E--);if(!b&&!_)for(;E--;E)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),C&&"/"!==w.join("/").substr(-1)&&w.push("");var T,O=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(n.hostname=n.host=O?"":w.length?w.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),(b=b||n.host&&w.length)&&!O&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},UcPO:function(e,t,n){e.exports=n("vzCy").EventEmitter},UuVp:function(e,t,n){var r=n("Cbv+"),i=r,o=n("Cbv+");QueryFilters={};var a="http://www.w3.org/2001/XMLSchema#";QueryFilters.checkFilters=function(e,t,n,r,i,a,s){var l=[];e.filter&&"function"!=typeof e.filter&&(l=e.filter);var u=[];if(null==l||0===l.length||null!=e.length)return s(t);QueryFilters.preprocessExistentialFilters(l,t,a,r,i,function(e){o.eachSeries(e,function(e,o){QueryFilters.run(e.value,t,n,r,i,a,function(e){for(var n=[],r=0;r"===s)return QueryFilters.runGtFunction(t,n,r);if("<="===s)return QueryFilters.runLtEqFunction(t,n,r);if(">="===s)return QueryFilters.runGtEqFunction(t,n,r);throw"Error applying relational filter, unknown operator"},QueryFilters.effectiveTypeValue=function(e){if("literal"!=e.token)throw console.log("not implemented yet"),console.log(e),"value not supported in operations yet";if(e.type==a+"integer")return parseInt(e.value);if(e.type==a+"decimal")return parseFloat(e.value);if(e.type==a+"float")return parseFloat(e.value);if(e.type==a+"double")return parseFloat(e.value);if(e.type==a+"nonPositiveInteger")return parseFloat(e.value);if(e.type==a+"negativeInteger")return parseInt(e.value);if(e.type==a+"long")return parseInt(e.value);if(e.type==a+"int")return parseInt(e.value);if(e.type==a+"short")return parseInt(e.value);if(e.type==a+"byte")return parseInt(e.value);if(e.type==a+"nonNegativeInteger")return parseInt(e.value);if(e.type==a+"unsignedLong")return parseInt(e.value);if(e.type==a+"unsignedInt")return parseInt(e.value);if(e.type==a+"unsignedShort")return parseInt(e.value);if(e.type==a+"unsignedByte")return parseInt(e.value);if(e.type==a+"positiveInteger")return parseInt(e.value);if(e.type!=a+"date"&&e.type!=a+"dateTime")return e.type==a+"boolean"?!0===e.value||"true"===e.value||"1"===e.value||1===e.value||!0===e.value||!1!==e.value&&"false"!==e.value&&"0"!==e.value&&0!==e.value&&!1!==e.value&&void 0:e.type==a+"string"?null===e.value||void 0===e.value?void 0:""+e.value:e.value;try{return r.parseISO8601(e.value)}catch(e){return null}},QueryFilters.runOrFunction=function(e,t,n,r,i){for(var o=null,a=0;aQueryFilters.effectiveTypeValue(t));if(QueryFilters.isSimpleLiteral(e)&&QueryFilters.isSimpleLiteral(t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("string",e)&&QueryFilters.isXsdType("string",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("boolean",e)&&QueryFilters.isXsdType("boolean",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>QueryFilters.effectiveTypeValue(t));if((QueryFilters.isXsdType("dateTime",e)||QueryFilters.isXsdType("date",e))&&(QueryFilters.isXsdType("dateTime",t)||QueryFilters.isXsdType("date",t))){if(QueryFilters.isXsdType("dateTime",e)&&QueryFilters.isXsdType("date",t))return QueryFilters.ebvFalse();if(QueryFilters.isXsdType("date",e)&&QueryFilters.isXsdType("dateTime",t))return QueryFilters.ebvFalse();var i=r.compareDateComponents(e.value,t.value);return null!=i?1==i?QueryFilters.ebvTrue():QueryFilters.ebvFalse():QueryFilters.ebvError()}return QueryFilters.ebvFalse()},QueryFilters.runTotalGtFunction=function(e,t){return QueryFilters.isEbvError(e)||QueryFilters.isEbvError(t)?QueryFilters.ebvError():QueryFilters.isNumeric(e)&&QueryFilters.isNumeric(t)||QueryFilters.isSimpleLiteral(e)&&QueryFilters.isSimpleLiteral(t)||QueryFilters.isXsdType("string",e)&&QueryFilters.isSimpleLiteral("string",t)||QueryFilters.isXsdType("boolean",e)&&QueryFilters.isSimpleLiteral("boolean",t)||QueryFilters.isXsdType("dateTime",e)&&QueryFilters.isSimpleLiteral("dateTime",t)?QueryFilters.runGtFunction(e,t,[]):e.token&&"uri"===e.token&&t.token&&"uri"===t.token?QueryFilters.ebvBoolean(e.value>t.value):e.token&&"literal"===e.token&&t.token&&"literal"===t.token?QueryFilters.ebvBoolean(""+e.value+e.type+e.lang>""+t.value+t.type+t.lang):e.token&&"blank"===e.token&&t.token&&"blank"===t.token?QueryFilters.ebvBoolean(e.value>t.value):e.value&&t.value?QueryFilters.ebvBoolean(e.value>t.value):QueryFilters.ebvTrue()},QueryFilters.runLtFunction=function(e,t,n){if(QueryFilters.isEbvError(e)||QueryFilters.isEbvError(t))return QueryFilters.ebvError();if(QueryFilters.isNumeric(e)&&QueryFilters.isNumeric(t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isSimpleLiteral(e)&&QueryFilters.isSimpleLiteral(t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("string",e)&&QueryFilters.isXsdType("string",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("boolean",e)&&QueryFilters.isXsdType("boolean",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)>=QueryFilters.effectiveTypeValue(t));if((QueryFilters.isXsdType("dateTime",e)||QueryFilters.isXsdType("date",e))&&(QueryFilters.isXsdType("dateTime",t)||QueryFilters.isXsdType("date",t))){if(QueryFilters.isXsdType("dateTime",e)&&QueryFilters.isXsdType("date",t))return QueryFilters.ebvFalse();if(QueryFilters.isXsdType("date",e)&&QueryFilters.isXsdType("dateTime",t))return QueryFilters.ebvFalse();var i=r.compareDateComponents(e.value,t.value);return null!=i?-1!=i?QueryFilters.ebvTrue():QueryFilters.ebvFalse():QueryFilters.ebvError()}return QueryFilters.ebvFalse()},QueryFilters.runLtEqFunction=function(e,t,n){if(QueryFilters.isEbvError(e)||QueryFilters.isEbvError(t))return QueryFilters.ebvError();if(QueryFilters.isNumeric(e)&&QueryFilters.isNumeric(t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)<=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isSimpleLiteral(e)&&QueryFilters.isSimpleLiteral(t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)<=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("string",e)&&QueryFilters.isXsdType("string",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)<=QueryFilters.effectiveTypeValue(t));if(QueryFilters.isXsdType("boolean",e)&&QueryFilters.isXsdType("boolean",t))return QueryFilters.ebvBoolean(QueryFilters.effectiveTypeValue(e)<=QueryFilters.effectiveTypeValue(t));if((QueryFilters.isXsdType("dateTime",e)||QueryFilters.isXsdType("date",e))&&(QueryFilters.isXsdType("dateTime",t)||QueryFilters.isXsdType("date",t))){if(QueryFilters.isXsdType("dateTime",e)&&QueryFilters.isXsdType("date",t))return QueryFilters.ebvFalse();if(QueryFilters.isXsdType("date",e)&&QueryFilters.isXsdType("dateTime",t))return QueryFilters.ebvFalse();var i=r.compareDateComponents(e.value,t.value);return null!=i?1!=i?QueryFilters.ebvTrue():QueryFilters.ebvFalse():QueryFilters.ebvError()}return QueryFilters.ebvFalse()},QueryFilters.runAddition=function(e,t,n,r,i,o){var a=QueryFilters.runFilter(e,n,r,i,o);if(QueryFilters.isEbvError(a))return QueryFilters.ebvError();var s=a;if(QueryFilters.isNumeric(a)){for(var l=0;l2)return QueryFilters.ebvError();if(f.value.split("-").length>2)return QueryFilters.ebvError();if(f.value.split("/").length>2)return QueryFilters.ebvError();if(f.value.split("+").length>2)return QueryFilters.ebvError();if(c==a+"decimal"&&(-1!=f.value.indexOf("e")||-1!=f.value.indexOf("E")))return QueryFilters.ebvError();if(!(c!=a+"int"&&c!=a+"integer"||-1==f.value.indexOf("e")&&-1==f.value.indexOf("E")&&-1==f.value.indexOf(".")))return QueryFilters.ebvError();try{return f.value=parseInt(parseFloat(f.value)),isNaN(f.value)?QueryFilters.ebvError():(f.type=c,f)}catch(e){return QueryFilters.ebvError()}}else{if(c==a+"boolean")return"literal"===(f=l[0]).token&&null==f.type?"true"===f.value||"1"===f.value?QueryFilters.ebvTrue():"false"===f.value||"0"===f.value?QueryFilters.ebvFalse():QueryFilters.ebvError():"literal"===f.token?QueryFilters.isEbvError(f)?f:QueryFilters.ebvBoolean(f):QueryFilters.ebvError();if(c==a+"string")return"literal"===(f=l[0]).token?(f=QueryFilters.normalizeLiteralDatatype(f,i,s)).type==a+"integer"||f.type==a+"decimal"||f.type==a+"double"||f.type==a+"nonPositiveInteger"||f.type==a+"negativeInteger"||f.type==a+"long"||f.type==a+"int"||f.type==a+"short"||f.type==a+"byte"||f.type==a+"nonNegativeInteger"||f.type==a+"unsignedLong"||f.type==a+"unsignedInt"||f.type==a+"unsignedShort"||f.type==a+"unsignedByte"||f.type==a+"positiveInteger"||f.type==a+"float"?(f.type=c,f.value=""+f.value,f):f.type==a+"string"?f:f.type==a+"boolean"?(QueryFilters.ebv(f)?(f.type=c,f.value="true"):(f.type=c,f.value="false"),f):f.type==a+"dateTime"||f.type==a+"date"?(f.type=c,"string"!=typeof f.value&&(f.value=r.iso8601(f.value)),f):null==f.type?(f.value=""+f.value,f.type=c,f):QueryFilters.ebvError():"uri"===f.token?{token:"literal",value:r.lexicalFormBaseUri(f,s),type:c,lang:null}:QueryFilters.ebvError();if(c==a+"dateTime"||c==a+"date"){if((f=l[0]).type==a+"dateTime"||f.type==a+"date")return f;if(f.type!=a+"string"&&null!=f.type)return QueryFilters.ebvError();try{return f.value=r.iso8601(r.parseISO8601(f.value)),f.type=c,f}catch(e){return QueryFilters.ebvError()}}else{if(c!=a+"float")return null!=i.customFns[c]?i.customFns[c](QueryFilters,l):QueryFilters.ebvError();var f;if("literal"!==(f=l[0]).token)return QueryFilters.ebvError();if("http://www.w3.org/2001/XMLSchema#decimal"==(f=QueryFilters.normalizeLiteralDatatype(f,i,s)).type||"http://www.w3.org/2001/XMLSchema#int"==f.type)return f.type=c,f.value=parseFloat(f.value),f;if("http://www.w3.org/2001/XMLSchema#boolean"==f.type)return 1==QueryFilters.ebv(f)?(f.type=c,f.value=1):(f.type=c,f.value=0),f;if("http://www.w3.org/2001/XMLSchema#float"==f.type||"http://www.w3.org/2001/XMLSchema#double"==f.type)return f.type=c,f.value=parseFloat(f.value),f;if("http://www.w3.org/2001/XMLSchema#string"==f.type)try{return f.value=parseFloat(f.value),isNaN(f.value)?QueryFilters.ebvError():(f.type=c,f)}catch(e){return QueryFilters.ebvError()}else{if(null!=f.type)return QueryFilters.ebvError();if(f.value.split(".").length>2)return QueryFilters.ebvError();if(f.value.split("-").length>2)return QueryFilters.ebvError();if(f.value.split("/").length>2)return QueryFilters.ebvError();if(f.value.split("+").length>2)return QueryFilters.ebvError();try{return f.value=parseFloat(f.value),isNaN(f.value)?QueryFilters.ebvError():(f.type=c,f)}catch(e){return QueryFilters.ebvError()}}}}},e.exports={QueryFilters:QueryFilters}},VZi1:function(e,t){e.exports=function(){"use strict";function e(t,n,r,i){this.message=t,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),e.buildMessage=function(e,t){var n={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(t=1,r=1;t0&&t[0].length>0&&(n=n.concat(t[0][0].quadsContext),null!=t[0][2]&&null!=t[0][2].triplesContext))for(r=0;r0&&o.push({token:"basicgraphpattern",triplesContext:u}),a=[]}o.push(n[r])}else"triplespattern"===n[r].token?a.push(n[r]):"bind"===n[r].token?l.push(n[r]):s.push(n[r]);if(0!=a.length||0!=s.length){for(u=[],i=0;i0&&o.push({token:"basicgraphpattern",triplesContext:u})}return{token:"groupgraphpattern",patterns:o,filters:s,binds:l}},Gr=Ld("[54] TriplesBlock"),Wr=function(e,t){var n=e.triplesContext;return null!=t&&"object"==typeof t&&null!=t&&null!=t.length&&null!=t[2]&&null!=t[2].triplesContext&&(n=n.concat(t[2].triplesContext)),{token:"triplespattern",triplesContext:n}},Kr=Ld("[53] GraphPatternNotTriples"),Xr=Ld("[54] OptionalGraphPattern"),Zr="OPTIONAL",Yr=Fd("OPTIONAL",!1),$r="optional",Jr=Fd("optional",!1),ei=function(e){return{token:"optionalgraphpattern",value:e}},ti=Ld("[55] GraphGraphPattern"),ni=function(e,t){for(var n=0;n",Ba=Fd(">",!1),Va="<=",Ua=Fd("<=",!1),za=">=",qa=Fd(">=",!1),Qa="I",Ha=Fd("I",!1),Ga="i",Wa=Fd("i",!1),Ka="N",Xa=Fd("N",!1),Za="n",Ya=Fd("n",!1),$a="O",Ja=Fd("O",!1),es="o",ts=Fd("o",!1),ns="T",rs=Fd("T",!1),is="t",os=Fd("t",!1),as=function(e,t){if(0===t.length)return e;if("i"===t[0][1]||"I"===t[0][1]||"n"===t[0][1]||"N"===t[0][1]){var n={};if("i"===t[0][1]||"I"===t[0][1]){var r="=";n.expressionType="conditionalor"}else r="!=",n.expressionType="conditionaland";for(var i=e,o=[],a=0;a0?{token:"literal",value:e.value,lang:t.slice(1),type:null}:null!=t&&"object"==typeof t?(t.shift(),{token:"literal",value:e.value,lang:null,type:t[0]}):{token:"literal",value:e.value,lang:null,type:null}},cc=Ld("[113] NumericLiteral"),fc=Ld("[114] NumericLiteralUnsigned"),hc=Ld("[115] NumericLiteralPositive"),dc=Ld("[116] NumericLiteralNegative"),pc=Ld("[117] BooleanLiteral"),gc="TRUE",mc=Fd("TRUE",!1),vc="true",yc=Fd("true",!1),bc=function(){return{token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#boolean",value:!0}},_c="FALSE",wc=Fd("FALSE",!1),xc="false",kc=Fd("false",!1),Cc=function(){return{token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#boolean",value:!1}},Ec=Ld("[118] String"),Sc=function(e){return{token:"string",value:e}},Tc=Ld("[119] IRIref"),Oc=function(e){return{token:"uri",prefix:null,suffix:null,value:e}},Ac=function(e){return e},Ic=Ld("[120] PrefixedName"),Rc=function(e){return{token:"uri",prefix:e[0],suffix:e[1],value:null}},Pc=function(e){return{token:"uri",prefix:e,suffix:"",value:null}},jc=Ld("[121] BlankNode"),Dc=function(e){return{token:"blank",value:e}},Nc=function(){return{token:"blank",value:"_:"+ ++Tg}},Fc=Ld("[122] IRI_REF"),Mc=/^[^<>"{}|\^`\\]/,Lc=Md(["<",">",'"',"{","}","|","^","`","\\"],!0,!1),Bc=function(e){return e.join("")},Vc=Ld("[123] PNAME_NS"),Uc=":",zc=Fd(":",!1),qc=Ld("[124] PNAME_LN"),Qc=function(e,t){return[e,t]},Hc=Ld("[125] BLANK_NODE_LABEL"),Gc="_:",Wc=Fd("_:",!1),Kc=function(e){return e},Xc=Ld("[126] VAR1"),Zc=function(e){return e},Yc=Ld("[127] VAR2"),$c="$",Jc=Fd("$",!1),ef=Ld("[128] LANGTAG"),tf="@",nf=Fd("@",!1),rf=/^[a-zA-Z]/,of=Md([["a","z"],["A","Z"]],!1,!1),af=/^[a-zA-Z0-9]/,sf=Md([["a","z"],["A","Z"],["0","9"]],!1,!1),lf=function(e,t){return 0===t.length?("@"+e.join("")).toLowerCase():("@"+e.join("")+"-"+t[0][1].join("")).toLowerCase()},uf=Ld("[129] INTEGER"),cf=/^[0-9]/,ff=Md([["0","9"]],!1,!1),hf=function(e){var t={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#integer"};return t.value=Sg(e),t},df=Ld("[130] DECIMAL"),pf=function(e,t,n){var r={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#decimal"};return r.value=Sg([e,t,n]),r},gf=function(e,t){var n={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#decimal"};return n.value=Sg([e,t]),n},mf=Ld("[131] DOUBLE"),vf=function(e,t,n,r){var i={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#double"};return i.value=Sg([e,t,n,r]),i},yf=function(e,t,n){var r={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#double"};return r.value=Sg([e,t,n]),r},bf=function(e,t){var n={token:"literal",lang:null,type:"http://www.w3.org/2001/XMLSchema#double"};return n.value=Sg([e,t]),n},_f=Ld("[132] INTEGER_POSITIVE"),wf=function(e){return e.value="+"+e.value,e},xf=Ld("[133] DECIMAL_POSITIVE"),kf=function(e){return e.value="+"+e.value,e},Cf=Ld("[134] DOUBLE_POSITIVE"),Ef=Ld("[135] INTEGER_NEGATIVE"),Sf=function(e){return e.value="-"+e.value,e},Tf=Ld("[136] DECIMAL_NEGATIVE"),Of=Ld("[137] DOUBLE_NEGATIVE"),Af=Ld("[138] EXPONENT"),If=/^[eE]/,Rf=Md(["e","E"],!1,!1),Pf=/^[+\-]/,jf=Md(["+","-"],!1,!1),Df=function(e,t,n){return Sg([e,t,n])},Nf=Ld("[139] STRING_LITERAL1"),Ff="'",Mf=Fd("'",!1),Lf=/^[^'\\\n\r]/,Bf=Md(["'","\\","\n","\r"],!0,!1),Vf=function(e){return Sg(e)},Uf=Ld("[140] STRING_LITERAL2"),zf='"',qf=Fd('"',!1),Qf=/^[^"\\\n\r]/,Hf=Md(['"',"\\","\n","\r"],!0,!1),Gf=Ld("[141] STRING_LITERAL_LONG1"),Wf="'''",Kf=Fd("'''",!1),Xf=/^[^'\\]/,Zf=Md(["'","\\"],!0,!1),Yf=Ld("[142] STRING_LITERAL_LONG2"),$f='"""',Jf=Fd('"""',!1),eh=/^[^"\\]/,th=Md(['"',"\\"],!0,!1),nh=Ld("[143] ECHAR"),rh="\\",ih=Fd("\\",!1),oh=/^[tbnrf"']/,ah=Md(["t","b","n","r","f",'"',"'"],!1,!1),sh=Ld("[144] NIL"),lh=function(){return{token:"triplesnodecollection",triplesContext:[],chainSubject:[{token:"uri",value:"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"}]}},uh=Ld("[145] WS"),ch=/^[ ]/,fh=Md([" "],!1,!1),hh=/^[\t]/,dh=Md(["\t"],!1,!1),ph=/^[\r]/,gh=Md(["\r"],!1,!1),mh=/^[\n]/,vh=Md(["\n"],!1,!1),yh=Ld(" COMMENT"),bh="#",_h=Fd("#",!1),wh=/^[^\n\r]/,xh=Md(["\n","\r"],!0,!1),kh=Ld("[146] ANON"),Ch=Ld("[147] PN_CHARS_BASE"),Eh=/^[A-Z]/,Sh=Md([["A","Z"]],!1,!1),Th=/^[a-z]/,Oh=Md([["a","z"]],!1,!1),Ah=/^[\xC0-\xD6]/,Ih=Md([["\xc0","\xd6"]],!1,!1),Rh=/^[\xD8-\xF6]/,Ph=Md([["\xd8","\xf6"]],!1,!1),jh=/^[\xF8-\u02FF]/,Dh=Md([["\xf8","\u02ff"]],!1,!1),Nh=/^[\u0370-\u037D]/,Fh=Md([["\u0370","\u037d"]],!1,!1),Mh=/^[\u037F-\u1FFF]/,Lh=Md([["\u037f","\u1fff"]],!1,!1),Bh=/^[\u200C-\u200D]/,Vh=Md([["\u200c","\u200d"]],!1,!1),Uh=/^[\u2070-\u218F]/,zh=Md([["\u2070","\u218f"]],!1,!1),qh=/^[\u2C00-\u2FEF]/,Qh=Md([["\u2c00","\u2fef"]],!1,!1),Hh=/^[\u3001-\uD7FF]/,Gh=Md([["\u3001","\ud7ff"]],!1,!1),Wh=/^[\uF900-\uFDCF]/,Kh=Md([["\uf900","\ufdcf"]],!1,!1),Xh=/^[\uFDF0-\uFFFD]/,Zh=Md([["\ufdf0","\ufffd"]],!1,!1),Yh=/^[\u1000-\uEFFF]/,$h=Md([["\u1000","\uefff"]],!1,!1),Jh=Ld("[148] PN_CHARS_U"),ed="_",td=Fd("_",!1),nd=Ld("[149] VARNAME"),rd=/^[\xB7]/,id=Md(["\xb7"],!1,!1),od=/^[\u0300-\u036F]/,ad=Md([["\u0300","\u036f"]],!1,!1),sd=/^[\u203F-\u2040]/,ld=Md([["\u203f","\u2040"]],!1,!1),ud=function(e,t){return e+t.join("")},cd=Ld("[150] PN_CHARS"),fd=Ld("[151] PN_PREFIX"),hd=function(e,t){if("."==t[t.length-1])throw new Error("Wrong PN_PREFIX, cannot finish with '.'");return e+t.join("")},dd=Ld("[152] PN_LOCAL"),pd=function(e,t){return e+(t||[]).join("")},gd=Ld("[170] PLX"),md=Ld("[171] PERCENT"),vd="%",yd=Fd("%",!1),bd=function(e){return e.join("")},_d=Ld("[172] HEX"),wd=/^[A-F]/,xd=Md([["A","F"]],!1,!1),kd=/^[a-f]/,Cd=Md([["a","f"]],!1,!1),Ed=Ld("[173] PN_LOCAL_ESC"),Sd="~",Td=Fd("~",!1),Od="&",Ad=Fd("&",!1),Id=function(e){return"\\"+e},Rd=0,Pd=[{line:1,column:1}],jd=0,Dd=[],Nd=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Fd(e,t){return{type:"literal",text:e,ignoreCase:t}}function Md(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Ld(e){return{type:"other",description:e}}function Bd(e){var n,r=Pd[e];if(r)return r;for(n=e-1;!Pd[n];)n--;for(r={line:(r=Pd[n]).line,column:r.column};njd&&(jd=Rd,Dd=[]),Dd.push(e))}function Ud(){return function(){var e;return(e=function(){var e;return Nd++,e=function(){var e,n,r,o;return Nd++,e=Rd,(n=zd())!==i?((r=function(){var e,n,r,o,a,s,l,u,c,f;if(Nd++,e=Rd,(n=Qd())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){for(o=[],a=Hd();a!==i;)o.push(a),a=Hd();if(o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=Wd())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=Kd())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=function(){var e,n,r,o,a,s,l,u,c;if(Nd++,e=Rd,t.substr(Rd,8)===Lt?(n=Lt,Rd+=8):(n=i,0===Nd&&Vd(Bt)),n!==i){for(r=[],o=Up();o!==i;)r.push(o),o=Up();if(r!==i)if(123===t.charCodeAt(Rd)?(o=le,Rd++):(o=i,0===Nd&&Vd(ue)),o!==i){if(a=[],s=Rd,40===t.charCodeAt(Rd)?(l=U,Rd++):(l=i,0===Nd&&Vd(z)),l!==i){if(u=[],(c=ep())!==i)for(;c!==i;)u.push(c),c=ep();else u=i;u!==i?(41===t.charCodeAt(Rd)?(c=W,Rd++):(c=i,0===Nd&&Vd(K)),c!==i?s=l=[l,u,c]:(Rd=s,s=i)):(Rd=s,s=i)}else Rd=s,s=i;for(s===i&&(s=cg());s!==i;){if(a.push(s),s=Rd,40===t.charCodeAt(Rd)?(l=U,Rd++):(l=i,0===Nd&&Vd(z)),l!==i){if(u=[],(c=ep())!==i)for(;c!==i;)u.push(c),c=ep();else u=i;u!==i?(41===t.charCodeAt(Rd)?(c=W,Rd++):(c=i,0===Nd&&Vd(K)),c!==i?s=l=[l,u,c]:(Rd=s,s=i)):(Rd=s,s=i)}else Rd=s,s=i;s===i&&(s=cg())}a!==i?(125===t.charCodeAt(Rd)?(s=ce,Rd++):(s=i,0===Nd&&Vd(fe)),s!==i?e=n=[n,r,o,a,s]:(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return e===i&&(e=null),Nd--,e===i&&(n=i,0===Nd&&Vd(Mt)),e}())!==i?e=n=E(n,o,s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(C)),e}())===i&&(r=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,9)===J?(r=J,Rd+=9):(r=i,0===Nd&&Vd(ee)),r===i&&(t.substr(Rd,9)===te?(r=te,Rd+=9):(r=i,0===Nd&&Vd(ne))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,123===t.charCodeAt(Rd)?(n=le,Rd++):(n=i,0===Nd&&Vd(ue)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=function e(){var n,r,o,a,s,l,u;if(Nd++,n=Rd,(r=bp())!==i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(46===t.charCodeAt(Rd)?(s=Nr,Rd++):(s=i,0===Nd&&Vd(Fr)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?((u=e())===i&&(u=null),u!==i?o=a=[a,s,l,u]:(Rd=o,o=i)):(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;o===i&&(o=null),o!==i?n=r=$i(r,o):(Rd=n,n=i)}else Rd=n,n=i;return Nd--,n===i&&(r=i,0===Nd&&Vd(Yi)),n}())===i&&(o=null),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?(125===t.charCodeAt(Rd)?(s=ce,Rd++):(s=i,0===Nd&&Vd(fe)),s!==i?e=n=Zi(o):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Xi)),e}())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i){for(l=[],u=Hd();u!==i;)l.push(u),u=Hd();if(l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if((c=Wd())!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();f!==i&&(h=Kd())!==i?e=n=re(a,l,c,h):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,9)===J?(r=J,Rd+=9):(r=i,0===Nd&&Vd(ee)),r===i&&(t.substr(Rd,9)===te?(r=te,Rd+=9):(r=i,0===Nd&&Vd(ne))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i){for(a=[],s=Hd();s!==i;)a.push(s),s=Hd();if(a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(t.substr(Rd,5)===ie?(l=ie,Rd+=5):(l=i,0===Nd&&Vd(oe)),l===i&&(t.substr(Rd,5)===ae?(l=ae,Rd+=5):(l=i,0===Nd&&Vd(se))),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if(123===t.charCodeAt(Rd)?(c=le,Rd++):(c=i,0===Nd&&Vd(ue)),c!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();if(f!==i)if((h=up())===i&&(h=null),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();if(d!==i)if(125===t.charCodeAt(Rd)?(p=ce,Rd++):(p=i,0===Nd&&Vd(fe)),p!==i){for(g=[],m=fg();m!==i;)g.push(m),m=fg();g!==i&&(m=Kd())!==i?e=n=he(a,h,m):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}return Nd--,e===i&&(n=i,0===Nd&&Vd($)),e}())===i&&(r=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,8)===pe?(n=pe,Rd+=8):(n=i,0===Nd&&Vd(ge)),n!==i){if(r=[],(o=Vp())!==i)for(;o!==i;)r.push(o),o=Vp();else r=i;if(r===i&&(42===t.charCodeAt(Rd)?(r=X,Rd++):(r=i,0===Nd&&Vd(Z))),r!==i){for(o=[],a=Hd();a!==i;)o.push(a),a=Hd();o!==i?((a=Wd())===i&&(a=null),a!==i&&(s=Kd())!==i?e=n=[n,r,o,a,s]:(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(de)),e}())===i&&(r=function(){var e,n,r,o,a,s,l;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,3)===ve?(r=ve,Rd+=3):(r=i,0===Nd&&Vd(ye)),r===i&&(t.substr(Rd,3)===be?(r=be,Rd+=3):(r=i,0===Nd&&Vd(_e))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i){for(a=[],s=Hd();s!==i;)a.push(s),s=Hd();if(a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();s!==i&&(l=Wd())!==i?e=n=we(a,l):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(me)),e}()),r!==i&&(o=function(){var e,n,r,o;return Nd++,n=Rd,t.substr(Rd,6)===Qt?(r=Qt,Rd+=6):(r=i,0===Nd&&Vd(Ht)),r===i&&(t.substr(Rd,6)===Gt?(r=Gt,Rd+=6):(r=i,0===Nd&&Vd(Wt))),r!==i&&(o=pp())!==i?n=r=[r,o]:(Rd=n,n=i),n===i&&(n=null),n!==i&&(n=Kt(n)),Nd--,(e=n)===i&&(n=i,0===Nd&&Vd(qt)),e}())!==i?e=n=u(n,r,o):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(l)),e}(),Nd--,e===i&&0===Nd&&Vd(s),e}())===i&&(e=function(){var e;return Nd++,e=function e(){var n,r,o,a,s,l,u,c,f;if(Nd++,n=Rd,(r=zd())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=function(){var e;return Nd++,(e=function(){var e,n,r,o,a,s,l,u,c;if(Nd++,e=Rd,t.substr(Rd,4)===nn?(n=nn,Rd+=4):(n=i,0===Nd&&Vd(rn)),n===i&&(t.substr(Rd,4)===on?(n=on,Rd+=4):(n=i,0===Nd&&Vd(an))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=ng())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){if(s=Rd,t.substr(Rd,4)===sn?(l=sn,Rd+=4):(l=i,0===Nd&&Vd(ln)),l===i&&(t.substr(Rd,4)===un?(l=un,Rd+=4):(l=i,0===Nd&&Vd(cn))),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i&&(c=rp())!==i?s=l=[l,u,c]:(Rd=s,s=i)}else Rd=s,s=i;s===i&&(s=null),s!==i?e=n=fn(o,s):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(tn)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,5)===dn?(n=dn,Rd+=5):(n=i,0===Nd&&Vd(pn)),n===i&&(t.substr(Rd,5)===gn?(n=gn,Rd+=5):(n=i,0===Nd&&Vd(mn))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,6)===vn?(o=vn,Rd+=6):(o=i,0===Nd&&Vd(yn)),o===i&&(t.substr(Rd,6)===bn?(o=bn,Rd+=6):(o=i,0===Nd&&Vd(_n))),o===i&&(o=null),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=ip())!==i?e=n=wn(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(hn)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,4)===kn?(n=kn,Rd+=4):(n=i,0===Nd&&Vd(Cn)),n===i&&(t.substr(Rd,4)===En?(n=En,Rd+=4):(n=i,0===Nd&&Vd(Sn))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,6)===vn?(o=vn,Rd+=6):(o=i,0===Nd&&Vd(yn)),o===i&&(t.substr(Rd,6)===bn?(o=bn,Rd+=6):(o=i,0===Nd&&Vd(_n))),o===i&&(o=null),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=ip())!==i?e=n=Tn(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(xn)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,6)===An?(n=An,Rd+=6):(n=i,0===Nd&&Vd(In)),n===i&&(t.substr(Rd,6)===Rn?(n=Rn,Rd+=6):(n=i,0===Nd&&Vd(Pn))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,6)===vn?(o=vn,Rd+=6):(o=i,0===Nd&&Vd(yn)),o===i&&(t.substr(Rd,6)===bn?(o=bn,Rd+=6):(o=i,0===Nd&&Vd(_n))),o===i&&(o=null),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=rp())!==i?e=n=jn(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(On)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,6)===Nn?(n=Nn,Rd+=6):(n=i,0===Nd&&Vd(Fn)),n===i&&(t.substr(Rd,6)===Mn?(n=Mn,Rd+=6):(n=i,0===Nd&&Vd(Ln))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,4)===Bn?(o=Bn,Rd+=4):(o=i,0===Nd&&Vd(Vn)),o===i&&(t.substr(Rd,4)===Un?(o=Un,Rd+=4):(o=i,0===Nd&&Vd(zn))),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=ap())!==i?e=n=qn(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Dn)),e}())===i&&(e=function(){var e,n,r,o,a;if(Nd++,e=Rd,t.substr(Rd,6)===Hn?(n=Hn,Rd+=6):(n=i,0===Nd&&Vd(Gn)),n===i&&(t.substr(Rd,6)===Wn?(n=Wn,Rd+=6):(n=i,0===Nd&&Vd(Kn))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i?(t.substr(Rd,4)===Bn?(o=Bn,Rd+=4):(o=i,0===Nd&&Vd(Vn)),o===i&&(t.substr(Rd,4)===Un?(o=Un,Rd+=4):(o=i,0===Nd&&Vd(zn))),o!==i&&(a=ap())!==i?e=n=Xn(a):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Qn)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,6)===Hn?(n=Hn,Rd+=6):(n=i,0===Nd&&Vd(Gn)),n===i&&(t.substr(Rd,6)===Wn?(n=Wn,Rd+=6):(n=i,0===Nd&&Vd(Kn))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,5)===ie?(o=ie,Rd+=5):(o=i,0===Nd&&Vd(oe)),o===i&&(t.substr(Rd,5)===ae?(o=ae,Rd+=5):(o=i,0===Nd&&Vd(se))),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=cp())!==i?e=n=Yn(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Zn)),e}())===i&&(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d;if(Nd++,e=Rd,n=Rd,t.substr(Rd,4)===Jn?(r=Jn,Rd+=4):(r=i,0===Nd&&Vd(er)),r===i&&(t.substr(Rd,4)===tr?(r=tr,Rd+=4):(r=i,0===Nd&&Vd(nr))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=ng())!==i?n=r=[r,o,a]:(Rd=n,n=i)}else Rd=n,n=i;if(n===i&&(n=null),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){if(o=Rd,(a=function(){var e,n,r;return Nd++,e=Rd,t.substr(Rd,6)===Hn?(n=Hn,Rd+=6):(n=i,0===Nd&&Vd(Gn)),n===i&&(t.substr(Rd,6)===Wn?(n=Wn,Rd+=6):(n=i,0===Nd&&Vd(Kn))),n!==i&&(r=op())!==i?e=n=or(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(ir)),e}())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();s!==i?((l=tp())===i&&(l=null),l!==i?o=a=[a,s,l]:(Rd=o,o=i)):(Rd=o,o=i)}else Rd=o,o=i;if(o===i&&(o=tp()),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){for(s=[],l=np();l!==i;)s.push(l),l=np();if(s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(t.substr(Rd,5)===ie?(u=ie,Rd+=5):(u=i,0===Nd&&Vd(oe)),u===i&&(t.substr(Rd,5)===ae?(u=ae,Rd+=5):(u=i,0===Nd&&Vd(se))),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=cp())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=rr(n,o,s,f):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd($n)),e}()),Nd--,e===i&&0===Nd&&Vd(en),e}())!==i){for(s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?((f=e())===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)):(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i;s===i&&(s=null),s!==i?n=r=Jt(r,a,s):(Rd=n,n=i)}else Rd=n,n=i;else Rd=n,n=i}else Rd=n,n=i;return Nd--,n===i&&(r=i,0===Nd&&Vd(Zt)),n}(),Nd--,e===i&&0===Nd&&Vd(Xt),e}()),e}()}function zd(){var e,n,r,o,a;if(Nd++,e=Rd,(n=function(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,4)===d?(r=d,Rd+=4):(r=i,0===Nd&&Vd(p)),r===i&&(t.substr(Rd,4)===g?(r=g,Rd+=4):(r=i,0===Nd&&Vd(m))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=rg())!==i?e=n=v(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(h)),e}())===i&&(n=null),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){for(o=[],a=qd();a!==i;)o.push(a),a=qd();o!==i?e=n=f(n,o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(c)),e}function qd(){var e,n,r,o,a,s,l;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,6)===b?(r=b,Rd+=6):(r=i,0===Nd&&Vd(_)),r===i&&(t.substr(Rd,6)===w?(r=w,Rd+=6):(r=i,0===Nd&&Vd(x))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=ig())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();s!==i&&(l=rg())!==i?e=n=k(a,l):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(y)),e}function Qd(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m,v,y,b,_,w;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,6)===A?(r=A,Rd+=6):(r=i,0===Nd&&Vd(I)),r===i&&(t.substr(Rd,6)===R?(r=R,Rd+=6):(r=i,0===Nd&&Vd(P))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(t.substr(Rd,8)===j?(a=j,Rd+=8):(a=i,0===Nd&&Vd(D)),a===i&&(t.substr(Rd,8)===N?(a=N,Rd+=8):(a=i,0===Nd&&Vd(F))),a===i&&(t.substr(Rd,7)===M?(a=M,Rd+=7):(a=i,0===Nd&&Vd(L)),a===i&&(t.substr(Rd,7)===B?(a=B,Rd+=7):(a=i,0===Nd&&Vd(V)))),a===i&&(a=null),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i){for(l=[],u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=Up())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?u=c=[c,f,h]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i;if(u===i){for(u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(40===t.charCodeAt(Rd)?(f=U,Rd++):(f=i,0===Nd&&Vd(z)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i)if((d=zp())!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if(t.substr(Rd,2)===q?(g=q,Rd+=2):(g=i,0===Nd&&Vd(Q)),g===i&&(t.substr(Rd,2)===H?(g=H,Rd+=2):(g=i,0===Nd&&Vd(G))),g!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();if(m!==i)if((v=Up())!==i){for(y=[],b=fg();b!==i;)y.push(b),b=fg();if(y!==i)if(41===t.charCodeAt(Rd)?(b=W,Rd++):(b=i,0===Nd&&Vd(K)),b!==i){for(_=[],w=fg();w!==i;)_.push(w),w=fg();_!==i?u=c=[c,f,h,d,p,g,m,v,y,b,_]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}if(u!==i)for(;u!==i;){for(l.push(u),u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=Up())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?u=c=[c,f,h]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i;if(u===i){for(u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(40===t.charCodeAt(Rd)?(f=U,Rd++):(f=i,0===Nd&&Vd(z)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i)if((d=zp())!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if(t.substr(Rd,2)===q?(g=q,Rd+=2):(g=i,0===Nd&&Vd(Q)),g===i&&(t.substr(Rd,2)===H?(g=H,Rd+=2):(g=i,0===Nd&&Vd(G))),g!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();if(m!==i)if((v=Up())!==i){for(y=[],b=fg();b!==i;)y.push(b),b=fg();if(y!==i)if(41===t.charCodeAt(Rd)?(b=W,Rd++):(b=i,0===Nd&&Vd(K)),b!==i){for(_=[],w=fg();w!==i;)_.push(w),w=fg();_!==i?u=c=[c,f,h,d,p,g,m,v,y,b,_]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i}}else l=i;if(l===i){for(l=Rd,u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if(42===t.charCodeAt(Rd)?(c=X,Rd++):(c=i,0===Nd&&Vd(Z)),c!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();f!==i?l=u=[u,c,f]:(Rd=l,l=i)}else Rd=l,l=i;else Rd=l,l=i}l!==i?e=n=Y(a,l):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(O)),e}function Hd(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,4)===ke?(n=ke,Rd+=4):(n=i,0===Nd&&Vd(Ce)),n===i&&(t.substr(Rd,4)===Ee?(n=Ee,Rd+=4):(n=i,0===Nd&&Vd(Se))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=function(){var e,t,n;for(Nd++,e=Rd,t=[],n=fg();n!==i;)t.push(n),n=fg();return t!==i&&(n=Gd())!==i?e=t=Ae(n):(Rd=e,e=i),Nd--,e===i&&(t=i,0===Nd&&Vd(Oe)),e}())===i&&(o=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,5)===Re?(n=Re,Rd+=5):(n=i,0===Nd&&Vd(Pe)),n===i&&(t.substr(Rd,5)===je?(n=je,Rd+=5):(n=i,0===Nd&&Vd(De))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=Gd())!==i?e=n=Ne(o):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Ie)),e}()),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?e=n=Te(o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(xe)),e}function Gd(){var e;return Nd++,e=ng(),Nd--,e===i&&0===Nd&&Vd(Fe),e}function Wd(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,5)===ie?(n=ie,Rd+=5):(n=i,0===Nd&&Vd(oe)),n===i&&(t.substr(Rd,5)===ae?(n=ae,Rd+=5):(n=i,0===Nd&&Vd(se))),n===i&&(n=null),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=cp())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?e=n=Le(o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Me)),e}function Kd(){var e,n,r,o,a;return Nd++,e=Rd,(n=function(){var e,n,r,o,a,s,l;if(Nd++,e=Rd,t.substr(Rd,5)===ze?(n=ze,Rd+=5):(n=i,0===Nd&&Vd(qe)),n===i&&(t.substr(Rd,5)===Qe?(n=Qe,Rd+=5):(n=i,0===Nd&&Vd(He))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,2)===Ge?(o=Ge,Rd+=2):(o=i,0===Nd&&Vd(We)),o===i&&(t.substr(Rd,2)===Ke?(o=Ke,Rd+=2):(o=i,0===Nd&&Vd(Xe))),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){if(s=[],(l=Xd())!==i)for(;l!==i;)s.push(l),l=Xd();else s=i;s!==i?e=n=Ze(s):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Ue)),e}())===i&&(n=null),n!==i?((r=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,6)===rt?(n=rt,Rd+=6):(n=i,0===Nd&&Vd(it)),n!==i){if(r=[],(o=Zd())!==i)for(;o!==i;)r.push(o),o=Zd();else r=i;r!==i?e=n=[n,r]:(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(nt)),e}())===i&&(r=null),r!==i?((o=function(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,t.substr(Rd,5)===st?(n=st,Rd+=5):(n=i,0===Nd&&Vd(lt)),n===i&&(t.substr(Rd,5)===ut?(n=ut,Rd+=5):(n=i,0===Nd&&Vd(ct))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,2)===Ge?(o=Ge,Rd+=2):(o=i,0===Nd&&Vd(We)),o===i&&(t.substr(Rd,2)===Ke?(o=Ke,Rd+=2):(o=i,0===Nd&&Vd(Xe))),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){if(s=[],(l=Yd())!==i)for(;l!==i;)s.push(l),l=Yd();else s=i;if(s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?e=n=ft(s):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(at)),e}())===i&&(o=null),o!==i?((a=function(){var e,t,n,r;return Nd++,t=Rd,(n=$d())!==i?((r=Jd())===i&&(r=null),r!==i?t=n=[n,r]:(Rd=t,t=i)):(Rd=t,t=i),t===i&&(t=Rd,(n=Jd())!==i?((r=$d())===i&&(r=null),r!==i?t=n=[n,r]:(Rd=t,t=i)):(Rd=t,t=i)),t!==i&&(t=Ct(t)),Nd--,(e=t)===i&&(t=i,0===Nd&&Vd(kt)),e}())===i&&(a=null),a!==i?e=n=Ve(n,o,a):(Rd=e,e=i)):(Rd=e,e=i)):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Be)),e}function Xd(){var e,n,r,o,a,s,l,u,c,f,h;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Zp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?e=n=$e(r):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=mp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?e=n=Je(r):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(40===t.charCodeAt(Rd)?(r=U,Rd++):(r=i,0===Nd&&Vd(z)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=zp())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i){if(l=Rd,t.substr(Rd,2)===q?(u=q,Rd+=2):(u=i,0===Nd&&Vd(Q)),u===i&&(t.substr(Rd,2)===H?(u=H,Rd+=2):(u=i,0===Nd&&Vd(G))),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=Up())!==i?l=u=[u,c,f]:(Rd=l,l=i)}else Rd=l,l=i;if(l===i&&(l=null),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if(41===t.charCodeAt(Rd)?(c=W,Rd++):(c=i,0===Nd&&Vd(K)),c!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();f!==i?e=n=et(a,l):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Up())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?e=n=tt(r):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}}}return Nd--,e===i&&(n=i,0===Nd&&Vd(Ye)),e}function Zd(){var e;return Nd++,e=dp(),Nd--,e===i&&0===Nd&&Vd(ot),e}function Yd(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,3)===dt?(n=dt,Rd+=3):(n=i,0===Nd&&Vd(pt)),n===i&&(t.substr(Rd,3)===gt?(n=gt,Rd+=3):(n=i,0===Nd&&Vd(mt)),n===i&&(t.substr(Rd,4)===vt?(n=vt,Rd+=4):(n=i,0===Nd&&Vd(yt)),n===i&&(t.substr(Rd,4)===bt?(n=bt,Rd+=4):(n=i,0===Nd&&Vd(_t))))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=Xp())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?e=n=wt(n,o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i)if(e=Rd,(n=dp())===i&&(n=Up()),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i?e=n=xt(n):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ht)),e}function $d(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,5)===St?(n=St,Rd+=5):(n=i,0===Nd&&Vd(Tt)),n===i&&(t.substr(Rd,5)===Ot?(n=Ot,Rd+=5):(n=i,0===Nd&&Vd(At))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=og())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?e=n=It(o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Et)),e}function Jd(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,6)===Pt?(n=Pt,Rd+=6):(n=i,0===Nd&&Vd(jt)),n===i&&(t.substr(Rd,6)===Dt?(n=Dt,Rd+=6):(n=i,0===Nd&&Vd(Nt))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=og())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?e=n=Ft(o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Rt)),e}function ep(){var e;return Nd++,(e=ng())===i&&(e=Yp())===i&&(e=$p())===i&&(e=eg())===i&&(t.substr(Rd,5)===Ut?(e=Ut,Rd+=5):(e=i,0===Nd&&Vd(zt))),Nd--,e===i&&0===Nd&&Vd(Vt),e}function tp(){var e,n,r;return Nd++,e=Rd,t.substr(Rd,6)===Nn?(n=Nn,Rd+=6):(n=i,0===Nd&&Vd(Fn)),n===i&&(t.substr(Rd,6)===Mn?(n=Mn,Rd+=6):(n=i,0===Nd&&Vd(Ln))),n!==i&&(r=op())!==i?e=n=or(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(ar)),e}function np(){var e,n,r,o,a,s,l,u;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,5)===lr?(r=lr,Rd+=5):(r=i,0===Nd&&Vd(ur)),r===i&&(t.substr(Rd,5)===cr?(r=cr,Rd+=5):(r=i,0===Nd&&Vd(fr))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i){if((a=ng())===i)if(a=Rd,t.substr(Rd,5)===Re?(s=Re,Rd+=5):(s=i,0===Nd&&Vd(Pe)),s===i&&(t.substr(Rd,5)===je?(s=je,Rd+=5):(s=i,0===Nd&&Vd(De))),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=ng())!==i?a=s=[s,l,u]:(Rd=a,a=i)}else Rd=a,a=i;a!==i?e=n=hr(a):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(sr)),e}function rp(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,5)===pr?(n=pr,Rd+=5):(n=i,0===Nd&&Vd(gr)),n===i&&(t.substr(Rd,5)===mr?(n=mr,Rd+=5):(n=i,0===Nd&&Vd(vr))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=ng())!==i?e=n=yr(o):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(dr)),e}function ip(){var e,n;return Nd++,e=Rd,(n=rp())!==i&&(n=Le(n)),(e=n)===i&&(e=Rd,t.substr(Rd,7)===_r?(n=_r,Rd+=7):(n=i,0===Nd&&Vd(wr)),n===i&&(t.substr(Rd,7)===xr?(n=xr,Rd+=7):(n=i,0===Nd&&Vd(kr))),n!==i&&(n=Cr()),(e=n)===i&&(e=Rd,t.substr(Rd,5)===Re?(n=Re,Rd+=5):(n=i,0===Nd&&Vd(Pe)),n===i&&(t.substr(Rd,5)===je?(n=je,Rd+=5):(n=i,0===Nd&&Vd(De))),n!==i&&(n=Er()),(e=n)===i&&(e=Rd,t.substr(Rd,3)===Sr?(n=Sr,Rd+=3):(n=i,0===Nd&&Vd(Tr)),n===i&&(t.substr(Rd,3)===Or?(n=Or,Rd+=3):(n=i,0===Nd&&Vd(Ar))),n!==i&&(n=Ir()),e=n))),Nd--,e===i&&(n=i,0===Nd&&Vd(br)),e}function op(){var e,n,r,o,a,s,l,u,c;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(123===t.charCodeAt(Rd)?(r=le,Rd++):(r=i,0===Nd&&Vd(ue)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=sp())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(125===t.charCodeAt(Rd)?(l=ce,Rd++):(l=i,0===Nd&&Vd(fe)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?e=n=Pr(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Rr)),e}function ap(){var e,n,r,o,a,s,l,u,c;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(123===t.charCodeAt(Rd)?(r=le,Rd++):(r=i,0===Nd&&Vd(ue)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=sp())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(125===t.charCodeAt(Rd)?(l=ce,Rd++):(l=i,0===Nd&&Vd(fe)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?e=n=Pr(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(jr)),e}function sp(){var e,n,r,o,a,s,l;if(Nd++,e=Rd,(n=up())===i&&(n=null),n!==i){for(r=[],o=Rd,(a=lp())!==i?(46===t.charCodeAt(Rd)?(s=Nr,Rd++):(s=i,0===Nd&&Vd(Fr)),s===i&&(s=null),s!==i?((l=up())===i&&(l=null),l!==i?o=a=[a,s,l]:(Rd=o,o=i)):(Rd=o,o=i)):(Rd=o,o=i);o!==i;)r.push(o),o=Rd,(a=lp())!==i?(46===t.charCodeAt(Rd)?(s=Nr,Rd++):(s=i,0===Nd&&Vd(Fr)),s===i&&(s=null),s!==i?((l=up())===i&&(l=null),l!==i?o=a=[a,s,l]:(Rd=o,o=i)):(Rd=o,o=i)):(Rd=o,o=i);r!==i?e=n=Mr(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Dr)),e}function lp(){var e,n,r,o,a,s,l,u,c,f,h,d,p;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,5)===pr?(r=pr,Rd+=5):(r=i,0===Nd&&Vd(gr)),r===i&&(t.substr(Rd,5)===mr?(r=mr,Rd+=5):(r=i,0===Nd&&Vd(vr))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=Vp())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(123===t.charCodeAt(Rd)?(l=le,Rd++):(l=i,0===Nd&&Vd(ue)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if((c=up())===i&&(c=null),c!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();if(f!==i)if(125===t.charCodeAt(Rd)?(h=ce,Rd++):(h=i,0===Nd&&Vd(fe)),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i?e=n=Br(a,c):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Lr)),e}function up(){var e,n,r,o,a,s,l;if(Nd++,e=Rd,(n=bp())!==i){for(r=Rd,o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(46===t.charCodeAt(Rd)?(a=Nr,Rd++):(a=i,0===Nd&&Vd(Fr)),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();s!==i?((l=up())===i&&(l=null),l!==i?r=o=[o,a,s,l]:(Rd=r,r=i)):(Rd=r,r=i)}else Rd=r,r=i;else Rd=r,r=i;r===i&&(r=null),r!==i?e=n=Ur(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Vr)),e}function cp(){var e,n,r,o,a,s;if(Nd++,e=Rd,123===t.charCodeAt(Rd)?(n=le,Rd++):(n=i,0===Nd&&Vd(ue)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=function(){var e,t,n,r;return Nd++,e=Rd,(t=Qd())!==i&&(n=Wd())!==i&&(r=Kd())!==i?e=t=T(t,n,r):(Rd=e,e=i),Nd--,e===i&&(t=i,0===Nd&&Vd(S)),e}())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?(125===t.charCodeAt(Rd)?(s=ce,Rd++):(s=i,0===Nd&&Vd(fe)),s!==i?e=n=qr(o):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i)if(e=Rd,123===t.charCodeAt(Rd)?(n=le,Rd++):(n=i,0===Nd&&Vd(ue)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=function(){var e,n,r,o,a,s,l,u,c,f;if(Nd++,e=Rd,(n=fp())===i&&(n=null),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){if(o=[],a=Rd,(s=hp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(46===t.charCodeAt(Rd)?(u=Nr,Rd++):(u=i,0===Nd&&Vd(Fr)),u===i&&(u=null),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?((f=fp())===i&&(f=null),f!==i?a=s=[s,l,u,c,f]:(Rd=a,a=i)):(Rd=a,a=i)}else Rd=a,a=i;else Rd=a,a=i}else Rd=a,a=i;for(;a!==i;)if(o.push(a),a=Rd,(s=hp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(46===t.charCodeAt(Rd)?(u=Nr,Rd++):(u=i,0===Nd&&Vd(Fr)),u===i&&(u=null),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?((f=fp())===i&&(f=null),f!==i?a=s=[s,l,u,c,f]:(Rd=a,a=i)):(Rd=a,a=i)}else Rd=a,a=i;else Rd=a,a=i}else Rd=a,a=i;o!==i?e=n=Hr(n,o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Qr)),e}())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?(125===t.charCodeAt(Rd)?(s=ce,Rd++):(s=i,0===Nd&&Vd(fe)),s!==i?e=n=qr(o):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(zr)),e}function fp(){var e,n,r,o,a,s;if(Nd++,e=Rd,(n=function(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Bp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=Sp())!==i?e=n=bo(r,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Np())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=function(){var e;return Nd++,(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p;if(Nd++,e=Rd,(n=Tp())===i&&(n=Op()),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=wp())!==i){for(a=[],s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i){if(f=Rd,(h=Tp())===i&&(h=Op()),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=xp())!==i?f=h=[h,d,p]:(Rd=f,f=i)}else Rd=f,f=i;f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i}else Rd=s,s=i;else Rd=s,s=i;for(;s!==i;){for(a.push(s),s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i){if(f=Rd,(h=Tp())===i&&(h=Op()),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=xp())!==i?f=h=[h,d,p]:(Rd=f,f=i)}else Rd=f,f=i;f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i}else Rd=s,s=i;else Rd=s,s=i}a!==i?e=n=ro(n,o,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(no)),e}())===i&&(e=null),Nd--,e===i&&0===Nd&&Vd(ko),e}())!==i?e=n=_o(r,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}return Nd--,e===i&&(n=i,0===Nd&&Vd(yo)),e}())!==i){for(r=Rd,o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?(46===t.charCodeAt(Rd)?(a=Nr,Rd++):(a=i,0===Nd&&Vd(Fr)),a!==i?((s=fp())===i&&(s=null),s!==i?r=o=[o,a,s]:(Rd=r,r=i)):(Rd=r,r=i)):(Rd=r,r=i),r===i&&(r=null),r!==i?e=n=Wr(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Gr)),e}function hp(){var e;return Nd++,(e=function(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=cp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,5)===pi?(s=pi,Rd+=5):(s=i,0===Nd&&Vd(gi)),s===i&&(t.substr(Rd,5)===mi?(s=mi,Rd+=5):(s=i,0===Nd&&Vd(vi))),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=cp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,5)===pi?(s=pi,Rd+=5):(s=i,0===Nd&&Vd(gi)),s===i&&(t.substr(Rd,5)===mi?(s=mi,Rd+=5):(s=i,0===Nd&&Vd(vi))),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=cp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}r!==i?e=n=yi(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(di)),e}())===i&&(e=function(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,8)===Zr?(r=Zr,Rd+=8):(r=i,0===Nd&&Vd(Yr)),r===i&&(t.substr(Rd,8)===$r?(r=$r,Rd+=8):(r=i,0===Nd&&Vd(Jr))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=cp())!==i?e=n=ei(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Xr)),e}())===i&&(e=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,5)===li?(n=li,Rd+=5):(n=i,0===Nd&&Vd(ui)),n===i&&(t.substr(Rd,5)===ci?(n=ci,Rd+=5):(n=i,0===Nd&&Vd(fi))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=cp())!==i?e=n=hi(o):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(si)),e}())===i&&(e=function(){var e,n,r,o,a,s,l;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,5)===pr?(r=pr,Rd+=5):(r=i,0===Nd&&Vd(gr)),r===i&&(t.substr(Rd,5)===mr?(r=mr,Rd+=5):(r=i,0===Nd&&Vd(vr))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=Vp())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();s!==i&&(l=cp())!==i?e=n=ni(a,l):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ti)),e}())===i&&(e=function(){var e,n,r,o;return Nd++,e=Rd,t.substr(Rd,7)===ii?(n=ii,Rd+=7):(n=i,0===Nd&&Vd(oi)),n!==i&&(r=Vp())!==i&&(o=cp())!==i?e=n=ai(r,o):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(ri)),e}())===i&&(e=function(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,6)===_i?(r=_i,Rd+=6):(r=i,0===Nd&&Vd(wi)),r===i&&(t.substr(Rd,6)===xi?(r=xi,Rd+=6):(r=i,0===Nd&&Vd(ki))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=dp())!==i?e=n=Ci(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(bi)),e}())===i&&(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,4)===Si?(r=Si,Rd+=4):(r=i,0===Nd&&Vd(Ti)),r===i&&(t.substr(Rd,4)===Oi?(r=Oi,Rd+=4):(r=i,0===Nd&&Vd(Ai))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(40===t.charCodeAt(Rd)?(a=U,Rd++):(a=i,0===Nd&&Vd(z)),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if((l=zp())!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();if(u!==i)if(t.substr(Rd,2)===H?(c=H,Rd+=2):(c=i,0===Nd&&Vd(G)),c===i&&(t.substr(Rd,2)===q?(c=q,Rd+=2):(c=i,0===Nd&&Vd(Q))),c!==i){for(f=[],h=fg();h!==i;)f.push(h),h=fg();if(f!==i)if((h=Up())!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i?(41===t.charCodeAt(Rd)?(p=W,Rd++):(p=i,0===Nd&&Vd(K)),p!==i?e=n=Ii(l,h):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Ei)),e}())===i&&(e=function(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(t.substr(Rd,6)===Qt?(r=Qt,Rd+=6):(r=i,0===Nd&&Vd(Ht)),r===i&&(t.substr(Rd,6)===Gt?(r=Gt,Rd+=6):(r=i,0===Nd&&Vd(Wt))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i&&(a=pp())!==i?e=n=ji(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Pi)),e}()),Nd--,e===i&&0===Nd&&Vd(Kr),e}function dp(){var e;return Nd++,(e=Xp())===i&&(e=Zp())===i&&(e=mp()),Nd--,e===i&&0===Nd&&Vd(Ri),e}function pp(){var e;return Nd++,(e=function(){var e,n,r,o,a,s,l,u;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Up())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(123===t.charCodeAt(Rd)?(a=le,Rd++):(a=i,0===Nd&&Vd(ue)),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i){for(l=[],u=gp();u!==i;)l.push(u),u=gp();l!==i?(125===t.charCodeAt(Rd)?(u=ce,Rd++):(u=i,0===Nd&&Vd(fe)),u!==i?e=n=Fi(r,l):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Ni)),e}())===i&&(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m,v;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i){if((r=cg())===i)if(r=Rd,40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){for(s=[],l=Up();l!==i;)s.push(l),l=Up();if(s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?r=o=[o,a,s,l,u]:(Rd=r,r=i)):(Rd=r,r=i)}else Rd=r,r=i}else Rd=r,r=i}else Rd=r,r=i;if(r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(123===t.charCodeAt(Rd)?(a=le,Rd++):(a=i,0===Nd&&Vd(ue)),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i){for(l=[],u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(40===t.charCodeAt(Rd)?(f=U,Rd++):(f=i,0===Nd&&Vd(z)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i){for(d=[],p=gp();p!==i;)d.push(p),p=gp();if(d!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if(41===t.charCodeAt(Rd)?(g=W,Rd++):(g=i,0===Nd&&Vd(K)),g!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();m!==i?u=c=[c,f,h,d,p,g,m]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i}else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i;for(u===i&&(u=cg());u!==i;){for(l.push(u),u=Rd,c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(40===t.charCodeAt(Rd)?(f=U,Rd++):(f=i,0===Nd&&Vd(z)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i){for(d=[],p=gp();p!==i;)d.push(p),p=gp();if(d!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if(41===t.charCodeAt(Rd)?(g=W,Rd++):(g=i,0===Nd&&Vd(K)),g!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();m!==i?u=c=[c,f,h,d,p,g,m]:(Rd=u,u=i)}else Rd=u,u=i;else Rd=u,u=i}else Rd=u,u=i}else Rd=u,u=i}else Rd=u,u=i;else Rd=u,u=i;u===i&&(u=cg())}if(l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?(125===t.charCodeAt(Rd)?(c=ce,Rd++):(c=i,0===Nd&&Vd(fe)),c!==i?e=n=Li(r,l):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Mi)),e}()),Nd--,e===i&&0===Nd&&Vd(Di),e}function gp(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=rg())===i&&(r=Yp())===i&&(r=$p())===i&&(r=eg())===i&&(t.substr(Rd,5)===Ut?(r=Ut,Rd+=5):(r=i,0===Nd&&Vd(zt))),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?e=n=tt(r):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Bi)),e}function mp(){var e,t,n,r;if(Nd++,e=Rd,(t=ng())!==i){for(n=[],r=fg();r!==i;)n.push(r),r=fg();n!==i&&(r=vp())!==i?e=t=Ui(t,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(t=i,0===Nd&&Vd(Vi)),e}function vp(){var e,n,r,o,a,s,l,u,c,f,h,d;if(Nd++,e=Rd,(n=cg())!==i&&(n=qi()),(e=n)===i)if(e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,8)===j?(o=j,Rd+=8):(o=i,0===Nd&&Vd(D)),o===i&&(t.substr(Rd,8)===N?(o=N,Rd+=8):(o=i,0===Nd&&Vd(F))),o===i&&(o=null),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i){if(u=[],c=Rd,44===t.charCodeAt(Rd)?(f=Qi,Rd++):(f=i,0===Nd&&Vd(Hi)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i&&(d=zp())!==i?c=f=[f,h,d]:(Rd=c,c=i)}else Rd=c,c=i;for(;c!==i;)if(u.push(c),c=Rd,44===t.charCodeAt(Rd)?(f=Qi,Rd++):(f=i,0===Nd&&Vd(Hi)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i&&(d=zp())!==i?c=f=[f,h,d]:(Rd=c,c=i)}else Rd=c,c=i;u!==i?(41===t.charCodeAt(Rd)?(c=W,Rd++):(c=i,0===Nd&&Vd(K)),c!==i?e=n=Gi(o,s,u):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(zi)),e}function yp(){var e,n,r,o,a,s,l,u,c,f;if(Nd++,e=Rd,(n=cg())!==i&&(n=qi()),(e=n)===i)if(e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=ng())===i&&(o=zp()),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i){if(s=[],l=Rd,44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?((f=ng())===i&&(f=zp()),f!==i?l=u=[u,c,f]:(Rd=l,l=i)):(Rd=l,l=i)}else Rd=l,l=i;for(;l!==i;)if(s.push(l),l=Rd,44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?((f=ng())===i&&(f=zp()),f!==i?l=u=[u,c,f]:(Rd=l,l=i)):(Rd=l,l=i)}else Rd=l,l=i;s!==i?(41===t.charCodeAt(Rd)?(l=W,Rd++):(l=i,0===Nd&&Vd(K)),l!==i?e=n=Ki(o,s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Wi)),e}function bp(){var e,t,n,r,o;for(Nd++,e=Rd,t=[],n=fg();n!==i;)t.push(n),n=fg();if(t!==i)if((n=Bp())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=_p())!==i?e=t=eo(n,o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i){for(e=Rd,t=[],n=fg();n!==i;)t.push(n),n=fg();if(t!==i)if((n=Fp())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=function(){var e;return Nd++,(e=_p())===i&&(e=null),Nd--,e===i&&0===Nd&&Vd(ao),e}())!==i?e=t=to(n,o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}return Nd--,e===i&&(t=i,0===Nd&&Vd(Ji)),e}function _p(){var e,n,r,o,a,s,l,u,c,f,h,d,p;if(Nd++,e=Rd,(n=Ep())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=xp())!==i){for(a=[],s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i){if(f=Rd,(h=Ep())!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=xp())!==i?f=h=[h,d,p]:(Rd=f,f=i)}else Rd=f,f=i;f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i}else Rd=s,s=i;else Rd=s,s=i;for(;s!==i;){for(a.push(s),s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i){if(f=Rd,(h=Ep())!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=xp())!==i?f=h=[h,d,p]:(Rd=f,f=i)}else Rd=f,f=i;f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i}else Rd=s,s=i;else Rd=s,s=i}a!==i?e=n=oo(n,o,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(io)),e}function wp(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=kp())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){if(o=[],a=Rd,44===t.charCodeAt(Rd)?(s=Qi,Rd++):(s=i,0===Nd&&Vd(Hi)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=kp())!==i?a=s=[s,l,u]:(Rd=a,a=i)}else Rd=a,a=i;for(;a!==i;)if(o.push(a),a=Rd,44===t.charCodeAt(Rd)?(s=Qi,Rd++):(s=i,0===Nd&&Vd(Hi)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=kp())!==i?a=s=[s,l,u]:(Rd=a,a=i)}else Rd=a,a=i;o!==i?e=n=lo(n,o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(so)),e}function xp(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=Cp())!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){if(o=[],a=Rd,44===t.charCodeAt(Rd)?(s=Qi,Rd++):(s=i,0===Nd&&Vd(Hi)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Cp())!==i?a=s=[s,l,u]:(Rd=a,a=i)}else Rd=a,a=i;for(;a!==i;)if(o.push(a),a=Rd,44===t.charCodeAt(Rd)?(s=Qi,Rd++):(s=i,0===Nd&&Vd(Hi)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Cp())!==i?a=s=[s,l,u]:(Rd=a,a=i)}else Rd=a,a=i;o!==i?e=n=co(n,o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(uo)),e}function kp(){var e;return Nd++,e=Mp(),Nd--,e===i&&0===Nd&&Vd(fo),e}function Cp(){var e;return Nd++,e=Lp(),Nd--,e===i&&0===Nd&&Vd(ho),e}function Ep(){var e,n;return Nd++,(e=Vp())===i&&(e=Rd,97===t.charCodeAt(Rd)?(n=go,Rd++):(n=i,0===Nd&&Vd(mo)),n!==i&&(n=vo()),e=n),Nd--,e===i&&(n=i,0===Nd&&Vd(po)),e}function Sp(){var e,n,r,o,a,s,l,u,c,f,h,d;if(Nd++,e=Rd,(n=Tp())===i&&(n=Op()),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=wp())!==i){for(a=[],s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?(f=Rd,(h=Tp())===i&&(h=Op()),h!==i&&(d=xp())!==i?f=h=[h,d]:(Rd=f,f=i),f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)):(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i;for(;s!==i;){for(a.push(s),s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(59===t.charCodeAt(Rd)?(u=Yt,Rd++):(u=i,0===Nd&&Vd($t)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?(f=Rd,(h=Tp())===i&&(h=Op()),h!==i&&(d=xp())!==i?f=h=[h,d]:(Rd=f,f=i),f===i&&(f=null),f!==i?s=l=[l,u,c,f]:(Rd=s,s=i)):(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i}a!==i?e=n=xo(n,o,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(wo)),e}function Tp(){var e,t;return Nd++,(t=Ap())!==i&&(t=Eo(t)),Nd--,(e=t)===i&&(t=i,0===Nd&&Vd(Co)),e}function Op(){var e;return Nd++,e=Up(),Nd--,e===i&&0===Nd&&Vd(So),e}function Ap(){var e;return Nd++,e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,(n=Ip())!==i){for(r=[],o=Rd,124===t.charCodeAt(Rd)?(a=Ao,Rd++):(a=i,0===Nd&&Vd(Io)),a!==i&&(s=Ip())!==i?o=a=[a,s]:(Rd=o,o=i);o!==i;)r.push(o),o=Rd,124===t.charCodeAt(Rd)?(a=Ao,Rd++):(a=i,0===Nd&&Vd(Io)),a!==i&&(s=Ip())!==i?o=a=[a,s]:(Rd=o,o=i);r!==i?e=n=Ro(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Oo)),e}(),Nd--,e===i&&0===Nd&&Vd(To),e}function Ip(){var e,n,r,o,a,s;if(Nd++,e=Rd,(n=Pp())!==i){for(r=[],o=Rd,47===t.charCodeAt(Rd)?(a=jo,Rd++):(a=i,0===Nd&&Vd(Do)),a!==i&&(s=Pp())!==i?o=a=[a,s]:(Rd=o,o=i);o!==i;)r.push(o),o=Rd,47===t.charCodeAt(Rd)?(a=jo,Rd++):(a=i,0===Nd&&Vd(Do)),a!==i&&(s=Pp())!==i?o=a=[a,s]:(Rd=o,o=i);r!==i?e=n=No(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Po)),e}function Rp(){var e,n,r;return Nd++,e=Rd,(n=function(){var e,n,r,o;return Nd++,(e=ng())===i&&(e=Rd,97===t.charCodeAt(Rd)?(n=go,Rd++):(n=i,0===Nd&&Vd(mo)),n!==i&&(n=vo()),(e=n)===i&&(e=Rd,33===t.charCodeAt(Rd)?(n=Ko,Rd++):(n=i,0===Nd&&Vd(Xo)),n!==i&&(r=function(){var e,n,r,o,a,s,l,u;if((e=jp())===i)if(e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i){if(r=Rd,(o=jp())!==i){for(a=[],s=Rd,124===t.charCodeAt(Rd)?(l=Ao,Rd++):(l=i,0===Nd&&Vd(Io)),l!==i&&(u=jp())!==i?s=l=[l,u]:(Rd=s,s=i);s!==i;)a.push(s),s=Rd,124===t.charCodeAt(Rd)?(l=Ao,Rd++):(l=i,0===Nd&&Vd(Io)),l!==i&&(u=jp())!==i?s=l=[l,u]:(Rd=s,s=i);a!==i?r=o=[o,a]:(Rd=r,r=i)}else Rd=r,r=i;r===i&&(r=null),r!==i?(41===t.charCodeAt(Rd)?(o=W,Rd++):(o=i,0===Nd&&Vd(K)),o!==i?e=n=[n,r,o]:(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return e}())!==i?e=n=[n,r]:(Rd=e,e=i),e===i&&(e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i&&(r=Ap())!==i?(41===t.charCodeAt(Rd)?(o=W,Rd++):(o=i,0===Nd&&Vd(K)),o!==i?e=n=qr(r):(Rd=e,e=i)):(Rd=e,e=i)))),Nd--,e===i&&(n=i,0===Nd&&Vd(Wo)),e}())!==i?((r=function(){var e,n,r,o,a,s,l,u,c;return Nd++,42===t.charCodeAt(Rd)?(e=X,Rd++):(e=i,0===Nd&&Vd(Z)),e===i&&(63===t.charCodeAt(Rd)?(e=qo,Rd++):(e=i,0===Nd&&Vd(Qo)),e===i&&(43===t.charCodeAt(Rd)?(e=Ho,Rd++):(e=i,0===Nd&&Vd(Go)),e===i&&(e=Rd,123===t.charCodeAt(Rd)?(n=le,Rd++):(n=i,0===Nd&&Vd(ue)),n!==i?(r=Rd,(o=Dp())!==i?(a=Rd,44===t.charCodeAt(Rd)?(s=Qi,Rd++):(s=i,0===Nd&&Vd(Hi)),s!==i?(125===t.charCodeAt(Rd)?(l=ce,Rd++):(l=i,0===Nd&&Vd(fe)),l===i&&(l=Rd,(u=Dp())!==i?(125===t.charCodeAt(Rd)?(c=ce,Rd++):(c=i,0===Nd&&Vd(fe)),c!==i?l=u=[u,c]:(Rd=l,l=i)):(Rd=l,l=i)),l!==i?a=s=[s,l]:(Rd=a,a=i)):(Rd=a,a=i),a===i&&(125===t.charCodeAt(Rd)?(a=ce,Rd++):(a=i,0===Nd&&Vd(fe))),a!==i?r=o=[o,a]:(Rd=r,r=i)):(Rd=r,r=i),r===i&&(r=Rd,44===t.charCodeAt(Rd)?(o=Qi,Rd++):(o=i,0===Nd&&Vd(Hi)),o!==i&&(a=Dp())!==i?(125===t.charCodeAt(Rd)?(s=ce,Rd++):(s=i,0===Nd&&Vd(fe)),s!==i?r=o=[o,a,s]:(Rd=r,r=i)):(Rd=r,r=i)),r!==i?e=n=[n,r]:(Rd=e,e=i)):(Rd=e,e=i)))),Nd--,e===i&&(n=i,0===Nd&&Vd(zo)),e}())===i&&(r=null),r!==i?e=n=Mo(n,r):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Fo)),e}function Pp(){var e,n,r;return Nd++,(e=Rp())===i&&(e=Rd,94===t.charCodeAt(Rd)?(n=Bo,Rd++):(n=i,0===Nd&&Vd(Vo)),n!==i&&(r=Rp())!==i?e=n=Uo(r):(Rd=e,e=i)),Nd--,e===i&&(n=i,0===Nd&&Vd(Lo)),e}function jp(){var e,n,r;return Nd++,(e=ng())===i&&(97===t.charCodeAt(Rd)?(e=go,Rd++):(e=i,0===Nd&&Vd(mo)),e===i&&(e=Rd,94===t.charCodeAt(Rd)?(n=Bo,Rd++):(n=i,0===Nd&&Vd(Vo)),n!==i?((r=ng())===i&&(97===t.charCodeAt(Rd)?(r=go,Rd++):(r=i,0===Nd&&Vd(mo))),r!==i?e=n=[n,r]:(Rd=e,e=i)):(Rd=e,e=i))),Nd--,e===i&&(n=i,0===Nd&&Vd(Zo)),e}function Dp(){var e;return Nd++,e=og(),Nd--,e===i&&0===Nd&&Vd(Yo),e}function Np(){var e,n;return Nd++,e=Rd,(n=function(){var e,n,r,o,a,s,l,u,c;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(40===t.charCodeAt(Rd)?(r=U,Rd++):(r=i,0===Nd&&Vd(z)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i){if(a=[],(s=Mp())!==i)for(;s!==i;)a.push(s),s=Mp();else a=i;if(a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(41===t.charCodeAt(Rd)?(l=W,Rd++):(l=i,0===Nd&&Vd(K)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?e=n=fa(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ca)),e}())!==i&&(n=Jo(n)),(e=n)===i&&(e=function(){var e,n,r,o,a,s,l,u;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(91===t.charCodeAt(Rd)?(r=ra,Rd++):(r=i,0===Nd&&Vd(ia)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=Sp())!==i)if(93===t.charCodeAt(Rd)?(s=oa,Rd++):(s=i,0===Nd&&Vd(aa)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?e=n=sa(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(na)),e}()),Nd--,e===i&&(n=i,0===Nd&&Vd($o)),e}function Fp(){var e,n;return Nd++,e=Rd,(n=function(){var e,n,r,o,a,s,l,u,c;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(40===t.charCodeAt(Rd)?(r=U,Rd++):(r=i,0===Nd&&Vd(z)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i){if(a=[],(s=Lp())!==i)for(;s!==i;)a.push(s),s=Lp();else a=i;if(a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(41===t.charCodeAt(Rd)?(l=W,Rd++):(l=i,0===Nd&&Vd(K)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?e=n=fa(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ha)),e}())!==i&&(n=ta(n)),(e=n)===i&&(e=function(){var e,n,r,o,a,s,l,u,c;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if(91===t.charCodeAt(Rd)?(r=ra,Rd++):(r=i,0===Nd&&Vd(ia)),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if((a=_p())!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if(93===t.charCodeAt(Rd)?(l=oa,Rd++):(l=i,0===Nd&&Vd(aa)),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?e=n=ua(a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(la)),e}()),Nd--,e===i&&(n=i,0===Nd&&Vd(ea)),e}function Mp(){var e,t,n,r,o,a;for(Nd++,t=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Bp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?t=n=[n,r,o]:(Rd=t,t=i)}else Rd=t,t=i;else Rd=t,t=i;if(t===i){for(t=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Np())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?t=n=[n,r,o]:(Rd=t,t=i)}else Rd=t,t=i;else Rd=t,t=i}return t!==i&&(t=pa(t)),Nd--,(e=t)===i&&(t=i,0===Nd&&Vd(da)),e}function Lp(){var e,t,n,r,o,a;for(Nd++,t=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Bp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?t=n=[n,r,o]:(Rd=t,t=i)}else Rd=t,t=i;else Rd=t,t=i;if(t===i){for(t=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=Fp())!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?t=n=[n,r,o]:(Rd=t,t=i)}else Rd=t,t=i;else Rd=t,t=i}return t!==i&&(t=pa(t)),Nd--,(e=t)===i&&(t=i,0===Nd&&Vd(ga)),e}function Bp(){var e;return Nd++,(e=Up())===i&&(e=function(){var e;return Nd++,(e=ng())===i&&(e=Yp())===i&&(e=$p())===i&&(e=eg())===i&&(e=function(){var e,n;return Nd++,e=Rd,(n=function(){var e,n,r;return Nd++,e=Rd,t.substr(Rd,2)===Gc?(n=Gc,Rd+=2):(n=i,0===Nd&&Vd(Wc)),n!==i&&(r=mg())!==i?e=n=Kc(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Hc)),e}())!==i&&(n=Dc(n)),(e=n)===i&&(e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,91===t.charCodeAt(Rd)?(n=ra,Rd++):(n=i,0===Nd&&Vd(ia)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i?(93===t.charCodeAt(Rd)?(o=oa,Rd++):(o=i,0===Nd&&Vd(aa)),o!==i?e=n=[n,r,o]:(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(kh)),e}())!==i&&(n=Nc()),e=n),Nd--,e===i&&(n=i,0===Nd&&Vd(jc)),e}())===i&&(e=cg()),Nd--,e===i&&0===Nd&&Vd(_a),e}()),Nd--,e===i&&0===Nd&&Vd(ma),e}function Vp(){var e;return Nd++,(e=Up())===i&&(e=ng()),Nd--,e===i&&0===Nd&&Vd(va),e}function Up(){var e,n,r,o,a;for(Nd++,e=Rd,n=[],r=fg();r!==i;)n.push(r),r=fg();if(n!==i)if((r=function(){var e,n,r;return Nd++,e=Rd,63===t.charCodeAt(Rd)?(n=qo,Rd++):(n=i,0===Nd&&Vd(Qo)),n!==i&&(r=pg())!==i?e=n=Zc(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Xc)),e}())===i&&(r=function(){var e,n,r;return Nd++,e=Rd,36===t.charCodeAt(Rd)?(n=$c,Rd++):(n=i,0===Nd&&Vd(Jc)),n!==i&&(r=pg())!==i?e=n=Zc(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Yc)),e}()),r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();o!==i?e=n=ba(r):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ya)),e}function zp(){var e;return Nd++,e=function(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=qp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===ka?(s=ka,Rd+=2):(s=i,0===Nd&&Vd(Ca)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=qp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===ka?(s=ka,Rd+=2):(s=i,0===Nd&&Vd(Ca)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=qp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}r!==i?e=n=Ea(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(xa)),e}(),Nd--,e===i&&0===Nd&&Vd(wa),e}function qp(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=Qp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Ta?(s=Ta,Rd+=2):(s=i,0===Nd&&Vd(Oa)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Qp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Ta?(s=Ta,Rd+=2):(s=i,0===Nd&&Vd(Oa)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Qp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}r!==i?e=n=Aa(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Sa)),e}function Qp(){var e;return Nd++,e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p;if(Nd++,e=Rd,(n=Hp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(61===t.charCodeAt(Rd)?(s=Pa,Rd++):(s=i,0===Nd&&Vd(ja)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Da?(s=Da,Rd+=2):(s=i,0===Nd&&Vd(Na)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(60===t.charCodeAt(Rd)?(s=Fa,Rd++):(s=i,0===Nd&&Vd(Ma)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(62===t.charCodeAt(Rd)?(s=La,Rd++):(s=i,0===Nd&&Vd(Ba)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Va?(s=Va,Rd+=2):(s=i,0===Nd&&Vd(Ua)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===za?(s=za,Rd+=2):(s=i,0===Nd&&Vd(qa)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(73===t.charCodeAt(Rd)?(s=Qa,Rd++):(s=i,0===Nd&&Vd(Ha)),s===i&&(105===t.charCodeAt(Rd)?(s=Ga,Rd++):(s=i,0===Nd&&Vd(Wa))),s!==i)if(78===t.charCodeAt(Rd)?(l=Ka,Rd++):(l=i,0===Nd&&Vd(Xa)),l===i&&(110===t.charCodeAt(Rd)?(l=Za,Rd++):(l=i,0===Nd&&Vd(Ya))),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i&&(c=yp())!==i?o=a=[a,s,l,u,c]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(78===t.charCodeAt(Rd)?(s=Ka,Rd++):(s=i,0===Nd&&Vd(Xa)),s===i&&(110===t.charCodeAt(Rd)?(s=Za,Rd++):(s=i,0===Nd&&Vd(Ya))),s!==i)if(79===t.charCodeAt(Rd)?(l=$a,Rd++):(l=i,0===Nd&&Vd(Ja)),l===i&&(111===t.charCodeAt(Rd)?(l=es,Rd++):(l=i,0===Nd&&Vd(ts))),l!==i)if(84===t.charCodeAt(Rd)?(u=ns,Rd++):(u=i,0===Nd&&Vd(rs)),u===i&&(116===t.charCodeAt(Rd)?(u=is,Rd++):(u=i,0===Nd&&Vd(os))),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(73===t.charCodeAt(Rd)?(f=Qa,Rd++):(f=i,0===Nd&&Vd(Ha)),f===i&&(105===t.charCodeAt(Rd)?(f=Ga,Rd++):(f=i,0===Nd&&Vd(Wa))),f!==i)if(78===t.charCodeAt(Rd)?(h=Ka,Rd++):(h=i,0===Nd&&Vd(Xa)),h===i&&(110===t.charCodeAt(Rd)?(h=Za,Rd++):(h=i,0===Nd&&Vd(Ya))),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=yp())!==i?o=a=[a,s,l,u,c,f,h,d,p]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i}}}}}}}for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(61===t.charCodeAt(Rd)?(s=Pa,Rd++):(s=i,0===Nd&&Vd(ja)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Da?(s=Da,Rd+=2):(s=i,0===Nd&&Vd(Na)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(60===t.charCodeAt(Rd)?(s=Fa,Rd++):(s=i,0===Nd&&Vd(Ma)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(62===t.charCodeAt(Rd)?(s=La,Rd++):(s=i,0===Nd&&Vd(Ba)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===Va?(s=Va,Rd+=2):(s=i,0===Nd&&Vd(Ua)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,2)===za?(s=za,Rd+=2):(s=i,0===Nd&&Vd(qa)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Hp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(73===t.charCodeAt(Rd)?(s=Qa,Rd++):(s=i,0===Nd&&Vd(Ha)),s===i&&(105===t.charCodeAt(Rd)?(s=Ga,Rd++):(s=i,0===Nd&&Vd(Wa))),s!==i)if(78===t.charCodeAt(Rd)?(l=Ka,Rd++):(l=i,0===Nd&&Vd(Xa)),l===i&&(110===t.charCodeAt(Rd)?(l=Za,Rd++):(l=i,0===Nd&&Vd(Ya))),l!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i&&(c=yp())!==i?o=a=[a,s,l,u,c]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(78===t.charCodeAt(Rd)?(s=Ka,Rd++):(s=i,0===Nd&&Vd(Xa)),s===i&&(110===t.charCodeAt(Rd)?(s=Za,Rd++):(s=i,0===Nd&&Vd(Ya))),s!==i)if(79===t.charCodeAt(Rd)?(l=$a,Rd++):(l=i,0===Nd&&Vd(Ja)),l===i&&(111===t.charCodeAt(Rd)?(l=es,Rd++):(l=i,0===Nd&&Vd(ts))),l!==i)if(84===t.charCodeAt(Rd)?(u=ns,Rd++):(u=i,0===Nd&&Vd(rs)),u===i&&(116===t.charCodeAt(Rd)?(u=is,Rd++):(u=i,0===Nd&&Vd(os))),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(73===t.charCodeAt(Rd)?(f=Qa,Rd++):(f=i,0===Nd&&Vd(Ha)),f===i&&(105===t.charCodeAt(Rd)?(f=Ga,Rd++):(f=i,0===Nd&&Vd(Wa))),f!==i)if(78===t.charCodeAt(Rd)?(h=Ka,Rd++):(h=i,0===Nd&&Vd(Xa)),h===i&&(110===t.charCodeAt(Rd)?(h=Za,Rd++):(h=i,0===Nd&&Vd(Ya))),h!==i){for(d=[],p=fg();p!==i;)d.push(p),p=fg();d!==i&&(p=yp())!==i?o=a=[a,s,l,u,c,f,h,d,p]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i}else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i;else Rd=o,o=i}}}}}}}}r!==i?e=n=as(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Ra)),e}(),Nd--,e===i&&0===Nd&&Vd(Ia),e}function Hp(){var e;return Nd++,e=function(){var e,n,r,o,a,s,l,u,c,f;if(Nd++,e=Rd,(n=Gp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(43===t.charCodeAt(Rd)?(s=Ho,Rd++):(s=i,0===Nd&&Vd(Go)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Gp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(45===t.charCodeAt(Rd)?(s=us,Rd++):(s=i,0===Nd&&Vd(cs)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Gp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i)if(o=Rd,(a=Jp())===i&&(a=Jp()),a!==i){for(s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(42===t.charCodeAt(Rd)?(u=X,Rd++):(u=i,0===Nd&&Vd(Z)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=Wp())!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i;if(s===i){for(s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(47===t.charCodeAt(Rd)?(u=jo,Rd++):(u=i,0===Nd&&Vd(Do)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=Wp())!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i}s===i&&(s=null),s!==i?o=a=[a,s]:(Rd=o,o=i)}else Rd=o,o=i}for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(43===t.charCodeAt(Rd)?(s=Ho,Rd++):(s=i,0===Nd&&Vd(Go)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Gp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(45===t.charCodeAt(Rd)?(s=us,Rd++):(s=i,0===Nd&&Vd(cs)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Gp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i)if(o=Rd,(a=Jp())===i&&(a=Jp()),a!==i){for(s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(42===t.charCodeAt(Rd)?(u=X,Rd++):(u=i,0===Nd&&Vd(Z)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=Wp())!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i;if(s===i){for(s=Rd,l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(47===t.charCodeAt(Rd)?(u=jo,Rd++):(u=i,0===Nd&&Vd(Do)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i&&(f=Wp())!==i?s=l=[l,u,c,f]:(Rd=s,s=i)}else Rd=s,s=i;else Rd=s,s=i}s===i&&(s=null),s!==i?o=a=[a,s]:(Rd=o,o=i)}else Rd=o,o=i}}r!==i?e=n=fs(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ls)),e}(),Nd--,e===i&&0===Nd&&Vd(ss),e}function Gp(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,(n=Wp())!==i){for(r=[],o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(42===t.charCodeAt(Rd)?(s=X,Rd++):(s=i,0===Nd&&Vd(Z)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Wp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(47===t.charCodeAt(Rd)?(s=jo,Rd++):(s=i,0===Nd&&Vd(Do)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Wp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}for(;o!==i;){for(r.push(o),o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(42===t.charCodeAt(Rd)?(s=X,Rd++):(s=i,0===Nd&&Vd(Z)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Wp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i;if(o===i){for(o=Rd,a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(47===t.charCodeAt(Rd)?(s=jo,Rd++):(s=i,0===Nd&&Vd(Do)),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i&&(u=Wp())!==i?o=a=[a,s,l,u]:(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}}r!==i?e=n=ds(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(hs)),e}function Wp(){var e,n,r,o;if(Nd++,e=Rd,33===t.charCodeAt(Rd)?(n=Ko,Rd++):(n=i,0===Nd&&Vd(Xo)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=Kp())!==i?e=n=gs(o):(Rd=e,e=i)}else Rd=e,e=i;if(e===i){if(e=Rd,43===t.charCodeAt(Rd)?(n=Ho,Rd++):(n=i,0===Nd&&Vd(Go)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=Kp())!==i?e=n=ms(o):(Rd=e,e=i)}else Rd=e,e=i;if(e===i){if(e=Rd,45===t.charCodeAt(Rd)?(n=us,Rd++):(n=i,0===Nd&&Vd(cs)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=Kp())!==i?e=n=vs(o):(Rd=e,e=i)}else Rd=e,e=i;e===i&&(e=Kp())}}return Nd--,e===i&&(n=i,0===Nd&&Vd(ps)),e}function Kp(){var e,n;return Nd++,(e=Xp())===i&&(e=Zp())===i&&(e=function(){var e,t,n,r;if(Nd++,e=Rd,(t=ng())!==i){for(n=[],r=fg();r!==i;)n.push(r),r=fg();n!==i?((r=vp())===i&&(r=null),r!==i?e=t=oc(t,r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(t=i,0===Nd&&Vd(ic)),e}())===i&&(e=Rd,(n=Yp())!==i&&(n=bs(n)),(e=n)===i&&(e=Rd,(n=$p())!==i&&(n=_s(n)),(e=n)===i&&(e=Rd,(n=eg())!==i&&(n=ws(n)),(e=n)===i&&(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m,v,y,b;if(Nd++,e=Rd,t.substr(Rd,5)===Su?(n=Su,Rd+=5):(n=i,0===Nd&&Vd(Tu)),n===i&&(t.substr(Rd,5)===Ou?(n=Ou,Rd+=5):(n=i,0===Nd&&Vd(Au))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(42===t.charCodeAt(Rd)?(u=X,Rd++):(u=i,0===Nd&&Vd(Z)),u===i&&(u=zp()),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=Iu(s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,12)===Ru?(n=Ru,Rd+=12):(n=i,0===Nd&&Vd(Pu)),n===i&&(t.substr(Rd,12)===ju?(n=ju,Rd+=12):(n=i,0===Nd&&Vd(Du))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){if(c=Rd,59===t.charCodeAt(Rd)?(f=Yt,Rd++):(f=i,0===Nd&&Vd($t)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i)if(t.substr(Rd,9)===Nu?(d=Nu,Rd+=9):(d=i,0===Nd&&Vd(Fu)),d!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if(61===t.charCodeAt(Rd)?(g=Pa,Rd++):(g=i,0===Nd&&Vd(ja)),g!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();if(m!==i)if((v=tg())!==i){for(y=[],b=fg();b!==i;)y.push(b),b=fg();y!==i?c=f=[f,h,d,p,g,m,v,y]:(Rd=c,c=i)}else Rd=c,c=i;else Rd=c,c=i}else Rd=c,c=i;else Rd=c,c=i}else Rd=c,c=i;else Rd=c,c=i}else Rd=c,c=i;if(c===i&&(c=null),c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=Mu(s,u,c):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,3)===Lu?(n=Lu,Rd+=3):(n=i,0===Nd&&Vd(Bu)),n===i&&(t.substr(Rd,3)===Vu?(n=Vu,Rd+=3):(n=i,0===Nd&&Vd(Uu))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=zu(s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,3)===qu?(n=qu,Rd+=3):(n=i,0===Nd&&Vd(Qu)),n===i&&(t.substr(Rd,3)===Hu?(n=Hu,Rd+=3):(n=i,0===Nd&&Vd(Gu))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=Wu(s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,3)===Ku?(n=Ku,Rd+=3):(n=i,0===Nd&&Vd(Xu)),n===i&&(t.substr(Rd,3)===Zu?(n=Zu,Rd+=3):(n=i,0===Nd&&Vd(Yu))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=$u(s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i)if(e=Rd,t.substr(Rd,3)===Ju?(n=Ju,Rd+=3):(n=i,0===Nd&&Vd(ec)),n===i&&(t.substr(Rd,3)===tc?(n=tc,Rd+=3):(n=i,0===Nd&&Vd(nc))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if(t.substr(Rd,8)===j?(s=j,Rd+=8):(s=i,0===Nd&&Vd(D)),s===i&&(t.substr(Rd,8)===N?(s=N,Rd+=8):(s=i,0===Nd&&Vd(F))),s===i&&(s=null),s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?e=n=rc(s,u):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}}}}return Nd--,e===i&&(n=i,0===Nd&&Vd(Eu)),e}())===i&&(e=Rd,(n=Up())!==i&&(n=xs(n)),e=n)))),Nd--,e===i&&(n=i,0===Nd&&Vd(ys)),e}function Xp(){var e,n,r,o,a,s;if(Nd++,e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if((o=zp())!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i?(41===t.charCodeAt(Rd)?(s=W,Rd++):(s=i,0===Nd&&Vd(K)),s!==i?e=n=Cs(o):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ks)),e}function Zp(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m,v;if(Nd++,e=Rd,t.substr(Rd,3)===Ss?(n=Ss,Rd+=3):(n=i,0===Nd&&Vd(Ts)),n===i&&(t.substr(Rd,3)===Os?(n=Os,Rd+=3):(n=i,0===Nd&&Vd(As))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Is(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,4)===Rs?(n=Rs,Rd+=4):(n=i,0===Nd&&Vd(Ps)),n===i&&(t.substr(Rd,4)===js?(n=js,Rd+=4):(n=i,0===Nd&&Vd(Ds))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Ns(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,11)===Fs?(n=Fs,Rd+=11):(n=i,0===Nd&&Vd(Ms)),n===i&&(t.substr(Rd,11)===Ls?(n=Ls,Rd+=11):(n=i,0===Nd&&Vd(Bs))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=zp())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?(41===t.charCodeAt(Rd)?(d=W,Rd++):(d=i,0===Nd&&Vd(K)),d!==i?e=n=Vs(s,f):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,8)===Us?(n=Us,Rd+=8):(n=i,0===Nd&&Vd(zs)),n===i&&(t.substr(Rd,8)===qs?(n=qs,Rd+=8):(n=i,0===Nd&&Vd(Qs))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Hs(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,5)===Gs?(n=Gs,Rd+=5):(n=i,0===Nd&&Vd(Ws)),n===i&&(t.substr(Rd,5)===Ks?(n=Ks,Rd+=5):(n=i,0===Nd&&Vd(Xs))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=Up())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Zs(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,3)===Ys?(n=Ys,Rd+=3):(n=i,0===Nd&&Vd($s)),n===i&&(t.substr(Rd,3)===Js?(n=Js,Rd+=3):(n=i,0===Nd&&Vd(el))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=tl(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,3)===nl?(n=nl,Rd+=3):(n=i,0===Nd&&Vd(rl)),n===i&&(t.substr(Rd,3)===il?(n=il,Rd+=3):(n=i,0===Nd&&Vd(ol))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=al(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,5)===sl?(n=sl,Rd+=5):(n=i,0===Nd&&Vd(ll)),n===i&&(t.substr(Rd,5)===ul?(n=ul,Rd+=5):(n=i,0===Nd&&Vd(cl))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i){if(o=Rd,40===t.charCodeAt(Rd)?(a=U,Rd++):(a=i,0===Nd&&Vd(z)),a!==i){for(s=[],l=fg();l!==i;)s.push(l),l=fg();if(s!==i)if((l=zp())!==i){for(u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i?(41===t.charCodeAt(Rd)?(c=W,Rd++):(c=i,0===Nd&&Vd(K)),c!==i?o=a=[a,s,l,u,c]:(Rd=o,o=i)):(Rd=o,o=i)}else Rd=o,o=i;else Rd=o,o=i}else Rd=o,o=i;o===i&&(o=cg()),o!==i?e=n=fl(o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,8)===hl?(n=hl,Rd+=8):(n=i,0===Nd&&Vd(dl)),n===i&&(t.substr(Rd,8)===pl?(n=pl,Rd+=8):(n=i,0===Nd&&Vd(gl))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=yp())!==i?e=n=ml(o):(Rd=e,e=i)}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,2)===vl?(n=vl,Rd+=2):(n=i,0===Nd&&Vd(yl)),n===i&&(t.substr(Rd,2)===bl?(n=bl,Rd+=2):(n=i,0===Nd&&Vd(_l))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=zp())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i)if(44===t.charCodeAt(Rd)?(d=Qi,Rd++):(d=i,0===Nd&&Vd(Hi)),d!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();if(p!==i)if((g=zp())!==i){for(m=[],v=fg();v!==i;)m.push(v),v=fg();m!==i?(41===t.charCodeAt(Rd)?(v=W,Rd++):(v=i,0===Nd&&Vd(K)),v!==i?e=n=wl(s,f,g):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,9)===xl?(n=xl,Rd+=9):(n=i,0===Nd&&Vd(kl)),n===i&&(t.substr(Rd,9)===Cl?(n=Cl,Rd+=9):(n=i,0===Nd&&Vd(El)),n===i&&(t.substr(Rd,9)===Sl?(n=Sl,Rd+=9):(n=i,0===Nd&&Vd(Tl)))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Ol(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,7)===Al?(n=Al,Rd+=7):(n=i,0===Nd&&Vd(Il)),n===i&&(t.substr(Rd,7)===Rl?(n=Rl,Rd+=7):(n=i,0===Nd&&Vd(Pl)),n===i&&(t.substr(Rd,7)===jl?(n=jl,Rd+=7):(n=i,0===Nd&&Vd(Dl)))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Nl(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,8)===Fl?(n=Fl,Rd+=8):(n=i,0===Nd&&Vd(Ml)),n===i&&(t.substr(Rd,8)===Ll?(n=Ll,Rd+=8):(n=i,0===Nd&&Vd(Bl))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=zp())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();h!==i?(41===t.charCodeAt(Rd)?(d=W,Rd++):(d=i,0===Nd&&Vd(K)),d!==i?e=n=Vl(s,f):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,5)===Ul?(n=Ul,Rd+=5):(n=i,0===Nd&&Vd(zl)),n===i&&(t.substr(Rd,5)===ql?(n=ql,Rd+=5):(n=i,0===Nd&&Vd(Ql)),n===i&&(t.substr(Rd,5)===Hl?(n=Hl,Rd+=5):(n=i,0===Nd&&Vd(Gl)),n===i&&(t.substr(Rd,5)===Wl?(n=Wl,Rd+=5):(n=i,0===Nd&&Vd(Kl)),n===i&&(t.substr(Rd,5)===Xl?(n=Xl,Rd+=5):(n=i,0===Nd&&Vd(Zl)),n===i&&(t.substr(Rd,5)===Yl?(n=Yl,Rd+=5):(n=i,0===Nd&&Vd($l))))))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();l!==i?(41===t.charCodeAt(Rd)?(u=W,Rd++):(u=i,0===Nd&&Vd(K)),u!==i?e=n=Jl(s):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;if(e===i){if(e=Rd,t.substr(Rd,7)===eu?(n=eu,Rd+=7):(n=i,0===Nd&&Vd(tu)),n===i&&(t.substr(Rd,7)===nu?(n=nu,Rd+=7):(n=i,0===Nd&&Vd(ru))),n!==i){if(r=[],iu.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ou)),o!==i)for(;o!==i;)r.push(o),iu.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ou));else r=i;if(r!==i){for(o=[],a=fg();a!==i;)o.push(a),a=fg();if(o!==i)if(40===t.charCodeAt(Rd)?(a=U,Rd++):(a=i,0===Nd&&Vd(z)),a!==i){for(s=[],l=Rd,u=[],c=fg();c!==i;)u.push(c),c=fg();for(u!==i&&(c=zp())!==i?(44===t.charCodeAt(Rd)?(f=Qi,Rd++):(f=i,0===Nd&&Vd(Hi)),f!==i?l=u=[u,c,f]:(Rd=l,l=i)):(Rd=l,l=i);l!==i;){for(s.push(l),l=Rd,u=[],c=fg();c!==i;)u.push(c),c=fg();u!==i&&(c=zp())!==i?(44===t.charCodeAt(Rd)?(f=Qi,Rd++):(f=i,0===Nd&&Vd(Hi)),f!==i?l=u=[u,c,f]:(Rd=l,l=i)):(Rd=l,l=i)}if(s!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if((u=zp())!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();c!==i?(41===t.charCodeAt(Rd)?(f=W,Rd++):(f=i,0===Nd&&Vd(K)),f!==i?e=n=au(r,s,u):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;e===i&&(e=function(){var e,n,r,o,a,s,l,u,c,f,h,d,p,g,m;if(Nd++,e=Rd,t.substr(Rd,5)===lu?(n=lu,Rd+=5):(n=i,0===Nd&&Vd(uu)),n===i&&(t.substr(Rd,5)===cu?(n=cu,Rd+=5):(n=i,0===Nd&&Vd(fu))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(40===t.charCodeAt(Rd)?(o=U,Rd++):(o=i,0===Nd&&Vd(z)),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();if(a!==i)if((s=zp())!==i){for(l=[],u=fg();u!==i;)l.push(u),u=fg();if(l!==i)if(44===t.charCodeAt(Rd)?(u=Qi,Rd++):(u=i,0===Nd&&Vd(Hi)),u!==i){for(c=[],f=fg();f!==i;)c.push(f),f=fg();if(c!==i)if((f=zp())!==i){for(h=[],d=fg();d!==i;)h.push(d),d=fg();if(h!==i){if(d=Rd,44===t.charCodeAt(Rd)?(p=Qi,Rd++):(p=i,0===Nd&&Vd(Hi)),p!==i){for(g=[],m=fg();m!==i;)g.push(m),m=fg();g!==i&&(m=zp())!==i?d=p=[p,g,m]:(Rd=d,d=i)}else Rd=d,d=i;if(d===i&&(d=null),d!==i){for(p=[],g=fg();g!==i;)p.push(g),g=fg();p!==i?(41===t.charCodeAt(Rd)?(g=W,Rd++):(g=i,0===Nd&&Vd(K)),g!==i?e=n=hu(s,f,d):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(su)),e}())===i&&(e=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,6)===pu?(n=pu,Rd+=6):(n=i,0===Nd&&Vd(gu)),n===i&&(t.substr(Rd,6)===mu?(n=mu,Rd+=6):(n=i,0===Nd&&Vd(vu))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i&&(o=cp())!==i?e=n=yu(o):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(du)),e}())===i&&(e=function(){var e,n,r,o,a,s;if(Nd++,e=Rd,t.substr(Rd,3)===_u?(n=_u,Rd+=3):(n=i,0===Nd&&Vd(wu)),n===i&&(t.substr(Rd,3)===xu?(n=xu,Rd+=3):(n=i,0===Nd&&Vd(ku))),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();if(r!==i)if(t.substr(Rd,6)===pu?(o=pu,Rd+=6):(o=i,0===Nd&&Vd(gu)),o===i&&(t.substr(Rd,6)===mu?(o=mu,Rd+=6):(o=i,0===Nd&&Vd(vu))),o!==i){for(a=[],s=fg();s!==i;)a.push(s),s=fg();a!==i&&(s=cp())!==i?e=n=Cu(s):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(bu)),e}())}}}}}}}}}}}}}}return Nd--,e===i&&(n=i,0===Nd&&Vd(Es)),e}function Yp(){var e,n,r,o,a;return Nd++,e=Rd,(n=tg())!==i?((r=function(){var e,n,r,o,a,s,l,u;if(Nd++,e=Rd,64===t.charCodeAt(Rd)?(n=tf,Rd++):(n=i,0===Nd&&Vd(nf)),n!==i){if(r=[],rf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(of)),o!==i)for(;o!==i;)r.push(o),rf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(of));else r=i;if(r!==i){if(o=[],a=Rd,45===t.charCodeAt(Rd)?(s=us,Rd++):(s=i,0===Nd&&Vd(cs)),s!==i){if(l=[],af.test(t.charAt(Rd))?(u=t.charAt(Rd),Rd++):(u=i,0===Nd&&Vd(sf)),u!==i)for(;u!==i;)l.push(u),af.test(t.charAt(Rd))?(u=t.charAt(Rd),Rd++):(u=i,0===Nd&&Vd(sf));else l=i;l!==i?a=s=[s,l]:(Rd=a,a=i)}else Rd=a,a=i;for(;a!==i;)if(o.push(a),a=Rd,45===t.charCodeAt(Rd)?(s=us,Rd++):(s=i,0===Nd&&Vd(cs)),s!==i){if(l=[],af.test(t.charAt(Rd))?(u=t.charAt(Rd),Rd++):(u=i,0===Nd&&Vd(sf)),u!==i)for(;u!==i;)l.push(u),af.test(t.charAt(Rd))?(u=t.charAt(Rd),Rd++):(u=i,0===Nd&&Vd(sf));else l=i;l!==i?a=s=[s,l]:(Rd=a,a=i)}else Rd=a,a=i;o!==i?e=n=lf(r,o):(Rd=e,e=i)}else Rd=e,e=i}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(ef)),e}())===i&&(r=Rd,t.substr(Rd,2)===sc?(o=sc,Rd+=2):(o=i,0===Nd&&Vd(lc)),o!==i&&(a=ng())!==i?r=o=[o,a]:(Rd=r,r=i)),r===i&&(r=null),r!==i?e=n=uc(n,r):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(ac)),e}function $p(){var e;return Nd++,(e=function(){var e;return Nd++,(e=sg())===i&&(e=ag())===i&&(e=og()),Nd--,e===i&&0===Nd&&Vd(fc),e}())===i&&(e=function(){var e;return Nd++,(e=function(){var e,n,r;return Nd++,e=Rd,43===t.charCodeAt(Rd)?(n=Ho,Rd++):(n=i,0===Nd&&Vd(Go)),n!==i&&(r=sg())!==i?e=n=kf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Cf)),e}())===i&&(e=function(){var e,n,r;return Nd++,e=Rd,43===t.charCodeAt(Rd)?(n=Ho,Rd++):(n=i,0===Nd&&Vd(Go)),n!==i&&(r=ag())!==i?e=n=kf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(xf)),e}())===i&&(e=function(){var e,n,r;return Nd++,e=Rd,43===t.charCodeAt(Rd)?(n=Ho,Rd++):(n=i,0===Nd&&Vd(Go)),n!==i&&(r=og())!==i?e=n=wf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(_f)),e}()),Nd--,e===i&&0===Nd&&Vd(hc),e}())===i&&(e=Jp()),Nd--,e===i&&0===Nd&&Vd(cc),e}function Jp(){var e;return Nd++,(e=function(){var e,n,r;return Nd++,e=Rd,45===t.charCodeAt(Rd)?(n=us,Rd++):(n=i,0===Nd&&Vd(cs)),n!==i&&(r=sg())!==i?e=n=Sf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Of)),e}())===i&&(e=function(){var e,n,r;return Nd++,e=Rd,45===t.charCodeAt(Rd)?(n=us,Rd++):(n=i,0===Nd&&Vd(cs)),n!==i&&(r=ag())!==i?e=n=Sf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Tf)),e}())===i&&(e=function(){var e,n,r;return Nd++,e=Rd,45===t.charCodeAt(Rd)?(n=us,Rd++):(n=i,0===Nd&&Vd(cs)),n!==i&&(r=og())!==i?e=n=Sf(r):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Ef)),e}()),Nd--,e===i&&0===Nd&&Vd(dc),e}function eg(){var e,n;return Nd++,e=Rd,t.substr(Rd,4)===gc?(n=gc,Rd+=4):(n=i,0===Nd&&Vd(mc)),n===i&&(t.substr(Rd,4)===vc?(n=vc,Rd+=4):(n=i,0===Nd&&Vd(yc))),n!==i&&(n=bc()),(e=n)===i&&(e=Rd,t.substr(Rd,5)===_c?(n=_c,Rd+=5):(n=i,0===Nd&&Vd(wc)),n===i&&(t.substr(Rd,5)===xc?(n=xc,Rd+=5):(n=i,0===Nd&&Vd(kc))),n!==i&&(n=Cc()),e=n),Nd--,e===i&&(n=i,0===Nd&&Vd(pc)),e}function tg(){var e,n;return Nd++,e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,3)===Wf?(n=Wf,Rd+=3):(n=i,0===Nd&&Vd(Kf)),n!==i){for(r=[],Xf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Zf)),o===i&&(o=ug());o!==i;)r.push(o),Xf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Zf)),o===i&&(o=ug());r!==i?(t.substr(Rd,3)===Wf?(o=Wf,Rd+=3):(o=i,0===Nd&&Vd(Kf)),o!==i?e=n=Vf(r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Gf)),e}())!==i&&(n=Sc(n)),(e=n)===i&&(e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,t.substr(Rd,3)===$f?(n=$f,Rd+=3):(n=i,0===Nd&&Vd(Jf)),n!==i){for(r=[],eh.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(th)),o===i&&(o=ug());o!==i;)r.push(o),eh.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(th)),o===i&&(o=ug());r!==i?(t.substr(Rd,3)===$f?(o=$f,Rd+=3):(o=i,0===Nd&&Vd(Jf)),o!==i?e=n=Vf(r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Yf)),e}())!==i&&(n=Sc(n)),(e=n)===i&&(e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,39===t.charCodeAt(Rd)?(n=Ff,Rd++):(n=i,0===Nd&&Vd(Mf)),n!==i){for(r=[],Lf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Bf)),o===i&&(o=ug());o!==i;)r.push(o),Lf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Bf)),o===i&&(o=ug());r!==i?(39===t.charCodeAt(Rd)?(o=Ff,Rd++):(o=i,0===Nd&&Vd(Mf)),o!==i?e=n=Vf(r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Nf)),e}())!==i&&(n=Sc(n)),(e=n)===i&&(e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,34===t.charCodeAt(Rd)?(n=zf,Rd++):(n=i,0===Nd&&Vd(qf)),n!==i){for(r=[],Qf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Hf)),o===i&&(o=ug());o!==i;)r.push(o),Qf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Hf)),o===i&&(o=ug());r!==i?(34===t.charCodeAt(Rd)?(o=zf,Rd++):(o=i,0===Nd&&Vd(qf)),o!==i?e=n=Vf(r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Uf)),e}())!==i&&(n=Sc(n)),e=n))),Nd--,e===i&&(n=i,0===Nd&&Vd(Ec)),e}function ng(){var e,t;return Nd++,e=Rd,(t=rg())!==i&&(t=Oc(t)),(e=t)===i&&(e=Rd,(t=function(){var e,t;return Nd++,e=Rd,(t=function(){var e,t,n;return Nd++,e=Rd,(t=ig())!==i&&(n=mg())!==i?e=t=Qc(t,n):(Rd=e,e=i),Nd--,e===i&&(t=i,0===Nd&&Vd(qc)),e}())!==i&&(t=Rc(t)),(e=t)===i&&(e=Rd,(t=ig())!==i&&(t=Pc(t)),e=t),Nd--,e===i&&(t=i,0===Nd&&Vd(Ic)),e}())!==i&&(t=Ac(t)),e=t),Nd--,e===i&&(t=i,0===Nd&&Vd(Tc)),e}function rg(){var e,n,r,o;if(Nd++,e=Rd,60===t.charCodeAt(Rd)?(n=Fa,Rd++):(n=i,0===Nd&&Vd(Ma)),n!==i){for(r=[],Mc.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Lc));o!==i;)r.push(o),Mc.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(Lc));r!==i?(62===t.charCodeAt(Rd)?(o=La,Rd++):(o=i,0===Nd&&Vd(Ba)),o!==i?e=n=Bc(r):(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Fc)),e}function ig(){var e,n,r;return Nd++,e=Rd,(n=function(){var e,n,r,o;if(Nd++,e=Rd,(n=hg())!==i){for(r=[],(o=gg())===i&&(46===t.charCodeAt(Rd)?(o=Nr,Rd++):(o=i,0===Nd&&Vd(Fr)));o!==i;)r.push(o),(o=gg())===i&&(46===t.charCodeAt(Rd)?(o=Nr,Rd++):(o=i,0===Nd&&Vd(Fr)));r!==i?e=n=hd(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(fd)),e}())===i&&(n=null),n!==i?(58===t.charCodeAt(Rd)?(r=Uc,Rd++):(r=i,0===Nd&&Vd(zc)),r!==i?e=n=Ac(n):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Vc)),e}function og(){var e,n,r;if(Nd++,n=[],cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff)),r!==i)for(;r!==i;)n.push(r),cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff));else n=i;return n!==i&&(n=hf(n)),Nd--,(e=n)===i&&(n=i,0===Nd&&Vd(uf)),e}function ag(){var e,n,r,o,a;if(Nd++,e=Rd,n=[],cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff)),r!==i)for(;r!==i;)n.push(r),cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff));else n=i;if(n!==i)if(46===t.charCodeAt(Rd)?(r=Nr,Rd++):(r=i,0===Nd&&Vd(Fr)),r!==i){for(o=[],cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff));a!==i;)o.push(a),cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff));o!==i?e=n=pf(n,r,o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i)if(e=Rd,46===t.charCodeAt(Rd)?(n=Nr,Rd++):(n=i,0===Nd&&Vd(Fr)),n!==i){if(r=[],cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff)),o!==i)for(;o!==i;)r.push(o),cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff));else r=i;r!==i?e=n=gf(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(df)),e}function sg(){var e,n,r,o,a;if(Nd++,e=Rd,n=[],cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff)),r!==i)for(;r!==i;)n.push(r),cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff));else n=i;if(n!==i)if(46===t.charCodeAt(Rd)?(r=Nr,Rd++):(r=i,0===Nd&&Vd(Fr)),r!==i){for(o=[],cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff));a!==i;)o.push(a),cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff));o!==i&&(a=lg())!==i?e=n=vf(n,r,o,a):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;if(e===i){if(e=Rd,46===t.charCodeAt(Rd)?(n=Nr,Rd++):(n=i,0===Nd&&Vd(Fr)),n!==i){if(r=[],cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff)),o!==i)for(;o!==i;)r.push(o),cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff));else r=i;r!==i&&(o=lg())!==i?e=n=yf(n,r,o):(Rd=e,e=i)}else Rd=e,e=i;if(e===i){if(e=Rd,n=[],cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff)),r!==i)for(;r!==i;)n.push(r),cf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ff));else n=i;n!==i&&(r=lg())!==i?e=n=bf(n,r):(Rd=e,e=i)}}return Nd--,e===i&&(n=i,0===Nd&&Vd(mf)),e}function lg(){var e,n,r,o,a;if(Nd++,e=Rd,If.test(t.charAt(Rd))?(n=t.charAt(Rd),Rd++):(n=i,0===Nd&&Vd(Rf)),n!==i)if(Pf.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(jf)),r===i&&(r=null),r!==i){if(o=[],cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff)),a!==i)for(;a!==i;)o.push(a),cf.test(t.charAt(Rd))?(a=t.charAt(Rd),Rd++):(a=i,0===Nd&&Vd(ff));else o=i;o!==i?e=n=Df(n,r,o):(Rd=e,e=i)}else Rd=e,e=i;else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(Af)),e}function ug(){var e,n,r;return Nd++,e=Rd,92===t.charCodeAt(Rd)?(n=rh,Rd++):(n=i,0===Nd&&Vd(ih)),n!==i?(oh.test(t.charAt(Rd))?(r=t.charAt(Rd),Rd++):(r=i,0===Nd&&Vd(ah)),r!==i?e=n=[n,r]:(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(nh)),e}function cg(){var e,n,r,o;if(Nd++,e=Rd,40===t.charCodeAt(Rd)?(n=U,Rd++):(n=i,0===Nd&&Vd(z)),n!==i){for(r=[],o=fg();o!==i;)r.push(o),o=fg();r!==i?(41===t.charCodeAt(Rd)?(o=W,Rd++):(o=i,0===Nd&&Vd(K)),o!==i?e=n=lh():(Rd=e,e=i)):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(sh)),e}function fg(){var e;return Nd++,ch.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(fh)),e===i&&(hh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(dh)),e===i&&(ph.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(gh)),e===i&&(mh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(vh)),e===i&&(e=function(){var e,n,r,o;if(Nd++,e=Rd,35===t.charCodeAt(Rd)?(n=bh,Rd++):(n=i,0===Nd&&Vd(_h)),n!==i){for(r=[],wh.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(xh));o!==i;)r.push(o),wh.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(xh));r!==i?e=n=[n,r]:(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(yh)),e}())))),Nd--,e===i&&0===Nd&&Vd(uh),e}function hg(){var e;return Nd++,Eh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Sh)),e===i&&(Th.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Oh)),e===i&&(Ah.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Ih)),e===i&&(Rh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Ph)),e===i&&(jh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Dh)),e===i&&(Nh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Fh)),e===i&&(Mh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Lh)),e===i&&(Bh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Vh)),e===i&&(Uh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(zh)),e===i&&(qh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Qh)),e===i&&(Hh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Gh)),e===i&&(Wh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Kh)),e===i&&(Xh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Zh)),e===i&&(Yh.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd($h))))))))))))))),Nd--,e===i&&0===Nd&&Vd(Ch),e}function dg(){var e;return Nd++,(e=hg())===i&&(95===t.charCodeAt(Rd)?(e=ed,Rd++):(e=i,0===Nd&&Vd(td))),Nd--,e===i&&0===Nd&&Vd(Jh),e}function pg(){var e,n,r,o;if(Nd++,e=Rd,(n=dg())===i&&(cf.test(t.charAt(Rd))?(n=t.charAt(Rd),Rd++):(n=i,0===Nd&&Vd(ff))),n!==i){for(r=[],(o=dg())===i&&(cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff)),o===i&&(rd.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(id)),o===i&&(od.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ad)),o===i&&(sd.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ld))))));o!==i;)r.push(o),(o=dg())===i&&(cf.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ff)),o===i&&(rd.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(id)),o===i&&(od.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ad)),o===i&&(sd.test(t.charAt(Rd))?(o=t.charAt(Rd),Rd++):(o=i,0===Nd&&Vd(ld))))));r!==i?e=n=ud(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(nd)),e}function gg(){var e;return Nd++,(e=dg())===i&&(45===t.charCodeAt(Rd)?(e=us,Rd++):(e=i,0===Nd&&Vd(cs)),e===i&&(cf.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(ff)),e===i&&(rd.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(id)),e===i&&(od.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(ad)),e===i&&(sd.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(ld))))))),Nd--,e===i&&0===Nd&&Vd(cd),e}function mg(){var e,n,r,o;if(Nd++,e=Rd,(n=dg())===i&&(cf.test(t.charAt(Rd))?(n=t.charAt(Rd),Rd++):(n=i,0===Nd&&Vd(ff)),n===i&&(58===t.charCodeAt(Rd)?(n=Uc,Rd++):(n=i,0===Nd&&Vd(zc)),n===i&&(n=vg()))),n!==i){for(r=[],(o=gg())===i&&(46===t.charCodeAt(Rd)?(o=Nr,Rd++):(o=i,0===Nd&&Vd(Fr)),o===i&&(58===t.charCodeAt(Rd)?(o=Uc,Rd++):(o=i,0===Nd&&Vd(zc)),o===i&&(o=vg())));o!==i;)r.push(o),(o=gg())===i&&(46===t.charCodeAt(Rd)?(o=Nr,Rd++):(o=i,0===Nd&&Vd(Fr)),o===i&&(58===t.charCodeAt(Rd)?(o=Uc,Rd++):(o=i,0===Nd&&Vd(zc)),o===i&&(o=vg())));r!==i?e=n=pd(n,r):(Rd=e,e=i)}else Rd=e,e=i;return Nd--,e===i&&(n=i,0===Nd&&Vd(dd)),e}function vg(){var e;return Nd++,(e=function(){var e,n,r,o,a;return Nd++,n=Rd,37===t.charCodeAt(Rd)?(r=vd,Rd++):(r=i,0===Nd&&Vd(yd)),r!==i&&(o=yg())!==i&&(a=yg())!==i?n=r=[r,o,a]:(Rd=n,n=i),n!==i&&(n=bd(n)),Nd--,(e=n)===i&&(n=i,0===Nd&&Vd(md)),e}())===i&&(e=function(){var e,n,r;return Nd++,e=Rd,92===t.charCodeAt(Rd)?(n=rh,Rd++):(n=i,0===Nd&&Vd(ih)),n!==i?(95===t.charCodeAt(Rd)?(r=ed,Rd++):(r=i,0===Nd&&Vd(td)),r===i&&(126===t.charCodeAt(Rd)?(r=Sd,Rd++):(r=i,0===Nd&&Vd(Td)),r===i&&(46===t.charCodeAt(Rd)?(r=Nr,Rd++):(r=i,0===Nd&&Vd(Fr)),r===i&&(45===t.charCodeAt(Rd)?(r=us,Rd++):(r=i,0===Nd&&Vd(cs)),r===i&&(33===t.charCodeAt(Rd)?(r=Ko,Rd++):(r=i,0===Nd&&Vd(Xo)),r===i&&(36===t.charCodeAt(Rd)?(r=$c,Rd++):(r=i,0===Nd&&Vd(Jc)),r===i&&(38===t.charCodeAt(Rd)?(r=Od,Rd++):(r=i,0===Nd&&Vd(Ad)),r===i&&(39===t.charCodeAt(Rd)?(r=Ff,Rd++):(r=i,0===Nd&&Vd(Mf)),r===i&&(40===t.charCodeAt(Rd)?(r=U,Rd++):(r=i,0===Nd&&Vd(z)),r===i&&(41===t.charCodeAt(Rd)?(r=W,Rd++):(r=i,0===Nd&&Vd(K)),r===i&&(42===t.charCodeAt(Rd)?(r=X,Rd++):(r=i,0===Nd&&Vd(Z)),r===i&&(43===t.charCodeAt(Rd)?(r=Ho,Rd++):(r=i,0===Nd&&Vd(Go)),r===i&&(44===t.charCodeAt(Rd)?(r=Qi,Rd++):(r=i,0===Nd&&Vd(Hi)),r===i&&(59===t.charCodeAt(Rd)?(r=Yt,Rd++):(r=i,0===Nd&&Vd($t)),r===i&&(58===t.charCodeAt(Rd)?(r=Uc,Rd++):(r=i,0===Nd&&Vd(zc)),r===i&&(61===t.charCodeAt(Rd)?(r=Pa,Rd++):(r=i,0===Nd&&Vd(ja)),r===i&&(47===t.charCodeAt(Rd)?(r=jo,Rd++):(r=i,0===Nd&&Vd(Do)),r===i&&(63===t.charCodeAt(Rd)?(r=qo,Rd++):(r=i,0===Nd&&Vd(Qo)),r===i&&(35===t.charCodeAt(Rd)?(r=bh,Rd++):(r=i,0===Nd&&Vd(_h)),r===i&&(64===t.charCodeAt(Rd)?(r=tf,Rd++):(r=i,0===Nd&&Vd(nf)),r===i&&(37===t.charCodeAt(Rd)?(r=vd,Rd++):(r=i,0===Nd&&Vd(yd)))))))))))))))))))))),r!==i?e=n=Id(r):(Rd=e,e=i)):(Rd=e,e=i),Nd--,e===i&&(n=i,0===Nd&&Vd(Ed)),e}()),Nd--,e===i&&0===Nd&&Vd(gd),e}function yg(){var e;return Nd++,cf.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(ff)),e===i&&(wd.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(xd)),e===i&&(kd.test(t.charAt(Rd))?(e=t.charAt(Rd),Rd++):(e=i,0===Nd&&Vd(Cd)))),Nd--,e===i&&0===Nd&&Vd(_d),e}var bg,_g,wg,xg,kg,Cg,Eg,Sg=function(e){for(var t="",n=0;n1?new t(e,r):1===i?new o.a(e[0],r):new a.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o1)for(var n=1;n ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):ee(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(ge,"\n ")}function _e(e,t){return new Error(be(e,t))}var we="ngDebugContext",xe="ngOriginalError",ke="ngErrorLogger";function Ce(e){return e[we]}function Ee(e){return e[xe]}function Se(e){for(var t=[],n=1;n1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Ae(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n=o+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[xe]=t,r}(0,r):Error(o);return a.addKey=Ie,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a[xe]=r,a}function Ie(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Re(e,t){for(var n=[],r=0,i=t.length;r=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Ae(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Oe(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function pn(e,t){return Array.isArray(t)?t.reduce(pn,e):Object(r.a)({},e,t)}var gn=function(){function e(e,t,n,r,s,l){var u=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=an(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new i.a(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),f=new i.a(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){qt.assertNotInAngularZone(),$(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){qt.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,a.a.call(f))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof _t?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Ot?null:this._injector.get(At),o=n.create(se.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(Zt,null);return a&&o.injector.get(Yt).registerApplication(o.location.nativeElement,a),this._loadComponent(o),an()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Bt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ft,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Lt("ApplicationRef#tick()"),e}();function mn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var vn=function(e,t,n,r,i,o){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o},yn=function(){},bn=function(){},_n=function(){},wn=function(){},xn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),kn=function(){},Cn=function(e){this.nativeElement=e},En=function(){},Sn=new Map;function Tn(e,t){var n=Sn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);Sn.set(e,t)}function On(e){var t=Sn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var An=function(){function e(){this.dirty=!0,this._results=[],this.changes=new zt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Y()]=function(){return this._results[Y()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),In=function(){},Rn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Pn=function(){function e(e,t){this._compiler=e,this._config=t||Rn}return e.prototype.load=function(e){return this._compiler instanceof mt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=e.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("Jnfr")(i).then(function(e){return e[o]}).then(function(e){return jn(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("Jnfr")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return jn(e,r,i)})},e}();function jn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dn=function(){},Nn=function(){},Fn=function(){},Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.b)(t,e),t}(Fn),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.b)(t,e),t}(Mn),Bn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Vn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Vn=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return zn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return qn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Bn);function Un(e){return e.map(function(e){return e.nativeElement})}function zn(e,t,n){e.childNodes.forEach(function(e){e instanceof Vn&&(t(e)&&n.push(e),zn(e,t,n))})}function qn(e,t,n){e instanceof Vn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Vn&&qn(e,t,n)})}var Qn=new Map;function Hn(e){return Qn.get(e)||null}function Gn(e){Qn.set(e.nativeNode,e)}function Wn(e,t){var n=Zn(e),r=Zn(t);return n&&r?function(e,t,n){for(var r=e[Y()](),i=t[Y()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(e,t,Wn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||J(e,t)}var Kn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Xn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Zn(e){return!!Yn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Y()in e)}function Yn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var $n=function(){function e(){}return e.prototype.supports=function(e){return Zn(e)},e.prototype.create=function(e){return new er(e)},e}(),Jn=function(e,t){return t},er=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Jn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Bi(n,t),Pr.dirtyParentQueries(r),Mi(r),r}function Fi(e,t,n){var r=t?Jr(t,t.def.lastRenderRootNode):e.renderElement;ui(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Mi(e){ui(e,3,null,null,void 0)}function Li(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Bi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Vi=new Object;function Ui(e,t,n,r,i,o){return new qi(e,t,n,r,i,o)}function zi(e){return e.viewDefFactory}var qi=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=li(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Pr.createRootView(e,t||[],n,i,r,Vi),s=Or(a,o).instance;return n&&a.renderer.setAttribute(Tr(a,0).renderElement,"ng-version",B.full),new Qi(a,new Ki(a),s)},t}(_t),Qi=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Cn(Tr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function Hi(e,t,n){return new Gi(e,t,n)}var Gi=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Cn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=$r(e),e=e.parent;return e?new $i(e,t):new $i(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ni(this._data,e);Pr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Ki(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Ot||(i=o.get(At));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=e;return i=a._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Li(o,r,i),function(e,t){var n=Yr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),Pr.dirtyParentQueries(i),Fi(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(e._view);return i=t,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Bi(o,r),null==i&&(i=o.length),Li(o,i,a),Pr.dirtyParentQueries(a),Mi(a),Fi(n,i>0?o[i-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ni(this._data,e);t&&Pr.destroyView(t)},e.prototype.detach=function(e){var t=Ni(this._data,e);return t?new Ki(t):null},e}();function Wi(e){return new Ki(e)}var Ki=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return ui(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Kr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Pr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Pr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Pr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Mi(this._view),Pr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Xi(e,t){return new Zi(e,t)}var Zi=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.b)(t,e),t.prototype.createEmbeddedView=function(e){return new Ki(Pr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Cn(Tr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Yi(e,t){return new $i(e,t)}var $i=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=se.THROW_IF_NOT_FOUND),Pr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Lr(e)},t)},e}();function Ji(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Tr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Sr(e,n.nodeIndex).renderText;if(20240&n.flags)return Or(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function eo(e){return new to(e.renderer)}var to=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=gi(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return wo(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(ko(e,t,n,i[0]));case 2:return r(ko(e,t,n,i[0]),ko(e,t,n,i[1]));case 3:return r(ko(e,t,n,i[0]),ko(e,t,n,i[1]),ko(e,t,n,i[2]));default:for(var a=Array(o),s=0;s0)u=g,Qo(g)||(c=g);else for(;u&&p===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&Qo(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Fr,updateRenderer:r||Fr,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function Qo(e){return 0!=(1&e.flags)&&null===e.element.name}function Ho(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Go(e,t,n,r){var i=Xo(e.root,e.renderer,e,t,n);return Zo(i,e.component,r),Yo(i),i}function Wo(e,t,n){var r=Xo(e,e.renderer,null,null,t);return Zo(r,n,n),Yo(r),r}function Ko(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Xo(e.root,i,e,t.element.componentProvider,n)}function Xo(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Zo(e,t,n){e.component=t,e.context=n}function Yo(e){var t;ti(e)&&(t=Tr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Ti(e,t,0,n)&&(d=!0),h>1&&Ti(e,t,1,r)&&(d=!0),h>2&&Ti(e,t,2,i)&&(d=!0),h>3&&Ti(e,t,3,o)&&(d=!0),h>4&&Ti(e,t,4,a)&&(d=!0),h>5&&Ti(e,t,5,s)&&(d=!0),h>6&&Ti(e,t,6,l)&&(d=!0),h>7&&Ti(e,t,7,u)&&(d=!0),h>8&&Ti(e,t,8,c)&&(d=!0),h>9&&Ti(e,t,9,f)&&(d=!0),d}(e,t,n,r,i,o,a,s,l,u,c,f);case 2:return function(e,t,n,r,i,o,a,s,l,u,c,f){var h=!1,d=t.bindings,p=d.length;if(p>0&&Gr(e,t,0,n)&&(h=!0),p>1&&Gr(e,t,1,r)&&(h=!0),p>2&&Gr(e,t,2,i)&&(h=!0),p>3&&Gr(e,t,3,o)&&(h=!0),p>4&&Gr(e,t,4,a)&&(h=!0),p>5&&Gr(e,t,5,s)&&(h=!0),p>6&&Gr(e,t,6,l)&&(h=!0),p>7&&Gr(e,t,7,u)&&(h=!0),p>8&&Gr(e,t,8,c)&&(h=!0),p>9&&Gr(e,t,9,f)&&(h=!0),h){var g=t.text.prefix;p>0&&(g+=zo(n,d[0])),p>1&&(g+=zo(r,d[1])),p>2&&(g+=zo(i,d[2])),p>3&&(g+=zo(o,d[3])),p>4&&(g+=zo(a,d[4])),p>5&&(g+=zo(s,d[5])),p>6&&(g+=zo(l,d[6])),p>7&&(g+=zo(u,d[7])),p>8&&(g+=zo(c,d[8])),p>9&&(g+=zo(f,d[9]));var m=Sr(e,t.nodeIndex).renderText;e.renderer.setValue(m,g)}return h}(e,t,n,r,i,o,a,s,l,u,c,f);case 16384:return function(e,t,n,r,i,o,a,s,l,u,c,f){var h=Or(e,t.nodeIndex),d=h.instance,p=!1,g=void 0,m=t.bindings.length;return m>0&&Hr(e,t,0,n)&&(p=!0,g=Eo(e,h,t,0,n,g)),m>1&&Hr(e,t,1,r)&&(p=!0,g=Eo(e,h,t,1,r,g)),m>2&&Hr(e,t,2,i)&&(p=!0,g=Eo(e,h,t,2,i,g)),m>3&&Hr(e,t,3,o)&&(p=!0,g=Eo(e,h,t,3,o,g)),m>4&&Hr(e,t,4,a)&&(p=!0,g=Eo(e,h,t,4,a,g)),m>5&&Hr(e,t,5,s)&&(p=!0,g=Eo(e,h,t,5,s,g)),m>6&&Hr(e,t,6,l)&&(p=!0,g=Eo(e,h,t,6,l,g)),m>7&&Hr(e,t,7,u)&&(p=!0,g=Eo(e,h,t,7,u,g)),m>8&&Hr(e,t,8,c)&&(p=!0,g=Eo(e,h,t,8,c,g)),m>9&&Hr(e,t,9,f)&&(p=!0,g=Eo(e,h,t,9,f,g)),g&&d.ngOnChanges(g),65536&t.flags&&Er(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),p}(e,t,n,r,i,o,a,s,l,u,c,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,s,l,u,c,f){var h=t.bindings,d=!1,p=h.length;if(p>0&&Gr(e,t,0,n)&&(d=!0),p>1&&Gr(e,t,1,r)&&(d=!0),p>2&&Gr(e,t,2,i)&&(d=!0),p>3&&Gr(e,t,3,o)&&(d=!0),p>4&&Gr(e,t,4,a)&&(d=!0),p>5&&Gr(e,t,5,s)&&(d=!0),p>6&&Gr(e,t,6,l)&&(d=!0),p>7&&Gr(e,t,7,u)&&(d=!0),p>8&&Gr(e,t,8,c)&&(d=!0),p>9&&Gr(e,t,9,f)&&(d=!0),d){var g=Ar(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(h.length),p>0&&(m[0]=n),p>1&&(m[1]=r),p>2&&(m[2]=i),p>3&&(m[3]=o),p>4&&(m[4]=a),p>5&&(m[5]=s),p>6&&(m[6]=l),p>7&&(m[7]=u),p>8&&(m[8]=c),p>9&&(m[9]=f);break;case 64:m={},p>0&&(m[h[0].name]=n),p>1&&(m[h[1].name]=r),p>2&&(m[h[2].name]=i),p>3&&(m[h[3].name]=o),p>4&&(m[h[4].name]=a),p>5&&(m[h[5].name]=s),p>6&&(m[h[6].name]=l),p>7&&(m[h[7].name]=u),p>8&&(m[h[8].name]=c),p>9&&(m[h[9].name]=f);break;case 128:var v=n;switch(p){case 1:m=v.transform(n);break;case 2:m=v.transform(r);break;case 3:m=v.transform(r,i);break;case 4:m=v.transform(r,i,o);break;case 5:m=v.transform(r,i,o,a);break;case 6:m=v.transform(r,i,o,a,s);break;case 7:m=v.transform(r,i,o,a,s,l);break;case 8:m=v.transform(r,i,o,a,s,l,u);break;case 9:m=v.transform(r,i,o,a,s,l,u,c);break;case 10:m=v.transform(r,i,o,a,s,l,u,c,f)}}g.value=m}return d}(e,t,n,r,i,o,a,s,l,u,c,f);default:throw"unreachable"}}(e,t,r,i,o,a,s,l,u,c,f,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Wr(e,t,0,n),h>1&&Wr(e,t,1,r),h>2&&Wr(e,t,2,i),h>3&&Wr(e,t,3,o),h>4&&Wr(e,t,4,a),h>5&&Wr(e,t,5,s),h>6&&Wr(e,t,6,l),h>7&&Wr(e,t,7,u),h>8&&Wr(e,t,8,c),h>9&&Wr(e,t,9,f)}(e,t,r,i,o,a,s,l,u,c,f,h):function(e,t,n){for(var r=0;r0&&cs(n[t-1],r.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(hs(t),n=t.next),null==n){for(;t&&!t.next;)hs(t),t=fs(t,e);hs(t||e),n=t&&t.next}t=n}}(r.data),ls(e,r,!1),e.query&&e.query.removeView(e,r,t),r}function cs(e,t){e.next=t,e.data.next=t?t.data:null}function fs(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function hs(e){if(e.cleanup){for(var t=e.cleanup,n=0;n=bs.length?bs[e]=null:s.staticData=bs[e],ys?(ws=null,vs.view!==_s&&2!=(3&vs.flags)||(ngDevMode&&ns(vs.child,null,"previousNode.child"),vs.child=s)):vs&&(ngDevMode&&ns(vs.next,null,"previousNode.next"),vs.next=s)),vs=s,ys=!0,s}function js(e,t,n,r){var i,o;if(null==t){var a=ks[e];o=a&&a.native}else{ngDevMode&&ns(_s.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof t,l=s?t.tag:t;if(null===l)throw"for now name is required";o=gs.createElement(l);var u=null;if(s){var c=Ds(t.template);u=Ys(Rs(-1,ms.createRenderer(o,t.rendererType),c))}null==(i=Ps(e,3,o,u)).staticData&&(ngDevMode&&nl(e-1),i.staticData=bs[e]=Bs(l,n||null,null,r||null)),n&&function(e,t){ngDevMode&&ns(t.length%2,0,"attrs.length % 2");for(var n=gs.setAttribute,r=0;r>12,i=r,o=r+((4092&e)>>2);i=bs.length&&(bs[e]=n,r)){ngDevMode&&rs(vs.staticData,"previousOrParentNode.staticData");var a=vs.staticData;(a.localNames||(a.localNames=[])).push(r,e)}var s=n.diPublic;s&&s(n);var l=vs.staticData;l&&l.attrs&&function(e,t,r){var i=((4092&vs.flags)>>2)-1,o=r.initialInputs;(void 0===o||i>=o.length)&&(o=function(e,t,n){var r=n.initialInputs||(n.initialInputs=[]);r[e]=null;for(var i=n.attrs,o=0;o=n.length||null==n[e])&&(n[e]=[]),n[e]}(e,t));As(a,Ps(null,2,null,a)),n.nextIndex++}return!o}function Xs(){ys=!1;var e=vs=_s.node,t=vs.parent;ngDevMode&&as(e,2),ngDevMode&&as(t,0);var n=t.data,r=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==r||r.data.id!==e.data.id)&&(function(e,t,n){var r=e.data,i=r.views;n>0&&cs(i[n-1],t),n=i.length&&i.push(t),r.nextIndex<=n&&r.nextIndex++,null!==e.data.renderParent&&ls(e,t,!0,function(t,n,r){var i=n.views;return t+1")}function rl(e,t){void 0===t&&(t={});var n,r=t.rendererFactory||Ts,i=e.ngComponentDef,o=Fs(r,t.host||i.tag),a=As(Rs(-1,r.createRenderer(o,i.rendererType),[]),null);try{ys=!1,vs=null,Ps(0,3,o,Rs(-1,gs,Ds(i.template))),n=qs(1,i.n(),i)}finally{Is(a)}return t.features&&t.features.forEach(function(e){return e(n,i)}),il(n),n}function il(e){ngDevMode&&rs(e,"component");var t=e[Os];ngDevMode&&!t&&Ns("Not a directive instance",e),ngDevMode&&rs(t.data,"hostNode.data"),function(e,n,r,i){var o=As(n,t);try{ms.begin&&ms.begin(),r.constructor.ngComponentDef.r(1,0)}finally{ms.end&&ms.end(),n.creationMode=!1,Is(o)}}(0,t.view,e)}function ol(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){Zs(t,n,e.template)},h:e.hostBindings||sl,inputs:ll(e.inputs),outputs:ll(e.outputs),methods:ll(e.methods),rendererType:Qr(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var al={};function sl(){}function ll(e){if(null==e)return al;var t={};for(var n in e)t[e[n]]=n;return t}function ul(e,t){return{type:7,name:e,definitions:t,options:{}}}function cl(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function fl(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function hl(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function dl(e){return{type:6,styles:e,offset:null}}function pl(e,t,n){return{type:0,name:e,styles:t,options:n}}function gl(e){return{type:5,steps:e}}function ml(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var vl="*";function yl(e,t){return ul(e,t)}function bl(e,t){return cl(e,t)}function _l(e){return fl(e)}function wl(e){return hl(e)}function xl(e){return dl(e)}function kl(e,t){return pl(e,t)}function Cl(e){return gl(e)}function El(e,t){return ml(e,t)}}).call(t,n("DuR2"))},WmaG:function(e,t,n){(function(r,i,o){var a;!function(){var s="undefined"!=typeof r&&r.versions&&r.versions.node,l=!s&&("undefined"!=typeof window||"undefined"!=typeof self);l&&"undefined"==typeof i&&("undefined"!=typeof window?i=window:"undefined"!=typeof self?i=self:"undefined"!=typeof $&&(i=$));var u=function(e){function t(){}e.compact=function(t,n,r,i){return arguments.length<2?e.nextTick(function(){i(new TypeError("Could not compact, too few arguments."))}):("function"==typeof r&&(i=r,r={}),r=r||{},null===n?e.nextTick(function(){i(new S("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"}))}):null===t?e.nextTick(function(){i(null,null)}):("base"in r||(r.base="string"==typeof t?t:""),"compactArrays"in r||(r.compactArrays=!0),"graph"in r||(r.graph=!1),"skipExpansion"in r||(r.skipExpansion=!1),"documentLoader"in r||(r.documentLoader=e.loadDocument),"link"in r||(r.link=!1),r.link&&(r.skipExpansion=!0),void function(t,n,r){if(n.skipExpansion)return e.nextTick(function(){r(null,t)});e.expand(t,n,r)}(t,r,function(t,o){if(t)return i(new S("Could not expand input before compaction.","jsonld.CompactError",{cause:t}));var a=Z(r);e.processContext(a,n,r,function(e,t){if(e)return i(new S("Could not process context before compaction.","jsonld.CompactError",{cause:e}));var a;try{a=(new T).compact(t,null,o,r)}catch(e){return i(e)}!function(e,t,r,o){o.compactArrays&&!o.graph&&J(t)?1===t.length?t=t[0]:0===t.length&&(t={}):o.graph&&$(t)&&(t=[t]),$(n)&&"@context"in n&&(n=n["@context"]),J(n=ce(n))||(n=[n]);var a=n;n=[];for(var s=0;s0)&&n.push(a[s]);var l=n.length>0;if(1===n.length&&(n=n[0]),J(t)){var u=W(r,"@graph"),c=t;t={},l&&(t["@context"]=n),t[u]=c}else if($(t)&&l)for(var f in c=t,t={"@context":n},c)t[f]=c[f];i(null,t,r)}(0,a,t,r)})})))},e.expand=function(t,n,r){if(arguments.length<1)return e.nextTick(function(){r(new TypeError("Could not expand, too few arguments."))});function i(e){"base"in n||(n.base=e.documentUrl||"");var t={document:ce(e.document),remoteContext:{"@context":e.contextUrl}};if("expandContext"in n){var i=ce(n.expandContext);t.expandContext="object"==typeof i&&"@context"in i?i:{"@context":i}}he(t,n,function(e,t){if(e)return r(e);var i;try{var o=new T,a=Z(n),s=t.document,l=t.remoteContext["@context"];t.expandContext&&(a=o.processContext(a,t.expandContext["@context"],n)),l&&(a=o.processContext(a,l,n)),$(i=o.expand(a,null,s,n,!1))&&"@graph"in i&&1===Object.keys(i).length?i=i["@graph"]:null===i&&(i=[]),J(i)||(i=[i])}catch(e){return r(e)}r(null,i)})}"function"==typeof n&&(r=n,n={}),"documentLoader"in(n=n||{})||(n.documentLoader=e.loadDocument),"keepFreeFloatingNodes"in n||(n.keepFreeFloatingNodes=!1),e.nextTick(function(){if("string"!=typeof t)i({contextUrl:null,documentUrl:null,document:t});else{var e=function(e,t){if(e)return r(e);try{if(!t.document)throw new S("No remote document found at the given URL.","jsonld.NullRemoteDocument");"string"==typeof t.document&&(t.document=JSON.parse(t.document))}catch(e){return r(new S("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:t}))}i(t)},o=n.documentLoader(t,e);o&&"then"in o&&o.then(e.bind(null,null),e)}})},e.flatten=function(t,n,r,i){if(arguments.length<1)return e.nextTick(function(){i(new TypeError("Could not flatten, too few arguments."))});"function"==typeof r?(i=r,r={}):"function"==typeof n&&(i=n,n=null,r={}),"base"in(r=r||{})||(r.base="string"==typeof t?t:""),"documentLoader"in r||(r.documentLoader=e.loadDocument),e.expand(t,r,function(t,o){if(t)return i(new S("Could not expand input before flattening.","jsonld.FlattenError",{cause:t}));var a;try{a=(new T).flatten(o)}catch(e){return i(e)}if(null===n)return i(null,a);r.graph=!0,r.skipExpansion=!0,e.compact(a,n,r,function(e,t){if(e)return i(new S("Could not compact flattened output.","jsonld.FlattenError",{cause:e}));i(null,t)})})},e.frame=function(t,n,r,i){if(arguments.length<2)return e.nextTick(function(){i(new TypeError("Could not frame, too few arguments."))});function o(n){var o,a=n.document;a?(o=a["@context"],n.contextUrl?(o?J(o)?o.push(n.contextUrl):o=[o,n.contextUrl]:o=n.contextUrl,a["@context"]=o):o=o||{}):o={},e.expand(t,r,function(t,n){if(t)return i(new S("Could not expand input before framing.","jsonld.FrameError",{cause:t}));var s=ce(r);s.isFrame=!0,s.keepFreeFloatingNodes=!0,e.expand(a,s,function(t,r){if(t)return i(new S("Could not expand frame before framing.","jsonld.FrameError",{cause:t}));var a;try{a=(new T).frame(n,r,s)}catch(e){return i(e)}s.graph=!0,s.skipExpansion=!0,s.link={},e.compact(a,o,s,function(t,n,r){if(t)return i(new S("Could not compact framed output.","jsonld.FrameError",{cause:t}));var o=W(r,"@graph");s.link={},n[o]=function t(n,r,i){if(J(r)){for(var o=[],a=0;a0&&"/"!==o.substr(-1)&&(o+="/"),o+=r.path),i.path=o}i.query=r.query}i.path=be(i.path,!!i.authority);var a=i.protocol;return null!==i.authority&&(a+="//"+i.authority),a+=i.path,null!==i.query&&(a+="?"+i.query),null!==r.fragment&&(a+="#"+r.fragment),""===a&&(a="./"),a}(t,n)},e.documentLoader=function(t,n){var r=new S("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed"});return s?n(r,{contextUrl:null,documentUrl:t,document:null}):e.promisify(function(e){e(r)})},e.loadDocument=function(t,n){var r=e.documentLoader(t,n);r&&"then"in r&&r.then(n.bind(null,null),n)},e.promises=function(t){t=t||{};var r=Array.prototype.slice,o=e.promisify,a=t.api||{},s=t.version||"jsonld.js";"string"==typeof t.api&&(t.version||(s=t.api),a={}),a.expand=function(t){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");return o.apply(null,[e.expand].concat(r.call(arguments)))},a.compact=function(t,n){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");return o.apply(null,[function(t,n,r,i){"function"==typeof r&&(i=r,r={}),e.compact(t,n,r=r||{},function(e,t){i(e,t)})}].concat(r.call(arguments)))},a.flatten=function(t){if(arguments.length<1)throw new TypeError("Could not flatten, too few arguments.");return o.apply(null,[e.flatten].concat(r.call(arguments)))},a.frame=function(t,n){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");return o.apply(null,[e.frame].concat(r.call(arguments)))},a.fromRDF=function(t){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");return o.apply(null,[e.fromRDF].concat(r.call(arguments)))},a.toRDF=function(t){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");return o.apply(null,[e.toRDF].concat(r.call(arguments)))},a.normalize=function(t){if(arguments.length<1)throw new TypeError("Could not normalize, too few arguments.");return o.apply(null,[e.normalize].concat(r.call(arguments)))},"jsonld.js"===s&&(a.link=function(t,n){if(arguments.length<2)throw new TypeError("Could not link, too few arguments.");return o.apply(null,[e.link].concat(r.call(arguments)))},a.objectify=function(t){return o.apply(null,[e.objectify].concat(r.call(arguments)))},a.createNodeMap=function(t){return o.apply(null,[e.createNodeMap].concat(r.call(arguments)))},a.merge=function(t){return o.apply(null,[e.merge].concat(r.call(arguments)))});try{e.Promise=i.Promise||n("hKoQ").Promise}catch(e){var l=function(){throw new Error("Unable to find a Promise implementation.")};for(var u in a)a[u]=l}return a},e.promisify=function(t){if(!e.Promise)try{e.Promise=i.Promise||n("hKoQ").Promise}catch(e){throw new Error("Unable to find a Promise implementation.")}var r=Array.prototype.slice.call(arguments,1);return new e.Promise(function(e,n){t.apply(null,r.concat(function(t,r){t?n(t):e(r)}))})},e.promises({api:e.promises}),(t.prototype=e.promises({version:"json-ld-1.0"})).toString=function(){return this instanceof t?"[object JsonLdProcessor]":"[object JsonLdProcessorPrototype]"},e.JsonLdProcessor=t;var a=!!Object.defineProperty;if(a)try{Object.defineProperty({},"x",{})}catch(e){a=!1}a&&(Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t})),l&&"undefined"==typeof i.JsonLdProcessor&&(a?Object.defineProperty(i,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:t}):i.JsonLdProcessor=t);var u="function"==typeof setImmediate&&setImmediate,c=u?function(e){u(e)}:function(e){setTimeout(e,0)};e.nextTick="object"==typeof r&&"function"==typeof r.nextTick?r.nextTick:c,e.setImmediate=u?c:e.nextTick,e.parseLinkHeader=function(e){for(var t={},n=e.match(/(?:<[^>]*?>|"[^"]*?"|[^,])+/g),r=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,i=0;i=+new Date)return t.ctx;delete this.cache[e],this.order.splice(this.order.indexOf(e),1)}return null},e.DocumentCache.prototype.set=function(e,t){this.order.length===this.size&&delete this.cache[this.order.shift()],this.order.push(e),this.cache[e]={ctx:t,expires:+new Date+this.expires}},e.ActiveContextCache=function(e){this.order=[],this.cache={},this.size=e||100},e.ActiveContextCache.prototype.get=function(e,t){var n=JSON.stringify(e),r=JSON.stringify(t),i=this.cache[n];return i&&r in i?i[r]:null},e.ActiveContextCache.prototype.set=function(e,t,n){if(this.order.length===this.size){var r=this.order.shift();delete this.cache[r.activeCtx][r.localCtx]}var i=JSON.stringify(e),o=JSON.stringify(t);this.order.push({activeCtx:i,localCtx:o}),i in this.cache||(this.cache[i]={}),this.cache[i][o]=ce(n)},e.cache={activeCtx:new e.ActiveContextCache},e.documentLoaders={},e.documentLoaders.jquery=function(t,n){n=n||{};var r=new e.RequestQueue,i="usePromise"in n?n.usePromise:"undefined"!=typeof Promise;return r.wrapLoader(i?function(t){return e.promisify(o,t)}:o);function o(r,i){return 0!==r.indexOf("http:")&&0!==r.indexOf("https:")?i(new S('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:r}),{contextUrl:null,documentUrl:r,document:null}):n.secure&&0!==r.indexOf("https")?i(new S('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:r}),{contextUrl:null,documentUrl:r,document:null}):void t.ajax({url:r,accepts:{json:"application/ld+json, application/json"},headers:{Accept:"application/ld+json, application/json"},dataType:"json",crossDomain:!0,success:function(t,n,o){var a={contextUrl:null,documentUrl:r,document:t},s=o.getResponseHeader("Content-Type"),l=o.getResponseHeader("Link");if(l&&"application/ld+json"!==s){if(J(l=e.parseLinkHeader(l)[C]))return i(new S("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:r}),a);l&&(a.contextUrl=l.target)}i(null,a)},error:function(e,t,n){i(new S("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:r,cause:n}),{contextUrl:null,documentUrl:r,document:null})}})}},e.documentLoaders.node=function(t){var r=!("strictSSL"in(t=t||{}))||t.strictSSL,i="maxRedirects"in t?t.maxRedirects:-1,o="request"in t?t.request:n("x7HW"),a="application/ld+json, application/json",s=n("x7HW"),l=new e.RequestQueue;if(t.usePromise)return l.wrapLoader(function(t){return e.promisify(c,t,[])});var u=t.headers||{};if("Accept"in u||"accept"in u)throw new RangeError('Accept header may not be specified as an option; only "'+a+'" is supported.');return l.wrapLoader(function(e,t){c(e,[],t)});function c(n,l,u){if(0!==n.indexOf("http:")&&0!==n.indexOf("https:"))return u(new S('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:n}),{contextUrl:null,documentUrl:n,document:null});if(t.secure&&0!==n.indexOf("https"))return u(new S('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:n}),{contextUrl:null,documentUrl:n,document:null});var f=null;if(null!==f)return u(null,f);var h={Accept:a};for(var d in t.headers)h[d]=t.headers[d];o({url:n,headers:h,strictSSL:r,followRedirect:!1},function(t,r,o){if(f={contextUrl:null,documentUrl:n,document:o||null},t)return u(new S("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:n,cause:t}),f);if(r.statusCode>=400)return u(new S("URL could not be dereferenced: "+s.STATUS_CODES[r.statusCode],"jsonld.InvalidUrl",{code:"loading document failed",url:n,httpStatusCode:r.statusCode}),f);if(r.headers.link&&"application/ld+json"!==r.headers["content-type"]){var a=e.parseLinkHeader(r.headers.link)[C];if(J(a))return u(new S("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:n}),f);a&&(f.contextUrl=a.target)}if(r.statusCode>=300&&r.statusCode<400&&r.headers.location)return l.length===i?u(new S("URL could not be dereferenced; there were too many redirects.","jsonld.TooManyRedirects",{code:"loading document failed",url:n,httpStatusCode:r.statusCode,redirects:l}),f):-1!==l.indexOf(n)?u(new S("URL could not be dereferenced; infinite redirection was detected.","jsonld.InfiniteRedirectDetected",{code:"recursive context inclusion",url:n,httpStatusCode:r.statusCode,redirects:l}),f):(l.push(n),c(r.headers.location,l,u));l.push(n),u(t,f)})}},e.documentLoaders.xhr=function(t){t=t||{};var n=/(^|(\r\n))link:/i,r=new e.RequestQueue,i="usePromise"in t?t.usePromise:"undefined"!=typeof Promise;return r.wrapLoader(i?function(t){return e.promisify(o,t)}:o);function o(r,i){if(0!==r.indexOf("http:")&&0!==r.indexOf("https:"))return i(new S('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:r}),{contextUrl:null,documentUrl:r,document:null});if(t.secure&&0!==r.indexOf("https"))return i(new S('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:r}),{contextUrl:null,documentUrl:r,document:null});var o=new(t.xhr||XMLHttpRequest);o.onload=function(){if(o.status>=400)return i(new S("URL could not be dereferenced: "+o.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:r,httpStatusCode:o.status}),{contextUrl:null,documentUrl:r,document:null});var t,a={contextUrl:null,documentUrl:r,document:o.response},s=o.getResponseHeader("Content-Type");if(n.test(o.getAllResponseHeaders())&&(t=o.getResponseHeader("Link")),t&&"application/ld+json"!==s){if(J(t=e.parseLinkHeader(t)[C]))return i(new S("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:r}),a);t&&(a.contextUrl=t.target)}i(null,a)},o.onerror=function(){i(new S("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:r}),{contextUrl:null,documentUrl:r,document:null})},o.open("GET",r,!0),o.setRequestHeader("Accept","application/ld+json, application/json"),o.send()}},e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new S('Unknown document loader type: "'+t+'"',"jsonld.UnknownDocumentLoader",{type:t});e.documentLoader=e.documentLoaders[t].apply(e,Array.prototype.slice.call(arguments,1))},e.processContext=function(t,n){var r={},i=2;arguments.length>3&&(r=arguments[2]||{},i+=1);var o=arguments[i];if("base"in r||(r.base=""),"documentLoader"in r||(r.documentLoader=e.loadDocument),null===n)return o(null,Z(r));$(n=ce(n))&&"@context"in n||(n={"@context":n}),he(n,r,function(e,n){if(e)return o(e);try{n=(new T).processContext(t,n,r)}catch(e){return o(e)}o(null,n)})},e.hasProperty=function(e,t){var n=!1;if(t in e){var r=e[t];n=!J(r)||r.length>0}return n},e.hasValue=function(t,n,r){var i=!1;if(e.hasProperty(t,n)){var o=t[n],a=se(o);if(J(o)||a){a&&(o=o["@list"]);for(var s=0;s0){var C=W(t,h);e.addValue(o,C,E)}}else{var E;if(te(d))E=W(t,d,null,{vocab:"@type"===h});else{E=[];for(var T=0;T1&&!(2===T&&"@index"in s))throw new S('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:s});"@set"in s&&(s=s["@set"],T=(h=Object.keys(s)).length)}else 1===T&&"@language"in s&&(s=null);return!$(s)||i.keepFreeFloatingNodes||o||null!==n&&"@graph"!==f||(0===T||"@value"in s||"@list"in s||1===T&&"@id"in s)&&(s=null),s},T.prototype.createNodeMap=function(e,t){var n={"@default":{}};return L(e,n,"@default",(t=t||{}).namer||t.issuer||new ge("_:b")),B(n)},T.prototype.flatten=function(e){for(var t=this.createNodeMap(e),n=[],r=Object.keys(t).sort(),i=0;i=r.MAX_TOTAL_DEPTH)return n(new Error("Maximum total call stack depth exceeded; normalization aborting."));!function i(){if(r.depth===r.MAX_DEPTH)return r.depth=0,r.running=!1,e.nextTick(i);var o=(new Date).getTime();if(r.running||(r.start=(new Date).getTime(),r.deadline=r.start+r.timeSlice),o1)return o();var s=a[0];r.canonicalIssuer.getId(s),delete i[s],delete r.hashToBlankNodes[e],t=!0,o()},e)}],e)},e)},function(e){var t=Object.keys(r.hashToBlankNodes).sort();r.forEach(t,function(e,t,n){var i=[],o=r.hashToBlankNodes[e];r.waterfall([function(e){r.forEach(o,function(e,t,n){if(r.canonicalIssuer.hasId(e))return n();var o=new ge("_:b");o.getId(e),r.hashNDegreeQuads(e,o,function(e,t){if(e)return n(e);i.push(t),n()})},e)},function(e){i.sort(function(e,t){return e.hasht.hash?1:0}),r.forEach(i,function(e,t,n){for(var i in e.issuer.existing)r.canonicalIssuer.getId(i);n()},e)}],n)},e)},function(e){var t=[];r.waterfall([function(e){r.forEach(r.quads,function(e,n,i){r.forEachComponent(e,function(e){"blank node"===e.type&&0!==e.value.indexOf(r.canonicalIssuer.prefix)&&(e.value=r.canonicalIssuer.getId(e.value))}),t.push(pe(e)),i()},e)},function(e){if(t.sort(),"application/nquads"===r.options.format)return n=t.join(""),e();n=de(t.join("")),e()}],e)}],function(e){t(e,n)})},N.prototype.hashFirstDegreeQuads=function(e,t){var n=this,r=n.blankNodeInfo[e];if("hash"in r)return t(null,r.hash);var i=[];n.forEach(r.quads,function(t,r,o){var a={predicate:t.predicate};n.forEachComponent(t,function(t,r){a[r]=n.modifyFirstDegreeComponent(e,t,r)}),i.push(pe(a)),o()},function(e){if(e)return t(e);i.sort(),r.hash=ve.hashNQuads(n.name,i),t(null,r.hash)})},N.prototype.modifyFirstDegreeComponent=function(e,t){return"blank node"!==t.type?t:((t=ce(t)).value=t.value===e?"_:a":"_:z",t)},N.prototype.hashRelatedBlankNode=function(e,t,n,r,i){var o,a=this;a.waterfall([function(t){return a.canonicalIssuer.hasId(e)?(o=a.canonicalIssuer.getId(e),t()):n.hasId(e)?(o=n.getId(e),t()):void a.hashFirstDegreeQuads(e,function(e,n){if(e)return t(e);o=n,t()})}],function(e){if(e)return i(e);var n=new ve(a.name);return n.update(r),"g"!==r&&n.update(a.getRelatedPredicate(t)),n.update(o),i(null,n.digest())})},N.prototype.getRelatedPredicate=function(e){return"<"+e.predicate.value+">"},N.prototype.hashNDegreeQuads=function(e,t,n){var r,i=this,o=new ve(i.name);i.waterfall([function(n){i.createHashToRelated(e,t,function(e,t){if(e)return n(e);r=t,n()})},function(e){var n=Object.keys(r).sort();i.forEach(n,function(e,n,a){o.update(e);var s,l="",u=new me(r[e]);i.whilst(function(){return u.hasNext()},function(e){var n=u.next(),r=t.clone(),o="",a=[];i.waterfall([function(t){i.forEach(n,function(t,n,s){if(i.canonicalIssuer.hasId(t)?o+=i.canonicalIssuer.getId(t):(r.hasId(t)||a.push(t),o+=r.getId(t)),0!==l.length&&o.length>=l.length&&o>l)return e();s()},t)},function(t){i.forEach(a,function(t,n,a){i.hashNDegreeQuads(t,r,function(n,i){return n?a(n):(o+=r.getId(t),o+="<"+i.hash+">",r=i.issuer,0!==l.length&&o.length>=l.length&&o>l?e():void a())})},t)},function(e){(0===l.length||o1||!("@id"in O)),A||oe(v)){var y=le(v)?i.getId(v["@id"]):v["@id"];e.addValue(f,p,{"@id":y},{propertyIsArray:!0,allowDuplicate:!1}),L(v,n,r,i,y)}else if(se(v)){var b=[];L(v["@list"],n,r,i,o,b),e.addValue(f,p,v={"@list":b},{propertyIsArray:!0,allowDuplicate:!1})}else L(v,n,r,i,o),e.addValue(f,p,v,{propertyIsArray:!0,allowDuplicate:!1})}else e.addValue(f,p,[],{propertyIsArray:!0})}else o in n||(n[o]={}),L(t[p],n,"@merged"===r?r:o,i);else{var _={"@id":o},w=t["@reverse"];for(var x in w)for(var k=w[x],C=0;C=0;--n)if(t[n]["@id"]===e["@id"])return!0;return!1}function z(e,t,n){var r="@"+n,i=r in e?e[r][0]:t[n];return"embed"===n&&(!0===i?i="@last":!1===i?i="@never":"@always"!==i&&"@never"!==i&&"@link"!==i&&(i="@last")),i}function q(t,n,r){if("@type"in n&&(1!==n["@type"].length||!$(n["@type"][0]))){for(var i=n["@type"],o=0;o=0;--p)for(var S=k[p],T=S.terms,O=0;O0&&a.length>s&&o[0]===a[0];)o.shift(),a.shift();var l="";if(o.length>0){o.pop();for(var u=0;u=(i=a[l].iri).length?"":i[r])in s?s[o].push(a[l]):s[o]=[a[l]];for(var t in s)""!==t&&n(s,t,r+1)}function r(e,t,n,r){r in n||(n[r]=t)}}function Y(e){if(!te(e))return!1;switch(e){case"@base":case"@context":case"@container":case"@default":case"@embed":case"@explicit":case"@graph":case"@id":case"@index":case"@language":case"@list":case"@omitDefault":case"@preserve":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@vocab":return!0}return!1}function $(e){return"[object Object]"===Object.prototype.toString.call(e)}function J(e){return Array.isArray(e)}function ee(e){if(!te(e)&&!function(e){return $(e)&&0===Object.keys(e).length}(e)){var t=!1;if(J(e)){t=!0;for(var n=0;nE)return r=new S("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"loading remote context failed",max:E}),a(r);var s={},l=function(){fe(e,s,!0,o),a(null,e)};if(!fe(e,s,!1,o))return l();var u=[];for(var c in s)!1===s[c]&&u.push(c);for(var f=u.length,h=0;h]*)>)|(_:(?:[A-Za-z0-9]+)))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z0-9]+))|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-z]+(?:-[a-z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z0-9]+)))[ \\t]*\\.))[ \\t]*(?:#.*)?$'),r={},i=e.split(/(?:\r\n)|(?:\n)|(?:\r)/g),o=0,a=0;a":n.value,a+=" ",a+="IRI"===r.type?"<"+r.value+">":r.value,a+=" ","IRI"===i.type?a+="<"+i.value+">":"blank node"===i.type?a+=i.value:(a+='"'+i.value.replace(/\\/g,"\\\\").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\"/g,'\\"')+'"',i.datatype===k?i.language&&(a+="@"+i.language):i.datatype!==v&&(a+="^^<"+i.datatype+">")),null!==o&&void 0!==o&&(0!==o.indexOf("_:")?a+=" <"+o+">":a+=" "+o),a+" .\n"}function ge(e){this.prefix=e,this.counter=0,this.existing={}}Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on non-object");var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),e.registerRDFParser("application/nquads",de),e.registerRDFParser("rdfa-api",function(e){for(var t={"@default":[]},n=e.getSubjects(),r=0;rt)&&(a&&i>0&&o>this.list[i-1]||!a&&ithis.list[i+1])&&(t=o,n=i)}if(null===t)this.done=!0;else{var s=this.left[t]?n-1:n+1;for(this.list[n]=this.list[s],this.list[s]=t,i=0;it&&(this.left[this.list[i]]=!this.left[this.list[i]])}return e};var ve=function(e){if(!(this instanceof ve))return new ve(e);if(-1===["URDNA2015","URGNA2012"].indexOf(e))throw new Error("Invalid RDF Dataset Normalization algorithm: "+e);ve._init.call(this,e)};if(ve.hashNQuads=function(e,t){for(var n=new ve(e),r=0;r0;)1&n&&(r._padding+=t),(n>>>=1)>0&&(t+=t)}this.start()};r.prototype.start=function(){this.messageLength=0,this.fullMessageLength=[];for(var e=this._algorithm.messageLengthSize/4,t=0;t>>0,t>>>0];for(var n=this.fullMessageLength.length-1;n>=0;--n)this.fullMessageLength[n]+=t[1],t[1]=t[0]+(this.fullMessageLength[n]/4294967296>>>0),this.fullMessageLength[n]=this.fullMessageLength[n]>>>0,t[0]=t[1]/4294967296>>>0;for(this._input.putBytes(e.bytes());this._input.length()>=this._algorithm.blockSize;)this.state=this._algorithm.digest(this.state,this._input);return(this._input.read>2048||0===this._input.length())&&this._input.compact(),this},r.prototype.digest=function(){var e=new r.ByteBuffer;e.putBytes(this._input.bytes()),e.putBytes(r._padding.substr(0,this._algorithm.blockSize-(this.fullMessageLength[this.fullMessageLength.length-1]+this._algorithm.messageLengthSize&this._algorithm.blockSize-1)));for(var t=new r.ByteBuffer,n=0;n>>28);this._algorithm.writeMessageLength(e,t);var i=this._algorithm.digest(this.state.copy(),e),o=new r.ByteBuffer;return i.write(o),o},r.ByteBuffer=function(e){this.data="string"==typeof e?e:"",this.read=0},r.ByteBuffer.prototype.putInt32=function(e){this.data+=String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)},r.ByteBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},r.ByteBuffer.prototype.putBytes=function(e){this.data+=e},r.ByteBuffer.prototype.bytes=function(){return this.data.slice(this.read)},r.ByteBuffer.prototype.length=function(){return this.data.length-this.read},r.ByteBuffer.prototype.compact=function(){this.data=this.data.slice(this.read),this.read=0},r.ByteBuffer.prototype.toHex=function(){for(var e="",t=this.read;t=64;){for(r=e.h0,o=e.h1,a=e.h2,s=e.h3,l=e.h4,u=0;u<16;++u)n=t.getInt32(),f[u]=n,n=(r<<5|r>>>27)+(s^o&(a^s))+l+1518500249+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;for(;u<20;++u)f[u]=n=(n=f[u-3]^f[u-8]^f[u-14]^f[u-16])<<1|n>>>31,n=(r<<5|r>>>27)+(s^o&(a^s))+l+1518500249+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;for(;u<32;++u)f[u]=n=(n=f[u-3]^f[u-8]^f[u-14]^f[u-16])<<1|n>>>31,n=(r<<5|r>>>27)+(o^a^s)+l+1859775393+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;for(;u<40;++u)f[u]=n=(n=f[u-6]^f[u-16]^f[u-28]^f[u-32])<<2|n>>>30,n=(r<<5|r>>>27)+(o^a^s)+l+1859775393+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;for(;u<60;++u)f[u]=n=(n=f[u-6]^f[u-16]^f[u-28]^f[u-32])<<2|n>>>30,n=(r<<5|r>>>27)+(o&a|s&(o^a))+l+2400959708+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;for(;u<80;++u)f[u]=n=(n=f[u-6]^f[u-16]^f[u-28]^f[u-32])<<2|n>>>30,n=(r<<5|r>>>27)+(o^a^s)+l+3395469782+n,l=s,s=a,a=o<<30|o>>>2,o=r,r=n;e.h0=e.h0+r|0,e.h1=e.h1+o|0,e.h2=e.h2+a|0,e.h3=e.h3+s|0,e.h4=e.h4+l|0,c-=64}return e},i._createState=function(){var e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520,copy:function(){var t=i._createState();return t.h0=e.h0,t.h1=e.h1,t.h2=e.h2,t.h3=e.h3,t.h4=e.h4,t},write:function(t){t.putInt32(e.h0),t.putInt32(e.h1),t.putInt32(e.h2),t.putInt32(e.h3),t.putInt32(e.h4)}};return e};var o={_k:null,_w:null,Algorithm:function(){this.name="sha256",this.blockSize=64,this.digestLength=32,this.messageLengthSize=8}};o.Algorithm.prototype.start=function(){return o._k||o._init(),o._createState()},o.Algorithm.prototype.writeMessageLength=function(e,t){e.putBytes(t.bytes())},o.Algorithm.prototype.digest=function(e,t){for(var n,r,i,a,s,l,u,c,f,h,d,p,g=t.length(),m=o._k,v=o._w;g>=64;){for(a=0;a<16;++a)v[a]=t.getInt32();for(;a<64;++a)v[a]=(n=((n=v[a-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+v[a-7]+(r=((r=v[a-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)+v[a-16]|0;for(s=e.h0,l=e.h1,u=e.h2,c=e.h3,f=e.h4,h=e.h5,d=e.h6,p=e.h7,a=0;a<64;++a)i=s&l|u&(s^l),n=p+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(d^f&(h^d))+m[a]+v[a],p=d,d=h,h=f,f=c+n|0,c=u,u=l,l=s,s=n+(r=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+i)|0;e.h0=e.h0+s|0,e.h1=e.h1+l|0,e.h2=e.h2+u|0,e.h3=e.h3+c|0,e.h4=e.h4+f|0,e.h5=e.h5+h|0,e.h6=e.h6+d|0,e.h7=e.h7+p|0,g-=64}return e},o._createState=function(){var e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225,copy:function(){var t=o._createState();return t.h0=e.h0,t.h1=e.h1,t.h2=e.h2,t.h3=e.h3,t.h4=e.h4,t.h5=e.h5,t.h6=e.h6,t.h7=e.h7,t},write:function(t){t.putInt32(e.h0),t.putInt32(e.h1),t.putInt32(e.h2),t.putInt32(e.h3),t.putInt32(e.h4),t.putInt32(e.h5),t.putInt32(e.h6),t.putInt32(e.h7)}};return e},o._init=function(){o._k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o._w=new Array(64)}}(s),!h)var ye=function(){h=n("x7HW").XMLSerializer};function be(e,t){var n="";0===e.indexOf("/")&&(n="/");for(var r=e.split("/"),i=[];r.length>0;)"."===r[0]||""===r[0]&&r.length>1?r.shift():".."!==r[0]?i.push(r.shift()):(r.shift(),t||i.length>0&&".."!==i[i.length-1]?i.pop():i.push(".."));return n+i.join("/")}if(e.url={},e.url.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},e.url.parse=function(t,n){for(var r={},i=e.url.parsers[n||"full"],o=i.regex.exec(t),a=i.keys.length;a--;)r[i.keys[a]]=void 0===o[a]?null:o[a];return r.normalizedPath=be(r.path,!!r.authority),r},s?e.useDocumentLoader("node"):"undefined"!=typeof XMLHttpRequest&&e.useDocumentLoader("xhr"),s){e.use=function(t){switch(t){case"request":e.request=n("x7HW");break;default:throw new S("Unknown extension.","jsonld.UnknownExtension",{extension:t})}};var _e={exports:{},filename:o};n("x7HW")(_e,"version"),e.version=_e.exports.version}return e},c=function(){return u(function(){return c()})};!s&&n("nErl")?void 0===(a=(function(){return u(c),c}).apply(t,[]))||(e.exports=a):(u(c),"undefined"!=typeof e&&e.exports&&(e.exports=c),l&&("undefined"==typeof jsonld?jsonld=jsonldjs=c:jsonldjs=c))}()}).call(t,n("W2nU"),n("DuR2"),"/")},X3l8:function(e,t,n){var r=n("EuP9"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},X4X3:function(e,t,n){"use strict";var r=n("X3l8").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},XEp5:function(e,t,n){var r=n("Cbv+");PersistentQuadBackend=function(e,t){var n=this;if(0!==arguments){for(var i in r.registerIndexedDB(n),this.indexMap={},this.indices=["S","P","O","G","SP","SO","SG","PO","PG","OG","SPO","SPG","SOG","POG","SPOG"],this.componentOrders={S:["subject","predicate","object","graph"],P:["predicate","subject","object","graph"],O:["object","subject","predicate","graph"],G:["graph","subject","predicate","object"],SP:["subject","predicate","object","graph"],SO:["subject","object","predicate","graph"],SG:["subject","graph","predicate","object"],PO:["predicate","object","subject","graph"],PG:["predicate","graph","subject","object"],OG:["object","graph","subject","predicate"],SPO:["subject","predicate","object","graph"],SPG:["subject","predicate","graph","object"],SOG:["subject","object","graph","predicate"],POG:["predicate","object","graph","subject"],SPOG:["subject","predicate","object","graph"]},this.componentOrdersMap={},this.componentOrders){var o=this.componentOrders[i].slice(0,i.length).sort().join(".");this.componentOrdersMap[o]=i}n.dbName=e.name||"rdfstorejs";var a=n.indexedDB.open(this.dbName+"_db",1);a.onerror=function(e){t(null,new Error("Error opening IndexedDB: "+e.target.errorCode))},a.onsuccess=function(e){n.db=e.target.result,t(n)},a.onupgradeneeded=function(e){var t=e.target.result.createObjectStore(n.dbName,{keyPath:"SPOG"});r.each(n.indices,function(e){"SPOG"!==e&&t.createIndex(e,e,{unique:!1})})}}},PersistentQuadBackend.prototype.index=function(e,t){var n=this;r.each(this.indices,function(t){e[t]=n._genMinIndexKey(e,t)});var i=n.db.transaction([n.dbName],"readwrite");i.oncomplete=function(e){},i.onerror=function(e){t(null,new Error(e.target.statusCode))},i.objectStore(n.dbName).add(e).onsuccess=function(e){t(!0)}},PersistentQuadBackend.prototype.range=function(e,t){var n=this.db.transaction([this.dbName]).objectStore(this.dbName),r=this._indexForPattern(e),i=this._genMinIndexKey(e,r),o=this._genMaxIndexKey(e,r),a=this.IDBKeyRange.bound(i,o,!1,!1),s=[];("SPOG"===r?n:n.index(r)).openCursor(a).onsuccess=function(e){var n=e.target.result;n?(s.push(n.value),n.continue()):t(s)}},PersistentQuadBackend.prototype.search=function(e,t){var n=this.db.transaction([this.dbName]).objectStore(this.dbName),r=this._genMinIndexKey(e,"SPOG"),i=n.get(r);i.onerror=function(e){t(null,new Error(e.target.statusCode))},i.onsuccess=function(e){t(null!=e.target.result)}},PersistentQuadBackend.prototype.delete=function(e,t){var n=this._genMinIndexKey(e,"SPOG"),r=this.db.transaction([this.dbName],"readwrite").objectStore(this.dbName).delete(n);r.onsuccess=function(){t(!0)},r.onerror=function(e){t(null,new Error(e.target.statusCode))}},PersistentQuadBackend.prototype._genMinIndexKey=function(e,t){return r.map(this.componentOrders[t],function(t){return"string"==typeof e[t]||null==e[t]?"0":e[t]}).join(".")},PersistentQuadBackend.prototype._genMaxIndexKey=function(e,t){for(var n=this.componentOrders[t],i=[],o=0;o0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=u.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),h=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.b)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return u.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+u.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),d={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"\u09f3"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"\u0440."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN\xa5","\xa5"],COP:[,"$"],CRC:[,"\u20a1"],CUC:[,"$"],CUP:[,"$"],CZK:[,"K\u010d"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E\xa3"],ESP:[,"\u20a7"],EUR:["\u20ac"],FJD:[,"$"],FKP:[,"\xa3"],GBP:["\xa3"],GEL:[,"\u20be"],GIP:[,"\xa3"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["\u20aa"],INR:["\u20b9"],ISK:[,"kr"],JMD:[,"$"],JPY:["\xa5"],KHR:[,"\u17db"],KMF:[,"CF"],KPW:[,"\u20a9"],KRW:["\u20a9"],KYD:[,"$"],KZT:[,"\u20b8"],LAK:[,"\u20ad"],LBP:[,"L\xa3"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"\u20ae"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"\u20a6"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"\u20b1"],PKR:[,"Rs"],PLN:[,"z\u0142"],PYG:[,"\u20b2"],RON:[,"lei"],RUB:[,"\u20bd"],RUR:[,"\u0440."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"\xa3"],SRD:[,"$"],SSP:[,"\xa3"],STD:[,"Db"],SYP:[,"\xa3"],THB:[,"\u0e3f"],TOP:[,"T$"],TRY:[,"\u20ba"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"\u20b4"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["\u20ab"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]},p=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],g={};function m(e,t,n){"string"!=typeof t&&(n=t,t=e[0]),t=t.toLowerCase().replace(/_/g,"-"),g[t]=e,n&&(g[t][18]=n)}var v=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),y=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),b=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),_=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),w=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),x=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}(),k=function(){var e={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};return e[e.Sunday]="Sunday",e[e.Monday]="Monday",e[e.Tuesday]="Tuesday",e[e.Wednesday]="Wednesday",e[e.Thursday]="Thursday",e[e.Friday]="Friday",e[e.Saturday]="Saturday",e}();function C(e){return Q(e)[0]}function E(e,t,n){var r=Q(e);return z(z([r[1],r[2]],t),n)}function S(e,t,n){var r=Q(e);return z(z([r[3],r[4]],t),n)}function T(e,t,n){var r=Q(e);return z(z([r[5],r[6]],t),n)}function O(e,t){return z(Q(e)[7],t)}function A(e){return Q(e)[8]}function I(e){return Q(e)[9]}function R(e,t){return z(Q(e)[10],t)}function P(e,t){return z(Q(e)[11],t)}function j(e,t){return z(Q(e)[12],t)}function D(e,t){var n=Q(e),r=n[13][t];if("undefined"==typeof r){if(t===x.CurrencyDecimal)return n[13][x.Decimal];if(t===x.CurrencyGroup)return n[13][x.Group]}return r}function N(e,t){return Q(e)[14][t]}function F(e){return Q(e)[15]||null}function M(e){return Q(e)[16]||null}function L(e){return Q(e)[17]}function B(e){if(!e[18])throw new Error('Missing extra locale data for the locale "'+e[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function V(e){var t=Q(e);return B(t),(t[18][2]||[]).map(function(e){return"string"==typeof e?q(e):[q(e[0]),q(e[1])]})}function U(e,t,n){var r=Q(e);return B(r),z(z([r[18][0],r[18][1]],t)||[],n)||[]}function z(e,t){for(var n=t;n>-1;n--)if("undefined"!=typeof e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function q(e){var t=e.split(":");return{hours:+t[0],minutes:+t[1]}}function Q(e){var t=e.toLowerCase().replace(/_/g,"-"),n=g[t];if(n)return n;var r=t.split("-")[0];if(n=g[r])return n;if("en"===r)return p;throw new Error('Missing locale data for the locale "'+e+'".')}function H(e,t){var n=d[e]||[],r=n[1];return"narrow"===t&&"string"==typeof r?r:n[0]||e}var G=new r.InjectionToken("UseV4Plurals"),W=function(){};function K(e,t,n,r){var i="="+e;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var X=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(i.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):L(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t}(W);function Z(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?y.One:y.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?y.One:y.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?y.One:y.Other;case"ar":return 0===n?y.Zero:1===n?y.One:2===n?y.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?y.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?y.Many:y.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?y.One:y.Other;case"be":return n%10==1&&n%100!=11?y.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?y.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?y.Many:y.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?y.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?y.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?y.Few:0!==n&&n%1e6==0?y.Many:y.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?y.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?y.Few:y.Other;case"cs":case"sk":return 1===i&&0===o?y.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?y.Few:0!==o?y.Many:y.Other;case"cy":return 0===n?y.Zero:1===n?y.One:2===n?y.Two:3===n?y.Few:6===n?y.Many:y.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?y.One:y.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?y.One:0===o&&i%100==2||a%100==2?y.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?y.Few:y.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?y.One:y.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?y.One:y.Other;case"ga":return 1===n?y.One:2===n?y.Two:n===Math.floor(n)&&n>=3&&n<=6?y.Few:n===Math.floor(n)&&n>=7&&n<=10?y.Many:y.Other;case"gd":return 1===n||11===n?y.One:2===n||12===n?y.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?y.Few:y.Other;case"gv":return 0===o&&i%10==1?y.One:0===o&&i%10==2?y.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?y.Many:y.Other:y.Few;case"he":return 1===i&&0===o?y.One:2===i&&0===o?y.Two:0!==o||n>=0&&n<=10||n%10!=0?y.Other:y.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?y.One:y.Other;case"ksh":return 0===n?y.Zero:1===n?y.One:y.Other;case"kw":case"naq":case"se":case"smn":return 1===n?y.One:2===n?y.Two:y.Other;case"lag":return 0===n?y.Zero:0!==i&&1!==i||0===n?y.Other:y.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?y.Few:0!==a?y.Many:y.Other:y.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?y.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?y.One:y.Other;case"mk":return 0===o&&i%10==1||a%10==1?y.One:y.Other;case"mt":return 1===n?y.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?y.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?y.Many:y.Other;case"pl":return 1===i&&0===o?y.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?y.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?y.Many:y.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?y.One:y.Other;case"ro":return 1===i&&0===o?y.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?y.Few:y.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?y.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?y.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?y.Many:y.Other;case"shi":return 0===i||1===n?y.One:n===Math.floor(n)&&n>=2&&n<=10?y.Few:y.Other;case"si":return 0===n||1===n||0===i&&1===a?y.One:y.Other;case"sl":return 0===o&&i%100==1?y.One:0===o&&i%100==2?y.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?y.Few:y.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?y.One:y.Other;default:return y.Other}}function Y(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n0||s>-n)&&(s+=n),e===ve.Hours&&0===s&&-12===n&&(s=12),_e(s,t,D(a,x.MinusSign),r,i)}}function xe(e,t,n,r){return void 0===n&&(n=b.Format),void 0===r&&(r=!1),function(i,o){return function(e,t,n,r,i,o){switch(n){case ye.Months:return T(t,i,r)[e.getMonth()];case ye.Days:return S(t,i,r)[e.getDay()];case ye.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var l,u=V(t),c=U(t,i,r);if(u.forEach(function(e,t){if(Array.isArray(e)){var n=e[0],r=e[1],i=r.hours;a>=n.hours&&s>=n.minutes&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(e){case me.Short:return(i>=0?"+":"")+_e(a,2,o)+_e(Math.abs(i%60),2,o);case me.ShortGMT:return"GMT"+(i>=0?"+":"")+_e(a,1,o);case me.Long:return"GMT"+(i>=0?"+":"")+_e(a,2,o)+":"+_e(Math.abs(i%60),2,o);case me.Extended:return 0===r?"Z":(i>=0?"+":"")+_e(a,2,o)+":"+_e(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+e+'"')}}}var Ce=0,Ee=4;function Se(e,t){return void 0===t&&(t=!1),function(n,r){var i,o,a,s;if(t){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();i=1+Math.floor((u+l)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,Ce,1).getDay(),new Date(a,0,1+(s<=Ee?Ee:Ee+7)-s)),f=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(Ee-o.getDay()))).getTime()-c.getTime();i=1+Math.round(f/6048e5)}return _e(i,e,D(r,x.MinusSign))}}var Te={};function Oe(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Ae(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(r["\u0275stringify"])(e)+"'")}var Ie=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Re=function(){function e(e){this.locale=e}return e.prototype.transform=function(t,n,r,i){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;var o,a;if("string"==typeof t&&(t=t.trim()),je(t))o=t;else if(isNaN(t-parseFloat(t)))if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var s=t.split("-").map(function(e){return+e});o=new Date(s[0],s[1]-1,s[2])}else o="string"==typeof t&&(a=t.match(Ie))?Pe(a):new Date(t);else o=new Date(parseFloat(t));if(!je(o))throw Ae(e,t);return function(e,t,n,r){t=function e(t,n){var r=C(t);if(pe[r]=pe[r]||{},pe[r][n])return pe[r][n];var i="";switch(n){case"shortDate":i=R(t,w.Short);break;case"mediumDate":i=R(t,w.Medium);break;case"longDate":i=R(t,w.Long);break;case"fullDate":i=R(t,w.Full);break;case"shortTime":i=P(t,w.Short);break;case"mediumTime":i=P(t,w.Medium);break;case"longTime":i=P(t,w.Long);break;case"fullTime":i=P(t,w.Full);break;case"short":var o=e(t,"shortTime"),a=e(t,"shortDate");i=be(j(t,w.Short),[o,a]);break;case"medium":var s=e(t,"mediumTime"),l=e(t,"mediumDate");i=be(j(t,w.Medium),[s,l]);break;case"long":var u=e(t,"longTime"),c=e(t,"longDate");i=be(j(t,w.Long),[u,c]);break;case"full":var f=e(t,"fullTime"),h=e(t,"fullDate");i=be(j(t,w.Full),[f,h])}return i&&(pe[r][n]=i),i}(n,t)||t;for(var i,o=[];t;){if(!(i=ge.exec(t))){o.push(t);break}var a=(o=o.concat(i.slice(1))).pop();if(!a)break;t=a}var s=e.getTimezoneOffset();r&&(s=Oe(r,s),e=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Oe(t,r)-r))}(e,r));var l="";return o.forEach(function(t){var r=function(e){if(Te[e])return Te[e];var t;switch(e){case"G":case"GG":case"GGG":t=xe(ye.Eras,_.Abbreviated);break;case"GGGG":t=xe(ye.Eras,_.Wide);break;case"GGGGG":t=xe(ye.Eras,_.Narrow);break;case"y":t=we(ve.FullYear,1,0,!1,!0);break;case"yy":t=we(ve.FullYear,2,0,!0,!0);break;case"yyy":t=we(ve.FullYear,3,0,!1,!0);break;case"yyyy":t=we(ve.FullYear,4,0,!1,!0);break;case"M":case"L":t=we(ve.Month,1,1);break;case"MM":case"LL":t=we(ve.Month,2,1);break;case"MMM":t=xe(ye.Months,_.Abbreviated);break;case"MMMM":t=xe(ye.Months,_.Wide);break;case"MMMMM":t=xe(ye.Months,_.Narrow);break;case"LLL":t=xe(ye.Months,_.Abbreviated,b.Standalone);break;case"LLLL":t=xe(ye.Months,_.Wide,b.Standalone);break;case"LLLLL":t=xe(ye.Months,_.Narrow,b.Standalone);break;case"w":t=Se(1);break;case"ww":t=Se(2);break;case"W":t=Se(1,!0);break;case"d":t=we(ve.Date,1);break;case"dd":t=we(ve.Date,2);break;case"E":case"EE":case"EEE":t=xe(ye.Days,_.Abbreviated);break;case"EEEE":t=xe(ye.Days,_.Wide);break;case"EEEEE":t=xe(ye.Days,_.Narrow);break;case"EEEEEE":t=xe(ye.Days,_.Short);break;case"a":case"aa":case"aaa":t=xe(ye.DayPeriods,_.Abbreviated);break;case"aaaa":t=xe(ye.DayPeriods,_.Wide);break;case"aaaaa":t=xe(ye.DayPeriods,_.Narrow);break;case"b":case"bb":case"bbb":t=xe(ye.DayPeriods,_.Abbreviated,b.Standalone,!0);break;case"bbbb":t=xe(ye.DayPeriods,_.Wide,b.Standalone,!0);break;case"bbbbb":t=xe(ye.DayPeriods,_.Narrow,b.Standalone,!0);break;case"B":case"BB":case"BBB":t=xe(ye.DayPeriods,_.Abbreviated,b.Format,!0);break;case"BBBB":t=xe(ye.DayPeriods,_.Wide,b.Format,!0);break;case"BBBBB":t=xe(ye.DayPeriods,_.Narrow,b.Format,!0);break;case"h":t=we(ve.Hours,1,-12);break;case"hh":t=we(ve.Hours,2,-12);break;case"H":t=we(ve.Hours,1);break;case"HH":t=we(ve.Hours,2);break;case"m":t=we(ve.Minutes,1);break;case"mm":t=we(ve.Minutes,2);break;case"s":t=we(ve.Seconds,1);break;case"ss":t=we(ve.Seconds,2);break;case"S":t=we(ve.Milliseconds,1);break;case"SS":t=we(ve.Milliseconds,2);break;case"SSS":t=we(ve.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ke(me.Short);break;case"ZZZZZ":t=ke(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ke(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ke(me.Long);break;default:return null}return Te[e]=t,t}(t);l+=r?r(e,n,s):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(o,n,i||this.locale,r)},e}();function Pe(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=+(e[9]+e[10]),r=+(e[9]+e[11])),(e[8]?t.setUTCFullYear:t.setFullYear).call(t,+e[1],+e[2]-1,+e[3]);var o=+(e[4]||"0")-n,a=+(e[5]||"0")-r,s=+(e[6]||"0"),l=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,o,a,s,l),t}function je(e){return e instanceof Date&&!isNaN(e.valueOf())}var De=function(){function e(){}return e.format=function(e,t,n,r){void 0===r&&(r={});var i=r.currency,o=r.currencyAsSymbol,a=void 0!==o&&o,s={minimumIntegerDigits:r.minimumIntegerDigits,minimumFractionDigits:r.minimumFractionDigits,maximumFractionDigits:r.maximumFractionDigits,style:v[n].toLowerCase()};return n==v.Currency&&(s.currency="string"==typeof i?i:void 0,s.currencyDisplay=a?"symbol":"code"),new Intl.NumberFormat(t,s).format(e)},e}(),Ne=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,Fe={yMMMdjms:Ge(He([qe("year",1),Qe("month",3),qe("day",1),qe("hour",1),qe("minute",1),qe("second",1)])),yMdjm:Ge(He([qe("year",1),qe("month",1),qe("day",1),qe("hour",1),qe("minute",1)])),yMMMMEEEEd:Ge(He([qe("year",1),Qe("month",4),Qe("weekday",4),qe("day",1)])),yMMMMd:Ge(He([qe("year",1),Qe("month",4),qe("day",1)])),yMMMd:Ge(He([qe("year",1),Qe("month",3),qe("day",1)])),yMd:Ge(He([qe("year",1),qe("month",1),qe("day",1)])),jms:Ge(He([qe("hour",1),qe("second",1),qe("minute",1)])),jm:Ge(He([qe("hour",1),qe("minute",1)]))},Me={yyyy:Ge(qe("year",4)),yy:Ge(qe("year",2)),y:Ge(qe("year",1)),MMMM:Ge(Qe("month",4)),MMM:Ge(Qe("month",3)),MM:Ge(qe("month",2)),M:Ge(qe("month",1)),LLLL:Ge(Qe("month",4)),L:Ge(Qe("month",1)),dd:Ge(qe("day",2)),d:Ge(qe("day",1)),HH:Le(Be(Ge(ze(qe("hour",2),!1)))),H:Be(Ge(ze(qe("hour",1),!1))),hh:Le(Be(Ge(ze(qe("hour",2),!0)))),h:Be(Ge(ze(qe("hour",1),!0))),jj:Ge(qe("hour",2)),j:Ge(qe("hour",1)),mm:Le(Ge(qe("minute",2))),m:Ge(qe("minute",1)),ss:Le(Ge(qe("second",2))),s:Ge(qe("second",1)),sss:Ge(qe("second",3)),EEEE:Ge(Qe("weekday",4)),EEE:Ge(Qe("weekday",3)),EE:Ge(Qe("weekday",2)),E:Ge(Qe("weekday",1)),a:function(e){return function(t,n){return e(t,n).split(" ")[1]}}(Ge(ze(qe("hour",1),!0))),Z:Ue("short"),z:Ue("long"),ww:Ge({}),w:Ge({}),G:Ge(Qe("era",1)),GG:Ge(Qe("era",2)),GGG:Ge(Qe("era",3)),GGGG:Ge(Qe("era",4))};function Le(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function Be(e){return function(t,n){return e(t,n).split(" ")[0]}}function Ve(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function Ue(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=Ve(e,n,t);return r?r.substring(3):""}}function ze(e,t){return e.hour12=t,e}function qe(e,t){return function(){var n={};return n[e]=2===t?"2-digit":"numeric",n}()}function Qe(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function He(e){return e.reduce(function(e,t){return Object(i.a)({},e,t)},{})}function Ge(e){return function(t,n){return Ve(t,n,e)}}var We=new Map,Ke=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=Fe[e];if(r)return r(t,n);var i=e,o=We.get(i);if(!o){o=[];var a=void 0;Ne.exec(e);for(var s=e;s;)(a=Ne.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);We.set(i,o)}return o.reduce(function(e,r){var i=Me[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),Xe=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;var r;if("string"==typeof t&&(t=t.trim()),Ze(t))r=t;else if(isNaN(t-parseFloat(t)))if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=t.split("-").map(function(e){return parseInt(e,10)});r=new Date(i[0],i[1]-1,i[2])}else r=new Date(t);else r=new Date(parseFloat(t));if(!Ze(r)){var o=void 0;if("string"!=typeof t||!(o=t.match(Ie)))throw Ae(e,t);r=Pe(o)}return Ke.format(r,this._locale,e._ALIASES[n]||n)},e._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e}();function Ze(e){return e instanceof Date&&!isNaN(e.valueOf())}var Ye=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$e=22,Je=".",et="0",tt=";",nt=",",rt="#",it="\xa4",ot="%";function at(e,t,n,r,i){void 0===i&&(i=null);var o,a={str:null},s=N(t,n);if("string"!=typeof e||isNaN(+e-parseFloat(e))){if("number"!=typeof e)return a.error=e+" is not a number",a;o=e}else o=+e;var l=function(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(tt),i=r[0],o=r[1],a=-1!==i.indexOf(Je)?i.split(Je):[i.substring(0,i.lastIndexOf(et)+1),i.substring(i.lastIndexOf(et)+1)],s=a[0],l=a[1]||"";n.posPre=s.substr(0,s.indexOf(rt));for(var u=0;u-1&&(a=a.replace(Je,"")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;a.charAt(r)===et;r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;a.charAt(o)===et;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+a.charAt(r)}return n>$e&&(t=t.splice(0,$e-1),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(o);n===v.Percent&&(f=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(f));var h=l.minInt,d=l.minFrac,p=l.maxFrac;if(r){var g=r.match(Ye);if(null===g)return a.error=r+" is not a valid digit info",a;var m=g[1],y=g[3],b=g[5];null!=m&&(h=st(m)),null!=y&&(d=st(y)),null!=b?p=st(b):null!=y&&d>p&&(p=d)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,s=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var l=a;l=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=h?r.pop():f=!1),t>=10?1:0},0);d&&(r.unshift(d),e.integerLen++)}(f,d,p);var _=f.digits,w=f.integerLen,k=f.exponent,C=[];for(c=_.every(function(e){return!e});w0?C=_.splice(w,_.length):(C=_,_=[0]);var E=[];for(_.length>=l.lgSize&&E.unshift(_.splice(-l.lgSize,_.length).join(""));_.length>l.gSize;)E.unshift(_.splice(-l.gSize,_.length).join(""));_.length&&E.unshift(_.join("")),u=E.join(D(t,i?x.CurrencyGroup:x.Group)),C.length&&(u+=D(t,i?x.CurrencyDecimal:x.Decimal)+C.join("")),k&&(u+=D(t,x.Exponential)+"+"+k)}else u=D(t,x.Infinity);return u=o<0&&!c?l.negPre+u+l.negSuf:l.posPre+u+l.posSuf,n===v.Currency&&null!==i?(a.str=u.replace(it,i).replace(it,""),a):n===v.Percent?(a.str=u.replace(new RegExp(ot,"g"),D(t,x.PercentSign)),a):(a.str=u,a)}function st(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function lt(e,t,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw Ae(e,n);var s,l,u;if(r!==v.Currency&&(s=1,l=0,u=3),i){var c=i.match(Ye);if(null===c)throw new Error(i+" is not a valid digit info for number pipes");null!=c[1]&&(s=st(c[1])),null!=c[3]&&(l=st(c[3])),null!=c[5]&&(u=st(c[5]))}return De.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:l,maximumFractionDigits:u,currency:o,currencyAsSymbol:a})}var ut=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return lt(e,this._locale,t,v.Decimal,n)},e}(),ct=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return lt(e,this._locale,t,v.Percent,n)},e}(),ft=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),lt(e,this._locale,t,v.Currency,i,n,r)},e}(),ht=[ut,ct,ft,Xe],dt=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),pt=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),gt=new dt,mt=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(t){if(Object(r["\u0275isPromise"])(t))return pt;if(Object(r["\u0275isObservable"])(t))return gt;throw Ae(e,t)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}(),vt=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Ae(e,t);return t.toLowerCase()},e}(),yt=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Ae(e,t);return t.split(/\b/g).map(function(e){return function(e){return e?e[0].toUpperCase()+e.substr(1).toLowerCase():e}(e)}).join("")},e}(),bt=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Ae(e,t);return t.toUpperCase()},e}(),_t=/#/g,wt=function(){function e(e){this._localization=e}return e.prototype.transform=function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Ae(e,n);return n[K(t,Object.keys(n),this._localization,r)].replace(_t,t.toString())},e}(),xt=function(){function e(){}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Ae(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},e}(),kt=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e}(),Ct=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r){if(Tt(t))return null;var i=at(t,r=r||this._locale,v.Decimal,n),o=i.str,a=i.error;if(a)throw Ae(e,a);return o},e}(),Et=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r){if(Tt(t))return null;var i=at(t,r=r||this._locale,v.Percent,n),o=i.str,a=i.error;if(a)throw Ae(e,a);return o},e}(),St=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,i,o){if(void 0===r&&(r="symbol"),Tt(t))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");var a=n||"USD";"code"!==r&&(a=H(a,"symbol"===r?"wide":"narrow"));var s=at(t,o,v.Currency,i,a),l=s.str,u=s.error;if(u)throw Ae(e,u);return l},e}();function Tt(e){return null==e||""===e||e!=e}var Ot=function(){function e(){}return e.prototype.transform=function(t,n,r){if(null==t)return t;if(!this.supports(t))throw Ae(e,t);return t.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e}(),At=[mt,bt,vt,kt,Ot,Ct,Et,yt,St,Re,wt,xt],It=function(){},Rt=function(){},Pt=new r.InjectionToken("DocumentToken"),jt="browser",Dt="server",Nt="browserWorkerApp",Ft="browserWorkerUi";function Mt(e){return e===jt}function Lt(e){return e===Dt}function Bt(e){return e===Nt}function Vt(e){return e===Ft}var Ut=new r.Version("5.2.8")},Ya8g:function(e,t){},YaPU:function(e,t,n){"use strict";var r=n("AMGY"),i=n("OVmG"),o=n("tLDX"),a=n("t7NR"),s=n("+CnV"),l=n("f9aG");n.d(t,"a",function(){return u});var u=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(r?r.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){r(e),i.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t=6.0.0"},f={build:"node scripts/build",docs:"node scripts/docs",test:"eslint '{lib,test}/**/*.js' --fix && jest test/*.spec.js --verbose -i",precommit:"lint-staged",format:"prettier '{lib,test}/**/*.js' --single-quote --trailing-comma es5 --write",version:"mdchangelog --remote stardog-union/stardog.js --no-prologue --order-milestones semver --order-issues closed_at --overwrite --no-orphan-issues && npm run docs && git add README.md CHANGELOG.md",prepublishOnly:"npm run build"},h={name:"stardog",version:"1.1.1",description:e,keywords:r,main:"lib/index.js",browser:"dist/stardog.js",types:"lib/index.d.ts",author:i,license:"Apache-2.0",contributors:o,repository:a,bugs:s,dependencies:l,devDependencies:u,engines:c,scripts:f,"lint-staged":{linters:{"{lib,test}/**/*.js":["prettier --single-quote --trailing-comma es5 --write","git add"]}},"stardog-version":">=5.0.0"},d=Object.freeze({name:"stardog",version:"1.1.1",description:e,keywords:r,main:"lib/index.js",browser:"dist/stardog.js",types:"lib/index.d.ts",author:i,license:"Apache-2.0",contributors:o,repository:a,bugs:s,dependencies:l,devDependencies:u,engines:c,scripts:f,default:h}),p="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function g(e,t){return e(t={exports:{}},t.exports),t.exports}var m=g(function(e,t){!function(t){e.exports=function(e){var n=e&&e.Promise||t.Promise,r=e&&e.XMLHttpRequest||t.XMLHttpRequest,i=t;return function(){var e=Object.create(i,{fetch:{value:void 0,writable:!0}});return function(e){if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=function(e){return e&&DataView.prototype.isPrototypeOf(e)},a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[u(e)]},h.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},h.prototype.set=function(e,t){this.map[u(e)]=c(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},t.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var s=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},v.call(y.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];_.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=y,e.Response=_,e.fetch=function(e,i){return new n(function(n,o){var a=new y(e,i),s=new r;s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new h,e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL"),n(new _("response"in s?s.response:s.responseText,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials&&(s.withCredentials=!0),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new n(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function g(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&o(e))this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!a(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=m(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||n.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,i=d(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function _(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof e?e:this),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response}}()}}("undefined"==typeof self?p:self)})(),v={atob:self.atob.bind(self),btoa:self.btoa.bind(self)},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];y(this,e),this.config(t,n)}return b(e,[{key:"config",value:function(e,t){var n=Object.assign({},this,e,{meta:t});n.endpoint&&n.endpoint.lastIndexOf("/")===n.endpoint.length-1&&(n.endpoint=n.endpoint.slice(0,-1)),this.endpoint=n.endpoint,this.username=n.username,this.password=n.password,this.meta=n.meta}},{key:"headers",value:function(){var e=new _;return e.set("Authorization","Basic "+v.btoa(this.username+":"+this.password)),e.set("Accept","*/*"),e}},{key:"uri",value:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&s>a&&(s=a);for(var l=0;l=0?(u=d.substr(0,p),c=d.substr(p+1)):(u=d,c=""),f=decodeURIComponent(u),h=decodeURIComponent(c),C(i,f)?Array.isArray(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i},S=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},T=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var i=encodeURIComponent(S(r))+n;return Array.isArray(e[r])?e[r].map(function(e){return i+encodeURIComponent(S(e))}).join(t):i+encodeURIComponent(S(e[r]))}).join(t):r?encodeURIComponent(S(r))+n+encodeURIComponent(S(e)):""},O=g(function(e,t){t.decode=t.parse=E,t.encode=t.stringify=T}),A=function(e){return null!=e&&(I(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&I(e.slice(0,0))}(e)||!!e._isBuffer)};function I(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var R,P=g(function(e){function t(e,t){var n=(t=t||{}).delimiter||".",r=t.maxDepth,i={};return function e(o,a,s){s=s||1,Object.keys(o).forEach(function(l){var u=o[l],c=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),h=A(u),d=a?a+n+l:l;if(!c&&!h&&("[object Object]"===f||"[object Array]"===f)&&Object.keys(u).length&&(!t.maxDepth||s0&&(u=a(l.shift()),c=a(l[0]))}f[u]=e(t[s],n)}),o}}),j=Array.isArray,D="object"==typeof p&&p&&p.Object===Object&&p,N="object"==typeof self&&self&&self.Object===Object&&self,F=D||N||Function("return this")(),M=F.Symbol,L=Object.prototype,B=L.hasOwnProperty,V=L.toString,U=M?M.toStringTag:void 0,z=Object.prototype.toString,q=M?M.toStringTag:void 0,Q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?function(e){var t=B.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch(e){}var i=V.call(e);return r&&(t?e[U]=n:delete e[U]),i}(e):function(e){return z.call(e)}(e)},H=function(e){return null!=e&&"object"==typeof e},G=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==Q(e)},W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,X=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Z=F["__core-js_shared__"],Y=(R=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",$=Function.prototype.toString,J=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,ne=RegExp("^"+ee.toString.call(te.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!X(e)||(t=e,Y&&Y in t))&&(function(e){if(!X(e))return!1;var t=Q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?ne:J).test(function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0},ie=re(Object,"create"),oe=Object.prototype.hasOwnProperty,ae=Object.prototype.hasOwnProperty;function se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},he.prototype.set=function(e,t){var n=this.__data__,r=ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var de=he,pe=re(F,"Map"),ge=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&s%1==0&&s<=9007199254740991&&Le(a,i)&&(j(e)||He(e));var s}(e,t,Ve)}(e,n)})},We=function(e,t){for(var n=-1,r=t.length,i=e.length;++n0&&r(l)?n>1?e(l,n-1,r,i,o):We(o,l):i||(o[o.length]=l)}return o}(e,1):[]},Ye=Math.max,$e=Date.now,Je=(xe=De?function(e,t){return De(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:function(e){return e},ke=0,Ce=0,function(){var e=$e(),t=16-(e-Ce);if(Ce=e,t>0){if(++ke>=800)return arguments[0]}else ke=0;return xe.apply(void 0,arguments)}),et=function(e){return Je(function(e,t,n){return t=Ye(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Ye(r.length-t,0),a=Array(o);++i-1?e.json().then(function(e){return r.body=e,r}):e.text().then(function(t){var i=t.trim();return r.body=i,"text/boolean"===n&&(r.body="true"===i.toLowerCase()),204===e.status&&(r.body=null),""===i&&(r.body=null),r})},httpMessage:function(e){return et(e,t)}}}),nt={database:{archetypes:null,connection:{timeout:null},creator:null,name:null,namespaces:null,online:null,time:{creation:null,modification:null}},docs:{default:{rdf:{extractors:null},text:{extractors:null}},filesystem:{uri:null},path:null},icv:{active:{graphs:null},consistency:{automatic:null},enabled:null,reasoning:{enabled:null}},index:{differential:{enable:{limit:null},merge:{limit:null},size:null},disk:{page:{count:{total:null,used:null},fill:{ratio:null}}},last:{tx:null},literals:{canonical:null},named:{graphs:null},persist:null,size:null,statistics:{update:{automatic:null}},type:null},preserve:{bnode:{ids:null}},progress:{monitor:{enabled:null}},query:{all:{graphs:null},plan:{reuse:null},timeout:null},reasoning:{approximate:null,classify:{eager:null},consistency:{automatic:null},punning:{enabled:null},sameas:null,schema:{graphs:null,timeout:null},type:null,virtual:{graph:{enabled:null}}},search:{default:{limit:null},enabled:null,index:{datatypes:null},reindex:{tx:null},wildcard:{search:{enabled:null}}},security:{named:{graphs:null}},spatial:{enabled:null,index:{version:null},precision:null},strict:{parsing:null},transaction:{isolation:null,logging:null},versioning:{directory:null,enabled:null}},rt=g(function(e){var t=m.fetch,n=tt.httpBody,r=function(e,n,r){return n.headers.set("Content-Type","application/json"),t(e.request("admin","databases",n.database,"options"),{method:n.method,headers:n.headers,body:JSON.stringify(P(r,{safe:!0}))})};e.exports={get:function(e,t,i){var o=e.headers();return r(e,{headers:o,database:t,method:"PUT"},nt).then(n).then(function(e){return 200===e.status?Object.assign({},e,{body:P.unflatten(e.body)}):e})},set:function(e,t,i,o){var a=e.headers();return r(e,{headers:a,database:t,method:"POST"},i).then(n)}}}),it=g(function(e){var t=m.fetch,n=tt.httpBody,r=rt.get,i=function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();a.set("Accept","text/plan"),a.set("Content-Type",r.contentType||"text/plain"),r.encoding&&a.set("Content-Encoding",r.encoding);var s={};o.graphUri&&(s["graph-uri"]=o.graphUri);var l=O.stringify(s);return t(e.request(r.database,r.transactionId,r.resource+(l.length>0?"?"+l:"")),{method:"POST",headers:a,body:r.content+""}).then(n).then(function(e){return Object.assign({},e,{transactionId:r.transactionId})})};e.exports={create:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers(),s=P(i),l=new k;return l.append("root",JSON.stringify({dbname:r,options:s,files:o.files})),t(e.request("admin","databases"),{method:"POST",headers:a,body:l}).then(n)},drop:function(e,r,i){var o=e.headers();return t(e.request("admin","databases",r),{method:"DELETE",headers:o}).then(n)},get:function(e,r,i){var o=e.headers();return t(e.request(r),{headers:o}).then(n)},offline:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","databases",r,"offline"),{method:"PUT",headers:o}).then(n)},online:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","databases",r,"online"),{method:"PUT",headers:o}).then(n)},optimize:function(e,r,i){var o=e.headers();return t(e.request("admin","databases",r,"optimize"),{method:"PUT",headers:o}).then(n)},copy:function(e,r,i,o){var a=e.headers();a.set("Accept","application/json");var s="copy?"+O.stringify({to:i});return t(e.request("admin","databases",r,s),{method:"PUT",headers:a}).then(n)},list:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","databases"),{headers:i}).then(n)},size:function(e,r,i){var o=e.headers();return o.set("Accept","text/plain"),t(e.request(r,"size"),{headers:o}).then(n)},clear:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();a.set("Accept","text/plain");var s={};o.graphUri&&(s["graph-uri"]=o.graphUri);var l=O.stringify(s);return t(e.request(r,i,"clear"+(l.length>0?"?"+l:"")),{method:"POST",headers:a}).then(n).then(function(e){return Object.assign({},e,{transactionId:i})})},add:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return i(e,{contentType:o.contentType,encoding:o.encoding,resource:"add",database:t,transactionId:n,content:r},arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},remove:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return i(e,{contentType:o.contentType,encoding:o.encoding,resource:"remove",database:t,transactionId:n,content:r},arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},namespaces:function(e,t,n){return r(e,t,n).then(function(e){if(200===e.status){var t=je(e,"body.database.namespaces",[]).reduce(function(e,t){var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.split("="),2);return Object.assign({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n[0],n[1]))},{});e.body=t}return e})},exportData:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();a.set("Accept",i.mimetype||"application/ld+json");var s="export?"+O.stringify({"graph-uri":o.graphUri||"tag:stardog:api:context:all"});return t(e.request(r,s),{headers:a}).then(n)}}}),ot=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={add:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();return a.set("Content-Type",o.contentType||"text/turtle"),t(e.request(r,"icv","add"),{method:"POST",body:i,headers:a}).then(n)},remove:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();return a.set("Content-Type",o.contentType||"text/turtle"),t(e.request(r,"icv","remove"),{method:"POST",body:i,headers:a}).then(n)},get:function(e,r){var i=e.headers();return i.set("Accept","application/ld+json"),t(e.request(r,"icv"),{headers:i}).then(n)},clear:function(e,r){var i=e.headers();return t(e.request(r,"icv","clear"),{method:"POST",headers:i}).then(n)},convert:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=e.headers();s.set("Content-Type",o.contentType||"text/turtle");var l={};a.graphUri&&(l["graph-uri"]=a.graphUri);var u=O.stringify(l);return t(e.request(r,"icv","convert"+(u.length>0?"?"+u:"")),{method:"POST",body:i,headers:s}).then(n)},validate:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=e.headers();s.set("Content-Type",o.contentType||"text/turtle"),s.set("Accept","text/boolean");var l={};a.graphUri&&(l["graph-uri"]=a.graphUri);var u=O.stringify(l);return t(e.request(r,"icv","validate"+(u.length>0?"?"+u:"")),{method:"POST",body:i,headers:s}).then(n)},validateInTx:function(e,r,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=e.headers();l.set("Content-Type",a.contentType||"text/turtle"),l.set("Accept","text/boolean");var u={};s.graphUri&&(u["graph-uri"]=s.graphUri);var c=O.stringify(u);return t(e.request(r,"icv",i,"validate"+(c.length>0?"?"+c:"")),{method:"POST",body:o,headers:l}).then(n)},violations:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=e.headers();s.set("Content-Type",o.contentType||"text/turtle"),s.set("Accept","*/*");var l={};a.graphUri&&(l["graph-uri"]=a.graphUri);var u=O.stringify(l);return t(e.request(r,"icv","violations"+(u.length>0?"?"+u:"")),{method:"POST",body:i,headers:s}).then(n)},violationsInTx:function(e,r,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=e.headers();l.set("Content-Type",a.contentType||"text/turtle"),l.set("Accept","*/*");var u={};s.graphUri&&(u["graph-uri"]=s.graphUri);var c=O.stringify(u);return t(e.request(r,"icv",i,"violations"+(c.length>0?"?"+c:"")),{method:"POST",body:o,headers:l}).then(n)}}}),at=g(function(e){var t=m.fetch,n=tt.httpBody,r=function(e){return function(t){return Object.assign({},t,{transactionId:e})}};e.exports={begin:function(e,r){var i=e.headers();return i.set("Accept","*/*"),t(e.request(r,"transaction","begin"),{method:"POST",headers:i}).then(n).then(function(e){return Object.assign({},e,{transactionId:e.body})})},rollback:function(e,i,o){var a=e.headers();return t(e.request(i,"transaction","rollback",o),{method:"POST",headers:a}).then(n).then(r(o))},commit:function(e,i,o){var a=e.headers();return t(e.request(i,"transaction","commit",o),{method:"POST",headers:a}).then(n).then(r(o))}}}),st=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={doGet:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/ld+json",a=e.headers();a.set("Accept",o);var s=r+"?"+(i?O.stringify({graph:i}):"default");return t(e.request(s),{headers:a}).then(n)},doPut:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"application/ld+json",s=e.headers();s.set("Content-Type",a);var l=r+"?"+(o?O.stringify({graph:o}):"default");return t(e.request(l),{headers:s,method:"PUT",body:i}).then(n)},doPost:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"application/ld+json",s=e.headers();s.set("Content-Type",a);var l=r+"?"+(o?O.stringify({graph:o}):"default");return t(e.request(l),{headers:s,method:"POST",body:i}).then(n)},doDelete:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=e.headers(),a=r+"?"+(i?O.stringify({graph:i}):"default");return t(e.request(a),{headers:o,method:"DELETE"}).then(n)}}}),lt=g(function(e){var t=m.fetch,n=tt.httpBody,r=function(e){return e.headers.set("Content-Type","application/json"),e};e.exports={consistency:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.headers();return o.set("Accept","text/boolean"),t(e.request(r,"reasoning","consistency"+(i.namedGraph?"?graph-uri="+i.namedGraph:"")),{headers:o}).then(n)},explainInference:function(e,i,o,a,s){var l=e.headers();return l.set("Content-Type",a.contentType),l.set("Accept","application/json"),t(e.request(i,"reasoning","explain"),{method:"POST",headers:l,body:o}).then(r).then(n)},explainInconsistency:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.headers();return a.set("Accept","application/json"),t(e.request(i,"reasoning","explain","inconsistency"+(o.namedGraph?"?graph-uri="+o.namedGraph:"")),{method:"POST",headers:a}).then(r).then(n)},explainInferenceInTransaction:function(e,r,i,o,a){var s=e.headers();return s.set("Content-Type",a.contentType),a.encoding&&s.set("Content-Encoding",a.encoding),t(e.request(r,"reasoning",i,"explain"),{method:"POST",headers:s,body:o}).then(n)},explainInconsistencyInTransaction:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();return t(e.request(r,"reasoning",i,"explain","inconsistency"+(o.namedGraph?"?graph-uri="+o.namedGraph:"")),{method:"POST",headers:a}).then(n)},schema:function(e,r){var i=e.headers();return i.set("Accept","application/ld+json"),t(e.request(r,"reasoning","schema"),{headers:i}).then(n)}}}),ut=g(function(e){var t=m.fetch,r=tt.httpBody;e.exports={size:function(e,n){var i=e.headers();return i.set("Accept","text/plain"),t(e.request(n,"docs","size"),{headers:i}).then(r)},clear:function(e,n){var i=e.headers();return t(e.request(n,"docs"),{method:"DELETE",headers:i}).then(r)},add:function(e,i,o,a){var s=e.headers(),l=new k;return l.append("upload",new n(a),{filename:o}),t(e.request(i,"docs"),{method:"POST",body:l,headers:s}).then(r)},remove:function(e,n,i){var o=e.headers();return t(e.request(n,"docs",i),{method:"DELETE",headers:o}).then(r)},get:function(e,n,i){var o=e.headers();return t(e.request(n,"docs",i),{headers:o}).then(r)}}}),ct=g(function(e){var t=function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t},n=function(e){var n=e.replace(/prefix[^:]+:\s*<[^>]*>\s*/gi,"").replace(/^((base\s+<[^>]*>\s*)|([\t ]*#([^\n\r]*)))([\r|\r\n|\n])/gim,"").replace(/\s/g,"").toLowerCase();return t(n,"select")?"select":t(n,"ask")?"ask":t(n,"construct")?"construct":t(n,"describe")?"describe":t(n,"insert")||t(n,"delete")||t(n,"with")||t(n,"load")||t(n,"clear")||t(n,"create")||t(n,"drop")||t(n,"copy")||t(n,"move")||t(n,"add")?"update":t(n,"paths")?"paths":null};e.exports={queryType:n,mimeType:function(e){var t=n(e);return"select"===t||"paths"===t?"application/sparql-results+json":"ask"===t||"update"===t?"text/boolean":"construct"===t||"describe"===t?"text/turtle":"*/*"}}}),ft=g(function(e){var t=m.fetch,n=tt.httpBody,r=ct.mimeType;e.exports={query:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r(o),s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=e.headers();l.set("Accept",a),l.set("Content-Type","application/x-www-form-urlencoded");var u=O.stringify(s);return t(e.request(i,"vcs","query"+(u.length>0?"?"+u:"")),{method:"POST",body:O.stringify({query:o}),headers:l}).then(n)},commit:function(e,r,i,o){var a=e.headers();return a.set("Content-Type","text/plain"),t(e.request(r,"vcs",i,"commit_msg"),{method:"POST",body:o,headers:a}).then(n)},createTag:function(e,r,i,o){var a=e.headers();return a.set("Content-Type","text/plain"),t(e.request(r,"vcs","tags","create"),{method:"POST",body:'"tag:stardog:api:versioning:version:'+i+'", "'+o+'"',headers:a}).then(n)},deleteTag:function(e,r,i){var o=e.headers();return o.set("Content-Type","text/plain"),t(e.request(r,"vcs","tags","delete"),{method:"POST",body:i,headers:o}).then(n)},revert:function(e,r,i,o,a){var s=e.headers();return s.set("Content-Type","text/plain"),t(e.request(r,"vcs","revert"),{method:"POST",body:'"tag:stardog:api:versioning:version:'+o+'", "tag:stardog:api:versioning:version:'+i+'", "'+a+'"',headers:s}).then(n)}}}),ht=Object.assign({},it,{icv:ot},{transaction:at},{options:rt},{docs:ut},{versioning:ft},{graph:st},{reasoning:lt}),dt=g(function(e){var t=m.fetch,n=tt.httpBody,r=ct.mimeType,i=ct.queryType,o=function(e,o,a,s,l){var u=i(a);return function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.accept,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();a.set("Accept",i),a.set("Content-Type","application/x-www-form-urlencoded");var s=O.stringify(o);return t(e.request(r.database,r.resource+(s.length>0?"?"+s:"")),{method:"POST",body:O.stringify({query:r.query}),headers:a}).then(n).then(function(e){return e.body&&e.body.head&&e.body.head.vars&&(e.body.head.vars=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=e.headers();u.set("Accept",s.accept||r(a)),u.set("Content-Type","application/x-www-form-urlencoded");var c=O.stringify(l);return t(e.request(i,o,"query"+(c.length>0?"?"+c:"")),{method:"POST",headers:u,body:O.stringify({query:a})}).then(n).then(function(e){return Object.assign({},e,{transactionId:o})})},property:function(e,t,n,r){return o(e,t,"select * where {\n "+n.uri+" "+n.property+" ?val\n }\n ",r).then(function(e){var t=je(e,"body.results.bindings",[]);return t.length>0?Object.assign({},e,{body:t[0].val.value}):e})},list:function(e){var r=e.headers();return r.set("Accept","application/json"),t(e.request("admin","queries"),{headers:r}).then(n)},kill:function(e,r){var i=e.headers();return t(e.request("admin","queries",r),{method:"DELETE",headers:i}).then(n)},get:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","queries",r),{headers:i}).then(n)},explain:function(e,r,i,o){var a=e.headers();a.set("Accept","text/plain"),a.set("Content-Type","application/x-www-form-urlencoded");var s=O.stringify(o);return t(e.request(r,"explain"+(s.length>0?"?"+s:"")),{method:"POST",headers:a,body:O.stringify({query:i})}).then(n)}}}),pt=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={create:function(e,r,i){var o=e.headers();o.set("Content-Type","application/json"),o.set("Accept","application/json");var a=et(r,["name","database","query","shared"]);return a.creator=e.username,a.shared="boolean"==typeof a.shared&&a.shared,t(e.request("admin","queries","stored"),{headers:o,method:"POST",body:JSON.stringify(a)}).then(n)},list:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","queries","stored"),{headers:i}).then(n)},remove:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","queries","stored",r),{headers:o,method:"DELETE"}).then(n)}}}),gt=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={execute:function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.headers();return t(e.request(r,"graphql"),{method:"POST",body:JSON.stringify({query:i,variables:o}),headers:a}).then(n)},listSchemas:function(e,r){var i=e.headers();return t(e.request(r,"graphql","schemas"),{headers:i}).then(n)},addSchema:function(e,r,i,o){var a=e.headers();return a.set("Content-Type","application/graphql"),t(e.request(r,"graphql","schemas",i),{method:"PUT",body:o,headers:a}).then(n)},getSchema:function(e,r,i){var o=e.headers();return t(e.request(r,"graphql","schemas",i),{headers:o}).then(n)},removeSchema:function(e,r,i){var o=e.headers();return t(e.request(r,"graphql","schemas",i),{method:"DELETE",headers:o}).then(n)},clearSchemas:function(e,n){var r=e.headers();return t(e.request(n,"graphql","schemas"),{method:"DELETE",headers:r})}}}),mt=Object.assign({},dt,{stored:pt},{graphql:gt},{utils:ct}),vt=g(function(e){var t=m.fetch,n=tt.httpBody,r=tt.httpMessage;e.exports={list:function(e,r){var i=e.headers();return t(e.request("admin","users"),{headers:i}).then(n)},get:function(e,r,i){var o=e.headers();return t(e.request("admin","users",r),{headers:o}).then(n)},create:function(e,r,i){var o=e.headers();o.set("Accept","application/json"),o.set("Content-Type","application/json");var a={username:r.name,password:r.password.split(""),superuser:"boolean"==typeof r.superuser&&r.superuser};return t(e.request("admin","users"),{method:"POST",headers:o,body:JSON.stringify(a)}).then(n)},changePassword:function(e,n,i,o){var a=e.headers();a.set("Accept","application/json");var s={password:i};return t(e.request("admin","users",n,"pwd"),{method:"PUT",headers:a,body:JSON.stringify(s)}).then(r)},valid:function(e,r){var i=e.headers();return t(e.request("admin","users","valid"),{headers:i}).then(n)},enabled:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","users",r,"enabled"),{headers:o}).then(n)},enable:function(e,n,i,o){var a=e.headers();return t(e.request("admin","users",n,"enabled"),{method:"PUT",headers:a,body:JSON.stringify({enabled:i})}).then(r)},setRoles:function(e,n,i,o){var a=e.headers();return a.set("Content-Type","application/json"),t(e.request("admin","users",n,"roles"),{method:"PUT",headers:a,body:JSON.stringify({roles:i})}).then(r)},listRoles:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","users",r,"roles"),{headers:o}).then(n)},assignPermission:function(e,n,i,o){var a=e.headers(),s={action:i.action,resource_type:i.resourceType,resource:i.resources};return t(e.request("admin","permissions","user",n),{method:"PUT",headers:a,body:JSON.stringify(s)}).then(r)},deletePermission:function(e,n,i,o){var a=e.headers();a.set("Content-Type","application/json");var s={action:i.action,resource_type:i.resourceType,resource:i.resources};return t(e.request("admin","permissions","user",n,"delete"),{method:"POST",headers:a,body:JSON.stringify(s)}).then(r)},permissions:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","permissions","user",r),{headers:o}).then(n)},effectivePermissions:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","permissions","effective","user",r),{headers:o}).then(n)},superUser:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","users",r,"superuser"),{headers:o}).then(n)},remove:function(e,n,i){var o=e.headers();return t(e.request("admin","users",n),{method:"DELETE",headers:o}).then(r)}}}),yt=g(function(e){var t=m.fetch,n=tt.httpBody,r=tt.httpMessage;e.exports={create:function(e,n,i){var o=e.headers();return t(e.request("admin","roles"),{method:"POST",headers:o,body:JSON.stringify({rolename:n.name})}).then(r)},list:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","roles"),{headers:i}).then(n)},remove:function(e,n,i){var o=e.headers();return t(e.request("admin","roles",n),{method:"DELETE",headers:o}).then(r)},usersWithRole:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","roles",r,"users"),{headers:o}).then(n)},assignPermission:function(e,r,i,o){var a=e.headers();a.set("Content-Type","application/json");var s={action:i.action,resource_type:i.resourceType,resource:i.resources};return t(e.request("admin","permissions","role",r),{method:"PUT",headers:a,body:JSON.stringify(s)}).then(n)},deletePermission:function(e,n,i,o){var a=e.headers();a.set("Content-Type","application/json");var s={action:i.action,resource_type:i.resourceType,resource:i.resources};return t(e.request("admin","permissions","role",n,"delete"),{method:"POST",headers:a,body:JSON.stringify(s)}).then(r)},permissions:function(e,r,i){var o=e.headers();return o.set("Accept","application/json"),t(e.request("admin","permissions","role",r),{headers:o}).then(n)}}}),bt=Object.assign({},vt,{role:yt}),_t=g(function(e){var t=m.fetch,n=tt.httpMessage;e.exports={shutdown:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","shutdown"),{headers:i}).then(n)}}}),wt=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={list:function(e){var r=e.headers();return t(e.request("admin","virtual_graphs"),{headers:r}).then(n)},add:function(e,r,i,o){var a=e.headers();return a.set("Content-Type","application/json"),t(e.request("admin","virtual_graphs"),{method:"POST",body:JSON.stringify({name:r,mappings:i,options:o}),headers:a}).then(n)},update:function(e,r,i,o){var a=e.headers();return a.set("Content-Type","application/json"),t(e.request("admin","virtual_graphs",r),{method:"PUT",body:JSON.stringify({name:r,mappings:i,options:o}),headers:a}).then(n)},remove:function(e,r){var i=e.headers();return t(e.request("admin","virtual_graphs",r),{method:"DELETE",headers:i}).then(n)},available:function(e,r){var i=e.headers();return i.set("Accept","application/json"),t(e.request("admin","virtual_graphs",r,"available"),{headers:i}).then(n)},options:function(e,r){var i=e.headers();return t(e.request("admin","virtual_graphs",r,"options"),{headers:i}).then(n)},mappings:function(e,r){var i=e.headers();return t(e.request("admin","virtual_graphs",r,"mappings"),{headers:i}).then(n)}}}),xt=g(function(e){var t=m.fetch,n=tt.httpBody;e.exports={add:function(e,r){var i=e.headers();return t(e.request("admin","functions","stored"),{method:"POST",body:r,headers:i}).then(n)},get:function(e,r){var i=e.headers();return t(e.request("admin","functions","stored?"+O.stringify({name:r})),{headers:i}).then(n)},remove:function(e,n){var r=e.headers();return t(e.request("admin","functions","stored?"+O.stringify({name:n})),{method:"DELETE",headers:r})},clear:function(e){var n=e.headers();return t(e.request("admin","functions","stored"),{method:"DELETE",headers:n})},getAll:function(e){var r=e.headers();return t(e.request("admin","functions","stored"),{headers:r}).then(n)}}});return{version:(d&&h||d).version,Connection:x,db:ht,query:mt,user:bt,server:_t,virtualGraphs:wt,storedFunctions:xt}},e.exports=r()}).call(t,n("DuR2"),n("EuP9").Buffer)},a1sj:function(e,t,n){var r=n("9DG0").Transform,i=n("OMJi"),o=n("9lrC");function a(e){if(!(this instanceof a))return new a(e);r.call(this,{encoding:"utf8"}),this._writableState.objectMode=!0;var t=this,n=new o({write:function(e,n,r){t.push(e),r&&r()},end:function(e){t.push(null),e&&e()}},e);this._transform=function(e,t,r){n.addTriple(e,r)},this._flush=function(e){n.end(e)}}i.inherits(a,r),e.exports=a},bBF0:function(e,t,n){var r=n("GzAu").expandPrefixedName;function i(e,t){if(!(this instanceof i))return new i(e,t);this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._blankNodeIndex=0,t||!e||e[0]||(t=e,e=null),t=t||{},this._prefixes=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),this.defaultGraph=t.defaultGraph||"http://example.org/#defaultGraph",e&&this.addTriples(e)}i.prototype={get size(){var e=this._size;if(null!==e)return e;var t,n,r=this._graphs;for(var i in r)for(var o in t=r[i].subjects)for(var a in n=t[o])e+=Object.keys(n[a]).length;return this._size=e},_addToIndex:function(e,t,n,r){var i=e[t]||(e[t]={}),o=i[n]||(i[n]={}),a=r in o;return a||(o[r]=null),!a},_removeFromIndex:function(e,t,n,r){var i,o=e[t],a=o[n];for(i in delete a[r],a)return;for(i in delete o[n],o)return;delete e[t]},_findInIndex:function(e,t,n,r,i,o,a,s){var l,u,c,f=[],h=!t+!n+!r>1?Object.keys(this._ids):this._entities;for(var d in t&&((l=e,e={})[t]=l[t]),e){var p=h[d];if(u=e[d])for(var g in n&&((l=u,u={})[n]=l[n]),u){var m=h[g];if(c=u[g])for(var v=(r?r in c?[r]:[]:Object.keys(c)),y=v.length-1;y>=0;y--){var b={subject:"",predicate:"",object:"",graph:s};b[i]=p,b[o]=m,b[a]=h[v[y]],f.push(b)}}}return f},_countInIndex:function(e,t,n,r){var i,o,a,s=0;for(var l in t&&((i=e,e={})[t]=i[t]),e)if(o=e[l])for(var u in n&&((i=o,o={})[n]=i[n]),o)(a=o[u])&&(r?r in a&&s++:s+=Object.keys(a).length);return s},addTriple:function(e,t,n,r){t||(r=e.graph,n=e.object,t=e.predicate,e=e.subject);var i=this._graphs[r=r||this.defaultGraph];i||(i=this._graphs[r]={subjects:{},predicates:{},objects:{}},Object.freeze(i));var o=this._ids,a=this._entities;e=o[e]||(o[a[++this._id]=e]=this._id),t=o[t]||(o[a[++this._id]=t]=this._id),n=o[n]||(o[a[++this._id]=n]=this._id);var s=this._addToIndex(i.subjects,e,t,n);return this._addToIndex(i.predicates,t,n,e),this._addToIndex(i.objects,n,e,t),this._size=null,s},addTriples:function(e){for(var t=e.length-1;t>=0;t--)this.addTriple(e[t])},addPrefix:function(e,t){this._prefixes[e]=t},addPrefixes:function(e){for(var t in e)this.addPrefix(t,e[t])},removeTriple:function(e,t,n,r){t||(r=e.graph,n=e.object,t=e.predicate,e=e.subject),r=r||this.defaultGraph;var i,o,a,s=this._ids,l=this._graphs;if(!(e=s[e]))return!1;if(!(t=s[t]))return!1;if(!(n=s[n]))return!1;if(!(i=l[r]))return!1;if(!(o=i.subjects[e]))return!1;if(!(a=o[t]))return!1;if(!(n in a))return!1;for(e in this._removeFromIndex(i.subjects,e,t,n),this._removeFromIndex(i.predicates,t,n,e),this._removeFromIndex(i.objects,n,e,t),null!==this._size&&this._size--,i.subjects)return!0;return delete l[r],!0},removeTriples:function(e){for(var t=e.length-1;t>=0;t--)this.removeTriple(e[t])},find:function(e,t,n,i){var o=this._prefixes;return this.findByIRI(r(e,o),r(t,o),r(n,o),r(i,o))},findByIRI:function(e,t,n,r){var i,o,a,s,l=[],u={},c=this._ids;for(var f in r?u[r]=this._graphs[r]:u=this._graphs,u)if(i=u[f]){if(e&&!(o=c[e]))return l;if(t&&!(a=c[t]))return l;if(n&&!(s=c[n]))return l;l.push(o?s?this._findInIndex(i.objects,s,o,a,"object","subject","predicate",f):this._findInIndex(i.subjects,o,a,null,"subject","predicate","object",f):a?this._findInIndex(i.predicates,a,s,null,"predicate","object","subject",f):s?this._findInIndex(i.objects,s,null,null,"object","subject","predicate",f):this._findInIndex(i.subjects,null,null,null,"subject","predicate","object",f))}return 1===l.length?l[0]:l.concat.apply([],l)},count:function(e,t,n,i){var o=this._prefixes;return this.countByIRI(r(e,o),r(t,o),r(n,o),r(i,o))},countByIRI:function(e,t,n,r){var i=this._graphs[r=r||this.defaultGraph],o=this._ids;return i?e&&!(e=o[e])?0:t&&!(t=o[t])?0:n&&!(n=o[n])?0:e?n?this._countInIndex(i.objects,n,e,t):this._countInIndex(i.subjects,e,t,n):t?this._countInIndex(i.predicates,t,n,e):this._countInIndex(i.objects,n,e,t):0},createBlankNode:function(e){var t,n;if(e)for(t=e="_:"+e,n=1;this._ids[t];)t=e+n++;else do{t="_:b"+this._blankNodeIndex++}while(this._ids[t]);return this._ids[t]=++this._id,t}},e.exports=i},beWv:function(e,t,n){var r={"./N3Lexer":"vMCy","./N3Lexer.js":"vMCy","./N3Parser":"9M7i","./N3Parser.js":"9M7i","./N3Store":"bBF0","./N3Store.js":"bBF0","./N3StreamParser":"fPMU","./N3StreamParser.js":"fPMU","./N3StreamWriter":"a1sj","./N3StreamWriter.js":"a1sj","./N3Util":"GzAu","./N3Util.js":"GzAu","./N3Writer":"9lrC","./N3Writer.js":"9lrC"};function i(e){return n(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="beWv"},cJqy:function(e,t,n){var r=n("MlMj");function i(e,t){for(var n=0;n0&&u>l&&(u=l);for(var c=0;c=0?(f=g.substr(0,m),h=g.substr(m+1)):(f=g,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},lAJv:function(e,t,n){!function(e){"use strict";var t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function n(e){e.setAttribute("version","1.1"),e.removeAttribute("xmlns"),e.removeAttribute("xlink"),e.hasAttributeNS(t.xmlns,"xmlns")||e.setAttributeNS(t.xmlns,"xmlns",t.svg),e.hasAttributeNS(t.xmlns,"xmlns:xlink")||e.setAttributeNS(t.xmlns,"xmlns:xlink",t.xlink),function(e){var n,r,i=window.document.createElementNS(t.svg,"svg");window.document.body.appendChild(i);for(var o=window.getComputedStyle(i),a=(r=void 0,(r=[]).push(n=e),function e(t){if(t&&t.hasChildNodes())for(var n=t.firstChild;n;)1===n.nodeType&&"SCRIPT"!=n.nodeName&&(r.push(n),e(n)),n=n.nextSibling}(n),r),s=a.length;s--;)l(a[s]);function l(e){var t,n,r,i,a=window.getComputedStyle(e),s="";for(t=0,n=a.length;t'+n]}}e.version="0.0.2",e.save=function(e,t){if("svg"!==e.nodeName||1!==e.nodeType)throw"Need an svg element input";t=t||{};var r=function(e){var t="untitled";return e.id?t=e.id:e.class?t=e.class:window.document.title&&(t=window.document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()),t}(n(e)),i=t.filename||r;!function(e,t){window.URL=window.URL||window.webkitURL;var n=new Blob(e.source,{type:"text/xml"}),r=window.URL.createObjectURL(n),i=document.body,o=document.createElement("a");i.appendChild(o),o.setAttribute("download",t+".svg"),o.setAttribute("href",r),o.style.display="none",o.click(),o.parentNode.removeChild(o),setTimeout(function(){window.URL.revokeObjectURL(r)},10)}(n(e),i)},e.embedRasterImages=function(e){var n=e.querySelectorAll("image");[].forEach.call(n,function(e){var n=e.getAttribute("href");n.match(/^\s*data:([a-z]+\/[a-z0-9\-]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i)||function(e,t){var n,r=new XMLHttpRequest(e);r.open("GET",e,!0),r.responseType="arraybuffer",r.callback=t,r.onload=function(){n=function(e){for(var t=new Uint8Array(e),n=t.length,r=[];n--;)r[n]=String.fromCharCode(t[n]);return window.btoa(r.join(""))}(this.response),this.callback(null,n)},r.onerror=function(){t(0,null)},r.send()}(n,function(n,r){e.setAttributeNS(t.xlink,"href","data:image/png;base64,"+r)})})}}(t)},mB6w:function(e,t,n){(function(e,n){var r=9007199254740991,i="[object Arguments]",o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Null]",u="[object Object]",c="[object Proxy]",f="[object Undefined]",h=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[i]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p[a]=p["[object Map]"]=p["[object Number]"]=p[u]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y="object"==typeof t&&t&&!t.nodeType&&t,b=y&&"object"==typeof n&&n&&!n.nodeType&&n,_=b&&b.exports===y,w=_&&g.process,x=function(){try{return w&&w.binding&&w.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;function C(e,t){return"__proto__"==t?void 0:e[t]}var E,S,T,O=Array.prototype,A=Function.prototype,I=Object.prototype,R=v["__core-js_shared__"],P=A.toString,j=I.hasOwnProperty,D=(E=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",N=I.toString,F=P.call(Object),M=RegExp("^"+P.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=_?v.Buffer:void 0,B=v.Symbol,V=v.Uint8Array,U=(S=Object.getPrototypeOf,T=Object,function(e){return S(T(e))}),z=Object.create,q=I.propertyIsEnumerable,Q=O.splice,H=B?B.toStringTag:void 0,G=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),W=L?L.isBuffer:void 0,K=Math.max,X=Date.now,Z=he(v,"Map"),Y=he(Object,"create"),$=function(){function e(){}return function(t){if(!ke(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(Z||ee),string:new J}},te.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return fe(this,e).get(e)},te.prototype.has=function(e){return fe(this,e).has(e)},te.prototype.set=function(e,t){var n=fe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!Z||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};var se=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function le(e){return null==e?void 0===e?f:l:H&&H in Object(e)?function(e){var t=j.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(e){}var i=N.call(e);return r&&(t?e[H]=n:delete e[H]),i}(e):function(e){return N.call(e)}(e)}function ue(e){return Ce(e)&&le(e)==i}function ce(e,t,n,r,i){e!==t&&se(t,function(o,a){if(ke(o))i||(i=new ne),function(e,t,n,r,i,o,a){var s=C(e,n),l=C(t,n),c=a.get(l);if(c)re(e,n,c);else{var f,h,d,p,g=o?o(s,l,n+"",e,t,a):void 0,m=void 0===g;if(m){var v=ye(l),y=!v&&_e(l),b=!v&&!y&&Ee(l);g=l,v||y||b?ye(s)?g=s:Ce(p=s)&&be(p)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(G?function(e,t){return G(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae);function me(e,t){return e===t||e!=e&&t!=t}var ve=ue(function(){return arguments}())?ue:function(e){return Ce(e)&&j.call(e,"callee")&&!q.call(e,"callee")},ye=Array.isArray;function be(e){return null!=e&&xe(e.length)&&!we(e)}var _e=W||function(){return!1};function we(e){if(!ke(e))return!1;var t=le(e);return t==a||t==s||t==o||t==c}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var Ee=k?function(e){return function(t){return e(t)}}(k):function(e){return Ce(e)&&xe(e.length)&&!!p[le(e)]};function Se(e){return be(e)?function(e,t){var n=ye(e),r=!n&&ve(e),i=!n&&!r&&_e(e),o=!n&&!r&&!i&&Ee(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Te.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!ke(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&de(t,n.length):"string"==r&&t in n)&&me(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++ne._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;se._pos&&(e.push(new r(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,n("W2nU"),n("EuP9").Buffer,n("DuR2"))},nErl:function(e,t){(function(t){e.exports=t}).call(t,{})},nFqq:function(e,t,n){(function(e){var r=n("rzLl"),i=n("mbU0"),o=n("q+vg"),a=n("K3Fi"),s=n("UZ5h"),l=t;l.request=function(t,n){t="string"==typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,l=t.hostname||t.host,u=t.port,c=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?a+"//"+l:"")+(u?":"+u:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,n("DuR2"))},nsdQ:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("TToO"),i=n("AMGY"),o=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return Object(r.b)(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.a.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return r.schedule(a,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(r.schedule(a,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(r.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.a.setTimeout(function(){throw e})})},t}(n("YaPU").a);function a(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function s(e){var t=e.subscriber;t.closed||t.error(e.err)}},ocFG:function(e,t,n){var r=n("LRHW").Parser,i={};function o(e){switch(e[0]){case'"':if(e.indexOf("^^")>0){var t=e.split("^^");return{literal:t[0]+"^^<"+t[1]+">"}}return{literal:e};case"_":return{blank:e.replace("b","")};default:return{token:"uri",value:e,prefix:null,suffix:null}}}i.parser={async:!0,parse:function(e,t,n,i){i||(i=n,n=t,t=null),t&&"string"==typeof t&&(t={token:"uri",value:t,prefix:null,suffix:null}),n&&n.baseURI&&(n.documentIRI=n.baseURI);var a=[];new r(n).parse(e,function(e,n){e?i(e):n?a.push({subject:o(n.subject),predicate:o(n.predicate),object:o(n.object),graph:t}):i(!1,a)})},resetBlankNodeIds:function(){r._resetBlankNodeIds()}},e.exports={RVN3Parser:i}},"q+vg":function(e,t){e.exports=function(){for(var e={},t=0;t1))throw"An optional argument map and a callback must be provided";l=e,n=t}null==l.treeOrder&&(l.treeOrder=15);var u=a,c=i;!0===l.persistent&&(u=s,c=o),this.functionMap={};var f=this;this.customFns={},new u(function(e){var t=function(){new c(l,function(t){var i=function(){l.backend=t,l.lexicon=e,f.engine=new r(l),n(null,f)};l.overwrite?t.clear(i):i()})};!0===l.overwrite?e.clear(t):t()},l.name)},Store.prototype.rdf=l.rdf,Store.prototype.rdf.api=l,Store.prototype.registerCustomFunction=function(e,t){this.customFns[e]=t,this.engine.setCustomFunctions(this.customFns)},Store.prototype.execute=function(){if(3===arguments.length)this.executeWithEnvironment(arguments[0],arguments[1],arguments[2]);else if(4===arguments.length)this.executeWithEnvironment(arguments[0],arguments[1],arguments[2],arguments[3]);else{var e;if(1===arguments.length){e=arguments[0];var t=function(){}}else 2===arguments.length&&(e=arguments[0],t=arguments[1]);this.engine.execute(e,t)}},Store.prototype.executeWithEnvironment=function(){var e,t,n;if(3===arguments.length){e=arguments[0];var r=function(){};t=arguments[1],n=arguments[2]}else 4===arguments.length&&(e=arguments[0],r=arguments[3],t=arguments[1],n=arguments[2]);t=u.map(t,function(e){return{token:"uri",value:e}}),n=u.map(n,function(e){return{token:"uri",value:e}}),this.engine.execute(e,r,t,n)},Store.prototype.graph=function(){var e=null,t=null;if(1===arguments.length)t=arguments[0]||function(){},e=this.engine.lexicon.defaultGraphUri;else{if(2!==arguments.length)throw"An optional graph URI and a callback function must be provided";t=arguments[1]||function(){},e=arguments[0]}null!=this.rdf.resolve(e)&&(e=this.rdf.resolve(e)),this.engine.execute("CONSTRUCT { ?s ?p ?o } WHERE { GRAPH <"+e+"> { ?s ?p ?o } }",t)},Store.prototype.node=function(){var e=null,t=null,n=null;if(2===arguments.length)n=arguments[0],t=arguments[1]||function(){},e=this.engine.lexicon.defaultGraphUri;else{if(3!==arguments.length)throw"An optional graph URI, node URI and a callback function must be provided";n=arguments[0],e=arguments[1],t=arguments[2]||function(){}}null!=this.rdf.resolve(e)&&(e=this.rdf.resolve(e)),null!=this.rdf.resolve(n)&&(n=this.rdf.resolve(n)),this.engine.execute("CONSTRUCT { <"+n+"> ?p ?o } WHERE { GRAPH <"+e+"> { <"+n+"> ?p ?o } }",t)},Store.prototype.startObservingNode=function(){2===arguments.length?this.engine.callbacksBackend.observeNode(arguments[0],arguments[1],function(){}):3===arguments.length&&this.engine.callbacksBackend.observeNode(arguments[0],arguments[1],arguments[2],function(){})},Store.prototype.stopObservingNode=function(e){this.engine.callbacksBackend.stopObservingNode(e)},Store.prototype.startObservingQuery=function(){var e=arguments[2];this.engine.callbacksBackend.observeQuery(arguments[0],arguments[1],null!=e?e:function(){})},Store.prototype.stopObservingQuery=function(e){this.engine.callbacksBackend.stopObservingQuery(e)},Store.prototype.subscribe=function(e,t,n,r,i){var o=this,a=function(e,t){var n=[],r={blanks:{},outCache:{}},a=[];u.each(t,function(e){var t=l.buildRDFResource(e.subject,a,o.engine,r),i=l.buildRDFResource(e.predicate,a,o.engine,r),s=l.buildRDFResource(e.object,a,o.engine,r);null!=t&&null!=i&&null!=s&&(e=new l.Triple(t,i,s),n.push(e))}),i(e,n)};this.functionMap[i]=a,this.engine.callbacksBackend.subscribe(e,t,n,r,a,function(){})},Store.prototype.unsubscribe=function(e){this.engine.callbacksBackend.unsubscribe(this.functionMap[e]),delete this.functionMap[e]},Store.prototype.setPrefix=function(e,t){this.rdf.setPrefix(e,t)},Store.prototype.setDefaultPrefix=function(e){this.rdf.setDefaultPrefix(e)},Store.prototype.insert=function(){var e,t,n;if(1===arguments.length)t=arguments[0],n=function(){};else if(2===arguments.length)t=arguments[0],n=arguments[1]||function(){};else{if(3!==arguments.length)throw"The triples to insert, an optional graph and callback must be provided";t=arguments[0],e=this.rdf.createNamedNode(arguments[1]),n=arguments[2]||function(){}}var r="",i=this;t.forEach(function(e){r=r+i._nodeToQuery(e.subject)+i._nodeToQuery(e.predicate)+i._nodeToQuery(e.object)+"."}),r=null!=e?"INSERT DATA { GRAPH "+this._nodeToQuery(e)+" { "+r+" } }":"INSERT DATA { "+r+" }",this.engine.execute(r,n)},Store.prototype._nodeToQuery=function(e){if("NamedNode"===e.interfaceName){var t=this.rdf.resolve(e.valueOf());return null!=t?"<"+t+">":"<"+e.valueOf()+">"}return e.toString()},Store.prototype.delete=function(){var e,t,n;if(1===arguments.length)t=arguments[0],n=function(){};else if(2===arguments.length)t=arguments[0],n=arguments[1]||function(){};else{if(3!==arguments.length)throw"The triples to delete, an optional graph and callback must be provided";t=arguments[0],e=this.rdf.createNamedNode(arguments[1]),n=arguments[2]||function(){}}var r="",i=this;t.forEach(function(e){r=r+i._nodeToQuery(e.subject)+i._nodeToQuery(e.predicate)+i._nodeToQuery(e.object)+"."}),r=null!=e?"DELETE DATA { GRAPH "+this._nodeToQuery(e)+" { "+r+" } }":"DELETE DATA { "+r+" }",this.engine.execute(r,n)},Store.prototype.clear=function(){var e;if(0===arguments.length){e=this.rdf.createNamedNode(this.engine.lexicon.defaultGraphUri);var t=function(){}}else if(1===arguments.length)e=this.rdf.createNamedNode(this.engine.lexicon.defaultGraphUri),t=arguments[0]||function(){};else{if(2!==arguments.length)throw"The optional graph and a callback must be provided";e=this.rdf.createNamedNode(arguments[0]),t=arguments[1]||function(){}}var n="CLEAR GRAPH "+this._nodeToQuery(e);this.engine.execute(n,t)},Store.prototype.setBatchLoadEvents=function(e){this.engine.eventsOnBatchLoad=e},Store.prototype.registerDefaultNamespace=function(e,t){this.rdf.prefixes.set(e,t),this.engine.registerDefaultNamespace(e,t)},Store.prototype.registerDefaultProfileNamespaces=function(){var e=this.rdf.prefixes.values();for(var t in e)this.registerDefaultNamespace(t,e[t])},Store.prototype.load=function(){var e,t,n,r,i={};if(3===arguments.length)n=this.rdf.createNamedNode(this.engine.lexicon.defaultGraphUri),e=arguments[0],t=arguments[1],r=arguments[2]||function(){};else if(4===arguments.length)e=arguments[0],t=arguments[1],"string"==typeof(i=arguments[2])?(n=this.rdf.createNamedNode(i),i={}):(n=this.rdf.createNamedNode(i.graph||this.engine.lexicon.defaultGraphUri),delete i.graph),r=arguments[3]||function(){};else if(2===arguments.length)throw"The mediaType of the parser, the data a callback and an optional graph must be provided";if("remote"===e){var o="LOAD <"+(t=this.rdf.createNamedNode(t)).valueOf()+"> INTO GRAPH <"+n.valueOf()+">";this.engine.execute(o,r)}else{var a=this,s=this.engine.rdfLoader.parsers[e];if(!s)return r(new Error("Cannot find parser for the provided media type:"+e));var l=[s,{token:"uri",value:n.valueOf()},t,i,function(e,t){e?r(e,t):a.engine.batchLoad(t,function(e){null!=e?r(null,e):r(new Error("Erro batch-loading triples."))})}];t&&"string"==typeof t&&0===t.indexOf("file://")?this.engine.rdfLoader.loadFromFile.apply(null,l):this.engine.rdfLoader.tryToParse.apply(null,l)}},Store.prototype.registerParser=function(e,t){this.engine.rdfLoader.registerParser(e,t)},Store.prototype.registeredGraphs=function(e){this.engine.lexicon.registeredGraphs(!0,function(t){var n=u.map(t,function(e){return new l.NamedNode(e)});e(null,n)})},Store.prototype.getNetworkTransport=function(){return NetworkTransport},Store.prototype.setNetworkTransport=function(e){NetworkTransport=e},Store.prototype.close=function(e){null==e&&(e=function(){}),this.engine.close?this.engine.close(e):e()},Store.VERSION="0.9.17",Store.yieldFrequency=function(e){u.yieldFrequency(e)},e.exports.Store=Store,e.exports.create=function(){return 1==arguments.length?new Store(arguments[0]):2==arguments.length?new Store(arguments[0],arguments[1]):new Store},e.exports.connect=function(){(1==arguments.length?arguments[0]:2==arguments.length?arguments[1]:arguments[2])(new Error("Store#connect is not supported in the 0.9.X series of the library"))}},qOJP:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},rWjJ:function(e,t,n){var r=n("uMLD"),i="http://www.w3.org/1999/02/22-rdf-syntax-ns#",o=i+"nil",a=i+"first",s=i+"rest",l=/^[a-z][a-z0-9+.-]*:/i,u=/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i,c=/(?:^|\/)\.\.?(?:$|[\/#?])/,f=0,h=0;function d(e){if(!(this instanceof d))return new d(e);this._contextStack=[],this._graph=null,this._setBase((e=e||{}).documentIRI);var t="string"==typeof e.format?e.format.match(/\w*$/)[0].toLowerCase():"",n="turtle"===t,i="trig"===t,o=/triple/.test(t),a=/quad/.test(t),s=this._n3Mode=/n3/.test(t),l=o||a;(this._supportsNamedGraphs=!(n||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||i||o||s),l&&(this._base="",this._resolveIRI=function(e){return this._error("Disallowed relative IRI",e),this._callback=p,this._subject=null}),this._blankNodePrefix="string"!=typeof e.blankNodePrefix?"":"_:"+e.blankNodePrefix.replace(/^_:/,""),this._lexer=e.lexer||new r({lineMode:l,n3:s}),this._explicitQuantifiers=!!e.explicitQuantifiers}function p(){}d._resetBlankNodeIds=function(){f=h=0},d.prototype={_setBase:function(e){if(e){var t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(u),this._baseRoot=e[0],this._baseScheme=e[1]}else this._base=null},_saveContext:function(e,t,n,r,i){var o=this._n3Mode;this._contextStack.push({subject:n,predicate:r,object:i,graph:t,type:e,inverse:!!o&&this._inversePredicate,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph+".",this._quantified=Object.create(this._quantified))},_restoreContext:function(){var e=this._contextStack.pop(),t=this._n3Mode;this._subject=e.subject,this._predicate=e.predicate,this._object=e.object,this._graph=e.graph,t&&(this._inversePredicate=e.inverse,this._prefixes._=e.blankPrefix,this._quantified=e.quantified)},_readInTopContext:function(e){switch(e.type){case"eof":return null!==this._graph?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}},_readEntity:function(e,t){var n;switch(e.type){case"IRI":case"typeIRI":n=null===this._base||l.test(e.value)?e.value:this._resolveIRI(e);break;case"type":case"blank":case"prefixed":var r=this._prefixes[e.prefix];if(void 0===r)return this._error('Undefined prefix "'+e.prefix+':"',e);n=r+e.value;break;case"var":return e.value;default:return this._error("Expected entity but got "+e.type,e)}return!t&&this._n3Mode&&n in this._quantified&&(n=this._quantified[n]),n},_readSubject:function(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject="_:b"+h++,null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,o,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph="_:b"+h++,null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate="http://www.w3.org/2000/10/swap/reify#forSome",this._quantifiedPrefix="_:b",this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate="http://www.w3.org/2000/10/swap/reify#forAll",this._quantifiedPrefix="?b-",this._readQuantifierList):this._error('Unexpected "@forAll"',e);default:if(void 0===(this._subject=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph},_readPredicate:function(e){var t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=e.value;break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected "+t,e):(this._subject=null,"]"===t?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",e);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if(void 0===(this._predicate=this._readEntity(e)))return}return this._readObject},_readObject:function(e){switch(e.type){case"literal":return this._object=e.value,this._readDataTypeOrLang;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject="_:b"+h++),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,o),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph="_:b"+h++),this._readSubject):this._error("Unexpected graph",e);default:if(void 0===(this._object=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()},_readPredicateOrNamedGraph:function(e){return"{"===e.type?this._readGraph(e):this._readPredicate(e)},_readGraph:function(e){return"{"!==e.type?this._error("Expected graph but got "+e.type,e):(this._graph=this._subject,this._subject=null,this._readSubject)},_readBlankNodeHead:function(e){return"]"===e.type?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))},_readBlankNodeTail:function(e){if("]"!==e.type)return this._readBlankNodePunctuation(e);null!==this._subject&&this._triple(this._subject,this._predicate,this._object,this._graph);var t=null===this._predicate;return this._restoreContext(),null===this._object?t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank:this._getContextEndReader()},_readPredicateAfterBlank:function(e){return"."!==e.type||this._contextStack.length?this._readPredicate(e):(this._subject=null,this._readPunctuation(e))},_readListItem:function(e){var t=null,n=null,r=this._subject,i=this._contextStack,l=i[i.length-1],u=this._readListItem,c=!0;switch(e.type){case"[":this._saveContext("blank",this._graph,n="_:b"+h++,a,this._subject=t="_:b"+h++),u=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n="_:b"+h++,a,o),this._subject=null;break;case")":if(this._restoreContext(),0!==i.length&&"list"===i[i.length-1].type&&this._triple(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(u=this._readPredicate,this._subject===o)return u}else if(u=this._getContextEndReader(),this._object===o)return u;n=o;break;case"literal":t=e.value,c=!1,u=this._readListItemDataTypeOrLang;break;default:if(void 0===(t=this._readEntity(e)))return}if(null===n&&(this._subject=n="_:b"+h++),null===r?null===l.predicate?l.subject=n:l.object=n:this._triple(r,s,n,this._graph),null!==t){if(this._n3Mode&&("IRI"===e.type||"prefixed"===e.type))return this._saveContext("item",this._graph,n,a,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);c?this._triple(n,a,t,this._graph):this._object=t}return u},_readDataTypeOrLang:function(e){return this._completeLiteral(e,!1)},_readListItemDataTypeOrLang:function(e){return this._completeLiteral(e,!0)},_completeLiteral:function(e,t){var n=!1;switch(e.type){case"type":case"typeIRI":n=!0,this._object+="^^"+this._readEntity(e);break;case"langcode":n=!0,this._object+="@"+e.value.toLowerCase()}return t&&this._triple(this._subject,a,this._object,this._graph),n?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(e))},_readFormulaTail:function(e){return"}"!==e.type?this._readPunctuation(e):(null!==this._subject&&this._triple(this._subject,this._predicate,this._object,this._graph),this._restoreContext(),null===this._object?this._readPredicate:this._getContextEndReader())},_readPunctuation:function(e){var t,n=this._subject,r=this._graph,i=this._inversePredicate;switch(e.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,t=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(r=this._readEntity(e))){t=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'+this._object+'"',e)}if(null!==n){var o=this._predicate,a=this._object;i?this._triple(a,o,n,r):this._triple(n,o,a,r)}return t},_readBlankNodePunctuation:function(e){var t;switch(e.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object+'"',e)}return this._triple(this._subject,this._predicate,this._object,this._graph),t},_readQuadPunctuation:function(e){return"."!==e.type?this._error("Expected dot to follow quad",e):this._readInTopContext},_readPrefix:function(e){return"prefix"!==e.type?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)},_readPrefixIRI:function(e){if("IRI"!==e.type)return this._error('Expected IRI to follow prefix "'+this._prefix+':"',e);var t=this._readEntity(e);return this._prefixes[this._prefix]=t,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation},_readBaseIRI:function(e){return"IRI"!==e.type?this._error("Expected IRI to follow base declaration",e):(this._setBase(null===this._base||l.test(e.value)?e.value:this._resolveIRI(e)),this._readDeclarationPunctuation)},_readNamedGraphLabel:function(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}},_readNamedGraphBlankLabel:function(e){return"]"!==e.type?this._error("Invalid graph label",e):(this._subject="_:b"+h++,this._readGraph)},_readDeclarationPunctuation:function(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):"."!==e.type?this._error("Expected declaration to end with a dot",e):this._readInTopContext},_readQuantifierList:function(e){var t;switch(e.type){case"IRI":case"prefixed":if(void 0!==(t=this._readEntity(e,!0)))break;default:return this._error("Unexpected "+e.type,e)}return this._explicitQuantifiers?(null===this._subject?this._triple(this._graph||"",this._predicate,this._subject="_:b"+h++,"urn:n3:quantifiers"):this._triple(this._subject,s,this._subject="_:b"+h++,"urn:n3:quantifiers"),this._triple(this._subject,a,t,"urn:n3:quantifiers")):this._quantified[t]=this._quantifiedPrefix+h++,this._readQuantifierPunctuation},_readQuantifierPunctuation:function(e){return","===e.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._triple(this._subject,s,o,"urn:n3:quantifiers"),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))},_getPathReader:function(e){return this._afterPath=e,this._readPath},_readPath:function(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var t=this._contextStack,n=t.length&&t[t.length-1];if(n&&"item"===n.type){var r=this._subject;this._restoreContext(),this._triple(this._subject,a,r,this._graph)}return this._afterPath(e)}},_readForwardPath:function(e){var t,n,r="_:b"+h++;if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(t=this._subject,this._subject=r):(t=this._object,this._object=r),this._triple(t,n,r,this._graph),this._readPath},_readBackwardPath:function(e){var t,n,r="_:b"+h++;if(void 0!==(t=this._readEntity(e)))return null===this._predicate?(n=this._subject,this._subject=r):(n=this._object,this._object=r),this._triple(r,t,n,this._graph),this._readPath},_getContextEndReader:function(){var e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail}},_triple:function(e,t,n,r){this._callback(null,{subject:e,predicate:t,object:n,graph:r||""})},_error:function(e,t){var n=new Error(e+" on line "+t.line+".");n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n)},_resolveIRI:function(e){var t=e.value;switch(t[0]){case void 0:return this._base;case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return("/"===t[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return this._removeDotSegments(this._basePath+t)}},_removeDotSegments:function(e){if(!c.test(e))return e;for(var t="",n=e.length,r=-1,i=-1,o=0,a="/";r=i&&(t=t.substr(0,o)),"/"!==a)return t+"/"+e.substr(r+1);o=r+1}}}a=e[++r]}return t+e.substring(o)},parse:function(e,t,n){var r=this;if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix||"_:b"+f+++"_",this._prefixCallback=n||p,this._inversePredicate=!1,this._quantified=Object.create(null),!t){var i,o=[];if(this._callback=function(e,t){e?i=e:t&&o.push(t)},this._lexer.tokenize(e).every(function(e){return r._readCallback=r._readCallback(e)}),i)throw i;return o}this._callback=t,this._lexer.tokenize(e,function(e,t){null!==e?(r._callback(e),r._callback=p):r._readCallback&&(r._readCallback=r._readCallback(t))})}},e.exports=d},rxKx:function(e,t,n){var r;!function(i,o,a,s){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),f="function",h=Math.round,d=Math.abs,p=Date.now;function g(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function A(e){return e.trim().split(/\s+/g)}function I(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]}):r.sort()),r}function j(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=te(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,u=t.center=ne(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=ae(l,u),t.distance=oe(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==V&&o.eventType!==U||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(t.deltaX,t.deltaY);var c,f,h=re(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,t.scale=a?(c=a.pointers,oe((f=r)[0],f[1],$)/oe(c[0],c[1],$)):1,t.rotation=a?function(e,t){return ae(r[1],r[0],$)+ae(e[1],e[0],$)}(a.pointers):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=z&&(l>B||a.velocity===s)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,f=re(l,u,c);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,o=ie(u,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var g=e.element;T(t.srcEvent.target,g)&&(g=t.srcEvent.target),t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n=d(t)?e<0?Q:H:t<0?G:W}function oe(e,t,n){n||(n=Y);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function ae(e,t,n){return n||(n=Y),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(N(this.element),this.evWin,this.domHandler)}};var se={mousedown:V,mousemove:2,mouseup:U},le="mousedown",ue="mousemove mouseup";function ce(){this.evEl=le,this.evWin=ue,this.pressed=!1,J.apply(this,arguments)}w(ce,J,{handler:function(e){var t=se[e.type];t&V&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=U),this.pressed&&(t&U&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var fe={pointerdown:V,pointermove:2,pointerup:U,pointercancel:z,pointerout:z},he={2:"touch",3:"pen",4:"mouse",5:"kinect"},de="pointerdown",pe="pointermove pointerup pointercancel";function ge(){this.evEl=de,this.evWin=pe,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(de="MSPointerDown",pe="MSPointerMove MSPointerUp MSPointerCancel"),w(ge,J,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=fe[r],o=he[e.pointerType]||e.pointerType,a="touch"==o,s=I(t,e.pointerId,"pointerId");i&V&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(U|z)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var me={touchstart:V,touchmove:2,touchend:U,touchcancel:z},ve="touchstart",ye="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ve,this.evWin=ye,this.started=!1,J.apply(this,arguments)}w(be,J,{handler:function(e){var t=me[e.type];if(t===V&&(this.started=!0),this.started){var n=(function(e,t){var n=R(e.touches),r=R(e.changedTouches);return t&(U|z)&&(n=P(n.concat(r),"identifier",!0)),[n,r]}).call(this,e,t);t&(U|z)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var _e={touchstart:V,touchmove:2,touchend:U,touchcancel:z},we="touchstart touchmove touchend touchcancel";function xe(){this.evTarget=we,this.targetIds={},J.apply(this,arguments)}w(xe,J,{handler:function(e){var t=_e[e.type],n=(function(e,t){var n=R(e.touches),r=this.targetIds;if(t&(2|V)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=R(e.changedTouches),s=[],l=this.target;if(o=n.filter(function(e){return T(e.target,l)}),t===V)for(i=0;i-1&&r.splice(e,1)},ke)}}w(Ce,J,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(e,t){e&V?(this.primaryTouch=t.changedPointers[0].identifier,Ee.call(this,t)):e&(U|z)&&Ee.call(this,t)}).call(this,t,n);else if(r&&(function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n=je&&r(t.options.event+Me(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return Ve.prototype.attrTest.call(this,e)&&(this.state&Re||!(this.state&Re)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Le(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(ze,Ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Re)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(qe,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(U|z)&&!i)this.reset();else if(e.eventType&V)this.reset(),this._timer=g(function(){this.state=De,this.tryEmit()},t.time,this);else if(e.eventType&U)return De;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===De&&(e&&e.eventType&U?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Qe,Ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Re)}}),w(He,Ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|X,pointers:1},getTouchAction:function(){return Ue.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(K|X)?t=e.overallVelocity:n&K?t=e.overallVelocityX:n&X&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&e.eventType&U},emit:function(e){var t=Le(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ge,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance\\"\{\}\|\^\`]/;function s(e){if(!(this instanceof s))return new s(e);if((e=e||{}).lineMode){this._tripleQuotedString=this._number=this._boolean=/$0^/;var t=this;this._tokenize=this.tokenize,this.tokenize=function(e,n){this._tokenize(e,function(e,r){!e&&/^(?:IRI|blank|literal|langcode|typeIRI|\.|eof)$/.test(r.type)?n&&n(e,r):n&&n(e||t._syntaxError(r.type,n=null))})}}this._n3Mode=!1!==e.n3,this._comments=!!e.comments}s.prototype={_iri:/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,_unescapedIri:/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,_unescapedString:/^"[^"\\\r\n]+"/,_singleQuotedString:/^"(?:[^"\\\r\n]|\\.)*"(?=[^"])|^'(?:[^'\\\r\n]|\\.)*'(?=[^'])/,_tripleQuotedString:/^""("[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*")""|^''('[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*')''/,_langcode:/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,_prefix:/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,_prefixed:/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<]))/,_variable:/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<])/,_blank:/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<]))/,_number:/^[\-+]?(?:\d+\.?\d*([eE](?:[\-\+])?\d+)|\d*\.?\d+)(?=\.?[,;:\s#()\[\]\{\}"'<])/,_boolean:/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<])/,_keyword:/^@[a-z]+(?=[\s#<:])/i,_sparqlKeyword:/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,_shortPredicates:/^a(?=\s+|<)/,_newline:/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,_comment:/#([^\n\r]*)/,_whitespace:/^[ \t]+/,_endOfFile:/^(?:#[^\n\r]*)?$/,_tokenizeToEnd:function(e,t){for(var n=this._input,r=this._comments;;){for(var i,o;i=this._newline.exec(n);)r&&(o=this._comment.exec(i[0]))&&e(null,{line:this._line,type:"comment",value:o[1],prefix:""}),n=n.substr(i[0].length,n.length),this._line++;if((i=this._whitespace.exec(n))&&(n=n.substr(i[0].length,n.length)),this._endOfFile.test(n))return t&&(r&&(o=this._comment.exec(n))&&e(null,{line:this._line,type:"comment",value:o[1],prefix:""}),e(n=null,{line:this._line,type:"eof",value:"",prefix:""})),this._input=n;var s,l=this._line,u="",c="",f="",h=n[0],d=null,p=0,g=!1;switch(h){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(p=1,u="^");break}if(this._previousMarker="^^","<"!==(n=n.substr(2))[0]){g=!0;break}case"<":if(d=this._unescapedIri.exec(n))u="IRI",c=d[1];else if(d=this._iri.exec(n)){if(null===(s=this._unescape(d[1]))||a.test(s))return v(this);u="IRI",c=s}else this._n3Mode&&n.length>1&&"="===n[1]&&(u="inverse",p=2,c="http://www.w3.org/2000/10/swap/log#implies");break;case"_":((d=this._blank.exec(n))||t&&(d=this._blank.exec(n+" ")))&&(u="blank",f="_",c=d[1]);break;case'"':case"'":if(d=this._unescapedString.exec(n))u="literal",c=d[0];else if(d=this._singleQuotedString.exec(n)){if(null===(s=this._unescape(d[0])))return v(this);u="literal",c=s.replace(/^'|'$/g,'"')}else if(d=this._tripleQuotedString.exec(n)){if(this._line+=(s=d[1]||d[2]).split(/\r\n|\r|\n/).length-1,null===(s=this._unescape(s)))return v(this);u="literal",c=s.replace(/^'|'$/g,'"')}break;case"?":this._n3Mode&&(d=this._variable.exec(n))&&(u="var",c=d[0]);break;case"@":"literal"===this._previousMarker&&(d=this._langcode.exec(n))?(u="langcode",c=d[1]):(d=this._keyword.exec(n))&&(u=d[0]);break;case".":if(1===n.length?t:n[1]<"0"||n[1]>"9"){u=".",p=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(d=this._number.exec(n)||t&&(d=this._number.exec(n+" ")))&&(u="literal",c='"'+d[0]+'"^^http://www.w3.org/2001/XMLSchema#'+(d[1]?"double":/^[+\-]?\d+$/.test(d[0])?"integer":"decimal"));break;case"B":case"b":case"p":case"P":case"G":case"g":(d=this._sparqlKeyword.exec(n))?u=d[0].toUpperCase():g=!0;break;case"f":case"t":(d=this._boolean.exec(n))?(u="literal",c='"'+d[0]+'"^^http://www.w3.org/2001/XMLSchema#boolean'):g=!0;break;case"a":(d=this._shortPredicates.exec(n))?(u="abbreviation",c="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"):g=!0;break;case"=":this._n3Mode&&n.length>1&&(u="abbreviation",">"!==n[1]?(p=1,c="http://www.w3.org/2002/07/owl#sameAs"):(p=2,c="http://www.w3.org/2000/10/swap/log#implies"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":p=1,u=h;break;default:g=!0}if(g&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(d=this._prefix.exec(n))?((d=this._prefixed.exec(n))||t&&(d=this._prefixed.exec(n+" ")))&&(u="prefixed",f=d[1]||"",c=this._unescape(d[2])):(u="prefix",c=d[1]||"")),"^^"===this._previousMarker)switch(u){case"prefixed":u="type";break;case"IRI":u="typeIRI";break;default:u=""}if(!u)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?v(this):this._input=n;var m={line:l,type:u,value:c,prefix:f};e(null,m),this.previousToken=m,this._previousMarker=u,n=n.substr(p||d[0].length,n.length)}function v(t){e(t._syntaxError(/^\S*/.exec(n)[0]))}},_unescape:function(e){try{return e.replace(i,function(e,t,r,i){var a;if(t){if(a=parseInt(t,16),isNaN(a))throw new Error;return n(a)}if(r){if(a=parseInt(r,16),isNaN(a))throw new Error;return a<=65535?n(a):n(55296+(a-=65536)/1024,56320+(1023&a))}var s=o[i];if(!s)throw new Error;return s})}catch(e){return null}},_syntaxError:function(e){this._input=null;var t=new Error('Unexpected "'+e+'" on line '+this._line+".");return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t},tokenize:function(e,t){var n=this;if(this._line=1,"string"==typeof e){if(this._input=e,"function"!=typeof t){var i,o=[];if(this._tokenizeToEnd(function(e,t){e?i=e:o.push(t)},!0),i)throw i;return o}r(function(){n._tokenizeToEnd(t,!0)})}else this._input="","function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",function(e){null!==n._input&&(n._input+=e,n._tokenizeToEnd(t,!1))}),e.on("end",function(){null!==n._input&&n._tokenizeToEnd(t,!0)}),e.on("error",t)}},e.exports=s},ujcs:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*g}},vMCy:function(e,t){var n=String.fromCharCode,r="function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)},i=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\[uU]|\\(.)/g,o={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},a=/[\x00-\x20<>\\"\{\}\|\^\`]/;function s(e){if(!(this instanceof s))return new s(e);if(e&&e.lineMode){this._tripleQuotedString=this._number=this._boolean=/$0^/;var t=this;this._tokenize=this.tokenize,this.tokenize=function(e,n){this._tokenize(e,function(e,r){!e&&/^(?:IRI|prefixed|literal|langcode|type|\.|eof)$/.test(r.type)?n&&n(e,r):n&&n(e||t._syntaxError(r.type,n=null))})}}}s.prototype={_iri:/^<((?:[^>\\]|\\[uU])+)>/,_unescapedIri:/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>/,_unescapedString:/^"[^"\\]+"(?=[^"\\])/,_singleQuotedString:/^"[^"\\]*(?:\\.[^"\\]*)*"(?=[^"\\])|^'[^'\\]*(?:\\.[^'\\]*)*'(?=[^'\\])/,_tripleQuotedString:/^""("[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*")""|^''('[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*')''/,_langcode:/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,_prefix:/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,_prefixed:/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?=\.?[,;\s#()\[\]\{\}"'<])/,_blank:/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=\.?[,;:\s#()\[\]\{\}"'<])/,_number:/^[\-+]?(?:\d+\.?\d*([eE](?:[\-\+])?\d+)|\d*\.?\d+)(?=[.,;:\s#()\[\]\{\}"'<])/,_boolean:/^(?:true|false)(?=[.,;:\s#()\[\]\{\}"'<])/,_keyword:/^@[a-z]+(?=[\s#<:])/,_sparqlKeyword:/^(?:PREFIX|BASE|GRAPH)(?=[\s#<:])/i,_shortPredicates:/^a(?=\s+|<)/,_newline:/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,_whitespace:/^[ \t]+/,_endOfFile:/^(?:#[^\n\r]*)?$/,_tokenizeToEnd:function(e,t){for(var n=this._input;;){for(var r;r=this._newline.exec(n);)n=n.substr(r[0].length,n.length),this._line++;if((r=this._whitespace.exec(n))&&(n=n.substr(r[0].length,n.length)),this._endOfFile.test(n))return t&&e(n=null,{line:this._line,type:"eof",value:"",prefix:""}),this._input=n;var i,o=this._line,s="",l="",u="",c=n[0],f=null,h=0,d=!1;switch(c){case"^":if(1===n.length)break;if("^"!==n[1])return p(this);if(this._prevTokenType="^","<"!==(n=n.substr(2))[0]){d=!0;break}case"<":if(f=this._unescapedIri.exec(n))s="IRI",l=f[1];else if(f=this._iri.exec(n)){if(null===(i=this._unescape(f[1]))||a.test(i))return p(this);s="IRI",l=i}break;case"_":((f=this._blank.exec(n))||t&&(f=this._blank.exec(n+" ")))&&(s="prefixed",u="_",l=f[1]);break;case'"':case"'":if(f=this._unescapedString.exec(n))s="literal",l=f[0];else if(f=this._singleQuotedString.exec(n)){if(null===(i=this._unescape(f[0])))return p(this);s="literal",l=i.replace(/^'|'$/g,'"')}else if(f=this._tripleQuotedString.exec(n)){if(this._line+=(i=f[1]||f[2]).split(/\r\n|\r|\n/).length-1,null===(i=this._unescape(i)))return p(this);s="literal",l=i.replace(/^'|'$/g,'"')}break;case"@":"literal"===this._prevTokenType&&(f=this._langcode.exec(n))?(s="langcode",l=f[1]):(f=this._keyword.exec(n))&&(s=f[0]);break;case".":if(1===n.length?t:n[1]<"0"||n[1]>"9"){s=".",h=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(f=this._number.exec(n))&&(s="literal",l='"'+f[0]+'"^^http://www.w3.org/2001/XMLSchema#'+(f[1]?"double":/^[+\-]?\d+$/.test(f[0])?"integer":"decimal"));break;case"B":case"b":case"p":case"P":case"G":case"g":(f=this._sparqlKeyword.exec(n))?s=f[0].toUpperCase():d=!0;break;case"f":case"t":(f=this._boolean.exec(n))?(s="literal",l='"'+f[0]+'"^^http://www.w3.org/2001/XMLSchema#boolean'):d=!0;break;case"a":(f=this._shortPredicates.exec(n))?(s="abbreviation",l="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"):d=!0;break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":h=1,s=c;break;default:d=!0}if(d&&("@prefix"!==this._prevTokenType&&"PREFIX"!==this._prevTokenType||!(f=this._prefix.exec(n))?((f=this._prefixed.exec(n))||t&&(f=this._prefixed.exec(n+" ")))&&(s="prefixed",u=f[1]||"",l=this._unescape(f[2])):(s="prefix",l=f[1]||"")),"^"===this._prevTokenType&&(s="IRI"===s||"prefixed"===s?"type":""),!s)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?p(this):this._input=n;e(null,{line:o,type:s,value:l,prefix:u}),this._prevTokenType=s,n=n.substr(h||f[0].length,n.length)}function p(t){e(t._syntaxError(/^\S*/.exec(n)[0]))}},_unescape:function(e){try{return e.replace(i,function(e,t,r,i){var a;if(t){if(a=parseInt(t,16),isNaN(a))throw new Error;return n(a)}if(r){if(a=parseInt(r,16),isNaN(a))throw new Error;return a<=65535?n(a):n(55296+(a-=65536)/1024,56320+(1023&a))}var s=o[i];if(!s)throw new Error;return s})}catch(e){return null}},_syntaxError:function(e){return this._input=null,new Error('Syntax error: unexpected "'+e+'" on line '+this._line+".")},tokenize:function(e,t){var n=this;function i(e){null!==n._input&&(n._input+=e,n._tokenizeToEnd(t,!1))}function o(){null!==n._input&&n._tokenizeToEnd(t,!0)}this._line=1,"string"==typeof e?(this._input=e,r(function(){n._tokenizeToEnd(t,!0)})):(this._input="",e&&"function"!=typeof e?("function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",i),e.on("end",o)):(this.addChunk=i,this.end=o,t||(t=e)))}},e.exports=s},"vv+J":function(e,t,n){var r={"./N3Lexer":"uMLD","./N3Lexer.js":"uMLD","./N3Parser":"rWjJ","./N3Parser.js":"rWjJ","./N3Store":"S+ey","./N3Store.js":"S+ey","./N3StreamParser":"HBhJ","./N3StreamParser.js":"HBhJ","./N3StreamWriter":"JwLh","./N3StreamWriter.js":"JwLh","./N3Util":"ILD9","./N3Util.js":"ILD9","./N3Writer":"0zc4","./N3Writer.js":"0zc4"};function i(e){return n(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="vv+J"},vzCy:function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},wQLW:function(e,t,n){if(!n("Cbv+").isWorker()){var r=n("nFqq"),i=n("fBpl"),o=n("UZ5h");NetworkTransport={load:function(e,t,n,a){var s=null==a?3:a,l=o.parse(e,!0,!0),u={host:l.host,hostname:l.hostname,method:"GET",path:l.path,headers:{host:l.hostname,Accept:t}},c=null;"http:"===l.protocol?(u.port=l.port||80,c=r):"https:"===l.protocol&&(u.port=l.port||443,c=i);var f=c.request(u,function(e){var r=e.headers,i="";if("2"==(""+e.statusCode)[0])e.on("end",function(){n(null,{headers:r,data:i})}),e.on("data",function(e){i+=e});else if("3"==(""+e.statusCode)[0])if(0==s)n(new Error("Too many redirections"));else{var o=r.Location||r.location;null!=o?NetworkTransport.load(o,t,n,s-1):n(new Error("Redirection without location header"))}else n(new Error("HTTP error: "+e.statusCode))});f.on("error",n),f.end()}},e.exports={NetworkTransport:NetworkTransport}}},x0Ha:function(e,t,n){"use strict";var r=n("ypnx");function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},x35b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("WT6e"),i=(n("rxKx"),n("Xjw4")),o=n("TToO"),a=n("g5jc"),s=n("x6VL"),l=function(e){function t(t){e.call(this),this._value=t}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(a.a),u=n("Veqx"),c=u.a.of,f=n("Qnch");function h(e,t){return function(e,t){return Object(f.a)(e,t,1)}(e,t)(this)}var d=n("gL+p");function p(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),Object(f.a)(e,t,n)(this)}var g=n("YaPU"),m=n("BX3T"),v=n("N4j0"),y=n("cQXm"),b=n("nsdQ"),_=n("AMGY"),w=n("etqZ"),x=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=E(t)}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,r=e.subscriber;if(e.hasError)r.error(e.error);else{var i=n.next();i.done?r.complete():(r.next(i.value),e.index=t+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(g.a),k=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[w.a]=function(){return this},e.prototype.next=function(){return this.idxS?S:i:i}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[w.a]=function(){return this},e.prototype.next=function(){return this.idx=e.length?r.complete():(r.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(t.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:e});for(var o=0;o=2&&(n=!0),function(r){return r.lift(new ie(e,t,n))}}var ie=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new oe(e,this.accumulator,this.seed,this.hasSeed))},e}(),oe=function(e){function t(t,n,r,i){e.call(this,t),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(I.a),ae=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return Object(o.b)(t,e),t}(Error);function se(e){return function(t){return 0===e?new O.a:t.lift(new le(e))}}var le=function(){function e(e){if(this.total=e,this.total<0)throw new ae}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.total))},e}(),ue=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return Object(o.b)(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2?function(n){return Object(he.a)(re(e,t),se(1),(void 0===(r=t)&&(r=null),function(e){return e.lift(new ce(r))}))(n);var r}:function(t){return Object(he.a)(re(function(t,n,r){return e(t,n,r+1)}),se(1))(t)}}var pe=n("OE0E");function ge(e,t){return function(n){return n.lift(new me(e,t))}}var me=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.predicate,this.thisArg))},e}(),ve=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return Object(o.b)(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(I.a);function ye(e,t){return ge(e,t)(this)}var be=function(e,t){this.id=e,this.url=t},_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(be),we=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return Object(o.b)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(be),xe=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return Object(o.b)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(be),ke=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return Object(o.b)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(be),Ce=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(be),Ee=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(be),Se=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return Object(o.b)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(be),Te=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(be),Oe=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(o.b)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(be),Ae=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),Ie=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),Re=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Pe=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),je=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),De=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Ne="primary",Fe=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function Me(e){return new Fe(e)}function Le(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function We(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ke(e){var t=ne.call(e);return $.call(t,function(e){return!0===e})}function Xe(e){return Object(r["\u0275isObservable"])(e)?e:Object(r["\u0275isPromise"])(e)?Object(X.a)(Promise.resolve(e)):c(e)}function Ze(e,t,n){return n?function(e,t){return Qe(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!et(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!et(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!et(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!et(n.segments,a)&&!!n.children[Ne]&&t(n.children[Ne],r,s)}(t,n,n.segments)}(e.root,t.root)}var Ye=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Me(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return it.serialize(this)},e}(),$e=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,We(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ot(this)},e}(),Je=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Me(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ft(this)},e}();function et(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function tt(e,t){var n=[];return We(e.children,function(e,r){r===Ne&&(n=n.concat(t(e,r)))}),We(e.children,function(e,r){r!==Ne&&(n=n.concat(t(e,r)))}),n}var nt=function(){},rt=function(){function e(){}return e.prototype.parse=function(e){var t=new mt(e);return new Ye(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return ot(t);if(n){var r=t.children[Ne]?e(t.children[Ne],!1):"",i=[];return We(t.children,function(t,n){n!==Ne&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=tt(t,function(n,r){return r===Ne?[e(t.children[Ne],!1)]:[r+":"+e(n,!1)]});return ot(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return st(e)+"="+st(t)}).join("&"):st(e)+"="+st(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+st(e.fragment):"")},e}(),it=new rt;function ot(e){return e.segments.map(function(e){return ft(e)}).join("/")}function at(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(e){return at(e).replace(/%3B/gi,";")}function lt(e){return at(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ut(e){return decodeURIComponent(e)}function ct(e){return ut(e.replace(/\+/g,"%20"))}function ft(e){return""+lt(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+lt(e)+"="+lt(t[e])}).join(""));var t}var ht=/^[^\/()?;=&#]+/;function dt(e){var t=e.match(ht);return t?t[0]:""}var pt=/^[^=?&#]+/,gt=/^[^?&#]+/,mt=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Ne]=new $e(e,t)),n},e.prototype.parseSegment=function(){var e=dt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Je(ut(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=dt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=dt(this.remaining);r&&this.capture(n=r)}e[ut(t)]=ut(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(pt))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(gt);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=ct(n),a=ct(r);if(e.hasOwnProperty(o)){var s=e[o];Array.isArray(s)||(e[o]=s=[s]),s.push(a)}else e[o]=a}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=dt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Ne);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Ne]:new $e([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),vt=function(e){this.segmentGroup=e||null},yt=function(e){this.urlTree=e};function bt(e){return new g.a(function(t){return t.error(new vt(e))})}function _t(e){return new g.a(function(t){return t.error(new yt(e))})}function wt(e){return new g.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var xt=function(){function e(e,t,n,i,o){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(r.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ne),n=d.a.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return U.call(n,function(t){if(t instanceof yt)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof vt)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,Ne),r=d.a.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return U.call(r,function(e){if(e instanceof vt)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new $e([],((r={})[Ne]=e,r)):e;return new Ye(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?d.a.call(this.expandChildren(e,t,n),function(e){return new $e([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return c({});var o=[],a=[],s={};We(n,function(n,i){var l=d.a.call(r.expandSegmentGroup(e,t,n,i),function(e){return s[i]=e});i===Ne?o.push(l):a.push(l)});var l=Q.call(c.apply(void 0,o.concat(a))),u=te.call(l);return d.a.call(u,function(){return s})}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var a=this,s=c.apply(void 0,n),l=d.a.call(s,function(s){var l=a.expandSegmentAgainstRoute(e,t,n,s,r,i,o);return U.call(l,function(e){if(e instanceof vt)return c(null);throw e})}),u=Q.call(l),f=K.call(u,function(e){return!!e});return U.call(f,function(e,n){if(e instanceof H||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return c(new $e([],{}));throw new vt(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,a){return St(r)!==o?bt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):bt(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_t(o):p.call(this.lineralizeSegments(n,o),function(n){var o=new $e(n,{});return i.expandSegment(e,o,t,n,r,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var a=this,s=kt(t,r,i),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return bt(t);var f=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?_t(f):p.call(this.lineralizeSegments(r,f),function(r){return a.expandSegment(e,t,n,r.concat(i.slice(u)),o,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?d.a.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new $e(r,{})}):c(new $e(r,{}));var a=kt(t,n,r),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return bt(t);var u=r.slice(l),f=this.getChildConfig(e,n);return p.call(f,function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return Et(e,t,n)&&St(n)!==Ne})}(e,n)?{segmentGroup:Ct(new $e(t,function(e,t){var n={};n[Ne]=t;for(var r=0,i=e;r1||!r.children[Ne])return wt(e.redirectTo);r=r.children[Ne]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ye(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return We(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return We(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new $e(o,a)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){for(var n=0,r=0,i=t;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Le)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ct(e){if(1===e.numberOfChildren&&e.children[Ne]){var t=e.children[Ne];return new $e(e.segments.concat(t.segments),t.children)}return e}function Et(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function St(e){return e.outlet||Ne}var Tt=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Ot(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Ot(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=At(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return At(e,this._root).map(function(e){return e.value})},e}();function Ot(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object(o.a)({},e.params,t.params),data:Object(o.a)({},e.data,t.data),resolve:Object(o.a)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Ft=function(){function e(e,t,n,r,i,o,a,s,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Me(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Me(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),Mt=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Lt(r,n),r}return Object(o.b)(t,e),t.prototype.toString=function(){return Bt(this._root)},t}(Tt);function Lt(e,t){t.value._routerState=e,t.children.forEach(function(t){return Lt(e,t)})}function Bt(e){var t=e.children.length>0?" { "+e.children.map(Bt).join(", ")+" } ":"";return""+e.value+t}function Vt(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qe(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Qe(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&zt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==Ge(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),Ht=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function Gt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Ne]:""+e}function Wt(e,t,n){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return Kt(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=Gt(n[r]),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!$t(s,l,a))return o;r+=2}else{if(!$t(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?de(e,t)(this):de(e)(this)}).call(r,function(e,t){return e})},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.setupChildRouteGuards=function(e,t,n,r){var i=this,o=Rt(t);e.children.forEach(function(e){i.setupRouteGuards(e,o[e.value.outlet],n,r.concat([e.value])),delete o[e.value.outlet]}),We(o,function(e,t){return i.deactivateRouteAndItsChildren(e,n.getContext(t))})},e.prototype.setupRouteGuards=function(e,t,n,r){var i=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new Jt(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(e,t,i.component?a?a.children:null:n,r),s&&this.canDeactivateChecks.push(new en(a.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(t,a),this.canActivateChecks.push(new Jt(r)),this.setupChildRouteGuards(e,null,i.component?a?a.children:null:n,r)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Ut(e,t)||!Qe(e.queryParams,t.queryParams);case"paramsChange":default:return!Ut(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var n=this,r=Rt(e),i=e.value;We(r,function(e,r){n.deactivateRouteAndItsChildren(e,i.component?t?t.children.getContext(r):null:t)}),this.canDeactivateChecks.push(new en(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))},e.prototype.runCanDeactivateChecks=function(){var e=this,t=N(this.canDeactivateChecks),n=p.call(t,function(t){return e.runCanDeactivate(t.component,t.route)});return $.call(n,function(e){return!0===e})},e.prototype.runCanActivateChecks=function(){var e=this,t=N(this.canActivateChecks),n=h.call(t,function(t){return Ke(N([e.fireChildActivationStart(t.route.parent),e.fireActivationStart(t.route),e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))});return $.call(n,function(e){return!0===e})},e.prototype.fireActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new je(e)),c(!0)},e.prototype.fireChildActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new Re(e)),c(!0)},e.prototype.runCanActivate=function(e){var t=this,n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Ke(d.a.call(N(n),function(n){var r,i=t.getToken(n,e);return r=Xe(i.canActivate?i.canActivate(e,t.future):i(e,t.future)),K.call(r)})):c(!0)},e.prototype.runCanActivateChild=function(e){var t=this,n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return Ke(d.a.call(N(r),function(e){return Ke(d.a.call(N(e.guards),function(r){var i,o=t.getToken(r,e.node);return i=Xe(o.canActivateChild?o.canActivateChild(n,t.future):o(n,t.future)),K.call(i)}))}))},e.prototype.extractCanActivateChild=function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var n=this,r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||0===r.length)return c(!0);var i=p.call(N(r),function(r){var i,o=n.getToken(r,t);return i=Xe(o.canDeactivate?o.canDeactivate(e,t,n.curr,n.future):o(e,t,n.curr,n.future)),K.call(i)});return $.call(i,function(e){return!0===e})},e.prototype.runResolve=function(e,t){return d.a.call(this.resolveNode(e._resolve,e),function(n){return e._resolvedData=n,e.data=Object(o.a)({},e.data,Nt(e,t).resolve),null})},e.prototype.resolveNode=function(e,t){var n=this,r=Object.keys(e);if(0===r.length)return c({});if(1===r.length){var i=r[0];return d.a.call(this.getResolver(e[i],t),function(e){return(t={})[i]=e,t;var t})}var o={},a=p.call(N(r),function(r){return d.a.call(n.getResolver(e[r],t),function(e){return o[r]=e,e})});return d.a.call(te.call(a),function(){return o})},e.prototype.getResolver=function(e,t){var n=this.getToken(e,t);return Xe(n.resolve?n.resolve(t,this.future):n(t,this.future))},e.prototype.getToken=function(e,t){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(n?n.module.injector:this.moduleInjector).get(e)},e}(),nn=function(){},rn=function(){function e(e,t,n,r,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return e.prototype.recognize=function(){try{var e=sn(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,Ne),n=new Ft([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new It(n,t),i=new Mt(this.url,r);return this.inheritParamsAndData(i._root),c(i)}catch(e){return new g.a(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=Nt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=tt(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===Ne?-1:t.value.outlet===Ne?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){for(var i=0,o=e;i0?Ge(n).parameters:{};i=new Ft(n,l,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,cn(e),r,e.component,e,on(t),an(t)+n.length,fn(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new nn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Le)(n,e,t);if(!r)throw new nn;var i={};We(r.posParams,function(e,t){i[t]=e.path});var a=r.consumed.length>0?Object(o.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(t,e,n);a=u.consumedSegments,s=n.slice(u.lastChild),i=new Ft(a,u.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,cn(e),r,e.component,e,on(t),an(t)+a.length,fn(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),f=sn(t,a,s,c),h=f.segmentGroup,d=f.slicedSegments;if(0===d.length&&h.hasChildren()){var p=this.processChildren(c,h);return[new It(i,p)]}if(0===c.length&&0===d.length)return[new It(i,[])];var g=this.processSegment(c,h,d,Ne);return[new It(i,g)]},e}();function on(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function an(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function sn(e,t,n,r){if(n.length>0&&function(e,t,n){return r.some(function(n){return ln(e,t,n)&&un(n)!==Ne})}(e,n)){var i=new $e(t,function(e,t,n,r){var i={};i[Ne]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(var o=0,a=n;o0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function un(e){return e.outlet||Ne}function cn(e){return e.data||{}}function fn(e){return e.resolve||{}}var hn=function(){},dn=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),pn=new r.InjectionToken("ROUTES"),gn=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren);return d.a.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Be(He(i.injector.get(pn)).map(qe),i)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(X.a)(this.loader.load(e)):p.call(Xe(e()),function(e){return e instanceof r.NgModuleFactory?c(e):Object(X.a)(t.compiler.compileModuleAsync(e))})},e}(),mn=function(){},vn=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function yn(e){throw e}function bn(e){return c(null)}var _n=function(){function e(e,t,n,i,o,s,u,c){var f=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=c,this.navigations=new l(null),this.navigationId=0,this.events=new a.a,this.errorHandler=yn,this.navigated=!1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new vn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(r.NgModuleRef),this.resetConfig(c),this.currentUrlTree=new Ye(new $e([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new gn(s,u,function(e){return f.triggerEvent(new Ae(e))},function(e){return f.triggerEvent(new Ie(e))}),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.urlSerializer.parse(t.url),r="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,r,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){Ve(e),this.config=e.map(qe),this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,i=t.queryParams,a=t.fragment,s=t.preserveQueryParams,l=t.queryParamsHandling,u=t.preserveFragment;Object(r.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,f=u?this.currentUrlTree.fragment:a,h=null;if(l)switch(l){case"merge":h=Object(o.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=s?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,i){if(0===n.length)return qt(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qt(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return We(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:o}])}if(r.segmentPath)return e.concat([r.segmentPath])}return"string"!=typeof r?e.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):e.concat([r])},[]);return new Qt(n,t,r)}(n);if(o.toRoot())return qt(t.root,new $e([],{}),t,r,i);var a=function(e,n,r){if(e.isAbsolute)return new Ht(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Ht(r.snapshot._urlSegment,!0,0);var i=zt(e.commands[0])?0:1;return function(t,n,o){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,l=e.numberOfDoubleDots;l>s;){if(l-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new Ht(a,!1,s-l)}()}(o,0,e),s=a.processChildren?Kt(a.segmentGroup,a.index,o.commands):Wt(a.segmentGroup,a.index,o.commands);return qt(a.segmentGroup,s,t,r,i)}(c,this.currentUrlTree,e,h,f)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof Ye?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t=0},e.prototype.isFocusable=function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Xr(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e}();function Xr(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Zr(e){if(!Xr(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Yr=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},e.prototype.attachAnchors=function(){var e=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){e._startAnchor.addEventListener("focus",function(){e.focusLastTabbableElement()}),e._endAnchor.addEventListener("focus",function(){e.focusFirstTabbableElement()}),e._element.parentNode&&(e._element.parentNode.insertBefore(e._startAnchor,e._element),e._element.parentNode.insertBefore(e._endAnchor,e._element.nextSibling))})},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return e.tabIndex=this._enabled?0:-1,e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(jr(1)).subscribe(e)},e}(),$r=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new Yr(e,this._checker,this._ngZone,this._document,t)},e}();function Jr(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var ei=0,ti=new Map,ni=null,ri=function(){function e(e){this._document=e}return e.prototype.describe=function(e,t){this._canBeDescribed(e,t)&&(ti.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))},e.prototype.removeDescription=function(e,t){if(this._canBeDescribed(e,t)){this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t);var n=ti.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t),ni&&0===ni.childNodes.length&&this._deleteMessagesContainer()}},e.prototype.ngOnDestroy=function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&n!==t._activeItemIndex&&(t._activeItemIndex=n)}})}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(){return this._wrap=!0,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withTypeAhead=function(e){var t=this;if(void 0===e&&(e=200),this._items.length&&this._items.some(function(e){return"function"!=typeof e.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Hr(function(e){return t._pressedLetters.push(e)}),Vr(e),ge(function(){return t._pressedLetters.length>0}),Object(Qr.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._items.toArray(),r=1;r=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t)))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItemIndex=function(e){this._activeItemIndex=e},e.prototype._setActiveItemByDelta=function(e,t){void 0===t&&(t=this._items.toArray()),this._wrap?this._setActiveInWrapMode(e,t):this._setActiveInDefaultMode(e,t)},e.prototype._setActiveInWrapMode=function(e,t){for(var n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}},e.prototype._setActiveInDefaultMode=function(e,t){this._setActiveItemByIndex(this._activeItemIndex+e,e,t)},e.prototype._setActiveItemByIndex=function(e,t,n){if(void 0===n&&(n=this._items.toArray()),n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e}(),ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t.prototype.setActiveItem=function(t){this.activeItem&&this.activeItem.setInactiveStyles(),e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.setActiveStyles()},t}(oi),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._origin="program",t}return Object(o.b)(t,e),t.prototype.setFocusOrigin=function(e){return this._origin=e,this},t.prototype.setActiveItem=function(t){e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.focus(this._origin)},t}(oi),li=new r.InjectionToken("liveAnnouncerElement"),ui=function(){function e(e,t){this._document=t,this._liveElement=e||this._createLiveElement()}return e.prototype.announce=function(e,t){var n=this;return void 0===t&&(t="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",t),new Promise(function(t){setTimeout(function(){n._liveElement.textContent=e,t()},100)})},e.prototype.ngOnDestroy=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},e.prototype._createLiveElement=function(){var e=this._document.createElement("div");return e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e},e}();function ci(e,t,n){return e||new ui(t,n)}var fi=function(){function e(e,t){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return e.prototype.monitor=function(e,t,n){var i=this;if(t instanceof r.Renderer2||(n=t),n=!!n,!this._platform.isBrowser)return c(null);if(this._elementInfo.has(e)){var o=this._elementInfo.get(e);return o.checkChildren=n,o.subject.asObservable()}var s={unlisten:function(){},checkChildren:n,subject:new a.a};this._elementInfo.set(e,s),this._incrementMonitoredElementCount();var l=function(t){return i._onFocus(t,e)},u=function(t){return i._onBlur(t,e)};return this._ngZone.runOutsideAngular(function(){e.addEventListener("focus",l,!0),e.addEventListener("blur",u,!0)}),s.unlisten=function(){e.removeEventListener("focus",l,!0),e.removeEventListener("blur",u,!0)},s.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._elementInfo.get(e);t&&(t.unlisten(),t.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())},e.prototype.focusVia=function(e,t){this._setOriginForCurrentEventQueue(t),e.focus()},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})},e.prototype._registerGlobalListeners=function(){var e=this;if(this._platform.isBrowser){var t=function(){e._lastTouchTarget=null,e._setOriginForCurrentEventQueue("keyboard")},n=function(){e._lastTouchTarget||e._setOriginForCurrentEventQueue("mouse")},r=function(t){null!=e._touchTimeoutId&&clearTimeout(e._touchTimeoutId),e._lastTouchTarget=t.target,e._touchTimeoutId=setTimeout(function(){return e._lastTouchTarget=null},650)},i=function(){e._windowFocused=!0,e._windowFocusTimeoutId=setTimeout(function(){return e._windowFocused=!1},0)};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!er()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",t,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!er()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(e._windowFocusTimeoutId),clearTimeout(e._touchTimeoutId),clearTimeout(e._originTimeoutId)}}},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._setClasses=function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._origin=e,this._originTimeoutId=setTimeout(function(){return t._origin=null},0)},e.prototype._wasCausedByTouch=function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===e.target)&&(this._origin||(this._origin=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,this._origin),n.subject.next(this._origin),this._lastFocusOrigin=this._origin,this._origin=null)},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),n.subject.next(null))},e.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},e.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},e}();function hi(e,t,n){return e||new fi(t,n)}var di=function(){},pi=n("GK6M"),gi=n("/iUD"),mi=n("fKB6"),vi=Object.prototype.toString,yi=function(e){function t(t,n,r,i){e.call(this),this.sourceObj=t,this.eventName=n,this.selector=r,this.options=i}return Object(o.b)(t,e),t.create=function(e,n,r,i){return Object(gi.a)(r)&&(i=r,r=void 0),new t(e,n,i,r)},t.setupSubscription=function(e,n,r,i,o){var a;if(function(e){return!!e&&"[object NodeList]"===vi.call(e)}(e)||function(e){return!!e&&"[object HTMLCollection]"===vi.call(e)}(e))for(var s=0,l=e.length;s=0}var xi=n("1Q68");function ki(e){return e instanceof Date&&!isNaN(+e)}var Ci=function(e){function t(t,n,r){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,wi(n)?this.period=Number(n)<1?1:Number(n):Object(xi.a)(n)&&(r=n),Object(xi.a)(r)||(r=Br),this.scheduler=r,this.dueTime=ki(t)?+t-this.scheduler.now():t}return Object(o.b)(t,e),t.create=function(e,n,r){return void 0===e&&(e=0),new t(e,n,r)},t.dispatch=function(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}},t.prototype._subscribe=function(e){return this.scheduler.schedule(t.dispatch,this.dueTime,{index:0,period:this.period,subscriber:e})},t}(g.a).create;function Ei(e,t){return void 0===t&&(t=Br),n=function(){return Ci(e,t)},function(e){return e.lift(new bi(n))};var n}var Si=n("/nXB"),Ti=function(){function e(e,t){this._ngZone=e,this._platform=t,this._scrolled=new a.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return e.prototype.register=function(e){var t=this,n=e.elementScrolled().subscribe(function(){return t._scrolled.next(e)});this.scrollContainers.set(e,n)},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?g.a.create(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(Ei(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):c()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)})},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ge(function(e){return!e||n.indexOf(e)>-1}))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return yi(window.document,"scroll").subscribe(function(){return e._scrolled.next()})})},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e}();function Oi(e,t,n){return e||new Ti(t,n)}var Ai=function(){function e(e,t){var n=this;this._platform=e,this._change=e.isBrowser?t.runOutsideAngular(function(){return Object(Si.a)(yi(window,"resize"),yi(window,"orientationchange"))}):c(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(Ei(e)):this._change},e.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},e}();function Ii(e,t,n){return e||new Ai(t,n)}var Ri=function(){};function Pi(){throw Error("Host already has a portal attached")}var ji=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&Pi(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),Di=function(e){function t(t,n,r){var i=e.call(this)||this;return i.component=t,i.viewContainerRef=n,i.injector=r,i}return Object(o.b)(t,e),t}(ji),Ni=function(e){function t(t,n,r){var i=e.call(this)||this;return i.templateRef=t,i.viewContainerRef=n,i.context=r,i}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(ji),Fi=function(){function e(){this._isDisposed=!1}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Pi(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof Di?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ni?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}(),Mi=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.outletElement=t,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return Object(o.b)(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,r=this._componentFactoryResolver.resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.parentInjector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(Fi),Li=function(e){function t(t,n){var i=e.call(this)||this;return i._componentFactoryResolver=t,i._viewContainerRef=n,i._isInitialized=!1,i.attached=new r.EventEmitter,i}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(e){this.portal=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedPortalHost",{get:function(){return this.portal},set:function(e){this.portal=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"portal",{get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&e.prototype.detach.call(this),t&&e.prototype.attach.call(this,t),this._attachedPortal=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){e.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},t.prototype.attachComponentPortal=function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(t.component),i=n.createComponent(r,n.length,t.injector||n.parentInjector);return e.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i},t.prototype.attachTemplatePortal=function(t){var n=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return e.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r},t}(Fi),Bi=function(){},Vi=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return"undefined"!=typeof n?n:this._parentInjector.get(e,t)},e}(),Ui=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}(),zi=function(){return function(e){var t=this;this.scrollStrategy=new Ui,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",e&&Object.keys(e).filter(function(t){return"undefined"!=typeof e[t]}).forEach(function(n){return t[n]=e[n]})}}(),qi=function(e,t,n,r){this.offsetX=n,this.offsetY=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY};function Qi(){return Error("Scroll strategy has already been attached.")}var Hi=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return e.prototype.attach=function(e){if(this._overlayRef)throw Qi();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),Gi=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=-this._previousScrollPosition.left+"px",e.style.top=-this._previousScrollPosition.top+"px",e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=this._document.body,n=e.style.scrollBehavior||"",r=t.style.scrollBehavior||"";this._isEnabled=!1,e.style.left=this._previousHTMLStyles.left,e.style.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),e.style.scrollBehavior=t.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.style.scrollBehavior=n,t.style.scrollBehavior=r}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function Wi(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Ki(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Xi=function(){function e(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw Qi();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;Wi(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),Zi=function(){return function(e,t,n,r){var i=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new Ui},this.close=function(e){return new Hi(i._scrollDispatcher,i._ngZone,i._viewportRuler,e)},this.block=function(){return new Gi(i._viewportRuler,i._document)},this.reposition=function(e){return new Xi(i._scrollDispatcher,i._viewportRuler,i._ngZone,e)},this._document=r}}(),Yi=function(){function e(e,t,n,r,i,o){this._portalOutlet=e,this._pane=t,this._config=n,this._ngZone=r,this._keyboardDispatcher=i,this._document=o,this._backdropElement=null,this._backdropClick=new a.a,this._attachments=new a.a,this._detachments=new a.a,this._keydownEvents=new a.a,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(e.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this,n=this._portalOutlet.attach(e);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(jr(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(e){return t._pane.classList.add(e)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),n},e.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),e}},e.prototype.dispose=function(){var e=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),e&&this._detachments.next(),this._detachments.complete()},e.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},e.prototype.backdropClick=function(){return this._backdropClick.asObservable()},e.prototype.attachments=function(){return this._attachments.asObservable()},e.prototype.detachments=function(){return this._detachments.asObservable()},e.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},e.prototype.getConfig=function(){return this._config},e.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},e.prototype.updateSize=function(e){this._config=Object(o.a)({},this._config,e),this._updateElementSize()},e.prototype.setDirection=function(e){this._config=Object(o.a)({},this._config,{direction:e}),this._updateElementDirection()},e.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},e.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=$i(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=$i(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=$i(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=$i(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=$i(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=$i(this._config.maxHeight))},e.prototype._togglePointerEvents=function(e){this._pane.style.pointerEvents=e?"auto":"none"},e.prototype._attachBackdrop=function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(t){return e._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},e.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},e.prototype.detachBackdrop=function(){var e=this,t=this._backdropElement;if(t){var n=function(){t&&t.parentNode&&t.parentNode.removeChild(t),e._backdropElement==t&&(e._backdropElement=null)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&t.classList.remove(this._config.backdropClass),t.addEventListener("transitionend",n),t.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},e}();function $i(e){return"string"==typeof e?e:e+"px"}var Ji=function(){function e(e,t,n,r,i){this._connectedTo=n,this._viewportRuler=r,this._document=i,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=Fr.a.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new a.a,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(e,t)}return Object.defineProperty(e.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this;this._pane=e.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return t.apply()})},e.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe(),this._onPositionChange.complete()},e.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},e.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var e,t,n=this._pane,r=this._origin.getBoundingClientRect(),i=n.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),a=0,s=this._preferredPositions;a-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},e.prototype._subscribeToKeydownEvents=function(){var e=this,t=yi(this._document.body,"keydown",!0);this._keydownEventSubscription=t.pipe(ge(function(){return!!e._attachedOverlays.length})).subscribe(function(t){e._selectOverlayFromEvent(t)._keydownEvents.next(t)})},e.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},e.prototype._selectOverlayFromEvent=function(e){return this._attachedOverlays.find(function(t){return t.overlayElement===e.target||t.overlayElement.contains(e.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},e}();function ro(e,t){return e||new no(t)}var io=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e}();function oo(e,t){return e||new io(t)}var ao=0,so=function(){function e(e,t,n,r,i,o,a,s,l){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._appRef=o,this._injector=a,this._ngZone=s,this._document=l}return e.prototype.create=function(e){var t=this._createPaneElement(),n=this._createPortalOutlet(t);return new Yi(n,t,new zi(e),this._ngZone,this._keyboardDispatcher,this._document)},e.prototype.position=function(){return this._positionBuilder},e.prototype._createPaneElement=function(){var e=this._document.createElement("div");return e.id="cdk-overlay-"+ao++,e.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(e),e},e.prototype._createPortalOutlet=function(e){return new Mi(e,this._componentFactoryResolver,this._appRef,this._injector)},e}(),lo=[new qi({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new qi({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new qi({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new qi({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"})],uo=new r.InjectionToken("cdk-connected-overlay-scroll-strategy");function co(e){return function(){return e.scrollStrategies.reposition()}}var fo=function(e){this.elementRef=e},ho=function(){function e(e,t,n,i,o){this._overlay=e,this._scrollStrategy=i,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._backdropSubscription=Fr.a.EMPTY,this._offsetX=0,this._offsetY=0,this.scrollStrategy=this._scrollStrategy(),this.open=!1,this.backdropClick=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.attach=new r.EventEmitter,this.detach=new r.EventEmitter,this._templatePortal=new Ni(t,n)}return Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._position.withOffsetX(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._position.withOffsetY(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lockPosition",{get:function(){return this._lockPosition},set:function(e){this._lockPosition=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedOrigin",{get:function(){return this.origin},set:function(e){this.origin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedPositions",{get:function(){return this.positions},set:function(e){this.positions=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedOffsetX",{get:function(){return this.offsetX},set:function(e){this.offsetX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedOffsetY",{get:function(){return this.offsetY},set:function(e){this.offsetY=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedWidth",{get:function(){return this.width},set:function(e){this.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedHeight",{get:function(){return this.height},set:function(e){this.height=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedMinWidth",{get:function(){return this.minWidth},set:function(e){this.minWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedMinHeight",{get:function(){return this.minHeight},set:function(e){this.minHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedBackdropClass",{get:function(){return this.backdropClass},set:function(e){this.backdropClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedScrollStrategy",{get:function(){return this.scrollStrategy},set:function(e){this.scrollStrategy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedOpen",{get:function(){return this.open},set:function(e){this.open=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedHasBackdrop",{get:function(){return this.hasBackdrop},set:function(e){this.hasBackdrop=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._destroyOverlay()},e.prototype.ngOnChanges=function(e){this._position&&((e.positions||e._deprecatedPositions)&&this._position.withPositions(this.positions),e.lockPosition&&this._position.withLockedPosition(this.lockPosition),(e.origin||e._deprecatedOrigin)&&(this._position.setOrigin(this.origin.elementRef),this.open&&this._position.apply())),(e.open||e._deprecatedOpen)&&(this.open?this._attachOverlay():this._detachOverlay())},e.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=lo),this._overlayRef=this._overlay.create(this._buildConfig())},e.prototype._buildConfig=function(){var e=this._position=this._createPositionStrategy(),t=new zi({positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),t},e.prototype._createPositionStrategy=function(){for(var e=this,t=this.positions[0],n={originX:t.originX,originY:t.originY},r={overlayX:t.overlayX,overlayY:t.overlayY},i=this._overlay.position().connectedTo(this.origin.elementRef,n,r).withOffsetX(this.offsetX).withOffsetY(this.offsetY).withLockedPosition(this.lockPosition),o=1;o0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new _o(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(R.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(R.createComplete())},t}(I.a),_o=function(e,t){this.time=e,this.notification=t},wo=n("7DMc");function xo(){for(var e=[],t=0;t1?new u.a(e,n):new O.a(n),t)}}var ko=function(){},Co="*";function Eo(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function So(e){return{type:6,styles:e,offset:null}}function To(e){Promise.resolve(null).then(e)}var Oo=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;To(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Ao=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,i=0,o=this.players.length;0==o?To(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Io="!",Ro=function(){};function Po(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}var jo=0,Do=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i._elementRef=t,i._changeDetectorRef=n,i._showAlwaysAnimate=!1,i._subscriptAnimationState="",i._hintLabel="",i._hintLabelId="mat-hint-"+jo++,i._labelOptions=r||{},i.floatLabel=i._labelOptions.float||"auto",i}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"dividerColor",{get:function(){return this.color},set:function(e){this.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this._floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatPlaceholder",{get:function(){return this._floatLabel},set:function(e){this.floatLabel=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(xo(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()});var t=this._control.ngControl;t&&t.valueChanges&&t.valueChanges.subscribe(function(){e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(xo(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(xo(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},t.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._control.shouldPlaceholderFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return!this._hasLabel()||!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this._floatLabel="always",yi(this._label.nativeElement,"transitionend").pipe(jr(1)).subscribe(function(){e._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(e||n.hintLabel)throw Po("start");e=r}else if("end"===r.align){if(t)throw Po("end");t=r}})},t.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},t.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},t}(lr(function(e){this._elementRef=e},"primary")),No=function(){},Fo=function(e){function t(t){e.call(this),this.observableFactory=t}return Object(o.b)(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new Mo(e,this.observableFactory)},t}(g.a),Mo=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return Object(o.b)(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(Object(M.a)(this,e))},t}(F.a),Lo=Fo.create,Bo="accent",Vo="primary",Uo=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],zo=function(e){function t(t,n,r){var i=e.call(this,t)||this;i._platform=n,i._focusMonitor=r,i._isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i._isIconButton=i._hasHostAttributes("mat-icon-button");for(var o=0,a=Uo;o1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},e}(),Go=function(){function e(){this._listeners=[]}return e.prototype.notify=function(e,t){for(var n=0,r=this._listeners;n0?this._ngZone.runOutsideAngular(function(){e._debouncer.pipe(Vr(e.debounce)).subscribe(function(t){return e.event.emit(t)})}):this._debouncer.subscribe(function(t){return e.event.emit(t)}),this._observer=this._ngZone.runOutsideAngular(function(){return e._mutationObserverFactory.create(function(t){e._debouncer.next(t)})}),this.disabled||this._enable()},e.prototype.ngOnChanges=function(e){e.disabled&&(e.disabled.currentValue?this._disable():this._enable())},e.prototype.ngOnDestroy=function(){this._disable(),this._debouncer.complete()},e.prototype._disable=function(){this._observer&&this._observer.disconnect()},e.prototype._enable=function(){this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},e}(),$o=function(){},Jo=new r.InjectionToken("mat-checkbox-click-action"),ea=0,ta=function(){var e={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return e[e.Init]="Init",e[e.Checked]="Checked",e[e.Unchecked]="Unchecked",e[e.Indeterminate]="Indeterminate",e}(),na=function(e){function t(t,n,i,o,a){var s=e.call(this,t)||this;return s._changeDetectorRef=n,s._focusMonitor=i,s._clickAction=a,s.ariaLabel="",s.ariaLabelledby=null,s._uniqueId="mat-checkbox-"+ ++ea,s.id=s._uniqueId,s.labelPosition="after",s.name=null,s.change=new r.EventEmitter,s.indeterminateChange=new r.EventEmitter,s._onTouched=function(){},s._currentAnimationClass="",s._currentCheckState=ta.Init,s._controlValueAccessorChangeFn=function(){},s._checked=!1,s._indeterminate=!1,s.tabIndex=parseInt(o)||0,s}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(e){this.labelPosition="start"==e?"after":"before"},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(t){return e._onInputFocusChange(t)})},t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=e,t&&(this._transitionCheckState(this._indeterminate?ta.Indeterminate:this.checked?ta.Checked:ta.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),t.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t.prototype.writeValue=function(e){this.checked=!!e},t.prototype.registerOnChange=function(e){this._controlValueAccessorChangeFn=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},t.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},t.prototype._transitionCheckState=function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0&&n.classList.add(this._currentAnimationClass))},t.prototype._emitChangeEvent=function(){var e=new function(){};e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)},t.prototype._onInputFocusChange=function(e){this._focusRipple||"keyboard"!==e?e||(this._removeFocusRipple(),this._onTouched()):this._focusRipple=this.ripple.launch(0,0,{persistent:!0})},t.prototype.toggle=function(){this.checked=!this.checked},t.prototype._onInputClick=function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?ta.Checked:ta.Unchecked),this._emitChangeEvent())},t.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},t.prototype._onInteractionEvent=function(e){e.stopPropagation()},t.prototype._getAnimationClassForCheckStateTransition=function(e,t){var n="";switch(e){case ta.Init:if(t===ta.Checked)n="unchecked-checked";else{if(t!=ta.Indeterminate)return"";n="unchecked-indeterminate"}break;case ta.Unchecked:n=t===ta.Checked?"unchecked-checked":"unchecked-indeterminate";break;case ta.Checked:n=t===ta.Unchecked?"checked-unchecked":"checked-indeterminate";break;case ta.Indeterminate:n=t===ta.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},t.prototype._removeFocusRipple=function(){this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)},t}(cr(lr(ur(sr(function(e){this._elementRef=e})),"accent"))),ra=function(){},ia=function(e){function t(t){var n=e.call(this,t)||this;return n._elementRef=t,n._hasFocus=!1,n._selected=!1,n._selectable=!0,n._removable=!0,n._onFocus=new a.a,n._onBlur=new a.a,n.selectionChange=new r.EventEmitter,n.destroyed=new r.EventEmitter,n.destroy=n.destroyed,n.removed=new r.EventEmitter,n.onRemove=n.removed,n}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=Gn(e),this.selectionChange.emit({source:this,isUserInput:!1,selected:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!=this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectable",{get:function(){return this._selectable},set:function(e){this._selectable=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removable",{get:function(){return this._removable},set:function(e){this._removable=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return this.selectable?this.selected.toString():null},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this})},t.prototype.select=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!1,selected:!0})},t.prototype.deselect=function(){this._selected=!1,this.selectionChange.emit({source:this,isUserInput:!1,selected:!1})},t.prototype.selectViaInteraction=function(){this._selected=!0,this.selectionChange.emit({source:this,isUserInput:!0,selected:!0})},t.prototype.toggleSelected=function(e){return void 0===e&&(e=!1),this._selected=!this.selected,this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected}),this.selected},t.prototype.focus=function(){this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})},t.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},t.prototype._handleClick=function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.focus())},t.prototype._handleKeydown=function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}},t.prototype._blur=function(){this._hasFocus=!1,this._onBlur.next({chip:this})},t}(lr(sr(function(e){this._elementRef=e}),"primary")),oa=function(){};function aa(){throw Error("Attempting to attach dialog content after content is already attached")}var sa=function(e){function t(t,n,i,o){var a=e.call(this)||this;return a._elementRef=t,a._focusTrapFactory=n,a._changeDetectorRef=i,a._document=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new r.EventEmitter,a._ariaLabelledBy=null,a}return Object(o.b)(t,e),t.prototype.attachComponentPortal=function(e){return this._portalOutlet.hasAttached()&&aa(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(e){return this._portalOutlet.hasAttached()&&aa(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)},t.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},t.prototype._restoreFocus=function(){var e=this._elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()},t.prototype._savePreviouslyFocusedElement=function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()}))},t.prototype._onAnimationDone=function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)},t.prototype._onAnimationStart=function(e){this._animationStateChanged.emit(e)},t.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},t}(Fi),la=0,ua=function(){function e(e,t,n,r){void 0===r&&(r="mat-dialog-"+la++);var i=this;this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new a.a,this._afterClosed=new a.a,this._beforeClose=new a.a,this._locationChanges=Fr.a.EMPTY,t._id=r,t._animationStateChanged.pipe(ge(function(e){return"done"===e.phaseName&&"enter"===e.toState}),jr(1)).subscribe(function(){i._afterOpen.next(),i._afterOpen.complete()}),t._animationStateChanged.pipe(ge(function(e){return"done"===e.phaseName&&"exit"===e.toState}),jr(1)).subscribe(function(){i._overlayRef.dispose(),i._locationChanges.unsubscribe(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null}),e.keydownEvents().pipe(ge(function(e){return e.keyCode===ir&&!i.disableClose})).subscribe(function(){return i.close()}),n&&(this._locationChanges=n.subscribe(function(){i._containerInstance._config.closeOnNavigation&&i.close()}))}return e.prototype.close=function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ge(function(e){return"start"===e.phaseName}),jr(1)).subscribe(function(){t._beforeClose.next(e),t._beforeClose.complete(),t._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},e.prototype.afterOpen=function(){return this._afterOpen.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed.asObservable()},e.prototype.beforeClose=function(){return this._beforeClose.asObservable()},e.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e="auto"),void 0===t&&(t="auto"),this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this},e.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},e}(),ca=new r.InjectionToken("MatDialogData"),fa=new r.InjectionToken("mat-dialog-default-options"),ha=new r.InjectionToken("mat-dialog-scroll-strategy");function da(e){return function(){return e.scrollStrategies.block()}}var pa=function(){function e(e,t,n,r,i,o,s){var l=this;this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=r,this._scrollStrategy=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new a.a,this._afterOpenAtThisLevel=new a.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Lo(function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(xo(void 0))})}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){var n=this;if((t=function(e,t){return Object(o.a)({},t,e)}(t,this._defaultOptions||new function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.direction="ltr",this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0})).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),a=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpen.next(a),a},e.prototype.closeAll=function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()},e.prototype.getDialogById=function(e){return this.openDialogs.find(function(t){return t.id===e})},e.prototype._createOverlay=function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)},e.prototype._getOverlayConfig=function(e){var t=new zi({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype._attachDialogContainer=function(e,t){var n=new Di(sa,t.viewContainerRef),r=e.attach(n);return r.instance._config=t,r.instance},e.prototype._attachDialogContent=function(e,t,n,i){var o=new ua(n,t,this._location,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe(function(){o.disableClose||o.close()}),e instanceof r.TemplateRef)t.attachTemplatePortal(new Ni(e,null,{$implicit:i.data,dialogRef:o}));else{var a=this._createInjector(i,o,t),s=t.attachComponentPortal(new Di(e,void 0,a));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o},e.prototype._createInjector=function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=new WeakMap;return i.set(sa,n).set(ca,e.data).set(ua,t),r&&r.get(Qn,null)||i.set(Qn,{value:e.direction,change:c()}),new Vi(r||this._injector,i)},e.prototype._removeOpenDialog=function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},e}(),ga=0,ma=function(){function e(e,t,n){this.dialogRef=e,this._elementRef=t,this._dialog=n,this.ariaLabel="Close dialog"}return e.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=_a(this._elementRef,this._dialog.openDialogs))},e.prototype.ngOnChanges=function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)},e}(),va=function(){function e(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+ga++}return e.prototype.ngOnInit=function(){var e=this;this._dialogRef||(this._dialogRef=_a(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})},e}(),ya=function(){},ba=function(){};function _a(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var wa=function(){};function xa(e){return function(t){return t.lift(new ka(e))}}var ka=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Ca(e,this.notifier))},e}(),Ca=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(Object(M.a)(this,n))}return Object(o.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.complete()},t.prototype.notifyComplete=function(){},t}(F.a),Ea=function(){function e(e,t,n){this._elementRef=e,this._platform=t,this._ngZone=n,this._destroyed=new a.a}return Object.defineProperty(e.prototype,"minRows",{get:function(){return this._minRows},set:function(e){this._minRows=e,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxRows",{get:function(){return this._maxRows},set:function(e){this._maxRows=e,this._setMaxHeight()},enumerable:!0,configurable:!0}),e.prototype._setMinHeight=function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&this._setTextareaStyle("minHeight",e)},e.prototype._setMaxHeight=function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&this._setTextareaStyle("maxHeight",e)},e.prototype.ngAfterViewInit=function(){var e=this;this._platform.isBrowser&&(this.resizeToFitContent(),this._ngZone&&this._ngZone.runOutsideAngular(function(){yi(window,"resize").pipe(Ei(16),xa(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)})}))},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._setTextareaStyle=function(e,t){this._elementRef.nativeElement.style[e]=t},e.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var e=this._elementRef.nativeElement,t=e.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",e.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,e.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}},e.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},e.prototype.resizeToFitContent=function(e){if(void 0===e&&(e=!1),this._cacheTextareaLineHeight(),this._cachedLineHeight){var t=this._elementRef.nativeElement,n=t.value;if(n!==this._previousValue||e){var r=t.placeholder;t.style.height="auto",t.style.overflow="hidden",t.placeholder="",t.style.height=t.scrollHeight+"px",t.style.overflow="",t.placeholder=r,this._previousValue=n}}},e}(),Sa=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ta=0,Oa=function(e){function t(t,n,r,i,o,s,l){var u=e.call(this,s,i,o,r)||this;return u._elementRef=t,u._platform=n,u.ngControl=r,u._uid="mat-input-"+Ta++,u._isServer=!1,u.focused=!1,u.stateChanges=new a.a,u.controlType="mat-input",u._disabled=!1,u.placeholder="",u._required=!1,u._type="text",u._readonly=!1,u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return nr().has(e)}),u._inputValueAccessor=l||u._elementRef.nativeElement,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&t.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}),u._isServer=!u._platform.isBrowser,u}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Gn(e),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&nr().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=Gn(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this.stateChanges.complete()},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._focusChanged=function(e){e===this.focused||this.readonly||(this.focused=e,this.stateChanges.next())},t.prototype._onInput=function(){},t.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())},t.prototype._validateType=function(){if(Sa.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},t.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},t.prototype._isBadInput=function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput},t.prototype._isTextarea=function(){var e=this._elementRef.nativeElement,t=this._platform.isBrowser?e.nodeName:e.name;return!!t&&"textarea"===t.toLowerCase()},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus()},t}(fr(function(e,t,n,r){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=r})),Aa=function(){},Ia=0,Ra=function(){function e(){this.id="cdk-accordion-"+Ia++,this._multi=!1}return Object.defineProperty(e.prototype,"multi",{get:function(){return this._multi},set:function(e){this._multi=Gn(e)},enumerable:!0,configurable:!0}),e}(),Pa=0,ja=function(){function e(e,t,n){var i=this;this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=n,this.closed=new r.EventEmitter,this.opened=new r.EventEmitter,this.destroyed=new r.EventEmitter,this.expandedChange=new r.EventEmitter,this.id="cdk-accordion-child-"+Pa++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(e,t){i.accordion&&!i.accordion.multi&&i.accordion.id===t&&i.id!==e&&(i.expanded=!1)})}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){e=Gn(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=Gn(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroyed.emit(),this._removeUniqueSelectionListener()},e.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},e.prototype.close=function(){this.disabled||(this.expanded=!1)},e.prototype.open=function(){this.disabled||(this.expanded=!0)},e}(),Da=function(){},Na=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._hideToggle=!1,t.displayMode="default",t}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(e){this._hideToggle=Gn(e)},enumerable:!0,configurable:!0}),t}(Ra),Fa=0,Ma=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o._viewContainerRef=i,o._hideToggle=!1,o._inputChanges=new a.a,o._headerId="mat-expansion-panel-header-"+Fa++,o.accordion=t,o}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(e){this._hideToggle=Gn(e)},enumerable:!0,configurable:!0}),t.prototype._getHideToggle=function(){return this.accordion?this.accordion.hideToggle:this.hideToggle},t.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},t.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},t.prototype.ngAfterContentInit=function(){var e=this;this._lazyContent&&this.opened.pipe(xo(null),ge(function(){return e.expanded&&!e._portal}),jr(1)).subscribe(function(){e._portal=new Ni(e._lazyContent._template,e._viewContainerRef)})},t.prototype.ngOnChanges=function(e){this._inputChanges.next(e)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._inputChanges.complete()},t.prototype._bodyAnimation=function(e){var t=e.element.classList,n=e.phaseName,r=e.toState;"done"===n&&"expanded"===r?t.add("mat-expanded"):"start"===n&&"collapsed"===r&&t.remove("mat-expanded")},t}(ja),La=function(){function e(e,t,n,r){var i=this;this.panel=e,this._element=t,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=Fr.a.EMPTY,this._parentChangeSubscription=Object(Si.a)(e.opened,e.closed,e._inputChanges.pipe(ge(function(e){return!(!e.hideToggle&&!e.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),n.monitor(t.nativeElement)}return e.prototype._toggle=function(){this.panel.toggle()},e.prototype._isExpanded=function(){return this.panel.expanded},e.prototype._getExpandedState=function(){return this.panel._getExpandedState()},e.prototype._getPanelId=function(){return this.panel.id},e.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},e.prototype._keydown=function(e){switch(e.keyCode){case 32:case 13:e.preventDefault(),this._toggle();break;default:return}},e.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},e}(),Ba=function(){},Va=function(){},Ua=function(){},za=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new qa(e,this.callback))},e}(),qa=function(e){function t(t,n){e.call(this,t),this.add(new Fr.a(n))}return Object(o.b)(t,e),t}(I.a),Qa=n("3a3m"),Ha=function(){},Ga=function(){},Wa=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,n),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),Ka=function(){function e(){}return e.prototype.encodeKey=function(e){return Xa(e)},e.prototype.encodeValue=function(e){return Xa(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function Xa(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Za=function(){function e(e){void 0===e&&(e={});var t,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ka,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],o=i[0],a=i[1],s=r.get(o)||[];s.push(a),r.set(o,s)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function Ya(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function $a(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Ja(e){return"undefined"!=typeof FormData&&e instanceof FormData}var es=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Wa),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a=200&&this.status<300}}(),rs=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=ts.ResponseHeader,n}return Object(o.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(ns),is=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=ts.Response,n.body=void 0!==t.body?t.body:null,n}return Object(o.b)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(ns),os=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(o.b)(t,e),t}(ns);function as(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var ss=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof es)r=e;else{var o;o=n.headers instanceof Wa?n.headers:new Wa(n.headers);var a=void 0;n.params&&(a=n.params instanceof Za?n.params:new Za({fromObject:n.params})),r=new es(e,t,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=h.call(c(r),function(e){return i.handler.handle(e)});if(e instanceof es||"events"===n.observe)return s;var l=ye.call(s,function(e){return e instanceof is});switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return d.a.call(l,function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body});case"blob":return d.a.call(l,function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body});case"text":return d.a.call(l,function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body});case"json":default:return d.a.call(l,function(e){return e.body})}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new Za).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,as(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,as(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,as(n,t))},e}(),ls=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),us=new r.InjectionToken("HTTP_INTERCEPTORS"),cs=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),fs=/^\)\]\}',?\n/,hs=function(){},ds=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),ps=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new g.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new Wa(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new rs({headers:i,status:t,statusText:n,url:o})},u=function(){var t=l(),i=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u="undefined"==typeof r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var f=u;u=u.replace(fs,"");try{u=""!==u?JSON.parse(u):null}catch(e){u=f,c&&(c=!1,u={error:e,text:u})}}c?(n.next(new is({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new os({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=new os({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},f=!1,h=function(t){f||(n.next(l()),f=!0);var i={type:ts.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:ts.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:ts.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},e}(),gs=new r.InjectionToken("XSRF_COOKIE_NAME"),ms=new r.InjectionToken("XSRF_HEADER_NAME"),vs=function(){},ys=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(i["\u0275parseCookieValue"])(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),bs=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),_s=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(us,[]);this.chain=t.reduceRight(function(e,t){return new ls(e,t)},this.backend)}return this.chain.handle(e)},e}(),ws=function(){function e(){}return e.disable=function(){return{ngModule:e,providers:[{provide:bs,useClass:cs}]}},e.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:gs,useValue:t.cookieName}:[],t.headerName?{provide:ms,useValue:t.headerName}:[]]}},e}(),xs=function(){},ks=n("SALZ"),Cs=function(e){function t(t,n){e.call(this),this.error=t,this.scheduler=n}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){e.subscriber.error(e.error)},t.prototype._subscribe=function(e){var n=this.error,r=this.scheduler;if(e.syncErrorThrowable=!0,r)return r.schedule(t.dispatch,0,{error:n,subscriber:e});e.error(n)},t}(g.a).create;function Es(e){return Error('Unable to find icon with the name "'+e+'"')}function Ss(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+e+'".')}var Ts=function(e){this.url=e,this.svgElement=null},Os=function(){function e(e,t,n){this._httpClient=e,this._sanitizer=t,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return e.prototype.addSvgIcon=function(e,t){return this.addSvgIconInNamespace("",e,t)},e.prototype.addSvgIconInNamespace=function(e,t,n){var r=Rs(e,t);return this._svgIconConfigs.set(r,new Ts(n)),this},e.prototype.addSvgIconSet=function(e){return this.addSvgIconSetInNamespace("",e)},e.prototype.addSvgIconSetInNamespace=function(e,t){var n=new Ts(t),r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this},e.prototype.registerFontClassAlias=function(e,t){return void 0===t&&(t=e),this._fontCssClassesByAlias.set(e,t),this},e.prototype.classNameForFontAlias=function(e){return this._fontCssClassesByAlias.get(e)||e},e.prototype.setDefaultFontSetClass=function(e){return this._defaultFontSetClass=e,this},e.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},e.prototype.getSvgIconFromUrl=function(e){var t=this,n=this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,e);if(!n)throw Ss(e);var i=this._cachedIconsByUrl.get(n);return i?c(Is(i)):this._loadSvgIconFromConfig(new Ts(e)).pipe(Hr(function(e){return t._cachedIconsByUrl.set(n,e)}),Object(Qr.a)(function(e){return Is(e)}))},e.prototype.getNamedSvgIcon=function(e,t){void 0===t&&(t="");var n=Rs(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):Cs(Es(n))},e.prototype._getSvgFromConfig=function(e){return e.svgElement?c(Is(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Hr(function(t){return e.svgElement=t}),Object(Qr.a)(function(e){return Is(e)}))},e.prototype._getSvgFromIconSetConfigs=function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);if(i)return c(i);var o=t.filter(function(e){return!e.svgElement}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(L(function(t){var i=n._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,e.url);return console.log("Loading icon set URL: "+i+" failed: "+t),c(null)}))});return Object(ks.a)(o).pipe(Object(Qr.a)(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw Es(e);return r}))},e.prototype._extractIconWithNameFromAnySet=function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,e);if(i)return i}}return null},e.prototype._loadSvgIconFromConfig=function(e){var t=this;return this._fetchUrl(e.url).pipe(Object(Qr.a)(function(e){return t._createSvgElementForSingleIcon(e)}))},e.prototype._loadSvgIconSetFromConfig=function(e){var t=this;return e.svgElement?c(e.svgElement):this._fetchUrl(e.url).pipe(Object(Qr.a)(function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement}))},e.prototype._createSvgElementForSingleIcon=function(e){var t=this._svgElementFromString(e);return this._setSvgAttributes(t),t},e.prototype._extractSvgIconFromSet=function(e,t){var n=e.querySelector("#"+t);if(!n)return null;var r=n.cloneNode(!0);if(r.id="","svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i)},e.prototype._svgElementFromString=function(e){if(this._document||"undefined"!=typeof document){var t=(this._document||document).createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}throw new Error("MatIconRegistry could not resolve document.")},e.prototype._toSvgElement=function(e){for(var t=this._svgElementFromString(""),n=0;n')}(),this._xPosition=e,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yPosition",{get:function(){return this._yPosition},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('y-position value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=e,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panelClass",{set:function(e){e&&e.length&&(this._classList=e.split(" ").reduce(function(e,t){return e[t]=!0,e},{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.panelClass},set:function(e){this.panelClass=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._keyManager=new si(this.items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.close.emit("keydown")})},e.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},e.prototype._hovered=function(){var e=this;return this.items?this.items.changes.pipe(xo(this.items),go(function(e){return Si.a.apply(void 0,e.map(function(e){return e._hovered}))})):this._ngZone.onStable.asObservable().pipe(jr(1),go(function(){return e._hovered()}))},e.prototype._handleKeydown=function(e){switch(e.keyCode){case ir:this.closed.emit("keydown"),e.stopPropagation();break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:this._keyManager.onKeydown(e)}},e.prototype.focusFirstItem=function(e){var t=this;void 0===e&&(e="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(jr(1)).subscribe(function(){return t._keyManager.setFocusOrigin(e).setFirstItemActive()}):this._keyManager.setFocusOrigin(e).setFirstItemActive()},e.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},e.prototype.setPositionClasses=function(e,t){void 0===e&&(e=this.xPosition),void 0===t&&(t=this.yPosition),this._classList["mat-menu-before"]="before"===e,this._classList["mat-menu-after"]="after"===e,this._classList["mat-menu-above"]="above"===t,this._classList["mat-menu-below"]="below"===t},e.prototype.setElevation=function(e){var t="mat-elevation-z"+(2+e),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)},e.prototype._startAnimation=function(){this._panelAnimationState="enter-start"},e.prototype._resetAnimation=function(){this._panelAnimationState="void"},e.prototype._onAnimationDone=function(e){"enter-start"===e.toState&&(this._panelAnimationState="enter")},e}(),Ms=new r.InjectionToken("mat-menu-scroll-strategy");function Ls(e){return function(){return e.scrollStrategies.reposition()}}var Bs=function(){function e(e,t,n,i,o,a,s,l){this._overlay=e,this._element=t,this._viewContainerRef=n,this._scrollStrategy=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closeSubscription=Fr.a.EMPTY,this._hoverSubscription=Fr.a.EMPTY,this._openedByMouse=!1,this.menuOpened=new r.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.EventEmitter,this.onMenuClose=this.menuClosed,a&&(a._triggersSubmenu=this.triggersSubmenu())}return Object.defineProperty(e.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(e){this.menu=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._checkMenu(),this.menu.close.subscribe(function(t){e._destroyMenu(),"click"===t&&e._parentMenu&&e._parentMenu.closed.emit(t)}),this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(ge(function(t){return t===e._menuItemInstance})).subscribe(function(){e._openedByMouse=!0,e.openMenu()}))},e.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._cleanUpSubscriptions()},Object.defineProperty(e.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),e.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},e.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},e.prototype.openMenu=function(){var e=this;this._menuOpen||(this._createOverlay().attach(this._portal),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closeSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Fs&&this.menu._startAnimation())},e.prototype.closeMenu=function(){this.menu.close.emit()},e.prototype.focus=function(e){void 0===e&&(e="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element.nativeElement,e):this._element.nativeElement.focus()},e.prototype._destroyMenu=function(){this._overlayRef&&this.menuOpen&&(this._resetMenu(),this._closeSubscription.unsubscribe(),this._overlayRef.detach(),this.menu instanceof Fs&&this.menu._resetAnimation())},e.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedByMouse?"mouse":"program")},e.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}},e.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse?this.triggersSubmenu()||this.focus("mouse"):this.focus(),this._openedByMouse=!1},e.prototype._setIsMenuOpen=function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)},e.prototype._checkMenu=function(){this.menu||function(){throw Error('mat-menu-trigger: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},e.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new Ni(this.menu.templateRef,this._viewContainerRef);var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e)}return this._overlayRef},e.prototype._getOverlayConfig=function(){return new zi({positionStrategy:this._getPosition(),hasBackdrop:!this.triggersSubmenu(),backdropClass:"cdk-overlay-transparent-backdrop",direction:this.dir,scrollStrategy:this._scrollStrategy()})},e.prototype._subscribeToPositions=function(e){var t=this;e.onPositionChange.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})},e.prototype._getPosition=function(){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],t=e[0],n=e[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],i=r[0],o=r[1],a=[i,o],s=a[0],l=a[1],u=[t,n],c=u[0],f=u[1],h=0;return this.triggersSubmenu()?(f=t="before"===this.menu.xPosition?"start":"end",n=c="end"===t?"start":"end",h="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",l="top"===o?"bottom":"top"),this._overlay.position().connectedTo(this._element,{originX:t,originY:s},{overlayX:c,overlayY:i}).withDirection(this.dir).withOffsetY(h).withFallbackPosition({originX:n,originY:s},{overlayX:f,overlayY:i}).withFallbackPosition({originX:t,originY:l},{overlayX:c,overlayY:o},void 0,-h).withFallbackPosition({originX:n,originY:l},{overlayX:f,overlayY:o},void 0,-h)},e.prototype._cleanUpSubscriptions=function(){this._closeSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},e.prototype._menuClosingActions=function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMenu?this._parentMenu.close:c(),i=this._parentMenu?this._parentMenu._hovered().pipe(ge(function(t){return t!==e._menuItemInstance}),ge(function(){return e._menuOpen})):c();return Object(Si.a)(t,r,i,n)},e.prototype._handleMousedown=function(e){(function(e){return 0===e.buttons})(e)||(this._openedByMouse=!0,this.triggersSubmenu()&&e.preventDefault())},e.prototype._handleKeydown=function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()},e.prototype._handleClick=function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()},e}(),Vs=function(){},Us=0,zs=new r.InjectionToken("mat-select-scroll-strategy");function qs(e){return function(){return e.scrollStrategies.reposition()}}var Qs=function(e){function t(t,n,i,o,s,l,u,c,f,h,d,p){var g=e.call(this,s,o,u,c,h)||this;return g._viewportRuler=t,g._changeDetectorRef=n,g._ngZone=i,g._dir=l,g._parentFormField=f,g.ngControl=h,g._scrollStrategyFactory=p,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(e,t){return e===t},g._uid="mat-select-"+Us++,g._destroy=new a.a,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimating=!1,g._scrollStrategy=g._scrollStrategyFactory(),g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g.focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=Lo(function(){return g.options?Si.a.apply(void 0,g.options.map(function(e){return e.onSelectionChange})):g._ngZone.onStable.asObservable().pipe(jr(1),go(function(){return g.optionSelectionChanges}))}),g.openedChange=new r.EventEmitter,g.onOpen=g._openedStream,g.onClose=g._closedStream,g.selectionChange=new r.EventEmitter,g.change=g.selectionChange,g.valueChange=new r.EventEmitter,g.ngControl&&(g.ngControl.valueAccessor=g),g.tabIndex=parseInt(d)||0,g.id=g.id,g}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Gn(e),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Gn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(ge(function(e){return e}),Object(Qr.a)(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(ge(function(e){return!e}),Object(Qr.a)(function(){}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._selectionModel=new Ho(this.multiple,void 0,!1),this.stateChanges.next()},t.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this.options.changes.pipe(xo(null),xa(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},t.prototype.toggle=function(){this.panelOpen?this.close():this.open()},t.prototype.open=function(){var e=this;!this.disabled&&this.options&&this.options.length&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(jr(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))},t.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},t.prototype.writeValue=function(e){this.options&&this._setSelectionByValue(e)},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),t.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},t.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},t.prototype._handleClosedKeydown=function(e){var t=e.keyCode;13===t||32===t||(this.multiple||e.altKey)&&(40===t||38===t||37===t||39===t)?(e.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(e)},t.prototype._handleOpenKeydown=function(e){var t=e.keyCode,n=40===t||38===t,r=this._keyManager;if(36===t||35===t)e.preventDefault(),36===t?r.setFirstItemActive():r.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(13!==t&&32!==t||!r.activeItem){var i=r.activeItemIndex;r.onKeydown(e),this._multiple&&n&&e.shiftKey&&r.activeItem&&r.activeItemIndex!==i&&r.activeItem._selectViaInteraction()}else e.preventDefault(),r.activeItem._selectViaInteraction()},t.prototype._onPanelDone=function(){this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this._panelDoneAnimating=!1,this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())},t.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},t.prototype._onFocus=function(){this.disabled||(this.focused=!0,this.stateChanges.next())},t.prototype._onBlur=function(){this.focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},t.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(jr(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop})},t.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value)})},t.prototype._setSelectionByValue=function(e,t){var n=this;if(void 0===t&&(t=!1),this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),e.forEach(function(e){return n._selectValue(e,t)}),this._sortValues()}else{this._clearSelection();var r=this._selectValue(e,t);r&&this._keyManager.setActiveItem(this.options.toArray().indexOf(r))}this._changeDetectorRef.markForCheck()},t.prototype._selectValue=function(e,t){var n=this;void 0===t&&(t=!1);var i=this.options.find(function(t){try{return null!=t.value&&n._compareWith(t.value,e)}catch(e){return Object(r.isDevMode)()&&console.warn(e),!1}});return i&&(t?i._selectViaInteraction():i.select(),this._selectionModel.select(i),this.stateChanges.next()),i},t.prototype._clearSelection=function(e){this._selectionModel.clear(),this.options.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()},t.prototype._initKeyManager=function(){var e=this;this._keyManager=new ai(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(xa(this._destroy)).subscribe(function(){return e.close()}),this._keyManager.change.pipe(xa(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})},t.prototype._resetOptions=function(){var e=this,t=Object(Si.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xa(t),ge(function(e){return e.isUserInput})).subscribe(function(t){e._onSelect(t.source),!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Si.a.apply(void 0,this.options.map(function(e){return e._stateChanges})).pipe(xa(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}),this._setOptionIds()},t.prototype._onSelect=function(e){var t=this._selectionModel.isSelected(e);this.multiple?(this._selectionModel.toggle(e),this.stateChanges.next(),t?e.deselect():e.select(),this._keyManager.setActiveItem(this._getOptionIndex(e)),this._sortValues()):(this._clearSelection(null==e.value?void 0:e),null==e.value?this._propagateChanges(e.value):(this._selectionModel.select(e),this.stateChanges.next())),t!==this._selectionModel.isSelected(e)&&this._propagateChanges()},t.prototype._sortValues=function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.options.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())},t.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new function(e,t){this.source=e,this.value=t}(this,t)),this._changeDetectorRef.markForCheck()},t.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(e){return e.id}).join(" ")},t.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._getOptionIndex(this._selectionModel.selected[0])))},t.prototype._scrollActiveOptionIntoView=function(){var e,t,n,r=this._keyManager.activeItemIndex||0,i=Ir(r,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(256,(n=(r+i)*(e=this._getItemHeight()))<(t=this.panel.nativeElement.scrollTop)?n:n+e>t+256?Math.max(0,n-256+e):t)},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._getOptionIndex=function(e){return this.options.reduce(function(t,n,r){return void 0===t?e===n?r:void 0:t},void 0)},t.prototype._calculateOverlayPosition=function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),r=t*e-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Ir(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},t.prototype._calculateOverlayScroll=function(e,t,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*e-t+r/2),n)},Object.defineProperty(t.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),t.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},t.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?60:32;if(this.multiple)e=44;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}r||(e*=-1);var a=0-(t.left+e-(r?i:0)),s=t.right+e-n.width+(r?0:i);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=e,this.overlayDir.overlayRef.updatePosition()},t.prototype._calculateOverlayOffsetY=function(e,t,n){var r=this._getItemHeight(),i=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return-1*(0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2)-i},t.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,e):this._transformOrigin=this._getOriginBasedOnOption()},t.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},t.prototype._adjustPanelDown=function(e,t,n){var r=Math.round(e-t);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},t.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},t.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},t.prototype._getItemHeight=function(){return 3*this._triggerFontSize},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(t.prototype,"shouldPlaceholderFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),t}(ur(cr(sr(fr(function(e,t,n,r,i){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}))))),Hs=function(){},Gs={};function Ws(){for(var e=[],t=0;t=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var e=this.getNumberOfPages();return this.pageIndex50;t!==this.checked&&(this.checked=t,this._emitChangeEvent()),setTimeout(function(){return e._slideRenderer.stopThumbDrag()})}},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t}(cr(lr(ur(sr(function(e){this._elementRef=e})),"accent"))),_l=function(){function e(e,t){this.dragging=!1,t.isBrowser&&(this._thumbEl=e.nativeElement.querySelector(".mat-slide-toggle-thumb-container"),this._thumbBarEl=e.nativeElement.querySelector(".mat-slide-toggle-bar"))}return e.prototype.startThumbDrag=function(e){this.dragging||(this._thumbBarWidth=this._thumbBarEl.clientWidth-this._thumbEl.clientWidth,this._thumbEl.classList.add("mat-dragging"),this._previousChecked=e,this.dragging=!0)},e.prototype.stopThumbDrag=function(){return!!this.dragging&&(this.dragging=!1,this._thumbEl.classList.remove("mat-dragging"),this._thumbEl.style.transform="",this.dragPercentage>50)},e.prototype.updateThumbPosition=function(e){this.dragPercentage=this._getDragPercentage(e),this._thumbEl.style.transform="translate3d("+this.dragPercentage/100*this._thumbBarWidth+"px, 0, 0)"},e.prototype._getDragPercentage=function(e){var t=e/this._thumbBarWidth*100;return this._previousChecked&&(t+=100),Math.max(0,Math.min(t,100))},e}(),wl=function(){},xl=function(){function e(e,t){var n=this;this._overlayRef=t,this._afterDismissed=new a.a,this._afterOpened=new a.a,this._onAction=new a.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return n.dismiss()}),e._onExit.subscribe(function(){return n._finishDismiss()})}return e.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},e.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},e.prototype.closeWithAction=function(){this.dismissWithAction()},e.prototype._dismissAfter=function(e){var t=this;this._durationTimeoutId=setTimeout(function(){return t.dismiss()},e)},e.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},e.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},e.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},e.prototype.afterOpened=function(){return this.containerInstance._onEnter},e.prototype.onAction=function(){return this._onAction.asObservable()},e}(),kl=new r.InjectionToken("MatSnackBarData"),Cl=function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.direction="ltr",this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},El=function(){function e(e,t){this.snackBarRef=e,this.data=t}return e.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(e.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),e}(),Sl=function(e){function t(t,n,r){var i=e.call(this)||this;return i._ngZone=t,i._elementRef=n,i._changeDetectorRef=r,i._destroyed=!1,i._onExit=new a.a,i._onEnter=new a.a,i._animationState="void",i}return Object(o.b)(t,e),t.prototype.attachComponentPortal=function(e){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached");var t=this._elementRef.nativeElement;return(this.snackBarConfig.panelClass||this.snackBarConfig.extraClasses)&&(this._setCssClasses(this.snackBarConfig.panelClass),this._setCssClasses(this.snackBarConfig.extraClasses)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top"),this._portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(){throw Error("Not yet implemented")},t.prototype.onAnimationEnd=function(e){var t=e.toState;if(("void"===t&&"void"!==e.fromState||t.startsWith("hidden"))&&this._completeExit(),t.startsWith("visible")){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}},t.prototype.enter=function(){this._destroyed||(this._animationState="visible-"+this.snackBarConfig.verticalPosition,this._changeDetectorRef.detectChanges())},t.prototype.exit=function(){return this._animationState="hidden-"+this.snackBarConfig.verticalPosition,this._onExit},t.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},t.prototype._completeExit=function(){var e=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(jr(1)).subscribe(function(){e._onExit.next(),e._onExit.complete()})},t.prototype._setCssClasses=function(e){if(e){var t=this._elementRef.nativeElement;Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)}},t}(Fi),Tl=function(){function e(e,t,n,r,i){this._overlay=e,this._live=t,this._injector=n,this._breakpointObserver=r,this._parentSnackBar=i,this._snackBarRefAtThisLevel=null}return Object.defineProperty(e.prototype,"_openedSnackBarRef",{get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e},enumerable:!0,configurable:!0}),e.prototype.openFromComponent=function(e,t){var n=this,r=Ol(t),i=this._attach(e,r);return i.afterDismissed().subscribe(function(){n._openedSnackBarRef==i&&(n._openedSnackBarRef=null)}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(r.duration)}),r.announcementMessage&&this._live.announce(r.announcementMessage,r.politeness),this._openedSnackBarRef=i,this._openedSnackBarRef},e.prototype.open=function(e,t,n){void 0===t&&(t="");var r=Ol(n);return r.data={message:e,action:t},r.announcementMessage=e,this.openFromComponent(El,r)},e.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},e.prototype._attachSnackBarContainer=function(e,t){var n=new Di(Sl,t.viewContainerRef),r=e.attach(n);return r.instance.snackBarConfig=t,r.instance},e.prototype._attach=function(e,t){var n=this._createOverlay(t),r=this._attachSnackBarContainer(n,t),i=new xl(r,n),o=this._createInjector(t,i),a=new Di(e,void 0,o),s=r.attachComponentPortal(a);return i.instance=s.instance,this._breakpointObserver.observe(tl.Handset).pipe(xa(n.detachments().pipe(jr(1)))).subscribe(function(e){e.matches?n.overlayElement.classList.add("mat-snack-bar-handset"):n.overlayElement.classList.remove("mat-snack-bar-handset")}),i},e.prototype._createOverlay=function(e){var t=new zi;t.direction=e.direction;var n=this._overlay.position().global(),r="rtl"===e.direction,i="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,o=!i&&"center"!==e.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)},e.prototype._createInjector=function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=new WeakMap;return r.set(xl,t),r.set(kl,e.data),new Vi(n||this._injector,r)},e}();function Ol(e){return Object(o.a)({},new Cl,e)}var Al=function(){},Il=function(){function e(e,t){this.template=e,this._differs=t}return e.prototype.ngOnChanges=function(e){var t=e.columns.currentValue||[];this._columnsDiffer||(this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t))},e.prototype.getColumnsDiff=function(){return this._columnsDiffer.diff(this.columns)},e}(),Rl=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(o.b)(t,e),t}(Il),Pl=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(o.b)(t,e),t}(Il),jl=function(){function e(t){this._viewContainer=t,e.mostRecentCellOutlet=this}return e.mostRecentCellOutlet=null,e}(),Dl=function(e){this.template=e},Nl=function(e){this.template=e},Fl=function(){function e(){}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"))},enumerable:!0,configurable:!0}),e}();function Ml(e){return Error('Could not find column with id "'+e+'".')}var Ll=function(e){this.viewContainer=e},Bl=function(e){this.viewContainer=e},Vl=function(){},Ul=O.a.create,zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t}(function(){function e(e,t,n,r){this._differs=e,this._changeDetectorRef=t,this._onDestroy=new a.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._headerRowDefChanged=!1,this.viewChange=new l({start:0,end:Number.MAX_VALUE}),r||n.nativeElement.setAttribute("role","grid")}return Object.defineProperty(e.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+"."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._dataDiffer=this._differs.find([]).create(this._trackByFn),this._headerRowDef&&(this._headerRowDefChanged=!0)},e.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDef&&!this._rowDefs.length)throw Error("Missing definitions for header and row, cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._renderHeaderRow(),this._headerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges()},e.prototype.ngOnDestroy=function(){this._rowPlaceholder.viewContainer.clear(),this._headerRowPlaceholder.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource instanceof Qo&&this.dataSource.disconnect(this)},e.prototype.renderRows=function(){var e=this,t=this._dataDiffer.diff(this._data);if(t){var n=this._rowPlaceholder.viewContainer;t.forEachOperation(function(t,r,i){if(null==t.previousIndex)e._insertRow(t.item,i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item})}},e.prototype.setHeaderRowDef=function(e){this._headerRowDef=e,this._headerRowDefChanged=!0},e.prototype.addColumnDef=function(e){this._customColumnDefs.add(e)},e.prototype.removeColumnDef=function(e){this._customColumnDefs.delete(e)},e.prototype.addRowDef=function(e){this._customRowDefs.add(e)},e.prototype.removeRowDef=function(e){this._customRowDefs.delete(e)},e.prototype._cacheColumnDefs=function(){var e=this;this._columnDefsByName.clear();var t=this._contentColumnDefs?this._contentColumnDefs.toArray():[];this._customColumnDefs.forEach(function(e){return t.push(e)}),t.forEach(function(t){if(e._columnDefsByName.has(t.name))throw Error('Duplicate column definition name provided: "'+t.name+'".');e._columnDefsByName.set(t.name,t)})},e.prototype._cacheRowDefs=function(){var e=this;this._rowDefs=this._contentRowDefs?this._contentRowDefs.toArray():[],this._customRowDefs.forEach(function(t){return e._rowDefs.push(t)});var t=this._rowDefs.filter(function(e){return!e.when});if(t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},e.prototype._renderUpdatedColumns=function(){var e=this;this._rowDefs.forEach(function(t){t.getColumnsDiff()&&(e._dataDiffer.diff([]),e._rowPlaceholder.viewContainer.clear(),e.renderRows())}),this._headerRowDef&&this._headerRowDef.getColumnsDiff()&&this._renderHeaderRow()},e.prototype._switchDataSource=function(e){this._data=[],this.dataSource instanceof Qo&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowPlaceholder.viewContainer.clear()),this._dataSource=e},e.prototype._observeRenderChanges=function(){var e=this;if(this.dataSource){var t;if(this.dataSource.connect instanceof Function?t=this.dataSource.connect(this):this.dataSource instanceof g.a?t=this.dataSource:Array.isArray(this.dataSource)&&(t=c(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(xa(this._onDestroy)).subscribe(function(t){e._data=t,e.renderRows()})}},e.prototype._renderHeaderRow=function(){this._headerRowPlaceholder.viewContainer.length>0&&this._headerRowPlaceholder.viewContainer.clear();var e=this._getHeaderCellTemplatesForRow(this._headerRowDef);e.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerRowDef.template,{cells:e}),e.forEach(function(e){jl.mostRecentCellOutlet&&jl.mostRecentCellOutlet._viewContainer.createEmbeddedView(e.template,{})}),this._changeDetectorRef.markForCheck())},e.prototype._getRowDef=function(e,t){if(1==this._rowDefs.length)return this._rowDefs[0];var n=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;if(!n)throw Error("Could not find a matching row definition for the provided row data.");return n},e.prototype._insertRow=function(e,t){var n=this._getRowDef(e,t),r={$implicit:e};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,t),this._getCellTemplatesForRow(n).forEach(function(e){jl.mostRecentCellOutlet&&jl.mostRecentCellOutlet._viewContainer.createEmbeddedView(e.template,r)}),this._changeDetectorRef.markForCheck()},e.prototype._updateRowIndexContext=function(){for(var e=this._rowPlaceholder.viewContainer,t=0,n=e.length;ta?s=1:o0)){var n=Math.ceil(t.paginator.length/t.paginator.pageSize)-1||0;t.paginator.pageIndex=Math.min(t.paginator.pageIndex,n)}})},t.prototype.connect=function(){return this._renderData},t.prototype.disconnect=function(){},t}(Qo),eu=function(){},tu=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i._platform=n,i._document=r,i}return Object(o.b)(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Object(r.isDevMode)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))},t.prototype._checkToolbarMixedModes=function(){var e=this;this._toolbarRows.length&&[].slice.call(this._elementRef.nativeElement.childNodes).filter(function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))}).filter(function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)}).some(function(e){return e.textContent.trim()})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},t}(lr(function(e){this._elementRef=e})),nu=function(){},ru=n("q5z3"),iu=n("M4fF"),ou=n("sIyc");g.a.prototype.map=d.a;var au=function(){function e(e){this.http=e}return e.prototype.doHylarQuery=function(e,t){return this.getQuerytype(e),this.http.post("https://reasoner-endpoint.herokuapp.com/",{query:e,data:t})},e.prototype.doQuery=function(e,t,n){var r=this;n||(n="text/turtle");var i=this.getQuerytype(e);return this._createStore().then(function(e){return r.store=e,r.prefixesPromise=r._getPrefixes(t),r._loadTriplesInStore(e,t,n)}).then(function(t){return r._executeQuery(r.store,e)}).then(function(e){var t=e;return"select"==i?r.sparqlJSON(t).data:r.prefixesPromise.then(function(e){return iu.chain(t.triples).map(function(t){var i=t.subject.nominalValue,o=t.predicate.nominalValue,a=t.object.nominalValue;return"text/turtle"==n&&(null!=r._abbreviate(i,e)&&(i=r._abbreviate(i,e)),null!=r._abbreviate(o,e)&&(o=r._abbreviate(o,e)),null!=r._abbreviate(a,e)&&(a=r._abbreviate(a,e))),{subject:i,predicate:o,object:a}}).value()})})},e.prototype.getQuerytype=function(e){var t=e.toLowerCase().indexOf("select"),n=e.toLowerCase().indexOf("construct");return-1!=t&&-1!=n?t Detected prefix change from "+n+" to "+t),this.forEach(function(e,t){if(t.startsWith(n)&&!t.startsWith("NGX-STORE_")){var i=r.trimPrefix(t);r.set(i,r._storage.getItem(t)),""!==n&&r._storage.removeItem(t)}}))}return e.getSettable=function(e){return JSON.stringify(e)},e.getGettable=function(e){if("undefined"===e)return null;try{return JSON.parse(e)}catch(t){return e}},Object.defineProperty(e.prototype,"prefix",{get:function(){return this._prefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){var e=[];return this.forEach(function(t,n){return e.push(n)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),e.prototype.getStorage=function(){return this._storage},e.prototype.getStorageKey=function(e,t){return""+(t="string"==typeof t?t:this._prefix)+e},e.prototype.getStorageName=function(){return this._storage.type||this._storage===localStorage?"localStorage":"sessionStorage"},e.prototype.get=function(e,t){void 0===t&&(t={});var n=this.getStorageKey(e,t.prefix),r=this._storage.getItem(n);return this.getGettable(r)},e.prototype.set=function(e,t,n){if(void 0===n&&(n={}),null===t||void 0===t)return this.remove(e),null;try{var r=this.getStorageKey(e,n.prefix),i=this.getSettable(t);this.emitEvent(e,t),this._storage.setItem(r,i,n.expires)}catch(n){console.warn("[ngx-store] "+this.getStorageName()+": following error occurred while trying to save "+e+" =",t),console.error(n)}return t},e.prototype.remove=function(e,t){var n=this.getStorageKey(e);t||this.emitEvent(e,null),this._storage.removeItem(n);var r=lu.get(e);r&&r.resetProxy()},e.prototype.clear=function(){var e=this;this.emitEvent(null,null,null),this.forEach(function(t,n){e.remove(n,!0)})},e.prototype.forEach=function(e){var t=this;if("function"==typeof this._storage.forEach)return this._storage.forEach(function(n,r){return e(t.getGettable(n),r)});Object.keys(this._storage).forEach(function(n){e(t.getGettable(t._storage[n]),n)})},e.prototype.getSettable=function(t){return e.getSettable(t)},e.prototype.getGettable=function(t){return e.getGettable(t)},e.prototype.trimPrefix=function(e){return e.replace(this.prefix,"")},e.prototype.emitEvent=function(e,t,n){var r=new uu(this.getStorageName(),e,this._storage);r.oldValue=void 0!==n?n:this.get(e),r.newValue=t,this._changes.next(r)},e}(),fu=function(){function e(){}return e.getItem=function(e){return this._webStorageUtility.get(e)},e.setItem=function(e,t){return this._webStorageUtility.set(e,t)},e._webStorageUtility=new cu(localStorage,"NGX-STORE_"),e}(),hu=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=""),this.prefix="",this.console=e,this.isEnabled=t,this.prefix=n}return e.prototype.assert=function(e,t){for(var n=this,r=[],i=2;i Removing decorated data from "+t.constructor.name+":",r)):(r=this.keys,vu.log(this.utility.getStorageName()+" > Removing decorated data:",r)),r.forEach(function(e){return n.remove(e)})}else"prefix"===e?(t=t||mu.prefix,this.utility.forEach(function(e,r){r.startsWith(t)&&n.remove(n.utility.trimPrefix(r))})):"all"===e&&this.utility.clear()},e.prototype.generateEvent=function(e,t,n){var r=this.utility.getStorageName().charAt(0).toLowerCase()+this.utility.getStorageName().slice(1),i=new uu(r,e,this.utility.getStorage());return i.oldValue=void 0!==n?n:this.get(e),i.newValue=t,i},e}(),_u=function(){function e(){this.externalChanges=new a.a}return e.prototype.emitEvent=function(e,t,n){var r=new uu(this.type,e,this);r.oldValue=void 0!==n?n:this.getItem(e),r.newValue=t,r.isInternal=!1,this.externalChanges.next(r)},e}();g.a.interval=function(e){function t(t,n){void 0===t&&(t=0),void 0===n&&(n=Br),e.call(this),this.period=t,this.scheduler=n,(!wi(t)||t<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=Br)}return Object(o.b)(t,e),t.create=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=Br),new t(e,n)},t.dispatch=function(e){var t=e.subscriber,n=e.period;t.next(e.index),t.closed||(e.index+=1,this.schedule(e,n))},t.prototype._subscribe=function(e){var n=this.period;e.add(this.scheduler.schedule(t.dispatch,n,{index:0,subscriber:e,period:n}))},t}(g.a).create;var wu=new(function(e){function t(){var t=e.call(this)||this;return t.getAllItems(),mu.cookiesCheckInterval&&g.a.interval(mu.cookiesCheckInterval).subscribe(function(){t.externalChanges.observers.length&&t.getAllItems()}),t}return Object(o.b)(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return"cookiesStorage"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.getAllKeys().length},enumerable:!0,configurable:!0}),t.prototype.key=function(e){return this.getAllKeys()[e]},t.prototype.getItem=function(e){return this.getAllItems().get(e)},t.prototype.removeItem=function(e){if("undefined"!=typeof document){var t=this.resolveDomain(mu.cookiesScope);t=t?"domain="+t+";":"",document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;"+t,this.cachedItemsMap.delete(e)}},t.prototype.setItem=function(e,t,n){if("undefined"!=typeof document){var r=this.resolveDomain(mu.cookiesScope);vu.log("Cookies domain:",r),r=r?"domain="+r+";":"";var i="";n instanceof Date?i=n.toUTCString():null===n&&(i="Fri, 18 Dec 2099 12:00:00 GMT");var o=e+"="+t+(i?"; expires="+i:"")+";path=/;"+r;vu.log("Cookie`s set instruction:",o),this.cachedItemsMap.set(e,t),document.cookie=o}},t.prototype.clear=function(){var e=this;this.getAllKeys().forEach(function(t){return e.removeItem(t)})},t.prototype.forEach=function(e){return this.getAllItems().forEach(function(t,n){return e(t,n)})},t.prototype.getAllKeys=function(){return Array.from(this.getAllItems().keys())},t.prototype.getAllItems=function(){var e=this;if(this.cachedCookieString===document.cookie)return this.cachedItemsMap;var t=new Map;if("undefined"==typeof document)return t;for(var n=document.cookie.split(";"),r=0;r-1?i.substr(0,o):i,s=o>-1?i.substr(o+1,i.length):i;t.set(a,s)}return this.cachedItemsMap&&(t.forEach(function(t,n){var r=e.cachedItemsMap.get(n);t!==(r=void 0!==r?r:null)&&e.emitEvent(n,cu.getGettable(t),cu.getGettable(r))}),this.cachedItemsMap.forEach(function(n,r){t.has(r)||e.emitEvent(r,null,cu.getGettable(n))})),this.cachedCookieString=document.cookie,this.cachedItemsMap=t},t.prototype.resolveDomain=function(e){if(!e)return"";var t=document.domain;return(t.match(/\./g)||[]).length<1?"":("."!==e[0]&&0===t.indexOf("www.")?"www.":"")+e+this.getDomain()},t.prototype.getDomain=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e { ?s ?p ?o }}";else var t="DELETE WHERE { ?s ?p ?o }";return this.query(t)},t.prototype.getTriplesFromURL=function(e){return this.http.get(e,{responseType:"text",observe:"response"})},t.prototype._getConn=function(){var e=this.getTriplestoreSettings();return new Vu.Connection({username:e.username,password:e.password,endpoint:e.endpoint})},t.prototype._getDB=function(){return this.getTriplestoreSettings().database},t}(Lu),zu=function(){function e(e,t,n,r,i,o){this._qs=e,this._ds=t,this._ss=n,this.route=r,this.snackBar=i,this.titleService=o,this.resultFieldExpanded=!1,this.showJSON=!1,this.editDescription=!1,this.triplestoreOption=!0,this.localStore=!0,this.toggleTooltip="Switch to triplestore"}return e.prototype.ngOnInit=function(){var e=this;this.route.queryParams.subscribe(function(t){e.tabIndex=t.tab?parseInt(t.tab):0,e.localStore=0!=t.local,e._ds.getTabTitles().subscribe(function(t){return e.tabTitles=t}),e._ds.getProjectData().subscribe(function(t){e.projectData=t,e.titleService.setTitle(e.projectData.title)}),e.changeTab(e.tabIndex)}),this._ds.loadingStatus.subscribe(function(t){return e.loading=t}),this._ds.loadingMessage.subscribe(function(t){return e.loadingMessage=t})},e.prototype.changeMsg=function(){this._ds.setLoadingMessage("Loading triples in store")},e.prototype.doQuery=function(){var e=this.data.query,t=this.data.triples;this.queryType=this._qs.getQuerytype(e),this.localStore?this.queryLocalstore(e,t):this.queryTriplestore(e)},e.prototype.log=function(e){console.log(e)},e.prototype.queryLocalstore=function(e,t){var n=this;this.reasoning?this._qs.doHylarQuery(e,t).subscribe(function(e){n.queryResult=e,n.resultFieldExpanded=!0},function(e){console.log(e),e.message&&e.name&&n.showSnackbar(e.name+": "+e.message,1e4)}):this._qs.doQuery(e,t).then(function(e){n.queryResult=e,n.resultFieldExpanded=!0}).catch(function(e){console.log(e),e.message&&e.name&&n.showSnackbar(e.name+": "+e.message,1e4)})},e.prototype.queryTriplestore=function(e){var t=this,n=Date.now();this._ss.query(e,this.reasoning).subscribe(function(e){if("200"!=e.status)e.body&&e.body.message?t.showSnackbar(e.body.code+": "+e.body.message,1e4):t.showSnackbar(e.status+": "+e.statusText);else{var r=Date.now()-n;t.queryTime=r;var i=e.body;null==i?t.showSnackbar("Query successful"):"select"==t.queryType?(t.queryResult=i,t.resultFieldExpanded=!0):t._qs.doQuery("CONSTRUCT WHERE {?s ?p ?o}",i).then(function(e){0==e.length?(t.queryResult=null,t.showSnackbar("Query returned no results. Did you load the correct dataset?")):(t.queryResult=e,t.resultFieldExpanded=!0)},function(e){return console.log(e)})}},function(e){t.showSnackbar("Something went wrong")})},e.prototype.resetTriples=function(){var e=this;this._ds.getSingle(this.tabIndex).subscribe(function(t){e.data.triples=t.triples})},e.prototype.toggleStore=function(){this.localStore=0==this.localStore,this.toggleTooltip="Switch to datasets"==this.toggleTooltip?"Switch to triplestore":"Switch to datasets"},e.prototype.changeTab=function(e){var t=this;"new"==e?console.log("Add new dataset"):(this.tabIndex=e,this._ds.getSingle(e).subscribe(function(e){t.data=e,t.reasoning=!!e.reasoning&&e.reasoning,t.data.query?t.doQuery():t.queryResult=null}))},e.prototype.tableClick=function(e){if(this.localStore)var t="SELECT * WHERE {\n\tBIND(<"+e+"> AS ?el)\n\t?el ?key ?value\n}";else t="SELECT *\nWHERE {\n\tBIND(<"+e+"> AS ?el)\n\tOPTIONAL { \n\t\tGRAPH ?graph {\n\t\t\t?el ?key ?value .\n\t\t}\n\t}\n\tOPTIONAL { ?el ?key ?value . }\n}";this.data.query=t,this.doQuery()},e.prototype.graphClick=function(e){console.log(e)},e.prototype.showSnackbar=function(e,t){t||(t=2e3),this.snackBar.open(e,"close",{duration:t})},e.prototype.saveDescription=function(){this.newDescription&&(this.data.description=this.newDescription),this.editDescription=!1},e.prototype.update=function(e){console.log(e)},e}(),qu=function(){},Qu=r["\u0275crt"]({encapsulation:2,styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:2px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"initial, void, hidden",styles:{type:6,styles:{transform:"scale(0)"},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)"},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.0, 0.0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function Hu(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[4,"transform-origin",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(e,t,n){var r=!0,i=e.component;return"@state.start"===t&&(r=!1!==i._animationStart()&&r),"@state.done"===t&&(r=!1!==i._animationDone(n)&&r),r},null,null)),r["\u0275did"](1,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r["\u0275pid"](131072,i.AsyncPipe,[r.ChangeDetectorRef]),(e()(),r["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,"mat-tooltip",t.component.tooltipClass)},function(e,t){var n=t.component;e(t,0,0,r["\u0275unv"](t,0,0,r["\u0275nov"](t,2).transform(n._isHandset)).matches,n._transformOrigin,n._visibility),e(t,3,0,n.message)})}var Gu=r["\u0275ccf"]("mat-tooltip-component",ul,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(e,t,n){var i=!0;return"body:click"===t&&(i=!1!==r["\u0275nov"](e,1)._handleBodyInteraction()&&i),i},Hu,Qu)),r["\u0275did"](1,49152,null,0,ul,[r.ChangeDetectorRef,el],null,null)],null,function(e,t){e(t,0,0,"visible"===r["\u0275nov"](t,1)._visibility?1:null)})},{},{},[]),Wu=r["\u0275crt"]({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:2px;box-sizing:border-box;display:block;margin:24px;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%) translateY(24px)}.mat-snack-bar-container.mat-snack-bar-center{margin:0;transform:translateY(100%)}.mat-snack-bar-container.mat-snack-bar-top{transform:translateY(-100%) translateY(-24px)}.mat-snack-bar-container.mat-snack-bar-top.mat-snack-bar-center{transform:translateY(-100%)}@media screen and (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:0;max-width:inherit;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"visible-top, visible-bottom",styles:{type:6,styles:{transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"visible-top => hidden-top, visible-bottom => hidden-bottom",animation:{type:4,styles:null,timings:"195ms cubic-bezier(0.4,0.0,1,1)"},options:null},{type:1,expr:"void => visible-top, void => visible-bottom",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.0,0.0,0.2,1)"},options:null}],options:{}}]}});function Ku(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](0,null,null,0))],null,null)}function Xu(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{_portalOutlet:0}),(e()(),r["\u0275and"](16777216,null,null,1,null,Ku)),r["\u0275did"](2,212992,[[1,4]],0,Li,[r.ComponentFactoryResolver,r.ViewContainerRef],{portal:[0,"portal"]},null)],function(e,t){e(t,2,0,"")},null)}var Zu=r["\u0275ccf"]("snack-bar-container",Sl,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"],["role","alert"]],[[40,"@state",0]],[["component","@state.done"]],function(e,t,n){var i=!0;return"component:@state.done"===t&&(i=!1!==r["\u0275nov"](e,1).onAnimationEnd(n)&&i),i},Xu,Wu)),r["\u0275did"](1,180224,null,0,Sl,[r.NgZone,r.ElementRef,r.ChangeDetectorRef],null,null)],null,function(e,t){e(t,0,0,r["\u0275nov"](t,1)._animationState)})},{},{},[]),Yu=r["\u0275crt"]({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;line-height:20px;opacity:1}.mat-simple-snackbar-action{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;background:0 0;flex-shrink:0;margin-left:48px}[dir=rtl] .mat-simple-snackbar-action{margin-right:48px;margin-left:0}"],data:{animation:[{type:7,name:"contentFade",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:"0"},offset:null},{type:4,styles:null,timings:"375ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null}],options:{}}]}});function $u(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"button",[["class","mat-simple-snackbar-action"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.action()&&r),r},null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.data.action)})}function Ju(e){return r["\u0275vid"](2,[(e()(),r["\u0275ted"](0,null,[""," "])),(e()(),r["\u0275and"](16777216,null,null,1,null,$u)),r["\u0275did"](2,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.hasAction)},function(e,t){e(t,0,0,t.component.data.message)})}var ec=r["\u0275ccf"]("simple-snack-bar",El,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],[[40,"@contentFade",0]],null,null,Ju,Yu)),r["\u0275did"](1,49152,null,0,El,[xl,kl],null,null)],null,function(e,t){e(t,0,0,void 0)})},{},{},[]),tc=r["\u0275crt"]({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function nc(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](0,null,null,0))],null,null)}function rc(e){return r["\u0275vid"](0,[r["\u0275qud"](402653184,1,{_portalOutlet:0}),(e()(),r["\u0275and"](16777216,null,null,1,null,nc)),r["\u0275did"](2,212992,[[1,4]],0,Li,[r.ComponentFactoryResolver,r.ViewContainerRef],{portal:[0,"portal"]},null)],function(e,t){e(t,2,0,"")},null)}var ic=r["\u0275ccf"]("mat-dialog-container",sa,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"mat-dialog-container",[["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(e,t,n){var i=!0;return"component:@slideDialog.start"===t&&(i=!1!==r["\u0275nov"](e,1)._onAnimationStart(n)&&i),"component:@slideDialog.done"===t&&(i=!1!==r["\u0275nov"](e,1)._onAnimationDone(n)&&i),i},rc,tc)),r["\u0275did"](1,49152,null,0,sa,[r.ElementRef,$r,r.ChangeDetectorRef,[2,i.DOCUMENT]],null,null)],null,function(e,t){e(t,0,0,r["\u0275nov"](t,1)._id,null==r["\u0275nov"](t,1)._config?null:r["\u0275nov"](t,1)._config.role,null!=r["\u0275nov"](t,1)._config&&r["\u0275nov"](t,1)._config.ariaLabel?null:r["\u0275nov"](t,1)._ariaLabelledBy,null==r["\u0275nov"](t,1)._config?null:r["\u0275nov"](t,1)._config.ariaLabel,(null==r["\u0275nov"](t,1)._config?null:r["\u0275nov"](t,1)._config.ariaDescribedBy)||null,r["\u0275nov"](t,1)._state)})},{},{},[]),oc=r["\u0275crt"]({encapsulation:2,styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:2px;outline:0}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:left top}.mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:right top}.mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:right top}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:left top}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.ng-animating{pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content{padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],data:{animation:[{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.01, 0.01)"},offset:null},options:void 0},{type:0,name:"enter-start",styles:{type:6,styles:{opacity:1,transform:"scale(1, 0.5)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"scale(1, 1)"},offset:null},options:void 0},{type:1,expr:"void => enter-start",animation:{type:4,styles:null,timings:"100ms linear"},options:null},{type:1,expr:"enter-start => enter",animation:{type:4,styles:null,timings:"300ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"150ms 50ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function ac(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.done"]],function(e,t,n){var r=!0,i=e.component;return"keydown"===t&&(r=!1!==i._handleKeydown(n)&&r),"click"===t&&(r=!1!==i.closed.emit("click")&&r),"@transformMenu.done"===t&&(r=!1!==i._onAnimationDone(n)&&r),r},null,null)),r["\u0275did"](1,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r["\u0275eld"](2,0,null,null,1,"div",[["class","mat-menu-content"]],[[24,"@fadeInItems",0]],null,null,null,null)),r["\u0275ncd"](null,0)],function(e,t){e(t,1,0,"mat-menu-panel",t.component._classList)},function(e,t){e(t,0,0,t.component._panelAnimationState),e(t,2,0,"showing")})}function sc(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{templateRef:0}),(e()(),r["\u0275and"](0,[[1,2]],null,0,null,ac))],null,null)}var lc=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function uc(e){return r["\u0275vid"](2,[r["\u0275ncd"](null,0),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),r["\u0275did"](2,212992,null,0,wr,[r.ElementRef,r.NgZone,Jn,[2,_r]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(e,t){var n=t.component;e(t,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(e,t){e(t,1,0,r["\u0275nov"](t,2).unbounded)})}var cc=r["\u0275crt"]({encapsulation:2,styles:[".mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function fc(e){return r["\u0275vid"](2,[r["\u0275ncd"](null,0),r["\u0275ncd"](null,1)],null,null)}var hc=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return Object(o.b)(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(Mr),dc=new(function(e){function t(){e.apply(this,arguments)}return Object(o.b)(t,e),t}(Lr))(hc),pc=n("1Bqh"),gc=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=r,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return Object(o.b)(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new mc(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new s.a;this.hasError?t=Fr.a.EMPTY:this.isStopped?t=Fr.a.EMPTY:(this.observers.push(e),t=new pc.a(this,e)),r&&e.add(e=new P(e,r));for(var i=n.length,o=0;ot&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(a.a),mc=function(e,t){this.time=e,this.value=t},vc=(new r.Version("2.0.0-beta.12-8bdc586"),"inline"),yc=["row","column","row-reverse","column-reverse"];function bc(e){var t,n,r=_c(e);return n=r[2],void 0===(t=r[1])&&(t=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":t||null}}function _c(e){var t=(e=e?e.toLowerCase():"").split(" "),n=t[0],r=t[1],i=t[2];return yc.find(function(e){return e===n})||(n=yc[0]),r===vc&&(r=i!==vc?i:"",i=vc),[n,function(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}(r),!!i]}function wc(e){return _c(e)[0].indexOf("row")>-1}function xc(e){for(var t=[],n=1;n0},e.prototype.hasKeyValue=function(e){return this._mqActivation.hasKeyValue(e)},Object.defineProperty(e.prototype,"hasInitialized",{get:function(){return this._hasInitialized},enumerable:!0,configurable:!0}),e}(),Ec=new r.InjectionToken("Token (@angular/flex-layout) Breakpoints"),Sc=function(){function e(e){this._registry=e}return Object.defineProperty(e.prototype,"items",{get:function(){return this._registry.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedItems",{get:function(){var e=this._registry.filter(function(e){return!0===e.overlapping}),t=this._registry.filter(function(e){return!0!==e.overlapping});return e.concat(t)},enumerable:!0,configurable:!0}),e.prototype.findByAlias=function(e){return this._registry.find(function(t){return t.alias==e})||null},e.prototype.findByQuery=function(e){return this._registry.find(function(t){return t.mediaQuery==e})||null},Object.defineProperty(e.prototype,"overlappings",{get:function(){return this._registry.filter(function(e){return 1==e.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aliases",{get:function(){return this._registry.map(function(e){return e.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suffixes",{get:function(){return this._registry.map(function(e){return e.suffix?e.suffix:""})},enumerable:!0,configurable:!0}),e}(),Tc=function(){function e(e,t,n,r){void 0===e&&(e=!1),void 0===t&&(t="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=e,this.mediaQuery=t,this.mqAlias=n,this.suffix=r}return e.prototype.clone=function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},e}(),Oc=function(){function e(e,t,n){this._zone=e,this._platformId=t,this._document=n,this._registry=new Map,this._source=new l(new Tc(!0)),this._observable$=this._source.asObservable()}return e.prototype.isActive=function(e){var t=this._registry.get(e);return!!t&&t.matches},e.prototype.observe=function(e){return e&&this.registerQuery(e),this._observable$.pipe(ge(function(t){return!e||t.mediaQuery===e}))},e.prototype.registerQuery=function(e){var t=this,n=function(e){return"undefined"==typeof e?[]:"string"==typeof e?[e]:(t={},e.filter(function(e){return!t.hasOwnProperty(e)&&(t[e]=!0)}));var t}(e);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(e){var n=t._registry.get(e),r=function(n){t._zone.run(function(){var r=new Tc(n.matches,e);t._source.next(r)})};n||((n=t._buildMQL(e)).addListener(r),t._registry.set(e,n)),n.matches&&r(n)}))},e.prototype._buildMQL=function(e){return Object(i.isPlatformBrowser)(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}},e.prototype._prepareQueryCSS=function(e,t){var n=e.filter(function(e){return!Ac[e]});if(n.length>0){var r=n.join(", ");try{var i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),t.head.appendChild(i),n.forEach(function(e){return Ac[e]=i})}catch(e){console.error(e)}}},e}(),Ac={};function Ic(e,t){return xc(e,t?{mqAlias:t.alias,suffix:t.suffix}:{})}var Rc=function(){function e(e,t){this._breakpoints=e,this._matchMedia=t,this._registerBreakpoints()}return Object.defineProperty(e.prototype,"breakpoints",{get:function(){return this._breakpoints.items.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOverlaps",{get:function(){var e=this;return this._breakpoints.overlappings.reverse().filter(function(t){return e._matchMedia.isActive(t.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){var e=this,t=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!t&&e._matchMedia.isActive(n.mediaQuery)&&(t=n)});var n=this.breakpoints[0];return t||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),e.prototype.isActive=function(e){var t=this._breakpoints.findByAlias(e)||this._breakpoints.findByQuery(e);return this._matchMedia.isActive(t?t.mediaQuery:e)},e.prototype.observe=function(e){var t=this._breakpoints.findByAlias(e||"")||this._breakpoints.findByQuery(e||"");return this._matchMedia.observe(t?t.mediaQuery:e).pipe(Object(Qr.a)(function(e){return Ic(e,t)}),ge(function(e){return!t||""!==e.mqAlias}))},e.prototype._registerBreakpoints=function(){var e=this._breakpoints.sortedItems.map(function(e){return e.mediaQuery});this._matchMedia.registerQuery(e)},e}();function Pc(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(n)?"0":n}}return e}var jc=function(){function e(){this.stylesheet=new Map}return e.prototype.addStyleToElement=function(e,t,n){var r=this.stylesheet.get(e);r?r.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))},e.prototype.clearStyles=function(){this.stylesheet.clear()},e.prototype.getStyleForElement=function(e,t){var n=this.stylesheet.get(e);return n&&n.get(t)||""},e}(),Dc=new r.InjectionToken("FlexLayoutServerLoaded"),Nc=function(){function e(e,t,n){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=n}return e.prototype.applyStyleToElement=function(e,t,n){var r={};"string"==typeof t&&(r[t]=n,t=r),r=Pc(t),this._applyMultiValueStyleToElement(r,e)},e.prototype.applyStyleToElements=function(e,t){var n=this;void 0===t&&(t=[]);var r=Pc(e);t.forEach(function(e){n._applyMultiValueStyleToElement(r,e)})},e.prototype.getFlowDirection=function(e){var t=this.lookupStyle(e,"flex-direction");t===Fc&&(t="");var n=this.lookupInlineStyle(e,"flex-direction")||Object(i.isPlatformServer)(this._platformId)&&this._serverModuleLoaded?t:"";return[t||"row",n]},e.prototype.lookupAttributeValue=function(e,t){return e.getAttribute(t)||""},e.prototype.lookupInlineStyle=function(e,t){return e.style[t]||e.style.getPropertyValue(t)},e.prototype.lookupStyle=function(e,t,n){void 0===n&&(n=!1);var r="";return e&&((r=this.lookupInlineStyle(e,t))||(Object(i.isPlatformBrowser)(this._platformId)?n||(r=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(r=""+this._serverStylesheet.getStyleForElement(e,t)))),r?r.trim():Fc},e.prototype._applyMultiValueStyleToElement=function(e,t){var n=this;Object.keys(e).sort().forEach(function(r){var o=Array.isArray(e[r])?e[r]:[e[r]];o.sort();for(var a=0,s=o;a0)r[2]=Uc(e.substring(i).trim()),2==(o=e.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=Uc(e.trim());else{var o;r=3===(o=e.split(" ")).length?o:[t,n,e]}return r}(String(t).replace(";",""),this._queryInput("grow"),this._queryInput("shrink"));this._applyStyleToElement(this._validateValue.apply(this,n))},t.prototype._validateValue=function(e,t,n){var r,i,o=this._getFlowDirection(this.parentElement,!0).indexOf("column")>-1?"column":"row";e="0"==e?0:e,t="0"==t?0:t;var a={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(n||""){case"":r=xc(a,{flex:e+" "+t+" 0.000000001px"});break;case"initial":case"nogrow":e=0,r=xc(a,{flex:"0 1 auto"});break;case"grow":r=xc(a,{flex:"1 1 100%"});break;case"noshrink":t=0,r=xc(a,{flex:"1 0 auto"});break;case"auto":r=xc(a,{flex:e+" "+t+" auto"});break;case"none":e=0,t=0,r=xc(a,{flex:"0 0 auto"});break;default:var s=String(n).indexOf("calc")>-1,l=String(n).indexOf("%")>-1&&!s;(i=s||String(n).indexOf("px")>-1||String(n).indexOf("em")>-1||String(n).indexOf("vw")>-1||String(n).indexOf("vh")>-1)||l||isNaN(n)||(n+="%"),"0px"===n&&(n="0%"),r=xc(a,{flex:e+" "+t+" "+(i?n:"100%")})}var u=wc(o)?"max-width":"max-height",c=wc(o)?"min-width":"min-height",f=String(n).indexOf("calc")>-1||"auto"==n,h=String(n).indexOf("px")>-1||f,d=!e&&!t;return r[c]="0%"==n?0:d||h&&e?n:null,r[u]="0%"==n?0:d||!f&&t?n:null,xc(r,{"box-sizing":"border-box"})},t}(Cc),qc=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}],Qc="(orientations: landscape) and (min-width: 960px) and (max-width: 1279px)",Hc="(orientations: portrait) and (min-width: 600px) and (max-width: 839px)",Gc="(orientations: portrait) and (min-width: 840px)",Wc="(orientations: landscape) and (min-width: 1280px)",Kc={HANDSET:"(orientations: portrait) and (max-width: 599px), (orientations: landscape) and (max-width: 959px)",TABLET:Hc+" , "+Qc,WEB:Gc+", "+Wc+" ",HANDSET_PORTRAIT:"(orientations: portrait) and (max-width: 599px)",TABLET_PORTRAIT:Hc+" ",WEB_PORTRAIT:""+Gc,HANDSET_LANDSCAPE:"(orientations: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+Qc,WEB_LANDSCAPE:""+Wc},Xc=[{alias:"handset",mediaQuery:Kc.HANDSET},{alias:"handset.landscape",mediaQuery:Kc.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:Kc.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:Kc.TABLET},{alias:"tablet.landscape",mediaQuery:Kc.TABLET},{alias:"tablet.portrait",mediaQuery:Kc.TABLET_PORTRAIT},{alias:"web",mediaQuery:Kc.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:Kc.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:Kc.WEB_PORTRAIT,overlapping:!0}],Zc=function(){},Yc=function(){function e(e,t){this.breakpoints=e,this.mediaWatcher=t,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return e.prototype.isActive=function(e){var t=this._toMediaQuery(e);return this.mediaWatcher.isActive(t)},e.prototype.subscribe=function(e,t,n){return this.observable$.subscribe(e,t,n)},e.prototype.asObservable=function(){return this.observable$},e.prototype._registerBreakPoints=function(){var e=this.breakpoints.sortedItems.map(function(e){return e.mediaQuery});this.mediaWatcher.registerQuery(e)},e.prototype._buildObservable=function(){var e=this,t=this;return this.mediaWatcher.observe().pipe(ge(function(e){return!0===e.matches}),ge(function(n){var r=e.breakpoints.findByQuery(n.mediaQuery);return!r||!(t.filterOverlaps&&r.overlapping)}),Object(Qr.a)(function(t){return Ic(t,e._findByQuery(t.mediaQuery))}))},e.prototype._findByAlias=function(e){return this.breakpoints.findByAlias(e)},e.prototype._findByQuery=function(e){return this.breakpoints.findByQuery(e)},e.prototype._toMediaQuery=function(e){var t=this._findByAlias(e)||this._findByQuery(e);return t?t.mediaQuery:e},e}(),$c=/(\.|-|_)/g;function Jc(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function ef(e){return e.forEach(function(e){e.suffix&&""!==e.suffix||(e.suffix=e.alias.replace($c,"|").split("|").map(Jc).join(""),e.overlapping=e.overlapping||!1)}),e}function tf(e,t){void 0===t&&(t=[]);var n=e.map(function(e){return xc({},e)});return t.forEach(function(e){var t,r=(t=e.alias,n.reduce(function(e,n){return e||(n.alias===t?n:null)},null));r?xc(r,e):n.push(e)}),ef(n)}function nf(){return ef(qc)}function rf(e,t,n){return e||new Yc(n,t)}new r.Optional,new r.SkipSelf,new r.Optional,new r.SkipSelf;var of=function(){},af=function(){},sf=function(){function e(e,t){Object(i.isPlatformServer)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return e.provideBreakPoints=function(t,n){return{ngModule:e,providers:[function(e,n){return{provide:Ec,useFactory:function(e,t){return t=xc({},{defaults:!0,orientation:!1},t||{}),function(){var n=t&&t.orientations?Xc.concat(qc):qc;return t&&t.defaults?tf(n,e||[]):tf(e||[])}}(t,n)}}(0,n||{orientations:!1})]}},e}(),lf=r["\u0275crt"]({encapsulation:2,styles:[".mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:1}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]{box-shadow:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-fab::-moz-focus-inner{border:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-fab[disabled]{box-shadow:none}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-mini-fab[disabled]{box-shadow:none}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function uf(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{ripple:0}),(e()(),r["\u0275eld"](1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),r["\u0275ncd"](null,0),(e()(),r["\u0275eld"](3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),r["\u0275did"](4,212992,[[1,4]],0,wr,[r.ElementRef,r.NgZone,Jn,[2,_r]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(e()(),r["\u0275eld"](5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n._isIconButton,n._isRippleDisabled(),n._getHostElement())},function(e,t){var n=t.component;e(t,3,0,n._isRoundButton||n._isIconButton,r["\u0275nov"](t,4).unbounded)})}var cf=r["\u0275crt"]({encapsulation:2,styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],data:{}});function ff(e){return r["\u0275vid"](2,[r["\u0275ncd"](null,0)],null,null)}var hf=function(){function e(e,t,n){this.dialogRef=e,this.ds=t,this.pss=n,this.title="Settings"}return e.prototype.ngOnInit=function(){this.getSettings()},e.prototype.getSettings=function(){var e=this;this.ds.getProjectSettings().subscribe(function(t){t&&t.filePath&&(e.fileMode=!0,e.filePath=t.filePath)})},e.prototype.saveSettings=function(){this.pss.saveDataSettings({filePath:this.filePath}),this.onNoClick()},e.prototype.toggleFileMode=function(){this.fileMode=!this.fileMode,this.fileMode||(this.filePath="")},e.prototype.onNoClick=function(){this.dialogRef.close()},e}(),df=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.onNoClick=function(){this.dialogRef.close()},e}(),pf=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.onNoClick=function(){this.dialogRef.close()},e}(),gf=function(){function e(e,t,n){this.dialog=e,this._sanitizer=t,this.document=n,this.videos=[{title:"1: The basics",id:"ixrhgKHKXDY"},{title:"2: Running locally",id:"KgtAgyzwEpk"}],this.about="\nThe development of this tool was initiated by [Mads Holten Rasmussen](researchgate.net/profile/Mads_Holten_Rasmussen) and is distributed under the [GNU General Public License](https://www.gnu.org/licenses/gpl.txt).\n\nIt is based on several open libraries; [rdfstore](https://www.npmjs.com/package/rdfstore), [D3](https://d3js.org/), [Angular](https://angular.io/) etc. and is supposed to be further developed under a copyleft licence.\n\nPlease join the effort in further developing the tool so ontology designers can use it in their prototyping and communication. The repo can be forked from [here](https://github.com/MadsHolten/sparql-visualizer).\n\nA special thanks to [Niras](https://www.niras.com/) for co-funding the Industrial PhD-project under which the tool has been developed."}return e.prototype.change=function(e){console.log(e.target.value),this.title=e.target.value},e.prototype.showAbout=function(){this.dialog.open(df,{height:"300px",width:"500px",data:{title:"About",message:this.about}})},e.prototype.downloadApp=function(){this.document.location.href="https://github.com/MadsHolten/sparql-visualizer/blob/master/sparql-viz.zip?raw=true"},e.prototype.showVideo=function(e){var t=this._sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+e+"?autoplay=1");this.dialog.open(pf,{height:"80%",width:"70%",data:{url:t}})},e.prototype.showWIP=function(){this.dialog.open(df,{height:"300px",width:"500px",data:{title:"WIP",message:"This feature is yet to be implemented."}})},e.prototype.showSettings=function(){this.dialog.open(hf,{height:"300px",width:"500px"})},e}(),mf=r["\u0275crt"]({encapsulation:0,styles:[[".title[_ngcontent-%COMP%]{margin-left:10px;margin-top:11px;font-size:25px}.creator[_ngcontent-%COMP%]{font-size:14px}.mat-toolbar[_ngcontent-%COMP%]{margin-bottom:10px}"]],data:{}});function vf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["class","creator"]],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["By ",""]))],null,function(e,t){e(t,1,0,t.component.creator)})}function yf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,1)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,1)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showVideo(e.context.$implicit.id)&&i),i},uc,lc)),r["\u0275did"](1,180224,[[4,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](3,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](4,null,["",""])),(e()(),r["\u0275ted"](-1,0,["\n "]))],null,function(e,t){e(t,0,0,r["\u0275nov"](t,1)._highlighted,r["\u0275nov"](t,1)._triggersSubmenu,r["\u0275nov"](t,1)._getTabIndex(),r["\u0275nov"](t,1).disabled.toString(),r["\u0275nov"](t,1).disabled||null),e(t,4,0,t.context.$implicit.title)})}function bf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,95,"mat-toolbar",[["class","mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,fc,cc)),r["\u0275did"](1,4243456,null,1,tu,[r.ElementRef,Jn,i.DOCUMENT],null,null),r["\u0275qud"](603979776,1,{_toolbarRows:1}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](5,0,null,0,1,"span",[["class","title"]],null,null,null,null,null)),(e()(),r["\u0275ted"](6,null,["SPARQL-visualizer | ",""])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](8,0,null,0,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](9,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275and"](16777216,null,0,1,null,vf)),r["\u0275did"](12,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,0,["\n \n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](15,16777216,null,0,7,"button",[["aria-haspopup","true"],["mat-icon-button",""]],[[8,"disabled",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(e,t,n){var i=!0;return"mousedown"===t&&(i=!1!==r["\u0275nov"](e,17)._handleMousedown(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,17)._handleKeydown(n)&&i),"click"===t&&(i=!1!==r["\u0275nov"](e,17)._handleClick(n)&&i),i},uf,lf)),r["\u0275did"](16,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),r["\u0275did"](17,1196032,null,0,Bs,[so,r.ElementRef,r.ViewContainerRef,Ms,[2,Fs],[8,null],[2,Qn],fi],{menu:[0,"menu"]},null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](19,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](20,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["more_vert"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](24,0,null,0,60,"mat-menu",[],null,null,null,sc,oc)),r["\u0275did"](25,1228800,[["menu",4]],2,Fs,[r.ElementRef,r.NgZone,Ns],null,null),r["\u0275qud"](603979776,2,{items:1}),r["\u0275qud"](335544320,3,{lazyContent:0}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](29,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,30)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,30)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showWIP()&&i),i},uc,lc)),r["\u0275did"](30,180224,[[2,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](32,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](33,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["fullscreen"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](36,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Switch to fullscreen"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](40,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,41)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,41)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.downloadApp()&&i),i},uc,lc)),r["\u0275did"](41,180224,[[2,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](43,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](44,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["file_download"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](47,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Download App"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](51,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,52)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,52)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showSettings()&&i),i},uc,lc)),r["\u0275did"](52,180224,[[2,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](54,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](55,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["settings"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](58,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Settings"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](62,16777216,null,0,10,"button",[["aria-haspopup","true"],["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"],[null,"mousedown"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,63)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,63)._emitHoverEvent()&&i),"mousedown"===t&&(i=!1!==r["\u0275nov"](e,64)._handleMousedown(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,64)._handleKeydown(n)&&i),"click"===t&&(i=!1!==r["\u0275nov"](e,64)._handleClick(n)&&i),i},uc,lc)),r["\u0275did"](63,180224,[[2,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),r["\u0275did"](64,1196032,null,0,Bs,[so,r.ElementRef,r.ViewContainerRef,Ms,[2,Fs],[2,Ds],[2,Qn],fi],{menu:[0,"menu"]},null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](66,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](67,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["school"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](70,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Tutorials"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](74,0,null,0,9,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,75)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,75)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showAbout()&&i),i},uc,lc)),r["\u0275did"](75,180224,[[2,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](77,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](78,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["info_outline"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](81,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["About"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](87,0,null,0,7,"mat-menu",[],null,null,null,sc,oc)),r["\u0275did"](88,1228800,[["submenu",4]],2,Fs,[r.ElementRef,r.NgZone,Ns],null,null),r["\u0275qud"](603979776,4,{items:1}),r["\u0275qud"](335544320,5,{lazyContent:0}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275and"](16777216,null,0,1,null,yf)),r["\u0275did"](93,802816,null,0,i.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n \n"]))],function(e,t){var n=t.component;e(t,9,0,"grow"),e(t,12,0,n.creator),e(t,17,0,r["\u0275nov"](t,25)),e(t,20,0),e(t,33,0),e(t,44,0),e(t,55,0),e(t,64,0,r["\u0275nov"](t,88)),e(t,67,0),e(t,78,0),e(t,93,0,n.videos)},function(e,t){var n=t.component;e(t,0,0,r["\u0275nov"](t,1)._toolbarRows.length,!r["\u0275nov"](t,1)._toolbarRows.length),e(t,6,0,n.title),e(t,15,0,r["\u0275nov"](t,16).disabled||null),e(t,29,0,r["\u0275nov"](t,30)._highlighted,r["\u0275nov"](t,30)._triggersSubmenu,r["\u0275nov"](t,30)._getTabIndex(),r["\u0275nov"](t,30).disabled.toString(),r["\u0275nov"](t,30).disabled||null),e(t,40,0,r["\u0275nov"](t,41)._highlighted,r["\u0275nov"](t,41)._triggersSubmenu,r["\u0275nov"](t,41)._getTabIndex(),r["\u0275nov"](t,41).disabled.toString(),r["\u0275nov"](t,41).disabled||null),e(t,51,0,r["\u0275nov"](t,52)._highlighted,r["\u0275nov"](t,52)._triggersSubmenu,r["\u0275nov"](t,52)._getTabIndex(),r["\u0275nov"](t,52).disabled.toString(),r["\u0275nov"](t,52).disabled||null),e(t,62,0,r["\u0275nov"](t,63)._highlighted,r["\u0275nov"](t,63)._triggersSubmenu,r["\u0275nov"](t,63)._getTabIndex(),r["\u0275nov"](t,63).disabled.toString(),r["\u0275nov"](t,63).disabled||null),e(t,74,0,r["\u0275nov"](t,75)._highlighted,r["\u0275nov"](t,75)._triggersSubmenu,r["\u0275nov"](t,75)._getTabIndex(),r["\u0275nov"](t,75).disabled.toString(),r["\u0275nov"](t,75).disabled||null)})}var _f=r["\u0275crt"]({encapsulation:2,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media screen and (-ms-high-contrast:active){.mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],data:{}});function wf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"mat-pseudo-checkbox",[["class","mat-option-pseudo-checkbox mat-pseudo-checkbox"]],[[2,"mat-pseudo-checkbox-indeterminate",null],[2,"mat-pseudo-checkbox-checked",null],[2,"mat-pseudo-checkbox-disabled",null]],null,null,Cf,kf)),r["\u0275did"](1,49152,null,0,kr,[],{state:[0,"state"],disabled:[1,"disabled"]},null)],function(e,t){var n=t.component;e(t,1,0,n.selected?"checked":"",n.disabled)},function(e,t){e(t,0,0,"indeterminate"===r["\u0275nov"](t,1).state,"checked"===r["\u0275nov"](t,1).state,r["\u0275nov"](t,1).disabled)})}function xf(e){return r["\u0275vid"](2,[(e()(),r["\u0275and"](16777216,null,null,1,null,wf)),r["\u0275did"](1,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](2,0,null,null,1,"span",[["class","mat-option-text"]],null,null,null,null,null)),r["\u0275ncd"](null,0),(e()(),r["\u0275eld"](4,0,null,null,1,"div",[["class","mat-option-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),r["\u0275did"](5,212992,null,0,wr,[r.ElementRef,r.NgZone,Jn,[2,_r]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(e,t){var n=t.component;e(t,1,0,n.multiple),e(t,5,0,n.disabled||n.disableRipple,n._getHostElement())},function(e,t){e(t,4,0,r["\u0275nov"](t,5).unbounded)})}var kf=r["\u0275crt"]({encapsulation:2,styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],data:{}});function Cf(e){return r["\u0275vid"](2,[],null,null)}var Ef=r["\u0275crt"]({encapsulation:2,styles:[".mat-expansion-panel{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);box-sizing:content-box;display:block;margin:0;transition:margin 225ms cubic-bezier(.4,0,.2,1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-expansion-panel-content{overflow:hidden}.mat-expansion-panel-content.mat-expanded{overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion .mat-expansion-panel-spacing:first-child{margin-top:0}.mat-accordion .mat-expansion-panel-spacing:last-child{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"bodyExpansion",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"0px",visibility:"hidden"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{height:"*",visibility:"visible"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}}]}});function Sf(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](0,null,null,0))],null,null)}function Tf(e){return r["\u0275vid"](2,[r["\u0275ncd"](null,0),(e()(),r["\u0275eld"](1,0,[["body",1]],null,5,"div",[["class","mat-expansion-panel-content"],["role","region"]],[[24,"@bodyExpansion",0],[1,"aria-labelledby",0],[8,"id",0]],[[null,"@bodyExpansion.done"],[null,"@bodyExpansion.start"]],function(e,t,n){var r=!0,i=e.component;return"@bodyExpansion.done"===t&&(r=!1!==i._bodyAnimation(n)&&r),"@bodyExpansion.start"===t&&(r=!1!==i._bodyAnimation(n)&&r),r},null,null)),(e()(),r["\u0275eld"](2,0,null,null,3,"div",[["class","mat-expansion-panel-body"]],null,null,null,null,null)),r["\u0275ncd"](null,1),(e()(),r["\u0275and"](16777216,null,null,1,null,Sf)),r["\u0275did"](5,212992,null,0,Li,[r.ComponentFactoryResolver,r.ViewContainerRef],{portal:[0,"portal"]},null),r["\u0275ncd"](null,2)],function(e,t){e(t,5,0,t.component._portal)},function(e,t){var n=t.component;e(t,1,0,n._getExpandedState(),n._headerId,n.id)})}var Of=r["\u0275crt"]({encapsulation:2,styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],data:{animation:[{type:7,name:"indicatorRotate",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{transform:"rotate(0deg)"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{transform:"rotate(180deg)"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"expansionHeight",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"{{collapsedHeight}}"},offset:null},options:{params:{collapsedHeight:"48px"}}},{type:0,name:"expanded",styles:{type:6,styles:{height:"{{expandedHeight}}"},offset:null},options:{params:{expandedHeight:"64px"}}},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}}]}});function Af(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,0,"span",[["class","mat-expansion-indicator"]],[[24,"@indicatorRotate",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component._getExpandedState())})}function If(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,0,null,null,3,"span",[["class","mat-content"]],null,null,null,null,null)),r["\u0275ncd"](null,0),r["\u0275ncd"](null,1),r["\u0275ncd"](null,2),(e()(),r["\u0275and"](16777216,null,null,1,null,Af)),r["\u0275did"](5,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,5,0,t.component._showToggle())},null)}var Rf=r["\u0275crt"]({encapsulation:2,styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;top:0;left:0;width:100%;height:2px;transform-origin:50%;transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-invalid:not(.mat-focused) .mat-form-field-underline .mat-form-field-ripple{height:1px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}",".mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-autosize{resize:none}"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Pf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","mat-input-prefix mat-form-field-prefix"]],null,null,null,null,null)),r["\u0275ncd"](null,0)],null,null)}function jf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),r["\u0275ncd"](null,2),(e()(),r["\u0275ted"](2,null,["",""]))],null,function(e,t){e(t,2,0,t.component._control.placeholder)})}function Df(e){return r["\u0275vid"](0,[r["\u0275ncd"](null,3),(e()(),r["\u0275and"](0,null,null,0))],null,null)}function Nf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0*"]))],null,null)}function Ff(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,[[4,0],["label",1]],null,7,"label",[["class","mat-form-field-label mat-input-placeholder mat-form-field-placeholder"]],[[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),r["\u0275did"](1,16384,null,0,i.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,jf)),r["\u0275did"](3,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Df)),r["\u0275did"](5,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Nf)),r["\u0275did"](7,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,3,0,!1),e(t,5,0,!0),e(t,7,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(e,t){var n=t.component;e(t,0,0,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function Mf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","mat-input-suffix mat-form-field-suffix"]],null,null,null,null,null)),r["\u0275ncd"](null,4)],null,null)}function Lf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),r["\u0275ncd"](null,5)],null,function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function Bf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)})}function Vf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"div",[["class","mat-input-hint-wrapper mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Bf)),r["\u0275did"](2,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),r["\u0275ncd"](null,6),(e()(),r["\u0275eld"](4,0,null,null,0,"div",[["class","mat-input-hint-spacer mat-form-field-hint-spacer"]],null,null,null,null,null)),r["\u0275ncd"](null,7)],function(e,t){e(t,2,0,t.component.hintLabel)},function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function Uf(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{underlineRef:0}),r["\u0275qud"](402653184,2,{_connectionContainerRef:0}),r["\u0275qud"](402653184,3,{_inputContainerRef:0}),r["\u0275qud"](671088640,4,{_label:0}),(e()(),r["\u0275eld"](4,0,null,null,18,"div",[["class","mat-input-wrapper mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),r["\u0275eld"](5,0,[[2,0],["connectionContainer",1]],null,9,"div",[["class","mat-input-flex mat-form-field-flex"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Pf)),r["\u0275did"](7,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](8,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-input-infix mat-form-field-infix"]],null,null,null,null,null)),r["\u0275ncd"](null,1),(e()(),r["\u0275eld"](10,0,null,null,2,"span",[["class","mat-form-field-label-wrapper mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ff)),r["\u0275did"](12,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Mf)),r["\u0275did"](14,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](15,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-input-underline mat-form-field-underline"]],null,null,null,null,null)),(e()(),r["\u0275eld"](16,0,null,null,0,"span",[["class","mat-input-ripple mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,5,"div",[["class","mat-input-subscript-wrapper mat-form-field-subscript-wrapper"]],null,null,null,null,null)),r["\u0275did"](18,16384,null,0,i.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Lf)),r["\u0275did"](20,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Vf)),r["\u0275did"](22,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){var n=t.component;e(t,7,0,n._prefixChildren.length),e(t,12,0,n._hasFloatingLabel()),e(t,14,0,n._suffixChildren.length),e(t,18,0,n._getDisplayedMessages()),e(t,20,0,"error"),e(t,22,0,"hint")},function(e,t){var n=t.component;e(t,16,0,"accent"==n.color,"warn"==n.color)})}var zf=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){this.title=this.data.title?this.data.title:"Type input",this.description=this.data.description?this.data.description:null,this.inputText=this.data.inputText?this.data.inputText:"Input"},e.prototype.onNoClick=function(){this.dialogRef.close()},e}(),qf=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){this.title=this.data.title?this.data.title:"Choose from list",this.description=this.data.description?this.data.description:null,this.selectText=this.data.selectText?this.data.selectText:"Select",this.list=this.data.list},e.prototype.onNoClick=function(){this.dialogRef.close()},e}(),Qf=function(){function e(e,t,n,r,i){this._pss=e,this._ss=t,this._ds=n,this.dialog=r,this.snackBar=i,this.panelOpenState=!1,this.projectSettings={endpoint:"",database:""}}return e.prototype.ngOnInit=function(){var e=this,t=this._pss.getTriplestoreSettings();t?this.projectSettings=t:(this.projectSettings.endpoint="http://localhost:5820",this.projectSettings.username="admin",this.projectSettings.password="admin"),this._ds.loadingStatus.subscribe(function(t){return e.loading=t}),this._ds.loadingMessage.subscribe(function(t){return e.loadingMessage=t})},e.prototype.ngOnChanges=function(e){this.triples=e.triples.currentValue},e.prototype.onDataChange=function(){this._pss.saveTriplestoreSettings(this.projectSettings)},e.prototype.showLoadToNamed=function(){var e=this;this.dialog.open(zf,{height:"300px",width:"500px",data:{title:"Named graph URI",description:"Type the name of the named graph to which the dataset should be loaded.",inputText:"URI"}}).afterClosed().subscribe(function(t){t&&e.loadDataset(t)})},e.prototype.showWipeNamed=function(){var e=this;this._ss.getNamedGraphs().subscribe(function(t){e.dialog.open(qf,{height:"300px",width:"500px",data:{title:"Named graph URI",description:"Select the named graph you wish to wipe",selectText:"named graph",list:t}}).afterClosed().subscribe(function(t){e.wipeDB(t)})})},e.prototype.loadDataset=function(e){var t=this;this._ds.getProjectSettings().subscribe(function(n){if(n&&n.filePath){var r=n.filePath;return e?t.loadExternal(r,e):t.loadExternal(r)}t._ss.loadTriples(t.triples,e).subscribe(function(e){"200"==e.status?t.showSnackbar("Successfully loaded dataset"):(t.showSnackbar(e.status+": "+e.statusText),console.log(e))},function(e){t.showSnackbar("Something went wrong"),console.log(e)})})},e.prototype.wipeDB=function(e){var t=this;this._ss.wipeDB(e).subscribe(function(e){"200"==e.status?t.showSnackbar("Successfully wiped database"):(t.showSnackbar(e.status+": "+e.statusText),console.log(e))},function(e){t.showSnackbar("Something went wrong"),console.log(e)})},e.prototype.loadOntologies=function(){this.loadExternal("https://w3id.org/bot","https://bot")},e.prototype.loadExternal=function(e,t){var n=this;this._ds.setLoaderStatus(!0),this._ds.setLoadingMessage("Downloading triples from external source"),this._ss.getTriplesFromURL(e).subscribe(function(e){n._ds.setLoadingMessage("Loading triples in store"),n._ss.loadTriples(e.body,t).subscribe(function(e){n._ds.setLoaderStatus(!1),"200"==e.status||"201"==e.status?n.showSnackbar("Successfully loaded triples in store"):(n.showSnackbar(e.status+": "+e.statusText),console.log(e))},function(e){n.showSnackbar("Something went wrong"),n._ds.setLoaderStatus(!1),console.log(e)})},function(t){n._ds.setLoaderStatus(!1),n.showSnackbar("Could not load content from "+e)})},e.prototype.showSnackbar=function(e,t){t||(t=2e3),this.snackBar.open(e,"close",{duration:t})},e}(),Hf=r["\u0275crt"]({encapsulation:0,styles:[[".full-width[_ngcontent-%COMP%]{width:100%}.button-row[_ngcontent-%COMP%]{margin-top:10px}"]],data:{}});function Gf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,101,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,Na,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n \n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](4,16777216,null,null,96,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"mat-expansion-panel-spacing",null]],null,null,Tf,Ef)),r["\u0275did"](5,1753088,null,1,Ma,[[2,Na],r.ChangeDetectorRef,Go,r.ViewContainerRef],null,null),r["\u0275qud"](335544320,1,{_lazyContent:0}),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](9,0,null,0,9,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,10)._toggle()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,10)._keydown(n)&&i),i},If,Of)),r["\u0275did"](10,180224,null,0,La,[Ma,r.ElementRef,fi,r.ChangeDetectorRef],null,null),r["\u0275pod"](11,{collapsedHeight:0,expandedHeight:1}),r["\u0275pod"](12,{value:0,params:1}),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](14,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),r["\u0275did"](15,16384,null,0,Va,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Triplestore settings\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](21,0,null,1,18,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](22,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,2,{_control:0}),r["\u0275qud"](335544320,3,{_placeholderChild:0}),r["\u0275qud"](335544320,4,{_labelChild:0}),r["\u0275qud"](603979776,5,{_errorChildren:1}),r["\u0275qud"](603979776,6,{_hintChildren:1}),r["\u0275qud"](603979776,7,{_prefixChildren:1}),r["\u0275qud"](603979776,8,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](31,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Project endpoint"],["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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,32)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,32).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,32)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,32)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,37)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,37)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,37)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.projectSettings.endpoint=n)&&i),"input"===t&&(i=!1!==o.onDataChange()&&i),i},null,null)),r["\u0275did"](32,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](34,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](36,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](37,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r["\u0275prd"](2048,[[2,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275eld"](41,0,null,1,18,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](42,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,9,{_control:0}),r["\u0275qud"](335544320,10,{_placeholderChild:0}),r["\u0275qud"](335544320,11,{_labelChild:0}),r["\u0275qud"](603979776,12,{_errorChildren:1}),r["\u0275qud"](603979776,13,{_hintChildren:1}),r["\u0275qud"](603979776,14,{_prefixChildren:1}),r["\u0275qud"](603979776,15,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](51,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Project database"],["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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,52)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,52).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,52)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,52)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,57)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,57)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,57)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.projectSettings.database=n)&&i),"input"===t&&(i=!1!==o.onDataChange()&&i),i},null,null)),r["\u0275did"](52,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](54,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](56,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](57,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r["\u0275prd"](2048,[[9,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275eld"](61,0,null,1,18,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](62,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,16,{_control:0}),r["\u0275qud"](335544320,17,{_placeholderChild:0}),r["\u0275qud"](335544320,18,{_labelChild:0}),r["\u0275qud"](603979776,19,{_errorChildren:1}),r["\u0275qud"](603979776,20,{_hintChildren:1}),r["\u0275qud"](603979776,21,{_prefixChildren:1}),r["\u0275qud"](603979776,22,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](71,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Username"],["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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,72)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,72).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,72)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,72)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,77)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,77)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,77)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.projectSettings.username=n)&&i),"input"===t&&(i=!1!==o.onDataChange()&&i),i},null,null)),r["\u0275did"](72,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](74,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](76,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](77,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r["\u0275prd"](2048,[[16,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n \n "])),(e()(),r["\u0275eld"](81,0,null,1,18,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](82,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,23,{_control:0}),r["\u0275qud"](335544320,24,{_placeholderChild:0}),r["\u0275qud"](335544320,25,{_labelChild:0}),r["\u0275qud"](603979776,26,{_errorChildren:1}),r["\u0275qud"](603979776,27,{_hintChildren:1}),r["\u0275qud"](603979776,28,{_prefixChildren:1}),r["\u0275qud"](603979776,29,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](91,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Password"],["type","password"]],[[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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,92)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,92).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,92)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,92)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,97)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,97)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,97)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.projectSettings.password=n)&&i),"input"===t&&(i=!1!==o.onDataChange()&&i),i},null,null)),r["\u0275did"](92,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](94,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](96,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](97,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r["\u0275prd"](2048,[[23,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n"])),(e()(),r["\u0275ted"](-1,null,["\n\n"])),(e()(),r["\u0275eld"](103,0,null,null,63,"div",[["class","button-row"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](105,16777216,null,null,7,"button",[["aria-haspopup","true"],["color","warn"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(e,t,n){var i=!0;return"mousedown"===t&&(i=!1!==r["\u0275nov"](e,107)._handleMousedown(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,107)._handleKeydown(n)&&i),"click"===t&&(i=!1!==r["\u0275nov"](e,107)._handleClick(n)&&i),i},uf,lf)),r["\u0275did"](106,180224,null,0,zo,[r.ElementRef,Jn,fi],{color:[0,"color"]},null),r["\u0275did"](107,1196032,null,0,Bs,[so,r.ElementRef,r.ViewContainerRef,Ms,[2,Fs],[8,null],[2,Qn],fi],{menu:[0,"menu"]},null),(e()(),r["\u0275ted"](-1,0,["\n Wipe graph "])),(e()(),r["\u0275eld"](109,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](110,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["delete_forever"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](114,16777216,null,null,7,"button",[["aria-haspopup","true"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(e,t,n){var i=!0;return"mousedown"===t&&(i=!1!==r["\u0275nov"](e,116)._handleMousedown(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,116)._handleKeydown(n)&&i),"click"===t&&(i=!1!==r["\u0275nov"](e,116)._handleClick(n)&&i),i},uf,lf)),r["\u0275did"](115,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),r["\u0275did"](116,1196032,null,0,Bs,[so,r.ElementRef,r.ViewContainerRef,Ms,[2,Fs],[8,null],[2,Qn],fi],{menu:[0,"menu"]},null),(e()(),r["\u0275ted"](-1,0,["\n Load dataset "])),(e()(),r["\u0275eld"](118,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](119,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["cloud_upload"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](123,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.loadOntologies()&&r),r},uf,lf)),r["\u0275did"](124,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n Load BOT\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](127,0,null,null,18,"mat-menu",[],null,null,null,sc,oc)),r["\u0275did"](128,1228800,[["loadMenu",4]],2,Fs,[r.ElementRef,r.NgZone,Ns],null,null),r["\u0275qud"](603979776,30,{items:1}),r["\u0275qud"](335544320,31,{lazyContent:0}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](132,0,null,0,5,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,133)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,133)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.loadDataset()&&i),i},uc,lc)),r["\u0275did"](133,180224,[[30,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](135,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["To main graph"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](139,0,null,0,5,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,140)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,140)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showLoadToNamed()&&i),i},uc,lc)),r["\u0275did"](140,180224,[[30,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](142,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["To named graph"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](147,0,null,null,18,"mat-menu",[],null,null,null,sc,oc)),r["\u0275did"](148,1228800,[["wipeMenu",4]],2,Fs,[r.ElementRef,r.NgZone,Ns],null,null),r["\u0275qud"](603979776,32,{items:1}),r["\u0275qud"](335544320,33,{lazyContent:0}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](152,0,null,0,5,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,153)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,153)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.wipeDB()&&i),i},uc,lc)),r["\u0275did"](153,180224,[[32,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](155,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Main graph"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](159,0,null,0,5,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,160)._checkDisabled(n)&&i),"mouseenter"===t&&(i=!1!==r["\u0275nov"](e,160)._emitHoverEvent()&&i),"click"===t&&(i=!1!==o.showWipeNamed()&&i),i},uc,lc)),r["\u0275did"](160,180224,[[32,4]],0,Ds,[r.ElementRef,i.DOCUMENT,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](162,0,null,0,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Named graph"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,34,0,n.projectSettings.endpoint),e(t,37,0,"Project endpoint","text"),e(t,54,0,n.projectSettings.database),e(t,57,0,"Project database","text"),e(t,74,0,n.projectSettings.username),e(t,77,0,"Username","text"),e(t,94,0,n.projectSettings.password),e(t,97,0,"Password","password"),e(t,106,0,"warn"),e(t,107,0,r["\u0275nov"](t,148)),e(t,110,0),e(t,116,0,r["\u0275nov"](t,128)),e(t,119,0)},function(e,t){e(t,4,0,r["\u0275nov"](t,5).expanded,r["\u0275nov"](t,5)._hasSpacing()),e(t,9,0,r["\u0275nov"](t,10).panel._headerId,r["\u0275nov"](t,10).panel.disabled?-1:0,r["\u0275nov"](t,10)._getPanelId(),r["\u0275nov"](t,10)._isExpanded(),r["\u0275nov"](t,10).panel.disabled,r["\u0275nov"](t,10)._isExpanded(),e(t,12,0,r["\u0275nov"](t,10)._getExpandedState(),e(t,11,0,r["\u0275nov"](t,10).collapsedHeight,r["\u0275nov"](t,10).expandedHeight))),e(t,21,1,[r["\u0275nov"](t,22)._control.errorState,r["\u0275nov"](t,22)._control.errorState,r["\u0275nov"](t,22)._canLabelFloat,r["\u0275nov"](t,22)._shouldLabelFloat(),r["\u0275nov"](t,22)._hideControlPlaceholder(),r["\u0275nov"](t,22)._control.disabled,r["\u0275nov"](t,22)._control.focused,r["\u0275nov"](t,22)._shouldForward("untouched"),r["\u0275nov"](t,22)._shouldForward("touched"),r["\u0275nov"](t,22)._shouldForward("pristine"),r["\u0275nov"](t,22)._shouldForward("dirty"),r["\u0275nov"](t,22)._shouldForward("valid"),r["\u0275nov"](t,22)._shouldForward("invalid"),r["\u0275nov"](t,22)._shouldForward("pending")]),e(t,31,1,[r["\u0275nov"](t,36).ngClassUntouched,r["\u0275nov"](t,36).ngClassTouched,r["\u0275nov"](t,36).ngClassPristine,r["\u0275nov"](t,36).ngClassDirty,r["\u0275nov"](t,36).ngClassValid,r["\u0275nov"](t,36).ngClassInvalid,r["\u0275nov"](t,36).ngClassPending,r["\u0275nov"](t,37)._isServer,r["\u0275nov"](t,37).id,r["\u0275nov"](t,37).placeholder,r["\u0275nov"](t,37).disabled,r["\u0275nov"](t,37).required,r["\u0275nov"](t,37).readonly,r["\u0275nov"](t,37)._ariaDescribedby||null,r["\u0275nov"](t,37).errorState,r["\u0275nov"](t,37).required.toString()]),e(t,41,1,[r["\u0275nov"](t,42)._control.errorState,r["\u0275nov"](t,42)._control.errorState,r["\u0275nov"](t,42)._canLabelFloat,r["\u0275nov"](t,42)._shouldLabelFloat(),r["\u0275nov"](t,42)._hideControlPlaceholder(),r["\u0275nov"](t,42)._control.disabled,r["\u0275nov"](t,42)._control.focused,r["\u0275nov"](t,42)._shouldForward("untouched"),r["\u0275nov"](t,42)._shouldForward("touched"),r["\u0275nov"](t,42)._shouldForward("pristine"),r["\u0275nov"](t,42)._shouldForward("dirty"),r["\u0275nov"](t,42)._shouldForward("valid"),r["\u0275nov"](t,42)._shouldForward("invalid"),r["\u0275nov"](t,42)._shouldForward("pending")]),e(t,51,1,[r["\u0275nov"](t,56).ngClassUntouched,r["\u0275nov"](t,56).ngClassTouched,r["\u0275nov"](t,56).ngClassPristine,r["\u0275nov"](t,56).ngClassDirty,r["\u0275nov"](t,56).ngClassValid,r["\u0275nov"](t,56).ngClassInvalid,r["\u0275nov"](t,56).ngClassPending,r["\u0275nov"](t,57)._isServer,r["\u0275nov"](t,57).id,r["\u0275nov"](t,57).placeholder,r["\u0275nov"](t,57).disabled,r["\u0275nov"](t,57).required,r["\u0275nov"](t,57).readonly,r["\u0275nov"](t,57)._ariaDescribedby||null,r["\u0275nov"](t,57).errorState,r["\u0275nov"](t,57).required.toString()]),e(t,61,1,[r["\u0275nov"](t,62)._control.errorState,r["\u0275nov"](t,62)._control.errorState,r["\u0275nov"](t,62)._canLabelFloat,r["\u0275nov"](t,62)._shouldLabelFloat(),r["\u0275nov"](t,62)._hideControlPlaceholder(),r["\u0275nov"](t,62)._control.disabled,r["\u0275nov"](t,62)._control.focused,r["\u0275nov"](t,62)._shouldForward("untouched"),r["\u0275nov"](t,62)._shouldForward("touched"),r["\u0275nov"](t,62)._shouldForward("pristine"),r["\u0275nov"](t,62)._shouldForward("dirty"),r["\u0275nov"](t,62)._shouldForward("valid"),r["\u0275nov"](t,62)._shouldForward("invalid"),r["\u0275nov"](t,62)._shouldForward("pending")]),e(t,71,1,[r["\u0275nov"](t,76).ngClassUntouched,r["\u0275nov"](t,76).ngClassTouched,r["\u0275nov"](t,76).ngClassPristine,r["\u0275nov"](t,76).ngClassDirty,r["\u0275nov"](t,76).ngClassValid,r["\u0275nov"](t,76).ngClassInvalid,r["\u0275nov"](t,76).ngClassPending,r["\u0275nov"](t,77)._isServer,r["\u0275nov"](t,77).id,r["\u0275nov"](t,77).placeholder,r["\u0275nov"](t,77).disabled,r["\u0275nov"](t,77).required,r["\u0275nov"](t,77).readonly,r["\u0275nov"](t,77)._ariaDescribedby||null,r["\u0275nov"](t,77).errorState,r["\u0275nov"](t,77).required.toString()]),e(t,81,1,[r["\u0275nov"](t,82)._control.errorState,r["\u0275nov"](t,82)._control.errorState,r["\u0275nov"](t,82)._canLabelFloat,r["\u0275nov"](t,82)._shouldLabelFloat(),r["\u0275nov"](t,82)._hideControlPlaceholder(),r["\u0275nov"](t,82)._control.disabled,r["\u0275nov"](t,82)._control.focused,r["\u0275nov"](t,82)._shouldForward("untouched"),r["\u0275nov"](t,82)._shouldForward("touched"),r["\u0275nov"](t,82)._shouldForward("pristine"),r["\u0275nov"](t,82)._shouldForward("dirty"),r["\u0275nov"](t,82)._shouldForward("valid"),r["\u0275nov"](t,82)._shouldForward("invalid"),r["\u0275nov"](t,82)._shouldForward("pending")]),e(t,91,1,[r["\u0275nov"](t,96).ngClassUntouched,r["\u0275nov"](t,96).ngClassTouched,r["\u0275nov"](t,96).ngClassPristine,r["\u0275nov"](t,96).ngClassDirty,r["\u0275nov"](t,96).ngClassValid,r["\u0275nov"](t,96).ngClassInvalid,r["\u0275nov"](t,96).ngClassPending,r["\u0275nov"](t,97)._isServer,r["\u0275nov"](t,97).id,r["\u0275nov"](t,97).placeholder,r["\u0275nov"](t,97).disabled,r["\u0275nov"](t,97).required,r["\u0275nov"](t,97).readonly,r["\u0275nov"](t,97)._ariaDescribedby||null,r["\u0275nov"](t,97).errorState,r["\u0275nov"](t,97).required.toString()]),e(t,105,0,r["\u0275nov"](t,106).disabled||null),e(t,114,0,r["\u0275nov"](t,115).disabled||null),e(t,123,0,r["\u0275nov"](t,124).disabled||null),e(t,132,0,r["\u0275nov"](t,133)._highlighted,r["\u0275nov"](t,133)._triggersSubmenu,r["\u0275nov"](t,133)._getTabIndex(),r["\u0275nov"](t,133).disabled.toString(),r["\u0275nov"](t,133).disabled||null),e(t,139,0,r["\u0275nov"](t,140)._highlighted,r["\u0275nov"](t,140)._triggersSubmenu,r["\u0275nov"](t,140)._getTabIndex(),r["\u0275nov"](t,140).disabled.toString(),r["\u0275nov"](t,140).disabled||null),e(t,152,0,r["\u0275nov"](t,153)._highlighted,r["\u0275nov"](t,153)._triggersSubmenu,r["\u0275nov"](t,153)._getTabIndex(),r["\u0275nov"](t,153).disabled.toString(),r["\u0275nov"](t,153).disabled||null),e(t,159,0,r["\u0275nov"](t,160)._highlighted,r["\u0275nov"](t,160)._triggersSubmenu,r["\u0275nov"](t,160)._getTabIndex(),r["\u0275nov"](t,160).disabled.toString(),r["\u0275nov"](t,160).disabled||null)})}var Wf=n("I95x"),Kf=n("lAJv"),Xf=function(){function e(){this.prefixes=[{prefix:"rdf",uri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#"},{prefix:"rdfs",uri:"http://www.w3.org/2000/01/rdf-schema#"},{prefix:"xsd",uri:"http://www.w3.org/2001/XMLSchema#"},{prefix:"prov",uri:"http://www.w3.org/ns/prov#"},{prefix:"opm",uri:"https://w3id.org/opm#"},{prefix:"seas",uri:"https://w3id.org/seas/"},{prefix:"sd",uri:"http://www.w3.org/ns/sparql-service-description#"},{prefix:"bot",uri:"https://w3id.org/bot#"},{prefix:"cdt",uri:"http://w3id.org/lindt/custom_datatypes#"},{prefix:"props",uri:"https://w3id.org/product/props#"},{prefix:"inst",uri:"https://www.niras.dk/proj100/"},{prefix:"owl",uri:"http://www.w3.org/2002/07/owl#"}]}return e.prototype.transform=function(e){var t=e,n=this._abbreviate(t,this.prefixes);return n&&(t=n),t},e.prototype._abbreviate=function(e,t){var n;return iu.each(t,function(t){var r=t.prefix,i=t.uri;-1!==e.indexOf(i)&&(n=e.replace(i,r+":"))}),n},e}(),Zf=function(){function e(e){this.prefixSimplePipe=e,this.fs=!1,this.clickedURI=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.data&&(this.divHeight=this.height?this.height:500,this.createChart())},e.prototype.fullscreen=function(){this.fs=!this.fs;var e=this.chartContainer.nativeElement;this.fs&&(this.widthBeforeResize=e.clientWidth),Wf.enabled&&Wf.toggle(e)},e.prototype.ngOnChanges=function(e){e.data.currentValue&&(this.data=e.data.currentValue,this.cleanGraph(),this.attachData())},e.prototype.onResize=function(){var e=this.chartContainer.nativeElement;this.chartContainer&&(!this.fs&&this.widthBeforeResize?(this.divWidth=this.widthBeforeResize,this.widthBeforeResize=null):this.divWidth=e.clientWidth,this.divHeight=this.fs?e.clientHeight:this.height,d3.selectAll("svg").remove(),this.createChart())},e.prototype.saveSVG=function(){Kf.save(d3.select("svg").node(),{filename:"sparql-viz-graph"})},e.prototype.createChart=function(){var e=this.chartContainer.nativeElement;this.divWidth||(this.divWidth=e.clientWidth),this.divHeight||(this.divHeight=e.clientHeight),this.svg=d3.select(e).append("svg").attr("width",this.divWidth).attr("height",this.divHeight),this.attachData()},e.prototype.attachData=function(){var e=this;this.force=d3.layout.force().size([this.divWidth,this.divHeight]),"string"==typeof this.data?this._parseTriples(this.data).then(function(t){console.log(t);var n=e._abbreviateTriples(t);e.graph=e._triplesToGraph(n),e.updateChart()}):(this.graph=this._triplesToGraph(this.data),this.updateChart())},e.prototype.clicked=function(e){d3.event.defaultPrevented||this.clickedURI.emit(e)},e.prototype.cleanGraph=function(){d3.selectAll("svg > *").remove()},e.prototype.updateChart=function(){var e=this;if(this.svg){this.svg.append("svg:defs").selectAll("marker").data(["end"]).enter().append("svg:marker").attr("id",String).attr("viewBox","0 -5 10 10").attr("refX",30).attr("refY",-.5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("svg:polyline").attr("points","0,-5 10,0 0,5");var t=this.svg.selectAll(".link").data(this.graph.triples).enter().append("path").attr("marker-end","url(#end)").attr("class","link"),n=this.svg.selectAll(".link-text").data(this.graph.triples).enter().append("text").attr("class","link-text").text(function(e){return e.p.label}),r=this.svg.selectAll(".node-text").data(this._filterNodesByType(this.graph.nodes,"node")).enter().append("text").attr("class","node-text").text(function(e){return e.label}),i=this.svg.selectAll(".node").data(this._filterNodesByType(this.graph.nodes,"node")).enter().append("circle").attr("class",function(e){return e.owlClass?"class":-1!=e.label.indexOf("_:")?"blank":e.instance||-1!=e.label.indexOf("inst:")?"instance":"node"}).attr("id",function(e){return e.label}).attr("r",function(e){return-1!=e.label.indexOf("_:")?7:e.instance||-1!=e.label.indexOf("inst:")?10:e.owlClass||-1!=e.label.indexOf("inst:")?9:8}).on("click",function(t){e.clicked(t)}).call(this.force.drag);this.force.on("tick",function(){i.attr("cx",function(e){return e.x}).attr("cy",function(e){return e.y}),t.attr("d",function(e){return"M"+e.s.x+","+e.s.y+"S"+e.p.x+","+e.p.y+" "+e.o.x+","+e.o.y}),r.attr("x",function(e){return e.x+12}).attr("y",function(e){return e.y+3}),n.attr("x",function(e){return 4+(e.s.x+e.p.x+e.o.x)/3}).attr("y",function(e){return 4+(e.s.y+e.p.y+e.o.y)/3})}),this.force.nodes(this.graph.nodes).links(this.graph.links).charge(-500).linkDistance(50).start()}},e.prototype._filterNodesById=function(e,t){return e.filter(function(e){return e.id===t})},e.prototype._filterNodesByType=function(e,t){return e.filter(function(e){return e.type===t})},e.prototype._triplesToGraph=function(e){var t=this;if(e){var n={nodes:[],links:[],triples:[]};return e.forEach(function(e){var r=t.prefixSimplePipe.transform(e.subject),i=t.prefixSimplePipe.transform(e.predicate),o=t.prefixSimplePipe.transform(e.object),a=t._filterNodesById(n.nodes,r)[0],s=t._filterNodesById(n.nodes,o)[0],l={id:i,label:i,weight:1,type:"pred"};n.nodes.push(l),null==a&&n.nodes.push(a={id:r,label:r,weight:1,type:"node"}),null==s&&(s={id:o,label:o,weight:1,type:"node"},"rdf:type"!=l.label&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"!=l.label||(s.owlClass=!0,a.instance=!0),n.nodes.push(s)),n.links.push({source:a,target:l,predicate:"",weight:1}),n.links.push({source:l,target:s,predicate:"",weight:1}),n.triples.push({s:a,p:l,o:s})}),n}},e.prototype._parseTriples=function(e){var t=ou.Parser(),n=[];return new Promise(function(r,i){t.parse(e,function(e,t,o){t?n.push(t):r({triples:n,prefixes:o}),e&&i(e)})})},e.prototype._abbreviateTriples=function(e){var t=e.prefixes,n=[];function r(e){var n=null;return-1!==e.indexOf("http")&&iu.each(t,function(t,r){-1!==e.indexOf(t)&&(n=e.replace(t,r+":"))}),n}return iu.each(e.triples,function(e){var t=e.subject,i=e.predicate,o=e.object;null!=r(t)&&(t=r(t)),null!=r(i)&&(i=r(i)),null!=r(o)&&(o=r(o)),n.push({subject:t,predicate:i,object:o})}),console.log(n),n},e}(),Yf=r["\u0275crt"]({encapsulation:0,styles:[["@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300ita\u200c\u200blic,400italic,500,500italic,700,700italic,900italic,900);html[_ngcontent-%COMP%], html[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:Roboto}[_nghost-%COMP%] .node{stroke:#fff;fill:#ddd;stroke-width:1.5px}[_nghost-%COMP%] .blank{stroke:#fff;fill:#000!important;stroke-width:1.5px}[_nghost-%COMP%] .blank.instance{stroke:#fff;fill:#000;stroke-width:1.5px}[_nghost-%COMP%] .class{stroke:#fff;fill:#9e0000;stroke-width:1.5px}[_nghost-%COMP%] .instance{stroke:#fff;fill:#20b2aa;stroke-width:1.5px}[_nghost-%COMP%] .instance-space{stroke:#fff;fill:#00bfff;stroke-width:1.5px}[_nghost-%COMP%] .instance-spaceType{stroke:#fff;fill:#00008b;stroke-width:1.5px}[_nghost-%COMP%] .link{fill:none;stroke:#999;stroke-opacity:.6;stroke-width:1px}[_nghost-%COMP%] marker{stroke:#999;fill:rgba(124,240,10,0)}[_nghost-%COMP%] .node-text{font:11px Roboto;fill:#000}[_nghost-%COMP%] .link-text{font:9px Roboto;fill:grey}[_nghost-%COMP%] #svg-body{position:relative;width:100%}[_nghost-%COMP%] #svg-body>.icon-bar{position:absolute;width:100%;z-index:10}#svg-body[_ngcontent-%COMP%] > .icon-bar[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:.7}.fullscreen[_ngcontent-%COMP%]{width:100%;height:100%}"]],data:{}});function $f(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["fxFlex","15px"]],null,null,null,null,null)),r["\u0275did"](1,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null)],function(e,t){e(t,1,0,"15px")},null)}function Jf(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["fxFlex","5px"]],null,null,null,null,null)),r["\u0275did"](1,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null)],function(e,t){e(t,1,0,"5px")},null)}function eh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","enter fullscreen mode"],["role","img"],["style","font-size: 30px;"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.fullscreen()&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n fullscreen\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"enter fullscreen mode")},null)}function th(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","exit fullscreen mode"],["role","img"],["style","font-size: 40px;"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.fullscreen()&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n fullscreen_exit\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"exit fullscreen mode")},null)}function nh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["fxFlex","40px"]],null,null,null,null,null)),r["\u0275did"](1,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null)],function(e,t){e(t,1,0,"40px")},null)}function rh(e){return r["\u0275vid"](0,[r["\u0275qud"](402653184,1,{chartContainer:0}),(e()(),r["\u0275eld"](1,0,[[1,0],["chart",1]],null,40,"div",[["class","panel-body"],["id","svg-body"]],null,null,null,null,null)),r["\u0275did"](2,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r["\u0275pod"](3,{fullscreen:0}),r["\u0275did"](4,278528,null,0,i.NgStyle,[r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngStyle:[0,"ngStyle"]},null),r["\u0275pod"](5,{height:0}),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](7,0,null,null,33,"div",[["class","icon-bar"],["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](8,278528,null,0,i.NgStyle,[r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngStyle:[0,"ngStyle"]},null),r["\u0275pod"](9,{top:0}),r["\u0275did"](10,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](13,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](14,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](17,16777216,null,null,5,"mat-icon",[["class","mat-icon"],["matTooltip","download SVG"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,21).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,21)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,21)._handleTouchend()&&i),"click"===t&&(i=!1!==o.saveSVG()&&i),i},ff,cf)),r["\u0275did"](18,278528,null,0,i.NgStyle,[r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngStyle:[0,"ngStyle"]},null),r["\u0275pod"](19,{"font-size":0}),r["\u0275did"](20,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](21,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n file_download\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,$f)),r["\u0275did"](26,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Jf)),r["\u0275did"](29,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,eh)),r["\u0275did"](33,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,th)),r["\u0275did"](36,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,nh)),r["\u0275did"](39,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,2,0,"panel-body",e(t,3,0,n.fs)),e(t,4,0,e(t,5,0,n.height)),e(t,8,0,e(t,9,0,n.fs?"20px":"0px")),e(t,10,0,"row"),e(t,14,0,"grow"),e(t,18,0,e(t,19,0,n.fs?"40px":"30px")),e(t,20,0),e(t,21,0,"download SVG"),e(t,26,0,n.fs),e(t,29,0,!n.fs),e(t,33,0,!n.fs),e(t,36,0,n.fs),e(t,39,0,n.fs)},null)}var ih=new r.InjectionToken("WindowToken");function oh(){return window}var ah=function(){},sh=function(){function e(e,t){this.document=e,this.window=t}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t}catch(e){return!1}},e.prototype.copyFromContent=function(e){return this.tempTextArea||(this.tempTextArea=this.createTempTextArea(this.document,this.window),this.document.body.appendChild(this.tempTextArea)),this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)},e.prototype.destroy=function(){this.tempTextArea&&(this.document.body.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.blur(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,r="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[r?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e}();function lh(e,t,n){return n||new sh(e,t)}new r.Optional,new r.SkipSelf;var uh=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new r.EventEmitter,this.cbOnError=new r.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy()},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent),this.cbContent):this.handleResult(!1,void 0)},e.prototype.handleResult=function(e,t){e?this.cbOnSuccess.emit({isSuccess:!0,content:t}):this.cbOnError.emit({isSuccess:!1})},e}();n("EN1B");var ch=function(){function e(e){this.ds=e,this.prefixes=[{prefix:"rdf",uri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#"},{prefix:"rdfs",uri:"http://www.w3.org/2000/01/rdf-schema#"},{prefix:"xsd",uri:"http://www.w3.org/2001/XMLSchema#"},{prefix:"prov",uri:"http://www.w3.org/ns/prov#"},{prefix:"opm",uri:"https://w3id.org/opm#"},{prefix:"seas",uri:"https://w3id.org/seas/"},{prefix:"sd",uri:"http://www.w3.org/ns/sparql-service-description#"},{prefix:"bot",uri:"https://w3id.org/bot#"},{prefix:"cdt",uri:"http://w3id.org/lindt/custom_datatypes#"},{prefix:"props",uri:"https://w3id.org/product/props#"},{prefix:"inst",uri:"https://www.niras.dk/proj100/"},{prefix:"owl",uri:"http://www.w3.org/2002/07/owl#"}]}return e.prototype.transform=function(e){var t=e.value;if("uri"==e.type){var n=this._abbreviate(t,this.prefixes);n&&(t=n)}return"literal"==e.type&&parseFloat(t)&&(t=parseFloat(t).toFixed(2)),t},e.prototype._abbreviate=function(e,t){var n;return iu.each(t,function(t){var r=t.prefix,i=t.uri;-1!==e.indexOf(i)&&(n=e.replace(i,r+":"))}),n},e}(),fh=r["\u0275crt"]({encapsulation:2,styles:[".mat-table{display:block}.mat-header-row{min-height:56px}.mat-row{min-height:48px}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;padding:0 24px;box-sizing:border-box}.mat-header-row::after,.mat-row::after{display:inline-block;min-height:inherit;content:''}.mat-cell,.mat-header-cell{flex:1;overflow:hidden;word-wrap:break-word}"],data:{}});function hh(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{_rowPlaceholder:0}),r["\u0275qud"](402653184,2,{_headerRowPlaceholder:0}),(e()(),r["\u0275eld"](2,16777216,null,null,1,null,null,null,null,null,null,null)),r["\u0275did"](3,16384,[[2,4]],0,Bl,[r.ViewContainerRef],null,null),(e()(),r["\u0275eld"](4,16777216,null,null,1,null,null,null,null,null,null,null)),r["\u0275did"](5,16384,[[1,4]],0,Ll,[r.ViewContainerRef],null,null)],null,null)}var dh=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ph(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,16777216,null,null,1,null,null,null,null,null,null,null)),r["\u0275did"](1,16384,null,0,jl,[r.ViewContainerRef],null,null)],null,null)}var gh=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function mh(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,16777216,null,null,1,null,null,null,null,null,null,null)),r["\u0275did"](1,16384,null,0,jl,[r.ViewContainerRef],null,null)],null,null)}var vh=n("cJqy"),yh=function(){function e(){}return e.prototype.transform=function(e){return(vh.where("1",e)?vh.where("1",e).name:null)||e},e}(),bh=r["\u0275crt"]({encapsulation:2,styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-checkmark,.mat-checkbox-mixedmark{width:calc(100% - 4px)}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer}.mat-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.66667px}.mat-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-ripple{position:absolute;left:calc(50% - 25px);top:calc(50% - 25px);height:50px;width:50px;z-index:1;pointer-events:none}"],data:{}});function _h(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{_inputElement:0}),r["\u0275qud"](402653184,2,{ripple:0}),(e()(),r["\u0275eld"](2,0,[["label",1]],null,15,"label",[["class","mat-checkbox-layout"]],[[1,"for",0]],null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,9,"div",[["class","mat-checkbox-inner-container"]],[[2,"mat-checkbox-inner-container-no-side-margin",null]],null,null,null,null)),(e()(),r["\u0275eld"](4,0,[[1,0],["input",1]],null,0,"input",[["class","mat-checkbox-input cdk-visually-hidden"],["type","checkbox"]],[[8,"id",0],[8,"required",0],[8,"checked",0],[1,"value",0],[8,"disabled",0],[1,"name",0],[8,"tabIndex",0],[8,"indeterminate",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-checked",0]],[[null,"change"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"change"===t&&(r=!1!==i._onInteractionEvent(n)&&r),"click"===t&&(r=!1!==i._onInputClick(n)&&r),r},null,null)),(e()(),r["\u0275eld"](5,0,null,null,2,"div",[["class","mat-checkbox-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),r["\u0275did"](6,212992,[[2,4]],0,wr,[r.ElementRef,r.NgZone,Jn,[2,_r]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),r["\u0275pod"](7,{enterDuration:0}),(e()(),r["\u0275eld"](8,0,null,null,0,"div",[["class","mat-checkbox-frame"]],null,null,null,null,null)),(e()(),r["\u0275eld"](9,0,null,null,3,"div",[["class","mat-checkbox-background"]],null,null,null,null,null)),(e()(),r["\u0275eld"](10,0,null,null,1,":svg:svg",[[":xml:space","preserve"],["class","mat-checkbox-checkmark"],["focusable","false"],["version","1.1"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(e()(),r["\u0275eld"](11,0,null,null,0,":svg:path",[["class","mat-checkbox-checkmark-path"],["d","M4.1,12.7 9,17.6 20.3,6.3"],["fill","none"],["stroke","white"]],null,null,null,null,null)),(e()(),r["\u0275eld"](12,0,null,null,0,"div",[["class","mat-checkbox-mixedmark"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,0,[["checkboxLabel",1]],null,4,"span",[["class","mat-checkbox-label"]],null,[[null,"cdkObserveContent"]],function(e,t,n){var r=!0;return"cdkObserveContent"===t&&(r=!1!==e.component._onLabelTextChange()&&r),r},null,null)),r["\u0275did"](14,1720320,null,0,Yo,[Zo,r.ElementRef,r.NgZone],null,{event:"cdkObserveContent"}),(e()(),r["\u0275eld"](15,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\xa0"])),r["\u0275ncd"](null,0)],function(e,t){var n=t.component;e(t,6,0,!0,25,e(t,7,0,150),n._isRippleDisabled(),r["\u0275nov"](t,2))},function(e,t){var n=t.component;e(t,2,0,n.inputId),e(t,3,0,!r["\u0275nov"](t,13).textContent||!r["\u0275nov"](t,13).textContent.trim()),e(t,4,1,[n.inputId,n.required,n.checked,n.value,n.disabled,n.name,n.tabIndex,n.indeterminate,n.ariaLabel,n.ariaLabelledby,n._getAriaChecked()]),e(t,5,0,r["\u0275nov"](t,6).unbounded)})}var wh=r["\u0275crt"]({encapsulation:2,styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;transition:none}"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:0,name:"showing-multiple",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0,minWidth:"100%",transform:"scaleY(0)"},offset:null},{type:4,styles:null,timings:"150ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null},{type:1,expr:"* => void",animation:[{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"250ms 100ms linear"}],options:null}],options:{}},{type:7,name:"fadeInContent",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => showing",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function xh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["class","mat-select-placeholder"]],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.placeholder||"\xa0")})}function kh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.triggerValue)})}function Ch(e){return r["\u0275vid"](0,[r["\u0275ncd"](null,0),(e()(),r["\u0275and"](0,null,null,0))],null,null)}function Eh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,5,"span",[["class","mat-select-value-text"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,i.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,kh)),r["\u0275did"](3,16384,null,0,i.NgSwitchDefault,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],null,null),(e()(),r["\u0275and"](16777216,null,null,1,null,Ch)),r["\u0275did"](5,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){e(t,1,0,!!t.component.customTrigger),e(t,5,0,!0)},null)}function Sh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,[[2,0],["panel",1]],null,3,"div",[],[[24,"@transformPanel",0],[4,"transformOrigin",null],[2,"mat-select-panel-done-animating",null],[4,"font-size","px"]],[[null,"@transformPanel.done"],[null,"keydown"]],function(e,t,n){var r=!0,i=e.component;return"@transformPanel.done"===t&&(r=!1!==i._onPanelDone()&&r),"keydown"===t&&(r=!1!==i._handleKeydown(n)&&r),r},null,null)),r["\u0275did"](1,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r["\u0275eld"](2,0,null,null,1,"div",[["class","mat-select-content"]],[[24,"@fadeInContent",0]],[[null,"@fadeInContent.done"]],function(e,t,n){var r=!0;return"@fadeInContent.done"===t&&(r=!1!==e.component._onFadeInDone()&&r),r},null,null)),r["\u0275ncd"](null,1)],function(e,t){var n=t.component;e(t,1,0,r["\u0275inlineInterpolate"](1,"mat-select-panel ",n._getPanelTheme(),""),n.panelClass)},function(e,t){var n=t.component;e(t,0,0,n.multiple?"showing-multiple":"showing",n._transformOrigin,n._panelDoneAnimating,n._triggerFontSize),e(t,2,0,"showing")})}function Th(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{trigger:0}),r["\u0275qud"](671088640,2,{panel:0}),r["\u0275qud"](402653184,3,{overlayDir:0}),(e()(),r["\u0275eld"](3,0,[[1,0],["trigger",1]],null,9,"div",[["aria-hidden","true"],["cdk-overlay-origin",""],["class","mat-select-trigger"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r},null,null)),r["\u0275did"](4,16384,[["origin",4]],0,fo,[r.ElementRef],null,null),(e()(),r["\u0275eld"](5,0,null,null,5,"div",[["class","mat-select-value"]],null,null,null,null,null)),r["\u0275did"](6,16384,null,0,i.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,xh)),r["\u0275did"](8,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Eh)),r["\u0275did"](10,278528,null,0,i.NgSwitchCase,[r.ViewContainerRef,r.TemplateRef,i.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r["\u0275eld"](11,0,null,null,1,"div",[["class","mat-select-arrow-wrapper"]],null,null,null,null,null)),(e()(),r["\u0275eld"](12,0,null,null,0,"div",[["class","mat-select-arrow"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,function(e,t,n){var r=!0,i=e.component;return"backdropClick"===t&&(r=!1!==i.close()&&r),"attach"===t&&(r=!1!==i._onAttached()&&r),"detach"===t&&(r=!1!==i.close()&&r),r},Sh)),r["\u0275did"](14,671744,[[3,4]],0,ho,[so,r.TemplateRef,r.ViewContainerRef,uo,[2,Qn]],{lockPosition:[0,"lockPosition"],_deprecatedOrigin:[1,"_deprecatedOrigin"],_deprecatedPositions:[2,"_deprecatedPositions"],_deprecatedOffsetY:[3,"_deprecatedOffsetY"],_deprecatedMinWidth:[4,"_deprecatedMinWidth"],_deprecatedBackdropClass:[5,"_deprecatedBackdropClass"],_deprecatedScrollStrategy:[6,"_deprecatedScrollStrategy"],_deprecatedOpen:[7,"_deprecatedOpen"],_deprecatedHasBackdrop:[8,"_deprecatedHasBackdrop"]},{backdropClick:"backdropClick",attach:"attach",detach:"detach"})],function(e,t){var n=t.component;e(t,6,0,n.empty),e(t,8,0,!0),e(t,10,0,!1),e(t,14,0,"",r["\u0275nov"](t,4),n._positions,n._offsetY,null==n._triggerRect?null:n._triggerRect.width,"cdk-overlay-transparent-backdrop",n._scrollStrategy,n.panelOpen,"")},null)}var Oh=r["\u0275crt"]({encapsulation:2,styles:[".mat-paginator{display:block}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center;min-height:48px}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}"],data:{}});function Ah(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,1)._selectViaInteraction()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,1)._handleKeydown(n)&&i),i},xf,_f)),r["\u0275did"](1,8437760,[[8,4]],0,Ar,[r.ElementRef,r.ChangeDetectorRef,[2,Or],[2,Sr]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](2,0,["",""]))],function(e,t){e(t,1,0,t.context.$implicit)},function(e,t){e(t,0,0,r["\u0275nov"](t,1)._getTabIndex(),r["\u0275nov"](t,1).selected,r["\u0275nov"](t,1).multiple,r["\u0275nov"](t,1).active,r["\u0275nov"](t,1).id,r["\u0275nov"](t,1).selected.toString(),r["\u0275nov"](t,1).disabled.toString(),r["\u0275nov"](t,1).disabled),e(t,2,0,t.context.$implicit)})}function Ih(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,17,"mat-form-field",[["class","mat-paginator-page-size-select mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](1,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,1,{_control:0}),r["\u0275qud"](335544320,2,{_placeholderChild:0}),r["\u0275qud"](335544320,3,{_labelChild:0}),r["\u0275qud"](603979776,4,{_errorChildren:1}),r["\u0275qud"](603979776,5,{_hintChildren:1}),r["\u0275qud"](603979776,6,{_prefixChildren:1}),r["\u0275qud"](603979776,7,{_suffixChildren:1}),(e()(),r["\u0275eld"](9,0,null,1,8,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null]],[[null,"change"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==r["\u0275nov"](e,11)._handleKeydown(n)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,11)._onFocus()&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11)._onBlur()&&i),"change"===t&&(i=!1!==o._changePageSize(n.value)&&i),i},Th,wh)),r["\u0275prd"](6144,null,Or,null,[Qs]),r["\u0275did"](11,2080768,null,3,Qs,[Ai,r.ChangeDetectorRef,r.NgZone,hr,r.ElementRef,[2,Qn],[2,wo.NgForm],[2,wo.FormGroupDirective],[2,Do],[8,null],[8,null],zs],{value:[0,"value"],ariaLabel:[1,"ariaLabel"]},{change:"change"}),r["\u0275qud"](603979776,8,{options:1}),r["\u0275qud"](603979776,9,{optionGroups:1}),r["\u0275qud"](335544320,10,{customTrigger:0}),r["\u0275prd"](2048,[[1,4]],Ro,null,[Qs]),(e()(),r["\u0275and"](16777216,null,1,1,null,Ah)),r["\u0275did"](17,802816,null,0,i.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,11,0,n.pageSize,n._intl.itemsPerPageLabel),e(t,17,0,n._displayedPageSizeOptions)},function(e,t){e(t,0,1,[r["\u0275nov"](t,1)._control.errorState,r["\u0275nov"](t,1)._control.errorState,r["\u0275nov"](t,1)._canLabelFloat,r["\u0275nov"](t,1)._shouldLabelFloat(),r["\u0275nov"](t,1)._hideControlPlaceholder(),r["\u0275nov"](t,1)._control.disabled,r["\u0275nov"](t,1)._control.focused,r["\u0275nov"](t,1)._shouldForward("untouched"),r["\u0275nov"](t,1)._shouldForward("touched"),r["\u0275nov"](t,1)._shouldForward("pristine"),r["\u0275nov"](t,1)._shouldForward("dirty"),r["\u0275nov"](t,1)._shouldForward("valid"),r["\u0275nov"](t,1)._shouldForward("invalid"),r["\u0275nov"](t,1)._shouldForward("pending")]),e(t,9,1,[r["\u0275nov"](t,11).id,r["\u0275nov"](t,11).tabIndex,r["\u0275nov"](t,11)._ariaLabel,r["\u0275nov"](t,11).ariaLabelledby,r["\u0275nov"](t,11).required.toString(),r["\u0275nov"](t,11).disabled.toString(),r["\u0275nov"](t,11).errorState,r["\u0275nov"](t,11).panelOpen?r["\u0275nov"](t,11)._optionIds:null,r["\u0275nov"](t,11).multiple,r["\u0275nov"](t,11)._ariaDescribedby||null,r["\u0275nov"](t,11)._getAriaActiveDescendant(),r["\u0275nov"](t,11).disabled,r["\u0275nov"](t,11).errorState,r["\u0275nov"](t,11).required])})}function Rh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.pageSize)})}function Ph(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[["class","mat-paginator-page-size"]],null,null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","mat-paginator-page-size-label"]],null,null,null,null,null)),(e()(),r["\u0275ted"](2,null,["",""])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ih)),r["\u0275did"](4,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275and"](16777216,null,null,1,null,Rh)),r["\u0275did"](6,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,4,0,n._displayedPageSizeOptions.length>1),e(t,6,0,n._displayedPageSizeOptions.length<=1)},function(e,t){e(t,2,0,t.component._intl.itemsPerPageLabel)})}function jh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-first"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.firstPage()&&i),i},uf,lf)),r["\u0275did"](1,180224,null,0,zo,[r.ElementRef,Jn,fi],{disabled:[0,"disabled"]},null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{position:[0,"position"],message:[1,"message"]},null),(e()(),r["\u0275eld"](3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"]],null,null,null,null,null)),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){var n=t.component;e(t,1,0,!n.hasPreviousPage()),e(t,2,0,"above",n._intl.firstPageLabel)},function(e,t){e(t,0,0,t.component._intl.firstPageLabel,r["\u0275nov"](t,1).disabled||null)})}function Dh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-last"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.lastPage()&&i),i},uf,lf)),r["\u0275did"](1,180224,null,0,zo,[r.ElementRef,Jn,fi],{disabled:[0,"disabled"]},null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{position:[0,"position"],message:[1,"message"]},null),(e()(),r["\u0275eld"](3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,0,":svg:path",[["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],null,null,null,null,null)),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){var n=t.component;e(t,1,0,!n.hasNextPage()),e(t,2,0,"above",n._intl.lastPageLabel)},function(e,t){e(t,0,0,t.component._intl.lastPageLabel,r["\u0275nov"](t,1).disabled||null)})}function Nh(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,0,null,null,19,"div",[["class","mat-paginator-container"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Ph)),r["\u0275did"](2,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](3,0,null,null,16,"div",[["class","mat-paginator-range-actions"]],null,null,null,null,null)),(e()(),r["\u0275eld"](4,0,null,null,1,"div",[["class","mat-paginator-range-label"]],null,null,null,null,null)),(e()(),r["\u0275ted"](5,null,["",""])),(e()(),r["\u0275and"](16777216,null,null,1,null,jh)),r["\u0275did"](7,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275eld"](8,16777216,null,null,4,"button",[["class","mat-paginator-navigation-previous"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,10).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,10)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,10)._handleTouchend()&&i),"click"===t&&(i=!1!==o.previousPage()&&i),i},uf,lf)),r["\u0275did"](9,180224,null,0,zo,[r.ElementRef,Jn,fi],{disabled:[0,"disabled"]},null),r["\u0275did"](10,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{position:[0,"position"],message:[1,"message"]},null),(e()(),r["\u0275eld"](11,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(e()(),r["\u0275eld"](12,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"]],null,null,null,null,null)),(e()(),r["\u0275eld"](13,16777216,null,null,4,"button",[["class","mat-paginator-navigation-next"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,15).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,15)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,15)._handleTouchend()&&i),"click"===t&&(i=!1!==o.nextPage()&&i),i},uf,lf)),r["\u0275did"](14,180224,null,0,zo,[r.ElementRef,Jn,fi],{disabled:[0,"disabled"]},null),r["\u0275did"](15,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{position:[0,"position"],message:[1,"message"]},null),(e()(),r["\u0275eld"](16,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(e()(),r["\u0275eld"](17,0,null,null,0,":svg:path",[["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],null,null,null,null,null)),(e()(),r["\u0275and"](16777216,null,null,1,null,Dh)),r["\u0275did"](19,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,!n.hidePageSize),e(t,7,0,n.showFirstLastButtons),e(t,9,0,!n.hasPreviousPage()),e(t,10,0,"above",n._intl.previousPageLabel),e(t,14,0,!n.hasNextPage()),e(t,15,0,"above",n._intl.nextPageLabel),e(t,19,0,n.showFirstLastButtons)},function(e,t){var n=t.component;e(t,5,0,n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)),e(t,8,0,n._intl.previousPageLabel,r["\u0275nov"](t,9).disabled||null),e(t,13,0,n._intl.nextPageLabel,r["\u0275nov"](t,14).disabled||null)})}g.a.of=c;var Fh=n("HGLA"),Mh=function(){function e(e,t,n){this.ds=e,this.snackBar=t,this.dialog=n,this.showDatatypes=!1,this.clickedURI=new r.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;this.ds.getPrefixes().subscribe(function(t){e.prefixes=t})},e.prototype.ngAfterViewInit=function(){this.dataSource.paginator=this.paginator},e.prototype.ngOnChanges=function(e){var t;e.queryResult.currentValue&&e.queryResult.currentValue.head&&e.queryResult.currentValue.head.vars.length>0?(this.displayedColumns=e.queryResult.currentValue.head.vars,this.resultLength=(t=e.queryResult.currentValue.results.bindings).length):(this.displayedColumns=[],this.resultLength=(t=[]).length),this.dataSource=new Jl(t),this.dataSource.paginator=this.paginator},e.prototype.clickElement=function(e){"uri"==e.type&&this.clickedURI.emit(e.value)},e.prototype.showExportCsv=function(){var e=this;this.dialog.open(qf,{height:"300px",width:"500px",data:{title:"Export to CSV",description:"Please choose seperator",selectText:"seperator",list:[",",";"]}}).afterClosed().subscribe(function(t){e.exportCsv(t)})},e.prototype.exportCsv=function(e){var t={fieldSeparator:e,quoteStrings:'"',decimalseparator:";"==e?",":".",showLabels:!0,showTitle:!1,useBom:!0},n=iu.map(this.dataSource.data,function(e){return iu.mapValues(e,function(e){return e.value})});new Fh.Angular2Csv(n,"SPARQL-viz export",t)},e.prototype.showSnackbar=function(e,t){t||(t=2e3),this.snackBar.open(e,"close",{duration:t})},e}(),Lh=r["\u0275crt"]({encapsulation:0,styles:[[".table-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.table-header[_ngcontent-%COMP%]{min-height:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:8px 24px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-bottom-color:rgba(0,0,0,.12);font-family:Roboto,Helvetica Neue,sans-serif}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{position:relative;padding-right:5px;height:100%}.table-header[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{font-size:16x;padding-right:10px}.table-header[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]:hover{cursor:pointer;color:#7ca37f}.colRest[_ngcontent-%COMP%]{text-align:right}.link[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:.7}.mat-cell[_ngcontent-%COMP%]:hover .cp[_ngcontent-%COMP%]{display:inline}#mat-checkbox-1[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px}.cp[_ngcontent-%COMP%]{display:none;position:absolute;cursor:pointer;text-align:right;right:1px;top:1px;font-size:18px;z-index:10}.cp[_ngcontent-%COMP%]:hover{color:#7ca37f}"]],data:{}});function Bh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,[" in "," seconds"]))],null,function(e,t){e(t,1,0,t.component.queryTime/1e3)})}function Vh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r["\u0275did"](1,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngClass:[0,"ngClass"]},null),r["\u0275did"](2,16384,null,0,Gl,[Fl,r.ElementRef],null,null),(e()(),r["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,0==t.parent.context.index?"colFirst":"colRest")},function(e,t){e(t,3,0,t.parent.context.$implicit)})}function Uh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,4,"mat-chip",[["class","mat-chip"],["role","option"]],[[1,"tabindex",0],[2,"mat-chip-selected",null],[1,"disabled",0],[1,"aria-disabled",0],[1,"aria-selected",0]],[[null,"longpress"],[null,"keydown"],[null,"touchend"],[null,"click"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,1).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,1)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,1)._handleTouchend()&&i),"click"===t&&(i=!1!==r["\u0275nov"](e,3)._handleClick(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,3)._handleKeydown(n)&&i),"focus"===t&&(i=0!=(r["\u0275nov"](e,3)._hasFocus=!0)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,3)._blur()&&i),i},null,null)),r["\u0275did"](1,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),r["\u0275ppd"](2,1),r["\u0275did"](3,147456,null,0,ia,[r.ElementRef],null,null),(e()(),r["\u0275ted"](4,null,["",""])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0,r["\u0275unv"](t,1,0,e(t,2,0,r["\u0275nov"](t.parent.parent.parent.parent,0),t.parent.parent.context.$implicit[t.parent.parent.parent.context.$implicit]["xml:lang"])))},function(e,t){e(t,0,0,r["\u0275nov"](t,3).disabled?null:-1,r["\u0275nov"](t,3).selected,r["\u0275nov"](t,3).disabled||null,r["\u0275nov"](t,3).disabled.toString(),r["\u0275nov"](t,3).ariaSelected),e(t,4,0,t.parent.parent.context.$implicit[t.parent.parent.parent.context.$implicit]["xml:lang"])})}function zh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"mat-chip",[["class","mat-chip"],["role","option"]],[[1,"tabindex",0],[2,"mat-chip-selected",null],[1,"disabled",0],[1,"aria-disabled",0],[1,"aria-selected",0]],[[null,"click"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,1)._handleClick(n)&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,1)._handleKeydown(n)&&i),"focus"===t&&(i=0!=(r["\u0275nov"](e,1)._hasFocus=!0)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,1)._blur()&&i),i},null,null)),r["\u0275did"](1,147456,null,0,ia,[r.ElementRef],null,null),(e()(),r["\u0275ted"](2,null,["",""])),r["\u0275pid"](0,Xf,[])],null,function(e,t){e(t,0,0,r["\u0275nov"](t,1).disabled?null:-1,r["\u0275nov"](t,1).selected,r["\u0275nov"](t,1).disabled||null,r["\u0275nov"](t,1).disabled.toString(),r["\u0275nov"](t,1).ariaSelected),e(t,2,0,r["\u0275unv"](t,2,0,r["\u0275nov"](t,3).transform(t.parent.parent.context.$implicit[t.parent.parent.parent.context.$implicit].datatype)))})}function qh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,7,"span",[["style","padding-left: 2px;"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Uh)),r["\u0275did"](3,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,zh)),r["\u0275did"](6,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,t.parent.context.$implicit[t.parent.parent.context.$implicit]["xml:lang"]),e(t,6,0,t.parent.context.$implicit[t.parent.parent.context.$implicit].datatype&&n.showDatatypes)},null)}function Qh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"mat-icon",[["class","cp mat-icon"],["ngxClipboard",""],["role","img"]],null,[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,1).onClick(n.target)&&i),"click"===t&&(i=!1!==o.showSnackbar("Copied URI to clipboard",2e3)&&i),i},ff,cf)),r["\u0275did"](1,212992,null,0,uh,[sh],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r["\u0275did"](2,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["\n content_copy\n "]))],function(e,t){e(t,1,0,"",t.parent.context.$implicit[t.parent.parent.context.$implicit].value),e(t,2,0)},null)}function Hh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,18,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r["\u0275did"](1,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngClass:[0,"ngClass"]},null),r["\u0275did"](2,16384,null,0,Wl,[Fl,r.ElementRef],null,null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](5,0,null,null,3,"span",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clickElement(e.context.$implicit[e.parent.context.$implicit])&&r),r},null,null)),r["\u0275did"](6,278528,null,0,i.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),r["\u0275ted"](7,null,["\n ","\n "])),r["\u0275pid"](0,ch,[Bu]),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,qh)),r["\u0275did"](12,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Qh)),r["\u0275did"](16,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n \n "]))],function(e,t){e(t,1,0,0==t.parent.context.index?"colFirst":"colRest"),e(t,6,0,t.context.$implicit[t.parent.context.$implicit]&&"uri"==t.context.$implicit[t.parent.context.$implicit].type?"link":"text"),e(t,12,0,"literal"==t.context.$implicit[t.parent.context.$implicit].type),e(t,16,0,"uri"==t.context.$implicit[t.parent.context.$implicit].type)},function(e,t){e(t,7,0,r["\u0275unv"](t,7,0,r["\u0275nov"](t,8).transform(t.context.$implicit[t.parent.context.$implicit])))})}function Gh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,0,null,null,13,null,null,null,null,null,null,null)),r["\u0275did"](4,16384,null,2,Hl,[],{name:[0,"name"]},null),r["\u0275qud"](335544320,5,{cell:0}),r["\u0275qud"](335544320,6,{headerCell:0}),r["\u0275prd"](2048,[[2,4]],Fl,null,[Hl]),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](0,null,null,2,null,Vh)),r["\u0275did"](10,16384,null,0,Ql,[r.TemplateRef],null,null),r["\u0275prd"](2048,[[6,4]],Nl,null,[Ql]),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](0,null,null,2,null,Hh)),r["\u0275did"](14,16384,null,0,ql,[r.TemplateRef],null,null),r["\u0275prd"](2048,[[5,4]],Dl,null,[ql]),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,4,0,t.context.$implicit)},null)}function Wh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"mat-header-row",[["class","mat-header-row"],["role","row"]],null,null,null,ph,dh)),r["\u0275did"](1,49152,null,0,Zl,[],null,null)],null,null)}function Kh(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"mat-row",[["class","mat-row"],["role","row"]],null,null,null,mh,gh)),r["\u0275did"](1,49152,null,0,Yl,[],null,null)],null,null)}function Xh(e){return r["\u0275vid"](0,[r["\u0275pid"](0,yh,[]),r["\u0275qud"](402653184,1,{paginator:0}),(e()(),r["\u0275eld"](2,0,null,null,51,"div",[["class","table-container mat-elevation-z8"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](4,0,null,null,24,"div",[["class","table-header"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](6,0,null,null,4,"span",[["fxFlex","40%"]],null,null,null,null,null)),r["\u0275did"](7,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](8,null,[""," results"])),(e()(),r["\u0275and"](16777216,null,null,1,null,Bh)),r["\u0275did"](10,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](12,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](13,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](15,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","download CSV"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,17).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,17)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,17)._handleTouchend()&&i),"click"===t&&(i=!1!==o.showExportCsv()&&i),i},ff,cf)),r["\u0275did"](16,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](17,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["file_download"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](20,0,null,null,7,"span",[],null,null,null,null,null)),(e()(),r["\u0275eld"](21,0,null,null,6,"mat-checkbox",[["class","mat-checkbox"]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[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"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==(e.component.showDatatypes=n)&&r),r},_h,bh)),r["\u0275did"](22,4374528,null,0,na,[r.ElementRef,r.ChangeDetectorRef,fi,[8,null],[2,Jo]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[na]),r["\u0275did"](24,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](26,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),(e()(),r["\u0275ted"](-1,0,["Show datatypes"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](30,0,null,null,17,"mat-table",[["class","centered mat-table"]],null,null,null,hh,fh)),r["\u0275did"](31,2342912,[["table",4]],3,zl,[r.IterableDiffers,r.ChangeDetectorRef,r.ElementRef,[8,null]],{dataSource:[0,"dataSource"]},null),r["\u0275qud"](603979776,2,{_contentColumnDefs:1}),r["\u0275qud"](603979776,3,{_contentRowDefs:1}),r["\u0275qud"](335544320,4,{_headerRowDef:0}),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n \n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Gh)),r["\u0275did"](38,802816,null,0,i.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](0,null,null,2,null,Wh)),r["\u0275did"](41,540672,null,0,Kl,[r.TemplateRef,r.IterableDiffers],{columns:[0,"columns"]},null),r["\u0275prd"](2048,[[4,4]],Rl,null,[Kl]),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](0,null,null,2,null,Kh)),r["\u0275did"](45,540672,null,0,Xl,[r.TemplateRef,r.IterableDiffers],{columns:[0,"columns"]},null),r["\u0275prd"](2048,[[3,4]],Pl,null,[Xl]),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](49,0,null,null,3,"mat-paginator",[["class","mat-paginator"]],null,null,null,Nh,Oh)),r["\u0275did"](50,245760,[[1,4],["paginator",4]],0,dl,[fl,r.ChangeDetectorRef],{pageSize:[0,"pageSize"],pageSizeOptions:[1,"pageSizeOptions"]},null),r["\u0275pad"](51,3),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,"40%"),e(t,10,0,n.queryTime),e(t,13,0,"grow"),e(t,16,0),e(t,17,0,"download CSV"),e(t,24,0,n.showDatatypes),e(t,31,0,n.dataSource),e(t,38,0,n.displayedColumns),e(t,41,0,n.displayedColumns),e(t,45,0,n.displayedColumns),e(t,50,0,10,e(t,51,0,5,10,20))},function(e,t){e(t,8,0,t.component.resultLength),e(t,21,1,[r["\u0275nov"](t,22).id,r["\u0275nov"](t,22).indeterminate,r["\u0275nov"](t,22).checked,r["\u0275nov"](t,22).disabled,"before"==r["\u0275nov"](t,22).labelPosition,r["\u0275nov"](t,26).ngClassUntouched,r["\u0275nov"](t,26).ngClassTouched,r["\u0275nov"](t,26).ngClassPristine,r["\u0275nov"](t,26).ngClassDirty,r["\u0275nov"](t,26).ngClassValid,r["\u0275nov"](t,26).ngClassInvalid,r["\u0275nov"](t,26).ngClassPending])})}var Zh=r["\u0275crt"]({encapsulation:2,styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging,.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing;transition-duration:0s}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:solid 1px #000}}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-bar{background:#fff}}.mat-slide-toggle-input{bottom:0;left:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}.mat-slide-toggle-ripple{position:absolute;top:calc(50% - 23px);left:calc(50% - 23px);height:46px;width:46px;z-index:1;pointer-events:none}"],data:{}});function Yh(e){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{_inputElement:0}),r["\u0275qud"](402653184,2,{_ripple:0}),(e()(),r["\u0275eld"](2,0,[["label",1]],null,10,"label",[["class","mat-slide-toggle-label"]],null,null,null,null,null)),(e()(),r["\u0275eld"](3,0,null,null,6,"div",[["class","mat-slide-toggle-bar"]],[[2,"mat-slide-toggle-bar-no-side-margin",null]],null,null,null,null)),(e()(),r["\u0275eld"](4,0,[[1,0],["input",1]],null,0,"input",[["class","mat-slide-toggle-input cdk-visually-hidden"],["type","checkbox"]],[[8,"id",0],[8,"required",0],[8,"tabIndex",0],[8,"checked",0],[8,"disabled",0],[1,"name",0],[1,"aria-label",0],[1,"aria-labelledby",0]],[[null,"change"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"change"===t&&(r=!1!==i._onChangeEvent(n)&&r),"click"===t&&(r=!1!==i._onInputClick(n)&&r),r},null,null)),(e()(),r["\u0275eld"](5,0,null,null,4,"div",[["class","mat-slide-toggle-thumb-container"]],null,[[null,"slidestart"],[null,"slide"],[null,"slideend"]],function(e,t,n){var r=!0,i=e.component;return"slidestart"===t&&(r=!1!==i._onDragStart()&&r),"slide"===t&&(r=!1!==i._onDrag(n)&&r),"slideend"===t&&(r=!1!==i._onDragEnd()&&r),r},null,null)),(e()(),r["\u0275eld"](6,0,null,null,0,"div",[["class","mat-slide-toggle-thumb"]],null,null,null,null,null)),(e()(),r["\u0275eld"](7,0,null,null,2,"div",[["class","mat-slide-toggle-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),r["\u0275did"](8,212992,[[2,4]],0,wr,[r.ElementRef,r.NgZone,Jn,[2,_r]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),r["\u0275pod"](9,{enterDuration:0}),(e()(),r["\u0275eld"](10,0,[["labelContent",1]],null,2,"span",[["class","mat-slide-toggle-content"]],null,[[null,"cdkObserveContent"]],function(e,t,n){var r=!0;return"cdkObserveContent"===t&&(r=!1!==e.component._onLabelTextChange()&&r),r},null,null)),r["\u0275did"](11,1720320,null,0,Yo,[Zo,r.ElementRef,r.NgZone],null,{event:"cdkObserveContent"}),r["\u0275ncd"](null,0)],function(e,t){var n=t.component;e(t,8,0,!0,23,e(t,9,0,150),n.disableRipple||n.disabled,r["\u0275nov"](t,2))},function(e,t){var n=t.component;e(t,3,0,!r["\u0275nov"](t,10).textContent||!r["\u0275nov"](t,10).textContent.trim()),e(t,4,0,n.inputId,n.required,n.tabIndex,n.checked,n.disabled,n.name,n.ariaLabel,n.ariaLabelledby),e(t,7,0,r["\u0275nov"](t,8).unbounded)})}var $h=n("zK+N"),Jh=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ed(e){return r["\u0275vid"](0,[r["\u0275qud"](402653184,1,{host:0}),(e()(),r["\u0275eld"](1,0,[[1,0],["host",1]],null,0,"textarea",[],null,null,null,null,null))],null,null)}n("CQVp");var td=function(){function e(e){this._ds=e,this.reasoning=!1,this.updatedQuery=new r.EventEmitter,this.doQuery=new r.EventEmitter,this.setReasoning=new r.EventEmitter,this.cmConfig={lineNumbers:!0,firstLineNumber:1,lineWrapping:!0,matchBrackets:!0,mode:"text/x-go"}}return e.prototype.onChange=function(e){this.updatedQuery.emit(e)},e.prototype.fireQuery=function(){this.doQuery.emit()},e.prototype.resetQuery=function(){var e=this;this._ds.getSingle(this.tabIndex).subscribe(function(t){e.query=t.query})},e}(),nd=r["\u0275crt"]({encapsulation:0,styles:[[".full-width[_ngcontent-%COMP%]{width:100%}"]],data:{}});function rd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,4,"mat-slide-toggle",[["class","mat-slide-toggle"],["matTooltip","NB! reasoning is performed on a slow Heroku server and the query time is therefore considerably reduced."]],[[8,"id",0],[2,"mat-checked",null],[2,"mat-disabled",null],[2,"mat-slide-toggle-label-before",null]],[[null,"change"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"change"===t&&(i=!1!==o.setReasoning.emit(n.checked)&&i),i},Yh,Zh)),r["\u0275prd"](5120,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[bl]),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),r["\u0275did"](3,1228800,null,0,bl,[r.ElementRef,Jn,fi,r.ChangeDetectorRef,[8,null]],null,{change:"change"}),(e()(),r["\u0275ted"](-1,0,["Reasoning"])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,2,0,"NB! reasoning is performed on a slow Heroku server and the query time is therefore considerably reduced.")},function(e,t){e(t,0,0,r["\u0275nov"](t,3).id,r["\u0275nov"](t,3).checked,r["\u0275nov"](t,3).disabled,"before"==r["\u0275nov"](t,3).labelPosition)})}function id(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"mat-slide-toggle",[["class","mat-slide-toggle"]],[[8,"id",0],[2,"mat-checked",null],[2,"mat-disabled",null],[2,"mat-slide-toggle-label-before",null]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.setReasoning.emit(n.checked)&&r),r},Yh,Zh)),r["\u0275prd"](5120,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[bl]),r["\u0275did"](2,1228800,null,0,bl,[r.ElementRef,Jn,fi,r.ChangeDetectorRef,[8,null]],null,{change:"change"}),(e()(),r["\u0275ted"](-1,0,["Reasoning"]))],null,function(e,t){e(t,0,0,r["\u0275nov"](t,2).id,r["\u0275nov"](t,2).checked,r["\u0275nov"](t,2).disabled,"before"==r["\u0275nov"](t,2).labelPosition)})}function od(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,59,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,Na,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,16777216,null,null,55,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"mat-expansion-panel-spacing",null]],null,null,Tf,Ef)),r["\u0275did"](4,1753088,null,1,Ma,[[2,Na],r.ChangeDetectorRef,Go,r.ViewContainerRef],null,null),r["\u0275qud"](335544320,1,{_lazyContent:0}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](7,0,null,0,12,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,8)._toggle()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,8)._keydown(n)&&i),i},If,Of)),r["\u0275did"](8,180224,null,0,La,[Ma,r.ElementRef,fi,r.ChangeDetectorRef],null,null),r["\u0275pod"](9,{collapsedHeight:0,expandedHeight:1}),r["\u0275pod"](10,{value:0,params:1}),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](12,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),r["\u0275did"](13,16384,null,0,Va,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](16,0,null,1,2,"mat-panel-description",[["class","mat-expansion-panel-header-description"]],null,null,null,null,null)),r["\u0275did"](17,16384,null,0,Ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query the data\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n \n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275eld"](22,0,null,1,6,"codemirror",[],[[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"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.query=n)&&r),"change"===t&&(r=!1!==i.onChange(i.query)&&r),r},ed,Jh)),r["\u0275did"](23,4374528,null,0,$h.CodemirrorComponent,[],{config:[0,"config"]},{change:"change"}),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[$h.CodemirrorComponent]),r["\u0275did"](25,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](27,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275eld"](30,0,null,1,27,"div",[["class","full-width"],["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](31,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](33,0,null,null,6,"button",[["color","primary"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.fireQuery()&&r),r},uf,lf)),r["\u0275did"](34,180224,null,0,zo,[r.ElementRef,Jn,fi],{color:[0,"color"]},null),(e()(),r["\u0275ted"](-1,0,["\n Query "])),(e()(),r["\u0275eld"](36,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](37,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["play_circle_outline"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](41,0,null,null,6,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetQuery()&&r),r},uf,lf)),r["\u0275did"](42,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n Reset "])),(e()(),r["\u0275eld"](44,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](45,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["cached"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](49,0,null,null,1,"div",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](50,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,rd)),r["\u0275did"](53,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,id)),r["\u0275did"](56,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,23,0,n.cmConfig),e(t,25,0,n.query),e(t,31,0,"row"),e(t,34,0,"primary"),e(t,37,0),e(t,45,0),e(t,50,0,"grow"),e(t,53,0,n.localStore),e(t,56,0,!n.localStore)},function(e,t){e(t,3,0,r["\u0275nov"](t,4).expanded,r["\u0275nov"](t,4)._hasSpacing()),e(t,7,0,r["\u0275nov"](t,8).panel._headerId,r["\u0275nov"](t,8).panel.disabled?-1:0,r["\u0275nov"](t,8)._getPanelId(),r["\u0275nov"](t,8)._isExpanded(),r["\u0275nov"](t,8).panel.disabled,r["\u0275nov"](t,8)._isExpanded(),e(t,10,0,r["\u0275nov"](t,8)._getExpandedState(),e(t,9,0,r["\u0275nov"](t,8).collapsedHeight,r["\u0275nov"](t,8).expandedHeight))),e(t,22,0,r["\u0275nov"](t,27).ngClassUntouched,r["\u0275nov"](t,27).ngClassTouched,r["\u0275nov"](t,27).ngClassPristine,r["\u0275nov"](t,27).ngClassDirty,r["\u0275nov"](t,27).ngClassValid,r["\u0275nov"](t,27).ngClassInvalid,r["\u0275nov"](t,27).ngClassPending),e(t,33,0,r["\u0275nov"](t,34).disabled||null),e(t,41,0,r["\u0275nov"](t,42).disabled||null)})}function ad(e){return r["\u0275vid"](0,[(e()(),r["\u0275and"](16777216,null,null,1,null,od)),r["\u0275did"](1,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,1,0,t.component.query)},null)}var sd=r["\u0275crt"]({encapsulation:2,styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],data:{}});function ld(e){return r["\u0275vid"](2,[(e()(),r["\u0275eld"](0,0,null,null,1,":svg:svg",[["focusable","false"],["preserveAspectRatio","xMidYMid meet"]],[[4,"width","px"],[4,"height","px"],[1,"viewBox",0]],null,null,null,null)),(e()(),r["\u0275eld"](1,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"animation-name",null],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n._elementSize,n._elementSize,n._viewBox),e(t,1,0,n._circleRadius,"mat-progress-spinner-stroke-rotate-"+n.diameter,n._strokeDashOffset,n._strokeCircumference,n._circleStrokeWidth)})}var ud=n("Xj44"),cd=r["\u0275crt"]({encapsulation:2,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider{left:auto;right:0}.mat-card .mat-divider.mat-divider-inset{position:static;margin:0}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-flat{box-shadow:none}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:599px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],data:{}});function fd(e){return r["\u0275vid"](2,[r["\u0275ncd"](null,0),r["\u0275ncd"](null,1)],null,null)}var hd=r["\u0275crt"]({encapsulation:0,styles:[[".full-width[_ngcontent-%COMP%]{width:100%}.description[_ngcontent-%COMP%]{font-size:12px}.mat-card[_ngcontent-%COMP%]{margin-bottom:10px}.iconbutton[_ngcontent-%COMP%]:hover{opacity:.5;cursor:pointer}.smallicon[_ngcontent-%COMP%]{font-size:18px;color:#aaa}.json-container[_ngcontent-%COMP%]{opacity:.9;position:absolute;width:80%;left:10%;top:10%}.icon-bar[_ngcontent-%COMP%]{position:absolute;right:5px;top:5px}.icon-bar[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.loading-spinner[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;left:50%;top:50%}"]],data:{}});function dd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"visualizer-toolbar",[["fxFlex","100%"]],null,null,null,bf,mf)),r["\u0275did"](1,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),r["\u0275did"](2,49152,null,0,gf,[pa,pe.c,pe.b],{title:[0,"title"],creator:[1,"creator"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"100%"),e(t,2,0,n.projectData.title,n.projectData.creator)},null)}function pd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","iconbutton mat-icon"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.toggleStore()&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n swap_horiz\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){var n=t.component;e(t,1,0),e(t,2,0,n.toggleTooltip)},null)}function gd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,1)._selectViaInteraction()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,1)._handleKeydown(n)&&i),i},xf,_f)),r["\u0275did"](1,8437760,[[8,4]],0,Ar,[r.ElementRef,r.ChangeDetectorRef,[2,Or],[2,Sr]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](2,0,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.index)},function(e,t){e(t,0,0,r["\u0275nov"](t,1)._getTabIndex(),r["\u0275nov"](t,1).selected,r["\u0275nov"](t,1).multiple,r["\u0275nov"](t,1).active,r["\u0275nov"](t,1).id,r["\u0275nov"](t,1).selected.toString(),r["\u0275nov"](t,1).disabled.toString(),r["\u0275nov"](t,1).disabled),e(t,2,0,t.context.$implicit)})}function md(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](2,0,null,null,3,"app-settings",[],null,null,null,Gf,Hf)),r["\u0275prd"](512,null,Lu,Lu,[Iu]),r["\u0275prd"](512,null,Uu,Uu,[Iu,ss]),r["\u0275did"](5,638976,null,0,Qf,[Lu,Uu,Bu,pa,Tl],{triples:[0,"triples"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,5,0,t.component.data.triples)},null)}function vd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","iconbutton smallicon mat-icon"],["matTooltip","edit description"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=0!=(o.editDescription=!o.editDescription)&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n edit\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"edit description")},null)}function yd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","iconbutton smallicon mat-icon"],["matTooltip","finish edit"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=!1!==o.saveDescription()&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n check_circle\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"finish edit")},null)}function bd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,16777216,null,null,3,"mat-icon",[["class","iconbutton smallicon mat-icon"],["matTooltip","cancel edit"],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"longpress"===t&&(i=!1!==r["\u0275nov"](e,2).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,2)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,2)._handleTouchend()&&i),"click"===t&&(i=0!=(o.editDescription=!o.editDescription)&&i),i},ff,cf)),r["\u0275did"](1,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](2,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n cancel\n "])),(e()(),r["\u0275and"](0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"cancel edit")},null)}function _d(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[["class","description"]],[[8,"innerHTML",1]],null,null,null,null)),r["\u0275ppd"](1,1)],null,function(e,t){var n=t.component;e(t,0,0,r["\u0275unv"](t,0,0,e(t,1,0,r["\u0275nov"](t.parent.parent,0),n.data.description)))})}function wd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,21,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](2,0,null,null,15,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](3,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,11,{_control:0}),r["\u0275qud"](335544320,12,{_placeholderChild:0}),r["\u0275qud"](335544320,13,{_labelChild:0}),r["\u0275qud"](603979776,14,{_errorChildren:1}),r["\u0275qud"](603979776,15,{_hintChildren:1}),r["\u0275qud"](603979776,16,{_prefixChildren:1}),r["\u0275qud"](603979776,17,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](12,0,null,1,4,"textarea",[["class","description mat-input-element mat-form-field-autofill-control mat-autosize"],["matAutosizeMaxRows","20"],["matAutosizeMinRows","2"],["matInput",""],["matTextareaAutosize",""],["placeholder","Edit description"],["rows","1"]],[[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"blur"===t&&(i=!1!==r["\u0275nov"](e,13)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,13)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,13)._onInput()&&i),"input"===t&&(i=!1!==(o.newDescription=n.target.value)&&i),i},null,null)),r["\u0275did"](13,933888,null,0,Oa,[r.ElementRef,Jn,[8,null],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"],value:[1,"value"]},null),r["\u0275did"](14,4603904,null,0,Ea,[r.ElementRef,Jn,r.NgZone],{minRows:[0,"minRows"],maxRows:[1,"maxRows"]},null),r["\u0275prd"](2048,[[11,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,null,[" "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](19,0,null,null,1,"a",[["href","https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet"],["style","font-size: 12px"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["Markdown cheatsheet"])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,"Edit description",t.component.data.description),e(t,14,0,"2","20")},function(e,t){e(t,2,1,[r["\u0275nov"](t,3)._control.errorState,r["\u0275nov"](t,3)._control.errorState,r["\u0275nov"](t,3)._canLabelFloat,r["\u0275nov"](t,3)._shouldLabelFloat(),r["\u0275nov"](t,3)._hideControlPlaceholder(),r["\u0275nov"](t,3)._control.disabled,r["\u0275nov"](t,3)._control.focused,r["\u0275nov"](t,3)._shouldForward("untouched"),r["\u0275nov"](t,3)._shouldForward("touched"),r["\u0275nov"](t,3)._shouldForward("pristine"),r["\u0275nov"](t,3)._shouldForward("dirty"),r["\u0275nov"](t,3)._shouldForward("valid"),r["\u0275nov"](t,3)._shouldForward("invalid"),r["\u0275nov"](t,3)._shouldForward("pending")]),e(t,12,0,r["\u0275nov"](t,13)._isServer,r["\u0275nov"](t,13).id,r["\u0275nov"](t,13).placeholder,r["\u0275nov"](t,13).disabled,r["\u0275nov"](t,13).required,r["\u0275nov"](t,13).readonly,r["\u0275nov"](t,13)._ariaDescribedby||null,r["\u0275nov"](t,13).errorState,r["\u0275nov"](t,13).required.toString())})}function xd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,29,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](2,0,null,null,18,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](4,0,null,null,2,"span",[["fxFlex","60 %"]],null,null,null,null,null)),r["\u0275did"](5,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["Description"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](8,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](9,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,vd)),r["\u0275did"](13,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,yd)),r["\u0275did"](16,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,bd)),r["\u0275did"](19,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,_d)),r["\u0275did"](24,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,wd)),r["\u0275did"](28,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,5,0,"60 %"),e(t,9,0,"grow"),e(t,13,0,!n.editDescription),e(t,16,0,n.editDescription),e(t,19,0,n.editDescription),e(t,24,0,!n.editDescription),e(t,28,0,n.editDescription)},null)}function kd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,65,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,Na,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,16777216,null,null,61,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"mat-expansion-panel-spacing",null]],null,null,Tf,Ef)),r["\u0275did"](4,1753088,null,1,Ma,[[2,Na],r.ChangeDetectorRef,Go,r.ViewContainerRef],null,null),r["\u0275qud"](335544320,18,{_lazyContent:0}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](7,0,null,0,12,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,8)._toggle()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,8)._keydown(n)&&i),i},If,Of)),r["\u0275did"](8,180224,null,0,La,[Ma,r.ElementRef,fi,r.ChangeDetectorRef],null,null),r["\u0275pod"](9,{collapsedHeight:0,expandedHeight:1}),r["\u0275pod"](10,{value:0,params:1}),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](12,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),r["\u0275did"](13,16384,null,0,Va,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Triples\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](16,0,null,1,2,"mat-panel-description",[["class","mat-expansion-panel-header-description"]],null,null,null,null,null)),r["\u0275did"](17,16384,null,0,Ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Turtle data to be queried\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n \n "])),(e()(),r["\u0275eld"](21,0,null,1,42,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](23,0,null,null,19,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](24,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,19,{_control:0}),r["\u0275qud"](335544320,20,{_placeholderChild:0}),r["\u0275qud"](335544320,21,{_labelChild:0}),r["\u0275qud"](603979776,22,{_errorChildren:1}),r["\u0275qud"](603979776,23,{_hintChildren:1}),r["\u0275qud"](603979776,24,{_prefixChildren:1}),r["\u0275qud"](603979776,25,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](33,0,null,1,8,"textarea",[["class","mat-input-element mat-form-field-autofill-control"],["cols","105"],["matInput",""],["onkeydown","if(event.keyCode===9){var v=this.value,s=this.selectionStart,e=this.selectionEnd;this.value=v.substring(0, s)+'\\t'+v.substring(e);this.selectionStart=this.selectionEnd=s+1;return false;}"],["placeholder","Triple data"],["rows","15"]],[[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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,34)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,34).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,34)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,34)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,39)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,39)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,39)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.data.triples=n)&&i),i},null,null)),r["\u0275did"](34,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](36,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](38,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](39,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"]},null),r["\u0275prd"](2048,[[19,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,null,[" "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](44,0,null,null,18,"div",[["class","full-width"],["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](45,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](47,0,null,null,6,"button",[["color","primary"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.doQuery()&&r),r},uf,lf)),r["\u0275did"](48,180224,null,0,zo,[r.ElementRef,Jn,fi],{color:[0,"color"]},null),(e()(),r["\u0275ted"](-1,0,["\n Update "])),(e()(),r["\u0275eld"](50,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](51,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["play_circle_outline"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](55,0,null,null,6,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetTriples()&&r),r},uf,lf)),r["\u0275did"](56,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["\n Reset "])),(e()(),r["\u0275eld"](58,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],null,null,null,ff,cf)),r["\u0275did"](59,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),(e()(),r["\u0275ted"](-1,0,["cached"])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,36,0,t.component.data.triples),e(t,39,0,"Triple data"),e(t,45,0,"row"),e(t,48,0,"primary"),e(t,51,0),e(t,59,0)},function(e,t){e(t,3,0,r["\u0275nov"](t,4).expanded,r["\u0275nov"](t,4)._hasSpacing()),e(t,7,0,r["\u0275nov"](t,8).panel._headerId,r["\u0275nov"](t,8).panel.disabled?-1:0,r["\u0275nov"](t,8)._getPanelId(),r["\u0275nov"](t,8)._isExpanded(),r["\u0275nov"](t,8).panel.disabled,r["\u0275nov"](t,8)._isExpanded(),e(t,10,0,r["\u0275nov"](t,8)._getExpandedState(),e(t,9,0,r["\u0275nov"](t,8).collapsedHeight,r["\u0275nov"](t,8).expandedHeight))),e(t,23,1,[r["\u0275nov"](t,24)._control.errorState,r["\u0275nov"](t,24)._control.errorState,r["\u0275nov"](t,24)._canLabelFloat,r["\u0275nov"](t,24)._shouldLabelFloat(),r["\u0275nov"](t,24)._hideControlPlaceholder(),r["\u0275nov"](t,24)._control.disabled,r["\u0275nov"](t,24)._control.focused,r["\u0275nov"](t,24)._shouldForward("untouched"),r["\u0275nov"](t,24)._shouldForward("touched"),r["\u0275nov"](t,24)._shouldForward("pristine"),r["\u0275nov"](t,24)._shouldForward("dirty"),r["\u0275nov"](t,24)._shouldForward("valid"),r["\u0275nov"](t,24)._shouldForward("invalid"),r["\u0275nov"](t,24)._shouldForward("pending")]),e(t,33,1,[r["\u0275nov"](t,38).ngClassUntouched,r["\u0275nov"](t,38).ngClassTouched,r["\u0275nov"](t,38).ngClassPristine,r["\u0275nov"](t,38).ngClassDirty,r["\u0275nov"](t,38).ngClassValid,r["\u0275nov"](t,38).ngClassInvalid,r["\u0275nov"](t,38).ngClassPending,r["\u0275nov"](t,39)._isServer,r["\u0275nov"](t,39).id,r["\u0275nov"](t,39).placeholder,r["\u0275nov"](t,39).disabled,r["\u0275nov"](t,39).required,r["\u0275nov"](t,39).readonly,r["\u0275nov"](t,39)._ariaDescribedby||null,r["\u0275nov"](t,39).errorState,r["\u0275nov"](t,39).required.toString()]),e(t,47,0,r["\u0275nov"](t,48).disabled||null),e(t,55,0,r["\u0275nov"](t,56).disabled||null)})}function Cd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"app-sparql-force",[["class","full-width"]],null,[[null,"clickedURI"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r["\u0275nov"](e,1).onResize()&&i),"clickedURI"===t&&(i=!1!==o.graphClick(n)&&i),i},rh,Yf)),r["\u0275did"](1,638976,null,0,Zf,[Xf],{data:[0,"data"],height:[1,"height"]},{clickedURI:"clickedURI"})],function(e,t){e(t,1,0,t.component.queryResult,500)},null)}function Ed(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["No result to show"]))],null,null)}function Sd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,28,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,Na,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,16777216,null,null,24,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"mat-expansion-panel-spacing",null]],null,null,Tf,Ef)),r["\u0275did"](4,1753088,null,1,Ma,[[2,Na],r.ChangeDetectorRef,Go,r.ViewContainerRef],{expanded:[0,"expanded"]},null),r["\u0275qud"](335544320,26,{_lazyContent:0}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](7,0,null,0,12,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,8)._toggle()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,8)._keydown(n)&&i),i},If,Of)),r["\u0275did"](8,180224,null,0,La,[Ma,r.ElementRef,fi,r.ChangeDetectorRef],null,null),r["\u0275pod"](9,{collapsedHeight:0,expandedHeight:1}),r["\u0275pod"](10,{value:0,params:1}),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](12,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),r["\u0275did"](13,16384,null,0,Va,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](16,0,null,1,2,"mat-panel-description",[["class","mat-expansion-panel-header-description"]],null,null,null,null,null)),r["\u0275did"](17,16384,null,0,Ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query result\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n \n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275and"](16777216,null,1,1,null,Cd)),r["\u0275did"](23,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275and"](16777216,null,1,1,null,Ed)),r["\u0275did"](26,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,n.resultFieldExpanded),e(t,23,0,n.queryResult),e(t,26,0,!n.queryResult)},function(e,t){e(t,3,0,r["\u0275nov"](t,4).expanded,r["\u0275nov"](t,4)._hasSpacing()),e(t,7,0,r["\u0275nov"](t,8).panel._headerId,r["\u0275nov"](t,8).panel.disabled?-1:0,r["\u0275nov"](t,8)._getPanelId(),r["\u0275nov"](t,8)._isExpanded(),r["\u0275nov"](t,8).panel.disabled,r["\u0275nov"](t,8)._isExpanded(),e(t,10,0,r["\u0275nov"](t,8)._getExpandedState(),e(t,9,0,r["\u0275nov"](t,8).collapsedHeight,r["\u0275nov"](t,8).expandedHeight)))})}function Td(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["No result to show"]))],null,null)}function Od(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,29,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),r["\u0275did"](1,16384,null,0,Na,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,16777216,null,null,25,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"mat-expansion-panel-spacing",null]],null,null,Tf,Ef)),r["\u0275did"](4,1753088,null,1,Ma,[[2,Na],r.ChangeDetectorRef,Go,r.ViewContainerRef],{expanded:[0,"expanded"]},null),r["\u0275qud"](335544320,27,{_lazyContent:0}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](7,0,null,0,12,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,8)._toggle()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,8)._keydown(n)&&i),i},If,Of)),r["\u0275did"](8,180224,null,0,La,[Ma,r.ElementRef,fi,r.ChangeDetectorRef],null,null),r["\u0275pod"](9,{collapsedHeight:0,expandedHeight:1}),r["\u0275pod"](10,{value:0,params:1}),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](12,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),r["\u0275did"](13,16384,null,0,Va,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275eld"](16,0,null,1,2,"mat-panel-description",[["class","mat-expansion-panel-header-description"]],null,null,null,null,null)),r["\u0275did"](17,16384,null,0,Ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n Query result\n "])),(e()(),r["\u0275ted"](-1,2,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n \n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](22,0,null,1,2,"sparql-table",[],null,[[null,"clickedURI"]],function(e,t,n){var r=!0;return"clickedURI"===t&&(r=!1!==e.component.tableClick(n)&&r),r},Xh,Lh)),r["\u0275did"](23,4833280,null,0,Mh,[Bu,Tl,pa],{queryResult:[0,"queryResult"],queryTime:[1,"queryTime"]},{clickedURI:"clickedURI"}),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275and"](16777216,null,1,1,null,Td)),r["\u0275did"](27,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,n.resultFieldExpanded),e(t,23,0,n.queryResult,n.queryTime),e(t,27,0,!n.queryResult)},function(e,t){e(t,3,0,r["\u0275nov"](t,4).expanded,r["\u0275nov"](t,4)._hasSpacing()),e(t,7,0,r["\u0275nov"](t,8).panel._headerId,r["\u0275nov"](t,8).panel.disabled?-1:0,r["\u0275nov"](t,8)._getPanelId(),r["\u0275nov"](t,8)._isExpanded(),r["\u0275nov"](t,8).panel.disabled,r["\u0275nov"](t,8)._isExpanded(),e(t,10,0,r["\u0275nov"](t,8)._getExpandedState(),e(t,9,0,r["\u0275nov"](t,8).collapsedHeight,r["\u0275nov"](t,8).expandedHeight)))})}function Ad(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,9,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Sd)),r["\u0275did"](4,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Od)),r["\u0275did"](8,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"construct"==n.queryType),e(t,8,0,"select"==n.queryType)},null)}function Id(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n \n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,kd)),r["\u0275did"](4,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](7,0,null,null,2,"query-field",[],null,[[null,"doQuery"],[null,"setReasoning"],[null,"updatedQuery"]],function(e,t,n){var r=!0,i=e.component;return"doQuery"===t&&(r=!1!==i.doQuery()&&r),"setReasoning"===t&&(r=!1!==(i.reasoning=n)&&r),"updatedQuery"===t&&(r=!1!==(i.data.query=n)&&r),r},ad,nd)),r["\u0275did"](8,49152,null,0,td,[Bu],{query:[0,"query"],tabIndex:[1,"tabIndex"],localStore:[2,"localStore"]},{updatedQuery:"updatedQuery",doQuery:"doQuery",setReasoning:"setReasoning"}),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Ad)),r["\u0275did"](13,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,n.localStore&&n.data.triples),e(t,8,0,n.data.query,n.tabIndex,n.localStore),e(t,13,0,n.queryResult)},null)}function Rd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.loadingMessage)})}function Pd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,7,"div",[["class","loading-spinner"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](2,0,null,null,1,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[4,"width","px"],[4,"height","px"]],null,null,ld,sd)),r["\u0275did"](3,573440,null,0,ml,[r.ElementRef,Jn,[2,i.DOCUMENT]],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Rd)),r["\u0275did"](6,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,6,0,t.component.loadingMessage)},function(e,t){e(t,2,0,r["\u0275nov"](t,3)._elementSize,r["\u0275nov"](t,3)._elementSize)})}function jd(e){return r["\u0275vid"](0,[r["\u0275pid"](0,ud.MarkdownToHtmlPipe,[]),(e()(),r["\u0275eld"](1,0,null,null,4,"div",[["class","container-toolbar"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,dd)),r["\u0275did"](4,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n"])),(e()(),r["\u0275ted"](-1,null,["\n\n"])),(e()(),r["\u0275eld"](7,0,null,null,88,"div",[["class","container-content"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](9,0,null,null,85,"div",[["fxFlex",""],["fxLayout","row"],["fxLayout.sm","column"],["fxLayout.xs","column"],["fxLayoutAlign","space-around"]],null,null,null,null,null)),r["\u0275did"](10,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"],layoutXs:[1,"layoutXs"],layoutSm:[2,"layoutSm"]},null),r["\u0275did"](11,737280,null,0,Lc,[Rc,r.ElementRef,[2,Mc],Nc],{align:[0,"align"]},null),r["\u0275did"](12,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](14,0,null,null,68,"div",[["fxFlex","100%"],["fxFlex.lg","40%"],["fxFlex.md","40%"],["fxFlex.xl","40%"]],null,null,null,null,null)),r["\u0275did"](15,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"],flexMd:[1,"flexMd"],flexLg:[2,"flexLg"],flexXl:[3,"flexXl"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](17,0,null,null,57,"mat-card",[["class","mat-elevation-z2 mat-card"]],null,null,null,fd,cd)),r["\u0275did"](18,49152,null,0,Ko,[],null,null),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275eld"](20,0,null,0,11,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](22,0,null,null,2,"span",[["fxFlex","60%"]],null,null,null,null,null)),r["\u0275did"](23,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["Select dataset"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](26,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](27,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,pd)),r["\u0275did"](30,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275eld"](34,0,null,0,22,"mat-form-field",[["class","full-width mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](35,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,1,{_control:0}),r["\u0275qud"](335544320,2,{_placeholderChild:0}),r["\u0275qud"](335544320,3,{_labelChild:0}),r["\u0275qud"](603979776,4,{_errorChildren:1}),r["\u0275qud"](603979776,5,{_hintChildren:1}),r["\u0275qud"](603979776,6,{_prefixChildren:1}),r["\u0275qud"](603979776,7,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](44,0,null,1,11,"mat-select",[["class","mat-select"],["placeholder","Dataset"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null]],[[null,"change"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==r["\u0275nov"](e,46)._handleKeydown(n)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,46)._onFocus()&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,46)._onBlur()&&i),"change"===t&&(i=!1!==o.changeTab(n.value)&&i),i},Th,wh)),r["\u0275prd"](6144,null,Or,null,[Qs]),r["\u0275did"](46,2080768,null,3,Qs,[Ai,r.ChangeDetectorRef,r.NgZone,hr,r.ElementRef,[2,Qn],[2,wo.NgForm],[2,wo.FormGroupDirective],[2,Do],[8,null],[8,null],zs],{placeholder:[0,"placeholder"],value:[1,"value"]},{change:"change"}),r["\u0275qud"](603979776,8,{options:1}),r["\u0275qud"](603979776,9,{optionGroups:1}),r["\u0275qud"](335544320,10,{customTrigger:0}),r["\u0275prd"](2048,[[1,4]],Ro,null,[Qs]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275and"](16777216,null,1,1,null,gd)),r["\u0275did"](54,802816,null,0,i.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275and"](16777216,null,0,1,null,md)),r["\u0275did"](60,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275eld"](62,0,null,0,11,"div",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](64,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](65,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](67,16777216,null,null,5,"mat-icon",[["class","iconbutton smallicon mat-icon"],["matTooltip","download JSON"],["ngxClipboard",""],["role","img"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r["\u0275nov"](e,68).onClick(n.target)&&i),"longpress"===t&&(i=!1!==r["\u0275nov"](e,71).show()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,71)._handleKeydown(n)&&i),"touchend"===t&&(i=!1!==r["\u0275nov"](e,71)._handleTouchend()&&i),"click"===t&&(i=!1!==o.showSnackbar("Copied JSON to clipboard",2e3)&&i),i},ff,cf)),r["\u0275did"](68,212992,null,0,uh,[sh],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r["\u0275pid"](0,i.JsonPipe,[]),r["\u0275did"](70,638976,null,0,Ps,[r.ElementRef,Os,[8,null]],null,null),r["\u0275did"](71,147456,null,0,ll,[so,r.ElementRef,Ti,r.ViewContainerRef,r.NgZone,Jn,ri,fi,ol,[2,Qn],[2,sl]],{message:[0,"message"]},null),(e()(),r["\u0275ted"](-1,0,["\n file_download\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](76,0,null,null,5,"mat-card",[["class","mat-elevation-z2 mat-card"]],null,null,null,fd,cd)),r["\u0275did"](77,49152,null,0,Ko,[],null,null),(e()(),r["\u0275ted"](-1,0,["\n \n "])),(e()(),r["\u0275and"](16777216,null,0,1,null,xd)),r["\u0275did"](80,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,0,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](85,0,null,null,5,"div",[["fxFlex","100%"],["fxFlex.lg","55%"],["fxFlex.md","55%"],["fxFlex.xl","55%"]],null,null,null,null,null)),r["\u0275did"](86,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"],flexMd:[1,"flexMd"],flexLg:[2,"flexLg"],flexXl:[3,"flexXl"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Id)),r["\u0275did"](89,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Pd)),r["\u0275did"](93,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.projectData),e(t,10,0,"row","column","column"),e(t,11,0,"space-around"),e(t,12,0,""),e(t,15,0,"100%","40%","40%","40%"),e(t,23,0,"60%"),e(t,27,0,"grow"),e(t,30,0,n.triplestoreOption),e(t,46,0,"Dataset",n.tabIndex),e(t,54,0,n.tabTitles),e(t,60,0,!n.localStore&&n.data),e(t,65,0,"grow"),e(t,68,0,"",r["\u0275unv"](t,68,1,r["\u0275nov"](t,69).transform(n.data))),e(t,70,0),e(t,71,0,"download JSON"),e(t,80,0,n.data),e(t,86,0,"100%","55%","55%","55%"),e(t,89,0,n.data),e(t,93,0,n.loading)},function(e,t){e(t,34,1,[r["\u0275nov"](t,35)._control.errorState,r["\u0275nov"](t,35)._control.errorState,r["\u0275nov"](t,35)._canLabelFloat,r["\u0275nov"](t,35)._shouldLabelFloat(),r["\u0275nov"](t,35)._hideControlPlaceholder(),r["\u0275nov"](t,35)._control.disabled,r["\u0275nov"](t,35)._control.focused,r["\u0275nov"](t,35)._shouldForward("untouched"),r["\u0275nov"](t,35)._shouldForward("touched"),r["\u0275nov"](t,35)._shouldForward("pristine"),r["\u0275nov"](t,35)._shouldForward("dirty"),r["\u0275nov"](t,35)._shouldForward("valid"),r["\u0275nov"](t,35)._shouldForward("invalid"),r["\u0275nov"](t,35)._shouldForward("pending")]),e(t,44,1,[r["\u0275nov"](t,46).id,r["\u0275nov"](t,46).tabIndex,r["\u0275nov"](t,46)._ariaLabel,r["\u0275nov"](t,46).ariaLabelledby,r["\u0275nov"](t,46).required.toString(),r["\u0275nov"](t,46).disabled.toString(),r["\u0275nov"](t,46).errorState,r["\u0275nov"](t,46).panelOpen?r["\u0275nov"](t,46)._optionIds:null,r["\u0275nov"](t,46).multiple,r["\u0275nov"](t,46)._ariaDescribedby||null,r["\u0275nov"](t,46)._getAriaActiveDescendant(),r["\u0275nov"](t,46).disabled,r["\u0275nov"](t,46).errorState,r["\u0275nov"](t,46).required])})}var Dd=r["\u0275ccf"]("app-root",zu,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"app-root",[],null,null,null,jd,hd)),r["\u0275prd"](512,null,au,au,[ss]),r["\u0275prd"](512,null,Uu,Uu,[Iu,ss]),r["\u0275did"](3,114688,null,0,zu,[au,Bu,Uu,Dt,Tl,pe.i],null,null)],function(e,t){e(t,3,0)},null)},{},{},[]),Nd=r["\u0275crt"]({encapsulation:0,styles:["h4[_ngcontent-%COMP%] {\n font-family: Roboto;\n }\n p[_ngcontent-%COMP%] {\n font-family: Roboto;\n font-size: 12px;\n }"],data:{}});function Fd(e){return r["\u0275vid"](0,[r["\u0275pid"](0,ud.MarkdownToHtmlPipe,[]),(e()(),r["\u0275eld"](1,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r["\u0275ted"](2,null,["",""])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](4,0,null,null,1,"p",[],[[8,"innerHTML",1]],null,null,null,null)),r["\u0275ppd"](5,1)],null,function(e,t){var n=t.component;e(t,2,0,n.data.title),e(t,4,0,r["\u0275unv"](t,4,0,e(t,5,0,r["\u0275nov"](t,0),n.data.message)))})}var Md=r["\u0275ccf"]("msg-dialog",df,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"msg-dialog",[],null,null,null,Fd,Nd)),r["\u0275did"](1,49152,null,0,df,[ua,ca],null,null)],null,null)},{},{},[]),Ld=r["\u0275crt"]({encapsulation:0,styles:["iframe[_ngcontent-%COMP%]{\n width: 100%;\n height: 98%;\n }"],data:{}});function Bd(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](1,0,null,null,0,"iframe",[["allow","autoplay; encrypted-media"],["allowfullscreen",""],["frameborder","0"]],[[8,"src",5]],null,null,null,null))],null,function(e,t){e(t,1,0,t.component.data.url)})}var Vd=r["\u0275ccf"]("video-dialog",pf,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"video-dialog",[],null,null,null,Bd,Ld)),r["\u0275did"](1,49152,null,0,pf,[ua,ca],null,null)],null,null)},{},{},[]),Ud=r["\u0275crt"]({encapsulation:0,styles:["h4[_ngcontent-%COMP%] {\n font-family: Roboto;\n }\n p[_ngcontent-%COMP%] {\n font-family: Roboto;\n font-size: 12px;\n }\n .mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n }"],data:{}});function zd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.description)})}function qd(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](1,0,null,null,49,"div",[["class","container"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,0,null,null,2,"h4",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),r["\u0275did"](4,81920,null,0,va,[[2,ua],r.ElementRef,pa],null,null),(e()(),r["\u0275ted"](5,null,["",""])),(e()(),r["\u0275ted"](-1,null,["\n \n "])),(e()(),r["\u0275eld"](7,0,null,null,25,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),r["\u0275did"](8,16384,null,0,ya,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,zd)),r["\u0275did"](11,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](13,0,null,null,18,"mat-form-field",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](14,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,1,{_control:0}),r["\u0275qud"](335544320,2,{_placeholderChild:0}),r["\u0275qud"](335544320,3,{_labelChild:0}),r["\u0275qud"](603979776,4,{_errorChildren:1}),r["\u0275qud"](603979776,5,{_hintChildren:1}),r["\u0275qud"](603979776,6,{_prefixChildren:1}),r["\u0275qud"](603979776,7,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](23,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""]],[[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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,24)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,24).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,24)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,24)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,29)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,29)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,29)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.inputString=n)&&i),i},null,null)),r["\u0275did"](24,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](26,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](28,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](29,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"]},null),r["\u0275prd"](2048,[[1,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](34,0,null,null,15,"div",[["class","mat-dialog-actions"],["mat-dialog-actions",""]],null,null,null,null,null)),r["\u0275did"](35,16384,null,0,ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](37,0,null,null,11,"div",[["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](38,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](40,0,null,null,3,"button",[["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,42).dialogRef.close(r["\u0275nov"](e,42).dialogResult)&&i),i},uf,lf)),r["\u0275did"](41,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),r["\u0275did"](42,606208,null,0,ma,[[2,ua],r.ElementRef,pa],{dialogResult:[0,"dialogResult"]},null),(e()(),r["\u0275ted"](-1,0,["Confirm"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](45,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onNoClick()&&r),r},uf,lf)),r["\u0275did"](46,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["Cancel"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,n.description),e(t,26,0,n.inputString),e(t,29,0,n.inputText),e(t,38,0,"row"),e(t,42,0,n.inputString)},function(e,t){var n=t.component;e(t,3,0,r["\u0275nov"](t,4).id),e(t,5,0,n.title),e(t,13,1,[r["\u0275nov"](t,14)._control.errorState,r["\u0275nov"](t,14)._control.errorState,r["\u0275nov"](t,14)._canLabelFloat,r["\u0275nov"](t,14)._shouldLabelFloat(),r["\u0275nov"](t,14)._hideControlPlaceholder(),r["\u0275nov"](t,14)._control.disabled,r["\u0275nov"](t,14)._control.focused,r["\u0275nov"](t,14)._shouldForward("untouched"),r["\u0275nov"](t,14)._shouldForward("touched"),r["\u0275nov"](t,14)._shouldForward("pristine"),r["\u0275nov"](t,14)._shouldForward("dirty"),r["\u0275nov"](t,14)._shouldForward("valid"),r["\u0275nov"](t,14)._shouldForward("invalid"),r["\u0275nov"](t,14)._shouldForward("pending")]),e(t,23,1,[r["\u0275nov"](t,28).ngClassUntouched,r["\u0275nov"](t,28).ngClassTouched,r["\u0275nov"](t,28).ngClassPristine,r["\u0275nov"](t,28).ngClassDirty,r["\u0275nov"](t,28).ngClassValid,r["\u0275nov"](t,28).ngClassInvalid,r["\u0275nov"](t,28).ngClassPending,r["\u0275nov"](t,29)._isServer,r["\u0275nov"](t,29).id,r["\u0275nov"](t,29).placeholder,r["\u0275nov"](t,29).disabled,r["\u0275nov"](t,29).required,r["\u0275nov"](t,29).readonly,r["\u0275nov"](t,29)._ariaDescribedby||null,r["\u0275nov"](t,29).errorState,r["\u0275nov"](t,29).required.toString()]),e(t,40,0,r["\u0275nov"](t,41).disabled||null,r["\u0275nov"](t,42).ariaLabel),e(t,45,0,r["\u0275nov"](t,46).disabled||null)})}var Qd=r["\u0275ccf"]("input-dialog",zf,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"input-dialog",[],null,null,null,qd,Ud)),r["\u0275did"](1,114688,null,0,zf,[ua,ca],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Hd=r["\u0275crt"]({encapsulation:0,styles:["h4[_ngcontent-%COMP%] {\n font-family: Roboto;\n }\n p[_ngcontent-%COMP%] {\n font-family: Roboto;\n font-size: 12px;\n }\n .mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n }"],data:{}});function Gd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.description)})}function Wd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,1)._selectViaInteraction()&&i),"keydown"===t&&(i=!1!==r["\u0275nov"](e,1)._handleKeydown(n)&&i),i},xf,_f)),r["\u0275did"](1,8437760,[[8,4]],0,Ar,[r.ElementRef,r.ChangeDetectorRef,[2,Or],[2,Sr]],{value:[0,"value"]},null),(e()(),r["\u0275ted"](2,0,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit)},function(e,t){e(t,0,0,r["\u0275nov"](t,1)._getTabIndex(),r["\u0275nov"](t,1).selected,r["\u0275nov"](t,1).multiple,r["\u0275nov"](t,1).active,r["\u0275nov"](t,1).id,r["\u0275nov"](t,1).selected.toString(),r["\u0275nov"](t,1).disabled.toString(),r["\u0275nov"](t,1).disabled),e(t,2,0,t.context.$implicit)})}function Kd(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](1,0,null,null,52,"div",[["class","container"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](3,0,null,null,2,"h4",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),r["\u0275did"](4,81920,null,0,va,[[2,ua],r.ElementRef,pa],null,null),(e()(),r["\u0275ted"](5,null,["",""])),(e()(),r["\u0275ted"](-1,null,["\n \n "])),(e()(),r["\u0275eld"](7,0,null,null,28,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),r["\u0275did"](8,16384,null,0,ya,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Gd)),r["\u0275did"](11,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](13,0,null,null,21,"mat-form-field",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](14,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,1,{_control:0}),r["\u0275qud"](335544320,2,{_placeholderChild:0}),r["\u0275qud"](335544320,3,{_labelChild:0}),r["\u0275qud"](603979776,4,{_errorChildren:1}),r["\u0275qud"](603979776,5,{_hintChildren:1}),r["\u0275qud"](603979776,6,{_prefixChildren:1}),r["\u0275qud"](603979776,7,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](23,0,null,1,10,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null]],[[null,"valueChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==r["\u0275nov"](e,25)._handleKeydown(n)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,25)._onFocus()&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,25)._onBlur()&&i),"valueChange"===t&&(i=!1!==(o.selected=n)&&i),i},Th,wh)),r["\u0275prd"](6144,null,Or,null,[Qs]),r["\u0275did"](25,2080768,null,3,Qs,[Ai,r.ChangeDetectorRef,r.NgZone,hr,r.ElementRef,[2,Qn],[2,wo.NgForm],[2,wo.FormGroupDirective],[2,Do],[8,null],[8,null],zs],{placeholder:[0,"placeholder"],value:[1,"value"]},{valueChange:"valueChange"}),r["\u0275qud"](603979776,8,{options:1}),r["\u0275qud"](603979776,9,{optionGroups:1}),r["\u0275qud"](335544320,10,{customTrigger:0}),r["\u0275prd"](2048,[[1,4]],Ro,null,[Qs]),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275and"](16777216,null,1,1,null,Wd)),r["\u0275did"](32,802816,null,0,i.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](37,0,null,null,15,"div",[["class","mat-dialog-actions"],["mat-dialog-actions",""]],null,null,null,null,null)),r["\u0275did"](38,16384,null,0,ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](40,0,null,null,11,"div",[["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](41,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](43,0,null,null,3,"button",[["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r["\u0275nov"](e,45).dialogRef.close(r["\u0275nov"](e,45).dialogResult)&&i),i},uf,lf)),r["\u0275did"](44,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),r["\u0275did"](45,606208,null,0,ma,[[2,ua],r.ElementRef,pa],{dialogResult:[0,"dialogResult"]},null),(e()(),r["\u0275ted"](-1,0,["Confirm"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](48,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onNoClick()&&r),r},uf,lf)),r["\u0275did"](49,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["Cancel"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0),e(t,11,0,n.description),e(t,25,0,n.selectText,n.selected),e(t,32,0,n.list),e(t,41,0,"row"),e(t,45,0,n.selected)},function(e,t){var n=t.component;e(t,3,0,r["\u0275nov"](t,4).id),e(t,5,0,n.title),e(t,13,1,[r["\u0275nov"](t,14)._control.errorState,r["\u0275nov"](t,14)._control.errorState,r["\u0275nov"](t,14)._canLabelFloat,r["\u0275nov"](t,14)._shouldLabelFloat(),r["\u0275nov"](t,14)._hideControlPlaceholder(),r["\u0275nov"](t,14)._control.disabled,r["\u0275nov"](t,14)._control.focused,r["\u0275nov"](t,14)._shouldForward("untouched"),r["\u0275nov"](t,14)._shouldForward("touched"),r["\u0275nov"](t,14)._shouldForward("pristine"),r["\u0275nov"](t,14)._shouldForward("dirty"),r["\u0275nov"](t,14)._shouldForward("valid"),r["\u0275nov"](t,14)._shouldForward("invalid"),r["\u0275nov"](t,14)._shouldForward("pending")]),e(t,23,1,[r["\u0275nov"](t,25).id,r["\u0275nov"](t,25).tabIndex,r["\u0275nov"](t,25)._ariaLabel,r["\u0275nov"](t,25).ariaLabelledby,r["\u0275nov"](t,25).required.toString(),r["\u0275nov"](t,25).disabled.toString(),r["\u0275nov"](t,25).errorState,r["\u0275nov"](t,25).panelOpen?r["\u0275nov"](t,25)._optionIds:null,r["\u0275nov"](t,25).multiple,r["\u0275nov"](t,25)._ariaDescribedby||null,r["\u0275nov"](t,25)._getAriaActiveDescendant(),r["\u0275nov"](t,25).disabled,r["\u0275nov"](t,25).errorState,r["\u0275nov"](t,25).required]),e(t,43,0,r["\u0275nov"](t,44).disabled||null,r["\u0275nov"](t,45).ariaLabel),e(t,48,0,r["\u0275nov"](t,49).disabled||null)})}var Xd=r["\u0275ccf"]("select-dialog",qf,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,1,"select-dialog",[],null,null,null,Kd,Hd)),r["\u0275did"](1,114688,null,0,qf,[ua,ca],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Zd=r["\u0275crt"]({encapsulation:0,styles:[[".container[_ngcontent-%COMP%]{position:relative;height:100%;font-family:Roboto}.mat-dialog-content[_ngcontent-%COMP%]{min-height:200px}.mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:5px}p[_ngcontent-%COMP%]{font-size:12px}.mat-dialog-actions[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}"]],data:{}});function Yd(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,18,"mat-form-field",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[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,null,Uf,Rf)),r["\u0275did"](1,7389184,null,7,Do,[r.ElementRef,r.ChangeDetectorRef,[2,Pr]],null,null),r["\u0275qud"](335544320,1,{_control:0}),r["\u0275qud"](335544320,2,{_placeholderChild:0}),r["\u0275qud"](335544320,3,{_labelChild:0}),r["\u0275qud"](603979776,4,{_errorChildren:1}),r["\u0275qud"](603979776,5,{_hintChildren:1}),r["\u0275qud"](603979776,6,{_prefixChildren:1}),r["\u0275qud"](603979776,7,{_suffixChildren:1}),(e()(),r["\u0275ted"](-1,1,["\n "])),(e()(),r["\u0275eld"](10,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","File path"]],[[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],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r["\u0275nov"](e,11)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,11).onTouched()&&i),"compositionstart"===t&&(i=!1!==r["\u0275nov"](e,11)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r["\u0275nov"](e,11)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==r["\u0275nov"](e,16)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==r["\u0275nov"](e,16)._focusChanged(!0)&&i),"input"===t&&(i=!1!==r["\u0275nov"](e,16)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(o.filePath=n)&&i),i},null,null)),r["\u0275did"](11,16384,null,0,wo.DefaultValueAccessor,[r.Renderer2,r.ElementRef,[2,wo.COMPOSITION_BUFFER_MODE]],null,null),r["\u0275prd"](1024,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[wo.DefaultValueAccessor]),r["\u0275did"](13,671744,null,0,wo.NgModel,[[8,null],[8,null],[8,null],[2,wo.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),r["\u0275prd"](2048,null,wo.NgControl,null,[wo.NgModel]),r["\u0275did"](15,16384,null,0,wo.NgControlStatus,[wo.NgControl],null,null),r["\u0275did"](16,933888,null,0,Oa,[r.ElementRef,Jn,[2,wo.NgControl],[2,wo.NgForm],[2,wo.FormGroupDirective],hr,[8,null]],{placeholder:[0,"placeholder"]},null),r["\u0275prd"](2048,[[1,4]],Ro,null,[Oa]),(e()(),r["\u0275ted"](-1,1,["\n "]))],function(e,t){e(t,13,0,t.component.filePath),e(t,16,0,"File path")},function(e,t){e(t,0,1,[r["\u0275nov"](t,1)._control.errorState,r["\u0275nov"](t,1)._control.errorState,r["\u0275nov"](t,1)._canLabelFloat,r["\u0275nov"](t,1)._shouldLabelFloat(),r["\u0275nov"](t,1)._hideControlPlaceholder(),r["\u0275nov"](t,1)._control.disabled,r["\u0275nov"](t,1)._control.focused,r["\u0275nov"](t,1)._shouldForward("untouched"),r["\u0275nov"](t,1)._shouldForward("touched"),r["\u0275nov"](t,1)._shouldForward("pristine"),r["\u0275nov"](t,1)._shouldForward("dirty"),r["\u0275nov"](t,1)._shouldForward("valid"),r["\u0275nov"](t,1)._shouldForward("invalid"),r["\u0275nov"](t,1)._shouldForward("pending")]),e(t,10,1,[r["\u0275nov"](t,15).ngClassUntouched,r["\u0275nov"](t,15).ngClassTouched,r["\u0275nov"](t,15).ngClassPristine,r["\u0275nov"](t,15).ngClassDirty,r["\u0275nov"](t,15).ngClassValid,r["\u0275nov"](t,15).ngClassInvalid,r["\u0275nov"](t,15).ngClassPending,r["\u0275nov"](t,16)._isServer,r["\u0275nov"](t,16).id,r["\u0275nov"](t,16).placeholder,r["\u0275nov"](t,16).disabled,r["\u0275nov"](t,16).required,r["\u0275nov"](t,16).readonly,r["\u0275nov"](t,16)._ariaDescribedby||null,r["\u0275nov"](t,16).errorState,r["\u0275nov"](t,16).required.toString()])})}function $d(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,47,"div",[["class","container"]],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](2,0,null,null,2,"h4",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),r["\u0275did"](3,81920,null,0,va,[[2,ua],r.ElementRef,pa],null,null),(e()(),r["\u0275ted"](4,null,["",""])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](6,0,null,null,24,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),r["\u0275did"](7,16384,null,0,ya,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](9,0,null,null,14,"div",[["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](10,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](12,0,null,null,2,"span",[["fxFlex","60%"]],null,null,null,null,null)),r["\u0275did"](13,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["File-based"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](16,0,null,null,1,"span",[["fxFlex","grow"]],null,null,null,null,null)),r["\u0275did"](17,737280,null,0,zc,[Rc,r.ElementRef,[3,Mc],Nc],{flex:[0,"flex"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](19,0,null,null,3,"mat-slide-toggle",[["class","mat-slide-toggle"]],[[8,"id",0],[2,"mat-checked",null],[2,"mat-disabled",null],[2,"mat-slide-toggle-label-before",null]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.toggleFileMode()&&r),r},Yh,Zh)),r["\u0275prd"](5120,null,wo.NG_VALUE_ACCESSOR,function(e){return[e]},[bl]),r["\u0275did"](21,1228800,null,0,bl,[r.ElementRef,Jn,fi,r.ChangeDetectorRef,[8,null]],{checked:[0,"checked"]},{change:"change"}),(e()(),r["\u0275ted"](-1,0,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Yd)),r["\u0275did"](26,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](28,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r["\u0275ted"](-1,null,["NB! Files only work in triplestore mode"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n\n "])),(e()(),r["\u0275eld"](32,0,null,null,14,"div",[["class","mat-dialog-actions"],["mat-dialog-actions",""]],null,null,null,null,null)),r["\u0275did"](33,16384,null,0,ba,[],null,null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](35,0,null,null,10,"div",[["fxLayout","row"]],null,null,null,null,null)),r["\u0275did"](36,737280,null,0,Mc,[Rc,r.ElementRef,Nc],{layout:[0,"layout"]},null),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](38,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.saveSettings()&&r),r},uf,lf)),r["\u0275did"](39,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["Save"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275eld"](42,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onNoClick()&&r),r},uf,lf)),r["\u0275did"](43,180224,null,0,zo,[r.ElementRef,Jn,fi],null,null),(e()(),r["\u0275ted"](-1,0,["Cancel"])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n "])),(e()(),r["\u0275ted"](-1,null,["\n"])),(e()(),r["\u0275ted"](-1,null,["\n \n"]))],function(e,t){var n=t.component;e(t,3,0),e(t,10,0,"row"),e(t,13,0,"60%"),e(t,17,0,"grow"),e(t,21,0,n.fileMode),e(t,26,0,n.fileMode),e(t,36,0,"row")},function(e,t){var n=t.component;e(t,2,0,r["\u0275nov"](t,3).id),e(t,4,0,n.title),e(t,19,0,r["\u0275nov"](t,21).id,r["\u0275nov"](t,21).checked,r["\u0275nov"](t,21).disabled,"before"==r["\u0275nov"](t,21).labelPosition),e(t,38,0,r["\u0275nov"](t,39).disabled||null),e(t,42,0,r["\u0275nov"](t,43).disabled||null)})}var Jd=r["\u0275ccf"]("settings-dialog",hf,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,0,null,null,3,"settings-dialog",[],null,null,null,$d,Zd)),r["\u0275prd"](512,null,Lu,Lu,[Iu]),r["\u0275prd"](512,null,Bu,Bu,[ss,Dt,Lu,pe.c]),r["\u0275did"](3,114688,null,0,hf,[ua,Bu,Lu],null,null)],function(e,t){e(t,3,0)},null)},{},{},[]);function ep(e){switch(e.length){case 0:return new Oo;case 1:return e[0];default:return new Ao(e)}}function tp(e,t,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],l=-1,u=null;if(r.forEach(function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case Io:s=i[n];break;case Co:s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),u=c,l=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function np(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&rp(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return r(n&&rp(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return r(n&&rp(n,"destroy",e.totalTime))})}}function rp(e,t,n){var r=ip(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),i=e._data;return null!=i&&(r._data=i),r}function ip(e,t,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o}}function op(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function ap(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var sp=function(e,t){return!1},lp=function(e,t){return!1},up=function(e,t,n){return[]};if("undefined"!=typeof Element){if(sp=function(e,t){return e.contains(t)},Element.prototype.matches)lp=function(e,t){return e.matches(t)};else{var cp=Element.prototype,fp=cp.matchesSelector||cp.mozMatchesSelector||cp.msMatchesSelector||cp.oMatchesSelector||cp.webkitMatchesSelector;fp&&(lp=function(e,t){return fp.apply(e,[t])})}up=function(e,t,n){var r=[];if(n)r.push.apply(r,e.querySelectorAll(t));else{var i=e.querySelector(t);i&&r.push(i)}return r}}var hp=null,dp=!1;function pp(e){hp||(hp=gp()||{},dp=!!hp.style&&"WebkitAppearance"in hp.style);var t=!0;return hp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in hp.style)&&dp&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in hp.style),t}function gp(){return"undefined"!=typeof document?document.body:null}var mp=lp,vp=sp,yp=up,bp=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return pp(e)},e.prototype.matchesElement=function(e,t){return mp(e,t)},e.prototype.containsElement=function(e,t){return vp(e,t)},e.prototype.query=function(e,t,n){return yp(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,i,o){return void 0===o&&(o=[]),new Oo},e}(),_p=function(){function e(){}return e.NOOP=new bp,e}(),wp=1e3;function xp(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:kp(parseFloat(t[1]),t[2])}function kp(e,t){switch(t){case"s":return e*wp;default:return e}}function Cp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=kp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=kp(Math.floor(parseFloat(s)),a[4]));var l=a[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:i,easing:o}}(e,t,n)}function Ep(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Sp(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else Ep(e,n);return n}function Tp(e,t){e.style&&Object.keys(t).forEach(function(n){var r=Np(n);e.style[r]=t[n]})}function Op(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Np(t);e.style[n]=""})}function Ap(e){return Array.isArray(e)?1==e.length?e[0]:Eo(e):e}var Ip=new RegExp("{{\\s*(.+?)\\s*}}","g");function Rp(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Ip.exec(n);)t.push(r[1]);Ip.lastIndex=0}return t}function Pp(e,t,n){var r=e.toString(),i=r.replace(Ip,function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?e:i}function jp(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Dp=/-+([a-z0-9])/g;function Np(e){return e.replace(Dp,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],a=i[2],s=i[3];t.push(Vp(o,s)),"<"!=a[0]||o==Mp&&s==Mp||t.push(Vp(s,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Gp(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Fp(n,e,t)}),options:Gp(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Fp(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Gp(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Wp(Cp(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Wp(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Wp((n=n||Cp(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:So({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=So(s)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Co?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(Hp(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u=t.collectedStyles[t.currentQuerySelector],c=u[r],f=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),f=!1),o=c.startTime),f&&(u[r]={startTime:o,endTime:i}),t.options&&(a=t.errors,s=t.options.params||{},(l=Rp(e[r])).length&&l.forEach(function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Hp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Hp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c0&&i0?i==h?1:f*i:o[i],s=a*g;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Fp(this,Ap(e.animation),t),options:Gp(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Gp(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Gp(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Up,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,op(t.collectedStyles,t.currentQuerySelector,{});var s=Fp(this,Ap(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Gp(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Cp(e.timings,t.errors,!0);return{type:12,animation:Fp(this,Ap(e.animation),t),timings:n,options:null}},e}(),Qp=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Hp(e){return!Array.isArray(e)&&"object"==typeof e}function Gp(e){var t;return e?(e=Ep(e)).params&&(e.params=(t=e.params)?Ep(t):null):e={},e}function Wp(e,t,n){return{duration:e,delay:t,easing:n}}function Kp(e,t,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var Xp=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Zp=new RegExp(":enter","g"),Yp=new RegExp(":leave","g");function $p(e,t,n,r,i,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new Jp).buildKeyframes(e,t,n,r,i,o,a,s,l,u)}var Jp=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,a,s,l,u){void 0===u&&(u=[]),l=l||new Xp;var c=new tg(e,t,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Fp(this,n,c);var f=c.timelines.filter(function(e){return e.containsAnimation()});if(f.length&&Object.keys(a).length){var h=f[f.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return f.length?f.map(function(e){return e.buildKeyframes()}):[Kp(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?xp(n.duration):null,o=null!=n.delay?xp(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Fp(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=eg);var a=xp(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Fp(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?xp(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Fp(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Cp(t.params?Pp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?xp(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=eg);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(l=s.currentTimeline),Fp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Fp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},e}(),eg={},tg=function(){function e(e,t,n,r,i,o,a,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=eg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ng(this._driver,t,0),a.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=xp(r.duration)),null!=r.delay&&(i.delay=xp(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=Pp(o[e],a,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=eg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new rg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Zp,"."+this._enterClassName)).replace(Yp,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,s)}return i||0!=a.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),a},e}(),ng=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Co,t._currentKeyframe[e]=Co}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Co}):Sp(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=Pp(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Co),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=Sp(o,!0);Object.keys(s).forEach(function(e){var r=s[e];r==Io?t.add(e):r==Co&&n.add(e)}),r||(s.offset=a/e.duration),i.push(s)});var o=t.size?jp(t.values()):[],a=n.size?jp(n.values()):[];if(r){var s=i[0],l=Ep(s);s.offset=0,l.offset=1,i=[s,l]}return Kp(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},e}(),rg=function(e){function t(t,n,r,i,o,a,s){void 0===s&&(s=!1);var l=e.call(this,t,n,a.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return Object(o.b)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=Sp(e[0],!1);l.offset=0,o.push(l);var u=Sp(e[0],!1);u.offset=ig(s),o.push(u);for(var c=e.length-1,f=1;f<=c;f++){var h=Sp(e[f],!1);h.offset=ig((n+h.offset*r)/a),o.push(h)}r=a,n=0,i="",e=o}return Kp(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(ng);function ig(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var og=function(){},ag=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t.prototype.normalizePropertyName=function(e,t){return Np(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(sg[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(og),sg=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function lg(e,t,n,r,i,o,a,s,l,u,c,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,errors:f}}var ug={},cg=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,a,s,l,u){var c=[],f=this.ast.options&&this.ast.options.params||ug,h=this.buildStyles(n,s&&s.params||ug,c),d=l&&l.params||ug,p=this.buildStyles(r,d,c),g=new Set,m=new Map,v=new Map,y="void"===r,b={params:Object(o.a)({},f,d)},_=$p(e,t,this.ast.animation,i,a,h,p,b,u,c);if(c.length)return lg(t,this._triggerName,n,r,y,h,p,[],[],m,v,c);_.forEach(function(e){var n=e.element,r=op(m,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=op(v,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var w=jp(g.values());return lg(t,this._triggerName,n,r,y,h,p,_,w,m,v)},e}(),fg=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=Ep(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=Pp(o,r,t)),n[e]=o})}}),n},e}(),hg=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new fg(e.style,e.options&&e.options.params||{})}),dg(this.states,"true","1"),dg(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new cg(e,t,n.states))}),this.fallbackTransition=new cg(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function dg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var pg=new Xp,gg=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=zp(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=tp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[e],s=new Map;if(a?(i=$p(this._driver,t,a,"ng-enter","ng-leave",{},{},n,pg,o)).forEach(function(e){var t=op(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Co)})});var l=ep(i.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return r.destroy(e)}),this.players.push(l),l},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=ip(t,"","","");return np(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),mg=[],vg={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},yg={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},bg="__ng_removed",_g=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=Ep(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),wg=new _g("void"),xg=new _g("DELETED"),kg=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Rg(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var a=op(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var l=op(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Rg(e,"ng-trigger"),Rg(e,"ng-trigger-"+t),l[t]=wg),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),a=new Eg(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Rg(e,"ng-trigger"),Rg(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new _g(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l){if(l===xg)return a}else l=wg;if("void"===u.value||l.value!==u.value){var c=op(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=o.matchTransition(l.value,u.value),h=!1;if(!f){if(!r)return;f=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(Rg(e,"ng-animate-queued"),a.onStart(function(){Pg(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0;E--)this._namespaceList[E].drainQueuedTransitions(t).forEach(function(e){var t=e.player;k.push(t);var o=e.element;if(h&&n.driver.containsElement(h,o)){var a=w.get(o),f=g.get(o),d=n._buildInstruction(e,r,f,a);if(d.errors&&d.errors.length)C.push(d);else{if(e.isFallbackTransition)return t.onStart(function(){return Op(o,d.fromStyles)}),t.onDestroy(function(){return Tp(o,d.toStyles)}),void i.push(t);d.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,d.timelines),s.push({instruction:d,player:t,element:o}),d.queriedElements.forEach(function(e){return op(l,e,[]).push(t)}),d.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),d.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}}else t.destroy()});if(C.length){var S=[];C.forEach(function(e){S.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return S.push("- "+e+"\n")})}),k.forEach(function(e){return e.destroy()}),this.reportError(S)}var T=new Map,O=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){op(T,t,[]).push(e),e.destroy()})});var A=v.filter(function(e){return Dg(e,u,c)}),I=new Map;Og(I,this.driver,b,c,Co).forEach(function(e){Dg(e,u,c)&&A.push(e)});var R=new Map;p.forEach(function(e,t){Og(R,n.driver,new Set(e),u,Io)}),A.forEach(function(e){var t=I.get(e),n=R.get(e);I.set(e,Object(o.a)({},t,n))});var P=[],j=[],D={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(r.has(t)){if(f.has(t))return o.onDestroy(function(){return Tp(t,s.toStyles)}),void i.push(o);var l=D;if(O.size>1){for(var u=t,c=[];u=u.parentNode;){var h=O.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(e){return O.set(e,l)})}var d=n._buildAnimation(o.namespaceId,s,T,a,R,I);if(o.setRealPlayer(d),l===D)P.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=ep(p)),i.push(o)}}else Op(t,s.fromStyles),o.onDestroy(function(){return Tp(t,s.toStyles)}),j.push(o),f.has(t)&&i.push(o)}),j.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=ep(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Oo},e}(),Eg=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Oo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return np(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){op(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Sg(e){return e&&1===e.nodeType}function Tg(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Og(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Tg(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[bg]=yg,a.push(r))}),e.set(r,o)});var s=0;return n.forEach(function(e){return Tg(e,o[s++])}),a}function Ag(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:r.has(a)?1:e(a),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var Ig="$$classes";function Rg(e,t){if(e.classList)e.classList.add(t);else{var n=e[Ig];n||(n=e[Ig]={}),n[t]=!0}}function Pg(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Ig];n&&delete n[t]}}function jg(e,t,n){ep(n).onDone(function(){return e.processLeaveNode(t)})}function Dg(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var Ng=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Cg(e,t),this._timelineEngine=new gg(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=zp(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(e,t){return new hg(e,t)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=ap(n);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=ap(n);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Fg=function(){function e(e,t,n,r){void 0===r&&(r=[]);var i=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Sp(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var r=t[0],i=[];if(n.forEach(function(t){r.hasOwnProperty(t)||i.push(t),r[t]=e.previousStyles[t]}),i.length)for(var o=this,a=function(){var e=t[s];i.forEach(function(t){e[t]=Mg(o.element,t)})},s=1;s=0&&e"}]}],e.propDecorators={config:[{type:r.Input}],change:[{type:r.Output}],focus:[{type:r.Output}],blur:[{type:r.Output}],cursorActivity:[{type:r.Output}],host:[{type:r.ViewChild,args:["host"]}],instance:[{type:r.Output}],value:[{type:r.Input}]},e}()},zsGe:function(e,t,n){var r=n("VZi1"),i=n("Cbv+"),o=i;function a(e,t){this.name="NonSupportedSparqlFeatureError",this.feature=e,this.message=t||"SPARQL feature "+e+" non supported"}function s(e){this.name=ParserError,this.message=e||"Error parsing SPARQL query"}a.prototype=new Error,a.constructor=a,s.prototype=new Error,s.constructor=s,AbstractQueryTree=function(){},AbstractQueryTree.prototype.parseQueryString=function(e){return r.parse(e)},AbstractQueryTree.prototype.parseExecutableUnit=function(e){if("select"===e.kind)return this.parseSelect(e);if("ask"===e.kind)return this.parseSelect(e);if("modify"===e.kind)return this.parseSelect(e);if("construct"===e.kind)return this.parseSelect(e);if("insertdata"===e.kind)return this.parseInsertData(e);if("deletedata"===e.kind)return this.parseInsertData(e);if("load"===e.kind)return e;if("clear"===e.kind)return e;if("drop"===e.kind)return e;if("create"===e.kind)return e;throw new Error("unknown executable unit: "+e.kind)},AbstractQueryTree.prototype.parseSelect=function(e){return null==e?(console.log("error parsing query"),null):(e.pattern=this.build(e.pattern,{freshCounter:0}),e)},AbstractQueryTree.prototype.parseInsertData=function(e){return null==e?(console.log("error parsing query"),null):e},AbstractQueryTree.prototype.build=function(e,t){if("groupgraphpattern"===e.token)return this._buildGroupGraphPattern(e,t);if("basicgraphpattern"===e.token)return AbstractQueryTree.translatePathExpressionsInBGP({kind:"BGP",value:e.triplesContext},t);if("graphunionpattern"===e.token)return{kind:"UNION",value:[this.build(e.value[0],t),this.build(e.value[1],t)]};if("graphgraphpattern"===e.token)return{kind:"GRAPH",value:this.build(e.value,t),graph:e.graph};throw null!=e.token?new a(e.token,"Non implemented SPARQL graph pattern: '"+e.token+"'"):new s("Error parsing graph pattern: '"+JSON.stringify(e)+"'")},AbstractQueryTree.translatePathExpressionsInBGP=function(e,t){for(var n,r,i,a=[],s=0;s0?{kind:"JOIN",lvalue:{kind:"BGP",value:a},rvalue:l}:l,"ZERO_OR_MORE_PATH"===l.kind)if("var"===l.y.token&&0===l.y.value.indexOf("fresh:")&&"var"===l.x.token&&0===l.x.value.indexOf("fresh:"))for(var c=0;c0){var f=AbstractQueryTree.translatePathExpressionsInBGP({kind:"BGP",value:r},t);return null!=u?{kind:"UNION",value:[{kind:"JOIN",lvalue:i,rvalue:f},{kind:"BGP",value:a.concat([u]).concat(r)}]}:{kind:"JOIN",lvalue:i,rvalue:f}}return i}return l}a=a.concat(l.value)}else a.push(e.value[s]);return e.value=a,e},AbstractQueryTree.translatePathExpression=function(e,t){if("element"===e.predicate.kind)return"+"===e.predicate.modifier?(e.predicate.modifier=null,{kind:"ONE_OR_MORE_PATH",path:AbstractQueryTree.translatePathExpression(e,t),x:e.subject,y:e.object}):"*"===e.predicate.modifier?(e.predicate.modifier=null,{kind:"ZERO_OR_MORE_PATH",path:AbstractQueryTree.translatePathExpression(e,t),x:e.subject,y:e.object}):(e.predicate=e.predicate.value,{kind:"BGP",value:[e]});if("sequence"===e.predicate.kind){for(var n,r,i=e.subject,s=e.object,l=e.graph,u=[],c=0;c